tocco-legacy-bundle 3.10.16 → 3.10.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +11 -0
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/input-edit.js +1 -1
- package/dist/login.js +2 -2
- package/dist/merge.js +2 -2
- package/dist/password-update.js +2 -2
- package/dist/resource-scheduler.js +2 -2
- package/dist/sso-login.js +2 -2
- package/dist/two-factor-connector.js +2 -2
- package/package.json +1 -1
package/dist/merge.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=[],i=Array.from(t);i.length;){var a=i.shift();if(!Xe(a,!1))if("SLOT"===a.tagName){var c=a.assignedElements(),s=e(c.length?c:a.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:a,candidates:s})}else{$e.call(a,Ge)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),l=!Xe(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&l){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.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)},it=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},at=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 it(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,c=Qe(e);if(a&&!a.shadowRoot&&!0===r(a))return it(e);e=e.assignedSlot?e.assignedSlot:a||c===e.ownerDocument?a:c.host}e=i}if(function(e){var t,n,r,o,i=e&&Qe(e),a=null===(t=i)||void 0===t?void 0:t.host,c=!1;if(i&&i!==e)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!c&&a;){var s,u,l;c=!(null===(u=a=null===(s=i=Qe(a))||void 0===s?void 0:s.host)||void 0===u||null===(l=u.ownerDocument)||void 0===l||!l.contains(a))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ct=function(e,t){return!(t.disabled||Xe(t)||function(e){return rt(e)&&"hidden"===e.type}(t)||at(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))},st=function(e,t){return!(ot(t)||tt(t)<0||!ct(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 i=!!t.scopeParent,a=i?t.scopeParent:t,c=function(e,t){var n=tt(e);return n<0&&t&&!et(e)?0:n}(a,i),s=i?e(t.candidates):a;0===c?i?n.push.apply(n,s):n.push(a):r.push({documentOrder:o,tabIndex:c,item:t,isScope:i,content:s})})),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:st.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ut}):Ze(e,t.includeContainer,st.bind(null,t)),lt(n)};function pt(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 ft=r["useInsertionEffect".toString()]||(e=>e());function ht(e){const t=r.useRef((()=>{0}));return ft((()=>{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",vt="ArrowLeft",yt="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:i=1}=void 0===t?{}:t;const a=e.current,c=o?e=>o.includes(e):e=>{const t=a[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&c(s));return s}function St(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:a,minIndex:c,maxIndex:s,prevIndex:u,stopEvent:l=!1}=t,d=u;if(n.key===mt){if(l&&L(n),-1===u)d=s;else if(d=kt(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:a}),o&&(u-i<c||d<0)){const e=u%i,t=s%i,n=s-(t-e);d=t===e?s:t>e?n:n-i}wt(e,d)&&(d=u)}if(n.key===gt&&(l&&L(n),-1===u?d=c:(d=kt(e,{startingIndex:u,amount:i,disabledIndices:a}),o&&u+i>s&&(d=kt(e,{startingIndex:u%i-i,amount:i,disabledIndices:a}))),wt(e,d)&&(d=u)),"both"===r){const t=V(u/i);n.key===yt&&(l&&L(n),u%i!=i-1?(d=kt(e,{startingIndex:u,disabledIndices:a}),o&&bt(d,i,t)&&(d=kt(e,{startingIndex:u-u%i-1,disabledIndices:a}))):o&&(d=kt(e,{startingIndex:u-u%i-1,disabledIndices:a})),bt(d,i,t)&&(d=u)),n.key===vt&&(l&&L(n),u%i!=0?(d=kt(e,{startingIndex:u,disabledIndices:a,decrement:!0}),o&&bt(d,i,t)&&(d=kt(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:a}))):o&&(d=kt(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:a})),bt(d,i,t)&&(d=u));const r=V(s/i)===t;wt(e,d)&&(d=o&&r?n.key===vt?s:kt(e,{startingIndex:u-u%i-1,disabledIndices:a}):u)}return d}function Pt(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:c}=e,s=!1;for(n&&(o=0);!s;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<c;r++)e.push(o+n+r*t);o%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),s=!0):o++}})),[...r]}function Et(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(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 jt=0;function _t(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(jt);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():jt=requestAnimationFrame(i)}var Ct="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Tt(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 It=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Mt(e){let{children:t,elementsRef:n,labelsRef:o}=e;const[i,a]=r.useState((()=>new Map)),c=r.useCallback((e=>{a((t=>new Map(t).set(e,null)))}),[]),s=r.useCallback((e=>{a((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Ct((()=>{const e=new Map(i);Array.from(e.keys()).sort(Tt).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}(i,e)||a(e)}),[i]),r.createElement(It.Provider,{value:r.useMemo((()=>({register:c,unregister:s,map:i,elementsRef:n,labelsRef:o})),[c,s,i,n,o])},t)}function Nt(e){let{label:t}=void 0===e?{}:e;const[n,o]=r.useState(null),i=r.useRef(null),{register:a,unregister:c,map:s,elementsRef:u,labelsRef:l}=r.useContext(It),d=r.useCallback((e=>{if(i.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 Ct((()=>{const e=i.current;if(e)return a(e),()=>{c(e)}}),[a,c]),Ct((()=>{const e=i.current?s.get(i.current):null;null!=e&&o(e)}),[s]),r.useMemo((()=>({ref:d,index:null==n?-1:n})),[n,d])}function At(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=[vt,yt],Ft=[mt,gt],Ht=[...Lt,...Ft],Ut=r.forwardRef((function(e,t){let{render:n,orientation:o="both",loop:i=!0,cols:a=1,disabledIndices:c=[],activeIndex:s,onNavigate:u,itemSizes:l,dense:d=!1,...p}=e;const[f,h]=r.useState(0),m=null!=s?s:f,g=ht(null!=u?u:h),v=r.useRef([]),y=n&&"function"!=typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=a>1;const O={...p,...y,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ht.includes(e.key))return;let t=m;if(w){const n=l||Array.from({length:v.current.length},(()=>({width:1,height:1}))),r=Pt(n,a,d),s=r.findIndex((e=>null!=e&&!c.includes(e))),u=r.reduce(((e,t,n)=>null==t||null!=c&&c.includes(t)?e:n),-1);t=r[St({current:r.map((e=>e?v.current[e]:null))},{event:e,orientation:o,loop:i,cols:a,disabledIndices:Dt([...c,void 0],r),minIndex:s,maxIndex:u,prevIndex:Et(m,n,r,a,e.key===gt?"bl":e.key===yt?"tr":"tl")})]}const n=Ot(v,c),r=xt(v,c),s={horizontal:[yt],vertical:[gt],both:[yt,gt]}[o],u={horizontal:[vt],vertical:[mt],both:[vt,mt]}[o],p=w?Ht:{horizontal:Lt,vertical:Ft,both:Ht}[o];t===m&&[...s,...u].includes(e.key)&&(t=i&&t===r&&s.includes(e.key)?n:i&&t===n&&u.includes(e.key)?r:kt(v,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:c})),t===m||wt(v,t)||(e.stopPropagation(),p.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{_t(v.current[t])})))}(e)}};return r.createElement(Rt.Provider,{value:b},r.createElement(Mt,{elementsRef:v},At(n,O)))})),Wt=r.forwardRef((function(e,t){let{render:n,...o}=e;const i=n&&"function"!=typeof n?n.props:{},{activeIndex:a,onNavigate:c}=r.useContext(Rt),{ref:s,index:u}=Nt(),l=pt([s,t,i.ref]),d=a===u;return At(n,{...o,...i,ref:l,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==i.onFocus||i.onFocus(e),c(u)}})}));function Bt(){return Bt=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},Bt.apply(this,arguments)}let zt=!1,Yt=0;const Vt=()=>"floating-ui-"+Yt++;const qt=r["useId".toString()]||function(){const[e,t]=r.useState((()=>zt?Vt():void 0));return Ct((()=>{null==e&&t(Vt())}),[]),r.useEffect((()=>{zt||(zt=!0)}),[]),e},Gt=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:c=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:p,style:{transform:f,...h}={},...m}=e;const g=qt();if(!o)return null;u*=2;const v=u/2,y=a/2*(s/-8+1),b=c/2*s/4,[w,O]=n.split("-"),x=je.isRTL(o),k=!!p,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==i?void 0:i.x)?l||i.x:"",j=null!=(null==i?void 0:i.y)?l||i.y:"",_=p||"M0,0 H"+a+" L"+(a-y)+","+(c-b)+" Q"+a/2+","+c+" "+y+","+(c-b)+" Z",C={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",Bt({},m,{"aria-hidden":!0,ref:t,width:k?a:a+u,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[E]:D,[P]:j,[w]:S||k?"100%":"calc(100% - "+u/2+"px)",transform:""+C+(null!=f?f:""),...h}}),u>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:u+(p?0:1),d:_}),r.createElement("path",{stroke:u&&!p?m.fill:"none",d:_}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-v,y:v*(k?-1:1),width:a+u,height:a})))}));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 Ct((()=>{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]}),[]),i=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),a=r.useState((()=>Kt()))[0];return r.createElement(Qt.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:i,events:a})),[o,i,a])},t)}function nn(e){return"data-floating-ui-"+e}function rn(e){const t=(0,r.useRef)(e);return Ct((()=>{t.current=e})),t}const on=nn("safe-polygon");function an(e,t,n){return n&&!T(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function cn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,events:a,elements:{domReference:c,floating:u},refs:l}=e,{enabled:d=!0,delay:p=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,v=Zt(),y=Xt(),b=rn(f),w=rn(p),O=r.useRef(),x=r.useRef(),S=r.useRef(),P=r.useRef(),E=r.useRef(!0),D=r.useRef(!1),j=r.useRef((()=>{})),_=r.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);r.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(P.current),E.current=!0)}}),[d,a]),r.useEffect((()=>{if(!d||!b.current||!n)return;function e(e){_()&&o(!1,e,"hover")}const t=I(u).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u,n,o,d,b,_]);const C=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((()=>{j.current(),S.current=void 0}),[]),N=r.useCallback((()=>{if(D.current){const e=I(l.floating.current).body;e.style.pointerEvents="",e.removeAttribute(on),D.current=!1}}),[l]);return r.useEffect((()=>{if(d&&s(c)){const e=c;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",a),()=>{n&&e.removeEventListener("mouseleave",l),null==u||u.removeEventListener("mouseleave",l),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function r(e){if(clearTimeout(x.current),E.current=!1,h&&!T(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 a(r){if(t())return;j.current();const o=I(u);if(clearTimeout(P.current),b.current){n||clearTimeout(x.current),S.current=b.current({...e,tree:v,x:r.clientX,y:r.clientY,onClose(){N(),M(),C(r,!0,"safe-polygon")}});const t=S.current;return o.addEventListener("mousemove",t),void(j.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==O.current||!k(u,r.relatedTarget))&&C(r)}function l(n){t()||null==b.current||b.current({...e,tree:v,x:n.clientX,y:n.clientY,onClose(){N(),M(),C(n)}})(n)}}),[c,u,d,e,h,m,g,C,M,N,o,n,v,w,b,i]),Ct((()=>{var e;if(d&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&_()){const e=I(u).body;if(e.setAttribute(on,""),e.style.pointerEvents="none",D.current=!0,s(c)&&u){var t;const e=c,n=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||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,y,u,c,v,b,_]),Ct((()=>{n||(O.current=void 0,M(),N())}),[n,M,N]),r.useEffect((()=>()=>{M(),clearTimeout(x.current),clearTimeout(P.current),N()}),[d,c,M,N]),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){C(e.nativeEvent,!1)}}}}),[d,m,n,o,C])}const sn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),un=()=>r.useContext(sn),ln=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[i,a]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),c=r.useRef(null),s=r.useCallback((e=>{a({currentId:e})}),[]);return Ct((()=>{i.currentId?null===c.current?c.current=i.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),c.current=null)}),[i.currentId]),r.createElement(sn.Provider,{value:r.useMemo((()=>({...i,setState:a,setCurrentId:s})),[i,s])},t)},dn=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:c,setState:s,timeoutMs:u}=un();Ct((()=>{i&&(s({delay:{open:1,close:an(c,"close")}}),i!==o&&r(!1))}),[o,r,s,i,c]),Ct((()=>{function e(){r(!1),s({delay:c,currentId:null})}if(!n&&i===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,s,i,o,r,c,u]),Ct((()=>{n&&a(o)}),[n,a,o])};function pn(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 fn=new WeakMap,hn=new WeakSet,mn={},gn=0;const vn=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,yn=e=>e&&(e.host||yn(e.parentNode)),bn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=yn(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=I(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=bn(t,e),c=new Set,s=new Set(a),u=[];mn[o]||(mn[o]=new WeakMap);const l=mn[o];return a.forEach((function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(c.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(fn.get(t)||0)+1,a=(l.get(t)||0)+1;fn.set(t,r),l.set(t,a),u.push(t),1===r&&n&&hn.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),c.clear(),gn++,()=>{u.forEach((e=>{const t=(fn.get(e)||0)-1,n=(l.get(e)||0)-1;fn.set(e,t),l.set(e,n),t||(!hn.has(e)&&i&&e.removeAttribute(i),hn.delete(e)),n||e.removeAttribute(o)})),gn--,gn||(fn=new WeakMap,fn=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(I(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 jn={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 _n(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Cn=r.forwardRef((function(e,t){const[n,o]=r.useState();Ct((()=>(j()&&o("button"),document.addEventListener("keydown",_n),()=>{document.removeEventListener("keydown",_n)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nn("focus-guard")]:"",style:jn};return r.createElement("span",Bt({},e,i))})),Tn=r.createContext(null),In=nn("portal");function Mn(e){let{id:t,root:n}=void 0===e?{}:e;const[o,i]=r.useState(null),a=qt(),c=An(),u=r.useRef(null);return Ct((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{u.current=null}))}),[o]),Ct((()=>{if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=a,n.setAttribute(In,""),e.appendChild(n),u.current=n,i(n)}),[t,a]),Ct((()=>{if(u.current)return;let e=n||(null==c?void 0:c.portalNode);e&&!s(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=a,o.setAttribute(In,""),e=r||e,e.appendChild(o),u.current=o,i(o)}),[t,n,a,c]),o}function Nn(e){let{children:t,id:n,root:o=null,preserveTabOrder:i=!0}=e;const a=Mn({id:n,root:o}),[c,s]=r.useState(null),u=r.useRef(null),l=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=!!c&&!c.modal&&c.open&&i&&!(!o&&!a);return r.useEffect((()=>{if(a&&i&&(null==c||!c.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&Pn(e)){("focusin"===e.type?Dn:En)(a)}}}),[a,i,null==c?void 0:c.modal]),r.createElement(Tn.Provider,{value:r.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[i,a])},f&&a&&r.createElement(Cn,{"data-type":"outside",ref:u,onFocus:e=>{if(Pn(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Sn()||(null==c?void 0:c.refs.domReference.current);null==e||e.focus()}}}),f&&a&&r.createElement("span",{"aria-owns":a.id,style:jn}),a&&(0,He.createPortal)(t,a),f&&a&&r.createElement(Cn,{"data-type":"outside",ref:l,onFocus:e=>{if(Pn(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=kn()||(null==c?void 0:c.refs.domReference.current);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent))}}}))}const An=()=>r.useContext(Tn),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 Un=r.forwardRef((function(e,t){return r.createElement("button",Bt({},e,{type:"button",ref:t,tabIndex:-1,style:jn}))}));function Wn(e){const{context:t,children:n,disabled:o=!1,order:i=["content"],guards:a=!0,initialFocus:c=0,returnFocus:s=!0,modal:l=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:h,nodeId:m,onOpenChange:g,events:v,dataRef:y,elements:{domReference:b,floating:w}}=t,O="number"==typeof c&&c<0,S=F(b)&&O,P=!vn()||a,j=rn(i),_=rn(c),C=rn(s),T=Zt(),M=An(),A=r.useRef(null),R=r.useRef(null),H=r.useRef(!1),U=r.useRef(!1),W=null!=M,B=r.useCallback((function(e){return void 0===e&&(e=w),e?dt(e,On()):[]}),[w]),z=r.useCallback((e=>{const t=B(e);return j.current.map((e=>b&&"reference"===e?b:w&&"floating"===e?w:t)).filter(Boolean).flat()}),[b,w,j,B]);function Y(e){return!o&&d&&l?r.createElement(Un,{ref:"start"===e?A: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(I(w)))&&0===B().length&&!S&&L(e);const t=z(),n=N(e);"reference"===j.current[0]&&n===b&&(L(e),e.shiftKey?_t(t[t.length-1]):_t(t[1])),"floating"===j.current[1]&&n===w&&e.shiftKey&&(L(e),_t(t[0]))}}const t=I(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,b,w,l,j,S,B,z]),r.useEffect((()=>{if(!o&&p)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(){U.current=!0,setTimeout((()=>{U.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"))||T&&(pn(T.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}(T.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&&!U.current&&t!==Hn()&&(H.current=!0,g(!1,e))}))}}),[o,b,w,l,m,T,M,g,p]),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,A.current,R.current,j.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,j,M,S,P]),Ct((()=>{if(o||!w)return;const e=x(I(w));queueMicrotask((()=>{const t=z(w),n=_.current,r=("number"==typeof n?t[n]:n.current)||w,o=k(w,e);O||o||!f||_t(r,{preventScroll:r===w})}))}),[o,f,w,O,z,_]),Ct((()=>{if(o||!w)return;let e=!1;const t=I(w),n=x(t),r=y.current;function i(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),v.on("openchange",i),()=>{v.off("openchange",i);const n=x(t),o=k(w,n)||T&&pn(T.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 a=Hn();C.current&&!H.current&&u(a)&&(a===n||n===t.body||o)&&_t(a,{cancelPrevious:!1,preventScroll:e})}}),[o,w,C,y,h,v,T,m]),Ct((()=>{if(!o&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:p,open:f,onOpenChange:g,refs:h}),()=>{M.setFocusManagerState(null)}}),[o,M,l,f,g,h,p]),Ct((()=>{if(o||!w||"function"!=typeof MutationObserver||O)return;const e=()=>{const e=w.getAttribute("tabindex");j.current.includes("floating")||x(I(w))!==h.domReference.current&&0===B().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,j,B,O]);const V=!o&&P&&(W||l);return r.createElement(r.Fragment,null,V&&r.createElement(Cn,{"data-type":"inside",ref:null==M?void 0:M.beforeInsideRef,onFocus:e=>{if(l){const e=z();_t("reference"===i[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&&Y("start"),n,Y("end"),V&&r.createElement(Cn,{"data-type":"inside",ref:null==M?void 0:M.afterInsideRef,onFocus:e=>{if(l)_t(z()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(p&&(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 Bn=new Set,zn=r.forwardRef((function(e,t){let{lockScroll:n=!1,...o}=e;const i=qt();return Ct((()=>{if(!n)return;Bn.add(i);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,a=t.left?parseFloat(t.left):window.pageXOffset,c=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var s,u;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(c-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Bn.delete(i),0===Bn.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,c)))}}),[i,n]),r.createElement("div",Bt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function Yn(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:i,elements:{domReference:a}}=e,{enabled:c=!0,event:s="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0}=t,p=r.useRef(),f=r.useRef(!1);return r.useMemo((()=>c?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(T(p.current,!0)&&l||"click"!==s&&(!n||!u||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&p.current?p.current=void 0:T(p.current,!0)&&l||(!n||!u||i.current.openEvent&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Yn(e)||(" "!==e.key||Vn(a)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&o(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Yn(e)||Vn(a)||" "===e.key&&f.current&&(f.current=!1,o(!n||!u,e.nativeEvent,"click"))}}}:{}),[c,i,s,l,d,a,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:a,elements:{floating:c}}=e,{enabled:s=!0,axis:u="both",x:l=null,y:d=null}=t,p=r.useRef(!1),f=r.useRef(null),[h,m]=r.useState(),[g,v]=r.useState([]),y=ht(((e,t)=>{p.current||a.current.openEvent&&!Gn(a.current.openEvent)||o.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var i,a;const c=(null==(i=e.current)?void 0:i.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,l=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let d=c.width,p=c.height,f=c.x,h=c.y;return null==n&&t.x&&s&&(n=c.x-t.x),null==r&&t.y&&u&&(r=c.y-t.y),f-=n||0,h-=r||0,d=0,p=0,!o||l?(d="y"===t.axis?c.width:0,p="x"===t.axis?c.height:0,f=s&&null!=t.x?t.x:f,h=u&&null!=t.y?t.y:h):o&&!l&&(p="x"===t.axis?c.height:p,d="y"===t.axis?c.width:d),o=!0,{width:d,height:p,x:f,y:h,top:h,right:f+d,bottom:h+p,left:f}}}}(o.domReference,{x:e,y:t,axis:u,dataRef:a,pointerType:h}))})),b=ht((e=>{null==l&&null==d&&(n?f.current||v([]):y(e.clientX,e.clientY))})),w=T(h)?c:n,O=r.useCallback((()=>{if(!w||!s||null!=l||null!=d)return;const e=i(o.floating.current);function t(n){const r=N(n);k(o.floating.current,r)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!a.current.openEvent||Gn(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}o.setPositionReference(o.domReference.current)}),[a,s,w,o,y,l,d]);return r.useEffect((()=>O()),[O,g]),r.useEffect((()=>{s&&!c&&(p.current=!1)}),[s,c]),r.useEffect((()=>{!s&&n&&(p.current=!0)}),[s,n]),Ct((()=>{!s||null==l&&null==d||(p.current=!1,y(l,d))}),[s,l,d,y]),r.useMemo((()=>{if(!s)return{};function e(e){let{pointerType:t}=e;m(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:b,onMouseEnter:b}}}),[s,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:i,elements:{reference:a,domReference:c,floating:l},dataRef:d}=e,{enabled:p=!0,escapeKey:f=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:y=!1,referencePressEvent:w="pointerdown",ancestorScroll:x=!1,bubbles:S,capture:P}=t,E=Zt(),D=ht("function"==typeof h?h:()=>!1),j="function"==typeof h?D:h,_=r.useRef(!1),C=r.useRef(!1),{escapeKey:T,outsidePress:A}=Xn(S),{escapeKey:R,outsidePress:L}=Xn(P),F=ht((e=>{if(!n||!p||!f||"Escape"!==e.key)return;const t=E?pn(E.nodesRef.current,i):[];if(!T&&(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=N(e))||t.removeEventListener("keydown",n)};null==(t=N(e))||t.addEventListener("keydown",n)})),U=ht((e=>{const t=_.current;_.current=!1;const n=C.current;if(C.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof j&&!j(e))return;const r=N(e),a="["+nn("inert")+"]",d=I(l).querySelectorAll(a);let p=s(r)?r:null;for(;p&&!g(p);){const e=b(p);if(g(e)||!s(e))break;p=e}if(d.length&&s(r)&&!r.matches("html,body")&&!k(r,l)&&Array.from(d).every((e=>!k(p,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"===v(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth)}if(o||t&&e.offsetY>r.clientHeight)return}const f=E&&pn(E.nodesRef.current,i).some((t=>{var n;return M(e,null==(n=t.context)?void 0:n.elements.floating)}));if(M(e,l)||M(e,c)||f)return;const h=E?pn(E.nodesRef.current,i):[];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")})),W=ht((e=>{var t;const n=()=>{var t;U(e),null==(t=N(e))||t.removeEventListener(m,n)};null==(t=N(e))||t.addEventListener(m,n)}));return r.useEffect((()=>{if(!n||!p)return;function e(e){o(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=A;const t=I(l);f&&t.addEventListener("keydown",R?H:F,R),j&&t.addEventListener(m,L?W:U,L);let r=[];return x&&(s(c)&&(r=O(c)),s(l)&&(r=r.concat(O(l))),!s(a)&&a&&a.contextElement&&(r=r.concat(O(a.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})})),()=>{f&&t.removeEventListener("keydown",R?H:F,R),j&&t.removeEventListener(m,L?W:U,L),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,l,c,a,f,j,m,n,o,x,p,T,A,F,R,H,U,L,W]),r.useEffect((()=>{_.current=!1}),[j,m]),r.useMemo((()=>p?{reference:{onKeyDown:F,[$n[w]]:e=>{y&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Qn[m]]:()=>{_.current=!0}}}:{}),[p,y,m,w,o,F])}function Jn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e;const[a,c]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||a,l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=r.useState(o);Be(f,o)||h(o);const[m,g]=r.useState(null),[v,y]=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,y(e))}),[]),O=a||m,x=c||v,k=r.useRef(null),S=r.useRef(null),P=r.useRef(d),E=null!=u,D=Ve(u),j=Ve(i),_=r.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Fe(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};C.current&&!Be(P.current,t)&&(P.current=t,He.flushSync((()=>{p(t)})))}))}),[f,t,n,j]);We((()=>{!1===l&&P.current.isPositioned&&(P.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[l]);const C=r.useRef(!1);We((()=>(C.current=!0,()=>{C.current=!1})),[]),We((()=>{if(O&&(k.current=O),x&&(S.current=x),O&&x){if(D.current)return D.current(O,x,_);_()}}),[O,x,_,D,E]);const T=r.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),I=r.useMemo((()=>({reference:O,floating:x})),[O,x]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Ye(I.floating,d.x),r=Ye(I.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ze(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,I.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:_,refs:T,elements:I,floatingStyles:M})),[d,_,T,I,M])}(e),d=Zt(),p=null!=Xt(),f=ht(((e,t,n)=>{e&&(m.current.openEvent=t),g.emit("openchange",{open:e,event:t,reason:n,nested:p}),null==o||o(e,t,n)})),h=r.useRef(null),m=r.useRef({}),g=r.useState((()=>Kt()))[0],v=qt(),y=r.useCallback((e=>{const t=s(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l.refs.setReference(t)}),[l.refs]),b=r.useCallback((e=>{(s(e)||null===e)&&(h.current=e,c(e)),(s(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!s(e))&&l.refs.setReference(e)}),[l.refs]),w=r.useMemo((()=>({...l.refs,setReference:b,setPositionReference:y,domReference:h})),[l.refs,b,y]),O=r.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=r.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:i,floatingId:v,events:g,open:n,onOpenChange:f})),[l,i,v,g,n,f,w,O]);return Ct((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===i));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:a,refs:c,elements:{domReference:l}}=e,{enabled:d=!0,visibleOnly:p=!0}=t,f=r.useRef(!1),h=r.useRef(),m=r.useRef(!0);return r.useEffect((()=>{if(!d)return;const e=i(l);function t(){!n&&u(l)&&l===x(I(l))&&(f.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 a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}}),[a,d]),r.useEffect((()=>()=>{clearTimeout(h.current)}),[]),r.useMemo((()=>d?{reference:{onPointerDown(e){D(e.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=N(e.nativeEvent);if(p&&s(t))try{if(j()&&C())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!R(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=s(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(c.floating.current,r)||k(l,r)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[d,p,l,c,o])}const tr="active",nr="selected";function rr(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[tr]:t,[nr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...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,i]=t;var a;o&&[tr,nr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),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),i=r.useCallback((t=>rr(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}let ir=!1;function ar(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function cr(e,t){return ar(t,e===mt||e===gt,e===vt||e===yt)}function sr(e,t,n){return ar(t,e===gt,n?e===vt:e===yt)||"Enter"===e||" "===e||""===e}function ur(e,t,n){return ar(t,n?e===yt:e===vt,e===mt)}function lr(e,t){const{open:n,onOpenChange:o,refs:i,elements:{domReference:a,floating:c}}=e,{listRef:s,activeIndex:l,onNavigate:d=(()=>{}),enabled:p=!0,selectedIndex:f=null,allowEscape:h=!1,loop:m=!1,nested:g=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:O=!0,disabledIndices:S,orientation:P="vertical",cols:_=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:A=!1}=t;const R=Xt(),H=Zt(),U=ht(d),W=r.useRef(b),B=r.useRef(null!=f?f:-1),z=r.useRef(null),Y=r.useRef(!0),V=r.useRef(U),q=r.useRef(!!c),G=r.useRef(!1),K=r.useRef(!1),$=rn(S),Q=rn(n),X=rn(T),[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&&(y?(J(r.id),null==H||H.events.emit("virtualfocus",r),M&&(M.current=r)):_t(r,{preventScroll:!0,sync:!(!C()||!j())&&(ir||G.current)}),requestAnimationFrame((()=>{const e=X.current;e&&r&&(n||!Y.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));Ct((()=>{document.createElement("div").focus({get preventScroll(){return ir=!0,!1}})}),[]),Ct((()=>{p&&(n&&c?W.current&&null!=f&&(K.current=!0,B.current=f,U(f)):q.current&&(B.current=-1,V.current(null)))}),[p,n,c,f,U]),Ct((()=>{if(p&&n&&c)if(null==l){if(G.current=!1,null!=f)return;if(q.current&&(B.current=-1,ne(s,B)),!q.current&&W.current&&(null!=z.current||!0===W.current&&null==z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else B.current=null==z.current||sr(z.current,P,v)||g?Ot(s,$.current):xt(s,$.current),z.current=null,U(B.current)};t()}}else wt(s,l)||(B.current=l,ne(s,B,K.current),K.current=!1)}),[p,n,c,l,f,g,s,P,v,U,ne,$]),Ct((()=>{var e;if(!p||c||!H||y||!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(I(c)),o=t.some((e=>e.context&&k(e.context.elements.floating,r)));n&&!o&&Y.current&&n.focus({preventScroll:!0})}),[p,c,H,R,y]),Ct((()=>{if(p&&H&&y&&!R)return H.events.on("virtualfocus",e),()=>{H.events.off("virtualfocus",e)};function e(e){te(e.id),M&&(M.current=e)}}),[p,H,y,R,M]),Ct((()=>{V.current=U,q.current=!!c})),Ct((()=>{n||(z.current=null)}),[n]);const re=null!=l,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&U(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;Y.current&&"touch"!==t&&(B.current=-1,ne(s,B),U(null),y||_t(i.floating.current,{preventScroll:!0}))}}}}),[n,i,ne,w,s,U,y]);return r.useMemo((()=>{if(!p)return{};const e=$.current;function t(t){if(Y.current=!1,G.current=!0,!Q.current&&t.currentTarget===i.floating.current)return;if(g&&ur(t.key,P,v))return L(t),o(!1,t.nativeEvent,"list-navigation"),void(u(a)&&!y&&a.focus());const r=B.current,c=Ot(s,e),l=xt(s,e);if("Home"===t.key&&(L(t),B.current=c,U(B.current)),"End"===t.key&&(L(t),B.current=l,U(B.current)),_>1){const n=N||Array.from({length:s.current.length},(()=>({width:1,height:1}))),r=Pt(n,_,A),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),i=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if(B.current=r[St({current:r.map((e=>null!=e?s.current[e]:null))},{event:t,orientation:P,loop:m,cols:_,disabledIndices:Dt([...e||[],void 0],r),minIndex:o,maxIndex:i,prevIndex:Et(B.current,n,r,_,t.key===gt?"bl":t.key===yt?"tr":"tl"),stopEvent:!0})],U(B.current),"both"===P)return}if(cr(t.key,P)){if(L(t),n&&!y&&x(t.currentTarget.ownerDocument)===t.currentTarget)return B.current=sr(t.key,P,v)?c:l,void U(B.current);sr(t.key,P,v)?B.current=m?r>=l?h&&r!==s.current.length?-1:c:kt(s,{startingIndex:r,disabledIndices:e}):Math.min(l,kt(s,{startingIndex:r,disabledIndices:e})):B.current=m?r<=c?h&&-1!==r?s.current.length:l:kt(s,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(c,kt(s,{startingIndex:r,decrement:!0,disabledIndices:e})),wt(s,B.current)?U(null):U(B.current)}}function r(e){"auto"===b&&E(e.nativeEvent)&&(W.current=!0)}const c=y&&n&&re&&{"aria-activedescendant":ee||Z},l=s.current.find((e=>(null==e?void 0:e.id)===Z));return{reference:{...c,onKeyDown(r){Y.current=!1;const i=0===r.key.indexOf("Arrow"),a=function(e,t,n){return ar(t,n?e===vt:e===yt,e===gt)}(r.key,P,v),c=ur(r.key,P,v),u=cr(r.key,P),d=(g?a:u)||"Enter"===r.key||""===r.key.trim();if(y&&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,i){i>r&&(n=o,r=i),pn(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(H.nodesRef.current,e.id):null;if(i&&n&&M){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(a||c){var p,h;const t=(null==(p=n.context)?void 0:p.elements.domReference)===r.currentTarget,o=c&&!t?null==(h=n.context)?void 0:h.elements.domReference:a?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||!i)&&(d&&(z.current=g&&u?null:r.key),g?a&&(L(r),n?(B.current=Ot(s,e),U(B.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=f&&(B.current=f),L(r),!n&&O?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&U(B.current)))},onFocus(){n&&U(null)},onPointerDown:function(e){W.current=b,"auto"===b&&D(e.nativeEvent)&&(W.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===P?void 0:P,...!F(a)&&c,onKeyDown:t,onPointerMove(){Y.current=!0}},item:oe}}),[a,i,Z,ee,$,Q,s,p,P,v,y,n,re,g,f,O,h,_,m,b,U,o,oe,H,M,N,A])}const dr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:i}=e,{enabled:a=!0,role:c="dialog"}=t,s=null!=(n=dr.get(c))?n:c,u=qt(),l=null!=Xt();return r.useMemo((()=>{if(!a)return{};const e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===c?{reference:{["aria-"+("label"===c?"labelledby":"describedby")]:o?i:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":o?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:u},..."menu"===s&&l&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===s&&{"aria-labelledby":u}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(c){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[a,c,s,o,i,u,l])}const fr=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:i=250}=t,a=("number"==typeof i?i:i.close)||0,[c,s]=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,a);return Ct((()=>{c&&!d&&l("unmounted")}),[c,d]),Ct((()=>{if(o){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}s(!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:i,common:a,duration:c=250}=t,s=e.placement,u=s.split("-")[0],l=r.useMemo((()=>({side:u,placement:s})),[u,s]),d="number"==typeof c,p=(d?c:c.open)||0,f=(d?c:c.close)||0,[h,m]=r.useState((()=>({...hr(a,l),...hr(n,l)}))),{isMounted:g,status:v}=mr(e,{duration:c}),y=rn(n),b=rn(o),w=rn(i),O=rn(a);return Ct((()=>{const e=hr(y.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"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(fr).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(fr).join(","),transitionDuration:f+"ms",...n,...r})}}),[f,w,y,b,O,p,v,l]),{isMounted:g,styles:h}}function vr(e,t){var n;const{open:o,dataRef:i}=e,{listRef:a,activeIndex:c,onMatch:s,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:f=[],selectedIndex:h=null}=t,m=r.useRef(),g=r.useRef(""),v=r.useRef(null!=(n=null!=h?h:c)?n:-1),y=r.useRef(null),b=ht(s),w=ht(u),O=rn(d),x=rn(f);return Ct((()=>{o&&(clearTimeout(m.current),y.current=null,g.current="")}),[o]),Ct((()=>{var e;o&&""===g.current&&(v.current=null!=(e=null!=h?h:c)?e:-1)}),[o,h,c]),r.useMemo((()=>{if(!l)return{};function e(e){e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.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=a.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="",v.current=y.current),g.current+=n.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,e(!1)}),p);const i=v.current,c=t(r,[...r.slice((i||0)+1),...r.slice(0,(i||0)+1)],g.current);-1!==c?(b(c),y.current=c):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[l,o,i,a,p,x,O,b,w])}function yr(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:i=0,index:a=0,minItemsVisible:c=4,referenceOverflowThreshold:s=0,scrollRef:u,...l}=e,{rects:d,elements:{floating:p}}=t,f=n.current[a];if(!f)return{};const h={...t,...await fe(-f.offsetTop-p.clientTop-d.reference.height/2-f.offsetHeight/2-i).fn(t)},m=(null==u?void 0:u.current)||p,g=await ue(yr(h,m.scrollHeight),l),v=await ue(h,{...l,elementContext:"reference"}),y=Math.max(0,g.top),b=h.y+y,w=Math.max(0,m.scrollHeight-y-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=y,o&&(m.offsetHeight<f.offsetHeight*Math.min(c,n.current.length-1)-1||v.top>=-s||v.bottom>=-s?(0,He.flushSync)((()=>o(!0))):(0,He.flushSync)((()=>o(!1)))),r&&(r.current=await ue(yr({...h,y:b},m.offsetHeight),l)),{y:b}}});function wr(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:c,onChange:s}=t,u=ht(s),l=r.useRef(!1),d=r.useRef(null),p=r.useRef(null);return r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,c=n<0?-1:1,s=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,He.flushSync)((()=>{u((e=>e+Math[s](n,i*c)))}))):/firefox/i.test(P())&&(t.scrollTop+=n))}const t=(null==c?void 0:c.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(p.current={...a.current})})),()=>{d.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,c,u]),r.useMemo((()=>i?{floating:{onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){const e=(null==c?void 0:c.current)||o.floating;if(a.current&&e&&l.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&(0,He.flushSync)((()=>u((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[i,a,o.floating,c,u])}function Or(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,c]=t[e]||[0,0],[s,u]=t[a]||[0,0];c>=r!=u>=r&&n<=(s-i)*(r-c)/(u-c)+i&&(o=!o)}return o}function xr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,c=null,u=performance.now();const l=e=>{let{x:n,y:l,placement:d,elements:p,onClose:f,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!p.domReference||!p.floating||null==d||null==n||null==l)return;const{clientX:v,clientY:y}=e,b=[v,y],w=N(e),O="mouseleave"===e.type,x=k(p.floating,w),S=k(p.domReference,w),P=p.domReference.getBoundingClientRect(),E=p.floating.getBoundingClientRect(),D=d.split("-")[0],j=n>E.right-E.width/2,_=l>E.bottom-E.height/2,C=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),T=E.width>P.width,I=E.height>P.height,M=(T?P:E).left,A=(T?P:E).right,R=(I?P:E).top,L=(I?P:E).bottom;if(x&&(i=!0,!O))return;if(S&&(i=!1),S&&!O)return void(i=!0);if(O&&s(e.relatedTarget)&&k(p.floating,e.relatedTarget))return;if(m&&pn(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],[A,E.bottom-1],[A,P.top+1]];break;case"bottom":F=[[M,E.top+1],[M,P.bottom-1],[A,P.bottom-1],[A,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([v,y],F)){if(i&&!C)return g();if(!O&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===a||null===c||0===r)return a=e,c=t,u=n,null;const o=e-a,i=t-c,s=Math.sqrt(o*o+i*i);return a=e,c=t,u=n,s/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Or([v,y],function(e){let[n,r]=e;switch(D){case"top":return[[T?n+t/2:j?n+4*t:n-4*t,r+t+1],[T?n-t/2:j?n+4*t:n-4*t,r+t+1],...[[E.left,j||T?E.bottom-t:E.top],[E.right,j?T?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[T?n+t/2:j?n+4*t:n-4*t,r-t],[T?n-t/2:j?n+4*t:n-4*t,r-t],...[[E.left,j||T?E.top+t:E.bottom],[E.right,j?T?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,I?r+t/2:_?r+4*t:r-4*t],o=[n+t+1,I?r-t/2:_?r+4*t:r-4*t];return[...[[_||I?E.right-t:E.left,E.top],[_?I?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,I?r+t/2:_?r+4*t:r-4*t],[n-t,I?r-t/2:_?r+4*t:r-4*t],...[[_||I?E.left+t:E.right,E.top],[_?I?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,l]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return l.__options={blockPointerEvents:n},l}},35264:(e,t)=>{"use strict";t.c=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},87836:(e,t,n)=>{"use strict";n.d(t,{c:()=>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:"#B9B9B9",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"}}},79304:(e,t,n)=>{"use strict";var r=n(3268),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},79072:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r,o=n(86692),i=n(80560).cp.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,o.c)([""])))},30392:(e,t,n)=>{"use strict";n.d(t,{_:()=>p._,c:()=>d});var r,o=n(52536),i=n(69624),a=n.n(i),c=n(17624);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?s(Object(n),!0).forEach((function(t){(0,o.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,i.lazy)((function(){return Promise.all([n.e(952),n.e(648),n.e(448)]).then(n.bind(n,63852))}));const d=function(e){return(0,c.jsx)(i.Suspense,{fallback:r||(r=(0,c.jsx)(a().Fragment,{})),children:(0,c.jsx)(l,u({},e))})};var p=n(79072)},90624:(e,t,n)=>{"use strict";n.d(t,{cp:()=>d});n(3268);var r,o=n(30392),i=n(67664),a=n(86692),c=n(80560);const s=c.cp.a.withConfig({displayName:"StyledLink"})(r||(r=(0,a.c)(["\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,i.Gj)(),(function(e){return e.breakWords?(0,i._w)():(0,i.GI)()}),i.gn.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(17624),l=function(e){var t=e.alt,n=e.breakWords,r=e.download,a=e.href,c=e.neutral,l=e.onClick,d=e.rel,p=e.tabIndex,f=e.target,h=e.title,m=e.label,g=e.icon,v=e.children,y=e.useTitle,b=h||(n?void 0:m);return(0,u.jsxs)(s,{alt:t,breakWords:n,download:r,href:a,neutral:c,onClick:l,rel:d,tabIndex:p,target:f,title:y?b:void 0,children:[g&&(0,u.jsx)(o.c,{icon:g,position:i.Wn.position.PREPEND}),m||v]})};l.defaultProps={breakWords:!0,useTitle:!0,href:"#",target:"_self"};const d=l;var p,f=n(96684);(0,c.cp)(f.cH)(p||(p=(0,a.c)(["\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,i.Gj)(),i.Il.color("secondary"),i.Il.color("text"),i.Il.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?i.Il.color("text"):i.Il.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}))},93896:(e,t,n)=>{"use strict";n.d(t,{AP:()=>A,C6:()=>G,E5:()=>B,G0:()=>U,IT:()=>_,If:()=>H,KI:()=>R,UL:()=>z,Ww:()=>W,eE:()=>M,gJ:()=>Y,mU:()=>T,mo:()=>q,od:()=>I,oh:()=>L,ov:()=>V,qQ:()=>F,sD:()=>j,sr:()=>C,u6:()=>D,wn:()=>N});var r,o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w,O,x,k,S=n(86692),P=n(80560),E=n(67664),D=P.cp.b.withConfig({displayName:"StyledB"})(r||(r=(0,S.c)(["\n && {\n ","\n }\n ","\n"])),(0,E.Gj)({fontWeight:E.Il.fontWeight("bold")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),j=P.cp.code.withConfig({displayName:"StyledCode"})(o||(o=(0,S.c)(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),E.Il.color("backgroundTypographyCode"),E.Il.radii("form"),E.aU.space(-4),E.aU.space(-2)),_=P.cp.del.withConfig({displayName:"StyledDel"})(i||(i=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),C=P.cp.em.withConfig({displayName:"StyledEm"})(a||(a=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),T=P.cp.figcaption.withConfig({displayName:"StyledFigcaption"})(c||(c=(0,S.c)(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-2),E.aU.space(-1)),I=P.cp.i.withConfig({displayName:"StyledI"})(s||(s=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),M=P.cp.ins.withConfig({displayName:"StyledIns"})(u||(u=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),N=P.cp.label.withConfig({displayName:"StyledLabel"})(l||(l=(0,S.c)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-1)),A=P.cp.mark.withConfig({displayName:"StyledMark"})(d||(d=(0,S.c)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),color:E.Il.color("paper")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.Il.color("signal.info"),E.Il.radii("form"),E.aU.space(-4),E.aU.space(-2)),R=P.cp.p.withConfig({displayName:"StyledP"})(p||(p=(0,S.c)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-1)),L=P.cp.pre.withConfig({displayName:"StyledPre"})(f||(f=(0,S.c)(["\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.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.Il.color("backgroundTypographyCode"),E.Il.radii("form"),E.Il.color("border"),E.aU.space(-1),E.aU.space(-3),E.aU.space(-2)),F=P.cp.s.withConfig({displayName:"StyledS"})(h||(h=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),H=P.cp.small.withConfig({displayName:"StyledSmall"})(m||(m=(0,S.c)(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,E.Gj)(),E.Il.fontSize("factor"),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),U=P.cp.span.withConfig({displayName:"StyledSpan"})(g||(g=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),W=P.cp.sub.withConfig({displayName:"StyledSub"})(v||(v=(0,S.c)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),B=P.cp.sup.withConfig({displayName:"StyledSup"})(y||(y=(0,S.c)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),z=P.cp.strong.withConfig({displayName:"StyledStrong"})(b||(b=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontWeight:E.Il.fontWeight("bold")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),Y=P.cp.time.withConfig({displayName:"StyledTime"})(w||(w=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),V=P.cp.u.withConfig({displayName:"StyledU"})(O||(O=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),q=P.cp.var.withConfig({displayName:"StyledVar"})(x||(x=(0,S.c)(["\n && {\n ","\n ","\n\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),G=P.cp.q.withConfig({displayName:"StyledQ"})(k||(k=(0,S.c)(["\n && {\n ","\n ","\n\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}))},13356:(e,t,n)=>{"use strict";n.d(t,{cJ:()=>m,wn:()=>Y.wn,cP:()=>F,G0:()=>Y.G0,KM:()=>W,my:()=>he,cp:()=>me});n(3268);var r,o,i,a,c,s,u,l=n(67664),d=n(86692),p=n(80560),f=function(e){var t;switch(e.styledLike){case"H1":t=l.aU.font(5)(e);break;case"H2":t=l.aU.font(4)(e);break;case"H3":t=l.aU.font(3)(e);break;case"H4":t=l.aU.font(2)(e);break;case"H5":t=l.aU.font(1)(e);break;default:t=l.aU.font(0)(e)}return(0,l.Gj)({fontWeight:l.gn.fontWeight("bold"),fontSize:t})},h=function(e){return(0,p.gV)(r||(r=(0,d.c)(["\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.aU.space(0),l.aU.space(-1))},m=p.cp.h1.withConfig({displayName:"StyledH1"})(o||(o=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),g=p.cp.h2.withConfig({displayName:"StyledH2"})(i||(i=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),v=p.cp.h3.withConfig({displayName:"StyledH3"})(a||(a=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),y=p.cp.h4.withConfig({displayName:"StyledH4"})(c||(c=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),b=p.cp.h5.withConfig({displayName:"StyledH5"})(s||(s=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),w=p.cp.h6.withConfig({displayName:"StyledH6"})(u||(u=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),O=n(17624),x=function(e){return(0,O.jsx)(m,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(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.gL)(e.children),children:e.children})};k.defaultProps={breakWords:!0,styledLike:"H2"};var S=function(e){return(0,O.jsx)(v,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};S.defaultProps={breakWords:!0,styledLike:"H3"};var P=function(e){return(0,O.jsx)(y,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(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.gL)(e.children),children:e.children})};E.defaultProps={breakWords:!0,styledLike:"H5"};var D,j,_,C,T,I,M,N=function(e){return(0,O.jsx)(w,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};N.defaultProps={breakWords:!0,styledLike:"H6"};var A=p.cp.dd.withConfig({displayName:"StyledDd"})(D||(D=(0,d.c)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Gj)(),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),R=p.cp.dl.withConfig({displayName:"StyledDl"})(j||(j=(0,d.c)(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.aU.space(-1)),L=p.cp.dt.withConfig({displayName:"StyledDt"})(_||(_=(0,d.c)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Gj)({fontWeight:l.gn.fontWeight("bold")}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),F=p.cp.li.withConfig({displayName:"StyledLi"})(C||(C=(0,d.c)(["\n && {\n ","\n ","\n }\n"])),(0,l.Gj)(),(0,l._w)()),H=p.cp.ol.withConfig({displayName:"StyledList"})(T||(T=(0,d.c)(["\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.aU.space(-1),l.aU.space(-.1)),U=(0,p.cp)(H).withConfig({displayName:"StyledOl"})(I||(I=(0,d.c)(["\n list-style-type: decimal;\n"]))),W=(0,p.cp)(H).withConfig({displayName:"StyledUl"})(M||(M=(0,d.c)(["\n && {\n list-style-type: disc;\n }\n"]))),B=function(e){return(0,O.jsx)(A,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})},z=function(e){return(0,O.jsx)(L,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};B.defaultProps=z.defaultProps={breakWords:!0};var Y=n(93896),V=function(e){return(0,O.jsx)(Y.u6,{breakWords:e.breakWords,title:de(e),children:e.children})},q=function(e){return(0,O.jsx)(Y.sD,{title:de(e),children:e.children})},G=function(e){return(0,O.jsx)(Y.IT,{breakWords:e.breakWords,title:de(e),children:e.children})},K=function(e){return(0,O.jsx)(Y.sr,{breakWords:e.breakWords,title:de(e),children:e.children})},$=function(e){return(0,O.jsx)(Y.mU,{breakWords:e.breakWords,title:de(e),children:e.children})},Q=function(e){return(0,O.jsx)(Y.od,{breakWords:e.breakWords,title:de(e),children:e.children})},X=function(e){return(0,O.jsx)(Y.eE,{breakWords:e.breakWords,title:de(e),children:e.children})},Z=function(e){return(0,O.jsx)(Y.AP,{breakWords:e.breakWords,title:de(e),children:e.children})},J=function(e){return(0,O.jsx)(Y.KI,{breakWords:e.breakWords,title:de(e),children:e.children})},ee=function(e){return(0,O.jsx)(Y.oh,{breakWords:e.breakWords,title:de(e),children:e.children})},te=function(e){return(0,O.jsx)(Y.qQ,{breakWords:e.breakWords,title:de(e),children:e.children})},ne=function(e){return(0,O.jsx)(Y.If,{breakWords:e.breakWords,title:de(e),children:e.children})},re=function(e){return(0,O.jsx)(Y.G0,{breakWords:e.breakWords,title:de(e),children:e.children})},oe=function(e){return(0,O.jsx)(Y.Ww,{breakWords:e.breakWords,title:de(e),children:e.children})},ie=function(e){return(0,O.jsx)(Y.E5,{breakWords:e.breakWords,title:de(e),children:e.children})},ae=function(e){return(0,O.jsx)(Y.UL,{breakWords:e.breakWords,title:de(e),children:e.children})},ce=function(e){return(0,O.jsx)(Y.gJ,{breakWords:e.breakWords,title:e.title,dateTime:e.dateTime,children:e.children})},se=function(e){return(0,O.jsx)(Y.ov,{breakWords:e.breakWords,title:de(e),children:e.children})},ue=function(e){return(0,O.jsx)(Y.mo,{breakWords:e.breakWords,title:de(e),children:e.children})},le=function(e){return(0,O.jsx)(Y.C6,{breakWords:e.breakWords,title:de(e),children:e.children})},de=function(e){return!e.useTitle||e.breakWords?void 0:(0,l.gL)(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=ae.defaultProps=oe.defaultProps=ie.defaultProps=se.defaultProps=ue.defaultProps={breakWords:!0,useTitle:!0},ce.defaultProps={breakWords:!1};var pe=n(19448),fe=n.n(pe),he=function(e,t){var n="\n color: ".concat(l.gn.color("text")(e),";\n font-family: ").concat(l.gn.fontFamily("regular")(e),";\n font-size: ").concat(l.aU.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(l.gn.fontWeight("regular")(e),";\n line-height: ").concat(l.gn.lineHeight("regular")(e),";\n\n a {\n color: ").concat(l.gn.color("secondaryLight")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(fe()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(fe()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(l.gn.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.aU.font(5)(e),";}\n h2 {font-size: ").concat(l.aU.font(4)(e),";}\n h3 {font-size: ").concat(l.aU.font(3)(e),";}\n h4 {font-size: ").concat(l.aU.font(2)(e),";}\n h5 {font-size: ").concat(l.aU.font(1)(e),";}\n h6 {font-size: ").concat(l.aU.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(l.gn.fontWeight("bold")(e),";\n margin-top: ").concat(l.aU.space(0)(e),";\n margin-bottom: ").concat(l.aU.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.aU.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.aU.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:N,Dd:B,Dt:z,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)(U,{children:e.children})},Ul:function(e){return(0,O.jsx)(W,{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)(Y.wn,{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:ae,Sub:oe,Sup:ie,Time:ce,U:se,Var:ue}},67664:(e,t,n)=>{"use strict";n.d(t,{mA:()=>a,Ml:()=>i,i:()=>le,Gj:()=>de,GI:()=>pe,_w:()=>fe,Wn:()=>Pe,gL:()=>Te,e4:()=>Ne,iY:()=>Ee,aU:()=>Be,gn:()=>He,Il:()=>Ye,sH:()=>ze});var r=n(19448),o=n.n(r),i={base:function(e){var t=e.theme;return o()(t,"colors.text")},shade1:function(e){var t=e.theme;return o()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return o()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return o()(t,"colors.signal.info")}},a={base:function(e){var t=e.theme;return o()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return o()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},c=n(86692);function s(){return s=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},s.apply(this,arguments)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t,n){return d=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}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o},d.apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)},p(e)}var f=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),r}(p(Error));function h(e,t){return e.substr(-t.length)===t}var m=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function g(e){return"string"!=typeof e?e:e.match(m)?parseFloat(e):e}var v=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!h(t,"px"))throw new f(69,e,t);r=g(t)}if("string"==typeof n){if(!h(n,"px"))throw new f(70,e,n);o=g(n)}if("string"==typeof r)throw new f(71,t,e);if("string"==typeof o)throw new f(72,n,e);return""+r/o+e}};v("em");v("rem");function y(e){return Math.round(255*e)}function b(e,t,n){return y(e)+","+y(t)+","+y(n)}function w(e,t,n,r){if(void 0===r&&(r=b),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),c=0,s=0,u=0;o>=0&&o<1?(c=i,s=a):o>=1&&o<2?(c=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(c=a,u=i):o>=5&&o<6&&(c=i,u=a);var l=n-i/2;return r(c+l,s+l,u+l)}var O={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var x=/^#[a-fA-F0-9]{6}$/,k=/^#[a-fA-F0-9]{8}$/,S=/^#[a-fA-F0-9]{3}$/,P=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,D=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,j=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function C(e){if("string"!=typeof e)throw new f(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return O[t]?"#"+O[t]:e}(e);if(t.match(x))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(k)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(S))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(P)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=E.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=D.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=j.exec(t);if(a){var c="rgb("+w(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=E.exec(c);if(!s)throw new f(4,t,c);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var u=_.exec(t.substring(0,50));if(u){var l="rgb("+w(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=E.exec(l);if(!d)throw new f(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new f(5)}function T(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),c=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var s=i-a,u=c>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:c,alpha:e.alpha}:{hue:t,saturation:u,lightness:c}}(C(e))}var I=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function N(e){return M(Math.round(255*e))}function A(e,t,n){return I("#"+N(e)+N(t)+N(n))}function R(e,t,n){return w(e,t,n,A)}function L(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return R(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return R(e.hue,e.saturation,e.lightness);throw new f(1)}function F(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?R(e,t,n):"rgba("+w(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?R(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function H(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return I("#"+M(e)+M(t)+M(n));if("object"==typeof e&&void 0===t&&void 0===n)return I("#"+M(e.red)+M(e.green)+M(e.blue));throw new f(6)}function U(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=C(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?H(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?H(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}var W=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},B=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},z=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Y=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function V(e){if("object"!=typeof e)throw new f(8);if(B(e))return U(e);if(W(e))return H(e);if(Y(e))return F(e);if(z(e))return L(e);throw new f(8)}function q(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):q(e,t,r)}}function G(e){return q(e,e.length,[])}G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{hue:n.hue+parseFloat(e)}))}));function K(e,t,n){return Math.max(e,Math.min(t,n))}G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{lightness:K(0,1,n.lightness-parseFloat(e))}))}));G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{saturation:K(0,1,n.saturation-parseFloat(e))}))}));function $(e){if("transparent"===e)return 0;var t=C(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Q(e,t){var n=$(e),r=$(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var X=G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{lightness:K(0,1,n.lightness+parseFloat(e))}))})),Z=X;var J=G((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=C(t),o=s({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=C(n),a=s({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),c=o.alpha-a.alpha,u=2*parseFloat(e)-1,l=((u*c==-1?u:u+c)/(1+u*c)+1)/2,d=1-l;return U({red:Math.floor(o.red*l+a.red*d),green:Math.floor(o.green*l+a.green*d),blue:Math.floor(o.blue*l+a.blue*d),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),ee=J;G((function(e,t){if("transparent"===t)return t;var n=C(t);return U(s({},n,{alpha:K(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var te="#000",ne="#fff";G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{saturation:K(0,1,n.saturation+parseFloat(e))}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{hue:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{lightness:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{saturation:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:ee(parseFloat(e),"rgb(0, 0, 0)",t)}));var re=G((function(e,t){return"transparent"===t?t:ee(parseFloat(e),"rgb(255, 255, 255)",t)})),oe=re;var ie=G((function(e,t){if("transparent"===t)return t;var n=C(t);return U(s({},n,{alpha:K(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),ae=ie;var ce,se,ue=n(80560),le=function(e){var t=o()(e.theme,"colors.signal.info",Pe.fallbackColors.INFO);return(0,ue.gV)(ce||(ce=(0,c.c)(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,ae(.4,t))};const de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ue.gV)(se||(se=(0,c.c)(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||He.color("text"),e.fontFamily||He.fontFamily("regular"),e.fontSize||Be.font(0),e.fontStyle||"normal",e.fontWeight||He.fontWeight("regular"),e.lineHeight||He.lineHeight("regular"))};var pe=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},fe=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"},he=n(3268),me=n.n(he),ge={NONE:"none",SPIN:"spin"},ve={BASE:"base",PRIMARY:"primary",SECONDARY:"secondary"},ye={BOX:"layoutBox",CONTAINER:"layoutContainer",NONE:"none"},be={BALL:"ball",FLAT:"flat",PLAIN:"plain",RAISED:"raised"},we={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},Oe=me().oneOf(Object.values(ge)),xe=me().oneOf(Object.values(ve)),ke=me().oneOf(Object.values(be)),Se=me().oneOf(Object.values(we));const Pe={animation:ge,animationPropTypes:Oe,condition:{BASE:"base",DANGER:"danger",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",INFO:"info"},ink:ve,inkPropTypes:xe,layout:ye,layoutPropTypes:me().oneOf(Object.values(ye)),look:be,lookPropTypes:ke,fallbackColors:{SHADE:"#000000",INFO:"#0000ff",TEXT:"#010101",PAPER:"#fefefe"},format:{HTML:"html",SVG:"svg"},oneOfPropTypeAndCompletelyMapped:function(e,t){return me().oneOf(Object.values(e))},position:we,positionPropTypes:Se};var Ee="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;n(79088);var De=n(81568),je=n(69624),_e=n.n(je),Ce=function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};const Te=function e(t){var n="";return _e().Children.map(t,(function(t,r){"string"==typeof t||"number"==typeof t?n="".concat(n).concat(t):"object"===(0,De.c)(t)&&t.props.children?n="".concat(n).concat(e(t.props.children)):"object"===(0,De.c)(t)&&t.props.dangerouslySetInnerHTML&&(n="".concat(n," ").concat(Ce(t.props.dangerouslySetInnerHTML.__html)))})),n};var Ie,Me=function(e,t){return function(e,t,n,r){void 0===t&&(t=te),void 0===n&&(n=ne),void 0===r&&(r=!0);var o=$(e)>.179,i=o?t:n;return!r||Q(e,i)>=4.5?i:o?te:ne}(e,He.color("text")({theme:t}),He.color("paper")({theme:t}))};const Ne=function(e){var t=e.ink,n=e.look,r=e.theme,o=function(e,t,n){var r="secondary"===e&&"raised"===t;return"primary"===e&&"raised"===t?He.color("primary")({theme:n}):r?He.color("secondary")({theme:n}):He.color("paper")({theme:n})}(t,n,r),i=function(e,t,n,r){return"primary"===e&&"raised"!==t?He.color("primary")({theme:n}):Me(r,n)}(t,n,r,o),a=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(He.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?He.color("primaryLight")({theme:n}):He.color("secondaryLight")({theme:n}):He.color("backgroundItemHover")({theme:n})}(t,n,r),u=function(e,t,n){return"raised"===e?He.color("paper")({theme:t}):Me(n,t)}(n,r,o);return(0,ue.gV)(Ie||(Ie=(0,c.c)(["\n && {\n color: ",";\n }\n background: ",";\n box-shadow: ",";\n outline: none;\n border: none;\n\n &:focus,\n &:hover {\n background: ",";\n color: ",";\n }\n\n &:active,\n &[aria-pressed='true'] {\n background: ",";\n }\n\n &:disabled,\n &[disabled] {\n background: ",";\n opacity: 0.5;\n cursor: not-allowed;\n }\n "])),i,o,a,s,u,Z(.1,s),"dark"!==r.name?oe(.41,o):"transparent")};var Ae=n(41400),Re=n.n(Ae),Le=n(87836),Fe=function(e){return 0===Object.keys(e).length?Le.c:e};const He={color:function(e){return function(t){var n=t.theme;return o()(Fe(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(Fe(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(Fe(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(Fe(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(Fe(n),"specificProperties.".concat(e))}}};var Ue=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(Re()(We(t,e,n),3)).concat(r)},We=function(e,t,n){return Math.pow(n,t)*e};const Be={declareScale:Ue,exponentiate:We,font:function(e,t){return function(n){return Ue(e,He.fontSize("base")(n),He.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ue(e,He.space("base")(n),He.space("factor")(n),t)}}};n(32920);var ze=function(e){(0,je.useEffect)((function(){var t=function(t){"Enter"===t.key&&"TEXTAREA"!==t.target.tagName&&(t.preventDefault(),t.stopPropagation(),e())};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}),[e])};(function(){window.onload=function(){var e=0,t=function(){new Date-e<500||document.body.classList.add("hasHover")};document.addEventListener("touchstart",(function(){e=new Date}),!0),document.addEventListener("touchstart",(function(){document.body.classList.remove("hasHover")}),!0),document.addEventListener("mousemove",t,!0),t()}})();var Ye=He},8688:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={log:function(){var e;window.console&&(e=console).log.apply(e,arguments)},logError:function(){window.console&&(console.error||console.log).apply(void 0,arguments)},logWarning:function(){window.console&&(console.warn||console.log).apply(void 0,arguments)}}},61536:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>g,EV:()=>s,GW:()=>o,I9:()=>h,Mk:()=>u,Q$:()=>f,YV:()=>l,dD:()=>i,kj:()=>p,kx:()=>a,uA:()=>d,uE:()=>v,uQ:()=>m});var r=n(8688),o="__n-u-l-l__",i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},a=Object.values(i),c={backendUrl:void 0,businessUnit:void 0,embedType:i.admin,widgetConfigKey:void 0},s=function(){return c.backendUrl||""},u=function(e){c.backendUrl=e},l=function(){return c.businessUnit},d=function(e){c.businessUnit=e},p=function(){return c.embedType},f=function(){var e=p();return[i.admin,i.legacyAdmin].includes(e)},h=function(){var e=p();return[i.widget].includes(e)},m=function(e){a.includes(e)?c.embedType=e:r.c.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(a.join(", ")))},g=function(){return c.widgetConfigKey},v=function(e){c.widgetConfigKey=e}},57292:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var r=n(52536),o=n(8688),i=n(61536),a=n(17624);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}var s=function(e){var t=e.mapping;return t[(0,i.kj)()||i.dD.admin]||t[i.dD.admin]};const u=function(e){var t=e.mapping;e.propTypes;return function(e){var n=s({mapping:t});return n||o.c.logError("Unable to render embed component: No embed component defined."),(0,a.jsx)(n,function(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,r.c)(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}({},e))}};const l={EmbedType:i.dD,isInAdminEmbedded:i.Q$,isInWidgetEmbedded:i.I9,embedStrategyFactory:u,embedStrategy:s,getBackendUrl:i.EV,setBackendUrl:i.Mk,getBusinessUnit:i.YV,setBusinessUnit:i.uA,getEmbedType:i.kj,setEmbedType:i.uQ,getWidgetConfigKey:i.AJ,setWidgetConfigKey:i.uE,NULL_BUSINESS_UNIT:i.GW,ALLOWED_EMBED_TYPES:i.kx,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&(0,i.Mk)(e.backendUrl),e.businessUnit&&(0,i.uA)(e.businessUnit),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&(0,i.uQ)(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&(0,i.uE)(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},86280:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2062),o="_tocco_originId";const i={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},90800:(e,t,n)=>{"use strict";n.d(t,{c:()=>p});var r=n(52536),o=n(81568),i=n(57292),a=n(86280);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 s(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,r.c)(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 u={method:"GET",credentials:"include"},l=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===(0,o.c)(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",a.c.getOriginId()),!t.has("X-Business-Unit")&&i.c.getBusinessUnit()&&t.set("X-Business-Unit",i.c.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",i.c.isInAdminEmbedded()?"client":"widget"),t},d=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)};const p={prepareHeaders:l,prepareUrl:d,executeRequest:function(e){var t=function(e){return s(s(s({},u),e),{},{headers:l(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=i.c.getBackendUrl(),r=d(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},89080:(e,t)=>{var n;
|
|
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=[],i=Array.from(t);i.length;){var a=i.shift();if(!Xe(a,!1))if("SLOT"===a.tagName){var c=a.assignedElements(),s=e(c.length?c:a.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:a,candidates:s})}else{$e.call(a,Ge)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),l=!Xe(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&l){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.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)},it=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},at=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 it(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,c=Qe(e);if(a&&!a.shadowRoot&&!0===r(a))return it(e);e=e.assignedSlot?e.assignedSlot:a||c===e.ownerDocument?a:c.host}e=i}if(function(e){var t,n,r,o,i=e&&Qe(e),a=null===(t=i)||void 0===t?void 0:t.host,c=!1;if(i&&i!==e)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!c&&a;){var s,u,l;c=!(null===(u=a=null===(s=i=Qe(a))||void 0===s?void 0:s.host)||void 0===u||null===(l=u.ownerDocument)||void 0===l||!l.contains(a))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ct=function(e,t){return!(t.disabled||Xe(t)||function(e){return rt(e)&&"hidden"===e.type}(t)||at(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))},st=function(e,t){return!(ot(t)||tt(t)<0||!ct(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 i=!!t.scopeParent,a=i?t.scopeParent:t,c=function(e,t){var n=tt(e);return n<0&&t&&!et(e)?0:n}(a,i),s=i?e(t.candidates):a;0===c?i?n.push.apply(n,s):n.push(a):r.push({documentOrder:o,tabIndex:c,item:t,isScope:i,content:s})})),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:st.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ut}):Ze(e,t.includeContainer,st.bind(null,t)),lt(n)};function pt(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 ft=r["useInsertionEffect".toString()]||(e=>e());function ht(e){const t=r.useRef((()=>{0}));return ft((()=>{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",vt="ArrowLeft",yt="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:i=1}=void 0===t?{}:t;const a=e.current,c=o?e=>o.includes(e):e=>{const t=a[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&c(s));return s}function St(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:a,minIndex:c,maxIndex:s,prevIndex:u,stopEvent:l=!1}=t,d=u;if(n.key===mt){if(l&&L(n),-1===u)d=s;else if(d=kt(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:a}),o&&(u-i<c||d<0)){const e=u%i,t=s%i,n=s-(t-e);d=t===e?s:t>e?n:n-i}wt(e,d)&&(d=u)}if(n.key===gt&&(l&&L(n),-1===u?d=c:(d=kt(e,{startingIndex:u,amount:i,disabledIndices:a}),o&&u+i>s&&(d=kt(e,{startingIndex:u%i-i,amount:i,disabledIndices:a}))),wt(e,d)&&(d=u)),"both"===r){const t=V(u/i);n.key===yt&&(l&&L(n),u%i!=i-1?(d=kt(e,{startingIndex:u,disabledIndices:a}),o&&bt(d,i,t)&&(d=kt(e,{startingIndex:u-u%i-1,disabledIndices:a}))):o&&(d=kt(e,{startingIndex:u-u%i-1,disabledIndices:a})),bt(d,i,t)&&(d=u)),n.key===vt&&(l&&L(n),u%i!=0?(d=kt(e,{startingIndex:u,disabledIndices:a,decrement:!0}),o&&bt(d,i,t)&&(d=kt(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:a}))):o&&(d=kt(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:a})),bt(d,i,t)&&(d=u));const r=V(s/i)===t;wt(e,d)&&(d=o&&r?n.key===vt?s:kt(e,{startingIndex:u-u%i-1,disabledIndices:a}):u)}return d}function Pt(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:c}=e,s=!1;for(n&&(o=0);!s;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<c;r++)e.push(o+n+r*t);o%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),s=!0):o++}})),[...r]}function Et(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(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 jt=0;function _t(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(jt);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():jt=requestAnimationFrame(i)}var Ct="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Tt(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 It=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Mt(e){let{children:t,elementsRef:n,labelsRef:o}=e;const[i,a]=r.useState((()=>new Map)),c=r.useCallback((e=>{a((t=>new Map(t).set(e,null)))}),[]),s=r.useCallback((e=>{a((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Ct((()=>{const e=new Map(i);Array.from(e.keys()).sort(Tt).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}(i,e)||a(e)}),[i]),r.createElement(It.Provider,{value:r.useMemo((()=>({register:c,unregister:s,map:i,elementsRef:n,labelsRef:o})),[c,s,i,n,o])},t)}function Nt(e){let{label:t}=void 0===e?{}:e;const[n,o]=r.useState(null),i=r.useRef(null),{register:a,unregister:c,map:s,elementsRef:u,labelsRef:l}=r.useContext(It),d=r.useCallback((e=>{if(i.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 Ct((()=>{const e=i.current;if(e)return a(e),()=>{c(e)}}),[a,c]),Ct((()=>{const e=i.current?s.get(i.current):null;null!=e&&o(e)}),[s]),r.useMemo((()=>({ref:d,index:null==n?-1:n})),[n,d])}function At(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=[vt,yt],Ft=[mt,gt],Ht=[...Lt,...Ft],Ut=r.forwardRef((function(e,t){let{render:n,orientation:o="both",loop:i=!0,cols:a=1,disabledIndices:c=[],activeIndex:s,onNavigate:u,itemSizes:l,dense:d=!1,...p}=e;const[f,h]=r.useState(0),m=null!=s?s:f,g=ht(null!=u?u:h),v=r.useRef([]),y=n&&"function"!=typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=a>1;const O={...p,...y,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==p.onKeyDown||p.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ht.includes(e.key))return;let t=m;if(w){const n=l||Array.from({length:v.current.length},(()=>({width:1,height:1}))),r=Pt(n,a,d),s=r.findIndex((e=>null!=e&&!c.includes(e))),u=r.reduce(((e,t,n)=>null==t||null!=c&&c.includes(t)?e:n),-1);t=r[St({current:r.map((e=>e?v.current[e]:null))},{event:e,orientation:o,loop:i,cols:a,disabledIndices:Dt([...c,void 0],r),minIndex:s,maxIndex:u,prevIndex:Et(m,n,r,a,e.key===gt?"bl":e.key===yt?"tr":"tl")})]}const n=Ot(v,c),r=xt(v,c),s={horizontal:[yt],vertical:[gt],both:[yt,gt]}[o],u={horizontal:[vt],vertical:[mt],both:[vt,mt]}[o],p=w?Ht:{horizontal:Lt,vertical:Ft,both:Ht}[o];t===m&&[...s,...u].includes(e.key)&&(t=i&&t===r&&s.includes(e.key)?n:i&&t===n&&u.includes(e.key)?r:kt(v,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:c})),t===m||wt(v,t)||(e.stopPropagation(),p.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{_t(v.current[t])})))}(e)}};return r.createElement(Rt.Provider,{value:b},r.createElement(Mt,{elementsRef:v},At(n,O)))})),Wt=r.forwardRef((function(e,t){let{render:n,...o}=e;const i=n&&"function"!=typeof n?n.props:{},{activeIndex:a,onNavigate:c}=r.useContext(Rt),{ref:s,index:u}=Nt(),l=pt([s,t,i.ref]),d=a===u;return At(n,{...o,...i,ref:l,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==i.onFocus||i.onFocus(e),c(u)}})}));function Bt(){return Bt=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},Bt.apply(this,arguments)}let zt=!1,Yt=0;const Vt=()=>"floating-ui-"+Yt++;const qt=r["useId".toString()]||function(){const[e,t]=r.useState((()=>zt?Vt():void 0));return Ct((()=>{null==e&&t(Vt())}),[]),r.useEffect((()=>{zt||(zt=!0)}),[]),e},Gt=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:c=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:p,style:{transform:f,...h}={},...m}=e;const g=qt();if(!o)return null;u*=2;const v=u/2,y=a/2*(s/-8+1),b=c/2*s/4,[w,O]=n.split("-"),x=je.isRTL(o),k=!!p,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==i?void 0:i.x)?l||i.x:"",j=null!=(null==i?void 0:i.y)?l||i.y:"",_=p||"M0,0 H"+a+" L"+(a-y)+","+(c-b)+" Q"+a/2+","+c+" "+y+","+(c-b)+" Z",C={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",Bt({},m,{"aria-hidden":!0,ref:t,width:k?a:a+u,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[E]:D,[P]:j,[w]:S||k?"100%":"calc(100% - "+u/2+"px)",transform:""+C+(null!=f?f:""),...h}}),u>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:u+(p?0:1),d:_}),r.createElement("path",{stroke:u&&!p?m.fill:"none",d:_}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-v,y:v*(k?-1:1),width:a+u,height:a})))}));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 Ct((()=>{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]}),[]),i=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),a=r.useState((()=>Kt()))[0];return r.createElement(Qt.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:i,events:a})),[o,i,a])},t)}function nn(e){return"data-floating-ui-"+e}function rn(e){const t=(0,r.useRef)(e);return Ct((()=>{t.current=e})),t}const on=nn("safe-polygon");function an(e,t,n){return n&&!T(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function cn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,events:a,elements:{domReference:c,floating:u},refs:l}=e,{enabled:d=!0,delay:p=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,v=Zt(),y=Xt(),b=rn(f),w=rn(p),O=r.useRef(),x=r.useRef(),S=r.useRef(),P=r.useRef(),E=r.useRef(!0),D=r.useRef(!1),j=r.useRef((()=>{})),_=r.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);r.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(P.current),E.current=!0)}}),[d,a]),r.useEffect((()=>{if(!d||!b.current||!n)return;function e(e){_()&&o(!1,e,"hover")}const t=I(u).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u,n,o,d,b,_]);const C=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((()=>{j.current(),S.current=void 0}),[]),N=r.useCallback((()=>{if(D.current){const e=I(l.floating.current).body;e.style.pointerEvents="",e.removeAttribute(on),D.current=!1}}),[l]);return r.useEffect((()=>{if(d&&s(c)){const e=c;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",a),()=>{n&&e.removeEventListener("mouseleave",l),null==u||u.removeEventListener("mouseleave",l),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function r(e){if(clearTimeout(x.current),E.current=!1,h&&!T(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 a(r){if(t())return;j.current();const o=I(u);if(clearTimeout(P.current),b.current){n||clearTimeout(x.current),S.current=b.current({...e,tree:v,x:r.clientX,y:r.clientY,onClose(){N(),M(),C(r,!0,"safe-polygon")}});const t=S.current;return o.addEventListener("mousemove",t),void(j.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==O.current||!k(u,r.relatedTarget))&&C(r)}function l(n){t()||null==b.current||b.current({...e,tree:v,x:n.clientX,y:n.clientY,onClose(){N(),M(),C(n)}})(n)}}),[c,u,d,e,h,m,g,C,M,N,o,n,v,w,b,i]),Ct((()=>{var e;if(d&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&_()){const e=I(u).body;if(e.setAttribute(on,""),e.style.pointerEvents="none",D.current=!0,s(c)&&u){var t;const e=c,n=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||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,y,u,c,v,b,_]),Ct((()=>{n||(O.current=void 0,M(),N())}),[n,M,N]),r.useEffect((()=>()=>{M(),clearTimeout(x.current),clearTimeout(P.current),N()}),[d,c,M,N]),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){C(e.nativeEvent,!1)}}}}),[d,m,n,o,C])}const sn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),un=()=>r.useContext(sn),ln=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[i,a]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),c=r.useRef(null),s=r.useCallback((e=>{a({currentId:e})}),[]);return Ct((()=>{i.currentId?null===c.current?c.current=i.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),c.current=null)}),[i.currentId]),r.createElement(sn.Provider,{value:r.useMemo((()=>({...i,setState:a,setCurrentId:s})),[i,s])},t)},dn=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:c,setState:s,timeoutMs:u}=un();Ct((()=>{i&&(s({delay:{open:1,close:an(c,"close")}}),i!==o&&r(!1))}),[o,r,s,i,c]),Ct((()=>{function e(){r(!1),s({delay:c,currentId:null})}if(!n&&i===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,s,i,o,r,c,u]),Ct((()=>{n&&a(o)}),[n,a,o])};function pn(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 fn=new WeakMap,hn=new WeakSet,mn={},gn=0;const vn=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,yn=e=>e&&(e.host||yn(e.parentNode)),bn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=yn(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=I(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=bn(t,e),c=new Set,s=new Set(a),u=[];mn[o]||(mn[o]=new WeakMap);const l=mn[o];return a.forEach((function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(c.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(fn.get(t)||0)+1,a=(l.get(t)||0)+1;fn.set(t,r),l.set(t,a),u.push(t),1===r&&n&&hn.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),c.clear(),gn++,()=>{u.forEach((e=>{const t=(fn.get(e)||0)-1,n=(l.get(e)||0)-1;fn.set(e,t),l.set(e,n),t||(!hn.has(e)&&i&&e.removeAttribute(i),hn.delete(e)),n||e.removeAttribute(o)})),gn--,gn||(fn=new WeakMap,fn=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(I(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 jn={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 _n(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Cn=r.forwardRef((function(e,t){const[n,o]=r.useState();Ct((()=>(j()&&o("button"),document.addEventListener("keydown",_n),()=>{document.removeEventListener("keydown",_n)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[nn("focus-guard")]:"",style:jn};return r.createElement("span",Bt({},e,i))})),Tn=r.createContext(null),In=nn("portal");function Mn(e){let{id:t,root:n}=void 0===e?{}:e;const[o,i]=r.useState(null),a=qt(),c=An(),u=r.useRef(null);return Ct((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{u.current=null}))}),[o]),Ct((()=>{if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=a,n.setAttribute(In,""),e.appendChild(n),u.current=n,i(n)}),[t,a]),Ct((()=>{if(u.current)return;let e=n||(null==c?void 0:c.portalNode);e&&!s(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=a,o.setAttribute(In,""),e=r||e,e.appendChild(o),u.current=o,i(o)}),[t,n,a,c]),o}function Nn(e){let{children:t,id:n,root:o=null,preserveTabOrder:i=!0}=e;const a=Mn({id:n,root:o}),[c,s]=r.useState(null),u=r.useRef(null),l=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=!!c&&!c.modal&&c.open&&i&&!(!o&&!a);return r.useEffect((()=>{if(a&&i&&(null==c||!c.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&Pn(e)){("focusin"===e.type?Dn:En)(a)}}}),[a,i,null==c?void 0:c.modal]),r.createElement(Tn.Provider,{value:r.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[i,a])},f&&a&&r.createElement(Cn,{"data-type":"outside",ref:u,onFocus:e=>{if(Pn(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Sn()||(null==c?void 0:c.refs.domReference.current);null==e||e.focus()}}}),f&&a&&r.createElement("span",{"aria-owns":a.id,style:jn}),a&&(0,He.createPortal)(t,a),f&&a&&r.createElement(Cn,{"data-type":"outside",ref:l,onFocus:e=>{if(Pn(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=kn()||(null==c?void 0:c.refs.domReference.current);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent))}}}))}const An=()=>r.useContext(Tn),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 Un=r.forwardRef((function(e,t){return r.createElement("button",Bt({},e,{type:"button",ref:t,tabIndex:-1,style:jn}))}));function Wn(e){const{context:t,children:n,disabled:o=!1,order:i=["content"],guards:a=!0,initialFocus:c=0,returnFocus:s=!0,modal:l=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:h,nodeId:m,onOpenChange:g,events:v,dataRef:y,elements:{domReference:b,floating:w}}=t,O="number"==typeof c&&c<0,S=F(b)&&O,P=!vn()||a,j=rn(i),_=rn(c),C=rn(s),T=Zt(),M=An(),A=r.useRef(null),R=r.useRef(null),H=r.useRef(!1),U=r.useRef(!1),W=null!=M,B=r.useCallback((function(e){return void 0===e&&(e=w),e?dt(e,On()):[]}),[w]),z=r.useCallback((e=>{const t=B(e);return j.current.map((e=>b&&"reference"===e?b:w&&"floating"===e?w:t)).filter(Boolean).flat()}),[b,w,j,B]);function Y(e){return!o&&d&&l?r.createElement(Un,{ref:"start"===e?A: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(I(w)))&&0===B().length&&!S&&L(e);const t=z(),n=N(e);"reference"===j.current[0]&&n===b&&(L(e),e.shiftKey?_t(t[t.length-1]):_t(t[1])),"floating"===j.current[1]&&n===w&&e.shiftKey&&(L(e),_t(t[0]))}}const t=I(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,b,w,l,j,S,B,z]),r.useEffect((()=>{if(!o&&p)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(){U.current=!0,setTimeout((()=>{U.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"))||T&&(pn(T.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}(T.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&&!U.current&&t!==Hn()&&(H.current=!0,g(!1,e))}))}}),[o,b,w,l,m,T,M,g,p]),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,A.current,R.current,j.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,j,M,S,P]),Ct((()=>{if(o||!w)return;const e=x(I(w));queueMicrotask((()=>{const t=z(w),n=_.current,r=("number"==typeof n?t[n]:n.current)||w,o=k(w,e);O||o||!f||_t(r,{preventScroll:r===w})}))}),[o,f,w,O,z,_]),Ct((()=>{if(o||!w)return;let e=!1;const t=I(w),n=x(t),r=y.current;function i(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),v.on("openchange",i),()=>{v.off("openchange",i);const n=x(t),o=k(w,n)||T&&pn(T.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 a=Hn();C.current&&!H.current&&u(a)&&(a===n||n===t.body||o)&&_t(a,{cancelPrevious:!1,preventScroll:e})}}),[o,w,C,y,h,v,T,m]),Ct((()=>{if(!o&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:p,open:f,onOpenChange:g,refs:h}),()=>{M.setFocusManagerState(null)}}),[o,M,l,f,g,h,p]),Ct((()=>{if(o||!w||"function"!=typeof MutationObserver||O)return;const e=()=>{const e=w.getAttribute("tabindex");j.current.includes("floating")||x(I(w))!==h.domReference.current&&0===B().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,j,B,O]);const V=!o&&P&&(W||l);return r.createElement(r.Fragment,null,V&&r.createElement(Cn,{"data-type":"inside",ref:null==M?void 0:M.beforeInsideRef,onFocus:e=>{if(l){const e=z();_t("reference"===i[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&&Y("start"),n,Y("end"),V&&r.createElement(Cn,{"data-type":"inside",ref:null==M?void 0:M.afterInsideRef,onFocus:e=>{if(l)_t(z()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(p&&(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 Bn=new Set,zn=r.forwardRef((function(e,t){let{lockScroll:n=!1,...o}=e;const i=qt();return Ct((()=>{if(!n)return;Bn.add(i);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,a=t.left?parseFloat(t.left):window.pageXOffset,c=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var s,u;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(c-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Bn.delete(i),0===Bn.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,c)))}}),[i,n]),r.createElement("div",Bt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function Yn(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:i,elements:{domReference:a}}=e,{enabled:c=!0,event:s="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0}=t,p=r.useRef(),f=r.useRef(!1);return r.useMemo((()=>c?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(T(p.current,!0)&&l||"click"!==s&&(!n||!u||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&p.current?p.current=void 0:T(p.current,!0)&&l||(!n||!u||i.current.openEvent&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Yn(e)||(" "!==e.key||Vn(a)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&o(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Yn(e)||Vn(a)||" "===e.key&&f.current&&(f.current=!1,o(!n||!u,e.nativeEvent,"click"))}}}:{}),[c,i,s,l,d,a,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:a,elements:{floating:c}}=e,{enabled:s=!0,axis:u="both",x:l=null,y:d=null}=t,p=r.useRef(!1),f=r.useRef(null),[h,m]=r.useState(),[g,v]=r.useState([]),y=ht(((e,t)=>{p.current||a.current.openEvent&&!Gn(a.current.openEvent)||o.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var i,a;const c=(null==(i=e.current)?void 0:i.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,l=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let d=c.width,p=c.height,f=c.x,h=c.y;return null==n&&t.x&&s&&(n=c.x-t.x),null==r&&t.y&&u&&(r=c.y-t.y),f-=n||0,h-=r||0,d=0,p=0,!o||l?(d="y"===t.axis?c.width:0,p="x"===t.axis?c.height:0,f=s&&null!=t.x?t.x:f,h=u&&null!=t.y?t.y:h):o&&!l&&(p="x"===t.axis?c.height:p,d="y"===t.axis?c.width:d),o=!0,{width:d,height:p,x:f,y:h,top:h,right:f+d,bottom:h+p,left:f}}}}(o.domReference,{x:e,y:t,axis:u,dataRef:a,pointerType:h}))})),b=ht((e=>{null==l&&null==d&&(n?f.current||v([]):y(e.clientX,e.clientY))})),w=T(h)?c:n,O=r.useCallback((()=>{if(!w||!s||null!=l||null!=d)return;const e=i(o.floating.current);function t(n){const r=N(n);k(o.floating.current,r)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!a.current.openEvent||Gn(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}o.setPositionReference(o.domReference.current)}),[a,s,w,o,y,l,d]);return r.useEffect((()=>O()),[O,g]),r.useEffect((()=>{s&&!c&&(p.current=!1)}),[s,c]),r.useEffect((()=>{!s&&n&&(p.current=!0)}),[s,n]),Ct((()=>{!s||null==l&&null==d||(p.current=!1,y(l,d))}),[s,l,d,y]),r.useMemo((()=>{if(!s)return{};function e(e){let{pointerType:t}=e;m(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:b,onMouseEnter:b}}}),[s,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:i,elements:{reference:a,domReference:c,floating:l},dataRef:d}=e,{enabled:p=!0,escapeKey:f=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:y=!1,referencePressEvent:w="pointerdown",ancestorScroll:x=!1,bubbles:S,capture:P}=t,E=Zt(),D=ht("function"==typeof h?h:()=>!1),j="function"==typeof h?D:h,_=r.useRef(!1),C=r.useRef(!1),{escapeKey:T,outsidePress:A}=Xn(S),{escapeKey:R,outsidePress:L}=Xn(P),F=ht((e=>{if(!n||!p||!f||"Escape"!==e.key)return;const t=E?pn(E.nodesRef.current,i):[];if(!T&&(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=N(e))||t.removeEventListener("keydown",n)};null==(t=N(e))||t.addEventListener("keydown",n)})),U=ht((e=>{const t=_.current;_.current=!1;const n=C.current;if(C.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof j&&!j(e))return;const r=N(e),a="["+nn("inert")+"]",d=I(l).querySelectorAll(a);let p=s(r)?r:null;for(;p&&!g(p);){const e=b(p);if(g(e)||!s(e))break;p=e}if(d.length&&s(r)&&!r.matches("html,body")&&!k(r,l)&&Array.from(d).every((e=>!k(p,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"===v(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth)}if(o||t&&e.offsetY>r.clientHeight)return}const f=E&&pn(E.nodesRef.current,i).some((t=>{var n;return M(e,null==(n=t.context)?void 0:n.elements.floating)}));if(M(e,l)||M(e,c)||f)return;const h=E?pn(E.nodesRef.current,i):[];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")})),W=ht((e=>{var t;const n=()=>{var t;U(e),null==(t=N(e))||t.removeEventListener(m,n)};null==(t=N(e))||t.addEventListener(m,n)}));return r.useEffect((()=>{if(!n||!p)return;function e(e){o(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=A;const t=I(l);f&&t.addEventListener("keydown",R?H:F,R),j&&t.addEventListener(m,L?W:U,L);let r=[];return x&&(s(c)&&(r=O(c)),s(l)&&(r=r.concat(O(l))),!s(a)&&a&&a.contextElement&&(r=r.concat(O(a.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})})),()=>{f&&t.removeEventListener("keydown",R?H:F,R),j&&t.removeEventListener(m,L?W:U,L),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,l,c,a,f,j,m,n,o,x,p,T,A,F,R,H,U,L,W]),r.useEffect((()=>{_.current=!1}),[j,m]),r.useMemo((()=>p?{reference:{onKeyDown:F,[$n[w]]:e=>{y&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Qn[m]]:()=>{_.current=!0}}}:{}),[p,y,m,w,o,F])}function Jn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e;const[a,c]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||a,l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=r.useState(o);Be(f,o)||h(o);const[m,g]=r.useState(null),[v,y]=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,y(e))}),[]),O=a||m,x=c||v,k=r.useRef(null),S=r.useRef(null),P=r.useRef(d),E=null!=u,D=Ve(u),j=Ve(i),_=r.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Fe(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};C.current&&!Be(P.current,t)&&(P.current=t,He.flushSync((()=>{p(t)})))}))}),[f,t,n,j]);We((()=>{!1===l&&P.current.isPositioned&&(P.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[l]);const C=r.useRef(!1);We((()=>(C.current=!0,()=>{C.current=!1})),[]),We((()=>{if(O&&(k.current=O),x&&(S.current=x),O&&x){if(D.current)return D.current(O,x,_);_()}}),[O,x,_,D,E]);const T=r.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),I=r.useMemo((()=>({reference:O,floating:x})),[O,x]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Ye(I.floating,d.x),r=Ye(I.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ze(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,I.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:_,refs:T,elements:I,floatingStyles:M})),[d,_,T,I,M])}(e),d=Zt(),p=null!=Xt(),f=ht(((e,t,n)=>{e&&(m.current.openEvent=t),g.emit("openchange",{open:e,event:t,reason:n,nested:p}),null==o||o(e,t,n)})),h=r.useRef(null),m=r.useRef({}),g=r.useState((()=>Kt()))[0],v=qt(),y=r.useCallback((e=>{const t=s(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l.refs.setReference(t)}),[l.refs]),b=r.useCallback((e=>{(s(e)||null===e)&&(h.current=e,c(e)),(s(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!s(e))&&l.refs.setReference(e)}),[l.refs]),w=r.useMemo((()=>({...l.refs,setReference:b,setPositionReference:y,domReference:h})),[l.refs,b,y]),O=r.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=r.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:i,floatingId:v,events:g,open:n,onOpenChange:f})),[l,i,v,g,n,f,w,O]);return Ct((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===i));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:a,refs:c,elements:{domReference:l}}=e,{enabled:d=!0,visibleOnly:p=!0}=t,f=r.useRef(!1),h=r.useRef(),m=r.useRef(!0);return r.useEffect((()=>{if(!d)return;const e=i(l);function t(){!n&&u(l)&&l===x(I(l))&&(f.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 a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}}),[a,d]),r.useEffect((()=>()=>{clearTimeout(h.current)}),[]),r.useMemo((()=>d?{reference:{onPointerDown(e){D(e.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=N(e.nativeEvent);if(p&&s(t))try{if(j()&&C())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!R(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=s(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(c.floating.current,r)||k(l,r)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[d,p,l,c,o])}const tr="active",nr="selected";function rr(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[tr]:t,[nr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...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,i]=t;var a;o&&[tr,nr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),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),i=r.useCallback((t=>rr(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}let ir=!1;function ar(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function cr(e,t){return ar(t,e===mt||e===gt,e===vt||e===yt)}function sr(e,t,n){return ar(t,e===gt,n?e===vt:e===yt)||"Enter"===e||" "===e||""===e}function ur(e,t,n){return ar(t,n?e===yt:e===vt,e===mt)}function lr(e,t){const{open:n,onOpenChange:o,refs:i,elements:{domReference:a,floating:c}}=e,{listRef:s,activeIndex:l,onNavigate:d=(()=>{}),enabled:p=!0,selectedIndex:f=null,allowEscape:h=!1,loop:m=!1,nested:g=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:O=!0,disabledIndices:S,orientation:P="vertical",cols:_=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:A=!1}=t;const R=Xt(),H=Zt(),U=ht(d),W=r.useRef(b),B=r.useRef(null!=f?f:-1),z=r.useRef(null),Y=r.useRef(!0),V=r.useRef(U),q=r.useRef(!!c),G=r.useRef(!1),K=r.useRef(!1),$=rn(S),Q=rn(n),X=rn(T),[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&&(y?(J(r.id),null==H||H.events.emit("virtualfocus",r),M&&(M.current=r)):_t(r,{preventScroll:!0,sync:!(!C()||!j())&&(ir||G.current)}),requestAnimationFrame((()=>{const e=X.current;e&&r&&(n||!Y.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));Ct((()=>{document.createElement("div").focus({get preventScroll(){return ir=!0,!1}})}),[]),Ct((()=>{p&&(n&&c?W.current&&null!=f&&(K.current=!0,B.current=f,U(f)):q.current&&(B.current=-1,V.current(null)))}),[p,n,c,f,U]),Ct((()=>{if(p&&n&&c)if(null==l){if(G.current=!1,null!=f)return;if(q.current&&(B.current=-1,ne(s,B)),!q.current&&W.current&&(null!=z.current||!0===W.current&&null==z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else B.current=null==z.current||sr(z.current,P,v)||g?Ot(s,$.current):xt(s,$.current),z.current=null,U(B.current)};t()}}else wt(s,l)||(B.current=l,ne(s,B,K.current),K.current=!1)}),[p,n,c,l,f,g,s,P,v,U,ne,$]),Ct((()=>{var e;if(!p||c||!H||y||!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(I(c)),o=t.some((e=>e.context&&k(e.context.elements.floating,r)));n&&!o&&Y.current&&n.focus({preventScroll:!0})}),[p,c,H,R,y]),Ct((()=>{if(p&&H&&y&&!R)return H.events.on("virtualfocus",e),()=>{H.events.off("virtualfocus",e)};function e(e){te(e.id),M&&(M.current=e)}}),[p,H,y,R,M]),Ct((()=>{V.current=U,q.current=!!c})),Ct((()=>{n||(z.current=null)}),[n]);const re=null!=l,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&U(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;Y.current&&"touch"!==t&&(B.current=-1,ne(s,B),U(null),y||_t(i.floating.current,{preventScroll:!0}))}}}}),[n,i,ne,w,s,U,y]);return r.useMemo((()=>{if(!p)return{};const e=$.current;function t(t){if(Y.current=!1,G.current=!0,!Q.current&&t.currentTarget===i.floating.current)return;if(g&&ur(t.key,P,v))return L(t),o(!1,t.nativeEvent,"list-navigation"),void(u(a)&&!y&&a.focus());const r=B.current,c=Ot(s,e),l=xt(s,e);if("Home"===t.key&&(L(t),B.current=c,U(B.current)),"End"===t.key&&(L(t),B.current=l,U(B.current)),_>1){const n=N||Array.from({length:s.current.length},(()=>({width:1,height:1}))),r=Pt(n,_,A),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),i=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if(B.current=r[St({current:r.map((e=>null!=e?s.current[e]:null))},{event:t,orientation:P,loop:m,cols:_,disabledIndices:Dt([...e||[],void 0],r),minIndex:o,maxIndex:i,prevIndex:Et(B.current,n,r,_,t.key===gt?"bl":t.key===yt?"tr":"tl"),stopEvent:!0})],U(B.current),"both"===P)return}if(cr(t.key,P)){if(L(t),n&&!y&&x(t.currentTarget.ownerDocument)===t.currentTarget)return B.current=sr(t.key,P,v)?c:l,void U(B.current);sr(t.key,P,v)?B.current=m?r>=l?h&&r!==s.current.length?-1:c:kt(s,{startingIndex:r,disabledIndices:e}):Math.min(l,kt(s,{startingIndex:r,disabledIndices:e})):B.current=m?r<=c?h&&-1!==r?s.current.length:l:kt(s,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(c,kt(s,{startingIndex:r,decrement:!0,disabledIndices:e})),wt(s,B.current)?U(null):U(B.current)}}function r(e){"auto"===b&&E(e.nativeEvent)&&(W.current=!0)}const c=y&&n&&re&&{"aria-activedescendant":ee||Z},l=s.current.find((e=>(null==e?void 0:e.id)===Z));return{reference:{...c,onKeyDown(r){Y.current=!1;const i=0===r.key.indexOf("Arrow"),a=function(e,t,n){return ar(t,n?e===vt:e===yt,e===gt)}(r.key,P,v),c=ur(r.key,P,v),u=cr(r.key,P),d=(g?a:u)||"Enter"===r.key||""===r.key.trim();if(y&&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,i){i>r&&(n=o,r=i),pn(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(H.nodesRef.current,e.id):null;if(i&&n&&M){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(a||c){var p,h;const t=(null==(p=n.context)?void 0:p.elements.domReference)===r.currentTarget,o=c&&!t?null==(h=n.context)?void 0:h.elements.domReference:a?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||!i)&&(d&&(z.current=g&&u?null:r.key),g?a&&(L(r),n?(B.current=Ot(s,e),U(B.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=f&&(B.current=f),L(r),!n&&O?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&U(B.current)))},onFocus(){n&&U(null)},onPointerDown:function(e){W.current=b,"auto"===b&&D(e.nativeEvent)&&(W.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===P?void 0:P,...!F(a)&&c,onKeyDown:t,onPointerMove(){Y.current=!0}},item:oe}}),[a,i,Z,ee,$,Q,s,p,P,v,y,n,re,g,f,O,h,_,m,b,U,o,oe,H,M,N,A])}const dr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:i}=e,{enabled:a=!0,role:c="dialog"}=t,s=null!=(n=dr.get(c))?n:c,u=qt(),l=null!=Xt();return r.useMemo((()=>{if(!a)return{};const e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===c?{reference:{["aria-"+("label"===c?"labelledby":"describedby")]:o?i:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":o?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:u},..."menu"===s&&l&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===s&&{"aria-labelledby":u}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(c){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[a,c,s,o,i,u,l])}const fr=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:i=250}=t,a=("number"==typeof i?i:i.close)||0,[c,s]=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,a);return Ct((()=>{c&&!d&&l("unmounted")}),[c,d]),Ct((()=>{if(o){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}s(!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:i,common:a,duration:c=250}=t,s=e.placement,u=s.split("-")[0],l=r.useMemo((()=>({side:u,placement:s})),[u,s]),d="number"==typeof c,p=(d?c:c.open)||0,f=(d?c:c.close)||0,[h,m]=r.useState((()=>({...hr(a,l),...hr(n,l)}))),{isMounted:g,status:v}=mr(e,{duration:c}),y=rn(n),b=rn(o),w=rn(i),O=rn(a);return Ct((()=>{const e=hr(y.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"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(fr).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(fr).join(","),transitionDuration:f+"ms",...n,...r})}}),[f,w,y,b,O,p,v,l]),{isMounted:g,styles:h}}function vr(e,t){var n;const{open:o,dataRef:i}=e,{listRef:a,activeIndex:c,onMatch:s,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:f=[],selectedIndex:h=null}=t,m=r.useRef(),g=r.useRef(""),v=r.useRef(null!=(n=null!=h?h:c)?n:-1),y=r.useRef(null),b=ht(s),w=ht(u),O=rn(d),x=rn(f);return Ct((()=>{o&&(clearTimeout(m.current),y.current=null,g.current="")}),[o]),Ct((()=>{var e;o&&""===g.current&&(v.current=null!=(e=null!=h?h:c)?e:-1)}),[o,h,c]),r.useMemo((()=>{if(!l)return{};function e(e){e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.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=a.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="",v.current=y.current),g.current+=n.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,e(!1)}),p);const i=v.current,c=t(r,[...r.slice((i||0)+1),...r.slice(0,(i||0)+1)],g.current);-1!==c?(b(c),y.current=c):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[l,o,i,a,p,x,O,b,w])}function yr(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:i=0,index:a=0,minItemsVisible:c=4,referenceOverflowThreshold:s=0,scrollRef:u,...l}=e,{rects:d,elements:{floating:p}}=t,f=n.current[a];if(!f)return{};const h={...t,...await fe(-f.offsetTop-p.clientTop-d.reference.height/2-f.offsetHeight/2-i).fn(t)},m=(null==u?void 0:u.current)||p,g=await ue(yr(h,m.scrollHeight),l),v=await ue(h,{...l,elementContext:"reference"}),y=Math.max(0,g.top),b=h.y+y,w=Math.max(0,m.scrollHeight-y-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=y,o&&(m.offsetHeight<f.offsetHeight*Math.min(c,n.current.length-1)-1||v.top>=-s||v.bottom>=-s?(0,He.flushSync)((()=>o(!0))):(0,He.flushSync)((()=>o(!1)))),r&&(r.current=await ue(yr({...h,y:b},m.offsetHeight),l)),{y:b}}});function wr(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:c,onChange:s}=t,u=ht(s),l=r.useRef(!1),d=r.useRef(null),p=r.useRef(null);return r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,c=n<0?-1:1,s=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,He.flushSync)((()=>{u((e=>e+Math[s](n,i*c)))}))):/firefox/i.test(P())&&(t.scrollTop+=n))}const t=(null==c?void 0:c.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(p.current={...a.current})})),()=>{d.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,c,u]),r.useMemo((()=>i?{floating:{onKeyDown(){l.current=!0},onWheel(){l.current=!1},onPointerMove(){l.current=!1},onScroll(){const e=(null==c?void 0:c.current)||o.floating;if(a.current&&e&&l.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&(0,He.flushSync)((()=>u((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[i,a,o.floating,c,u])}function Or(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,c]=t[e]||[0,0],[s,u]=t[a]||[0,0];c>=r!=u>=r&&n<=(s-i)*(r-c)/(u-c)+i&&(o=!o)}return o}function xr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,c=null,u=performance.now();const l=e=>{let{x:n,y:l,placement:d,elements:p,onClose:f,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!p.domReference||!p.floating||null==d||null==n||null==l)return;const{clientX:v,clientY:y}=e,b=[v,y],w=N(e),O="mouseleave"===e.type,x=k(p.floating,w),S=k(p.domReference,w),P=p.domReference.getBoundingClientRect(),E=p.floating.getBoundingClientRect(),D=d.split("-")[0],j=n>E.right-E.width/2,_=l>E.bottom-E.height/2,C=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),T=E.width>P.width,I=E.height>P.height,M=(T?P:E).left,A=(T?P:E).right,R=(I?P:E).top,L=(I?P:E).bottom;if(x&&(i=!0,!O))return;if(S&&(i=!1),S&&!O)return void(i=!0);if(O&&s(e.relatedTarget)&&k(p.floating,e.relatedTarget))return;if(m&&pn(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],[A,E.bottom-1],[A,P.top+1]];break;case"bottom":F=[[M,E.top+1],[M,P.bottom-1],[A,P.bottom-1],[A,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([v,y],F)){if(i&&!C)return g();if(!O&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===a||null===c||0===r)return a=e,c=t,u=n,null;const o=e-a,i=t-c,s=Math.sqrt(o*o+i*i);return a=e,c=t,u=n,s/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Or([v,y],function(e){let[n,r]=e;switch(D){case"top":return[[T?n+t/2:j?n+4*t:n-4*t,r+t+1],[T?n-t/2:j?n+4*t:n-4*t,r+t+1],...[[E.left,j||T?E.bottom-t:E.top],[E.right,j?T?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[T?n+t/2:j?n+4*t:n-4*t,r-t],[T?n-t/2:j?n+4*t:n-4*t,r-t],...[[E.left,j||T?E.top+t:E.bottom],[E.right,j?T?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,I?r+t/2:_?r+4*t:r-4*t],o=[n+t+1,I?r-t/2:_?r+4*t:r-4*t];return[...[[_||I?E.right-t:E.left,E.top],[_?I?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,I?r+t/2:_?r+4*t:r-4*t],[n-t,I?r-t/2:_?r+4*t:r-4*t],...[[_||I?E.left+t:E.right,E.top],[_?I?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,l]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return l.__options={blockPointerEvents:n},l}},35264:(e,t)=>{"use strict";t.c=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},87836:(e,t,n)=>{"use strict";n.d(t,{c:()=>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"}}},79304:(e,t,n)=>{"use strict";var r=n(3268),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},79072:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r,o=n(86692),i=n(80560).cp.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=(0,o.c)([""])))},30392:(e,t,n)=>{"use strict";n.d(t,{_:()=>p._,c:()=>d});var r,o=n(52536),i=n(69624),a=n.n(i),c=n(17624);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?s(Object(n),!0).forEach((function(t){(0,o.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,i.lazy)((function(){return Promise.all([n.e(952),n.e(648),n.e(448)]).then(n.bind(n,63852))}));const d=function(e){return(0,c.jsx)(i.Suspense,{fallback:r||(r=(0,c.jsx)(a().Fragment,{})),children:(0,c.jsx)(l,u({},e))})};var p=n(79072)},90624:(e,t,n)=>{"use strict";n.d(t,{cp:()=>d});n(3268);var r,o=n(30392),i=n(67664),a=n(86692),c=n(80560);const s=c.cp.a.withConfig({displayName:"StyledLink"})(r||(r=(0,a.c)(["\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,i.Gj)(),(function(e){return e.breakWords?(0,i._w)():(0,i.GI)()}),i.gn.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(17624),l=function(e){var t=e.alt,n=e.breakWords,r=e.download,a=e.href,c=e.neutral,l=e.onClick,d=e.rel,p=e.tabIndex,f=e.target,h=e.title,m=e.label,g=e.icon,v=e.children,y=e.useTitle,b=h||(n?void 0:m);return(0,u.jsxs)(s,{alt:t,breakWords:n,download:r,href:a,neutral:c,onClick:l,rel:d,tabIndex:p,target:f,title:y?b:void 0,children:[g&&(0,u.jsx)(o.c,{icon:g,position:i.Wn.position.PREPEND}),m||v]})};l.defaultProps={breakWords:!0,useTitle:!0,href:"#",target:"_self"};const d=l;var p,f=n(96684);(0,c.cp)(f.cH)(p||(p=(0,a.c)(["\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,i.Gj)(),i.Il.color("secondary"),i.Il.color("text"),i.Il.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?i.Il.color("text"):i.Il.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}))},93896:(e,t,n)=>{"use strict";n.d(t,{AP:()=>A,C6:()=>G,E5:()=>B,G0:()=>U,IT:()=>_,If:()=>H,KI:()=>R,UL:()=>z,Ww:()=>W,eE:()=>M,gJ:()=>Y,mU:()=>T,mo:()=>q,od:()=>I,oh:()=>L,ov:()=>V,qQ:()=>F,sD:()=>j,sr:()=>C,u6:()=>D,wn:()=>N});var r,o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w,O,x,k,S=n(86692),P=n(80560),E=n(67664),D=P.cp.b.withConfig({displayName:"StyledB"})(r||(r=(0,S.c)(["\n && {\n ","\n }\n ","\n"])),(0,E.Gj)({fontWeight:E.Il.fontWeight("bold")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),j=P.cp.code.withConfig({displayName:"StyledCode"})(o||(o=(0,S.c)(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),E.Il.color("backgroundTypographyCode"),E.Il.radii("form"),E.aU.space(-4),E.aU.space(-2)),_=P.cp.del.withConfig({displayName:"StyledDel"})(i||(i=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),C=P.cp.em.withConfig({displayName:"StyledEm"})(a||(a=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),T=P.cp.figcaption.withConfig({displayName:"StyledFigcaption"})(c||(c=(0,S.c)(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-2),E.aU.space(-1)),I=P.cp.i.withConfig({displayName:"StyledI"})(s||(s=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),M=P.cp.ins.withConfig({displayName:"StyledIns"})(u||(u=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),N=P.cp.label.withConfig({displayName:"StyledLabel"})(l||(l=(0,S.c)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-1)),A=P.cp.mark.withConfig({displayName:"StyledMark"})(d||(d=(0,S.c)(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),color:E.Il.color("paper")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.Il.color("signal.info"),E.Il.radii("form"),E.aU.space(-4),E.aU.space(-2)),R=P.cp.p.withConfig({displayName:"StyledP"})(p||(p=(0,S.c)(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.aU.space(-1)),L=P.cp.pre.withConfig({displayName:"StyledPre"})(f||(f=(0,S.c)(["\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.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}),E.Il.color("backgroundTypographyCode"),E.Il.radii("form"),E.Il.color("border"),E.aU.space(-1),E.aU.space(-3),E.aU.space(-2)),F=P.cp.s.withConfig({displayName:"StyledS"})(h||(h=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),H=P.cp.small.withConfig({displayName:"StyledSmall"})(m||(m=(0,S.c)(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,E.Gj)(),E.Il.fontSize("factor"),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),U=P.cp.span.withConfig({displayName:"StyledSpan"})(g||(g=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),W=P.cp.sub.withConfig({displayName:"StyledSub"})(v||(v=(0,S.c)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),B=P.cp.sup.withConfig({displayName:"StyledSup"})(y||(y=(0,S.c)(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,E.Gj)({fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),z=P.cp.strong.withConfig({displayName:"StyledStrong"})(b||(b=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)({fontWeight:E.Il.fontWeight("bold")}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),Y=P.cp.time.withConfig({displayName:"StyledTime"})(w||(w=(0,S.c)(["\n && {\n ","\n ","\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),V=P.cp.u.withConfig({displayName:"StyledU"})(O||(O=(0,S.c)(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),q=P.cp.var.withConfig({displayName:"StyledVar"})(x||(x=(0,S.c)(["\n && {\n ","\n ","\n\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,E.Gj)({fontFamily:E.Il.fontFamily("monospace"),fontSize:E.aU.font(-1)}),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()})),G=P.cp.q.withConfig({displayName:"StyledQ"})(k||(k=(0,S.c)(["\n && {\n ","\n ","\n\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,E.Gj)(),(function(e){return e.breakWords?(0,E._w)():(0,E.GI)()}))},13356:(e,t,n)=>{"use strict";n.d(t,{cJ:()=>m,wn:()=>Y.wn,cP:()=>F,G0:()=>Y.G0,KM:()=>W,my:()=>he,cp:()=>me});n(3268);var r,o,i,a,c,s,u,l=n(67664),d=n(86692),p=n(80560),f=function(e){var t;switch(e.styledLike){case"H1":t=l.aU.font(5)(e);break;case"H2":t=l.aU.font(4)(e);break;case"H3":t=l.aU.font(3)(e);break;case"H4":t=l.aU.font(2)(e);break;case"H5":t=l.aU.font(1)(e);break;default:t=l.aU.font(0)(e)}return(0,l.Gj)({fontWeight:l.gn.fontWeight("bold"),fontSize:t})},h=function(e){return(0,p.gV)(r||(r=(0,d.c)(["\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.aU.space(0),l.aU.space(-1))},m=p.cp.h1.withConfig({displayName:"StyledH1"})(o||(o=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),g=p.cp.h2.withConfig({displayName:"StyledH2"})(i||(i=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),v=p.cp.h3.withConfig({displayName:"StyledH3"})(a||(a=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),y=p.cp.h4.withConfig({displayName:"StyledH4"})(c||(c=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),b=p.cp.h5.withConfig({displayName:"StyledH5"})(s||(s=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),w=p.cp.h6.withConfig({displayName:"StyledH6"})(u||(u=(0,d.c)(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return f(e)}),(function(e){return h()}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),O=n(17624),x=function(e){return(0,O.jsx)(m,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(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.gL)(e.children),children:e.children})};k.defaultProps={breakWords:!0,styledLike:"H2"};var S=function(e){return(0,O.jsx)(v,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};S.defaultProps={breakWords:!0,styledLike:"H3"};var P=function(e){return(0,O.jsx)(y,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(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.gL)(e.children),children:e.children})};E.defaultProps={breakWords:!0,styledLike:"H5"};var D,j,_,C,T,I,M,N=function(e){return(0,O.jsx)(w,{breakWords:e.breakWords,styledLike:e.styledLike,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};N.defaultProps={breakWords:!0,styledLike:"H6"};var A=p.cp.dd.withConfig({displayName:"StyledDd"})(D||(D=(0,d.c)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Gj)(),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),R=p.cp.dl.withConfig({displayName:"StyledDl"})(j||(j=(0,d.c)(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),l.aU.space(-1)),L=p.cp.dt.withConfig({displayName:"StyledDt"})(_||(_=(0,d.c)(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,l.Gj)({fontWeight:l.gn.fontWeight("bold")}),(function(e){return e.breakWords?(0,l._w)():(0,l.GI)()})),F=p.cp.li.withConfig({displayName:"StyledLi"})(C||(C=(0,d.c)(["\n && {\n ","\n ","\n }\n"])),(0,l.Gj)(),(0,l._w)()),H=p.cp.ol.withConfig({displayName:"StyledList"})(T||(T=(0,d.c)(["\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.aU.space(-1),l.aU.space(-.1)),U=(0,p.cp)(H).withConfig({displayName:"StyledOl"})(I||(I=(0,d.c)(["\n list-style-type: decimal;\n"]))),W=(0,p.cp)(H).withConfig({displayName:"StyledUl"})(M||(M=(0,d.c)(["\n && {\n list-style-type: disc;\n }\n"]))),B=function(e){return(0,O.jsx)(A,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})},z=function(e){return(0,O.jsx)(L,{breakWords:e.breakWords,title:e.breakWords?void 0:(0,l.gL)(e.children),children:e.children})};B.defaultProps=z.defaultProps={breakWords:!0};var Y=n(93896),V=function(e){return(0,O.jsx)(Y.u6,{breakWords:e.breakWords,title:de(e),children:e.children})},q=function(e){return(0,O.jsx)(Y.sD,{title:de(e),children:e.children})},G=function(e){return(0,O.jsx)(Y.IT,{breakWords:e.breakWords,title:de(e),children:e.children})},K=function(e){return(0,O.jsx)(Y.sr,{breakWords:e.breakWords,title:de(e),children:e.children})},$=function(e){return(0,O.jsx)(Y.mU,{breakWords:e.breakWords,title:de(e),children:e.children})},Q=function(e){return(0,O.jsx)(Y.od,{breakWords:e.breakWords,title:de(e),children:e.children})},X=function(e){return(0,O.jsx)(Y.eE,{breakWords:e.breakWords,title:de(e),children:e.children})},Z=function(e){return(0,O.jsx)(Y.AP,{breakWords:e.breakWords,title:de(e),children:e.children})},J=function(e){return(0,O.jsx)(Y.KI,{breakWords:e.breakWords,title:de(e),children:e.children})},ee=function(e){return(0,O.jsx)(Y.oh,{breakWords:e.breakWords,title:de(e),children:e.children})},te=function(e){return(0,O.jsx)(Y.qQ,{breakWords:e.breakWords,title:de(e),children:e.children})},ne=function(e){return(0,O.jsx)(Y.If,{breakWords:e.breakWords,title:de(e),children:e.children})},re=function(e){return(0,O.jsx)(Y.G0,{breakWords:e.breakWords,title:de(e),children:e.children})},oe=function(e){return(0,O.jsx)(Y.Ww,{breakWords:e.breakWords,title:de(e),children:e.children})},ie=function(e){return(0,O.jsx)(Y.E5,{breakWords:e.breakWords,title:de(e),children:e.children})},ae=function(e){return(0,O.jsx)(Y.UL,{breakWords:e.breakWords,title:de(e),children:e.children})},ce=function(e){return(0,O.jsx)(Y.gJ,{breakWords:e.breakWords,title:e.title,dateTime:e.dateTime,children:e.children})},se=function(e){return(0,O.jsx)(Y.ov,{breakWords:e.breakWords,title:de(e),children:e.children})},ue=function(e){return(0,O.jsx)(Y.mo,{breakWords:e.breakWords,title:de(e),children:e.children})},le=function(e){return(0,O.jsx)(Y.C6,{breakWords:e.breakWords,title:de(e),children:e.children})},de=function(e){return!e.useTitle||e.breakWords?void 0:(0,l.gL)(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=ae.defaultProps=oe.defaultProps=ie.defaultProps=se.defaultProps=ue.defaultProps={breakWords:!0,useTitle:!0},ce.defaultProps={breakWords:!1};var pe=n(19448),fe=n.n(pe),he=function(e,t){var n="\n color: ".concat(l.gn.color("text")(e),";\n font-family: ").concat(l.gn.fontFamily("regular")(e),";\n font-size: ").concat(l.aU.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(l.gn.fontWeight("regular")(e),";\n line-height: ").concat(l.gn.lineHeight("regular")(e),";\n\n a {\n color: ").concat(l.gn.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(fe()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(fe()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(l.gn.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.aU.font(5)(e),";}\n h2 {font-size: ").concat(l.aU.font(4)(e),";}\n h3 {font-size: ").concat(l.aU.font(3)(e),";}\n h4 {font-size: ").concat(l.aU.font(2)(e),";}\n h5 {font-size: ").concat(l.aU.font(1)(e),";}\n h6 {font-size: ").concat(l.aU.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(l.gn.fontWeight("bold")(e),";\n margin-top: ").concat(l.aU.space(0)(e),";\n margin-bottom: ").concat(l.aU.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.aU.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.aU.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:N,Dd:B,Dt:z,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)(U,{children:e.children})},Ul:function(e){return(0,O.jsx)(W,{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)(Y.wn,{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:ae,Sub:oe,Sup:ie,Time:ce,U:se,Var:ue}},67664:(e,t,n)=>{"use strict";n.d(t,{mA:()=>a,Ml:()=>i,i:()=>le,Gj:()=>de,GI:()=>pe,_w:()=>fe,Wn:()=>Pe,gL:()=>Te,e4:()=>Ne,iY:()=>Ee,aU:()=>Be,gn:()=>He,Il:()=>Ye,sH:()=>ze});var r=n(19448),o=n.n(r),i={base:function(e){var t=e.theme;return o()(t,"colors.text")},shade1:function(e){var t=e.theme;return o()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return o()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return o()(t,"colors.signal.info")}},a={base:function(e){var t=e.theme;return o()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return o()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},c=n(86692);function s(){return s=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},s.apply(this,arguments)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t,n){return d=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}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o},d.apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)},p(e)}var f=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),r}(p(Error));function h(e,t){return e.substr(-t.length)===t}var m=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function g(e){return"string"!=typeof e?e:e.match(m)?parseFloat(e):e}var v=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!h(t,"px"))throw new f(69,e,t);r=g(t)}if("string"==typeof n){if(!h(n,"px"))throw new f(70,e,n);o=g(n)}if("string"==typeof r)throw new f(71,t,e);if("string"==typeof o)throw new f(72,n,e);return""+r/o+e}};v("em");v("rem");function y(e){return Math.round(255*e)}function b(e,t,n){return y(e)+","+y(t)+","+y(n)}function w(e,t,n,r){if(void 0===r&&(r=b),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),c=0,s=0,u=0;o>=0&&o<1?(c=i,s=a):o>=1&&o<2?(c=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(c=a,u=i):o>=5&&o<6&&(c=i,u=a);var l=n-i/2;return r(c+l,s+l,u+l)}var O={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var x=/^#[a-fA-F0-9]{6}$/,k=/^#[a-fA-F0-9]{8}$/,S=/^#[a-fA-F0-9]{3}$/,P=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,D=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,j=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function C(e){if("string"!=typeof e)throw new f(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return O[t]?"#"+O[t]:e}(e);if(t.match(x))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(k)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(S))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(P)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=E.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=D.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=j.exec(t);if(a){var c="rgb("+w(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=E.exec(c);if(!s)throw new f(4,t,c);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var u=_.exec(t.substring(0,50));if(u){var l="rgb("+w(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=E.exec(l);if(!d)throw new f(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new f(5)}function T(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),c=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var s=i-a,u=c>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:c,alpha:e.alpha}:{hue:t,saturation:u,lightness:c}}(C(e))}var I=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function N(e){return M(Math.round(255*e))}function A(e,t,n){return I("#"+N(e)+N(t)+N(n))}function R(e,t,n){return w(e,t,n,A)}function L(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return R(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return R(e.hue,e.saturation,e.lightness);throw new f(1)}function F(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?R(e,t,n):"rgba("+w(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?R(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function H(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return I("#"+M(e)+M(t)+M(n));if("object"==typeof e&&void 0===t&&void 0===n)return I("#"+M(e.red)+M(e.green)+M(e.blue));throw new f(6)}function U(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=C(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?H(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?H(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}var W=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},B=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},z=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Y=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function V(e){if("object"!=typeof e)throw new f(8);if(B(e))return U(e);if(W(e))return H(e);if(Y(e))return F(e);if(z(e))return L(e);throw new f(8)}function q(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):q(e,t,r)}}function G(e){return q(e,e.length,[])}G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{hue:n.hue+parseFloat(e)}))}));function K(e,t,n){return Math.max(e,Math.min(t,n))}G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{lightness:K(0,1,n.lightness-parseFloat(e))}))}));G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{saturation:K(0,1,n.saturation-parseFloat(e))}))}));function $(e){if("transparent"===e)return 0;var t=C(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Q(e,t){var n=$(e),r=$(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var X=G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{lightness:K(0,1,n.lightness+parseFloat(e))}))})),Z=X;var J=G((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=C(t),o=s({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=C(n),a=s({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),c=o.alpha-a.alpha,u=2*parseFloat(e)-1,l=((u*c==-1?u:u+c)/(1+u*c)+1)/2,d=1-l;return U({red:Math.floor(o.red*l+a.red*d),green:Math.floor(o.green*l+a.green*d),blue:Math.floor(o.blue*l+a.blue*d),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),ee=J;G((function(e,t){if("transparent"===t)return t;var n=C(t);return U(s({},n,{alpha:K(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var te="#000",ne="#fff";G((function(e,t){if("transparent"===t)return t;var n=T(t);return V(s({},n,{saturation:K(0,1,n.saturation+parseFloat(e))}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{hue:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{lightness:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:V(s({},T(t),{saturation:parseFloat(e)}))}));G((function(e,t){return"transparent"===t?t:ee(parseFloat(e),"rgb(0, 0, 0)",t)}));var re=G((function(e,t){return"transparent"===t?t:ee(parseFloat(e),"rgb(255, 255, 255)",t)})),oe=re;var ie=G((function(e,t){if("transparent"===t)return t;var n=C(t);return U(s({},n,{alpha:K(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),ae=ie;var ce,se,ue=n(80560),le=function(e){var t=o()(e.theme,"colors.signal.info",Pe.fallbackColors.INFO);return(0,ue.gV)(ce||(ce=(0,c.c)(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,ae(.4,t))};const de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ue.gV)(se||(se=(0,c.c)(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||He.color("text"),e.fontFamily||He.fontFamily("regular"),e.fontSize||Be.font(0),e.fontStyle||"normal",e.fontWeight||He.fontWeight("regular"),e.lineHeight||He.lineHeight("regular"))};var pe=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},fe=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"},he=n(3268),me=n.n(he),ge={NONE:"none",SPIN:"spin"},ve={BASE:"base",PRIMARY:"primary",SECONDARY:"secondary"},ye={BOX:"layoutBox",CONTAINER:"layoutContainer",NONE:"none"},be={BALL:"ball",FLAT:"flat",PLAIN:"plain",RAISED:"raised"},we={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},Oe=me().oneOf(Object.values(ge)),xe=me().oneOf(Object.values(ve)),ke=me().oneOf(Object.values(be)),Se=me().oneOf(Object.values(we));const Pe={animation:ge,animationPropTypes:Oe,condition:{BASE:"base",DANGER:"danger",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",INFO:"info"},ink:ve,inkPropTypes:xe,layout:ye,layoutPropTypes:me().oneOf(Object.values(ye)),look:be,lookPropTypes:ke,fallbackColors:{SHADE:"#000000",INFO:"#0000ff",TEXT:"#010101",PAPER:"#fefefe"},format:{HTML:"html",SVG:"svg"},oneOfPropTypeAndCompletelyMapped:function(e,t){return me().oneOf(Object.values(e))},position:we,positionPropTypes:Se};var Ee="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;n(79088);var De=n(81568),je=n(69624),_e=n.n(je),Ce=function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};const Te=function e(t){var n="";return _e().Children.map(t,(function(t,r){"string"==typeof t||"number"==typeof t?n="".concat(n).concat(t):"object"===(0,De.c)(t)&&t.props.children?n="".concat(n).concat(e(t.props.children)):"object"===(0,De.c)(t)&&t.props.dangerouslySetInnerHTML&&(n="".concat(n," ").concat(Ce(t.props.dangerouslySetInnerHTML.__html)))})),n};var Ie,Me=function(e,t){return function(e,t,n,r){void 0===t&&(t=te),void 0===n&&(n=ne),void 0===r&&(r=!0);var o=$(e)>.179,i=o?t:n;return!r||Q(e,i)>=4.5?i:o?te:ne}(e,He.color("text")({theme:t}),He.color("paper")({theme:t}))};const Ne=function(e){var t=e.ink,n=e.look,r=e.theme,o=function(e,t,n){var r="secondary"===e&&"raised"===t;return"primary"===e&&"raised"===t?He.color("primary")({theme:n}):r?He.color("secondary")({theme:n}):He.color("paper")({theme:n})}(t,n,r),i=function(e,t,n,r){return"primary"===e&&"raised"!==t?He.color("primary")({theme:n}):Me(r,n)}(t,n,r,o),a=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(He.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?He.color("primaryLight")({theme:n}):He.color("secondaryLight")({theme:n}):He.color("backgroundItemHover")({theme:n})}(t,n,r),u=function(e,t,n){return"raised"===e?He.color("paper")({theme:t}):Me(n,t)}(n,r,o);return(0,ue.gV)(Ie||(Ie=(0,c.c)(["\n && {\n color: ",";\n }\n background: ",";\n box-shadow: ",";\n outline: none;\n border: none;\n\n &:focus,\n &:hover {\n background: ",";\n color: ",";\n }\n\n &:active,\n &[aria-pressed='true'] {\n background: ",";\n }\n\n &:disabled,\n &[disabled] {\n background: ",";\n opacity: 0.5;\n cursor: not-allowed;\n }\n "])),i,o,a,s,u,Z(.1,s),"dark"!==r.name?oe(.41,o):"transparent")};var Ae=n(41400),Re=n.n(Ae),Le=n(87836),Fe=function(e){return 0===Object.keys(e).length?Le.c:e};const He={color:function(e){return function(t){var n=t.theme;return o()(Fe(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(Fe(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(Fe(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(Fe(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(Fe(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(Fe(n),"specificProperties.".concat(e))}}};var Ue=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(Re()(We(t,e,n),3)).concat(r)},We=function(e,t,n){return Math.pow(n,t)*e};const Be={declareScale:Ue,exponentiate:We,font:function(e,t){return function(n){return Ue(e,He.fontSize("base")(n),He.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ue(e,He.space("base")(n),He.space("factor")(n),t)}}};n(32920);var ze=function(e){(0,je.useEffect)((function(){var t=function(t){"Enter"===t.key&&"TEXTAREA"!==t.target.tagName&&(t.preventDefault(),t.stopPropagation(),e())};return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)}}),[e])};(function(){window.onload=function(){var e=0,t=function(){new Date-e<500||document.body.classList.add("hasHover")};document.addEventListener("touchstart",(function(){e=new Date}),!0),document.addEventListener("touchstart",(function(){document.body.classList.remove("hasHover")}),!0),document.addEventListener("mousemove",t,!0),t()}})();var Ye=He},8688:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={log:function(){var e;window.console&&(e=console).log.apply(e,arguments)},logError:function(){window.console&&(console.error||console.log).apply(void 0,arguments)},logWarning:function(){window.console&&(console.warn||console.log).apply(void 0,arguments)}}},61536:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>g,EV:()=>s,GW:()=>o,I9:()=>h,Mk:()=>u,Q$:()=>f,YV:()=>l,dD:()=>i,kj:()=>p,kx:()=>a,uA:()=>d,uE:()=>v,uQ:()=>m});var r=n(8688),o="__n-u-l-l__",i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},a=Object.values(i),c={backendUrl:void 0,businessUnit:void 0,embedType:i.admin,widgetConfigKey:void 0},s=function(){return c.backendUrl||""},u=function(e){c.backendUrl=e},l=function(){return c.businessUnit},d=function(e){c.businessUnit=e},p=function(){return c.embedType},f=function(){var e=p();return[i.admin,i.legacyAdmin].includes(e)},h=function(){var e=p();return[i.widget].includes(e)},m=function(e){a.includes(e)?c.embedType=e:r.c.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(a.join(", ")))},g=function(){return c.widgetConfigKey},v=function(e){c.widgetConfigKey=e}},57292:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var r=n(52536),o=n(8688),i=n(61536),a=n(17624);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}var s=function(e){var t=e.mapping;return t[(0,i.kj)()||i.dD.admin]||t[i.dD.admin]};const u=function(e){var t=e.mapping;e.propTypes;return function(e){var n=s({mapping:t});return n||o.c.logError("Unable to render embed component: No embed component defined."),(0,a.jsx)(n,function(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,r.c)(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}({},e))}};const l={EmbedType:i.dD,isInAdminEmbedded:i.Q$,isInWidgetEmbedded:i.I9,embedStrategyFactory:u,embedStrategy:s,getBackendUrl:i.EV,setBackendUrl:i.Mk,getBusinessUnit:i.YV,setBusinessUnit:i.uA,getEmbedType:i.kj,setEmbedType:i.uQ,getWidgetConfigKey:i.AJ,setWidgetConfigKey:i.uE,NULL_BUSINESS_UNIT:i.GW,ALLOWED_EMBED_TYPES:i.kx,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&(0,i.Mk)(e.backendUrl),e.businessUnit&&(0,i.uA)(e.businessUnit),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&(0,i.uQ)(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&(0,i.uE)(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},86280:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2062),o="_tocco_originId";const i={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},90800:(e,t,n)=>{"use strict";n.d(t,{c:()=>p});var r=n(52536),o=n(81568),i=n(57292),a=n(86280);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 s(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,r.c)(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 u={method:"GET",credentials:"include"},l=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===(0,o.c)(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",a.c.getOriginId()),!t.has("X-Business-Unit")&&i.c.getBusinessUnit()&&t.set("X-Business-Unit",i.c.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",i.c.isInAdminEmbedded()?"client":"widget"),t},d=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)};const p={prepareHeaders:l,prepareUrl:d,executeRequest:function(e){var t=function(e){return s(s(s({},u),e),{},{headers:l(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=i.c.getBackendUrl(),r=d(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},89080:(e,t)=>{var n;
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
@@ -41,7 +41,7 @@ object-assign
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var r=n(69624);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!c){if(c=!0,i=e,e=r(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,l]);var f=i(e,d[0],d[1]);return c((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},36728:(e,t,n)=>{"use strict";e.exports=n(57556)},2062:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&a.test(e)},s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function u(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const l=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=c[e];return o}return u(c)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return f((a=f(f(t,e),f(r,i)))<<(c=o)|a>>>32-c,n);var a,c}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,c=r,s=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=f(n,a),r=f(r,c),o=f(o,s),i=f(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=x(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],c=n[2],s=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=x(o,5)+O(n,a,c,s)+u+t[n]+r[e]>>>0;u=s,s=c,c=x(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+s>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},69624:e=>{"use strict";e.exports=t},42416:t=>{"use strict";t.exports=e},6636:(e,t,n)=>{var r=n(59848).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),c=new j(r||[]);return a(i,"_invoke",{value:S(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function v(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,s)&&(y=w);var O=v.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,c,s){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function _(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return g.prototype=v,a(O,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(O),d(O,l,"Generator"),d(O,s,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},33248:(e,t,n)=>{var r=n(6636)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},82840:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},52376:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},31496:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))!s.call(e,c)&&c!==n&&o(e,c,{get:()=>t[c],enumerable:!(r=i(t,c))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(c(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>ve,ReactReduxContext:()=>y,batch:()=>xe,connect:()=>ge,createDispatchHook:()=>we,createSelectorHook:()=>S,createStoreHook:()=>ye,shallowEqual:()=>J,useDispatch:()=>Oe,useSelector:()=>P,useStore:()=>be}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var p=l(n(69624)),f=n(36728),h=l(n(69624)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:c,stabilityCheck:s,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,s,o.stabilityCheck])),d=x(a.addNestedSub,i.getState,c||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var P=S(),E=Symbol.for("react.element"),D=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),I=Symbol.for("react.context"),M=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),N),U=L;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case E:{let n=e.type;switch(n){case j:case C:case _:case A:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case I:case N:case F:case L:case T:return e;default:return t}}}}case D:return t}}}(e)===L}function B(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){let h=!i(f,s),m=!o(p,c,f,s);return c=p,s=f,h&&m?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?function(){let t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):function(o,i){return c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d}(o,i)}}function z(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Y(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function V(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Y(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Y(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function Q(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){c();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var X=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function J(e,t){if(Z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Z(e[n[r]],t[n[r]]))return!1;return!0}var ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},re={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:ne};function oe(e){return W(e)?ne:re[e.$$typeof]||ee}var ie=Object.defineProperty,ae=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ue=Object.getPrototypeOf,le=Object.prototype;function de(e,t){if("string"!=typeof t){if(le){let n=ue(t);n&&n!==le&&de(e,n)}let n=ae(t);ce&&(n=n.concat(ce(t)));let r=oe(e),o=oe(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(te[a]||o&&o[a]||r&&r[a])){let n=se(t,a);try{ie(e,a,n)}catch{}}}}return e}var pe=b,fe=[null,null];function he(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function me(e,t){return e===t}var ge=function(e,t,n,{pure:r,areStatesEqual:o=me,areOwnPropsEqual:i=J,areStatePropsEqual:a=J,areMergedPropsEqual:c=J,forwardRef:s=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):z((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?z((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?V(e):q(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),c=m.useContext(a),s=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!c&&!!c.store,d=s?t.store:c.store,p=u?c.getServerState:d.getState,f=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return B(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return fe;let e=Q(d,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,s,c]),y=m.useMemo((()=>s?c:{...c,subscription:g}),[s,c,g]),b=m.useRef(),w=m.useRef(i),O=m.useRef(),x=m.useRef(!1),k=(m.useRef(!1),m.useRef(!1)),S=m.useRef();X((()=>(k.current=!0,()=>{k.current=!1})),[]);let P,E=m.useMemo((()=>()=>O.current&&i===w.current?O.current:f(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null,f=()=>{if(d||!c.current)return;let e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===i.current?a.current||u():(i.current=e,s.current=e,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,d,g,f,w,b,x,k,O,v,e):()=>{}),[g]);!function(e,t,n){X((()=>e(...t)),n)}(he,[w,b,x,i,O,v]);try{P=pe(D,E,p?()=>f(p(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,O.current=void 0,b.current=P}));let j=m.useMemo((()=>m.createElement(e,{...P,ref:o})),[o,e,P]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},j):j),[a,j,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,s){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,de(t,e)}return de(g,e)}};var ve=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=Q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),c=m.useMemo((()=>e.getState()),[e]);return X((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,c]),m.createElement((t||y).Provider,{value:a},n)};function ye(e=y){let t=e===y?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var be=ye();function we(e=y){let t=e===y?be:ye(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Oe=we(),xe=K;(e=>{x=e})(f.useSyncExternalStoreWithSelector),(e=>{pe=e})(p.useSyncExternalStore)},99988:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{c:()=>r})},80472:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{c:()=>r})},87088:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{c:()=>r})},92920:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(52028);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.c)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52536:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(52028);function o(e,t,n){return(t=(0,r.c)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},76184:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{c:()=>r})},62988:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(61936);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.c)(e,t)}},5724:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{c:()=>r})},65500:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{c:()=>r})},52822:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{c:()=>r})},19952:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e,t){if(t&&("object"===(0,r.c)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},61936:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{c:()=>r})},32920:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(80472);var o=n(70309),i=n(65500);function a(e,t){return(0,r.c)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||(0,o.c)(e,t)||(0,i.c)()}},86692:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{c:()=>r})},32612:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(99988);var o=n(5724),i=n(70309);function a(e){return function(e){if(Array.isArray(e))return(0,r.c)(e)}(e)||(0,o.c)(e)||(0,i.c)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},52028:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e){var t=function(e,t){if("object"!==(0,r.c)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.c)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.c)(t)?t:String(t)}},81568:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{c:()=>r})},70309:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99988);function o(e,t){if(e){if("string"==typeof e)return(0,r.c)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.c)(e,t):void 0}}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({8:"vendor-libphonenumber-js",216:"html-editor",448:"vendor-icons",570:"phone-formatter",784:"code-editor",952:"vendor-fontawesome"}[e]||e)+"."+{8:"4b1909c2f8a566e22e25",26:"1b64fb04cdbbb9bf2fc6",216:"130f915cc9c87fef1a6c",448:"a22123aba6eed26618fb",570:"c51becfaaf48f9c09e80",648:"8560541a14350540e119",784:"ed0fa240e75534ea0ea0",904:"28dbeef2020087939059",952:"d8c7377c8bfd33fb7a29"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={956:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";function e(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}s.r(u),s.d(u,{app:()=>yG});var n=s(33248),r=s.n(n),o=s(66904),i=s.n(o),a=s(28352),c=s(8688),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},p=s(98168),f=s(69624),h=s.n(f),m=s(36728),g=f,v=Symbol.for("react-redux-context"),y="undefined"!=typeof globalThis?globalThis:{};function b(){if(!g.createContext)return{};const e=y[v]??(y[v]=new Map);let t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}var w=b(),O=()=>{throw new Error("uSES not initialized!")};var x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),j=Symbol.for("react.context"),_=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),R=M;function L(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case x:{const n=e.type;switch(n){case S:case E:case P:case T:case I:return n;default:{const e=n&&n.$$typeof;switch(e){case _:case j:case C:case N:case M:case D:return e;default:return t}}}}case k:return t}}}function F(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){const h=!i(f,s),m=!o(p,c,f,s);return c=p,s=f,h&&m?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?function(){const t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):(c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d)}}function H(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function U(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function W(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=U(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=U(o),o=r(t,n)),o},r}}function B(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function z(e,t,n){return{...n,...e,...t}}function Y(e){e()}var V={notify(){},get:()=>[]};function q(e,t){let n,r=V,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Y((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=V)}const u={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?g.useLayoutEffect:g.useEffect;function K(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $(e,t){if(K(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!K(e[n[r]],t[n[r]]))return!1;return!0}var Q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J={[A]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[R]:Z};function ee(e){return function(e){return L(e)===M}(e)?Z:J[e.$$typeof]||Q}var te=Object.defineProperty,ne=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,oe=Object.getOwnPropertyDescriptor,ie=Object.getPrototypeOf,ae=Object.prototype;function ce(e,t){if("string"!=typeof t){if(ae){const n=ie(t);n&&n!==ae&&ce(e,n)}let n=ne(t);re&&(n=n.concat(re(t)));const r=ee(e),o=ee(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(X[a]||o&&o[a]||r&&r[a])){const n=oe(t,a);try{te(e,a,n)}catch(e){}}}}return e}var se=O,ue=[null,null];function le(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function de(e,t){return e===t}var pe=function(e,t,n,{pure:r,areStatesEqual:o=de,areOwnPropsEqual:i=$,areStatePropsEqual:a=$,areMergedPropsEqual:c=$,forwardRef:s=!1,context:u=w}={}){const l=u,d=function(e){return e?"function"==typeof e?W(e):B(e,"mapStateToProps"):H((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?H((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?W(e):B(e,"mapDispatchToProps"):H((e=>({dispatch:e})))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):B(e,"mergeProps"):()=>z}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function u(t){const[n,o,i]=g.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=g.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),c=g.useContext(a),s=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(c)&&Boolean(c.store);const d=s?t.store:c.store,p=u?c.getServerState:d.getState,f=g.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return F(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,v]=g.useMemo((()=>{if(!h)return ue;const e=q(d,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,s,c]),y=g.useMemo((()=>s?c:{...c,subscription:m}),[s,c,m]),b=g.useRef(),w=g.useRef(i),O=g.useRef(),x=g.useRef(!1),k=(g.useRef(!1),g.useRef(!1)),S=g.useRef();G((()=>(k.current=!0,()=>{k.current=!1})),[]);const P=g.useMemo((()=>()=>O.current&&i===w.current?O.current:f(d.getState(),i)),[d,i]),E=g.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!c.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===i.current?a.current||u():(i.current=n,s.current=n,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,d,m,f,w,b,x,k,O,v,e):()=>{}),[m]);var D,j,_;let C;D=le,j=[w,b,x,i,O,v],G((()=>D(...j)),_);try{C=se(E,P,p?()=>f(p(),i):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}G((()=>{S.current=void 0,O.current=void 0,b.current=C}));const T=g.useMemo((()=>g.createElement(e,{...C,ref:o})),[o,e,C]);return g.useMemo((()=>h?g.createElement(a.Provider,{value:y},T):T),[a,T,y])}const m=g.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,s){const t=g.forwardRef((function(e,t){return g.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,ce(t,e)}return ce(m,e)}};var fe=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=g.useMemo((()=>{const t=q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),c=g.useMemo((()=>e.getState()),[e]);G((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,c]);const s=t||w;return g.createElement(s.Provider,{value:a},n)};var he;he=m.useSyncExternalStoreWithSelector,(e=>{se=e})(f.useSyncExternalStore);var me,ge,ve=s(87088),ye=s(92920),be=s(19952),we=s(76184),Oe=s(62988),xe=s(3268),ke=s.n(xe),Se=s(86692),Pe=s(96684),Ee=s(80560),De=s(67664),je=(0,Ee.gV)(me||(me=(0,Se.c)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,De.Gj)(),De.gn.color("text"),De.gn.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,Ee.cp)(Pe.Af)(ge||(ge=(0,Se.c)(["\n ",";\n"])),je);var _e;const Ce=(0,Ee.cp)(Pe.cH).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(_e||(_e=(0,Se.c)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),De.Il.color("text"),je);var Te,Ie=s(52536),Me=s(52822),Ne=s(30392),Ae=s(17624);function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=(0,f.lazy)((function(){return s.e(26).then(s.bind(s,42026))}));const He=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:Te||(Te=(0,Ae.jsx)(h().Fragment,{})),children:(0,Ae.jsx)(Fe,Le({},e))})};var Ue=s(32920);function We(e,t){var n=(0,f.useState)(e),r=(0,Ue.c)(n,2),o=r[0],i=r[1];return(0,f.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return h().forwardRef((function(r,o){var i=r.value,a=(0,f.useState)(i),c=(0,Ue.c)(a,2),s=c[0],u=c[1],l=We(s,t),d=(0,Ue.c)(l,2),p=d[0],h=d[1],m=(0,f.useRef)(i),g=r[n];return(0,f.useEffect)((function(){s!==i&&s===p&&(u(i),m.current=i,h(i))}),[i]),(0,f.useEffect)((function(){g&&m.current!==p&&(g(p),m.current=p)}),[p,g]),(0,Ae.jsx)(e,ze(ze(ze({},r),{},{value:s},(0,Ie.c)({},n,u)),{},{ref:o}))}))};const Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,f.useEffect)((function(){if(e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const qe=function(){var e=(0,f.useState)(),t=(0,Ue.c)(e,2),n=t[0],r=t[1],o=(0,f.useRef)(),i=(0,f.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,f.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,f.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Ge=function(e){var t=(0,f.useRef)(null),n=(0,f.useState)(null),r=(0,Ue.c)(n,2),o=r[0],i=r[1],a=(0,f.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),c=(0,f.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,f.useEffect)((function(){return c(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){c()}}),[c,a]),[i,c,a]},Ke={useAutofocus:Ve,useDebounce:We,Debouncer:Ye,useUserActive:Ge,usePrevious:function(e){var t=(0,f.useRef)();return(0,f.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,f.useRef)(!1);(0,f.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:qe};var $e="hidden",Qe="responsive",Xe={labelVisibility:Qe},Ze=h().createContext(Xe);var Je,et,tt,nt,rt,ot,it=(0,Ee.gV)(nt||(nt=(0,Se.c)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),De.gn.radii("button"),De.aU.space(-1.38),De.aU.space(-2.1),De.aU.space(0),(0,De.Gj)(),(function(e){return e.withoutBackground?(0,Ee.gV)(tt||(tt=(0,Se.c)(["\n background: transparent;\n"]))):(0,De.e4)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Ee.gV)(Je||(Je=(0,Se.c)(["\n line-height: ",";\n padding: "," ",";\n "])),De.gn.lineHeight("dense")({theme:n}),De.aU.space(-3.5)({theme:n}),De.aU.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Ee.gV)(et||(et=(0,Se.c)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===De.Wn.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(at," {\n display: none;\n }\n ");return t&&n===$e?r:t&&n===Qe&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),at=Ee.cp.span.withConfig({displayName:"StyledLabelWrapper"})(rt||(rt=(0,Se.c)([""])));const ct=Ee.cp.button.withConfig({displayName:"StyledButton"})(ot||(ot=(0,Se.c)(["\n ","\n"])),it);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=h().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,c=e.look,s=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,f.useContext)(Ze).labelVisibility;return(0,Ae.jsxs)(ct,ut(ut(ut({ref:t},n),e),{},{ink:r||De.Wn.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[i&&!a&&(0,Ae.jsx)(Ne.c,{icon:i}),a&&(0,Ae.jsx)(He,{ink:r||De.Wn.ink.BASE,look:c,position:s,size:"1em"}),!u&&o?(0,Ae.jsx)(at,{children:o}):l||""]}))}));lt.defaultProps={iconPosition:De.Wn.position.PREPEND,look:De.Wn.look.FLAT,type:"button"};const dt=lt;var pt;(0,Ee.cp)(Pe.cH).withConfig({shouldForwardProp:function(e,t){return!["labelVisibility"].includes(e)&&t(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(pt||(pt=(0,Se.c)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),De.Il.color("text"),it);var ft,ht;const mt=Ee.cp.button.withConfig({displayName:"StyledButton"})(ht||(ht=(0,Se.c)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,De.Gj)(),De.e4,(function(){return(0,Ee.gV)(ft||(ft=(0,Se.c)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),De.aU.space(-3),De.gn.fontSize("base"),De.gn.lineHeight("regular"),De.aU.space(-3))}));function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yt=h().forwardRef((function(e,t){return(0,Ae.jsx)(mt,vt(vt({ref:t,type:"button"},e),{},{children:(0,Ae.jsx)(Ne.c,{icon:e.icon})}))}));yt.propTypes={disabled:ke().bool,icon:ke().string.isRequired,ink:De.Wn.inkPropTypes,look:ke().oneOf([De.Wn.look.FLAT,De.Wn.look.RAISED]),onClick:ke().func,title:ke().string,tabIndex:ke().number,"data-cy":ke().string};const bt=yt;var wt,Ot,xt,kt,St=s(32612),Pt=s(83400),Et=s.n(Pt),Dt=s(56584),jt=s.n(Dt),_t=s(20448),Ct=s.n(_t),Tt=s(89456),It=s.n(Tt),Mt="bodyAttributes",Nt="htmlAttributes",At="titleAttributes",Rt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Lt=(Object.keys(Rt).map((function(e){return Rt[e]})),"charset"),Ft="cssText",Ht="href",Ut="http-equiv",Wt="innerHTML",Bt="itemprop",zt="name",Yt="property",Vt="rel",qt="src",Gt="target",Kt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$t="defaultTitle",Qt="defer",Xt="encodeSpecialCharacters",Zt="onChangeClientState",Jt="titleTemplate",en=Object.keys(Kt).reduce((function(e,t){return e[Kt[t]]=t,e}),{}),tn=[Rt.NOSCRIPT,Rt.SCRIPT,Rt.STYLE],nn="data-react-helmet",rn="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},on=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}}(),an=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},cn=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},sn=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,"'")},un=function(e){var t=hn(e,Rt.TITLE),n=hn(e,Jt);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=hn(e,$t);return t||r||void 0},ln=function(e){return hn(e,Zt)||function(){}},dn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return an({},e,t)}),{})},pn=function(e,t){return t.filter((function(e){return void 0!==e[Rt.BASE]})).map((function(e){return e[Rt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},fn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&bn("Helmet: "+e+' should be of type "Array". Instead found type "'+rn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],s=c.toLowerCase();-1===t.indexOf(s)||n===Vt&&"canonical"===e[n].toLowerCase()||s===Vt&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==Wt&&c!==Ft&&c!==Bt||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],s=It()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},hn=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},mn=(wt=Date.now(),function(e){var t=Date.now();t-wt>16?(wt=t,e(t)):setTimeout((function(){mn(e)}),0)}),gn=function(e){return clearTimeout(e)},vn="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||mn:s.g.requestAnimationFrame||mn,yn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||gn:s.g.cancelAnimationFrame||gn,bn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},wn=null,On=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,p=e.titleAttributes;Sn(Rt.BODY,r),Sn(Rt.HTML,o),kn(d,p);var f={baseTag:Pn(Rt.BASE,n),linkTags:Pn(Rt.LINK,i),metaTags:Pn(Rt.META,a),noscriptTags:Pn(Rt.NOSCRIPT,c),scriptTags:Pn(Rt.SCRIPT,u),styleTags:Pn(Rt.STYLE,l)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),s(e,h,m)},xn=function(e){return Array.isArray(e)?e.join(""):e},kn=function(e,t){void 0!==e&&document.title!==e&&(document.title=xn(e)),Sn(Rt.TITLE,t)},Sn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(nn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var s=a[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=i.indexOf(s);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(nn):n.getAttribute(nn)!==a.join(",")&&n.setAttribute(nn,a.join(","))}},Pn=function(e,t){var n=document.head||document.querySelector(Rt.HEAD),r=n.querySelectorAll(e+"["+nn+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Wt)n.innerHTML=t.innerHTML;else if(r===Ft)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(nn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},En=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}),"")},Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Kt[n]||n]=e[n],t}),t)},jn=function(e,t,n){switch(e){case Rt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[nn]=!0,o=Dn(n,r),[h().createElement(Rt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=En(n),i=xn(t);return o?"<"+e+" "+nn+'="true" '+o+">"+sn(i,r)+"</"+e+">":"<"+e+" "+nn+'="true">'+sn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Mt:case Nt:return{toComponent:function(){return Dn(t)},toString:function(){return En(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[nn]=!0,r);return Object.keys(t).forEach((function(e){var n=Kt[e]||e;if(n===Wt||n===Ft){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().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===Wt||e===Ft)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+sn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===tn.indexOf(e);return t+"<"+e+" "+nn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},_n=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,p=e.titleAttributes;return{base:jn(Rt.BASE,t,r),bodyAttributes:jn(Mt,n,r),htmlAttributes:jn(Nt,o,r),link:jn(Rt.LINK,i,r),meta:jn(Rt.META,a,r),noscript:jn(Rt.NOSCRIPT,c,r),script:jn(Rt.SCRIPT,s,r),style:jn(Rt.STYLE,u,r),title:jn(Rt.TITLE,{title:d,titleAttributes:p},r)}},Cn=jt()((function(e){return{baseTag:pn([Ht,Gt],e),bodyAttributes:dn(Mt,e),defer:hn(e,Qt),encode:hn(e,Xt),htmlAttributes:dn(Nt,e),linkTags:fn(Rt.LINK,[Vt,Ht],e),metaTags:fn(Rt.META,[zt,Lt,Ut,Yt,Bt],e),noscriptTags:fn(Rt.NOSCRIPT,[Wt],e),onChangeClientState:ln(e),scriptTags:fn(Rt.SCRIPT,[qt,Wt],e),styleTags:fn(Rt.STYLE,[Ft],e),title:un(e),titleAttributes:dn(At,e)}}),(function(e){wn&&yn(wn),e.defer?wn=vn((function(){On(e,(function(){wn=null}))})):(On(e),wn=null)}),_n)((function(){return null})),Tn=(Ot=Cn,kt=xt=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!Ct()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Rt.SCRIPT:case Rt.NOSCRIPT:return{innerHTML:t};case Rt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return an({},r,((t={})[n.type]=[].concat(r[n.type]||[],[an({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Rt.TITLE:return an({},o,((t={})[r.type]=a,t.titleAttributes=an({},i),t));case Rt.BODY:return an({},o,{bodyAttributes:an({},i)});case Rt.HTML:return an({},o,{htmlAttributes:an({},i)})}return an({},o,((n={})[r.type]=an({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=an({},t);return Object.keys(e).forEach((function(t){var r;n=an({},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 h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[en[n]||n]=e[n],t}),t)}(cn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Rt.LINK:case Rt.META:case Rt.NOSCRIPT:case Rt.SCRIPT:case Rt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=cn(e,["children"]),r=an({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(Ot,r)},on(t,null,[{key:"canUseDOM",set:function(e){Ot.canUseDOM=e}}]),t}(h().Component),xt.propTypes={base:Et().object,bodyAttributes:Et().object,children:Et().oneOfType([Et().arrayOf(Et().node),Et().node]),defaultTitle:Et().string,defer:Et().bool,encodeSpecialCharacters:Et().bool,htmlAttributes:Et().object,link:Et().arrayOf(Et().object),meta:Et().arrayOf(Et().object),noscript:Et().arrayOf(Et().object),onChangeClientState:Et().func,script:Et().arrayOf(Et().object),style:Et().arrayOf(Et().object),title:Et().string,titleAttributes:Et().object,titleTemplate:Et().string},xt.defaultProps={defer:!0,encodeSpecialCharacters:!0},xt.peek=Ot.peek,xt.rewind=function(){var e=Ot.rewind();return e||(e=_n({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},kt);Tn.renderStatic=Tn.rewind;var In=s(24300),Mn=s.n(In),Nn=["border","border-spacing","padding","margin","text-align","width"];Mn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Nn.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const An=function(e){return e?Mn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Rn={sanitizeHtml:An};var Ln=s(13356),Fn={error:"exclamation-circle",home:"house-blank"},Hn=function(e){return Fn[e]||e};const Un=function(e){var t=e.type;return t&&"record"!==t?(0,Ae.jsx)(Ne.c,{icon:Hn(t)}):null};var Wn,Bn,zn,Yn,Vn,qn,Gn=["component"],Kn=Ee.cp.div.withConfig({displayName:"StyledBreadcrumbs"})(Wn||(Wn=(0,Se.c)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||De.gn.color("backgroundBreadcrumbs")(e)}),De.aU.space(-.7),De.aU.space(.39)),$n=(0,Ee.cp)((function(e){var t=e.component,n=(0,Me.c)(e,Gn);return h().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Bn||(Bn=(0,Se.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.color("secondaryLight"),De.gn.color("breadcrumbsActive")),Qn=Ee.cp.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(zn||(zn=(0,Se.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.color("breadcrumbsActive")),Xn=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledBreadcrumbSeparator"})(Yn||(Yn=(0,Se.c)(["\n margin-left: ",";\n margin-right: ",";\n"])),De.aU.space(-2),De.aU.space(-2)),Zn=Ee.cp.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Vn||(Vn=(0,Se.c)(["\n "," {\n margin-right: ",";\n }\n"])),Ne._,De.aU.space(-1));const Jn=function(){return qn||(qn=(0,Ae.jsx)(Xn,{breakWords:!0,children:(0,Ae.jsx)(Ne.c,{icon:"chevron-right"})}))};var er;function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rr=function(e){return e.title||e.display},or=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(rr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(rr).join(" - ");break;default:r=rr(n)}return r},ir=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,a=e.currentView,c=e.backgroundColor,s=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,St.c)(i),(0,St.c)(a?[a]:[]));if(0===d.length)return null;var p,f=d.map((function(e,n){var o,i=e.display||"",a=n===d.length-1?Qn:$n,c=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,Ae.jsx)(u,{})):er||(er=(0,Ae.jsx)(Ce,{}));return(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)(Zn,{children:(0,Ae.jsxs)(a,nr(nr(nr({neutral:!0},c),l),{},{onClick:(o=e,function(){s&&!1!==o.clickable&&s(o)}),component:p,children:[(0,Ae.jsx)(Un,{type:e.type}),(0,Ae.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ae.jsx)(Jn,{},"icon".concat(n)),t]}));return(0,Ae.jsxs)(Kn,{backgroundColor:c,children:[l?(0,Ae.jsx)(Tn,{defer:!1,children:(0,Ae.jsx)("title",{children:or(d,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ae.jsx)(Ae.Fragment,{children:f})]})};ir.defaultProps={pathPrefix:""};const ar=ir;(0,p.injectIntl)(ar);var cr,sr,ur=Ee.cp.div.withConfig({displayName:"StyledWrapper"})(cr||(cr=(0,Se.c)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,De.Gj)(),(function(e){return e.theme.colors.signal.danger}),De.Il.color("paper"),De.aU.space(-.5));const lr=function(){return sr||(sr=(0,Ae.jsx)(ur,{children:(0,Ae.jsx)(p.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var dr;const pr=Ee.cp.div.withConfig({displayName:"StyledButtonGroup"})(dr||(dr=(0,Se.c)(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),ct);var fr=h().forwardRef((function(e,t){return(0,Ae.jsx)(pr,{ref:t,children:e.children})}));fr.propTypes={children:ke().node};const hr=fr;var mr=s(94240),gr=s.n(mr),vr=s(18275),yr=s.n(vr),br=s(98872),wr=s.n(br),Or=s(40076),xr=s.n(Or),kr=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},Sr=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},Pr={outline:"none"},Er=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Sr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=h().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)},Sr(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?h().cloneElement(e({focused:t,getRef:this.ref}),n):h().createElement("div",kr({ref:this.ref,style:Pr},n),e)},t}(h().Component);Er.propTypes={children:xr().oneOfType([xr().node,xr().func]).isRequired,onBlur:xr().func,onFocus:xr().func},Er.defaultProps={onBlur:function(){},onFocus:function(){}};const Dr=Er;var jr,_r,Cr,Tr,Ir,Mr,Nr,Ar,Rr,Lr=s(90624),Fr=(0,Ee.gV)(jr||(jr=(0,Se.c)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Hr=Ee.cp.label.withConfig({displayName:"StyledEditableWrapper"})(_r||(_r=(0,Se.c)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Fr),Ur=(0,Ee.gV)(Cr||(Cr=(0,Se.c)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,De.Gj)({color:De.Il.color("text")})}),De.Il.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Wr=(0,Ee.gV)(Tr||(Tr=(0,Se.c)(["\n display: flex;\n align-items: center;\n"]))),Br=Ee.cp.div.withConfig({displayName:"StyledEditableControl"})(Ir||(Ir=(0,Se.c)(["\n &&& {\n ","\n }\n"])),Wr),zr=Ee.cp.span.withConfig({displayName:"StyledEditableValue"})(Mr||(Mr=(0,Se.c)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),De.Il.color("signal.danger")),Yr=s(81568),Vr=function(e){return-1*Math.abs(e)},qr=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,Yr.c)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Gr=s(19448),Kr=s.n(Gr),$r=Ee.cp.div.withConfig({displayName:"StyledLocationEdit"})(Nr||(Nr=(0,Se.c)(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Fr,De.aU.space(-2),De.aU.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Kr()(n,"colors.textDisabled"):Kr()(n,"colors.text")}),Ur,De.Il.color("paper"),De.Il.color("signal.info"),De.Il.color("secondaryLight"),De.Il.color("backgroundItemHover")),Qr=(0,Ee.cp)($r).withConfig({displayName:"StyledAddressEdit"})(Ar||(Ar=(0,Se.c)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jr=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},s=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,Ae.jsxs)(Ln.cp.Span,{children:[a,", ",o," ",i," ",s," ",u]})},u=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},l=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},d={id:o,value:r&&r.street?c(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(Zr(Zr({},r),{},(0,Ie.c)({},e,i)))}}("street"),disabled:i};return(0,Ae.jsx)(Dr,{children:function(e){var t,r,o,c,p,f=e.getRef;return(0,Ae.jsxs)(Qr,{immutable:i,name:a,ref:f,children:[(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:l,getSuggestionValue:(p="street",function(e){return e[p]}),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:u,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ae.jsxs)(Br,{children:[n.isLoading&&(Rr||(Rr=(0,Ae.jsx)(He,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,c=t.postcode,Boolean(r&&(o||c))&&(0,Ae.jsx)(Lr.cp,{href:qr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var eo=s(14764),to=s.n(eo),no=s(39212),ro=s.n(no);function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(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 so(e,t){if(e){if("string"==typeof e)return co(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)?co(e,t):void 0}}function uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||so(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 lo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var po=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fo(){return fo=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},fo.apply(this,arguments)}function ho(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 mo(e,t){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mo(e,t)}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(e)}function vo(e){return vo="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},vo(e)}function yo(e,t){if(t&&("object"===vo(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 bo(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=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function wo(e){return function(e){if(Array.isArray(e))return co(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||so(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 Oo=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}(),xo="-ms-",ko="-moz-",So="-webkit-",Po="comm",Eo="rule",Do="decl",jo="@keyframes",_o=Math.abs,Co=String.fromCharCode,To=Object.assign;function Io(e){return e.trim()}function Mo(e,t,n){return e.replace(t,n)}function No(e,t){return e.indexOf(t)}function Ao(e,t){return 0|e.charCodeAt(t)}function Ro(e,t,n){return e.slice(t,n)}function Lo(e){return e.length}function Fo(e){return e.length}function Ho(e,t){return t.push(e),e}var Uo=1,Wo=1,Bo=0,zo=0,Yo=0,Vo="";function qo(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Uo,column:Wo,length:a,return:""}}function Go(e,t){return To(qo("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ko(){return Yo=zo>0?Ao(Vo,--zo):0,Wo--,10===Yo&&(Wo=1,Uo--),Yo}function $o(){return Yo=zo<Bo?Ao(Vo,zo++):0,Wo++,10===Yo&&(Wo=1,Uo++),Yo}function Qo(){return Ao(Vo,zo)}function Xo(){return zo}function Zo(e,t){return Ro(Vo,e,t)}function Jo(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 ei(e){return Uo=Wo=1,Bo=Lo(Vo=e),zo=0,[]}function ti(e){return Vo="",e}function ni(e){return Io(Zo(zo-1,ii(91===e?e+2:40===e?e+1:e)))}function ri(e){for(;(Yo=Qo())&&Yo<33;)$o();return Jo(e)>2||Jo(Yo)>3?"":" "}function oi(e,t){for(;--t&&$o()&&!(Yo<48||Yo>102||Yo>57&&Yo<65||Yo>70&&Yo<97););return Zo(e,Xo()+(t<6&&32==Qo()&&32==$o()))}function ii(e){for(;$o();)switch(Yo){case e:return zo;case 34:case 39:34!==e&&39!==e&&ii(Yo);break;case 40:41===e&&ii(e);break;case 92:$o()}return zo}function ai(e,t){for(;$o()&&e+Yo!==57&&(e+Yo!==84||47!==Qo()););return"/*"+Zo(t,zo-1)+"*"+Co(47===e?e:$o())}function ci(e){for(;!Jo(Qo());)$o();return Zo(e,zo)}function si(e){return ti(ui("",null,null,null,[""],e=ei(e),0,[0],e))}function ui(e,t,n,r,o,i,a,c,s){for(var u=0,l=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,O=i,x=r,k=b;g;)switch(h=y,y=$o()){case 40:if(108!=h&&58==Ao(k,d-1)){-1!=No(k+=Mo(ni(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=ni(y);break;case 9:case 10:case 13:case 32:k+=ri(h);break;case 92:k+=oi(Xo()-1,7);continue;case 47:switch(Qo()){case 42:case 47:Ho(di(ai($o(),Xo()),t,n),s);break;default:k+="/"}break;case 123*m:c[u++]=Lo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:f>0&&Lo(k)-d&&Ho(f>32?pi(k+";",r,n,d-1):pi(Mo(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(Ho(x=li(k,t,n,u,l,o,c,b,w=[],O=[],d),i),123===y)if(0===l)ui(k,t,x,x,w,i,d,c,O);else switch(99===p&&110===Ao(k,3)?100:p){case 100:case 109:case 115:ui(e,x,x,r&&Ho(li(e,x,x,0,0,o,c,b,o,w=[],d),O),o,O,d,c,r?w:O);break;default:ui(k,x,x,x,[""],O,0,c,O)}}u=l=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+Lo(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ko())continue;switch(k+=Co(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:c[u++]=(Lo(k)-1)*v,v=1;break;case 64:45===Qo()&&(k+=ni($o())),p=Qo(),l=d=Lo(b=k+=ci(Xo())),y++;break;case 45:45===h&&2==Lo(k)&&(m=0)}}return i}function li(e,t,n,r,o,i,a,c,s,u,l){for(var d=o-1,p=0===o?i:[""],f=Fo(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ro(e,d+1,d=_o(m=a[h])),b=e;v<f;++v)(b=Io(m>0?p[v]+" "+y:Mo(y,/&\f/g,p[v])))&&(s[g++]=b);return qo(e,t,n,0===o?Eo:c,s,u,l)}function di(e,t,n){return qo(e,t,n,Po,Co(Yo),Ro(e,2,-2),0)}function pi(e,t,n,r){return qo(e,t,n,Do,Ro(e,0,r),Ro(e,r+1,-1),r)}function fi(e,t){for(var n="",r=Fo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hi(e,t,n,r){switch(e.type){case"@import":case Do:return e.return=e.return||e.value;case Po:return"";case jo:return e.return=e.value+"{"+fi(e.children,r)+"}";case Eo:e.value=e.props.join(",")}return Lo(n=fi(e.children,r))?e.return=e.value+"{"+n+"}":""}const mi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var gi=function(e,t,n){for(var r=0,o=0;r=o,o=Qo(),38===r&&12===o&&(t[n]=1),!Jo(o);)$o();return Zo(e,zo)},vi=function(e,t){return ti(function(e,t){var n=-1,r=44;do{switch(Jo(r)){case 0:38===r&&12===Qo()&&(t[n]=1),e[n]+=gi(zo-1,t,n);break;case 2:e[n]+=ni(r);break;case 4:if(44===r){e[++n]=58===Qo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Co(r)}}while(r=$o());return e}(ei(e),t))},yi=new WeakMap,bi=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)||yi.get(n))&&!r){yi.set(e,!0);for(var o=[],i=vi(t,o),a=n.props,c=0,s=0;c<i.length;c++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[c]?i[c].replace(/&\f/g,a[u]):a[u]+" "+i[c]}}},wi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oi(e,t){switch(function(e,t){return 45^Ao(e,0)?(((t<<2^Ao(e,0))<<2^Ao(e,1))<<2^Ao(e,2))<<2^Ao(e,3):0}(e,t)){case 5103:return So+"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 So+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return So+e+ko+e+xo+e+e;case 6828:case 4268:return So+e+xo+e+e;case 6165:return So+e+xo+"flex-"+e+e;case 5187:return So+e+Mo(e,/(\w+).+(:[^]+)/,So+"box-$1$2"+xo+"flex-$1$2")+e;case 5443:return So+e+xo+"flex-item-"+Mo(e,/flex-|-self/,"")+e;case 4675:return So+e+xo+"flex-line-pack"+Mo(e,/align-content|flex-|-self/,"")+e;case 5548:return So+e+xo+Mo(e,"shrink","negative")+e;case 5292:return So+e+xo+Mo(e,"basis","preferred-size")+e;case 6060:return So+"box-"+Mo(e,"-grow","")+So+e+xo+Mo(e,"grow","positive")+e;case 4554:return So+Mo(e,/([^-])(transform)/g,"$1"+So+"$2")+e;case 6187:return Mo(Mo(Mo(e,/(zoom-|grab)/,So+"$1"),/(image-set)/,So+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,So+"$1$`$1");case 4968:return Mo(Mo(e,/(.+:)(flex-)?(.*)/,So+"box-pack:$3"+xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+So+e+e;case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,So+"$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(Lo(e)-1-t>6)switch(Ao(e,t+1)){case 109:if(45!==Ao(e,t+4))break;case 102:return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+So+"$2-$3$1"+ko+(108==Ao(e,t+3)?"$3":"$2-$3"))+e;case 115:return~No(e,"stretch")?Oi(Mo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ao(e,t+1))break;case 6444:switch(Ao(e,Lo(e)-3-(~No(e,"!important")&&10))){case 107:return Mo(e,":",":"+So)+e;case 101:return Mo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+So+(45===Ao(e,14)?"inline-":"")+"box$3$1"+So+"$2$3$1"+xo+"$2box$3")+e}break;case 5936:switch(Ao(e,t+11)){case 114:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return So+e+xo+e+e}return e}var xi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Do:e.return=Oi(e.value,e.length);break;case jo:return fi([Go(e,{value:Mo(e.value,"@","@"+So)})],r);case Eo: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 fi([Go(e,{props:[Mo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fi([Go(e,{props:[Mo(t,/:(plac\w+)/,":"+So+"input-$1")]}),Go(e,{props:[Mo(t,/:(plac\w+)/,":-moz-$1")]}),Go(e,{props:[Mo(t,/:(plac\w+)/,xo+"input-$1")]})],r)}return""}))}}];const ki=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||xi;var o,i,a={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;c.push(e)}));var s,u,l,d,p=[hi,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[bi,wi].concat(r,p),l=Fo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){s=n,function(e){fi(si(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Oo({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(c),h};s(84792);var Si=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Pi=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)};const Ei={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Di=/[A-Z]|^ms/g,ji=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_i=function(e){return 45===e.charCodeAt(1)},Ci=function(e){return null!=e&&"boolean"!=typeof e},Ti=mi((function(e){return _i(e)?e:e.replace(Di,"-$&").toLowerCase()})),Ii=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ji,(function(e,t,n){return Ni={name:t,styles:n,next:Ni},t}))}return 1===Ei[e]||_i(e)||"number"!=typeof t||0===t?t:t+"px"};function Mi(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 Ni={name:n.name,styles:n.styles,next:Ni},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ni={name:r.name,styles:r.styles,next:Ni},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+=Mi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ci(a)&&(r+=Ti(i)+":"+Ii(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Mi(e,t,a);switch(i){case"animation":case"animationName":r+=Ti(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Ci(a[s])&&(r+=Ti(i)+":"+Ii(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ni,i=n(e);return Ni=o,Mi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ni,Ai=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ri=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="";Ni=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Mi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Mi(n,t,e[a]),r&&(o+=i[a]);Ai.lastIndex=0;for(var c,s="";null!==(c=Ai.exec(o));)s+="-"+c[1];return{name:Pi(o)+s,styles:o,next:Ni}},Li=!!f.useInsertionEffect&&f.useInsertionEffect,Fi=Li||function(e){return e()},Hi={}.hasOwnProperty,Ui=(0,f.createContext)("undefined"!=typeof HTMLElement?ki({key:"css"}):null);Ui.Provider;var Wi=function(e){return(0,f.forwardRef)((function(t,n){var r=(0,f.useContext)(Ui);return e(t,r,n)}))},Bi=(0,f.createContext)({});var zi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Si(t,n,r);Fi((function(){return function(e,t,n){Si(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},Vi=Wi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[zi],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var c=Ri(i,void 0,(0,f.useContext)(Bi));a+=t.key+"-"+c.name;var s={};for(var u in e)Hi.call(e,u)&&"css"!==u&&u!==zi&&(s[u]=e[u]);return s.ref=n,s.className=a,(0,f.createElement)(f.Fragment,null,(0,f.createElement)(Yi,{cache:t,serialized:c,isStringTag:"string"==typeof o}),(0,f.createElement)(o,s))}));var qi=function(e,t){var n=arguments;if(null==t||!Hi.call(t,"css"))return f.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vi,o[1]=function(e,t){var n={};for(var r in t)Hi.call(t,r)&&(n[r]=t[r]);return n[zi]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return f.createElement.apply(null,o)};function Gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ri(t)}var Ki=s(42416),$i=s.n(Ki);Math.min,Math.max;const Qi=["top","right","bottom","left"];Qi.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Xi(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Zi(e){if(null==e)return window;if(!Xi(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ji(e){return Zi(e).getComputedStyle(e)}function ea(e){return Xi(e)?"":e?(e.nodeName||"").toLowerCase():""}function ta(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function na(e){return e instanceof Zi(e).HTMLElement}function ra(e){return e instanceof Zi(e).Element}function oa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zi(e).ShadowRoot||e instanceof ShadowRoot)}function ia(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ji(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function aa(){return!/^((?!chrome|android).)*safari/i.test(ta())}function ca(e){return["html","body","#document"].includes(ea(e))}Math.min,Math.max;const sa=Math.round;function ua(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect();let s=1,u=1;t&&na(e)&&(s=e.offsetWidth>0&&sa(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&sa(c.height)/e.offsetHeight||1);const l=ra(e)?Zi(e):window,d=!aa()&&n,p=(c.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,f=(c.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function la(e){return(t=e,(t instanceof Zi(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function da(e){if("html"===ea(e))return e;const t=e.assignedSlot||e.parentNode||(oa(e)?e.host:null)||la(e);return oa(t)?t.host:t}function pa(e){const t=da(e);return ca(t)?e.ownerDocument.body:na(t)&&ia(t)?t:pa(t)}function fa(e,t){var n;void 0===t&&(t=[]);const r=pa(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Zi(r),a=o?[i].concat(i.visualViewport||[],ia(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(fa(a))}const ha=f.useLayoutEffect;var ma=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ga=function(){};function va(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ya(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(va(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ba=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===vo(e)&&null!==e?[e]:[];var t},wa=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,ao({},lo(e,ma))},Oa=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function xa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ka(e){return xa(e)?window.pageYOffset:e.scrollTop}function Sa(e,t){xa(e)?window.scrollTo(0,t):e.scrollTop=t}function Pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ga,o=ka(e),i=t-o,a=0;!function t(){var c=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Sa(e,c),a<n?window.requestAnimationFrame(t):r(e)}()}function Ea(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Sa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Sa(e,Math.max(t.offsetTop-o,0))}function Da(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ja=!1,_a={get passive(){return ja=!0}},Ca="undefined"!=typeof window?window:{};Ca.addEventListener&&Ca.removeEventListener&&(Ca.addEventListener("p",ga,_a),Ca.removeEventListener("p",ga,!1));var Ta=ja;function Ia(e){return null!=e}function Ma(e,t,n){return e?t:n}var Na=["children","innerProps"],Aa=["children","innerProps"];function Ra(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,s=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=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:xa(l=s)?window.innerHeight:l.clientHeight,y=ka(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=v-m,k=O+y,S=d-y-m,P=f-v+y+b,E=y+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Pa(s,P,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&Pa(s,P,D),{placement:"bottom",maxHeight:a?x-b:S-b};if("auto"===o||a){var j=t,_=a?O:k;return _>=r&&(j=Math.min(_-b-c,t)),{placement:"top",maxHeight:j}}if("bottom"===o)return i&&Sa(s,P),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Pa(s,E,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&O>=r){var C=t;return(!a&&k>=r||a&&O>=r)&&(C=a?O-w:k-w),i&&Pa(s,E,D),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var La,Fa=function(e){return"auto"===e?"bottom":e},Ha=(0,f.createContext)(null),Ua=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,c=e.theme,s=((0,f.useContext)(Ha)||{}).setPortalPlacement,u=(0,f.useRef)(null),l=uo((0,f.useState)(r),2),d=l[0],p=l[1],h=uo((0,f.useState)(null),2),m=h[0],g=h[1],v=c.spacing.controlHeight;return ha((function(){var e=u.current;if(e){var t="fixed"===i,c=Ra({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});p(c.maxHeight),g(c.placement),null==s||s(c.placement)}}),[r,o,i,a,n,s,v]),t({ref:u,placerProps:ao(ao({},e),{},{placement:m||Fa(o),maxHeight:d})})},Wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return qi("div",fo({},Oa(e,"menu",{menu:!0}),{ref:n},r),t)},Ba=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ao({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},za=Ba,Ya=Ba,Va=["size"],qa=["innerProps","isRtl","size"];var Ga,Ka,$a={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Qa=function(e){var t=e.size,n=lo(e,Va);return qi("svg",fo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$a},n))},Xa=function(e){return qi(Qa,fo({size:20},e),qi("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"}))},Za=function(e){return qi(Qa,fo({size:20},e),qi("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"}))},Ja=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ao({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ec=Ja,tc=Ja,nc=function(){var e=Gi.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_"}}}(La||(Ga=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ka||(Ka=Ga.slice(0)),La=Object.freeze(Object.defineProperties(Ga,{raw:{value:Object.freeze(Ka)}})))),rc=function(e){var t=e.delay,n=e.offset;return qi("span",{css:Gi({animation:"".concat(nc," 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"},"","")})},oc=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return qi("div",fo({ref:o},Oa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},ic=["data"],ac=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,c=e.innerProps,s=e.label,u=e.theme,l=e.selectProps;return qi("div",fo({},Oa(e,"group",{group:!0}),c),qi(i,fo({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),s),qi("div",null,t))},cc=["innerRef","isDisabled","isHidden","inputClassName"],sc={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},uc={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ao({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},sc)},lc=function(e){return ao({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},sc)},dc=function(e){var t=e.children,n=e.innerProps;return qi("div",n,t)};var pc=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,c=e.selectProps,s=n.Container,u=n.Label,l=n.Remove;return qi(s,{data:r,innerProps:ao(ao({},Oa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:c},qi(u,{data:r,innerProps:ao({},Oa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),qi(l,{data:r,innerProps:ao(ao({},Oa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:c}))},fc={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||qi(Xa,null))},Control:oc,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||qi(Za,null))},DownChevron:Za,CrossIcon:Xa,Group:ac,GroupHeading:function(e){var t=wa(e);t.data;var n=lo(t,ic);return qi("div",fo({},Oa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return qi("span",fo({},t,Oa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=wa(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,c=r.inputClassName,s=lo(r,cc);return qi("div",fo({},Oa(e,"input",{"input-container":!0}),{"data-value":n||""}),qi("input",fo({className:t({input:!0},c),ref:o,style:lc(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=lo(e,qa);return qi("div",fo({},Oa(ao(ao({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),qi(rc,{delay:0,offset:n}),qi(rc,{delay:160,offset:!0}),qi(rc,{delay:320,offset:!n}))},Menu:Wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return qi("div",fo({},Oa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,c=(0,f.useRef)(null),s=(0,f.useRef)(null),u=uo((0,f.useState)(Fa(i)),2),l=u[0],d=u[1],p=(0,f.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=uo((0,f.useState)(null),2),m=h[0],g=h[1],v=(0,f.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ha((function(){v()}),[v]);var y=(0,f.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&c.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||i?[...ra(e)?fa(e):e.contextElement?fa(e.contextElement):[],...fa(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ra(e)&&!c&&d.observe(e),ra(e)||!e.contextElement||c||d.observe(e.contextElement),d.observe(t)}let p=c?ua(e):null;return c&&function t(){const r=ua(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,c&&cancelAnimationFrame(l)}}(r,c.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);ha((function(){y()}),[y]);var b=(0,f.useCallback)((function(e){c.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=qi("div",fo({ref:b},Oa(ao(ao({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return qi(Ha.Provider,{value:p},t?(0,Ki.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=lo(e,Aa);return qi("div",fo({},Oa(ao(ao({},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=lo(e,Na);return qi("div",fo({},Oa(ao(ao({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:pc,MultiValueContainer:dc,MultiValueLabel:dc,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({role:"button"},n),t||qi(Xa,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return qi("div",fo({},Oa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return qi("div",fo({},Oa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return qi("div",fo({},Oa(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 qi("div",fo({},Oa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},hc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mc(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||hc(r)&&hc(o)))return!1;var r,o;return!0}for(var gc={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"},vc=function(e){return qi("span",fo({css:gc},e))},yc={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},bc=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,u=e.isAppleDevice,l=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,g=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,w=c.tabSelectsValue,O=c.isLoading,x=c["aria-label"],k=c["aria-live"],S=(0,f.useMemo)((function(){return ao(ao({},yc),l||{})}),[l]),P=(0,f.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,c=t.removedValues,s=t.value,u=i||r||(e=s,Array.isArray(e)?null:e),l=u?d(u):"",p=o||c||void 0,f=p?p.map(d):[],h=ao({isDisabled:u&&m(u,a),label:l,labels:f},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),E=(0,f.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var c={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(c)}return e}),[n,r,d,m,S,o,a,u]),D=(0,f.useMemo)((function(){var e="";if(v&&y.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,v,S,y,b,O]),j="initial-input-focus"===(null==t?void 0:t.action),_=(0,f.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:j})}return e}),[x,n,r,h,m,g,v,S,a,w,j]),C=qi(f.Fragment,null,qi("span",{id:"aria-selection"},P),qi("span",{id:"aria-focused"},E),qi("span",{id:"aria-results"},D),qi("span",{id:"aria-guidance"},_));return qi(f.Fragment,null,qi(vc,{id:s},j&&C),qi(vc,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&C))},wc=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Oc=new RegExp("["+wc.map((function(e){return e.letters})).join("")+"]","g"),xc={},kc=0;kc<wc.length;kc++)for(var Sc=wc[kc],Pc=0;Pc<Sc.letters.length;Pc++)xc[Sc.letters[Pc]]=Sc.base;var Ec=function(e){return e.replace(Oc,(function(e){return xc[e]}))},Dc=function(e,t){void 0===t&&(t=mc);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ec),jc=function(e){return e.replace(/^\s+|\s+$/g,"")},_c=function(e){return"".concat(e.label," ").concat(e.value)},Cc=["innerRef"];function Tc(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=uo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=uo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(lo(e,Cc),"onExited","in","enter","exit","appear");return qi("input",fo({ref:t},n,{css:Gi({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 Ic=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Mc=["boxSizing","height","overflow","paddingRight","position"],Nc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ac(e){e.preventDefault()}function Rc(e){e.stopPropagation()}function Lc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fc(){return"ontouchstart"in window||navigator.maxTouchPoints}var Hc=!("undefined"==typeof window||!window.document||!window.document.createElement),Uc=0,Wc={capture:!1,passive:!1};var Bc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},zc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yc(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,f.useRef)(!1),c=(0,f.useRef)(!1),s=(0,f.useRef)(0),u=(0,f.useRef)(null),l=(0,f.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=u.current,h=t>0,m=d-p-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&c.current&&(i&&i(e),c.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&Ic(e)}}),[n,r,o,i]),d=(0,f.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,f.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),h=(0,f.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,f.useCallback)((function(e){if(e){var t=!!Ta&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,f.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),i=(0,f.useRef)(null),a=(0,f.useCallback)((function(e){if(Hc){var t=document.body,n=t&&t.style;if(r&&Mc.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Uc<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,c=window.innerWidth-a+i||0;Object.keys(Nc).forEach((function(e){var t=Nc[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Fc()&&(t.addEventListener("touchmove",Ac,Wc),e&&(e.addEventListener("touchstart",Lc,Wc),e.addEventListener("touchmove",Rc,Wc))),Uc+=1}}),[r]),c=(0,f.useCallback)((function(e){if(Hc){var t=document.body,n=t&&t.style;Uc=Math.max(Uc-1,0),r&&Uc<1&&Mc.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Fc()&&(t.removeEventListener("touchmove",Ac,Wc),e&&(e.removeEventListener("touchstart",Lc,Wc),e.removeEventListener("touchmove",Rc,Wc)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=i.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){i.current=e}}({isEnabled:n});return qi(f.Fragment,null,n&&qi("div",{onClick:Bc,css:zc}),t((function(e){o(e),i(e)})))}var Vc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qc=function(e){var t=e.name,n=e.onFocus;return qi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vc,value:"",onChange:function(){}})};function Gc(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 Kc(){return Gc(/^Mac/i)}function $c(){return Gc(/^iPhone/i)||Gc(/^iPad/i)||Kc()&&navigator.maxTouchPoints>1}var Qc={clearIndicator:tc,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ao({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ec,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 ao({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ao({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ao(ao({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},uc),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ao({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ya,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,c=o.colors;return ao((oo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),oo(n,"position","absolute"),oo(n,"width","100%"),oo(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ao({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ao({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ao({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ao({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:za,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,c=i.colors;return ao({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ao({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ao({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ao({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Xc,Zc={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}},Jc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Da(),captureMenuScroll:!Da(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ao({ignoreCase:!0,ignoreAccents:!0,stringify:_c,trim:!0,matchFrom:"any"},Xc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?jc(t):t,u=a?jc(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Dc(s),u=Ec(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!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 es(e,t,n,r){return{type:"option",data:t,isDisabled:ss(e,t,n),isSelected:us(e,t,n),label:as(e,t),value:cs(e,t),index:r}}function ts(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return es(e,n,t,r)})).filter((function(t){return os(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=es(e,n,t,r);return os(e,i)?i:void 0})).filter(Ia)}function ns(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,wo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function rs(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,wo(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 os(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!ds(e)||!i)&&ls(e,{label:a,value:c,data:o},r)}var is=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},as=function(e,t){return e.getOptionLabel(t)},cs=function(e,t){return e.getOptionValue(t)};function ss(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function us(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=cs(e,t);return n.some((function(t){return cs(e,t)===r}))}function ls(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ds=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ps=1,fs=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&&mo(e,t)}(i,e);var t,n,r,o=bo(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Kc()||$c(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,c=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(c){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(wo(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ma(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Ma(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return is(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return rs(ts(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 ya.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return as(t.props,e)},t.getOptionValue=function(e){return cs(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Qc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ao(ao({},fc),e.components);var e},t.buildCategorizedOptions=function(){return ts(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ns(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ao({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&&xa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ds(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):c&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ps),t.state.selectValue=ba(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=is(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ea(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&&(Ea(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var c=i.indexOf(r[0]);c>-1&&(a=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Zc):ao(ao({},Zc),this.props.theme):Zc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:i,selectProps:c,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ss(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return us(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ls(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=ao(ao(ao({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(u,fo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):f.createElement(Tc,fo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ga,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:f.createElement(c,fo({},s,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return v.map((function(t,a){var c=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,fo({},s,{components:{Container:r,Label:o,Remove:i},isFocused:c,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return f.createElement(a,fo({},s,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,fo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?f.createElement(e,fo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return f.createElement(n,fo({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,fo({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!w)return null;var _,C=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,c=t.label,s=t.value,p=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return f.createElement(u,fo({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return f.createElement(n,fo({},l,{key:c,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(g){var T=v({inputValue:m});if(null===T)return null;_=f.createElement(c,l,T)}else{var I=E({inputValue:m});if(null===I)return null;_=f.createElement(s,l,I)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},N=f.createElement(Ua,fo({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return f.createElement(o,fo({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),f.createElement(Yc,{captureEnabled:h,onTopArrive:D,onBottomArrive:j,lockEnabled:S},(function(t){return f.createElement(i,fo({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:d}),_)})))}));return k||"fixed"===x?f.createElement(a,fo({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return f.createElement(qc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:i,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:i,type:"hidden",value:""});return f.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return f.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return f.createElement(bc,fo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,c=i.id,s=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(r,fo({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),f.createElement(t,fo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),f.createElement(o,fo({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,fo({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=ba(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return ns(ts(e,t))}(e,h):[],v=d?rs(ts(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:is(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&c;return a&&!x&&(O={value:Ma(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!c),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),ao(ao(ao({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&ho(t.prototype,n),r&&ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(f.Component);fs.defaultProps=Jc;var hs=(0,f.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=lo(e,po),g=uo((0,f.useState)(void 0!==c?c:n),2),v=g[0],y=g[1],b=uo((0,f.useState)(void 0!==s?s:o),2),w=b[0],O=b[1],x=uo((0,f.useState)(void 0!==h?h:a),2),k=x[0],S=x[1],P=(0,f.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),E=(0,f.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,f.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),j=(0,f.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),_=void 0!==c?c:v,C=void 0!==s?s:w,T=void 0!==h?h:k;return ao(ao({},m),{},{inputValue:_,menuIsOpen:C,onChange:P,onInputChange:E,onMenuClose:j,onMenuOpen:D,value:T})}(e);return f.createElement(fs,fo({ref:t},n))})),ms=hs;function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ys=(0,p.injectIntl)((function(e){var t;return(0,Ae.jsx)("span",vs(vs({},e.innerProps),{},{children:(0,Ae.jsx)(bt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bs=s(49864);function ws(){return ws=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},ws.apply(this,arguments)}const Os=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class xs extends f.Component{constructor(...e){super(...e),this._targetNode=f.createRef(),this._elementNode=f.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,f.isValidElement)(e)||(e=null),(0,f.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new bs(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Os),i=ws({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?f.createElement(f.Fragment,null,e,t&&this._elementParentNode&&Ki.createPortal(t,this._elementParentNode)):null}}var ks,Ss,Ps,Es,Ds,js,_s,Cs,Ts,Is,Ms,Ns,As;function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fs=Ee.cp.span.withConfig({displayName:"StyledClickableWrapper"})(ks||(ks=(0,Se.c)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Hs=Ee.cp.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ss||(Ss=(0,Se.c)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Us=Ee.cp.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Ps||(Ps=(0,Se.c)(["\n outline-style: none;\n"]))),Ws=Ee.cp.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Es||(Es=(0,Se.c)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),De.Il.color("paper"),De.Il.radii("form"),(function(e){return e.isTopAligned&&(0,Ee.gV)(Ds||(Ds=(0,Se.c)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Bs=(0,Ee.cp)(xs).withConfig({displayName:"StyledTether"})(js||(js=(0,Se.c)(["\n && {\n z-index: 1;\n }\n"]))),zs=(Ee.cp.div.withConfig({displayName:"StyledNonTether"})(_s||(_s=(0,Se.c)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),De.aU.space(1.5)),(0,Ee.cp)(fc.Menu).withConfig({displayName:"StyledMenu"})(Cs||(Cs=(0,Se.c)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Ys=Ee.cp.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Ts||(Ts=(0,Se.c)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,De.Gj)({color:De.Il.color("signal.info"),lineHeight:"normal"}),De.aU.space(-.5),De.aU.space(-.2)),Vs=Ee.cp.div.withConfig({displayName:"StyledSingleValueWrapper"})(Is||(Is=(0,Se.c)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?De.Il.color("text"):"inherit"})),qs=Ee.cp.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Ms||(Ms=(0,Se.c)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Gs=Ee.cp.div.withConfig({displayName:"StyledMultiValueWrapper"})(Ns||(Ns=(0,Se.c)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Ks=Ee.cp.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(As||(As=(0,Se.c)(["\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,i=e.colors.borderSelect,a=e.colors.textDisabled,c=e.radii.form,s=De.aU.space(-1)({theme:e}),u=De.aU.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return Ls(Ls({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Ls(Ls(Ls({},e),l),{},{outline:0})},control:function(e,t){return Ls(Ls({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Ls(Ls({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Ls(Ls({},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),Ls(Ls(Ls({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:c}},menuList:function(e,t){return Ls(Ls(Ls({},e),l),{},{border:"1px solid ".concat(i),borderRadius:c,padding:"0"})},multiValue:function(t,n){return Ls(Ls({},t),{},{borderRadius:c,margin:"".concat(s," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Ls(Ls({},e),{},{borderRadius:c,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Ls(Ls({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Ls(Ls({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Ls(Ls({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Ls(Ls({},e),{},{padding:0,margin:0})}}};function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zs=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ae.jsx)(fc.DropdownIndicator,Xs(Xs({},e),{},{children:(0,Ae.jsx)(qs,{children:(0,Ae.jsx)(bt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};ke().shape({key:ke().any.isRequired,display:ke().string});var Js,eu,tu;function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ou=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},iu=function(e,t){return function(n){n.stopPropagation(),e(t)}},au=function(e,t){return function(n){n.stopPropagation(),e(t)}},cu=function(e){e.stopPropagation()};const su=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,p=l&&(c||a);return(0,Ae.jsx)(Ws,{isTopAligned:p,children:(0,Ae.jsxs)(fc.IndicatorsContainer,ru(ru({},e),{},{children:[e.children,n&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:iu(n,u),children:Js||(Js=(0,Ae.jsx)(bt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:ou(r,d,u),children:eu||(eu=(0,Ae.jsx)(bt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:au(o,u),children:tu||(tu=(0,Ae.jsx)(bt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var uu;const lu=function(){return uu||(uu=(0,Ae.jsx)("span",{children:(0,Ae.jsx)(He,{size:"1.8rem"})}))};var du="tocco-app",pu=s(14596),fu=s.n(pu),hu=s(86520),mu=s.n(hu),gu=s(36176),vu=s.n(gu),yu=s(65120),bu=s.n(yu),wu=s(66808),Ou=s.n(wu),xu=s(39556),ku=s.n(xu),Su=s(16092),Pu={};Pu.styleTagTransform=ku(),Pu.setAttributes=bu(),Pu.insert=vu().bind(null,"head"),Pu.domAPI=mu(),Pu.insertStyleElement=Ou();fu()(Su.c,Pu);Su.c&&Su.c.locals&&Su.c.locals;var Eu,Du=s(45104),ju=s.n(Du),_u=Ee.cp.span.withConfig({displayName:"StyledChildrenWrapper"})(Eu||(Eu=(0,Se.c)(["\n cursor: pointer;\n user-select: none;\n"]))),Cu=h().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ae.jsx)(_u,{onClick:r,ref:t,children:n})}));Cu.propTypes={children:ke().any,onOpen:ke().func};const Tu=Cu;function Iu(e){return Iu="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},Iu(e)}function Mu(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Nu(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Au(e){Nu(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Iu(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var Ru={};function Lu(){return Ru}function Fu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hu(e){Nu(1,arguments);var t=Au(e);return t.setHours(0,0,0,0),t}Math.pow(10,8);var Uu=6e4,Wu=36e5;function Bu(e){if(Nu(1,arguments),!function(e){return Nu(1,arguments),e instanceof Date||"object"===Iu(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Au(e);return!isNaN(Number(t))}Math.ceil,Math.round,Math.floor;function zu(e,t){return Nu(2,arguments),function(e,t){Nu(2,arguments);var n=Au(e).getTime(),r=Mu(t);return new Date(n+r)}(e,-Mu(t))}function Yu(e){Nu(1,arguments);var t=Au(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Vu(e){Nu(1,arguments);var t=Au(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Yu(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Yu(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var qu=6048e5;function Gu(e){Nu(1,arguments);var t=Au(e),n=Yu(t).getTime()-function(e){Nu(1,arguments);var t=Vu(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Yu(n)}(t).getTime();return Math.round(n/qu)+1}function Ku(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Lu(),d=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Au(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function $u(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Au(e),d=l.getUTCFullYear(),p=Lu(),f=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=Ku(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=Ku(g,t);return l.getTime()>=m.getTime()?d+1:l.getTime()>=v.getTime()?d:d-1}var Qu=6048e5;function Xu(e,t){Nu(1,arguments);var n=Au(e),r=Ku(n,t).getTime()-function(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Lu(),d=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=$u(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),Ku(f,t)}(n,t).getTime();return Math.round(r/Qu)+1}function Zu(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ju={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Zu("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Zu(n+1,2)},d:function(e,t){return Zu(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Zu(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Zu(e.getUTCHours(),t.length)},m:function(e,t){return Zu(e.getUTCMinutes(),t.length)},s:function(e,t){return Zu(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Zu(Math.floor(r*Math.pow(10,n-3)),t.length)}};const el=Ju;var tl="midnight",nl="noon",rl="morning",ol="afternoon",il="evening",al="night",cl={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return el.y(e,t)},Y:function(e,t,n,r){var o=$u(e,r),i=o>0?o:1-o;return"YY"===t?Zu(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Zu(i,t.length)},R:function(e,t){return Zu(Vu(e),t.length)},u:function(e,t){return Zu(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Zu(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Zu(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return el.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Zu(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Xu(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Zu(o,t.length)},I:function(e,t,n){var r=Gu(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Zu(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):el.d(e,t)},D:function(e,t,n){var r=function(e){Nu(1,arguments);var t=Au(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Zu(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Zu(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Zu(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Zu(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?nl:0===o?tl:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?il:o>=12?ol:o>=4?rl:al,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return el.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):el.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Zu(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Zu(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):el.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):el.s(e,t)},S:function(e,t){return el.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return ul(o);case"XXXX":case"XX":return ll(o);default:return ll(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ul(o);case"xxxx":case"xx":return ll(o);default:return ll(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sl(o,":");default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sl(o,":");default:return"GMT"+ll(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Zu(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Zu((r._originalDate||e).getTime(),t.length)}};function sl(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+Zu(i,2)}function ul(e,t){return e%60==0?(e>0?"-":"+")+Zu(Math.abs(e)/60,2):ll(e,t)}function ll(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Zu(Math.floor(o/60),2)+n+Zu(o%60,2)}const dl=cl;var pl=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fl=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},hl={p:fl,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return pl(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",pl(o,t)).replace("{{time}}",fl(i,t))}};const ml=hl;var gl=["D","DD"],vl=["YY","YYYY"];function yl(e){return-1!==gl.indexOf(e)}function bl(e){return-1!==vl.indexOf(e)}function wl(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ol={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const xl=function(e,t,n){var r,o=Ol[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kl(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Sl={date:kl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Pl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const El=function(e,t,n,r){return Pl[e]};function Dl(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var jl={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Dl({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const _l=jl;function Cl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,c=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(s,(function(e){return e.test(c)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(c.length)}}}function Tl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}var Il={ordinalNumber:Tl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Cl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Ml={code:"en-US",formatDistance:xl,formatLong:Sl,formatRelative:El,localize:_l,match:Il,options:{weekStartsOn:0,firstWeekContainsDate:1}},Nl=Ml;var Al=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ll=/^'([^]*?)'?$/,Fl=/''/g,Hl=/[a-zA-Z]/;function Ul(e,t,n){var r,o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w;Nu(2,arguments);var O=String(t),x=Lu(),k=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:x.locale)&&void 0!==r?r:Nl,S=Mu(null!==(i=null!==(a=null!==(c=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==c?c:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Mu(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==h?h:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var E=Au(e);if(!Bu(E))throw new RangeError("Invalid time value");var D=zu(E,Fu(E)),j={firstWeekContainsDate:S,weekStartsOn:P,locale:k,_originalDate:E};return O.match(Rl).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ml[t])(e,k.formatLong):e})).join("").match(Al).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(Ll);if(!t)return e;return t[1].replace(Fl,"'")}(r);var i=dl[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!bl(r)||wl(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!yl(r)||wl(r,t,String(e)),i(D,r,k.localize,j);if(o.match(Hl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function Wl(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Bl(e){return Nu(1,arguments),Au(e).getHours()}function zl(e){return Nu(1,arguments),Au(e).getMinutes()}function Yl(e){return Nu(1,arguments),Au(e).getSeconds()}function Vl(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 ql(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vl(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)?Vl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Gl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kl(e,t)}function $l(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&&Kl(e,t)}function Ql(e){return Ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ql(e)}function Xl(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=Ql(e);if(t){var o=Ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Iu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gl(e)}(this,n)}}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jl(e){var t=function(e,t){if("object"!==Iu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Iu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Iu(t)?t:String(t)}function ed(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,Jl(r.key),r)}}function td(e,t,n){return t&&ed(e.prototype,t),n&&ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nd(e,t,n){return(t=Jl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rd=function(){function e(){Zl(this,e),nd(this,"priority",void 0),nd(this,"subPriority",0)}return td(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),od=function(e){$l(n,e);var t=Xl(n);function n(e,r,o,i,a){var c;return Zl(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=i,a&&(c.subPriority=a),c}return td(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(rd),id=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"subPriority",-1),e}return td(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(rd),ad=function(){function e(){Zl(this,e),nd(this,"incompatibleTokens",void 0),nd(this,"priority",void 0),nd(this,"subPriority",void 0)}return td(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new od(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),cd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",140),nd(Gl(e),"incompatibleTokens",["R","u","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),sd=/^(1[0-2]|0?\d)/,ud=/^(3[0-1]|[0-2]?\d)/,ld=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,dd=/^(5[0-3]|[0-4]?\d)/,pd=/^(2[0-3]|[0-1]?\d)/,fd=/^(2[0-4]|[0-1]?\d)/,hd=/^(1[0-1]|0?\d)/,md=/^(1[0-2]|0?\d)/,gd=/^[0-5]?\d/,vd=/^[0-5]?\d/,yd=/^\d/,bd=/^\d{1,2}/,wd=/^\d{1,3}/,Od=/^\d{1,4}/,xd=/^-?\d+/,kd=/^-?\d/,Sd=/^-?\d{1,2}/,Pd=/^-?\d{1,3}/,Ed=/^-?\d{1,4}/,Dd=/^([+-])(\d{2})(\d{2})?|Z/,jd=/^([+-])(\d{2})(\d{2})|Z/,_d=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Cd=/^([+-])(\d{2}):(\d{2})|Z/,Td=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Id(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Md(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Nd(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*Wu+i*Uu+1e3*a),rest:t.slice(n[0].length)}}function Ad(e){return Md(xd,e)}function Rd(e,t){switch(e){case 1:return Md(yd,t);case 2:return Md(bd,t);case 3:return Md(wd,t);case 4:return Md(Od,t);default:return Md(new RegExp("^\\d{1,"+e+"}"),t)}}function Ld(e,t){switch(e){case 1:return Md(kd,t);case 2:return Md(Sd,t);case 3:return Md(Pd,t);case 4:return Md(Ed,t);default:return Md(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Fd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Hd(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function Ud(e){return e%400==0||e%4==0&&e%100!=0}var Wd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Id(Rd(4,e),r);case"yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Rd(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Hd(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Bd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Id(Rd(4,e),r);case"Yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Rd(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=$u(e,r);if(n.isTwoDigitYear){var i=Hd(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ku(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ku(e,r)}}]),n}(ad),zd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Ld("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Yu(r)}}]),n}(ad),Yd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Ld("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Vd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",120),nd(Gl(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Rd(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),qd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",120),nd(Gl(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Rd(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Gd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),nd(Gl(e),"priority",110),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Id(Md(sd,e),r);case"MM":return Id(Rd(2,e),r);case"Mo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Kd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",110),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Id(Md(sd,e),r);case"LL":return Id(Rd(2,e),r);case"Lo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad);var $d=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",100),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Md(dd,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Ku(function(e,t,n){Nu(2,arguments);var r=Au(e),o=Mu(t),i=Xu(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(ad);var Qd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",100),nd(Gl(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Md(dd,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Yu(function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t),o=Gu(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(ad),Xd=[31,28,31,30,31,30,31,31,30,31,30,31],Zd=[31,29,31,30,31,30,31,31,30,31,30,31],Jd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"subPriority",1),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Md(ud,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){var n=Ud(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Zd[r]:t>=1&&t<=Xd[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(ad),ep=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"subpriority",1),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Md(ld,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return Ud(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(ad);function tp(e,t,n){var r,o,i,a,c,s,u,l;Nu(2,arguments);var d=Lu(),p=Mu(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Au(e),h=Mu(t),m=((h%7+7)%7<p?7:0)+h-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+m),f}var np=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad),rp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Id(Rd(t.length,e),o);case"eo":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad),op=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Id(Rd(t.length,e),o);case"co":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad);var ip=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Rd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Id(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Id(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Id(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Id(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){Nu(2,arguments);var n=Mu(t);n%7==0&&(n-=7);var r=Au(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(ad),ap=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),cp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),sp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["a","b","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),up=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["H","K","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Md(md,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(ad),lp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Md(pd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(ad),dp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["h","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Md(hd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(ad),pp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Md(fd,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(ad),fp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",60),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Md(gd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(ad),hp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",50),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Md(vd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(ad),mp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",30),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Id(Rd(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(ad),gp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"incompatibleTokens",["t","T","x"]),e}return td(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Nd(Dd,e);case"XX":return Nd(jd,e);case"XXXX":return Nd(_d,e);case"XXXXX":return Nd(Td,e);default:return Nd(Cd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(ad),vp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"incompatibleTokens",["t","T","X"]),e}return td(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Nd(Dd,e);case"xx":return Nd(jd,e);case"xxxx":return Nd(_d,e);case"xxxxx":return Nd(Td,e);default:return Nd(Cd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(ad),yp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",40),nd(Gl(e),"incompatibleTokens","*"),e}return td(n,[{key:"parse",value:function(e){return Ad(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(ad),bp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",20),nd(Gl(e),"incompatibleTokens","*"),e}return td(n,[{key:"parse",value:function(e){return Ad(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(ad),wp={G:new cd,y:new Wd,Y:new Bd,R:new zd,u:new Yd,Q:new Vd,q:new qd,M:new Gd,L:new Kd,w:new $d,I:new Qd,d:new Jd,D:new ep,E:new np,e:new rp,c:new op,i:new ip,a:new ap,b:new cp,B:new sp,h:new up,H:new lp,K:new dp,k:new pp,m:new fp,s:new hp,S:new mp,X:new gp,x:new vp,t:new yp,T:new bp},Op=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kp=/^'([^]*?)'?$/,Sp=/''/g,Pp=/\S/,Ep=/[a-zA-Z]/;function Dp(e,t,n,r){var o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w,O;Nu(3,arguments);var x=String(e),k=String(t),S=Lu(),P=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:S.locale)&&void 0!==o?o:Nl;if(!P.match)throw new RangeError("locale must contain match property");var E=Mu(null!==(a=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Mu(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?Au(n):new Date(NaN);var j,_={firstWeekContainsDate:E,weekStartsOn:D,locale:P},C=[new id],T=k.match(xp).map((function(e){var t=e[0];return t in ml?(0,ml[t])(e,P.formatLong):e})).join("").match(Op),I=[],M=ql(T);try{var N=function(){var t=j.value;null!=r&&r.useAdditionalWeekYearTokens||!bl(t)||wl(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!yl(t)||wl(t,k,e);var n=t[0],o=wp[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=I.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));I.push({token:n,fullToken:t});var c=o.run(x,t,P.match,_);if(!c)return{v:new Date(NaN)};C.push(c.setter),x=c.rest}else{if(n.match(Ep))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(kp)[1].replace(Sp,"'")),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(j=M.n()).done;){var A=N();if("object"===Iu(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&Pp.test(x))return new Date(NaN);var R=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=Au(n);if(isNaN(L.getTime()))return new Date(NaN);var F,H=zu(L,Fu(L)),U={},W=ql(R);try{for(W.s();!(F=W.n()).done;){var B=F.value;if(!B.validate(H,_))return new Date(NaN);var z=B.set(H,U,_);Array.isArray(z)?(H=z[0],Wl(U,z[1])):H=z}}catch(e){W.e(e)}finally{W.f()}return H}function jp(e,t,n){return Nu(2,arguments),Bu(Dp(e,t,new Date,n))}function _p(e,t){var n;Nu(1,arguments);var r=Mu(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=function(e){var t,n={},r=e.split(Cp.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Cp.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Cp.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=Cp.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(i.date){var a=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(Tp);if(!n)return new Date(NaN);var r=!!n[4],o=Np(n[1]),i=Np(n[2])-1,a=Np(n[3]),c=Np(n[4]),s=Np(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rp[t]||(Lp(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Lp(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(i.time&&(u=function(e){var t=e.match(Ip);if(!t)return NaN;var n=Ap(t[1]),r=Ap(t[2]),o=Ap(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*Wu+r*Uu+1e3*o}(i.time),isNaN(u)))return new Date(NaN);if(!i.timezone){var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return c=function(e){if("Z"===e)return 0;var t=e.match(Mp);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*Wu+o*Uu)}(i.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}var Cp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Tp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ip=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Mp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Np(e){return e?parseInt(e):1}function Ap(e){return e&&parseFloat(e.replace(",","."))||0}var Rp=[31,null,31,30,31,30,31,31,30,31,30,31];function Lp(e){return e%400==0||e%4==0&&e%100!=0}function Fp(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setHours(r),n}function Hp(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setMinutes(r),n}function Up(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setSeconds(r),n}var Wp={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const Bp=function(e,t,n){var r,o=null!=n&&n.addSuffix?Wp[e].withPreposition:Wp[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};const zp={date:kl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Yp={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const Vp=function(e,t,n,r){return Yp[e]};var qp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Gp={narrow:qp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:qp.wide};const Kp={ordinalNumber:function(e){return Number(e)+"."},era:Dl({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:qp,formattingValues:Gp,defaultWidth:"wide"}),day:Dl({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var $p={ordinalNumber:Tl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Cl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const Qp={code:"de",formatDistance:Bp,formatLong:zp,formatRelative:Vp,localize:Kp,match:$p,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Xp={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const Zp=function(e,t,n){var r,o=Xp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var Jp={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:Dl({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const ef=Jp;var tf={ordinalNumber:Tl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Cl({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const nf=tf;var rf={date:kl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var of={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const af=function(e,t,n,r){return of[e]};const cf={code:"fr-CH",formatDistance:Zp,formatLong:rf,formatRelative:af,localize:ef,match:nf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var sf={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const uf=function(e,t,n){var r,o=sf[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const lf={date:kl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function df(e,t,n){Nu(2,arguments);var r=Ku(e,n),o=Ku(t,n);return r.getTime()===o.getTime()}var pf=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function ff(e){return"'"+pf[e]+" alle' p"}var hf={lastWeek:function(e,t,n){var r=e.getUTCDay();return df(e,t,n)?ff(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+pf[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return df(e,t,n)?ff(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+pf[e]+" prossimo alle' p"}(r)},other:"P"};const mf=function(e,t,n,r){var o=hf[e];return"function"==typeof o?o(t,n,r):o};var gf={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:Dl({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const vf=gf;var yf={ordinalNumber:Tl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Cl({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const bf={code:"it",formatDistance:uf,formatLong:lf,formatRelative:mf,localize:vf,match:yf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var wf=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Of=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=wf(e/1e3%60,3);e-=Math.round(1e3*t);var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},xf=function(e){switch(e){case"fr":return cf;case"en":return Ml;case"it":return bf;default:return Qp}},kf=function(e){return xf(e).formatLong.date({width:"short"})},Sf=function(e){return kf(e).replace(/[/.]/g,"")};const Pf=Of,Ef=function(e){var t=Of(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},Df=xf,jf=kf,_f=function(e){return"".concat(kf(e)," HH:mm")},Cf=Sf,Tf=function(e){return"".concat(Sf(e)," HHmm")},If=function(e){return e.replace(/y+/,"yy")},Mf=function(e){var t=new Date,n=new Date(e);return n=function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setMilliseconds(r),n}(n=Up(n=Hp(n=Fp(n,Bl(t)),zl(t)),0),0),n},Nf=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var Af=function(){(0,Du.registerLocale)("en",Df("en")),(0,Du.registerLocale)("en-US",Df("en")),(0,Du.registerLocale)("de-CH",Df("de-CH")),(0,Du.registerLocale)("de-DE",Df("de-DE")),(0,Du.registerLocale)("de",Df("de")),(0,Du.registerLocale)("fr",Df("fr")),(0,Du.registerLocale)("fr-CH",Df("fr")),(0,Du.registerLocale)("it",Df("it")),(0,Du.registerLocale)("it-CH",Df("it")),(0,Du.setDefaultLocale)("de")};Af();(0,Ee.QX)((0,p.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,c=(0,f.useRef)(null),s=(0,f.useState)(!1),u=(0,Ue.c)(s,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=c.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=c.current)||void 0===n||n.setPreSelection(r))};return(0,Ae.jsx)(ju(),{ref:c,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ae.jsx)(Tu,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Rf,Lf,Ff,Hf,Uf,Wf,Bf=De.Il.color("secondaryLight"),zf=De.Il.color("paper"),Yf=De.Il.color("text"),Vf=De.Il.color("secondary"),qf=De.Il.radii("form"),Gf=(0,Ee.Ud)(Rf||(Rf=(0,Se.c)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\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--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\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"])),Ne._,Yf,De.Il.radii("form"),qf,Bf,zf,(0,De.Gj)(),(0,De.Gj)(),Bf,qf,qf,De.aU.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",zf,De.aU.font(1),De.Il.fontWeight("bold"),(0,De.Gj)({fontWeight:De.Il.fontWeight("bold")}),zf,De.aU.font(-2),De.aU.space(-1.8),Vf,Vf,Vf,Bf,Bf,Bf,Vf,(0,De.Gj)(),zf,De.aU.space(-.5),De.Il.color("backgroundItemHover"),qf,De.aU.space(-.5),zf,De.Il.color("border"),De.Il.radii("form"),De.aU.space(-1),De.aU.space(-1),De.aU.font(1),zf,De.Il.fontWeight("bold"),De.aU.space(-1),zf,De.aU.font(0),Yf,Bf,Bf,De.Il.radii("form"),zf,Bf,Vf,Yf,Yf,zf,Bf,De.Il.color("backgroundItemHover"),De.Il.color("textDisabled"),De.Il.color("border"),De.Il.radii("form")),Kf=(0,Ee.Ud)(Lf||(Lf=(0,Se.c)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),De.Il.color("signal.success"),De.Il.color("signal.info"),De.Il.color("signal.warning"),De.Il.color("signal.danger"),De.Il.color("textDisabled")),$f=(0,Ee.Ud)(Ff||(Ff=(0,Se.c)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),De.Il.color("backgroundScrollbar"),De.Il.color("backgroundScrollbarHover"),De.Il.color("backgroundScrollbar"));const Qf=function(){return(0,Ae.jsxs)(Ae.Fragment,{children:[Hf||(Hf=(0,Ae.jsx)(Kf,{})),Uf||(Uf=(0,Ae.jsx)(Gf,{})),Wf||(Wf=(0,Ae.jsx)($f,{}))]})};function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jf=function(e){var t=e.selectProps,n=e.children;return(0,Ae.jsx)(Bs,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ae.jsx)("div",{ref:e})},renderElement:function(r){return(0,Ae.jsx)("div",{ref:r,className:du,children:(0,Ae.jsx)(zs,Zf(Zf({},gr()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nh=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ae.jsxs)(fc.MenuList,th(th({},e),{},{className:"MenuList",children:[n,r&&(0,Ae.jsx)(Ys,{children:o})]}))};f.createContext(),f.createContext();var rh=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},oh="undefined"!=typeof window&&window.document&&window.document.createElement?f.useLayoutEffect:f.useEffect,ih="top",ah="bottom",ch="right",sh="left",uh="auto",lh=[ih,ah,ch,sh],dh="start",ph="end",fh="clippingParents",hh="viewport",mh="popper",gh="reference",vh=lh.reduce((function(e,t){return e.concat([t+"-"+dh,t+"-"+ph])}),[]),yh=[].concat(lh,[uh]).reduce((function(e,t){return e.concat([t,t+"-"+dh,t+"-"+ph])}),[]),bh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function wh(e){return e?(e.nodeName||"").toLowerCase():null}function Oh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof Oh(e).Element||e instanceof Element}function kh(e){return e instanceof Oh(e).HTMLElement||e instanceof HTMLElement}function Sh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Oh(e).ShadowRoot||e instanceof ShadowRoot)}const Ph={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];kh(o)&&wh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});kh(r)&&wh(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Eh(e){return e.split("-")[0]}var Dh=Math.max,jh=Math.min,_h=Math.round;function Ch(){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 Th(){return!/^((?!chrome|android).)*safari/i.test(Ch())}function Ih(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kh(e)&&(o=e.offsetWidth>0&&_h(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_h(r.height)/e.offsetHeight||1);var a=(xh(e)?Oh(e):window).visualViewport,c=!Th()&&n,s=(r.left+(c&&a?a.offsetLeft:0))/o,u=(r.top+(c&&a?a.offsetTop:0))/i,l=r.width/o,d=r.height/i;return{width:l,height:d,top:u,right:s+l,bottom:u+d,left:s,x:s,y:u}}function Mh(e){var t=Ih(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 Nh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ah(e){return Oh(e).getComputedStyle(e)}function Rh(e){return["table","td","th"].indexOf(wh(e))>=0}function Lh(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fh(e){return"html"===wh(e)?e:e.assignedSlot||e.parentNode||(Sh(e)?e.host:null)||Lh(e)}function Hh(e){return kh(e)&&"fixed"!==Ah(e).position?e.offsetParent:null}function Uh(e){for(var t=Oh(e),n=Hh(e);n&&Rh(n)&&"static"===Ah(n).position;)n=Hh(n);return n&&("html"===wh(n)||"body"===wh(n)&&"static"===Ah(n).position)?t:n||function(e){var t=/firefox/i.test(Ch());if(/Trident/i.test(Ch())&&kh(e)&&"fixed"===Ah(e).position)return null;var n=Fh(e);for(Sh(n)&&(n=n.host);kh(n)&&["html","body"].indexOf(wh(n))<0;){var r=Ah(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 Wh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bh(e,t,n){return Dh(e,jh(t,n))}function zh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Yh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Vh={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Eh(n.placement),s=Wh(c),u=[sh,ch].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return zh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Yh(e,lh))}(o.padding,n),d=Mh(i),p="y"===s?ih:sh,f="y"===s?ah:ch,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=Uh(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[p],w=v-d[u]-l[f],O=v/2-d[u]/2+y,x=Bh(b,O,w),k=s;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)))&&Nh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qh(e){return e.split("-")[1]}var Gh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,s=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof l?l({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=sh,w=ih,O=window;if(u){var x=Uh(n),k="clientHeight",S="clientWidth";if(x===Oh(n)&&"static"!==Ah(x=Lh(n)).position&&"absolute"===c&&(k="scrollHeight",S="scrollWidth"),o===ih||(o===sh||o===ch)&&i===ph)w=ah,m-=(d&&x===O&&O.visualViewport?O.visualViewport.height:x[k])-r.height,m*=s?1:-1;if(o===sh||(o===ih||o===ah)&&i===ph)b=ch,f-=(d&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-r.width,f*=s?1:-1}var P,E=Object.assign({position:c},u&&Gh),D=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_h(n*o)/o||0,y:_h(r*o)/o||0}}({x:f,y:m},Oh(n)):{x:f,y:m};return f=D.x,m=D.y,s?Object.assign({},E,((P={})[w]=y?"0":"",P[b]=v?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",P)):Object.assign({},E,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const $h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,s=void 0===c||c,u={placement:Eh(t.placement),variation:qh(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,Kh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qh={passive:!0};const Xh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,c=void 0===a||a,s=Oh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qh)})),c&&s.addEventListener("resize",n.update,Qh),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qh)})),c&&s.removeEventListener("resize",n.update,Qh)}},data:{}};var Zh={left:"right",right:"left",bottom:"top",top:"bottom"};function Jh(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zh[e]}))}var em={start:"end",end:"start"};function tm(e){return e.replace(/start|end/g,(function(e){return em[e]}))}function nm(e){var t=Oh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rm(e){return Ih(Lh(e)).left+nm(e).scrollLeft}function om(e){var t=Ah(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function im(e){return["html","body","#document"].indexOf(wh(e))>=0?e.ownerDocument.body:kh(e)&&om(e)?e:im(Fh(e))}function am(e,t){var n;void 0===t&&(t=[]);var r=im(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Oh(r),a=o?[i].concat(i.visualViewport||[],om(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(am(Fh(a)))}function cm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===hh?cm(function(e,t){var n=Oh(e),r=Lh(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;var u=Th();(u||!u&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c+rm(e),y:s}}(e,n)):xh(t)?function(e,t){var n=Ih(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):cm(function(e){var t,n=Lh(e),r=nm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Dh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+rm(e),s=-r.scrollTop;return"rtl"===Ah(o||n).direction&&(c+=Dh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(Lh(e)))}function um(e,t,n,r){var o="clippingParents"===t?function(e){var t=am(Fh(e)),n=["absolute","fixed"].indexOf(Ah(e).position)>=0&&kh(e)?Uh(e):e;return xh(n)?t.filter((function(e){return xh(e)&&Nh(e,n)&&"body"!==wh(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=sm(e,n,r);return t.top=Dh(o.top,t.top),t.right=jh(o.right,t.right),t.bottom=jh(o.bottom,t.bottom),t.left=Dh(o.left,t.left),t}),sm(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function lm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Eh(o):null,a=o?qh(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case ih:t={x:c,y:n.y-r.height};break;case ah:t={x:c,y:n.y+n.height};break;case ch:t={x:n.x+n.width,y:s};break;case sh:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Wh(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case dh:t[u]=t[u]-(n[l]/2-r[l]/2);break;case ph:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function dm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,c=n.boundary,s=void 0===c?fh:c,u=n.rootBoundary,l=void 0===u?hh:u,d=n.elementContext,p=void 0===d?mh:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=zh("number"!=typeof g?g:Yh(g,lh)),y=p===mh?gh:mh,b=e.rects.popper,w=e.elements[h?y:p],O=um(xh(w)?w:w.contextElement||Lh(e.elements.popper),s,l,a),x=Ih(e.elements.reference),k=lm({reference:x,element:b,strategy:"absolute",placement:o}),S=cm(Object.assign({},b,k)),P=p===mh?S:x,E={top:O.top-P.top+v.top,bottom:P.bottom-O.bottom+v.bottom,left:O.left-P.left+v.left,right:P.right-O.right+v.right},D=e.modifiersData.offset;if(p===mh&&D){var j=D[o];Object.keys(E).forEach((function(e){var t=[ch,ah].indexOf(e)>=0?1:-1,n=[ih,ah].indexOf(e)>=0?"y":"x";E[e]+=j[n]*t}))}return E}const pm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,s=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Eh(g),y=s||(v===g||!h?[Jh(g)]:function(e){if(Eh(e)===uh)return[];var t=Jh(e);return[tm(e),t,tm(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Eh(n)===uh?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?yh:s,l=qh(r),d=l?c?vh:vh.filter((function(e){return qh(e)===l})):lh,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=dm(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Eh(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[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=Eh(E),j=qh(E)===dh,_=[ih,ah].indexOf(D)>=0,C=_?"width":"height",T=dm(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:p,padding:u}),I=_?j?ch:sh:j?ah:ih;w[C]>O[C]&&(I=Jh(I));var M=Jh(I),N=[];if(i&&N.push(T[D]<=0),c&&N.push(T[I]<=0,T[M]<=0),N.every((function(e){return e}))){S=E,k=!1;break}x.set(E,N)}if(k)for(var A=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"===A(R))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fm(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 hm(e){return[ih,ch,ah,sh].some((function(t){return e[t]>=0}))}const mm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=dm(t,{elementContext:"reference"}),c=dm(t,{altBoundary:!0}),s=fm(a,r),u=fm(c,o,i),l=hm(s),d=hm(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};const gm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=yh.reduce((function(e,n){return e[n]=function(e,t,n){var r=Eh(e),o=[sh,ih].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[sh,ch].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};const vm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=lm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const ym={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=dm(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:l}),v=Eh(t.placement),y=qh(t.placement),b=!y,w=Wh(v),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,j={x:0,y:0};if(x){if(i){var _,C="y"===w?ih:sh,T="y"===w?ah:ch,I="y"===w?"height":"width",M=x[w],N=M+g[C],A=M-g[T],R=f?-S[I]/2:0,L=y===dh?k[I]:S[I],F=y===dh?-S[I]:-k[I],H=t.elements.arrow,U=f&&H?Mh(H):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[C],z=W[T],Y=Bh(0,k[I],U[I]),V=b?k[I]/2-R-Y-B-E.mainAxis:L-Y-B-E.mainAxis,q=b?-k[I]/2+R+Y+z+E.mainAxis:F+Y+z+E.mainAxis,G=t.elements.arrow&&Uh(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,$=null!=(_=null==D?void 0:D[w])?_:0,Q=M+q-$,X=Bh(f?jh(N,M+V-$-K):N,M,f?Dh(A,Q):A);x[w]=X,j[w]=X-M}if(c){var Z,J="x"===w?ih:sh,ee="x"===w?ah:ch,te=x[O],ne="y"===O?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ih,sh].indexOf(v),ae=null!=(Z=null==D?void 0:D[O])?Z:0,ce=ie?re:te-k[ne]-S[ne]-ae+E.altAxis,se=ie?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=f&&ie?function(e,t,n){var r=Bh(e,t,n);return r>n?n:r}(ce,te,se):Bh(f?ce:re,te,f?se:oe);x[O]=ue,j[O]=ue-te}t.modifiersData[r]=j}},requiresIfExists:["offset"]};function bm(e,t,n){void 0===n&&(n=!1);var r=kh(t),o=kh(t)&&function(e){var t=e.getBoundingClientRect(),n=_h(t.width)/e.offsetWidth||1,r=_h(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Lh(t),a=Ih(e,o,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==wh(t)||om(i))&&(c=function(e){return e!==Oh(e)&&kh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:nm(e);var t}(t)),kh(t)?((s=Ih(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=rm(i))),{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function wm(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Om(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var xm={placement:"bottom",modifiers:[],strategy:"absolute"};function km(){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 Sm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?xm:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},xm,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],c=!1,s={state:o,setOptions:function(n){var c="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,c),o.scrollParents={reference:xh(e)?am(e):e.contextElement?am(e.contextElement):[],popper:am(t)};var l,d,p=function(e){var t=wm(e);return bh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(r,o.options.modifiers),d=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var c=i({state:o,name:t,instance:s,options:r}),u=function(){};a.push(c||u)}})),s.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(km(t,n)){o.rects={reference:bm(t,Uh(n),"fixed"===o.options.strategy),popper:Mh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,l=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Om((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),c=!0}};if(!km(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var Pm=Sm({defaultModifiers:[Xh,vm,$h,Ph,gm,pm,ym,Vh,mm]}),Em=[],Dm=function(e,t,n){void 0===n&&(n={});var r=f.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Em},i=f.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],c=i[1],s=f.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);Ki.flushSync((function(){c({styles:rh(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:rh(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=f.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[s,{name:"applyStyles",enabled:!1}])};return Ct()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),l=f.useRef();return oh((function(){l.current&&l.current.setOptions(u)}),[u]),oh((function(){if(null!=e&&null!=t){var r=(n.createPopper||Pm)(e,t,u);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:a.styles,attributes:a.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var jm,_m,Cm;s(60388);var Tm,Im,Mm,Nm=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(jm||(jm=(0,Se.c)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),De.Il.color("text"),De.aU.font(1),De.aU.space(-1)),Am=(0,Ee.gV)(_m||(_m=(0,Se.c)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),De.Il.color("textLabel"),De.Il.lineHeight("regular"),De.Il.fontWeight("regular"),De.aU.space(-3),De.aU.space(-1.5),De.Il.radii("statusLabel")),Rm=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledHtmlFormatter"})(Cm||(Cm=(0,Se.c)(["\n &&& {\n ","\n margin: 0 0 ",";\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"])),(function(e){return(0,Ln.my)(e,"html")}),De.aU.space(-1),Am,De.Il.color("signal.dangerLight"),De.Il.color("signal.infoLight"),De.Il.color("signal.warningLight"),De.Il.color("signal.successLight"),Am,De.Il.color("signal.dangerLight"),De.Il.radii("statusLabel"),De.aU.space(-2.1),De.aU.space(0),De.Il.color("paper"),De.Il.color("signal.info")),Lm=16,Fm=Ee.cp.div.withConfig({displayName:"StyledBoxWrapper"})(Tm||(Tm=(0,Se.c)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n }\n"])),De.Il.color("backgroundPopover"),(function(e){return e.rimless?"0":De.aU.space(0)}),De.Il.color("textPopover")),Hm=Ee.cp.div.withConfig({displayName:"StyledBox"})(Im||(Im=(0,Se.c)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Ln.my)(e,"html")}),Rm,De.Il.color("textPopover")),Um=Ee.cp.i.withConfig({displayName:"StyledArrow"})(Mm||(Mm=(0,Se.c)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Lm,8,-8,8,8,8,De.Il.color("backgroundPopover"),-6.4,8,8,8,De.Il.color("backgroundPopover"),Lm,8,De.Il.color("backgroundPopover"));function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zm=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,i=(0,f.useState)(null),a=(0,Ue.c)(i,2),c=a[0],s=a[1],u=(0,f.useState)(null),l=(0,Ue.c)(u,2),d=l[0],p=l[1],h=(0,f.useState)(null),m=(0,Ue.c)(h,2),g=m[0],v=m[1],y=(0,f.useState)(!1),b=(0,Ue.c)(y,2),w=b[0],O=b[1],x=Dm(c,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:g}}]}),k=x.styles,S=x.attributes;return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{ref:s,onMouseOut:function(){O(!1)},onMouseOver:function(){O(!0)},children:t}),w&&n&&$i().createPortal((0,Ae.jsxs)(Fm,Bm(Bm({ref:p,style:k.popper,rimless:o},S.popper),{},{className:du,children:[(0,Ae.jsx)(Hm,{isPlainHtml:r,children:n}),(0,Ae.jsx)(Um,Bm({ref:v,style:k.arrow},S.popper))]})),document.body)]})};zm.defaultProps={isPlainHtml:!0,rimless:!1};const Ym=zm;const Vm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,c=o.DetailLink,s=Kr()(i,t.key,null),u=(0,Ae.jsx)("span",{style:n.css,children:r}),l=c?(0,Ae.jsx)(Fs,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ae.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,Ae.jsx)(Ym,{content:s?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(s)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return a&&!s&&a(t.key)},children:u})})})}):u;return(0,Ae.jsx)(Ks,{children:l})};var qm=s(36384),Gm=s.n(qm),Km=s(43028),$m=s.n(Km),Qm=s(90948),Xm=s.n(Qm),Zm=s(94024),Jm=s.n(Zm),eg=function(e){return"object"===(0,Yr.c)(e)&&null!==e};const tg=function e(t,n){return Jm()(t,(function(t,r,o){Xm()(r,n[o])||(t[o]=eg(r)&&eg(n[o])?e(r,n[o]):r)}))},ng=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},rg=function(e){return e?e.replace(/­/g,""):e};function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?og(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=["linkComp"],cg=function(e,t){var n=tg(e,t),r=$m()(gr()(n,ag),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},sg=(0,f.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Gm()(n)?(0,Ae.jsx)(Fs,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ae.jsx)(t,{entityKey:n,children:r})}):r}),cg);sg.propTypes={children:ke().node,entityKey:ke().any,linkComp:ke().func};const ug=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,c=n.DetailLink,s=Kr()(i,t.key,null);return(0,Ae.jsx)(fc.SingleValue,ig(ig({},e),{},{children:(0,Ae.jsx)(Vs,{onMouseOver:function(){return a&&!s&&a(t.key)},isDisabled:r,children:(0,Ae.jsx)(Ym,{content:s?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(s)}}):null,children:(0,Ae.jsx)(sg,{linkComp:c,entityKey:t.key,children:o})})})}))};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}var dg=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const pg=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(i||a)))return(0,Ae.jsx)(fc.ValueContainer,function(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,Ie.c)(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}({},e));var s=f.Children.map(r,(function(e){return dg(e)?e:null})),u=f.Children.map(r,(function(e){return dg(e)?null:e})),l=c&&n;return(0,Ae.jsxs)(Ae.Fragment,{children:[!l&&(0,Ae.jsx)(Ae.Fragment,{children:s}),(0,Ae.jsx)(Gs,{children:u})]})};function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mg=(0,Ee.QX)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,f.useRef)(null),S=(0,f.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},D=(0,f.useState)(P()),j=(0,Ue.c)(D,2),_=j[0],C=j[1],T=(0,f.useState)(E()),I=(0,Ue.c)(T,2),M=I[0],N=I[1],A=(0,f.useState)(!1),R=(0,Ue.c)(A,2),L=R[0],F=R[1],H=function(e){t&&t(e)},U=(0,f.useCallback)(g||function(){},[]),W=(0,f.useCallback)(ro()(U,800,{trailing:!0}),[]),B=Boolean(h),z=Boolean(p),Y=Boolean(O);return(0,Ae.jsx)(Hs,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){C(P()),N(E())}),0)},children:(0,Ae.jsx)(Us,{ref:S,children:(0,Ae.jsx)(ms,hg(hg({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:_,wrapperHeight:M,components:{ClearIndicator:ys,LoadingIndicator:lu,DropdownIndicator:Zs,IndicatorsContainer:su,IndicatorSeparator:null,Menu:Jf,MenuList:nh,MultiValueLabel:Vm,SingleValue:ug,ValueContainer:pg},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ae.jsx)(l,hg({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},g?{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),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&W(e,b),""===e&&"input-change"===n&&H(b)},options:(0,St.c)(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:$s(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:B,openAdvancedSearch:h,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const gg=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,c=e.onChange;return(0,Ae.jsx)(mg,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:to()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var vg,yg=Ee.cp.div.withConfig({displayName:"StyledBoolEdit"})(vg||(vg=(0,Se.c)(["\n margin: 5px 0;\n"])));const bg=function(e){return(0,Ae.jsx)(yg,{children:(0,Ae.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 wg,Og,xg=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ae.jsx)(Rm,{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(t)},breakWords:n,className:r})},kg=Ee.cp.div.withConfig({displayName:"StyledOption"})(wg||(wg=(0,Se.c)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),De.aU.space(-1),De.aU.space(-1.5)),Sg=Ee.cp.span.withConfig({displayName:"StyledLabel"})(Og||(Og=(0,Se.c)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,De.Gj)(),De.aU.space(-1.5));function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dg={single:"radio",multiple:"checkbox"},jg={single:{checked:!1},multiple:{}},_g=function(e,t){return t?(0,Ae.jsx)(xg,{value:e}):e},Cg=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,c=e.hideCheckbox,s=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ae.jsxs)(kg,{children:[!c&&(0,Ae.jsx)("input",{name:t,type:Dg[s],checked:i||!1,onChange:l,id:n,disabled:a}),(0,Ae.jsx)(Sg,{children:o||_g(r,u)})]})};const Tg=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return Eg(Eg({},t),t.id===e.target.id?{checked:e.target.checked}:jg[r.selectionType])}));t({options:o})}};return(0,Ae.jsx)(Ae.Fragment,{children:n.options.map((function(e){return(0,Ae.jsx)(Cg,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};s(79304);function Ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ng=(0,f.lazy)((function(){return Promise.all([s.e(904),s.e(784)]).then(s.bind(s,43976))}));const Ag=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:(t=e.value,(0,Ae.jsx)("div",{children:(0,Ae.jsx)("p",{children:t})})),children:(0,Ae.jsx)(Ng,Mg({},e))});var t};var Rg,Lg=Ee.cp.div.withConfig({displayName:"StyledEditorWrapper"})(Rg||(Rg=(0,Se.c)(["\n margin-top: ",";\n"])),De.aU.space(-1.5));const Fg=(0,Ee.QX)(Ke.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ae.jsx)(Lg,{children:(0,Ae.jsx)(Ag,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Hg,Ug,Wg,Bg=Ee.cp.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Hg||(Hg=(0,Se.c)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),zg=Ee.cp.div.withConfig({displayName:"StyledDatePickerWrapper"})(Ug||(Ug=(0,Se.c)(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Fr,Ur,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Yg=Ee.cp.input.withConfig({displayName:"StyledTimeInput"})(Wg||(Wg=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur),Vg="react-datepicker-time__input",qg="react-datepicker__day",Gg="react-datepicker__input",Kg=function(e){return e.classList.contains(qg)},$g=function(e){return e.classList.contains(Vg)},Qg=function(e){return e.classList.contains(Gg)},Xg=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(qg,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Zg=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Jg=function(e){var t=_p(e);return isNaN(t)?null:t},ev=function(e){return e?e.toISOString():null};const tv=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Jg:s,l=n.dateToValue,d=void 0===l?ev:l,p=(0,f.useRef)(null),h=(0,f.useState)(!1),m=(0,Ue.c)(h,2),g=m[0],v=m[1],y=(0,f.useState)(!1),b=(0,Ue.c)(y,2),w=b[0],O=b[1],x=u(e),k=i?u(i):void 0,S=a?u(a):void 0;(0,f.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(g),g)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[g]);var P=function(){return v(!1)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},D=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},j=function(){t(null),D(null)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=E(!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,i=void 0===o?0:o,a=t.second;return Fp(Hp(Up(e,void 0===a?0:a),i),r)}(n,{hour:Bl(r),minute:zl(r),second:Yl(r)}):n;C(o,e)}},C=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return jp(s,e)})),l=Hu(n),f=Bl(n)!==Bl(l)||zl(n)!==zl(l);(a&&!f||u)&&c&&(n=Mf(n)),t(d(n))}else j();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Zg(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(Qg(e.target))setTimeout((function(){return P()}),0);else if($g(e.target)){var t;D(x||E(!0)),Xg(null===(t=p.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else Kg(e.target)&&P();else Qg(e.target)&&g?(_(e),setTimeout((function(){return P()}),0)):$g(e.target)?P():Kg(e.target)&&(c?(_(e,!0),D(null),O(!0),setTimeout((function(){var e,t;t=null===(e=p.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(Vg));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(_(e),P()));var n;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Zg(null===(n=p.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(g){if(g&&null===E(!1)){var r;D(x||E(!0)),Xg(null===(r=p.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else v(!0),e.key="Handled".concat(e.key)},I=function(){var e;v((function(e){return!e})),D(null),Zg(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:P,onInputClick:I,onKeyDown:T,onChange:C,onCalendarOpen:function(){D(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:g,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:Gg},timeInputProps:{onKeyDown:T,className:Vg,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:I,className:g?"react-datepicker-ignore-onclickoutside":""}}};var nv="HH:mm:ss",rv="HH:mm",ov=function(e){return jp(e,rv)},iv=function(e){var t=function(e){return jp(e,nv)?Dp(e,nv,new Date):jp(e,rv)?Dp(e,rv,new Date):jp(e,"HH:")?Dp(e,"HH:",new Date):jp(e,"H")?Dp(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return Ul(e,rv)}(t):""};const av=function(e,t){var n=iv(e),r=(0,f.useState)(n),o=(0,Ue.c)(r,2),i=o[0],a=o[1],c=(0,f.useRef)(i),s=Ke.usePrevious(n);(0,f.useEffect)((function(){s!==n&&i===s&&a(n)}),[n,i,s]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),d=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!d||!p)return!1;c.current=n,a(n);var f=iv(n);f&&!ov(f)||t(f)}},onBlur:function(){if(i!==n){var e=iv(i);e&&ov(e)?(c.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var cv=["value","onChange","onKeyDown"];function sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Af();var lv=function(e){var t=e.onChange,n=e.label;return(0,Ae.jsx)(dt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},dv=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Me.c)(e,cv),i=av(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ae.jsx)(Yg,uv(uv(uv({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},pv={strategy:"fixed"};const fv=(0,Ee.QX)((0,p.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,h=void 0===p?[]:p,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,f.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},O=(0,f.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){y.current=e,s(e)},P=tv(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:c,hasTime:d}),E=P.reactDatePickerProps,D=P.timeInputProps,j=P.clearButtonProps,_=P.calendarButtonProps;return(0,Ae.jsx)(Bg,{immutable:t,id:n,tabIndex:"-1",children:(0,Ae.jsxs)(zg,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},children:[(0,Ae.jsx)(ju(),uv(uv({id:n?"".concat(n,"-datepicker"):null},E),{},{disabled:t,dateFormat:[].concat((0,St.c)(g),(0,St.c)(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ae.jsx)(dv,uv({},D)),showTimeSelect:d,timeIntervals:15,popperProps:pv,todayButton:(0,Ae.jsx)(lv,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ae.jsx)(bt,uv({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},j)),!t&&(0,Ae.jsx)(bt,uv({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},_))]})})})));function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 mv=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,c=e.placeholder,s=(0,p.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(jf(s.locale)),d=Cf(s.locale),f=[l,d,If(l),If(d)];return(0,Ae.jsx)(fv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:c,events:a},u))};function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vv=(0,p.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,p.useIntl)(),c=(null==n?void 0:n.datePickerOptions)||{},s="".concat(_f(a.locale)),u="".concat(jf(a.locale)),l=Tf(a.locale),d=[s,l,If(s),If(l)],f=Cf(a.locale),h=[u,f,If(u),If(f)];return(0,Ae.jsx)(fv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(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:i},c))}));var yv,bv,wv,Ov,xv,kv,Sv,Pv,Ev=Ee.cp.section.withConfig({displayName:"StyledSection"})(yv||(yv=(0,Se.c)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Dv=Ee.cp.div.withConfig({displayName:"StyledButtonsWrapper"})(bv||(bv=(0,Se.c)(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),ct,De.aU.space(-2)),jv=Ee.cp.div.withConfig({displayName:"StyledDropzone"})(wv||(wv=(0,Se.c)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ct,De.Il.color("backgroundItemHover")),_v=Ee.cp.div.withConfig({displayName:"StyledUploadInput"})(Ov||(Ov=(0,Se.c)(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,De.Gj)(),(function(e){return e.immutable?"not-allowed":"pointer"}),De.Il.color("paper"),(function(e){return e.immutable?De.Ml.shade2(e):De.Ml.base(e)}),De.aU.space(-2),ct,De.aU.space(-3.1),De.aU.space(-1.5)),Cv=Ee.cp.div.withConfig({displayName:"StyledUploadProgress"})(xv||(xv=(0,Se.c)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),De.aU.space(-2)),Tv=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledUploadProgressText"})(kv||(kv=(0,Se.c)(["\n && {\n ","\n }\n"])),(0,De.Gj)({fontSize:De.aU.font(-1)})),Iv=Ee.cp.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Sv||(Sv=(0,Se.c)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),De.aU.space(-2)),Mv=Ee.cp.div.withConfig({displayName:"StyledView"})(Pv||(Pv=(0,Se.c)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),De.aU.space(-2));function Nv(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function Av(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function Rv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Lv(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Fv=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 Hv(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Fv.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 Uv=[".DS_Store","Thumbs.db"];function Wv(e){return"object"==typeof e&&null!==e}function Bv(e){return qv(e.target.files).map((function(e){return Hv(e)}))}function zv(e){return Nv(this,void 0,void 0,(function(){return Av(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 Hv(e)}))]}}))}))}function Yv(e,t){return Nv(this,void 0,void 0,(function(){var n;return Av(this,(function(r){switch(r.label){case 0:return e.items?(n=qv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Gv))]):[3,2];case 1:return[2,Vv(Kv(r.sent()))];case 2:return[2,Vv(qv(e.files).map((function(e){return Hv(e)})))]}}))}))}function Vv(e){return e.filter((function(e){return-1===Uv.indexOf(e.name)}))}function qv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Gv(e){if("function"!=typeof e.webkitGetAsEntry)return $v(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Xv(t):$v(e)}function Kv(e){return e.reduce((function(e,t){return Lv(Lv([],Rv(e),!1),Rv(Array.isArray(t)?Kv(t):[t]),!1)}),[])}function $v(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Hv(t);return Promise.resolve(n)}function Qv(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return[2,e.isDirectory?Xv(e):Zv(e)]}))}))}function Xv(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Nv(i,void 0,void 0,(function(){var i,a,c;return Av(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=s.sent(),e(i),[3,4];case 3:return a=s.sent(),n(a),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(Qv)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Zv(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Hv(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Jv=s(35264);function ey(e){return function(e){if(Array.isArray(e))return ay(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iy(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 ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach((function(t){ry(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||iy(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 iy(e,t){if(e){if("string"==typeof e)return ay(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)?ay(e,t):void 0}}function ay(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 cy="file-invalid-type",sy="file-too-large",uy="file-too-small",ly="too-many-files",dy=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:cy,message:"File type must be ".concat(t)}},py=function(e){return{code:sy,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},fy=function(e){return{code:uy,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},hy={code:ly,message:"Too many files"};function my(e,t){var n="application/x-moz-file"===e.type||(0,Jv.c)(e,t);return[n,n?null:dy(t)]}function gy(e,t,n){if(vy(e.size))if(vy(t)&&vy(n)){if(e.size>n)return[!1,py(n)];if(e.size<t)return[!1,fy(t)]}else{if(vy(t)&&e.size<t)return[!1,fy(t)];if(vy(n)&&e.size>n)return[!1,py(n)]}return[!0,null]}function vy(e){return null!=e}function yy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function by(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 wy(e){e.preventDefault()}function Oy(){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!yy(e)&&t&&t.apply(void 0,[e].concat(r)),yy(e)}))}}function xy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function ky(e){return/^.*\.[\w]+$/.test(e)}var Sy=["children"],Py=["open"],Ey=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Dy=["refKey","onChange","onClick"];function jy(e){return function(e){if(Array.isArray(e))return Ty(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cy(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 _y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Cy(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 Cy(e,t){if(e){if("string"==typeof e)return Ty(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)?Ty(e,t):void 0}}function Ty(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 Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(n),!0).forEach((function(t){Ny(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ry=(0,f.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=My(My({},Ly),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=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,f.useMemo)((function(){return function(e){if(vy(e))return Object.entries(e).reduce((function(e,t){var n=oy(t,2),r=n[0],o=n[1];return[].concat(ey(e),[r],ey(o))}),[]).filter((function(e){return xy(e)||ky(e)})).join(",")}(n)}),[n]),j=(0,f.useMemo)((function(){return function(e){if(vy(e)){var t=Object.entries(e).filter((function(e){var t=oy(e,2),n=t[0],r=t[1],o=!0;return xy(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(ky)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=oy(t,2),r=n[0],o=n[1];return ny(ny({},e),{},ry({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),_=(0,f.useMemo)((function(){return"function"==typeof v?v:By}),[v]),C=(0,f.useMemo)((function(){return"function"==typeof g?g:By}),[g]),T=(0,f.useRef)(null),I=(0,f.useRef)(null),M=_y((0,f.useReducer)(Wy,Uy),2),N=M[0],A=M[1],R=N.isFocused,L=N.isFileDialogActive,F=(0,f.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){I.current&&(I.current.files.length||(A({type:"closeDialog"}),C()))}),300)};(0,f.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[I,L,C,F]);var U=(0,f.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,f.useEffect)((function(){return w&&(document.addEventListener("dragover",wy,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",wy),document.removeEventListener("drop",W))}}),[T,w]),(0,f.useEffect)((function(){return!r&&b&&T.current&&T.current.focus(),function(){}}),[T,b,r]);var B=(0,f.useCallback)((function(e){P?P(e):console.error(e)}),[P]),z=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(jy(U.current),[e.target]),by(e)&&Promise.resolve(o(e)).then((function(t){if(!yy(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,c=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=oy(my(e,n),1)[0],i=oy(gy(e,r,o),1)[0],a=c?c(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:c,maxFiles:s,validator:E});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,D,a,i,c,s,E]),Y=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=by(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),by(e)&&l&&l(e))}),[T,l,S]),q=(0,f.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=_y(my(e,D),2),o=t[0],c=t[1],s=_y(gy(e,a,i),2),u=s[0],l=s[1],d=E?E(e):null;if(o&&u&&!d)n.push(e);else{var p=[c,l];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[hy]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[A,c,D,a,i,s,p,h,m,E]),G=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],by(e)&&Promise.resolve(o(e)).then((function(t){yy(e)&&!S||q(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,q,B,S]),K=(0,f.useCallback)((function(){if(F.current){A({type:"openDialog"}),_();var e={multiple:c,types:j};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),A({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(F.current=!1,I.current?(I.current.value=null,I.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),A({type:"closeDialog"}))}))}else I.current&&(A({type:"openDialog"}),_(),I.current.value=null,I.current.click())}),[A,_,C,y,q,B,j,c]),$=(0,f.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[T,K]),Q=(0,f.useCallback)((function(){A({type:"focus"})}),[]),X=(0,f.useCallback)((function(){A({type:"blur"})}),[]),Z=(0,f.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,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=Ay(e,Ey);return My(My(Ny({onKeyDown:ee(Oy(i,$)),onFocus:ee(Oy(a,Q)),onBlur:ee(Oy(c,X)),onClick:J(Oy(s,Z)),onDragEnter:te(Oy(u,z)),onDragOver:te(Oy(l,Y)),onDragLeave:te(Oy(d,V)),onDrop:te(Oy(p,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),f)}}),[T,$,Q,X,Z,z,Y,V,G,x,k,r]),oe=(0,f.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Ay(e,Dy);return My(My({},Ny({accept:D,multiple:c,type:"file",style:{display:"none"},onChange:J(Oy(r,G)),onClick:J(Oy(o,oe)),tabIndex:-1},n,I)),i)}}),[I,n,c,G,r]);return My(My({},N),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:T,inputRef:I,open:J(K)})}(Ay(e,Sy)),o=r.open,i=Ay(r,Py);return(0,f.useImperativeHandle)(t,(function(){return{open:o}}),[o]),h().createElement(f.Fragment,null,n(My(My({},i),{},{open:o})))}));Ry.displayName="Dropzone";var Ly={disabled:!1,getFilesFromEvent:function(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return Wv(e)&&Wv(e.dataTransfer)?[2,Yv(e.dataTransfer,e.type)]:function(e){return Wv(e)&&Wv(e.target)}(e)?[2,Bv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,zv(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};Ry.defaultProps=Ly,Ry.propTypes={children:ke().func,accept:ke().objectOf(ke().arrayOf(ke().string)),multiple:ke().bool,preventDropOnDocument:ke().bool,noClick:ke().bool,noKeyboard:ke().bool,noDrag:ke().bool,noDragEventsBubbling:ke().bool,minSize:ke().number,maxSize:ke().number,maxFiles:ke().number,disabled:ke().bool,getFilesFromEvent:ke().func,onFileDialogCancel:ke().func,onFileDialogOpen:ke().func,useFsAccessApi:ke().bool,autoFocus:ke().bool,onDragEnter:ke().func,onDragLeave:ke().func,onDragOver:ke().func,onDrop:ke().func,onDropAccepted:ke().func,onDropRejected:ke().func,onError:ke().func,validator:ke().func};const Fy=Ry;var Hy,Uy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Wy(e,t){switch(t.type){case"focus":return My(My({},e),{},{isFocused:!0});case"blur":return My(My({},e),{},{isFocused:!1});case"openDialog":return My(My({},Uy),{},{isFileDialogActive:!0});case"closeDialog":return My(My({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return My(My({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return My(My({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return My({},Uy);default:return e}}function By(){}function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Vy=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ae.jsxs)(_v,{immutable:n,children:[(0,Ae.jsx)(Fy,{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,Ae.jsx)(Ev,{children:(0,Ae.jsxs)(jv,Yy(Yy({},t()),{},{children:[(0,Ae.jsx)("input",Yy({},n())),Hy||(Hy=(0,Ae.jsx)(dt,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ae.jsx)(dt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var qy,Gy=Ee.cp.figure.withConfig({displayName:"StyledPreview"})(qy||(qy=(0,Se.c)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),De.aU.space(-2.2),De.Il.color("border"),De.Il.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Ky=Gy;var $y;const Qy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,c=t?(0,Ae.jsx)("img",{alt:n,title:n,src:t}):(0,Ae.jsx)("div",{title:n,children:$y||($y=(0,Ae.jsx)(Ne.c,{icon:"file-alt"}))});return(0,Ae.jsxs)(Ky,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ae.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:c}),o&&(0,Ae.jsx)(Ln.cp.Figcaption,{children:o})]})};var Xy=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 Zy=function(e){var t=e.file,n=e.text;return(0,Ae.jsxs)(Cv,{children:[(0,Ae.jsx)(Qy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ae.jsxs)(Iv,{children:[(0,Ae.jsx)(He,{position:De.Wn.position.PREPEND}),(0,Ae.jsxs)(Tv,{children:[n||"uploading"," (",Xy(t.size),")"]})]})]})};var Jy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const eb={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return Jy(e,"download",!0)},addParameterToURL:Jy};function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?tb(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rb=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ae.jsxs)(Mv,{className:"StyledView",children:[(0,Ae.jsx)(Qy,nb(nb({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ae.jsxs)(Dv,{children:[!o&&(0,Ae.jsx)(dt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ae.jsx)(dt,{children:(0,Ae.jsx)(Lr.cp,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:eb.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ab=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,i=(0,f.useRef)(t),a=(0,f.useState)({isUploading:!1,previewFile:null}),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,f.useEffect)((function(){Xm()(i.current,t)||u({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ae.jsx)(rb,ib(ib({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,Ae.jsx)(Zy,ib({file:s.previewFile,text:n.uploading},e)):(0,Ae.jsx)(Vy,ib(ib({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};ab.defaultProps={textResources:{}};const cb=ab;var sb=function(e){return(0,Ae.jsx)(cb,{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})};sb.defaultProps={options:{}};const ub=sb;var lb,db,pb=Ee.cp.input.withConfig({displayName:"StyledDurationEdit"})(lb||(lb=(0,Se.c)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Ur,(function(e){return e.width})),fb=Ee.cp.label.withConfig({displayName:"StyledDurationEditFocusable"})(db||(db=(0,Se.c)(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),De.aU.space(1),(function(e){return e.immutable?De.Il.color("textDisabled"):De.Il.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),hb=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=Pf(n),c=(0,f.useState)(!1),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=function(e,t){var n,r,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),o((r=i,(n=c)||r?((n<0||r<0)&&(n=Vr(n),r=Vr(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){l(!0)},h=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},m=function(){return!0===i.allowNegative?"-?d+":"d+"},g=function(){return u||"number"==typeof n},v=function(e){return 9*(e+"").length},y=r&&Boolean(a.seconds);return(0,Ae.jsxs)(Hr,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:h,pattern:m(),step:1,width:v(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!r?"":a.hours+"","data-cy":"input-hours"}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.hoursLabel})]}),(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(null,t)},onKeyPress:h,pattern:m(),step:1,width:v(a.minutes),type:"number",value:a.minutes+"","data-cy":"input-minutes"}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.minutesLabel})]}),y&&(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,onChange:function(){},width:v(a.seconds),type:"number",value:a.seconds+""}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.secondsLabel})]})]})};hb.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const mb=hb;var gb;const vb=Ee.cp.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(gb||(gb=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const yb=Ke.Debouncer((function(e){return(0,Ae.jsxs)(Hr,{immutable:e.immutable,children:[(0,Ae.jsx)(vb,{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,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var bb=s(61936),wb=s(51068),Ob=s.n(wb);function xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sb(){Sb=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),(0,bb.c)(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,Oe.c)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,Yr.c)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Sb.apply(this,arguments)}var Pb,Eb=["key","display","postcode","city","country","latitude","longitude"],Db=function(e){return e*Math.PI/180},jb=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:Db(i),longitude:Db(a)}};function _b(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 Cb(){}function Tb(e){return!!(e||"").match(/\d/)}function Ib(e){return null==e}function Mb(e){return Ib(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Nb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ab(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 Rb(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Lb(e,t){return Array(t+1).join(e)}function Fb(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,c=(o=o.replace(".","")).length;return a<0?o="0."+Lb("0",Math.abs(a))+o:a>=c?o+=Lb("0",a-c):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Hb(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Ab(e),i=o.beforeDecimal,a=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:s.toFixed(t)).split("."),l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]);return""+(c?"-":"")+l+(r?".":"")+Rb(u[1]||"",t,n)}function Ub(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"}(Pb||(Pb={}));var Wb,Bb,zb,Yb=(Wb=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},zb=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Bb&&e.length===Bb.length&&e.every((function(e,t){return e===Bb[t]}))?zb:(Bb=e,zb=Wb.apply(void 0,e))});function Vb(e){return Math.max(e.selectionStart,e.selectionEnd)}function qb(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Gb(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Kb(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 $b(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(Tb(e[n])||Tb(e[n-1]));return t}function Qb(e,t,n,r,o,i){void 0===i&&(i=Cb);var a=function(e){var t=(0,f.useRef)(e);t.current=e;var n=(0,f.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Mb(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Fb(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),c=(0,f.useState)((function(){return a(Ib(e)?t:e,n)})),s=c[0],u=c[1],l=e,d=n;Ib(e)&&(l=s.numAsString,d=!0);var p=a(l,d);return(0,f.useMemo)((function(){u(p)}),[p.formattedValue]),[s,function(e,t){e.formattedValue!==s.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Xb(e){return e.replace(/[^0-9]/g,"")}function Zb(e){return e}function Jb(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Zb);var c=e.removeFormatting;void 0===c&&(c=Xb);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=Cb);var m=e.onKeyDown;void 0===m&&(m=Cb);var g=e.onMouseUp;void 0===g&&(g=Cb);var v=e.onFocus;void 0===v&&(v=Cb);var y=e.onBlur;void 0===y&&(y=Cb);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=$b);var O=e.isValidInputCharacter;void 0===O&&(O=Tb);var x=e.isCharacterSame,k=_b(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Qb(b,s,Boolean(u),a,c,l),P=S[0],E=P.formattedValue,D=P.numAsString,j=S[1],_=(0,f.useRef)({formattedValue:E,numAsString:D}),C=function(e,t){_.current={formattedValue:e.formattedValue,numAsString:e.value},j(e,t)},T=(0,f.useState)(!1),I=T[0],M=T[1],N=(0,f.useRef)(null),A=(0,f.useRef)({setCaretTimeout:null,focusTimeout:null});(0,f.useEffect)((function(){return M(!0),function(){clearTimeout(A.current.setCaretTimeout),clearTimeout(A.current.focusTimeout)}}),[]);var R=a,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||(Ub(e,t),A.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Ub(e,t)}),0))},H=function(e,t,n){return Kb(e,t,w(e),n)},U=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Gb);var c=o.findIndex((function(e){return e})),s=e.slice(0,c);t||n.startsWith(s)||(t=s,n=s+n,r+=s.length);for(var u=n.length,l=e.length,d={},p=new Array(u),f=0;f<u;f++){p[f]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==d[h]){p[f]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===p[g]||!i(n[g]));)g++;var v=g===u||-1===p[g]?l:p[g];for(g=r-1;g>0&&-1===p[g];)g--;var y=-1===g||-1===p[g]?0:p[g]+1;return y>v?v:r-y<v-r?y:v}(t,E,e,n,r,O,x);return o=Kb(t,o,r)};(0,f.useEffect)((function(){var e=_.current,t=e.formattedValue,n=e.numAsString;E===t||E===D&&t===n||C(L(E,D),{event:void 0,source:Pb.props})}),[E,D]);var W=N.current?Vb(N.current):void 0;("undefined"!=typeof window?f.useLayoutEffect:f.useEffect)((function(){var e=N.current;if(E!==_.current.formattedValue&&e){var t=U(_.current.formattedValue,E,W);e.value=E,F(e,t,E)}}),[E]);var B=function(e,t,n){var r=Yb(E,e),o=Object.assign(Object.assign({},r),{lastValue:E}),i=c(e,o),a=R(i);if(i=c(a,void 0),d&&!d(L(a,i))){var s=t.target,u=Vb(s),l=U(e,E,u);return s.value=E,F(s,l,E),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,i=e.event,a=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Vb(n);n.value=t,c=U(s,t,u)}n.value=t,r&&void 0!==c&&F(n,c,t)}t!==E&&C(L(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},z=!I||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",Y=Object.assign({inputMode:z},k,{type:t,value:E,onChange:function(e){var t=e.target.value;B(t,e,Pb.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)(c=H(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||O(a[t])?"Backspace"!==r||O(a[t])||(c=H(a,t,"left")):c=H(a,t,"right");c!==t&&F(n,c,a),e.isUnitTestRun&&F(n,c,a),m(e)}else m(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var i=H(o,n);i!==n&&F(t,i,o)}g(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;N.current=t,A.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var i=H(o,n);i===n||0===n&&r===o.length||F(t,i,o),v(e)}),0)},onBlur:function(e){N.current=null,clearTimeout(A.current.focusTimeout),clearTimeout(A.current.setCaretTimeout),y(e)}});if("text"===n)return o?h().createElement(h().Fragment,null,o(E,k)||null):h().createElement("span",Object.assign({},k,{ref:i}),E);if(r){var V=r;return h().createElement(V,Object.assign({},Y,{ref:i}))}return h().createElement("input",Object.assign({},Y,{ref:i}))}function ew(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=tw(t),u=s.thousandSeparator,l=s.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,p=Ab(e,a),f=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Rb(h,n,!!r)),u&&(f=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)}(f,u,c)),o&&(f=o+f),i&&(h+=i),m&&(f="-"+f),e=f+(d&&l||"")+h}function tw(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 nw(e,t,n){var r;void 0===t&&(t=qb(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,d=u.end,p=tw(n),f=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[d]===h;if(Tb(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==f.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-a.length||x<i.length))||S&&a.startsWith(S)||(e=k);var P=0;e.startsWith(i)?P+=i.length:l<i.length&&(P=l),d-=P;var E=(e=e.substring(P)).length,D=e.length-a.length;e.endsWith(a)?E=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Nb(e),t?"g":void 0)}(h,!0))||[]).join("");var j=e.indexOf(h);e=e.replace(new RegExp(Nb(h),"g"),(function(e,t){return t===j?".":""}));var _=Ab(e,o),C=_.beforeDecimal,T=_.afterDecimal,I=_.addNegation;return u.end-u.start<s.end-s.start&&""===C&&m&&!parseFloat(T)&&(e=I?"-":""),e}function rw(e){e=function(e){var t=tw(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Cb);var i=e.onBlur;void 0===i&&(i=Cb);var a=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=_b(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=tw(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return ew(t,e)},b=function(t,n){return nw(t,n,e)},w=Ib(d)?l:d,O=null!=p?p: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);Ib(d)?Ib(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Mb(e)?e:("number"==typeof e&&(e=Fb(e)),O&&"number"==typeof c?Hb(e,c,Boolean(s)):e)},k=Qb(x(d),x(l),Boolean(O),y,b,f),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||Tb(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],c=r[i],s=Yb(n,t).to;return!!(o>=s.start&&o<s.end&&v&&v.includes(a)&&c===g)||a===c},onValueChange:D,format:y,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Ub(t,1),c&&s&&("Backspace"===r&&d[i-1]===g?(Ub(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Ub(t,i+1);var p=!0===a?",":a;"Backspace"===r&&d[i-1]===p&&Ub(t,i-1),"Delete"===r&&d[i]===p&&Ub(t,i+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)),s&&c&&(n=Hb(n,c,s)),n!==P){var o=ew(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Pb.event})}i(t)}})}function ow(e){var t=rw(e);return h().createElement(Jb,Object.assign({},t))}var iw,aw=["immutable"];function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sw=(0,Ee.cp)((function(e){e.immutable;var t=(0,Me.c)(e,aw);return(0,Ae.jsx)(ow,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(iw||(iw=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const uw=sw;function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pw=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},fw=function(e){return null!=e&&!isNaN(parseFloat(e))},hw=function(e,t,n){return!fw(n)||!(fw(t)&&n>t)&&!(fw(e)&&n<e)},mw=function(e,t){return function(n){var r=n.floatValue;return pw(r)<pw(e)||hw(e,t,r)}};const gw=(0,p.injectIntl)(Ke.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,c=i.postPointDigits,s=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,p=i.suffix,f=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,c,u),g=dw(dw({isAllowed:mw(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!d}),v=void 0===e.value?"":e.value;return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(uw,dw(dw({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&hw(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:p,prefix:f},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!hw(s,m,r)&&(t.target.value=null)}}))})}),800));const vw=Ke.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,d=s.format,p=s.allowLeadingZeros,f=s.suffix,h=void 0===t?"":t;return(0,Ae.jsx)(Hr,{immutable:o,children:(0,Ae.jsx)(uw,{isAllowed:mw(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),hw(u,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:f,format:d,placeholder:c,immutable:o})})}),800);var yw,bw,ww,Ow=Ee.cp.div.withConfig({displayName:"StyledWrapper"})(yw||(yw=(0,Se.c)(["\n display: flex;\n justify-content: stretch;\n"]))),xw=Ee.cp.div.withConfig({displayName:"StyledLocationWrapper"})(bw||(bw=(0,Se.c)(["\n flex-grow: 1;\n"]))),kw=Ee.cp.div.withConfig({displayName:"StyledDistanceWrapper"})(ww||(ww=(0,Se.c)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),De.Il.color("border"),De.aU.space(-.8),De.aU.space(.5));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 Pw(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,Ie.c)(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}const Ew=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,c=a.suggestions,s=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,p=a.emptySearchText,f=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?Ob()(e,Eb):void 0}(r),v=function(e){return e?e.map(jb):[]}(c);return(0,Ae.jsxs)(Ow,{children:[(0,Ae.jsx)(xw,{children:(0,Ae.jsx)(mg,{id:t,immutable:n,onChange:function(e){o(Pw(Pw({},function(e,t){return t?kb(kb({},e),Ob()(t,Eb)):gr()(e,Eb)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,St.c)(e.matchAll(Sb(/([\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 kb(kb({},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?f:p}})}),(0,Ae.jsx)(kw,{children:(0,Ae.jsx)(vw,{value:m,onChange:function(e){o(Pw(Pw({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Dw,jw=(0,f.lazy)((function(){return s.e(216).then(s.bind(s,6740))})),_w=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=e.options;if(r)return(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var a=i||{},c=a.contentLang,s=a.defaultLinkTarget,u=a.ckEditorConfig;return(0,Ae.jsx)(f.Suspense,{fallback:Dw||(Dw=(0,Ae.jsx)("i",{})),children:(0,Ae.jsx)(jw,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:c,defaultLinkTarget:s,ckEditorConfig:u})})};_w.defaultProps={value:""};const Cw=_w;var Tw,Iw;function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Aw=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,c=function(e){return function(t){return t[e]}},s=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,Ae.jsxs)(Ln.cp.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Nw(Nw({},r),{},(0,Ie.c)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,Ie.c)({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},f={value:r.city||"",onChange:u("city"),disabled:i};return(0,Ae.jsx)(Dr,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ae.jsxs)($r,{immutable:i,name:a,ref:u,children:[(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(Tw||(Tw=(0,Ae.jsx)(Ln.cp.Span,{children:"/"}))),(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:c("city"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ae.jsxs)(Br,{children:[n.isLoading&&(Iw||(Iw=(0,Ae.jsx)(He,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ae.jsx)(Lr.cp,{href:qr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Lw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(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 Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Uw;const Ww=Ee.cp.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Uw||(Uw=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const Bw=function(e){var n=e.onChange,o=e.value,i=e.immutable,a=e.id,c=e.onLibLoaded,u=Kr()(e,"options.defaultCountry")||"CH",l=(0,f.useState)(null),d=(0,Ue.c)(l,2),p=d[0],m=d[1],g=h().createRef();(0,f.useEffect)((function(){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.e(8).then(s.bind(s,40460));case 2:t=e.sent,m(t),c&&c();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[c]);var v=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},y=o&&null!=p&&p.AsYouType?new p.AsYouType(u).input(o):o||"";return(0,Ae.jsxs)(Hr,{immutable:i,children:[(0,Ae.jsx)(Ww,{disabled:i||!p,id:a,name,onChange:function(e){var t=e.target.value,r=p?p.parseNumber(t,u):t,i=yr()(r)?new p.AsYouType(u).input(t).replace(/\s/g,""):p.formatNumber(r,"E.164");n(i);var a=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(u).input(t),o=new p.AsYouType(u).input(e),i=v(r,n),a=v(o,n)-i;window.requestAnimationFrame(function(){var e=n+a;this.setSelectionRange(e,e)}.bind(g.current))}}(t,o,a)},immutable:i||!p,ref:g,value:y}),y&&(0,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:"tel:".concat(o),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vw=function(e){return e.map((function(e){return Ob()(e,["key","display"])}))};const qw=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,Ae.jsx)(mg,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=i.options.map((function(e){return Yw(Yw({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Vw(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Vw(i.options)})};function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Kw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function $w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};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}const Zw=function(e){return(0,Ae.jsx)(mg,function(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,Ie.c)(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}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Jw=Ke.Debouncer((function(e){return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(vb,{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 eO,tO,nO,rO,oO,iO=s(57292),aO=Ee.cp.div.withConfig({displayName:"StyledTermsEdit"})(eO||(eO=(0,Se.c)(["\n margin: "," 0;\n display: flex;\n"])),De.aU.space(-1.4)),cO=Ee.cp.input.withConfig({displayName:"StyledCheckbox"})(tO||(tO=(0,Se.c)(["\n margin-right: ",";\n"])),De.aU.space(-1.5)),sO=(0,Ee.gV)(nO||(nO=(0,Se.c)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),De.Il.color("secondary"),De.Il.color("secondaryLight"),De.Il.color("secondary")),uO=Ee.cp.a.withConfig({displayName:"StyledTermsLink"})(rO||(rO=(0,Se.c)(["\n ","\n"])),sO),lO=(0,Ee.cp)(xg).withConfig({displayName:"StyledHtmlFormatter"})(oO||(oO=(0,Se.c)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),sO);const dO=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,c=e.id,s=e.immutable,u=(0,f.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:iO.c.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,f.useCallback)((function(){return o(null)}),[o]),d=(0,f.useCallback)((function(e){return o(u(e))}),[o,u]),p=(0,f.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,f.useEffect)((function(){n()}),[]),(0,f.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!s||d(!1)}),[r,i,s,d]);var h=(null==r?void 0:r.checkbox)&&(0,Ae.jsx)(cO,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return p(e.target.checked)},id:c}),m=(null==r?void 0:r.link)&&(0,Ae.jsx)(uO,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ae.jsx)(lO,{value:r.label,breakWords:!0})});return!s&&(0,Ae.jsxs)(aO,{children:[h,m||(0,Ae.jsx)(lO,{value:null==r?void 0:r.label,breakWords:!0})]})};const pO=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var fO,hO,mO,gO=(0,Ee.gV)(fO||(fO=(0,Se.c)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Ur),vO=Ee.cp.div.withConfig({displayName:"StyledSizeWrapper"})(hO||(hO=(0,Se.c)(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),gO),yO=Ee.cp.textarea.withConfig({displayName:"StyledTextarea"})(mO||(mO=(0,Se.c)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),gO,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?De.aU.space(-1.2):"0"}));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,Ie.c)(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}const OO=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,c=(0,f.useState)(t),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=!pO(),p=pO(),h=(0,f.useCallback)(ro()(l,500,{trailing:!0}),[]);return(0,f.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ae.jsx)(vO,wO(wO({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ae.jsx)(yO,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:p})}))};const xO=Ke.Debouncer((function(e){return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(OO,{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 kO;const SO=Ee.cp.input.withConfig({displayName:"StyledTimeEdit"})(kO||(kO=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);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 EO(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,Ie.c)(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}const DO=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=av(n,t),c=a.inputProps,s=a.clearButtonProps,u=n&&!r;return(0,Ae.jsxs)(Hr,{immutable:r,children:[(0,Ae.jsx)(SO,EO({type:"text",disabled:r,id:o,immutable:r,name:i},c)),u&&(0,Ae.jsx)(Br,{children:(0,Ae.jsx)(bt,EO(EO({icon:"times"},s),{},{tabIndex:-1}))})]})};var jO;const _O=Ee.cp.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(jO||(jO=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const CO=Ke.Debouncer((function(e){return(0,Ae.jsxs)(Hr,{immutable:e.immutable,children:[(0,Ae.jsx)(_O,{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,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var MO={boolean:bg,"boolean-select":gg,choice:Tg,code:Fg,date:mv,datetime:vv,document:ub,duration:mb,email:yb,geosearch:Ew,html:Cw,integer:vw,address:Jr,location:Aw,"multi-remote":Lw,"multi-select":Hw,number:gw,phone:Bw,"pseudo-select":qw,remote:Kw,"search-filter":Qw,"single-select":Zw,string:Jw,terms:dO,text:xO,url:CO,time:DO};const NO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(MO[t]){var u=MO[t],l=IO(IO({},gr()(i,"onChange")),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,Ae.jsx)("div",IO(IO({},l),{},{"data-cy":"form-field",children:(0,Ae.jsx)(u,IO(IO({value:n,onChange:null==i?void 0:i.onChange},yr()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function AO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LO=function(e){return(0,Ae.jsx)(zr,{children:(0,Ae.jsx)(NO,RO({componentType:e.type},gr()(e,"type")))})};const FO=(0,Ee.QX)((function(e){return(0,Ae.jsx)(Ne.c,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const HO=function(e){var t=(0,p.useIntl)();return(0,Ae.jsx)(Ln.cp.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ae.jsx)(p.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var UO;const WO=(0,p.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),UO||(UO=(0,Ae.jsx)(Ln.cp.Span,{}));var o=Ul(r,"HH:mm");return(0,Ae.jsxs)(Ln.cp.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ae.jsx)(p.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var BO;function zO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?zO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const VO=function(e){var t=e.options||{},n=(0,Ae.jsxs)(Ae.Fragment,{children:[t.title&&(0,Ae.jsx)(Ln.cp.H5,{children:t.title}),(0,Ae.jsx)(xg,YO({},e))]});return"text"===t.mode?n:(0,Ae.jsx)(Ym,{content:n,isPlainHtml:!0,children:BO||(BO=(0,Ae.jsx)(Nm,{children:(0,Ae.jsx)(Ne.c,{icon:"question-circle"})}))})};const qO=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=Kr()(r,t.resourceKey,null);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Ym,{content:i?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(i)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ae.jsx)(Lr.cp,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ae.jsx)(Lr.cp,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:eb.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const GO=function(e){return(0,Ae.jsx)(cb,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const KO=function(e){var t=e.value,n=parseInt(t),r=Ef(n);return(0,Ae.jsx)(Ln.cp.Time,{dateTime:r,title:r,children:r})};const $O=function(e){return(0,Ae.jsx)(Lr.cp,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const QO=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JO=function(){return"; "};const ex=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,c=i.linkProps,s=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ae.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ae.jsx)(a.DetailLink,ZO(ZO({},c),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ae.jsx)(JO,{},"sep".concat(n)),t]})):null;return(0,Ae.jsx)(Ln.cp.Span,{breakWords:r,useTitle:o,children:s})};const tx=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ae.jsx)(p.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const nx=function(e){var t;return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ae.jsx)(p.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function rx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ox(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ix=(0,f.lazy)((function(){return Promise.all([s.e(8),s.e(570)]).then(s.bind(s,33992))}));const ax=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:"",children:(0,Ae.jsx)(ix,ox({},e))})};function cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ux=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle;t=ng(t);var i=(0,Ae.jsx)(Ln.cp.Span,{breakWords:r,useTitle:o,children:t.display}),a=n||{},c=a.tooltips,s=a.loadTooltip,u=a.navigationStrategy,l=a.linkProps,d=Kr()(c,t.key,null);return(null!=u&&u.DetailLink?(0,Ae.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ae.jsx)(u.DetailLink,sx(sx({},l),{},{entityKey:t.key,children:(0,Ae.jsx)(Ym,{content:d?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(d)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return s&&!d&&s(t.key)},children:i})})}))}):null)||i};const lx=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const dx=function(e){return e.breakWords?e.value.split("\n").map((function(t,n){return(0,Ae.jsx)(Ln.cp.P,{useTitle:e.useTitle,children:t},n)})):(0,Ae.jsx)(Ln.cp.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")})};var px=function(e,t){return parseInt(e.split(":")[t])||0};const fx=(0,p.injectIntl)((function(e){var t=e.value,n=(e.intl,px(t,0)),r=px(t,1),o=px(t,2),i=px(t,3),a=new Date(2e3,1,1,n,r,o,i),c=Ul(a,"HH:mm:ss.SSS"),s=Ul(a,"HH:mm");return(0,Ae.jsx)(Ln.cp.Time,{dateTime:c,title:s,children:s})}));const hx=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ae.jsx)(Lr.cp,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var mx,gx={boolean:FO,date:HO,datetime:WO,document:GO,"document-compact":qO,duration:KO,email:$O,html:xg,integer:QO,"multi-remote":ex,"multi-select":ex,number:tx,percent:nx,phone:ax,remote:ux,"single-select":ux,string:lx,text:dx,time:fx,url:hx,description:VO};const vx=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,c=void 0===a||a;if(gx[t]){var s=gx[t];return(0,Ae.jsx)(s,{value:n,options:r,breakWords:i,useTitle:c})}return console.log("No FormattedValue mapper defined for component type",t,n),mx||(mx=(0,Ae.jsx)("div",{}))};var yx;const bx=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle;return null==n||""===n?yx||(yx=(0,Ae.jsx)("span",{})):(0,Ae.jsx)(vx,{componentType:t,value:n,options:r,breakWords:o,useTitle:i})},wx=bx;var Ox="checked",xx="indeterminate",kx="unchecked";const Sx=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,f.useRef)(null);return(0,f.useLayoutEffect)((function(){i.current.indeterminate=t===xx,i.current.checked=t===Ox}),[t]),(0,Ae.jsx)("input",{ref:i,onChange:function(e){r(t===xx?kx:e.target.checked?Ox:kx)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},Px=Sx;var Ex;Ee.cp.div.withConfig({displayName:"StyledLayoutBox"})(Ex||(Ex=(0,Se.c)(["\n height: fit-content;\n margin-bottom: ",";\n"])),De.aU.space(.25));var Dx,jx=Ee.cp.div.withConfig({displayName:"StyledLayoutContainer"})(Dx||(Dx=(0,Se.c)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),De.aU.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(De.aU.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const _x=jx;var Cx=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,f.useRef)(null),i=(0,f.useState)(0),a=(0,Ue.c)(i,2),c=a[0],s=a[1],u=function(){s(o.current.offsetWidth)};return(0,f.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,Ae.jsx)(_x,{ref:o,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};Cx.defaultProps={minBoxWidth:250};var Tx,Ix,Mx,Nx,Ax=s(93896),Rx=(0,Ee.xZ)(Tx||(Tx=(0,Se.c)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Lx=(0,Ee.gV)(Ix||(Ix=(0,Se.c)(["\n animation: "," 400ms ease-in-out both;\n"])),Rx),Fx=Ee.cp.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Mx||(Mx=(0,Se.c)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),De.aU.space(-1),Lx,Ax.G0,De.aU.space(-1));const Hx=Ee.cp.div.withConfig({displayName:"StyledLoadMask"})(Nx||(Nx=(0,Se.c)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ux;const Wx=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,f.useState)(!1),c=(0,Ue.c)(a,2),s=c[0],u=c[1],l=(0,f.useState)(!0),d=(0,Ue.c)(l,2),p=d[0],h=d[1];(0,f.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,Ae.jsx)(Hx,{className:i,children:m?r:(0,Ae.jsxs)(Fx,{children:[Ux||(Ux=(0,Ae.jsx)(He,{size:"30px"},"loading-spinner")),o&&(0,Ae.jsx)(Ln.cp.Span,{children:o},"loadingText")]})})};var Bx,zx=Ee.cp.div.withConfig({displayName:"StyledPanel"})(Bx||(Bx=(0,Se.c)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),De.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),De.Il.color("borderLight"),De.Il.radii("form"));const Yx=zx;const Vx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,c=e.isToggleable,s=void 0===c||c,u=e.onToggle,l=(0,f.useState)(a),d=(0,Ue.c)(l,2),p=d[0],m=d[1],g="boolean"==typeof o,v=function(){s&&(g?"function"==typeof u&&u(!o):m(!p))};return(0,Ae.jsx)(Yx,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isFramed:r,isOpen:g?o:p,isToggleable:s,toggleOpenState:v})}))})};var qx,Gx=Ee.cp.div.withConfig({displayName:"StyledPanelBody"})(qx||(qx=(0,Se.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?De.aU.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Kx=Gx;const $x=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ae.jsx)(Kx,{isFramed:n,isOpen:r,children:(0,Ae.jsx)("div",{children:t})})};const Qx=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,f.useState)(t),o=(0,Ue.c)(r,2),i=o[0],a=o[1];return(0,Ae.jsx)(Ae.Fragment,{children:h().Children.map(n,(function(e,t){return h().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Xx;const Zx=Ee.cp.div.withConfig({displayName:"StyledPanelGroup"})(Xx||(Xx=(0,Se.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),De.aU.space(0),Yx,De.aU.space(-1));function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ek(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const tk=function(e){return(0,Ae.jsx)(Zx,{children:(0,Ae.jsx)(Qx,ek({},e))})};var nk,rk,ok,ik,ak,ck,sk,uk="1px",lk=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(nk||(nk=(0,Se.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),De.aU.font(1),De.Il.color("text"),!De.iY&&(0,Ee.gV)(rk||(rk=(0,Se.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),De.Il.color("secondaryLight"))),dk=Ee.cp.div.withConfig({displayName:"StyledPanelHeader"})(ok||(ok=(0,Se.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),De.Il.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,Ee.gV)(ik||(ik=(0,Se.c)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),De.Il.radii("form"),uk,De.Il.radii("form"),uk):(0,Ee.gV)(ak||(ak=(0,Se.c)(["\n calc("," - ",")\n "])),De.Il.radii("form"),uk)}),(function(e){return e.isFramed?(0,Ee.gV)(ck||(ck=(0,Se.c)(["\n "," ","\n "])),De.aU.space(-1.7),De.aU.space(-.375)):0}),!De.iY&&(0,Ee.gV)(sk||(sk=(0,Se.c)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),lk),(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(uk,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(uk,";\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(uk,";\n }\n ")}(e)}));const pk=dk;var fk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,c=e.options;return(0,Ae.jsxs)(pk,{isFramed:n,isOpen:r,onClick:a,children:[(0,Ae.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ae.jsx)(lk,{children:(0,Ae.jsx)(Ne.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};fk.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const hk={Body:$x,Group:tk,Header:fk,Wrapper:Vx};var mk,gk=Ee.cp.div.withConfig({displayName:"StyledPanel"})(mk||(mk=(0,Se.c)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),De.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),De.Il.color("borderLight"),De.Il.radii("form"));const vk=gk;const yk=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,f.useState)(i),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,Ae.jsx)(vk,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isOpen:s,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!s)}})}))})};var bk,wk,Ok=Ee.cp.div.withConfig({displayName:"StyledPanelBody"})(bk||(bk=(0,Se.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Ee.gV)(wk||(wk=(0,Se.c)(["\n "," "," "," ","\n "])),De.aU.space(-1),De.aU.space(.2),De.aU.space(.2),De.aU.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const xk=Ok;const kk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ae.jsx)(xk,{isFramed:n,isOpen:r,children:(0,Ae.jsx)("div",{children:t})})};var Sk;const Pk=Ee.cp.div.withConfig({displayName:"StyledPanelGroup"})(Sk||(Sk=(0,Se.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),De.aU.space(0),vk,De.aU.space(-1));function Ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ek(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jk=function(e){return(0,Ae.jsx)(Pk,{children:(0,Ae.jsx)(Qx,Dk({},e))})};var _k,Ck,Tk,Ik="1px",Mk=Ee.cp.div.withConfig({displayName:"StyledPanelHeader"})(_k||(_k=(0,Se.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),De.Il.color("paper"),De.Il.radii("form"),Ik,De.Il.radii("form"),Ik,(function(e){return e.isFramed?De.aU.space(.2):0}),De.Il.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(Ik,";\n }\n ")}(e)})),Nk=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(Ck||(Ck=(0,Se.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),De.aU.font(1),De.Il.color("text"),!De.iY&&(0,Ee.gV)(Tk||(Tk=(0,Se.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),De.Il.color("secondaryLight")));const Ak=Mk;var Rk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,c=e.options;return(0,Ae.jsxs)(Ak,{isFramed:n,isOpen:r,onClick:o?a:function(){},children:[(0,Ae.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ae.jsx)(Nk,{children:(0,Ae.jsx)(Ne.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};Rk.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const Lk={Body:kk,Group:jk,Header:Rk,Wrapper:yk};var Fk={Body:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Body),iO.c.EmbedType.widget,Lk.Body),Group:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Group),iO.c.EmbedType.widget,Lk.Group),Header:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Header),iO.c.EmbedType.widget,Lk.Header),Wrapper:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Wrapper),iO.c.EmbedType.widget,Lk.Wrapper)};iO.c.embedStrategyFactory({mapping:Fk.Body}),iO.c.embedStrategyFactory({mapping:Fk.Group}),iO.c.embedStrategyFactory({mapping:Fk.Header}),iO.c.embedStrategyFactory({mapping:Fk.Wrapper});var Hk;Ee.cp.div.withConfig({displayName:"StyledButtonWrapper"})(Hk||(Hk=(0,Se.c)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),De.aU.space(0),De.Il.color("paper"));s(18284);var Uk=new AbortController,Wk=!1;window.addEventListener("beforeunload",(function(e){Wk?(e.preventDefault(),e.returnValue=""):Uk.abort()})),window.addEventListener("pagehide",(function(){Uk.signal.aborted||Uk.abort()}));var Bk=function(e){return"@@redux-saga/"+e},zk=Bk("CANCEL_PROMISE"),Yk=Bk("CHANNEL_END"),Vk=Bk("IO"),qk=Bk("MATCH"),Gk=Bk("MULTICAST"),Kk=Bk("SAGA_ACTION"),$k=Bk("SELF_CANCELLATION"),Qk=Bk("TASK"),Xk=Bk("TASK_CANCEL"),Zk=Bk("TERMINATE"),Jk=Bk("LOCATION");function eS(){return eS=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},eS.apply(this,arguments)}var tS=function(e){return null==e},nS=function(e){return null!=e},rS=function(e){return"function"==typeof e},oS=function(e){return"string"==typeof e},iS=Array.isArray,aS=function(e){return e&&rS(e.then)},cS=function(e){return e&&rS(e.next)&&rS(e.throw)},sS=function e(t){return t&&(oS(t)||dS(t)||rS(t)||iS(t)&&t.every(e))},uS=function(e){return e&&rS(e.take)&&rS(e.close)},lS=function(e){return rS(e)&&e.hasOwnProperty("toString")},dS=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},pS=function(e){return uS(e)&&e[Gk]};var fS=function(e){return function(){return e}},hS=fS(!0),mS=function(){};var gS=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var vS=function(e,t){eS(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function yS(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function bS(e){var t=!1;return function(){t||(t=!0,e())}}var wS=function(e){throw e},OS=function(e){return{value:e,done:!0}};function xS(e,t,n){void 0===t&&(t=wS),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:OS,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function kS(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var SS=function(e){return Array.apply(null,new Array(e))},PS=function(e){return function(t){return e(Object.defineProperty(t,Kk,{value:!0}))}},ES=function(e){return e===Zk},DS=function(e){return e===Xk},jS=function(e){return ES(e)||DS(e)};function _S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=iS(e)?SS(r):{},c={};return n.forEach((function(e){var n=function(n,c){o||(c||jS(n)?(t.cancel(),t(n,c)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=mS,c[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return c[e].cancel()})))},c}function CS(e){return{name:e.name||"anonymous",location:TS(e)}}function TS(e){return e[Jk]}function IS(){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 MS={isEmpty:hS,put:mS,take:mS};function NS(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var u;if(r<e)a(c);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=c,i=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(c)}},take:c,flush:s}}var AS=function(){return MS},RS=function(e){return NS(e,4)},LS="TAKE",FS="PUT",HS="ALL",US="RACE",WS="CALL",BS="CPS",zS="FORK",YS="JOIN",VS="CANCEL",qS="SELECT",GS="ACTION_CHANNEL",KS="CANCELLED",$S="FLUSH",QS="GET_CONTEXT",XS="SET_CONTEXT",ZS=function(e,t){var n;return(n={})[Vk]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function JS(e,t){return void 0===e&&(e="*"),sS(e)?(nS(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),ZS(LS,{pattern:e})):pS(e)&&nS(t)&&sS(t)?ZS(LS,{channel:e,pattern:t}):uS(e)?(nS(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),ZS(LS,{channel:e})):void 0}function eP(e,t){return tS(t)&&(t=e,e=void 0),ZS(FS,{channel:e,action:t})}function tP(e){var t=ZS(HS,e);return t.combinator=!0,t}function nP(e,t){var n,r=null;return rS(e)?n=e:(iS(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&oS(n)&&rS(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function rP(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 ZS(WS,nP(e,n))}function oP(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 ZS(zS,nP(e,n))}function iP(e){void 0===e&&(e=gS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ZS(qS,{selector:e,args:n})}var aP=function(e){return{done:!0,value:e}},cP={};function sP(e){return uS(e)?"channel":lS(e)?String(e):rS(e)?e.name:String(e)}function uP(e,t,n){var r,o,i,a=t;function c(t,n){if(a===cP)return aP(t);if(n&&!o)throw a=cP,n;r&&r(t);var c=n?e[o](n):e[a]();return a=c.nextState,i=c.effect,r=c.stateUpdater,o=c.errorState,a===cP?aP(t):i}return xS(c,(function(e){return c(null,e)}),n)}function lP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:JS(e)},c=function(e){return i=e};return uP({q1:function(){return{nextState:"q2",effect:a,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:oP.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+sP(e)+", "+t.name+")")}function dP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,c={done:!1,value:JS(e)},s=function(e){return{done:!1,value:oP.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=$k),ZS(VS,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return uP({q1:function(){return{nextState:"q2",effect:c,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:s(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:s(a),stateUpdater:l}}},"q1","takeLatest("+sP(e)+", "+t.name+")")}function pP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oP.apply(void 0,[lP,e,t].concat(r))}function fP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oP.apply(void 0,[dP,e,t].concat(r))}var hP=function(e,t,n){return r().mark((function o(){var i,a,s,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),s=0;s<i;s++)a[s]=u[s];case 1:return r.prev=2,r.next=5,rP.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Uk.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,eP(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:c.c.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const mP={autoRestartSaga:hP,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tP(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(hP(t,null,n)))},abortController:Uk,deactivatePreventFromLeaving:function(){Wk=!1},activatePreventFromLeaving:function(){Wk=!0}};ke().node,ke().bool,ke().string,ke().bool,ke().objectOf(ke().arrayOf(ke().oneOfType([ke().node,ke().string]))),ke().bool,ke().bool,ke().string,ke().string,ke().oneOf(["inside","outside-responsive","outside"]),ke().bool,ke().string,ke().bool,ke().string,ke().bool;var gP,vP,yP,bP=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.BASE,De.Il.color("text")),De.Wn.condition.DANGER,De.Il.color("signal.danger")),De.Wn.condition.SUCCESS,De.Il.color("signal.success")),De.Wn.condition.WARNING,De.Il.color("signal.warning")),De.Wn.condition.INFO,De.Il.color("signal.info")),wP=(0,Ee.cp)(Ln.KM).withConfig({displayName:"StyledSignalList"})(gP||(gP=(0,Se.c)(["\n && {\n list-style-type: none;\n }\n"]))),OP=Ee.cp.span.withConfig({displayName:"StyledSignalListIcon"})(vP||(vP=(0,Se.c)(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),xP=(0,Ee.cp)(Ln.cP).withConfig({displayName:"StyledSignalListItem"})(yP||(yP=(0,Se.c)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return bP[t]}(e)}));const kP=function(e){return(0,Ae.jsx)(wP,{as:"ul",children:h().Children.map(e.children,(function(e){return h().cloneElement(e)}))})};var SP,PP=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.BASE,!1),De.Wn.condition.DANGER,"times"),De.Wn.condition.SUCCESS,"check"),De.Wn.condition.WARNING,"exclamation-triangle"),De.Wn.condition.INFO,"info"),EP=function(e){var t=PP[e.condition];return t?(0,Ae.jsx)(Ne.c,{icon:t,position:De.Wn.position.SOLE}):SP||(SP=(0,Ae.jsx)("i",{children:"•"}))},DP=function(e){return(0,Ae.jsxs)(xP,{condition:e.condition,children:[(0,Ae.jsx)(OP,{children:EP(e)}),e.label,h().Children.map(e.children,(function(e){return h().cloneElement(e)}))]})};DP.defaultProps={condition:De.Wn.condition.BASE};const jP={List:kP,Item:DP};const _P=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,St.c)(e.error[n]))})),(0,Ae.jsx)(jP.List,{children:t.map((function(e,t){return(0,Ae.jsx)(jP.Item,{condition:"danger",label:e},t)}))})};var CP,TP,IP,MP,NP,AP,RP,LP,FP,HP,UP,WP,BP,zP,YP="1.1px",VP=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},qP=Ee.cp.label.withConfig({displayName:"StyledStatedValueLabel"})(CP||(CP=(0,Se.c)(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,De.Gj)({lineHeight:De.Il.lineHeight("dense")}),De.Il.color("paper"),(function(e){return VP(e)}),(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(TP||(TP=(0,Se.c)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),De.aU.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(IP||(IP=(0,Se.c)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),De.aU.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":De.aU.space(-1.8)}))}),(function(e){return e.styles})),GP=Ee.cp.div.withConfig({displayName:"StyledInputArea"})(MP||(MP=(0,Se.c)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(NP||(NP=(0,Se.c)(["\n width: auto;\n "])))})),KP=Ee.cp.div.withConfig({displayName:"StyledStatedValueBox"})(AP||(AP=(0,Se.c)(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),YP,(function(e){return De.mA[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),De.Il.radii("form"),De.aU.space(-2.5),De.aU.space(-1.5),(function(e){return!e.immutable&&(0,De.i)(e)}),(function(e){return VP(e)}),(0,De.Gj)(),Rm,(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(RP||(RP=(0,Se.c)(["\n padding: "," "," "," ",";\n "])),De.aU.space(-1),De.aU.space(-1.7),De.aU.space(-2),De.aU.space(-1))}),(function(e){return e.styles})),$P=Ee.cp.p.withConfig({displayName:"StyledStatedValueDescription"})(LP||(LP=(0,Se.c)(["\n &&& {\n ","\n }\n"])),(0,De.Gj)({fontSize:De.aU.font(-1)})),QP=Ee.cp.div.withConfig({displayName:"StyledStatedValueError"})(FP||(FP=(0,Se.c)([""]))),XP=Ee.cp.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(HP||(HP=(0,Se.c)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),De.aU.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(UP||(UP=(0,Se.c)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),De.aU.space(-1.5))})),ZP=Ee.cp.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(WP||(WP=(0,Se.c)(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),De.aU.space(-1.5),KP,$P,QP,De.aU.space(-2),$P,De.aU.space(-1),YP,(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(BP||(BP=(0,Se.c)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(zP||(zP=(0,Se.c)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JP(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const tE=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,d=e.label,p=e.mandatory,f=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&f?", ".concat(f):"",O="".concat(rg(d)).concat(w),x=g||function(e,t,n,r){return t?De.Wn.condition.DANGER:e?De.Wn.condition.INFO:n&&!r?De.Wn.condition.WARNING:void 0}(a,b,p,u),k={__html:"".concat(Rn.sanitizeHtml(d)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,Ae.jsx)(Dr,{children:function(e){var l=e.getRef;return(0,Ae.jsx)(XP,{labelPosition:v,children:(0,Ae.jsxs)(ZP,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ae.jsx)(qP,eE(eE({},S),{},{hasValue:u,dirty:a,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ae.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ae.jsxs)(GP,{labelPosition:v,children:[(0,Ae.jsx)(KP,{hasValue:u,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ae.jsx)(QP,{children:(0,Ae.jsx)(_P,{error:s})}))),i&&(r||(r=(0,Ae.jsx)($P,{children:i})))]})]})})}})};var nE,rE,oE=function(e){return(0,Ee.gV)(nE||(nE=(0,Se.c)(["\n color: ",";\n font-weight: ",";\n"])),De.Ml[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?De.Il.fontWeight("bold"):De.Il.fontWeight("regular")}))},iE=function(){return(0,Ee.gV)(rE||(rE=(0,Se.c)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},aE=["labelPosition"];function cE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sE=function(e){var t=e.labelPosition,n=(0,Me.c)(e,aE);return(0,Ae.jsx)(tE,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:oE,valueStyles:iE},labelPosition:t||"outside-responsive"},n))};var uE,lE,dE,pE,fE,hE,mE=function(e){return e.signal?"signal":"shade2"},gE=function(){return(0,Ee.gV)(uE||(uE=(0,Se.c)(["\n align-items: flex-start;\n"])))},vE=function(e){return(0,Ee.gV)(lE||(lE=(0,Se.c)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Ee.gV)(dE||(dE=(0,Se.c)(["\n ","\n "])),De.aU.space(-1.8)):(0,Ee.gV)(pE||(pE=(0,Se.c)(["\n ","\n "])),De.aU.space(.1))}),De.Ml[mE(e)](e))},yE=function(){return(0,Ee.gV)(fE||(fE=(0,Se.c)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Ee.gV)(hE||(hE=(0,Se.c)(["\n ","\n "])),De.aU.space(-1)):void 0}),(function(e){return e.immutable&&0}))},bE=["labelPosition"];function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const OE=function(e){var t=e.labelPosition,n=(0,Me.c)(e,bE);return(0,Ae.jsx)(tE,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:gE,labelStyles:vE,valueStyles:yE},labelPosition:t||"outside-responsive"},n))};var xE=(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,sE),iO.c.EmbedType.widget,OE);const kE=iO.c.embedStrategyFactory({mapping:xE});var SE,PE,EE,DE,jE=Ee.cp.span.withConfig({displayName:"StyledSearchIconWrapper"})(SE||(SE=(0,Se.c)(["\n margin-right: ",";\n color: ",";\n"])),De.aU.space(-.8),De.Il.color("text")),_E=Ee.cp.div.withConfig({displayName:"StyledSearchBox"})(PE||(PE=(0,Se.c)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),CE=Ee.cp.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(EE||(EE=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur),TE=h().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,i=e.placeholder,a=(0,f.useState)(n||""),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,Ae.jsx)(_E,{children:(0,Ae.jsx)(kE,{hasValue:Boolean(s),labelPosition:"inside",children:(0,Ae.jsxs)(Hr,{children:[DE||(DE=(0,Ae.jsx)(jE,{children:(0,Ae.jsx)(Ne.c,{icon:"search"})})),(0,Ae.jsx)(CE,{"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:s,"aria-label":i,placeholder:i}),(null==s?void 0:s.length)>0&&(0,Ae.jsx)(bt,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));TE.defaultProps={debounce:200,minInputLength:3};const IE=Ke.Debouncer(TE,100,"onSearch");var ME,NE=[De.Wn.condition.INFO,De.Wn.condition.DANGER,De.Wn.condition.SUCCESS,De.Wn.condition.WARNING],AE=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.DANGER,De.Il.color("signal.danger")),De.Wn.condition.SUCCESS,De.Il.color("signal.success")),De.Wn.condition.WARNING,De.Il.color("signal.warning")),De.Wn.condition.INFO,De.Il.color("signal.info")),RE=Ee.cp.div.withConfig({displayName:"StyledSignalBox"})(ME||(ME=(0,Se.c)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: #fff;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return AE[e.condition]||AE[De.Wn.condition.INFO]}(e)}),De.aU.space(-1),De.aU.space(-1));RE.propTypes={condition:De.Wn.oneOfPropTypeAndCompletelyMapped(NE,AE)};var LE=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,Ae.jsxs)(RE,{condition:t,children:[n&&(0,Ae.jsx)(Ln.cp.H5,{children:n}),h().Children.map(r,(function(e){return h().cloneElement(e)})),o&&(0,Ae.jsx)(Ln.cp.Small,{children:o})]})};LE.defaultProps={condition:De.Wn.condition.BASE};var FE=function(e){return(0,Ae.jsxs)(Ln.cp.Span,{children:[e.some," / ",e.of]})};FE.defaultProps={some:0};function HE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WE={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},BE={Top:"Top",Bottom:"Bottom"};const zE=function(e){var t=(0,f.useState)(WE),n=(0,Ue.c)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,f.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return UE(UE({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(WE),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!Xm()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return UE(UE({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(i){var t=e.clientY-s>0?BE.Bottom:BE.Top;return o((function(e){return UE(UE({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,c),o(WE),t.stopPropagation())}}}),[a,i,c,s,e]),dndState:(0,f.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,dropPosition:c,offset:s}}),[a,i,c,s])}};var YE,VE,qE,GE,KE,$E,QE,XE=Ee.cp.div.withConfig({displayName:"StyledColumnPickerWrapper"})(YE||(YE=(0,Se.c)([""]))),ZE=Ee.cp.div.withConfig({displayName:"StyledControlsWrapper"})(VE||(VE=(0,Se.c)(["\n margin-top: ",";\n"])),De.aU.space(.7)),JE=Ee.cp.ul.withConfig({displayName:"StyledUl"})(qE||(qE=(0,Se.c)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\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"])),De.aU.space(-.5),Ln.wn),eD=Ee.cp.input.withConfig({displayName:"StyledCheckbox"})(GE||(GE=(0,Se.c)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),De.aU.space(-1)),tD=Ee.cp.span.withConfig({displayName:"StyledId"})(KE||(KE=(0,Se.c)(["\n color: ",";\n font-style: italic;\n"])),De.Il.color("text")),nD=(0,Ee.cp)(Ln.cP).withConfig({displayName:"StyledItem"})($E||($E=(0,Se.c)(["\n display: flex;\n padding: "," "," "," 0;\n border-right: ",";\n ","\n"])),De.aU.space(-2),De.aU.space(-2),De.aU.space(-2),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"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 ")})),rD=Ee.cp.span.withConfig({displayName:"StyledNumber"})(QE||(QE=(0,Se.c)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),De.aU.space(-1),De.Il.color("text"),De.aU.font(0));function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aD=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]}))},cD=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const sD=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=aD(r),c=(0,f.useState)(null),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=(0,f.useCallback)((function(e,t){if(e!==t){var n=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==n})).reduce((function(e,r){return[].concat((0,St.c)(e),[r],(0,St.c)(r.id===t?[n]:[]))}),[])}))}}),[a,o]),p=zE(d),h=p.dndEvents,m=p.dndState,g=(0,f.useMemo)((function(){return cD(a,u)}),[a,u]),v=g.some((function(e){return e.hidden})),y=(0,f.useMemo)((function(){return g.map((function(e,n){var r=m.currentlyDragOver===e.id&&m.currentlyDragging!==e.id;return(0,Ae.jsxs)(nD,iD(iD({draggable:t,isDraggedOver:r},t&&iD({},h(e.id))),{},{children:[(0,Ae.jsx)(eD,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return aD(n.map((function(n){return n.id===e.id?iD(iD({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ae.jsxs)(Ln.cp.Label,{for:e.id,children:[(0,Ae.jsxs)(rD,{children:[n+1,"."]}),e.label?(0,Ae.jsx)("span",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(e.label)}}):(0,Ae.jsx)(tD,{children:e.id})]})]}),e.id)}))}),[m,t,h,g,o]);return(0,Ae.jsxs)(XE,{children:[(0,Ae.jsx)(IE,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ae.jsxs)(ZE,{children:[(0,Ae.jsx)(eD,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=cD(e,u);return aD((0,St.c)(e.map((function(e){return iD(iD({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!v}),(0,Ae.jsx)(Ln.cp.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ae.jsx)(JE,{children:y})]})};(0,p.injectIntl)(sD);function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dD="yyyy-MM-dd",pD=function(e){return jp(e,dD)?Dp(e,dD,new Date):jp(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||jp(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?Hu(new Date(e)):null},fD={datetime:{type:"date",toRange:function(e){var t=e?pD(e).toISOString():null,n=e?function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(pD(e),1).toISOString():null;return{from:t,to:n,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?Ul(new Date(e.from),dD):null!=e&&e.to?Ul(new Date(e.to),dD):null},getToOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const hD=fD;var mD,gD,vD,yD,bD,wD=Ee.cp.div.withConfig({displayName:"StyledIconWrapper"})(mD||(mD=(0,Se.c)(["\n font-size: ",";\n color: ",";\n"])),De.aU.font(-2.7),De.Il.color("text")),OD=Ee.cp.div.withConfig({displayName:"StyledRange"})(gD||(gD=(0,Se.c)(["\n display: flex;\n align-items: baseline;\n"]))),xD=Ee.cp.div.withConfig({displayName:"StyledInput"})(vD||(vD=(0,Se.c)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),kD=(0,Ee.cp)(bt).withConfig({displayName:"StyledBall"})(yD||(yD=(0,Se.c)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ED=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,c=e.toText,s=hD[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,f.useRef)(t);l.current=t;var d=(0,f.useMemo)((function(){return PD(PD({},n),{},{onChange:n.onChange})}),[n]),p={onChange:function(e){n.onChange(PD(PD({},l.current),{},{to:e}))}},h={onChange:function(e){n.onChange(PD(PD({},l.current),{},{from:e}))}},m=(null==s?void 0:s.type)||o,g=(0,Ae.jsx)(LO,PD(PD({type:m},gr()(e,["type"])),{},{events:d})),v=(0,Ae.jsxs)(xD,{children:[(0,Ae.jsx)(LO,PD(PD({},e),{},{options:function(e,t){return null!=s&&s.getFromOptions?s.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:h,placeholder:a})),bD||(bD=(0,Ae.jsx)(wD,{children:(0,Ae.jsx)(Ne.c,{icon:"horizontal-rule"})})),(0,Ae.jsx)(LO,PD(PD({},e),{},{options:function(e,t){return null!=s&&s.getToOptions?s.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:p,placeholder:c}))]});return(0,Ae.jsxs)(OD,{children:[u?v:g,(0,Ae.jsx)(kD,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var DD,jD,_D,CD,TD,ID=Ee.cp.div.withConfig({displayName:"StyledBurgerButton"})(DD||(DD=(0,Se.c)(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),De.Il.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Ee.gV)(jD||(jD=(0,Se.c)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,p.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,Ae.jsxs)(ID,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[_D||(_D=(0,Ae.jsx)("span",{})),CD||(CD=(0,Ae.jsx)("span",{})),TD||(TD=(0,Ae.jsx)("span",{}))]})}));var MD,ND,AD=Ee.cp.div.withConfig({displayName:"StyledPagination"})(MD||(MD=(0,Se.c)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),De.aU.space(-1),De.aU.space(-1.4)),RD=(0,Ee.cp)(dt).withConfig({displayName:"StyledPaginationButton"})(ND||(ND=(0,Se.c)(["\n padding: "," ",";\n"])),De.aU.space(-2),De.aU.space(-.5));const LD=(0,p.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,c=e.children,s=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,Ae.jsxs)(AD,{children:[(0,Ae.jsxs)(hr,{children:[(0,Ae.jsx)(RD,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,Ae.jsx)(RD,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,Ae.jsx)(RD,{disabled:r>=s,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,Ae.jsx)(RD,{disabled:r>=s,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(s)}})]}),t>0&&(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)(p.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),c]})})),FD=LD;var HD;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}i(p.length==d);const f=8*t.getNumDataCodewords(l,n);i(p.length<=f),r(0,Math.min(4,f-p.length),p),r(0,(8-p.length%8)%8,p),i(p.length%8==0);for(let e=236;p.length<f;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<s?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<s&&o.push(0),l.push(o.concat(i))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=s)&&p.push(t[e])}));return i(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][a]&&n<8*e.length&&(this.modules[c][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=a;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(HD||(HD={})),(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={}))})(HD||(HD={})),(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={}))})(HD||(HD={}));var UD=HD;
|
|
44
|
+
*/var r=n(69624);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!c){if(c=!0,i=e,e=r(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,l]);var f=i(e,d[0],d[1]);return c((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},36728:(e,t,n)=>{"use strict";e.exports=n(57556)},2062:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&a.test(e)},s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function u(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}const l=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=c[e];return o}return u(c)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return f((a=f(f(t,e),f(r,i)))<<(c=o)|a>>>32-c,n);var a,c}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,c=r,s=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=f(n,a),r=f(r,c),o=f(o,s),i=f(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=x(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],c=n[2],s=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=x(o,5)+O(n,a,c,s)+u+t[n]+r[e]>>>0;u=s,s=c,c=x(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+c>>>0,n[3]=n[3]+s>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},69624:e=>{"use strict";e.exports=t},42416:t=>{"use strict";t.exports=e},6636:(e,t,n)=>{var r=n(59848).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),c=new j(r||[]);return a(i,"_invoke",{value:S(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function v(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,s)&&(y=w);var O=v.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,c,s){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function _(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return g.prototype=v,a(O,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(O),d(O,l,"Generator"),d(O,s,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},33248:(e,t,n)=>{var r=n(6636)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},82840:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},52376:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},31496:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))!s.call(e,c)&&c!==n&&o(e,c,{get:()=>t[c],enumerable:!(r=i(t,c))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(c(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>ve,ReactReduxContext:()=>y,batch:()=>xe,connect:()=>ge,createDispatchHook:()=>we,createSelectorHook:()=>S,createStoreHook:()=>ye,shallowEqual:()=>J,useDispatch:()=>Oe,useSelector:()=>P,useStore:()=>be}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var p=l(n(69624)),f=n(36728),h=l(n(69624)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:c,stabilityCheck:s,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,s,o.stabilityCheck])),d=x(a.addNestedSub,i.getState,c||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var P=S(),E=Symbol.for("react.element"),D=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),I=Symbol.for("react.context"),M=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),N),U=L;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case E:{let n=e.type;switch(n){case j:case C:case _:case A:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case I:case N:case F:case L:case T:return e;default:return t}}}}case D:return t}}}(e)===L}function B(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){let h=!i(f,s),m=!o(p,c,f,s);return c=p,s=f,h&&m?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?function(){let t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):function(o,i){return c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d}(o,i)}}function z(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Y(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function V(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Y(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Y(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function Q(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){c();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var X=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function J(e,t){if(Z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Z(e[n[r]],t[n[r]]))return!1;return!0}var ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},re={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[U]:ne};function oe(e){return W(e)?ne:re[e.$$typeof]||ee}var ie=Object.defineProperty,ae=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ue=Object.getPrototypeOf,le=Object.prototype;function de(e,t){if("string"!=typeof t){if(le){let n=ue(t);n&&n!==le&&de(e,n)}let n=ae(t);ce&&(n=n.concat(ce(t)));let r=oe(e),o=oe(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(te[a]||o&&o[a]||r&&r[a])){let n=se(t,a);try{ie(e,a,n)}catch{}}}}return e}var pe=b,fe=[null,null];function he(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function me(e,t){return e===t}var ge=function(e,t,n,{pure:r,areStatesEqual:o=me,areOwnPropsEqual:i=J,areStatePropsEqual:a=J,areMergedPropsEqual:c=J,forwardRef:s=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?V(e):q(e,"mapStateToProps"):z((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?z((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?V(e):q(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),c=m.useContext(a),s=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!c&&!!c.store,d=s?t.store:c.store,p=u?c.getServerState:d.getState,f=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return B(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return fe;let e=Q(d,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,s,c]),y=m.useMemo((()=>s?c:{...c,subscription:g}),[s,c,g]),b=m.useRef(),w=m.useRef(i),O=m.useRef(),x=m.useRef(!1),k=(m.useRef(!1),m.useRef(!1)),S=m.useRef();X((()=>(k.current=!0,()=>{k.current=!1})),[]);let P,E=m.useMemo((()=>()=>O.current&&i===w.current?O.current:f(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null,f=()=>{if(d||!c.current)return;let e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===i.current?a.current||u():(i.current=e,s.current=e,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,d,g,f,w,b,x,k,O,v,e):()=>{}),[g]);!function(e,t,n){X((()=>e(...t)),n)}(he,[w,b,x,i,O,v]);try{P=pe(D,E,p?()=>f(p(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,O.current=void 0,b.current=P}));let j=m.useMemo((()=>m.createElement(e,{...P,ref:o})),[o,e,P]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},j):j),[a,j,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,s){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,de(t,e)}return de(g,e)}};var ve=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=Q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),c=m.useMemo((()=>e.getState()),[e]);return X((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,c]),m.createElement((t||y).Provider,{value:a},n)};function ye(e=y){let t=e===y?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var be=ye();function we(e=y){let t=e===y?be:ye(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Oe=we(),xe=K;(e=>{x=e})(f.useSyncExternalStoreWithSelector),(e=>{pe=e})(p.useSyncExternalStore)},99988:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{c:()=>r})},80472:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{c:()=>r})},87088:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{c:()=>r})},92920:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(52028);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.c)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52536:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(52028);function o(e,t,n){return(t=(0,r.c)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},76184:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{c:()=>r})},62988:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(61936);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.c)(e,t)}},5724:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{c:()=>r})},65500:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{c:()=>r})},52822:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{c:()=>r})},19952:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e,t){if(t&&("object"===(0,r.c)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},61936:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{c:()=>r})},32920:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(80472);var o=n(70309),i=n(65500);function a(e,t){return(0,r.c)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||(0,o.c)(e,t)||(0,i.c)()}},86692:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{c:()=>r})},32612:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(99988);var o=n(5724),i=n(70309);function a(e){return function(e){if(Array.isArray(e))return(0,r.c)(e)}(e)||(0,o.c)(e)||(0,i.c)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},52028:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(81568);function o(e){var t=function(e,t){if("object"!==(0,r.c)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.c)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.c)(t)?t:String(t)}},81568:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{c:()=>r})},70309:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99988);function o(e,t){if(e){if("string"==typeof e)return(0,r.c)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.c)(e,t):void 0}}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({8:"vendor-libphonenumber-js",216:"html-editor",448:"vendor-icons",570:"phone-formatter",784:"code-editor",952:"vendor-fontawesome"}[e]||e)+"."+{8:"4b1909c2f8a566e22e25",26:"1b64fb04cdbbb9bf2fc6",216:"130f915cc9c87fef1a6c",448:"a22123aba6eed26618fb",570:"c51becfaaf48f9c09e80",648:"8560541a14350540e119",784:"ed0fa240e75534ea0ea0",904:"28dbeef2020087939059",952:"d8c7377c8bfd33fb7a29"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={956:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";function e(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}s.r(u),s.d(u,{app:()=>yG});var n=s(33248),r=s.n(n),o=s(66904),i=s.n(o),a=s(28352),c=s(8688),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},p=s(98168),f=s(69624),h=s.n(f),m=s(36728),g=f,v=Symbol.for("react-redux-context"),y="undefined"!=typeof globalThis?globalThis:{};function b(){if(!g.createContext)return{};const e=y[v]??(y[v]=new Map);let t=e.get(g.createContext);return t||(t=g.createContext(null),e.set(g.createContext,t)),t}var w=b(),O=()=>{throw new Error("uSES not initialized!")};var x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),j=Symbol.for("react.context"),_=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),R=M;function L(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case x:{const n=e.type;switch(n){case S:case E:case P:case T:case I:return n;default:{const e=n&&n.$$typeof;switch(e){case _:case j:case C:case N:case M:case D:return e;default:return t}}}}case k:return t}}}function F(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){const h=!i(f,s),m=!o(p,c,f,s);return c=p,s=f,h&&m?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?function(){const t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):(c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d)}}function H(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function U(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function W(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=U(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=U(o),o=r(t,n)),o},r}}function B(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function z(e,t,n){return{...n,...e,...t}}function Y(e){e()}var V={notify(){},get:()=>[]};function q(e,t){let n,r=V,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Y((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=V)}const u={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?g.useLayoutEffect:g.useEffect;function K(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $(e,t){if(K(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!K(e[n[r]],t[n[r]]))return!1;return!0}var Q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J={[A]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[R]:Z};function ee(e){return function(e){return L(e)===M}(e)?Z:J[e.$$typeof]||Q}var te=Object.defineProperty,ne=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,oe=Object.getOwnPropertyDescriptor,ie=Object.getPrototypeOf,ae=Object.prototype;function ce(e,t){if("string"!=typeof t){if(ae){const n=ie(t);n&&n!==ae&&ce(e,n)}let n=ne(t);re&&(n=n.concat(re(t)));const r=ee(e),o=ee(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(X[a]||o&&o[a]||r&&r[a])){const n=oe(t,a);try{te(e,a,n)}catch(e){}}}}return e}var se=O,ue=[null,null];function le(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function de(e,t){return e===t}var pe=function(e,t,n,{pure:r,areStatesEqual:o=de,areOwnPropsEqual:i=$,areStatePropsEqual:a=$,areMergedPropsEqual:c=$,forwardRef:s=!1,context:u=w}={}){const l=u,d=function(e){return e?"function"==typeof e?W(e):B(e,"mapStateToProps"):H((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?H((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?W(e):B(e,"mapDispatchToProps"):H((e=>({dispatch:e})))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):B(e,"mergeProps"):()=>z}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function u(t){const[n,o,i]=g.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=g.useMemo((()=>{let e=l;return n?.Consumer,e}),[n,l]),c=g.useContext(a),s=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(c)&&Boolean(c.store);const d=s?t.store:c.store,p=u?c.getServerState:d.getState,f=g.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return F(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,v]=g.useMemo((()=>{if(!h)return ue;const e=q(d,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,s,c]),y=g.useMemo((()=>s?c:{...c,subscription:m}),[s,c,m]),b=g.useRef(),w=g.useRef(i),O=g.useRef(),x=g.useRef(!1),k=(g.useRef(!1),g.useRef(!1)),S=g.useRef();G((()=>(k.current=!0,()=>{k.current=!1})),[]);const P=g.useMemo((()=>()=>O.current&&i===w.current?O.current:f(d.getState(),i)),[d,i]),E=g.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!c.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===i.current?a.current||u():(i.current=n,s.current=n,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,d,m,f,w,b,x,k,O,v,e):()=>{}),[m]);var D,j,_;let C;D=le,j=[w,b,x,i,O,v],G((()=>D(...j)),_);try{C=se(E,P,p?()=>f(p(),i):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}G((()=>{S.current=void 0,O.current=void 0,b.current=C}));const T=g.useMemo((()=>g.createElement(e,{...C,ref:o})),[o,e,C]);return g.useMemo((()=>h?g.createElement(a.Provider,{value:y},T):T),[a,T,y])}const m=g.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,s){const t=g.forwardRef((function(e,t){return g.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,ce(t,e)}return ce(m,e)}};var fe=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=g.useMemo((()=>{const t=q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),c=g.useMemo((()=>e.getState()),[e]);G((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,c]);const s=t||w;return g.createElement(s.Provider,{value:a},n)};var he;he=m.useSyncExternalStoreWithSelector,(e=>{se=e})(f.useSyncExternalStore);var me,ge,ve=s(87088),ye=s(92920),be=s(19952),we=s(76184),Oe=s(62988),xe=s(3268),ke=s.n(xe),Se=s(86692),Pe=s(96684),Ee=s(80560),De=s(67664),je=(0,Ee.gV)(me||(me=(0,Se.c)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,De.Gj)(),De.gn.color("text"),De.gn.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));(0,Ee.cp)(Pe.Af)(ge||(ge=(0,Se.c)(["\n ",";\n"])),je);var _e;const Ce=(0,Ee.cp)(Pe.cH).withConfig({shouldForwardProp:function(e,t){return!["neutral"].includes(e)&&t(e)}})(_e||(_e=(0,Se.c)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),De.Il.color("text"),je);var Te,Ie=s(52536),Me=s(52822),Ne=s(30392),Ae=s(17624);function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=(0,f.lazy)((function(){return s.e(26).then(s.bind(s,42026))}));const He=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:Te||(Te=(0,Ae.jsx)(h().Fragment,{})),children:(0,Ae.jsx)(Fe,Le({},e))})};var Ue=s(32920);function We(e,t){var n=(0,f.useState)(e),r=(0,Ue.c)(n,2),o=r[0],i=r[1];return(0,f.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return h().forwardRef((function(r,o){var i=r.value,a=(0,f.useState)(i),c=(0,Ue.c)(a,2),s=c[0],u=c[1],l=We(s,t),d=(0,Ue.c)(l,2),p=d[0],h=d[1],m=(0,f.useRef)(i),g=r[n];return(0,f.useEffect)((function(){s!==i&&s===p&&(u(i),m.current=i,h(i))}),[i]),(0,f.useEffect)((function(){g&&m.current!==p&&(g(p),m.current=p)}),[p,g]),(0,Ae.jsx)(e,ze(ze(ze({},r),{},{value:s},(0,Ie.c)({},n,u)),{},{ref:o}))}))};const Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,f.useEffect)((function(){if(e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const qe=function(){var e=(0,f.useState)(),t=(0,Ue.c)(e,2),n=t[0],r=t[1],o=(0,f.useRef)(),i=(0,f.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,f.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,f.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Ge=function(e){var t=(0,f.useRef)(null),n=(0,f.useState)(null),r=(0,Ue.c)(n,2),o=r[0],i=r[1],a=(0,f.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),c=(0,f.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,f.useEffect)((function(){return c(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){c()}}),[c,a]),[i,c,a]},Ke={useAutofocus:Ve,useDebounce:We,Debouncer:Ye,useUserActive:Ge,usePrevious:function(e){var t=(0,f.useRef)();return(0,f.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,f.useRef)(!1);(0,f.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:qe};var $e="hidden",Qe="responsive",Xe={labelVisibility:Qe},Ze=h().createContext(Xe);var Je,et,tt,nt,rt,ot,it=(0,Ee.gV)(nt||(nt=(0,Se.c)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),De.gn.radii("button"),De.aU.space(-1.38),De.aU.space(-2.1),De.aU.space(0),(0,De.Gj)(),(function(e){return e.withoutBackground?(0,Ee.gV)(tt||(tt=(0,Se.c)(["\n background: transparent;\n"]))):(0,De.e4)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Ee.gV)(Je||(Je=(0,Se.c)(["\n line-height: ",";\n padding: "," ",";\n "])),De.gn.lineHeight("dense")({theme:n}),De.aU.space(-3.5)({theme:n}),De.aU.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Ee.gV)(et||(et=(0,Se.c)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===De.Wn.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(at," {\n display: none;\n }\n ");return t&&n===$e?r:t&&n===Qe&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),at=Ee.cp.span.withConfig({displayName:"StyledLabelWrapper"})(rt||(rt=(0,Se.c)([""])));const ct=Ee.cp.button.withConfig({displayName:"StyledButton"})(ot||(ot=(0,Se.c)(["\n ","\n"])),it);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=h().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,c=e.look,s=e.iconPosition,u=e.iconOnly,l=e.children,d=(0,f.useContext)(Ze).labelVisibility;return(0,Ae.jsxs)(ct,ut(ut(ut({ref:t},n),e),{},{ink:r||De.Wn.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:d,children:[i&&!a&&(0,Ae.jsx)(Ne.c,{icon:i}),a&&(0,Ae.jsx)(He,{ink:r||De.Wn.ink.BASE,look:c,position:s,size:"1em"}),!u&&o?(0,Ae.jsx)(at,{children:o}):l||""]}))}));lt.defaultProps={iconPosition:De.Wn.position.PREPEND,look:De.Wn.look.FLAT,type:"button"};const dt=lt;var pt;(0,Ee.cp)(Pe.cH).withConfig({shouldForwardProp:function(e,t){return!["labelVisibility"].includes(e)&&t(e)}}).withConfig({displayName:"StyledRouterLinkButton"})(pt||(pt=(0,Se.c)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),De.Il.color("text"),it);var ft,ht;const mt=Ee.cp.button.withConfig({displayName:"StyledButton"})(ht||(ht=(0,Se.c)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,De.Gj)(),De.e4,(function(){return(0,Ee.gV)(ft||(ft=(0,Se.c)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),De.aU.space(-3),De.gn.fontSize("base"),De.gn.lineHeight("regular"),De.aU.space(-3))}));function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yt=h().forwardRef((function(e,t){return(0,Ae.jsx)(mt,vt(vt({ref:t,type:"button"},e),{},{children:(0,Ae.jsx)(Ne.c,{icon:e.icon})}))}));yt.propTypes={disabled:ke().bool,icon:ke().string.isRequired,ink:De.Wn.inkPropTypes,look:ke().oneOf([De.Wn.look.FLAT,De.Wn.look.RAISED]),onClick:ke().func,title:ke().string,tabIndex:ke().number,"data-cy":ke().string};const bt=yt;var wt,Ot,xt,kt,St=s(32612),Pt=s(83400),Et=s.n(Pt),Dt=s(56584),jt=s.n(Dt),_t=s(20448),Ct=s.n(_t),Tt=s(89456),It=s.n(Tt),Mt="bodyAttributes",Nt="htmlAttributes",At="titleAttributes",Rt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Lt=(Object.keys(Rt).map((function(e){return Rt[e]})),"charset"),Ft="cssText",Ht="href",Ut="http-equiv",Wt="innerHTML",Bt="itemprop",zt="name",Yt="property",Vt="rel",qt="src",Gt="target",Kt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$t="defaultTitle",Qt="defer",Xt="encodeSpecialCharacters",Zt="onChangeClientState",Jt="titleTemplate",en=Object.keys(Kt).reduce((function(e,t){return e[Kt[t]]=t,e}),{}),tn=[Rt.NOSCRIPT,Rt.SCRIPT,Rt.STYLE],nn="data-react-helmet",rn="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},on=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}}(),an=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},cn=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},sn=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,"'")},un=function(e){var t=hn(e,Rt.TITLE),n=hn(e,Jt);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=hn(e,$t);return t||r||void 0},ln=function(e){return hn(e,Zt)||function(){}},dn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return an({},e,t)}),{})},pn=function(e,t){return t.filter((function(e){return void 0!==e[Rt.BASE]})).map((function(e){return e[Rt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},fn=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&bn("Helmet: "+e+' should be of type "Array". Instead found type "'+rn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],s=c.toLowerCase();-1===t.indexOf(s)||n===Vt&&"canonical"===e[n].toLowerCase()||s===Vt&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(c)||c!==Wt&&c!==Ft&&c!==Bt||(n=c)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],s=It()({},r[c],o[c]);r[c]=s}return e}),[]).reverse()},hn=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},mn=(wt=Date.now(),function(e){var t=Date.now();t-wt>16?(wt=t,e(t)):setTimeout((function(){mn(e)}),0)}),gn=function(e){return clearTimeout(e)},vn="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||mn:s.g.requestAnimationFrame||mn,yn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||gn:s.g.cancelAnimationFrame||gn,bn=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},wn=null,On=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,p=e.titleAttributes;Sn(Rt.BODY,r),Sn(Rt.HTML,o),kn(d,p);var f={baseTag:Pn(Rt.BASE,n),linkTags:Pn(Rt.LINK,i),metaTags:Pn(Rt.META,a),noscriptTags:Pn(Rt.NOSCRIPT,c),scriptTags:Pn(Rt.SCRIPT,u),styleTags:Pn(Rt.STYLE,l)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),s(e,h,m)},xn=function(e){return Array.isArray(e)?e.join(""):e},kn=function(e,t){void 0!==e&&document.title!==e&&(document.title=xn(e)),Sn(Rt.TITLE,t)},Sn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(nn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var s=a[c],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===o.indexOf(s)&&o.push(s);var l=i.indexOf(s);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(nn):n.getAttribute(nn)!==a.join(",")&&n.setAttribute(nn,a.join(","))}},Pn=function(e,t){var n=document.head||document.querySelector(Rt.HEAD),r=n.querySelectorAll(e+"["+nn+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Wt)n.innerHTML=t.innerHTML;else if(r===Ft)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(nn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},En=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}),"")},Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Kt[n]||n]=e[n],t}),t)},jn=function(e,t,n){switch(e){case Rt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[nn]=!0,o=Dn(n,r),[h().createElement(Rt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=En(n),i=xn(t);return o?"<"+e+" "+nn+'="true" '+o+">"+sn(i,r)+"</"+e+">":"<"+e+" "+nn+'="true">'+sn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Mt:case Nt:return{toComponent:function(){return Dn(t)},toString:function(){return En(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[nn]=!0,r);return Object.keys(t).forEach((function(e){var n=Kt[e]||e;if(n===Wt||n===Ft){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().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===Wt||e===Ft)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+sn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===tn.indexOf(e);return t+"<"+e+" "+nn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},_n=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,s=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,p=e.titleAttributes;return{base:jn(Rt.BASE,t,r),bodyAttributes:jn(Mt,n,r),htmlAttributes:jn(Nt,o,r),link:jn(Rt.LINK,i,r),meta:jn(Rt.META,a,r),noscript:jn(Rt.NOSCRIPT,c,r),script:jn(Rt.SCRIPT,s,r),style:jn(Rt.STYLE,u,r),title:jn(Rt.TITLE,{title:d,titleAttributes:p},r)}},Cn=jt()((function(e){return{baseTag:pn([Ht,Gt],e),bodyAttributes:dn(Mt,e),defer:hn(e,Qt),encode:hn(e,Xt),htmlAttributes:dn(Nt,e),linkTags:fn(Rt.LINK,[Vt,Ht],e),metaTags:fn(Rt.META,[zt,Lt,Ut,Yt,Bt],e),noscriptTags:fn(Rt.NOSCRIPT,[Wt],e),onChangeClientState:ln(e),scriptTags:fn(Rt.SCRIPT,[qt,Wt],e),styleTags:fn(Rt.STYLE,[Ft],e),title:un(e),titleAttributes:dn(At,e)}}),(function(e){wn&&yn(wn),e.defer?wn=vn((function(){On(e,(function(){wn=null}))})):(On(e),wn=null)}),_n)((function(){return null})),Tn=(Ot=Cn,kt=xt=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!Ct()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Rt.SCRIPT:case Rt.NOSCRIPT:return{innerHTML:t};case Rt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return an({},r,((t={})[n.type]=[].concat(r[n.type]||[],[an({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Rt.TITLE:return an({},o,((t={})[r.type]=a,t.titleAttributes=an({},i),t));case Rt.BODY:return an({},o,{bodyAttributes:an({},i)});case Rt.HTML:return an({},o,{htmlAttributes:an({},i)})}return an({},o,((n={})[r.type]=an({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=an({},t);return Object.keys(e).forEach((function(t){var r;n=an({},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 h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[en[n]||n]=e[n],t}),t)}(cn(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Rt.LINK:case Rt.META:case Rt.NOSCRIPT:case Rt.SCRIPT:case Rt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=cn(e,["children"]),r=an({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(Ot,r)},on(t,null,[{key:"canUseDOM",set:function(e){Ot.canUseDOM=e}}]),t}(h().Component),xt.propTypes={base:Et().object,bodyAttributes:Et().object,children:Et().oneOfType([Et().arrayOf(Et().node),Et().node]),defaultTitle:Et().string,defer:Et().bool,encodeSpecialCharacters:Et().bool,htmlAttributes:Et().object,link:Et().arrayOf(Et().object),meta:Et().arrayOf(Et().object),noscript:Et().arrayOf(Et().object),onChangeClientState:Et().func,script:Et().arrayOf(Et().object),style:Et().arrayOf(Et().object),title:Et().string,titleAttributes:Et().object,titleTemplate:Et().string},xt.defaultProps={defer:!0,encodeSpecialCharacters:!0},xt.peek=Ot.peek,xt.rewind=function(){var e=Ot.rewind();return e||(e=_n({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},kt);Tn.renderStatic=Tn.rewind;var In=s(24300),Mn=s.n(In),Nn=["border","border-spacing","padding","margin","text-align","width"];Mn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return Nn.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const An=function(e){return e?Mn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Rn={sanitizeHtml:An};var Ln=s(13356),Fn={error:"exclamation-circle",home:"house-blank"},Hn=function(e){return Fn[e]||e};const Un=function(e){var t=e.type;return t&&"record"!==t?(0,Ae.jsx)(Ne.c,{icon:Hn(t)}):null};var Wn,Bn,zn,Yn,Vn,qn,Gn=["component"],Kn=Ee.cp.div.withConfig({displayName:"StyledBreadcrumbs"})(Wn||(Wn=(0,Se.c)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||De.gn.color("backgroundBreadcrumbs")(e)}),De.aU.space(-.7),De.aU.space(.39)),$n=(0,Ee.cp)((function(e){var t=e.component,n=(0,Me.c)(e,Gn);return h().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Bn||(Bn=(0,Se.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.color("secondaryLight"),De.gn.color("breadcrumbsActive")),Qn=Ee.cp.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(zn||(zn=(0,Se.c)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.fontWeight("bold"),(function(e){return e.active&&De.gn.color("breadcrumbsActive")}),De.gn.color("breadcrumbsActive")),Xn=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledBreadcrumbSeparator"})(Yn||(Yn=(0,Se.c)(["\n margin-left: ",";\n margin-right: ",";\n"])),De.aU.space(-2),De.aU.space(-2)),Zn=Ee.cp.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Vn||(Vn=(0,Se.c)(["\n "," {\n margin-right: ",";\n }\n"])),Ne._,De.aU.space(-1));const Jn=function(){return qn||(qn=(0,Ae.jsx)(Xn,{breakWords:!0,children:(0,Ae.jsx)(Ne.c,{icon:"chevron-right"})}))};var er;function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rr=function(e){return e.title||e.display},or=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(rr(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(rr).join(" - ");break;default:r=rr(n)}return r},ir=function(e){var t,n=e.intl,r=e.pathPrefix,o=e.breadcrumbsInfo,i=void 0===o?[]:o,a=e.currentView,c=e.backgroundColor,s=e.onClick,u=e.linkComp,l=e.updateDocumentTitle,d=[].concat((0,St.c)(i),(0,St.c)(a?[a]:[]));if(0===d.length)return null;var p,f=d.map((function(e,n){var o,i=e.display||"",a=n===d.length-1?Qn:$n,c=n===d.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},p=u?t||(t=(0,Ae.jsx)(u,{})):er||(er=(0,Ae.jsx)(Ce,{}));return(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)(Zn,{children:(0,Ae.jsxs)(a,nr(nr(nr({neutral:!0},c),l),{},{onClick:(o=e,function(){s&&!1!==o.clickable&&s(o)}),component:p,children:[(0,Ae.jsx)(Un,{type:e.type}),(0,Ae.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ae.jsx)(Jn,{},"icon".concat(n)),t]}));return(0,Ae.jsxs)(Kn,{backgroundColor:c,children:[l?(0,Ae.jsx)(Tn,{defer:!1,children:(0,Ae.jsx)("title",{children:or(d,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ae.jsx)(Ae.Fragment,{children:f})]})};ir.defaultProps={pathPrefix:""};const ar=ir;(0,p.injectIntl)(ar);var cr,sr,ur=Ee.cp.div.withConfig({displayName:"StyledWrapper"})(cr||(cr=(0,Se.c)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,De.Gj)(),(function(e){return e.theme.colors.signal.danger}),De.Il.color("paper"),De.aU.space(-.5));const lr=function(){return sr||(sr=(0,Ae.jsx)(ur,{children:(0,Ae.jsx)(p.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var dr;const pr=Ee.cp.div.withConfig({displayName:"StyledButtonGroup"})(dr||(dr=(0,Se.c)(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),ct);var fr=h().forwardRef((function(e,t){return(0,Ae.jsx)(pr,{ref:t,children:e.children})}));fr.propTypes={children:ke().node};const hr=fr;var mr=s(94240),gr=s.n(mr),vr=s(18275),yr=s.n(vr),br=s(98872),wr=s.n(br),Or=s(40076),xr=s.n(Or),kr=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},Sr=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},Pr={outline:"none"},Er=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Sr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=h().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)},Sr(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?h().cloneElement(e({focused:t,getRef:this.ref}),n):h().createElement("div",kr({ref:this.ref,style:Pr},n),e)},t}(h().Component);Er.propTypes={children:xr().oneOfType([xr().node,xr().func]).isRequired,onBlur:xr().func,onFocus:xr().func},Er.defaultProps={onBlur:function(){},onFocus:function(){}};const Dr=Er;var jr,_r,Cr,Tr,Ir,Mr,Nr,Ar,Rr,Lr=s(90624),Fr=(0,Ee.gV)(jr||(jr=(0,Se.c)(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Hr=Ee.cp.label.withConfig({displayName:"StyledEditableWrapper"})(_r||(_r=(0,Se.c)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Fr),Ur=(0,Ee.gV)(Cr||(Cr=(0,Se.c)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,De.Gj)({color:De.Il.color("text")})}),De.Il.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Wr=(0,Ee.gV)(Tr||(Tr=(0,Se.c)(["\n display: flex;\n align-items: center;\n"]))),Br=Ee.cp.div.withConfig({displayName:"StyledEditableControl"})(Ir||(Ir=(0,Se.c)(["\n &&& {\n ","\n }\n"])),Wr),zr=Ee.cp.span.withConfig({displayName:"StyledEditableValue"})(Mr||(Mr=(0,Se.c)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),De.Il.color("signal.danger")),Yr=s(81568),Vr=function(e){return-1*Math.abs(e)},qr=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,Yr.c)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Gr=s(19448),Kr=s.n(Gr),$r=Ee.cp.div.withConfig({displayName:"StyledLocationEdit"})(Nr||(Nr=(0,Se.c)(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Fr,De.aU.space(-2),De.aU.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Kr()(n,"colors.textDisabled"):Kr()(n,"colors.text")}),Ur,De.Il.color("paper"),De.Il.color("signal.info"),De.Il.color("secondaryLight"),De.Il.color("backgroundItemHover")),Qr=(0,Ee.cp)($r).withConfig({displayName:"StyledAddressEdit"})(Ar||(Ar=(0,Se.c)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jr=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},s=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,Ae.jsxs)(Ln.cp.Span,{children:[a,", ",o," ",i," ",s," ",u]})},u=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},l=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},d={id:o,value:r&&r.street?c(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(Zr(Zr({},r),{},(0,Ie.c)({},e,i)))}}("street"),disabled:i};return(0,Ae.jsx)(Dr,{children:function(e){var t,r,o,c,p,f=e.getRef;return(0,Ae.jsxs)(Qr,{immutable:i,name:a,ref:f,children:[(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:l,getSuggestionValue:(p="street",function(e){return e[p]}),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:u,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ae.jsxs)(Br,{children:[n.isLoading&&(Rr||(Rr=(0,Ae.jsx)(He,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,c=t.postcode,Boolean(r&&(o||c))&&(0,Ae.jsx)(Lr.cp,{href:qr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var eo=s(14764),to=s.n(eo),no=s(39212),ro=s.n(no);function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(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 so(e,t){if(e){if("string"==typeof e)return co(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)?co(e,t):void 0}}function uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||so(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 lo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var po=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fo(){return fo=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},fo.apply(this,arguments)}function ho(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 mo(e,t){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mo(e,t)}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(e)}function vo(e){return vo="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},vo(e)}function yo(e,t){if(t&&("object"===vo(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 bo(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=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function wo(e){return function(e){if(Array.isArray(e))return co(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||so(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 Oo=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}(),xo="-ms-",ko="-moz-",So="-webkit-",Po="comm",Eo="rule",Do="decl",jo="@keyframes",_o=Math.abs,Co=String.fromCharCode,To=Object.assign;function Io(e){return e.trim()}function Mo(e,t,n){return e.replace(t,n)}function No(e,t){return e.indexOf(t)}function Ao(e,t){return 0|e.charCodeAt(t)}function Ro(e,t,n){return e.slice(t,n)}function Lo(e){return e.length}function Fo(e){return e.length}function Ho(e,t){return t.push(e),e}var Uo=1,Wo=1,Bo=0,zo=0,Yo=0,Vo="";function qo(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Uo,column:Wo,length:a,return:""}}function Go(e,t){return To(qo("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ko(){return Yo=zo>0?Ao(Vo,--zo):0,Wo--,10===Yo&&(Wo=1,Uo--),Yo}function $o(){return Yo=zo<Bo?Ao(Vo,zo++):0,Wo++,10===Yo&&(Wo=1,Uo++),Yo}function Qo(){return Ao(Vo,zo)}function Xo(){return zo}function Zo(e,t){return Ro(Vo,e,t)}function Jo(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 ei(e){return Uo=Wo=1,Bo=Lo(Vo=e),zo=0,[]}function ti(e){return Vo="",e}function ni(e){return Io(Zo(zo-1,ii(91===e?e+2:40===e?e+1:e)))}function ri(e){for(;(Yo=Qo())&&Yo<33;)$o();return Jo(e)>2||Jo(Yo)>3?"":" "}function oi(e,t){for(;--t&&$o()&&!(Yo<48||Yo>102||Yo>57&&Yo<65||Yo>70&&Yo<97););return Zo(e,Xo()+(t<6&&32==Qo()&&32==$o()))}function ii(e){for(;$o();)switch(Yo){case e:return zo;case 34:case 39:34!==e&&39!==e&&ii(Yo);break;case 40:41===e&&ii(e);break;case 92:$o()}return zo}function ai(e,t){for(;$o()&&e+Yo!==57&&(e+Yo!==84||47!==Qo()););return"/*"+Zo(t,zo-1)+"*"+Co(47===e?e:$o())}function ci(e){for(;!Jo(Qo());)$o();return Zo(e,zo)}function si(e){return ti(ui("",null,null,null,[""],e=ei(e),0,[0],e))}function ui(e,t,n,r,o,i,a,c,s){for(var u=0,l=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,O=i,x=r,k=b;g;)switch(h=y,y=$o()){case 40:if(108!=h&&58==Ao(k,d-1)){-1!=No(k+=Mo(ni(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=ni(y);break;case 9:case 10:case 13:case 32:k+=ri(h);break;case 92:k+=oi(Xo()-1,7);continue;case 47:switch(Qo()){case 42:case 47:Ho(di(ai($o(),Xo()),t,n),s);break;default:k+="/"}break;case 123*m:c[u++]=Lo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:f>0&&Lo(k)-d&&Ho(f>32?pi(k+";",r,n,d-1):pi(Mo(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(Ho(x=li(k,t,n,u,l,o,c,b,w=[],O=[],d),i),123===y)if(0===l)ui(k,t,x,x,w,i,d,c,O);else switch(99===p&&110===Ao(k,3)?100:p){case 100:case 109:case 115:ui(e,x,x,r&&Ho(li(e,x,x,0,0,o,c,b,o,w=[],d),O),o,O,d,c,r?w:O);break;default:ui(k,x,x,x,[""],O,0,c,O)}}u=l=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+Lo(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ko())continue;switch(k+=Co(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:c[u++]=(Lo(k)-1)*v,v=1;break;case 64:45===Qo()&&(k+=ni($o())),p=Qo(),l=d=Lo(b=k+=ci(Xo())),y++;break;case 45:45===h&&2==Lo(k)&&(m=0)}}return i}function li(e,t,n,r,o,i,a,c,s,u,l){for(var d=o-1,p=0===o?i:[""],f=Fo(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ro(e,d+1,d=_o(m=a[h])),b=e;v<f;++v)(b=Io(m>0?p[v]+" "+y:Mo(y,/&\f/g,p[v])))&&(s[g++]=b);return qo(e,t,n,0===o?Eo:c,s,u,l)}function di(e,t,n){return qo(e,t,n,Po,Co(Yo),Ro(e,2,-2),0)}function pi(e,t,n,r){return qo(e,t,n,Do,Ro(e,0,r),Ro(e,r+1,-1),r)}function fi(e,t){for(var n="",r=Fo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hi(e,t,n,r){switch(e.type){case"@import":case Do:return e.return=e.return||e.value;case Po:return"";case jo:return e.return=e.value+"{"+fi(e.children,r)+"}";case Eo:e.value=e.props.join(",")}return Lo(n=fi(e.children,r))?e.return=e.value+"{"+n+"}":""}const mi=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var gi=function(e,t,n){for(var r=0,o=0;r=o,o=Qo(),38===r&&12===o&&(t[n]=1),!Jo(o);)$o();return Zo(e,zo)},vi=function(e,t){return ti(function(e,t){var n=-1,r=44;do{switch(Jo(r)){case 0:38===r&&12===Qo()&&(t[n]=1),e[n]+=gi(zo-1,t,n);break;case 2:e[n]+=ni(r);break;case 4:if(44===r){e[++n]=58===Qo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Co(r)}}while(r=$o());return e}(ei(e),t))},yi=new WeakMap,bi=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)||yi.get(n))&&!r){yi.set(e,!0);for(var o=[],i=vi(t,o),a=n.props,c=0,s=0;c<i.length;c++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[c]?i[c].replace(/&\f/g,a[u]):a[u]+" "+i[c]}}},wi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oi(e,t){switch(function(e,t){return 45^Ao(e,0)?(((t<<2^Ao(e,0))<<2^Ao(e,1))<<2^Ao(e,2))<<2^Ao(e,3):0}(e,t)){case 5103:return So+"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 So+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return So+e+ko+e+xo+e+e;case 6828:case 4268:return So+e+xo+e+e;case 6165:return So+e+xo+"flex-"+e+e;case 5187:return So+e+Mo(e,/(\w+).+(:[^]+)/,So+"box-$1$2"+xo+"flex-$1$2")+e;case 5443:return So+e+xo+"flex-item-"+Mo(e,/flex-|-self/,"")+e;case 4675:return So+e+xo+"flex-line-pack"+Mo(e,/align-content|flex-|-self/,"")+e;case 5548:return So+e+xo+Mo(e,"shrink","negative")+e;case 5292:return So+e+xo+Mo(e,"basis","preferred-size")+e;case 6060:return So+"box-"+Mo(e,"-grow","")+So+e+xo+Mo(e,"grow","positive")+e;case 4554:return So+Mo(e,/([^-])(transform)/g,"$1"+So+"$2")+e;case 6187:return Mo(Mo(Mo(e,/(zoom-|grab)/,So+"$1"),/(image-set)/,So+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,So+"$1$`$1");case 4968:return Mo(Mo(e,/(.+:)(flex-)?(.*)/,So+"box-pack:$3"+xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+So+e+e;case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,So+"$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(Lo(e)-1-t>6)switch(Ao(e,t+1)){case 109:if(45!==Ao(e,t+4))break;case 102:return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+So+"$2-$3$1"+ko+(108==Ao(e,t+3)?"$3":"$2-$3"))+e;case 115:return~No(e,"stretch")?Oi(Mo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ao(e,t+1))break;case 6444:switch(Ao(e,Lo(e)-3-(~No(e,"!important")&&10))){case 107:return Mo(e,":",":"+So)+e;case 101:return Mo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+So+(45===Ao(e,14)?"inline-":"")+"box$3$1"+So+"$2$3$1"+xo+"$2box$3")+e}break;case 5936:switch(Ao(e,t+11)){case 114:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return So+e+xo+Mo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return So+e+xo+e+e}return e}var xi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Do:e.return=Oi(e.value,e.length);break;case jo:return fi([Go(e,{value:Mo(e.value,"@","@"+So)})],r);case Eo: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 fi([Go(e,{props:[Mo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fi([Go(e,{props:[Mo(t,/:(plac\w+)/,":"+So+"input-$1")]}),Go(e,{props:[Mo(t,/:(plac\w+)/,":-moz-$1")]}),Go(e,{props:[Mo(t,/:(plac\w+)/,xo+"input-$1")]})],r)}return""}))}}];const ki=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||xi;var o,i,a={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;c.push(e)}));var s,u,l,d,p=[hi,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[bi,wi].concat(r,p),l=Fo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){s=n,function(e){fi(si(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Oo({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(c),h};s(84792);var Si=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Pi=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)};const Ei={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Di=/[A-Z]|^ms/g,ji=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_i=function(e){return 45===e.charCodeAt(1)},Ci=function(e){return null!=e&&"boolean"!=typeof e},Ti=mi((function(e){return _i(e)?e:e.replace(Di,"-$&").toLowerCase()})),Ii=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ji,(function(e,t,n){return Ni={name:t,styles:n,next:Ni},t}))}return 1===Ei[e]||_i(e)||"number"!=typeof t||0===t?t:t+"px"};function Mi(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 Ni={name:n.name,styles:n.styles,next:Ni},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ni={name:r.name,styles:r.styles,next:Ni},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+=Mi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ci(a)&&(r+=Ti(i)+":"+Ii(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Mi(e,t,a);switch(i){case"animation":case"animationName":r+=Ti(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Ci(a[s])&&(r+=Ti(i)+":"+Ii(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ni,i=n(e);return Ni=o,Mi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ni,Ai=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ri=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="";Ni=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Mi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Mi(n,t,e[a]),r&&(o+=i[a]);Ai.lastIndex=0;for(var c,s="";null!==(c=Ai.exec(o));)s+="-"+c[1];return{name:Pi(o)+s,styles:o,next:Ni}},Li=!!f.useInsertionEffect&&f.useInsertionEffect,Fi=Li||function(e){return e()},Hi={}.hasOwnProperty,Ui=(0,f.createContext)("undefined"!=typeof HTMLElement?ki({key:"css"}):null);Ui.Provider;var Wi=function(e){return(0,f.forwardRef)((function(t,n){var r=(0,f.useContext)(Ui);return e(t,r,n)}))},Bi=(0,f.createContext)({});var zi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Si(t,n,r);Fi((function(){return function(e,t,n){Si(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},Vi=Wi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[zi],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var c=Ri(i,void 0,(0,f.useContext)(Bi));a+=t.key+"-"+c.name;var s={};for(var u in e)Hi.call(e,u)&&"css"!==u&&u!==zi&&(s[u]=e[u]);return s.ref=n,s.className=a,(0,f.createElement)(f.Fragment,null,(0,f.createElement)(Yi,{cache:t,serialized:c,isStringTag:"string"==typeof o}),(0,f.createElement)(o,s))}));var qi=function(e,t){var n=arguments;if(null==t||!Hi.call(t,"css"))return f.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vi,o[1]=function(e,t){var n={};for(var r in t)Hi.call(t,r)&&(n[r]=t[r]);return n[zi]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return f.createElement.apply(null,o)};function Gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ri(t)}var Ki=s(42416),$i=s.n(Ki);Math.min,Math.max;const Qi=["top","right","bottom","left"];Qi.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Xi(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Zi(e){if(null==e)return window;if(!Xi(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ji(e){return Zi(e).getComputedStyle(e)}function ea(e){return Xi(e)?"":e?(e.nodeName||"").toLowerCase():""}function ta(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function na(e){return e instanceof Zi(e).HTMLElement}function ra(e){return e instanceof Zi(e).Element}function oa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zi(e).ShadowRoot||e instanceof ShadowRoot)}function ia(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ji(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function aa(){return!/^((?!chrome|android).)*safari/i.test(ta())}function ca(e){return["html","body","#document"].includes(ea(e))}Math.min,Math.max;const sa=Math.round;function ua(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect();let s=1,u=1;t&&na(e)&&(s=e.offsetWidth>0&&sa(c.width)/e.offsetWidth||1,u=e.offsetHeight>0&&sa(c.height)/e.offsetHeight||1);const l=ra(e)?Zi(e):window,d=!aa()&&n,p=(c.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,f=(c.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function la(e){return(t=e,(t instanceof Zi(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function da(e){if("html"===ea(e))return e;const t=e.assignedSlot||e.parentNode||(oa(e)?e.host:null)||la(e);return oa(t)?t.host:t}function pa(e){const t=da(e);return ca(t)?e.ownerDocument.body:na(t)&&ia(t)?t:pa(t)}function fa(e,t){var n;void 0===t&&(t=[]);const r=pa(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Zi(r),a=o?[i].concat(i.visualViewport||[],ia(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(fa(a))}const ha=f.useLayoutEffect;var ma=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ga=function(){};function va(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ya(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(va(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ba=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===vo(e)&&null!==e?[e]:[];var t},wa=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,ao({},lo(e,ma))},Oa=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function xa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ka(e){return xa(e)?window.pageYOffset:e.scrollTop}function Sa(e,t){xa(e)?window.scrollTo(0,t):e.scrollTop=t}function Pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ga,o=ka(e),i=t-o,a=0;!function t(){var c=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Sa(e,c),a<n?window.requestAnimationFrame(t):r(e)}()}function Ea(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Sa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Sa(e,Math.max(t.offsetTop-o,0))}function Da(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ja=!1,_a={get passive(){return ja=!0}},Ca="undefined"!=typeof window?window:{};Ca.addEventListener&&Ca.removeEventListener&&(Ca.addEventListener("p",ga,_a),Ca.removeEventListener("p",ga,!1));var Ta=ja;function Ia(e){return null!=e}function Ma(e,t,n){return e?t:n}var Na=["children","innerProps"],Aa=["children","innerProps"];function Ra(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,s=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=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:xa(l=s)?window.innerHeight:l.clientHeight,y=ka(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=v-m,k=O+y,S=d-y-m,P=f-v+y+b,E=y+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Pa(s,P,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&Pa(s,P,D),{placement:"bottom",maxHeight:a?x-b:S-b};if("auto"===o||a){var j=t,_=a?O:k;return _>=r&&(j=Math.min(_-b-c,t)),{placement:"top",maxHeight:j}}if("bottom"===o)return i&&Sa(s,P),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Pa(s,E,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&O>=r){var C=t;return(!a&&k>=r||a&&O>=r)&&(C=a?O-w:k-w),i&&Pa(s,E,D),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var La,Fa=function(e){return"auto"===e?"bottom":e},Ha=(0,f.createContext)(null),Ua=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,c=e.theme,s=((0,f.useContext)(Ha)||{}).setPortalPlacement,u=(0,f.useRef)(null),l=uo((0,f.useState)(r),2),d=l[0],p=l[1],h=uo((0,f.useState)(null),2),m=h[0],g=h[1],v=c.spacing.controlHeight;return ha((function(){var e=u.current;if(e){var t="fixed"===i,c=Ra({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});p(c.maxHeight),g(c.placement),null==s||s(c.placement)}}),[r,o,i,a,n,s,v]),t({ref:u,placerProps:ao(ao({},e),{},{placement:m||Fa(o),maxHeight:d})})},Wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return qi("div",fo({},Oa(e,"menu",{menu:!0}),{ref:n},r),t)},Ba=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ao({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},za=Ba,Ya=Ba,Va=["size"],qa=["innerProps","isRtl","size"];var Ga,Ka,$a={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Qa=function(e){var t=e.size,n=lo(e,Va);return qi("svg",fo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$a},n))},Xa=function(e){return qi(Qa,fo({size:20},e),qi("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"}))},Za=function(e){return qi(Qa,fo({size:20},e),qi("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"}))},Ja=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ao({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ec=Ja,tc=Ja,nc=function(){var e=Gi.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_"}}}(La||(Ga=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ka||(Ka=Ga.slice(0)),La=Object.freeze(Object.defineProperties(Ga,{raw:{value:Object.freeze(Ka)}})))),rc=function(e){var t=e.delay,n=e.offset;return qi("span",{css:Gi({animation:"".concat(nc," 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"},"","")})},oc=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return qi("div",fo({ref:o},Oa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},ic=["data"],ac=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,c=e.innerProps,s=e.label,u=e.theme,l=e.selectProps;return qi("div",fo({},Oa(e,"group",{group:!0}),c),qi(i,fo({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),s),qi("div",null,t))},cc=["innerRef","isDisabled","isHidden","inputClassName"],sc={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},uc={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ao({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},sc)},lc=function(e){return ao({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},sc)},dc=function(e){var t=e.children,n=e.innerProps;return qi("div",n,t)};var pc=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,c=e.selectProps,s=n.Container,u=n.Label,l=n.Remove;return qi(s,{data:r,innerProps:ao(ao({},Oa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:c},qi(u,{data:r,innerProps:ao({},Oa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),qi(l,{data:r,innerProps:ao(ao({},Oa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:c}))},fc={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||qi(Xa,null))},Control:oc,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||qi(Za,null))},DownChevron:Za,CrossIcon:Xa,Group:ac,GroupHeading:function(e){var t=wa(e);t.data;var n=lo(t,ic);return qi("div",fo({},Oa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return qi("span",fo({},t,Oa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=wa(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,c=r.inputClassName,s=lo(r,cc);return qi("div",fo({},Oa(e,"input",{"input-container":!0}),{"data-value":n||""}),qi("input",fo({className:t({input:!0},c),ref:o,style:lc(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=lo(e,qa);return qi("div",fo({},Oa(ao(ao({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),qi(rc,{delay:0,offset:n}),qi(rc,{delay:160,offset:!0}),qi(rc,{delay:320,offset:!n}))},Menu:Wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return qi("div",fo({},Oa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,c=(0,f.useRef)(null),s=(0,f.useRef)(null),u=uo((0,f.useState)(Fa(i)),2),l=u[0],d=u[1],p=(0,f.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=uo((0,f.useState)(null),2),m=h[0],g=h[1],v=(0,f.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ha((function(){v()}),[v]);var y=(0,f.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&c.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||i?[...ra(e)?fa(e):e.contextElement?fa(e.contextElement):[],...fa(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ra(e)&&!c&&d.observe(e),ra(e)||!e.contextElement||c||d.observe(e.contextElement),d.observe(t)}let p=c?ua(e):null;return c&&function t(){const r=ua(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,c&&cancelAnimationFrame(l)}}(r,c.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);ha((function(){y()}),[y]);var b=(0,f.useCallback)((function(e){c.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=qi("div",fo({ref:b},Oa(ao(ao({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return qi(Ha.Provider,{value:p},t?(0,Ki.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=lo(e,Aa);return qi("div",fo({},Oa(ao(ao({},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=lo(e,Na);return qi("div",fo({},Oa(ao(ao({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:pc,MultiValueContainer:dc,MultiValueLabel:dc,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({role:"button"},n),t||qi(Xa,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return qi("div",fo({},Oa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return qi("div",fo({},Oa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return qi("div",fo({},Oa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return qi("div",fo({},Oa(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 qi("div",fo({},Oa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},hc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mc(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||hc(r)&&hc(o)))return!1;var r,o;return!0}for(var gc={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"},vc=function(e){return qi("span",fo({css:gc},e))},yc={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},bc=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,u=e.isAppleDevice,l=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,g=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,w=c.tabSelectsValue,O=c.isLoading,x=c["aria-label"],k=c["aria-live"],S=(0,f.useMemo)((function(){return ao(ao({},yc),l||{})}),[l]),P=(0,f.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,c=t.removedValues,s=t.value,u=i||r||(e=s,Array.isArray(e)?null:e),l=u?d(u):"",p=o||c||void 0,f=p?p.map(d):[],h=ao({isDisabled:u&&m(u,a),label:l,labels:f},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),E=(0,f.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var c={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(c)}return e}),[n,r,d,m,S,o,a,u]),D=(0,f.useMemo)((function(){var e="";if(v&&y.length&&!O&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,v,S,y,b,O]),j="initial-input-focus"===(null==t?void 0:t.action),_=(0,f.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:j})}return e}),[x,n,r,h,m,g,v,S,a,w,j]),C=qi(f.Fragment,null,qi("span",{id:"aria-selection"},P),qi("span",{id:"aria-focused"},E),qi("span",{id:"aria-results"},D),qi("span",{id:"aria-guidance"},_));return qi(f.Fragment,null,qi(vc,{id:s},j&&C),qi(vc,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&C))},wc=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Oc=new RegExp("["+wc.map((function(e){return e.letters})).join("")+"]","g"),xc={},kc=0;kc<wc.length;kc++)for(var Sc=wc[kc],Pc=0;Pc<Sc.letters.length;Pc++)xc[Sc.letters[Pc]]=Sc.base;var Ec=function(e){return e.replace(Oc,(function(e){return xc[e]}))},Dc=function(e,t){void 0===t&&(t=mc);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ec),jc=function(e){return e.replace(/^\s+|\s+$/g,"")},_c=function(e){return"".concat(e.label," ").concat(e.value)},Cc=["innerRef"];function Tc(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=uo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=uo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(lo(e,Cc),"onExited","in","enter","exit","appear");return qi("input",fo({ref:t},n,{css:Gi({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 Ic=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Mc=["boxSizing","height","overflow","paddingRight","position"],Nc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ac(e){e.preventDefault()}function Rc(e){e.stopPropagation()}function Lc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fc(){return"ontouchstart"in window||navigator.maxTouchPoints}var Hc=!("undefined"==typeof window||!window.document||!window.document.createElement),Uc=0,Wc={capture:!1,passive:!1};var Bc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},zc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yc(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,f.useRef)(!1),c=(0,f.useRef)(!1),s=(0,f.useRef)(0),u=(0,f.useRef)(null),l=(0,f.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=u.current,h=t>0,m=d-p-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&c.current&&(i&&i(e),c.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&Ic(e)}}),[n,r,o,i]),d=(0,f.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,f.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),h=(0,f.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,f.useCallback)((function(e){if(e){var t=!!Ta&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,f.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),i=(0,f.useRef)(null),a=(0,f.useCallback)((function(e){if(Hc){var t=document.body,n=t&&t.style;if(r&&Mc.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Uc<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,c=window.innerWidth-a+i||0;Object.keys(Nc).forEach((function(e){var t=Nc[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Fc()&&(t.addEventListener("touchmove",Ac,Wc),e&&(e.addEventListener("touchstart",Lc,Wc),e.addEventListener("touchmove",Rc,Wc))),Uc+=1}}),[r]),c=(0,f.useCallback)((function(e){if(Hc){var t=document.body,n=t&&t.style;Uc=Math.max(Uc-1,0),r&&Uc<1&&Mc.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Fc()&&(t.removeEventListener("touchmove",Ac,Wc),e&&(e.removeEventListener("touchstart",Lc,Wc),e.removeEventListener("touchmove",Rc,Wc)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=i.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){i.current=e}}({isEnabled:n});return qi(f.Fragment,null,n&&qi("div",{onClick:Bc,css:zc}),t((function(e){o(e),i(e)})))}var Vc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qc=function(e){var t=e.name,n=e.onFocus;return qi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vc,value:"",onChange:function(){}})};function Gc(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 Kc(){return Gc(/^Mac/i)}function $c(){return Gc(/^iPhone/i)||Gc(/^iPad/i)||Kc()&&navigator.maxTouchPoints>1}var Qc={clearIndicator:tc,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ao({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ec,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 ao({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ao({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ao(ao({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},uc),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ao({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ya,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,c=o.colors;return ao((oo(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),oo(n,"position","absolute"),oo(n,"width","100%"),oo(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ao({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ao({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ao({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ao({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:za,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,c=i.colors;return ao({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:r?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ao({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ao({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ao({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Xc,Zc={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}},Jc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Da(),captureMenuScroll:!Da(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ao({ignoreCase:!0,ignoreAccents:!0,stringify:_c,trim:!0,matchFrom:"any"},Xc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?jc(t):t,u=a?jc(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Dc(s),u=Ec(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!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 es(e,t,n,r){return{type:"option",data:t,isDisabled:ss(e,t,n),isSelected:us(e,t,n),label:as(e,t),value:cs(e,t),index:r}}function ts(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return es(e,n,t,r)})).filter((function(t){return os(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=es(e,n,t,r);return os(e,i)?i:void 0})).filter(Ia)}function ns(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,wo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function rs(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,wo(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 os(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!ds(e)||!i)&&ls(e,{label:a,value:c,data:o},r)}var is=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},as=function(e,t){return e.getOptionLabel(t)},cs=function(e,t){return e.getOptionValue(t)};function ss(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function us(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=cs(e,t);return n.some((function(t){return cs(e,t)===r}))}function ls(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ds=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ps=1,fs=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&&mo(e,t)}(i,e);var t,n,r,o=bo(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Kc()||$c(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,c=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(c){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(wo(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ma(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Ma(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return is(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return rs(ts(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 ya.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return as(t.props,e)},t.getOptionValue=function(e){return cs(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Qc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ao(ao({},fc),e.components);var e},t.buildCategorizedOptions=function(){return ts(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ns(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ao({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&&xa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ds(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):c&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ps),t.state.selectValue=ba(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=is(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ea(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&&(Ea(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var c=i.indexOf(r[0]);c>-1&&(a=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Zc):ao(ao({},Zc),this.props.theme):Zc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:i,selectProps:c,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ss(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return us(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ls(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=ao(ao(ao({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(u,fo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):f.createElement(Tc,fo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ga,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:f.createElement(c,fo({},s,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return v.map((function(t,a){var c=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,fo({},s,{components:{Container:r,Label:o,Remove:i},isFocused:c,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return f.createElement(a,fo({},s,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,fo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?f.createElement(e,fo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return f.createElement(n,fo({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,fo({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!w)return null;var _,C=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,c=t.label,s=t.value,p=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return f.createElement(u,fo({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return f.createElement(n,fo({},l,{key:c,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(g){var T=v({inputValue:m});if(null===T)return null;_=f.createElement(c,l,T)}else{var I=E({inputValue:m});if(null===I)return null;_=f.createElement(s,l,I)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},N=f.createElement(Ua,fo({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return f.createElement(o,fo({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),f.createElement(Yc,{captureEnabled:h,onTopArrive:D,onBottomArrive:j,lockEnabled:S},(function(t){return f.createElement(i,fo({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:d}),_)})))}));return k||"fixed"===x?f.createElement(a,fo({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return f.createElement(qc,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:i,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:i,type:"hidden",value:""});return f.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return f.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return f.createElement(bc,fo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,c=i.id,s=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(r,fo({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),f.createElement(t,fo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),f.createElement(o,fo({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,fo({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=ba(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return ns(ts(e,t))}(e,h):[],v=d?rs(ts(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:is(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&c;return a&&!x&&(O={value:Ma(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!c),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),ao(ao(ao({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&ho(t.prototype,n),r&&ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(f.Component);fs.defaultProps=Jc;var hs=(0,f.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=lo(e,po),g=uo((0,f.useState)(void 0!==c?c:n),2),v=g[0],y=g[1],b=uo((0,f.useState)(void 0!==s?s:o),2),w=b[0],O=b[1],x=uo((0,f.useState)(void 0!==h?h:a),2),k=x[0],S=x[1],P=(0,f.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),E=(0,f.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,f.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),j=(0,f.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),_=void 0!==c?c:v,C=void 0!==s?s:w,T=void 0!==h?h:k;return ao(ao({},m),{},{inputValue:_,menuIsOpen:C,onChange:P,onInputChange:E,onMenuClose:j,onMenuOpen:D,value:T})}(e);return f.createElement(fs,fo({ref:t},n))})),ms=hs;function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ys=(0,p.injectIntl)((function(e){var t;return(0,Ae.jsx)("span",vs(vs({},e.innerProps),{},{children:(0,Ae.jsx)(bt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bs=s(49864);function ws(){return ws=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},ws.apply(this,arguments)}const Os=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class xs extends f.Component{constructor(...e){super(...e),this._targetNode=f.createRef(),this._elementNode=f.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,f.isValidElement)(e)||(e=null),(0,f.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new bs(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Os),i=ws({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?f.createElement(f.Fragment,null,e,t&&this._elementParentNode&&Ki.createPortal(t,this._elementParentNode)):null}}var ks,Ss,Ps,Es,Ds,js,_s,Cs,Ts,Is,Ms,Ns,As;function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fs=Ee.cp.span.withConfig({displayName:"StyledClickableWrapper"})(ks||(ks=(0,Se.c)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Hs=Ee.cp.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ss||(Ss=(0,Se.c)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Us=Ee.cp.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Ps||(Ps=(0,Se.c)(["\n outline-style: none;\n"]))),Ws=Ee.cp.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Es||(Es=(0,Se.c)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),De.Il.color("paper"),De.Il.radii("form"),(function(e){return e.isTopAligned&&(0,Ee.gV)(Ds||(Ds=(0,Se.c)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Bs=(0,Ee.cp)(xs).withConfig({displayName:"StyledTether"})(js||(js=(0,Se.c)(["\n && {\n z-index: 1;\n }\n"]))),zs=(Ee.cp.div.withConfig({displayName:"StyledNonTether"})(_s||(_s=(0,Se.c)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),De.aU.space(1.5)),(0,Ee.cp)(fc.Menu).withConfig({displayName:"StyledMenu"})(Cs||(Cs=(0,Se.c)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Ys=Ee.cp.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Ts||(Ts=(0,Se.c)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,De.Gj)({color:De.Il.color("signal.info"),lineHeight:"normal"}),De.aU.space(-.5),De.aU.space(-.2)),Vs=Ee.cp.div.withConfig({displayName:"StyledSingleValueWrapper"})(Is||(Is=(0,Se.c)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?De.Il.color("text"):"inherit"})),qs=Ee.cp.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Ms||(Ms=(0,Se.c)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Gs=Ee.cp.div.withConfig({displayName:"StyledMultiValueWrapper"})(Ns||(Ns=(0,Se.c)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Ks=Ee.cp.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(As||(As=(0,Se.c)(["\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,i=e.colors.borderSelect,a=e.colors.textDisabled,c=e.radii.form,s=De.aU.space(-1)({theme:e}),u=De.aU.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return Ls(Ls({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Ls(Ls(Ls({},e),l),{},{outline:0})},control:function(e,t){return Ls(Ls({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Ls(Ls({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Ls(Ls({},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),Ls(Ls(Ls({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:c}},menuList:function(e,t){return Ls(Ls(Ls({},e),l),{},{border:"1px solid ".concat(i),borderRadius:c,padding:"0"})},multiValue:function(t,n){return Ls(Ls({},t),{},{borderRadius:c,margin:"".concat(s," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Ls(Ls({},e),{},{borderRadius:c,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Ls(Ls({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Ls(Ls({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Ls(Ls({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Ls(Ls({},e),{},{padding:0,margin:0})}}};function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zs=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ae.jsx)(fc.DropdownIndicator,Xs(Xs({},e),{},{children:(0,Ae.jsx)(qs,{children:(0,Ae.jsx)(bt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};ke().shape({key:ke().any.isRequired,display:ke().string});var Js,eu,tu;function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ou=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},iu=function(e,t){return function(n){n.stopPropagation(),e(t)}},au=function(e,t){return function(n){n.stopPropagation(),e(t)}},cu=function(e){e.stopPropagation()};const su=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,p=l&&(c||a);return(0,Ae.jsx)(Ws,{isTopAligned:p,children:(0,Ae.jsxs)(fc.IndicatorsContainer,ru(ru({},e),{},{children:[e.children,n&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:iu(n,u),children:Js||(Js=(0,Ae.jsx)(bt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:ou(r,d,u),children:eu||(eu=(0,Ae.jsx)(bt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!i&&(0,Ae.jsx)("span",{onTouchEnd:cu,onMouseDown:au(o,u),children:tu||(tu=(0,Ae.jsx)(bt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var uu;const lu=function(){return uu||(uu=(0,Ae.jsx)("span",{children:(0,Ae.jsx)(He,{size:"1.8rem"})}))};var du="tocco-app",pu=s(14596),fu=s.n(pu),hu=s(86520),mu=s.n(hu),gu=s(36176),vu=s.n(gu),yu=s(65120),bu=s.n(yu),wu=s(66808),Ou=s.n(wu),xu=s(39556),ku=s.n(xu),Su=s(16092),Pu={};Pu.styleTagTransform=ku(),Pu.setAttributes=bu(),Pu.insert=vu().bind(null,"head"),Pu.domAPI=mu(),Pu.insertStyleElement=Ou();fu()(Su.c,Pu);Su.c&&Su.c.locals&&Su.c.locals;var Eu,Du=s(45104),ju=s.n(Du),_u=Ee.cp.span.withConfig({displayName:"StyledChildrenWrapper"})(Eu||(Eu=(0,Se.c)(["\n cursor: pointer;\n user-select: none;\n"]))),Cu=h().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ae.jsx)(_u,{onClick:r,ref:t,children:n})}));Cu.propTypes={children:ke().any,onOpen:ke().func};const Tu=Cu;function Iu(e){return Iu="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},Iu(e)}function Mu(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Nu(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Au(e){Nu(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Iu(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var Ru={};function Lu(){return Ru}function Fu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hu(e){Nu(1,arguments);var t=Au(e);return t.setHours(0,0,0,0),t}Math.pow(10,8);var Uu=6e4,Wu=36e5;function Bu(e){if(Nu(1,arguments),!function(e){return Nu(1,arguments),e instanceof Date||"object"===Iu(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Au(e);return!isNaN(Number(t))}Math.ceil,Math.round,Math.floor;function zu(e,t){return Nu(2,arguments),function(e,t){Nu(2,arguments);var n=Au(e).getTime(),r=Mu(t);return new Date(n+r)}(e,-Mu(t))}function Yu(e){Nu(1,arguments);var t=Au(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Vu(e){Nu(1,arguments);var t=Au(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Yu(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Yu(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var qu=6048e5;function Gu(e){Nu(1,arguments);var t=Au(e),n=Yu(t).getTime()-function(e){Nu(1,arguments);var t=Vu(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Yu(n)}(t).getTime();return Math.round(n/qu)+1}function Ku(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Lu(),d=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Au(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function $u(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Au(e),d=l.getUTCFullYear(),p=Lu(),f=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=Ku(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=Ku(g,t);return l.getTime()>=m.getTime()?d+1:l.getTime()>=v.getTime()?d:d-1}var Qu=6048e5;function Xu(e,t){Nu(1,arguments);var n=Au(e),r=Ku(n,t).getTime()-function(e,t){var n,r,o,i,a,c,s,u;Nu(1,arguments);var l=Lu(),d=Mu(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(s=l.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=$u(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),Ku(f,t)}(n,t).getTime();return Math.round(r/Qu)+1}function Zu(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ju={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Zu("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Zu(n+1,2)},d:function(e,t){return Zu(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Zu(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Zu(e.getUTCHours(),t.length)},m:function(e,t){return Zu(e.getUTCMinutes(),t.length)},s:function(e,t){return Zu(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Zu(Math.floor(r*Math.pow(10,n-3)),t.length)}};const el=Ju;var tl="midnight",nl="noon",rl="morning",ol="afternoon",il="evening",al="night",cl={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return el.y(e,t)},Y:function(e,t,n,r){var o=$u(e,r),i=o>0?o:1-o;return"YY"===t?Zu(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Zu(i,t.length)},R:function(e,t){return Zu(Vu(e),t.length)},u:function(e,t){return Zu(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Zu(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Zu(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return el.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Zu(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Xu(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Zu(o,t.length)},I:function(e,t,n){var r=Gu(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Zu(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):el.d(e,t)},D:function(e,t,n){var r=function(e){Nu(1,arguments);var t=Au(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Zu(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Zu(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Zu(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Zu(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?nl:0===o?tl:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?il:o>=12?ol:o>=4?rl:al,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return el.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):el.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Zu(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Zu(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):el.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):el.s(e,t)},S:function(e,t){return el.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return ul(o);case"XXXX":case"XX":return ll(o);default:return ll(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ul(o);case"xxxx":case"xx":return ll(o);default:return ll(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sl(o,":");default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sl(o,":");default:return"GMT"+ll(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Zu(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Zu((r._originalDate||e).getTime(),t.length)}};function sl(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+Zu(i,2)}function ul(e,t){return e%60==0?(e>0?"-":"+")+Zu(Math.abs(e)/60,2):ll(e,t)}function ll(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Zu(Math.floor(o/60),2)+n+Zu(o%60,2)}const dl=cl;var pl=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fl=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},hl={p:fl,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return pl(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",pl(o,t)).replace("{{time}}",fl(i,t))}};const ml=hl;var gl=["D","DD"],vl=["YY","YYYY"];function yl(e){return-1!==gl.indexOf(e)}function bl(e){return-1!==vl.indexOf(e)}function wl(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ol={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const xl=function(e,t,n){var r,o=Ol[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kl(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Sl={date:kl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Pl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const El=function(e,t,n,r){return Pl[e]};function Dl(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var jl={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Dl({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const _l=jl;function Cl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,c=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(s,(function(e){return e.test(c)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(c.length)}}}function Tl(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}var Il={ordinalNumber:Tl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Cl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Ml={code:"en-US",formatDistance:xl,formatLong:Sl,formatRelative:El,localize:_l,match:Il,options:{weekStartsOn:0,firstWeekContainsDate:1}},Nl=Ml;var Al=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ll=/^'([^]*?)'?$/,Fl=/''/g,Hl=/[a-zA-Z]/;function Ul(e,t,n){var r,o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w;Nu(2,arguments);var O=String(t),x=Lu(),k=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:x.locale)&&void 0!==r?r:Nl,S=Mu(null!==(i=null!==(a=null!==(c=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==c?c:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Mu(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==h?h:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var E=Au(e);if(!Bu(E))throw new RangeError("Invalid time value");var D=zu(E,Fu(E)),j={firstWeekContainsDate:S,weekStartsOn:P,locale:k,_originalDate:E};return O.match(Rl).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ml[t])(e,k.formatLong):e})).join("").match(Al).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(Ll);if(!t)return e;return t[1].replace(Fl,"'")}(r);var i=dl[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!bl(r)||wl(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!yl(r)||wl(r,t,String(e)),i(D,r,k.localize,j);if(o.match(Hl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function Wl(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Bl(e){return Nu(1,arguments),Au(e).getHours()}function zl(e){return Nu(1,arguments),Au(e).getMinutes()}function Yl(e){return Nu(1,arguments),Au(e).getSeconds()}function Vl(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 ql(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vl(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)?Vl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Gl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kl(e,t)}function $l(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&&Kl(e,t)}function Ql(e){return Ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ql(e)}function Xl(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=Ql(e);if(t){var o=Ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Iu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gl(e)}(this,n)}}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jl(e){var t=function(e,t){if("object"!==Iu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Iu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Iu(t)?t:String(t)}function ed(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,Jl(r.key),r)}}function td(e,t,n){return t&&ed(e.prototype,t),n&&ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nd(e,t,n){return(t=Jl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rd=function(){function e(){Zl(this,e),nd(this,"priority",void 0),nd(this,"subPriority",0)}return td(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),od=function(e){$l(n,e);var t=Xl(n);function n(e,r,o,i,a){var c;return Zl(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=i,a&&(c.subPriority=a),c}return td(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(rd),id=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"subPriority",-1),e}return td(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(rd),ad=function(){function e(){Zl(this,e),nd(this,"incompatibleTokens",void 0),nd(this,"priority",void 0),nd(this,"subPriority",void 0)}return td(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new od(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),cd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",140),nd(Gl(e),"incompatibleTokens",["R","u","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),sd=/^(1[0-2]|0?\d)/,ud=/^(3[0-1]|[0-2]?\d)/,ld=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,dd=/^(5[0-3]|[0-4]?\d)/,pd=/^(2[0-3]|[0-1]?\d)/,fd=/^(2[0-4]|[0-1]?\d)/,hd=/^(1[0-1]|0?\d)/,md=/^(1[0-2]|0?\d)/,gd=/^[0-5]?\d/,vd=/^[0-5]?\d/,yd=/^\d/,bd=/^\d{1,2}/,wd=/^\d{1,3}/,Od=/^\d{1,4}/,xd=/^-?\d+/,kd=/^-?\d/,Sd=/^-?\d{1,2}/,Pd=/^-?\d{1,3}/,Ed=/^-?\d{1,4}/,Dd=/^([+-])(\d{2})(\d{2})?|Z/,jd=/^([+-])(\d{2})(\d{2})|Z/,_d=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Cd=/^([+-])(\d{2}):(\d{2})|Z/,Td=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Id(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Md(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Nd(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*Wu+i*Uu+1e3*a),rest:t.slice(n[0].length)}}function Ad(e){return Md(xd,e)}function Rd(e,t){switch(e){case 1:return Md(yd,t);case 2:return Md(bd,t);case 3:return Md(wd,t);case 4:return Md(Od,t);default:return Md(new RegExp("^\\d{1,"+e+"}"),t)}}function Ld(e,t){switch(e){case 1:return Md(kd,t);case 2:return Md(Sd,t);case 3:return Md(Pd,t);case 4:return Md(Ed,t);default:return Md(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Fd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Hd(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function Ud(e){return e%400==0||e%4==0&&e%100!=0}var Wd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Id(Rd(4,e),r);case"yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Rd(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Hd(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Bd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Id(Rd(4,e),r);case"Yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Rd(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=$u(e,r);if(n.isTwoDigitYear){var i=Hd(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ku(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ku(e,r)}}]),n}(ad),zd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Ld("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Yu(r)}}]),n}(ad),Yd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",130),nd(Gl(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Ld("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Vd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",120),nd(Gl(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Rd(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),qd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",120),nd(Gl(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Rd(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Gd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),nd(Gl(e),"priority",110),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Id(Md(sd,e),r);case"MM":return Id(Rd(2,e),r);case"Mo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad),Kd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",110),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Id(Md(sd,e),r);case"LL":return Id(Rd(2,e),r);case"Lo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(ad);var $d=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",100),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Md(dd,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Ku(function(e,t,n){Nu(2,arguments);var r=Au(e),o=Mu(t),i=Xu(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(ad);var Qd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",100),nd(Gl(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Md(dd,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Yu(function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t),o=Gu(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(ad),Xd=[31,28,31,30,31,30,31,31,30,31,30,31],Zd=[31,29,31,30,31,30,31,31,30,31,30,31],Jd=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"subPriority",1),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Md(ud,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){var n=Ud(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Zd[r]:t>=1&&t<=Xd[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(ad),ep=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"subpriority",1),nd(Gl(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Md(ld,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return Ud(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(ad);function tp(e,t,n){var r,o,i,a,c,s,u,l;Nu(2,arguments);var d=Lu(),p=Mu(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Au(e),h=Mu(t),m=((h%7+7)%7<p?7:0)+h-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+m),f}var np=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad),rp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Id(Rd(t.length,e),o);case"eo":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad),op=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Id(Rd(t.length,e),o);case"co":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=tp(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(ad);var ip=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",90),nd(Gl(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Rd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Id(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Id(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Id(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Id(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){Nu(2,arguments);var n=Mu(t);n%7==0&&(n-=7);var r=Au(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(ad),ap=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),cp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),sp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",80),nd(Gl(e),"incompatibleTokens",["a","b","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Fd(n),0,0,0),e}}]),n}(ad),up=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["H","K","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Md(md,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(ad),lp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Md(pd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(ad),dp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["h","H","k","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Md(hd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(ad),pp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",70),nd(Gl(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Md(fd,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(ad),fp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",60),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Md(gd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(ad),hp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",50),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Md(vd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Rd(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(ad),mp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",30),nd(Gl(e),"incompatibleTokens",["t","T"]),e}return td(n,[{key:"parse",value:function(e,t){return Id(Rd(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(ad),gp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"incompatibleTokens",["t","T","x"]),e}return td(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Nd(Dd,e);case"XX":return Nd(jd,e);case"XXXX":return Nd(_d,e);case"XXXXX":return Nd(Td,e);default:return Nd(Cd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(ad),vp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",10),nd(Gl(e),"incompatibleTokens",["t","T","X"]),e}return td(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Nd(Dd,e);case"xx":return Nd(jd,e);case"xxxx":return Nd(_d,e);case"xxxxx":return Nd(Td,e);default:return Nd(Cd,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(ad),yp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",40),nd(Gl(e),"incompatibleTokens","*"),e}return td(n,[{key:"parse",value:function(e){return Ad(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(ad),bp=function(e){$l(n,e);var t=Xl(n);function n(){var e;Zl(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return nd(Gl(e=t.call.apply(t,[this].concat(o))),"priority",20),nd(Gl(e),"incompatibleTokens","*"),e}return td(n,[{key:"parse",value:function(e){return Ad(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(ad),wp={G:new cd,y:new Wd,Y:new Bd,R:new zd,u:new Yd,Q:new Vd,q:new qd,M:new Gd,L:new Kd,w:new $d,I:new Qd,d:new Jd,D:new ep,E:new np,e:new rp,c:new op,i:new ip,a:new ap,b:new cp,B:new sp,h:new up,H:new lp,K:new dp,k:new pp,m:new fp,s:new hp,S:new mp,X:new gp,x:new vp,t:new yp,T:new bp},Op=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kp=/^'([^]*?)'?$/,Sp=/''/g,Pp=/\S/,Ep=/[a-zA-Z]/;function Dp(e,t,n,r){var o,i,a,c,s,u,l,d,p,f,h,m,g,v,y,b,w,O;Nu(3,arguments);var x=String(e),k=String(t),S=Lu(),P=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:S.locale)&&void 0!==o?o:Nl;if(!P.match)throw new RangeError("locale must contain match property");var E=Mu(null!==(a=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Mu(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?Au(n):new Date(NaN);var j,_={firstWeekContainsDate:E,weekStartsOn:D,locale:P},C=[new id],T=k.match(xp).map((function(e){var t=e[0];return t in ml?(0,ml[t])(e,P.formatLong):e})).join("").match(Op),I=[],M=ql(T);try{var N=function(){var t=j.value;null!=r&&r.useAdditionalWeekYearTokens||!bl(t)||wl(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!yl(t)||wl(t,k,e);var n=t[0],o=wp[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=I.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));I.push({token:n,fullToken:t});var c=o.run(x,t,P.match,_);if(!c)return{v:new Date(NaN)};C.push(c.setter),x=c.rest}else{if(n.match(Ep))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(kp)[1].replace(Sp,"'")),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(j=M.n()).done;){var A=N();if("object"===Iu(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&Pp.test(x))return new Date(NaN);var R=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=Au(n);if(isNaN(L.getTime()))return new Date(NaN);var F,H=zu(L,Fu(L)),U={},W=ql(R);try{for(W.s();!(F=W.n()).done;){var B=F.value;if(!B.validate(H,_))return new Date(NaN);var z=B.set(H,U,_);Array.isArray(z)?(H=z[0],Wl(U,z[1])):H=z}}catch(e){W.e(e)}finally{W.f()}return H}function jp(e,t,n){return Nu(2,arguments),Bu(Dp(e,t,new Date,n))}function _p(e,t){var n;Nu(1,arguments);var r=Mu(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=function(e){var t,n={},r=e.split(Cp.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Cp.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Cp.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=Cp.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(i.date){var a=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(Tp);if(!n)return new Date(NaN);var r=!!n[4],o=Np(n[1]),i=Np(n[2])-1,a=Np(n[3]),c=Np(n[4]),s=Np(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rp[t]||(Lp(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Lp(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(i.time&&(u=function(e){var t=e.match(Ip);if(!t)return NaN;var n=Ap(t[1]),r=Ap(t[2]),o=Ap(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*Wu+r*Uu+1e3*o}(i.time),isNaN(u)))return new Date(NaN);if(!i.timezone){var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return c=function(e){if("Z"===e)return 0;var t=e.match(Mp);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*Wu+o*Uu)}(i.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}var Cp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Tp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ip=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Mp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Np(e){return e?parseInt(e):1}function Ap(e){return e&&parseFloat(e.replace(",","."))||0}var Rp=[31,null,31,30,31,30,31,31,30,31,30,31];function Lp(e){return e%400==0||e%4==0&&e%100!=0}function Fp(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setHours(r),n}function Hp(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setMinutes(r),n}function Up(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setSeconds(r),n}var Wp={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};const Bp=function(e,t,n){var r,o=null!=n&&n.addSuffix?Wp[e].withPreposition:Wp[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};const zp={date:kl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var Yp={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};const Vp=function(e,t,n,r){return Yp[e]};var qp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Gp={narrow:qp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:qp.wide};const Kp={ordinalNumber:function(e){return Number(e)+"."},era:Dl({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:qp,formattingValues:Gp,defaultWidth:"wide"}),day:Dl({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};var $p={ordinalNumber:Tl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Cl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};const Qp={code:"de",formatDistance:Bp,formatLong:zp,formatRelative:Vp,localize:Kp,match:$p,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Xp={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};const Zp=function(e,t,n){var r,o=Xp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var Jp={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:Dl({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})};const ef=Jp;var tf={ordinalNumber:Tl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Cl({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};const nf=tf;var rf={date:kl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var of={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"};const af=function(e,t,n,r){return of[e]};const cf={code:"fr-CH",formatDistance:Zp,formatLong:rf,formatRelative:af,localize:ef,match:nf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var sf={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};const uf=function(e,t,n){var r,o=sf[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};const lf={date:kl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:kl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:kl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function df(e,t,n){Nu(2,arguments);var r=Ku(e,n),o=Ku(t,n);return r.getTime()===o.getTime()}var pf=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function ff(e){return"'"+pf[e]+" alle' p"}var hf={lastWeek:function(e,t,n){var r=e.getUTCDay();return df(e,t,n)?ff(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+pf[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return df(e,t,n)?ff(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+pf[e]+" prossimo alle' p"}(r)},other:"P"};const mf=function(e,t,n,r){var o=hf[e];return"function"==typeof o?o(t,n,r):o};var gf={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:Dl({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Dl({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Dl({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Dl({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Dl({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})};const vf=gf;var yf={ordinalNumber:Tl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Cl({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Cl({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cl({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Cl({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};const bf={code:"it",formatDistance:uf,formatLong:lf,formatRelative:mf,localize:vf,match:yf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var wf=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Of=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=wf(e/1e3%60,3);e-=Math.round(1e3*t);var n=parseInt(e/6e4%60);e-=1e3*n*60;var r=parseInt(e/36e5);return(n<0||r<0)&&(t=Math.abs(t)),r<0&&(n=Math.abs(n)),{hours:r,minutes:n,seconds:t}},xf=function(e){switch(e){case"fr":return cf;case"en":return Ml;case"it":return bf;default:return Qp}},kf=function(e){return xf(e).formatLong.date({width:"short"})},Sf=function(e){return kf(e).replace(/[/.]/g,"")};const Pf=Of,Ef=function(e){var t=Of(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},Df=xf,jf=kf,_f=function(e){return"".concat(kf(e)," HH:mm")},Cf=Sf,Tf=function(e){return"".concat(Sf(e)," HHmm")},If=function(e){return e.replace(/y+/,"yy")},Mf=function(e){var t=new Date,n=new Date(e);return n=function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return n.setMilliseconds(r),n}(n=Up(n=Hp(n=Fp(n,Bl(t)),zl(t)),0),0),n},Nf=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var Af=function(){(0,Du.registerLocale)("en",Df("en")),(0,Du.registerLocale)("en-US",Df("en")),(0,Du.registerLocale)("de-CH",Df("de-CH")),(0,Du.registerLocale)("de-DE",Df("de-DE")),(0,Du.registerLocale)("de",Df("de")),(0,Du.registerLocale)("fr",Df("fr")),(0,Du.registerLocale)("fr-CH",Df("fr")),(0,Du.registerLocale)("it",Df("it")),(0,Du.registerLocale)("it-CH",Df("it")),(0,Du.setDefaultLocale)("de")};Af();(0,Ee.QX)((0,p.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,c=(0,f.useRef)(null),s=(0,f.useState)(!1),u=(0,Ue.c)(s,2),l=u[0],d=u[1],p=function(e){var t,n;(d(e),null!==(t=c.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=c.current)||void 0===n||n.setPreSelection(r))};return(0,Ae.jsx)(ju(),{ref:c,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){p(!0)},onClickOutside:function(){p(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ae.jsx)(Tu,{onOpen:function(){p(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Rf,Lf,Ff,Hf,Uf,Wf,Bf=De.Il.color("secondaryLight"),zf=De.Il.color("paper"),Yf=De.Il.color("text"),Vf=De.Il.color("secondary"),qf=De.Il.radii("form"),Gf=(0,Ee.Ud)(Rf||(Rf=(0,Se.c)(["\n .react-datepicker-popper {\n && {\n z-index: 5;\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"])),Ne._,Yf,De.Il.radii("form"),qf,Bf,zf,(0,De.Gj)(),(0,De.Gj)(),Bf,qf,qf,De.aU.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",zf,De.aU.font(1),De.Il.fontWeight("bold"),(0,De.Gj)({fontWeight:De.Il.fontWeight("bold")}),zf,De.aU.font(-2),De.aU.space(-1.8),Vf,Vf,Vf,Bf,Bf,Bf,Vf,(0,De.Gj)(),zf,De.aU.space(-.5),De.Il.color("backgroundItemHover"),qf,De.aU.space(-.5),zf,De.Il.color("border"),De.Il.radii("form"),De.aU.space(-1),De.aU.space(-1),De.aU.font(1),zf,De.Il.fontWeight("bold"),De.aU.space(-1),zf,De.aU.font(0),Yf,Bf,Bf,De.Il.radii("form"),zf,Bf,Vf,Yf,Yf,zf,Bf,De.Il.color("backgroundItemHover"),De.Il.color("textDisabled"),De.Il.color("border"),De.Il.radii("form")),Kf=(0,Ee.Ud)(Lf||(Lf=(0,Se.c)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),De.Il.color("signal.success"),De.Il.color("signal.info"),De.Il.color("signal.warning"),De.Il.color("signal.danger"),De.Il.color("textDisabled")),$f=(0,Ee.Ud)(Ff||(Ff=(0,Se.c)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),De.Il.color("backgroundScrollbar"),De.Il.color("backgroundScrollbarHover"),De.Il.color("backgroundScrollbar"));const Qf=function(){return(0,Ae.jsxs)(Ae.Fragment,{children:[Hf||(Hf=(0,Ae.jsx)(Kf,{})),Uf||(Uf=(0,Ae.jsx)(Gf,{})),Wf||(Wf=(0,Ae.jsx)($f,{}))]})};function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jf=function(e){var t=e.selectProps,n=e.children;return(0,Ae.jsx)(Bs,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ae.jsx)("div",{ref:e})},renderElement:function(r){return(0,Ae.jsx)("div",{ref:r,className:du,children:(0,Ae.jsx)(zs,Zf(Zf({},gr()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nh=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ae.jsxs)(fc.MenuList,th(th({},e),{},{className:"MenuList",children:[n,r&&(0,Ae.jsx)(Ys,{children:o})]}))};f.createContext(),f.createContext();var rh=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},oh="undefined"!=typeof window&&window.document&&window.document.createElement?f.useLayoutEffect:f.useEffect,ih="top",ah="bottom",ch="right",sh="left",uh="auto",lh=[ih,ah,ch,sh],dh="start",ph="end",fh="clippingParents",hh="viewport",mh="popper",gh="reference",vh=lh.reduce((function(e,t){return e.concat([t+"-"+dh,t+"-"+ph])}),[]),yh=[].concat(lh,[uh]).reduce((function(e,t){return e.concat([t,t+"-"+dh,t+"-"+ph])}),[]),bh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function wh(e){return e?(e.nodeName||"").toLowerCase():null}function Oh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){return e instanceof Oh(e).Element||e instanceof Element}function kh(e){return e instanceof Oh(e).HTMLElement||e instanceof HTMLElement}function Sh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Oh(e).ShadowRoot||e instanceof ShadowRoot)}const Ph={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];kh(o)&&wh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});kh(r)&&wh(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Eh(e){return e.split("-")[0]}var Dh=Math.max,jh=Math.min,_h=Math.round;function Ch(){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 Th(){return!/^((?!chrome|android).)*safari/i.test(Ch())}function Ih(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kh(e)&&(o=e.offsetWidth>0&&_h(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_h(r.height)/e.offsetHeight||1);var a=(xh(e)?Oh(e):window).visualViewport,c=!Th()&&n,s=(r.left+(c&&a?a.offsetLeft:0))/o,u=(r.top+(c&&a?a.offsetTop:0))/i,l=r.width/o,d=r.height/i;return{width:l,height:d,top:u,right:s+l,bottom:u+d,left:s,x:s,y:u}}function Mh(e){var t=Ih(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 Nh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ah(e){return Oh(e).getComputedStyle(e)}function Rh(e){return["table","td","th"].indexOf(wh(e))>=0}function Lh(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fh(e){return"html"===wh(e)?e:e.assignedSlot||e.parentNode||(Sh(e)?e.host:null)||Lh(e)}function Hh(e){return kh(e)&&"fixed"!==Ah(e).position?e.offsetParent:null}function Uh(e){for(var t=Oh(e),n=Hh(e);n&&Rh(n)&&"static"===Ah(n).position;)n=Hh(n);return n&&("html"===wh(n)||"body"===wh(n)&&"static"===Ah(n).position)?t:n||function(e){var t=/firefox/i.test(Ch());if(/Trident/i.test(Ch())&&kh(e)&&"fixed"===Ah(e).position)return null;var n=Fh(e);for(Sh(n)&&(n=n.host);kh(n)&&["html","body"].indexOf(wh(n))<0;){var r=Ah(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 Wh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bh(e,t,n){return Dh(e,jh(t,n))}function zh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Yh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Vh={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Eh(n.placement),s=Wh(c),u=[sh,ch].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return zh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Yh(e,lh))}(o.padding,n),d=Mh(i),p="y"===s?ih:sh,f="y"===s?ah:ch,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=Uh(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[p],w=v-d[u]-l[f],O=v/2-d[u]/2+y,x=Bh(b,O,w),k=s;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)))&&Nh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qh(e){return e.split("-")[1]}var Gh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,s=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof l?l({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=sh,w=ih,O=window;if(u){var x=Uh(n),k="clientHeight",S="clientWidth";if(x===Oh(n)&&"static"!==Ah(x=Lh(n)).position&&"absolute"===c&&(k="scrollHeight",S="scrollWidth"),o===ih||(o===sh||o===ch)&&i===ph)w=ah,m-=(d&&x===O&&O.visualViewport?O.visualViewport.height:x[k])-r.height,m*=s?1:-1;if(o===sh||(o===ih||o===ah)&&i===ph)b=ch,f-=(d&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-r.width,f*=s?1:-1}var P,E=Object.assign({position:c},u&&Gh),D=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_h(n*o)/o||0,y:_h(r*o)/o||0}}({x:f,y:m},Oh(n)):{x:f,y:m};return f=D.x,m=D.y,s?Object.assign({},E,((P={})[w]=y?"0":"",P[b]=v?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",P)):Object.assign({},E,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const $h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,s=void 0===c||c,u={placement:Eh(t.placement),variation:qh(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,Kh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Qh={passive:!0};const Xh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,c=void 0===a||a,s=Oh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qh)})),c&&s.addEventListener("resize",n.update,Qh),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qh)})),c&&s.removeEventListener("resize",n.update,Qh)}},data:{}};var Zh={left:"right",right:"left",bottom:"top",top:"bottom"};function Jh(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zh[e]}))}var em={start:"end",end:"start"};function tm(e){return e.replace(/start|end/g,(function(e){return em[e]}))}function nm(e){var t=Oh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rm(e){return Ih(Lh(e)).left+nm(e).scrollLeft}function om(e){var t=Ah(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function im(e){return["html","body","#document"].indexOf(wh(e))>=0?e.ownerDocument.body:kh(e)&&om(e)?e:im(Fh(e))}function am(e,t){var n;void 0===t&&(t=[]);var r=im(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Oh(r),a=o?[i].concat(i.visualViewport||[],om(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(am(Fh(a)))}function cm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===hh?cm(function(e,t){var n=Oh(e),r=Lh(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;var u=Th();(u||!u&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c+rm(e),y:s}}(e,n)):xh(t)?function(e,t){var n=Ih(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):cm(function(e){var t,n=Lh(e),r=nm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Dh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+rm(e),s=-r.scrollTop;return"rtl"===Ah(o||n).direction&&(c+=Dh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(Lh(e)))}function um(e,t,n,r){var o="clippingParents"===t?function(e){var t=am(Fh(e)),n=["absolute","fixed"].indexOf(Ah(e).position)>=0&&kh(e)?Uh(e):e;return xh(n)?t.filter((function(e){return xh(e)&&Nh(e,n)&&"body"!==wh(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=sm(e,n,r);return t.top=Dh(o.top,t.top),t.right=jh(o.right,t.right),t.bottom=jh(o.bottom,t.bottom),t.left=Dh(o.left,t.left),t}),sm(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function lm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Eh(o):null,a=o?qh(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case ih:t={x:c,y:n.y-r.height};break;case ah:t={x:c,y:n.y+n.height};break;case ch:t={x:n.x+n.width,y:s};break;case sh:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Wh(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case dh:t[u]=t[u]-(n[l]/2-r[l]/2);break;case ph:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function dm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,c=n.boundary,s=void 0===c?fh:c,u=n.rootBoundary,l=void 0===u?hh:u,d=n.elementContext,p=void 0===d?mh:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=zh("number"!=typeof g?g:Yh(g,lh)),y=p===mh?gh:mh,b=e.rects.popper,w=e.elements[h?y:p],O=um(xh(w)?w:w.contextElement||Lh(e.elements.popper),s,l,a),x=Ih(e.elements.reference),k=lm({reference:x,element:b,strategy:"absolute",placement:o}),S=cm(Object.assign({},b,k)),P=p===mh?S:x,E={top:O.top-P.top+v.top,bottom:P.bottom-O.bottom+v.bottom,left:O.left-P.left+v.left,right:P.right-O.right+v.right},D=e.modifiersData.offset;if(p===mh&&D){var j=D[o];Object.keys(E).forEach((function(e){var t=[ch,ah].indexOf(e)>=0?1:-1,n=[ih,ah].indexOf(e)>=0?"y":"x";E[e]+=j[n]*t}))}return E}const pm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,s=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Eh(g),y=s||(v===g||!h?[Jh(g)]:function(e){if(Eh(e)===uh)return[];var t=Jh(e);return[tm(e),t,tm(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Eh(n)===uh?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?yh:s,l=qh(r),d=l?c?vh:vh.filter((function(e){return qh(e)===l})):lh,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=dm(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Eh(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[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=Eh(E),j=qh(E)===dh,_=[ih,ah].indexOf(D)>=0,C=_?"width":"height",T=dm(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:p,padding:u}),I=_?j?ch:sh:j?ah:ih;w[C]>O[C]&&(I=Jh(I));var M=Jh(I),N=[];if(i&&N.push(T[D]<=0),c&&N.push(T[I]<=0,T[M]<=0),N.every((function(e){return e}))){S=E,k=!1;break}x.set(E,N)}if(k)for(var A=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"===A(R))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fm(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 hm(e){return[ih,ch,ah,sh].some((function(t){return e[t]>=0}))}const mm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=dm(t,{elementContext:"reference"}),c=dm(t,{altBoundary:!0}),s=fm(a,r),u=fm(c,o,i),l=hm(s),d=hm(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}};const gm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=yh.reduce((function(e,n){return e[n]=function(e,t,n){var r=Eh(e),o=[sh,ih].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[sh,ch].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};const vm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=lm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const ym={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=dm(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:l}),v=Eh(t.placement),y=qh(t.placement),b=!y,w=Wh(v),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,j={x:0,y:0};if(x){if(i){var _,C="y"===w?ih:sh,T="y"===w?ah:ch,I="y"===w?"height":"width",M=x[w],N=M+g[C],A=M-g[T],R=f?-S[I]/2:0,L=y===dh?k[I]:S[I],F=y===dh?-S[I]:-k[I],H=t.elements.arrow,U=f&&H?Mh(H):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[C],z=W[T],Y=Bh(0,k[I],U[I]),V=b?k[I]/2-R-Y-B-E.mainAxis:L-Y-B-E.mainAxis,q=b?-k[I]/2+R+Y+z+E.mainAxis:F+Y+z+E.mainAxis,G=t.elements.arrow&&Uh(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,$=null!=(_=null==D?void 0:D[w])?_:0,Q=M+q-$,X=Bh(f?jh(N,M+V-$-K):N,M,f?Dh(A,Q):A);x[w]=X,j[w]=X-M}if(c){var Z,J="x"===w?ih:sh,ee="x"===w?ah:ch,te=x[O],ne="y"===O?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[ih,sh].indexOf(v),ae=null!=(Z=null==D?void 0:D[O])?Z:0,ce=ie?re:te-k[ne]-S[ne]-ae+E.altAxis,se=ie?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=f&&ie?function(e,t,n){var r=Bh(e,t,n);return r>n?n:r}(ce,te,se):Bh(f?ce:re,te,f?se:oe);x[O]=ue,j[O]=ue-te}t.modifiersData[r]=j}},requiresIfExists:["offset"]};function bm(e,t,n){void 0===n&&(n=!1);var r=kh(t),o=kh(t)&&function(e){var t=e.getBoundingClientRect(),n=_h(t.width)/e.offsetWidth||1,r=_h(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Lh(t),a=Ih(e,o,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==wh(t)||om(i))&&(c=function(e){return e!==Oh(e)&&kh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:nm(e);var t}(t)),kh(t)?((s=Ih(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=rm(i))),{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function wm(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Om(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var xm={placement:"bottom",modifiers:[],strategy:"absolute"};function km(){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 Sm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?xm:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},xm,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],c=!1,s={state:o,setOptions:function(n){var c="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,c),o.scrollParents={reference:xh(e)?am(e):e.contextElement?am(e.contextElement):[],popper:am(t)};var l,d,p=function(e){var t=wm(e);return bh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(r,o.options.modifiers),d=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var c=i({state:o,name:t,instance:s,options:r}),u=function(){};a.push(c||u)}})),s.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(km(t,n)){o.rects={reference:bm(t,Uh(n),"fixed"===o.options.strategy),popper:Mh(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,l=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Om((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),c=!0}};if(!km(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var Pm=Sm({defaultModifiers:[Xh,vm,$h,Ph,gm,pm,ym,Vh,mm]}),Em=[],Dm=function(e,t,n){void 0===n&&(n={});var r=f.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Em},i=f.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=i[0],c=i[1],s=f.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);Ki.flushSync((function(){c({styles:rh(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:rh(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=f.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[s,{name:"applyStyles",enabled:!1}])};return Ct()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),l=f.useRef();return oh((function(){l.current&&l.current.setOptions(u)}),[u]),oh((function(){if(null!=e&&null!=t){var r=(n.createPopper||Pm)(e,t,u);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:a.styles,attributes:a.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}};var jm,_m,Cm;s(60388);var Tm,Im,Mm,Nm=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(jm||(jm=(0,Se.c)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),De.Il.color("text"),De.aU.font(1),De.aU.space(-1)),Am=(0,Ee.gV)(_m||(_m=(0,Se.c)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),De.Il.color("textLabel"),De.Il.lineHeight("regular"),De.Il.fontWeight("regular"),De.aU.space(-3),De.aU.space(-1.5),De.Il.radii("statusLabel")),Rm=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledHtmlFormatter"})(Cm||(Cm=(0,Se.c)(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; // nice2 reset\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-duplicate {\n padding: "," "," !important;\n }\n }\n"])),(function(e){return(0,Ln.my)(e,"html")}),De.aU.space(-1),De.aU.space(-1.5),Am,De.Il.color("signal.dangerLight"),De.Il.color("signal.infoLight"),De.Il.color("signal.warningLight"),De.Il.color("signal.successLight"),Am,De.Il.color("signal.dangerLight"),De.Il.radii("statusLabel"),De.aU.space(-2.1),De.aU.space(0),De.Il.color("paper"),De.Il.color("signal.info"),De.aU.space(-1.5),De.aU.space(.5)),Lm=16,Fm=Ee.cp.div.withConfig({displayName:"StyledBoxWrapper"})(Tm||(Tm=(0,Se.c)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n }\n"])),De.Il.color("backgroundPopover"),(function(e){return e.rimless?"0":De.aU.space(0)}),De.Il.color("textPopover")),Hm=Ee.cp.div.withConfig({displayName:"StyledBox"})(Im||(Im=(0,Se.c)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,Ln.my)(e,"html")}),Rm,De.Il.color("textPopover")),Um=Ee.cp.i.withConfig({displayName:"StyledArrow"})(Mm||(Mm=(0,Se.c)(["\n position: absolute;\n width: ","px;\n height: ","px;\n left: 0;\n\n &[data-popper-placement*='bottom'] {\n top: ","px;\n\n &:before {\n border-width: 0 ","px ","px ","px;\n border-color: transparent transparent "," transparent;\n }\n }\n\n &[data-popper-placement*='top'] {\n bottom: ","px;\n\n &:before {\n border-width: ","px ","px 0 ","px;\n border-color: "," transparent transparent transparent;\n }\n }\n\n &[data-popper-placement*='right'] {\n left: -","px;\n top: -6px !important;\n\n &:before {\n border-width: ","px;\n border-color: transparent "," transparent transparent;\n }\n }\n\n &:before {\n content: '';\n display: block;\n border-style: solid;\n width: 0;\n height: 0;\n }\n"])),Lm,8,-8,8,8,8,De.Il.color("backgroundPopover"),-6.4,8,8,8,De.Il.color("backgroundPopover"),Lm,8,De.Il.color("backgroundPopover"));function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zm=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=e.rimless,i=(0,f.useState)(null),a=(0,Ue.c)(i,2),c=a[0],s=a[1],u=(0,f.useState)(null),l=(0,Ue.c)(u,2),d=l[0],p=l[1],h=(0,f.useState)(null),m=(0,Ue.c)(h,2),g=m[0],v=m[1],y=(0,f.useState)(!1),b=(0,Ue.c)(y,2),w=b[0],O=b[1],x=Dm(c,d,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:10}},{name:"arrow",options:{element:g}}]}),k=x.styles,S=x.attributes;return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{ref:s,onMouseOut:function(){O(!1)},onMouseOver:function(){O(!0)},children:t}),w&&n&&$i().createPortal((0,Ae.jsxs)(Fm,Bm(Bm({ref:p,style:k.popper,rimless:o},S.popper),{},{className:du,children:[(0,Ae.jsx)(Hm,{isPlainHtml:r,children:n}),(0,Ae.jsx)(Um,Bm({ref:v,style:k.arrow},S.popper))]})),document.body)]})};zm.defaultProps={isPlainHtml:!0,rimless:!1};const Ym=zm;const Vm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,c=o.DetailLink,s=Kr()(i,t.key,null),u=(0,Ae.jsx)("span",{style:n.css,children:r}),l=c?(0,Ae.jsx)(Fs,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ae.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,Ae.jsx)(Ym,{content:s?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(s)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return a&&!s&&a(t.key)},children:u})})})}):u;return(0,Ae.jsx)(Ks,{children:l})};var qm=s(36384),Gm=s.n(qm),Km=s(43028),$m=s.n(Km),Qm=s(90948),Xm=s.n(Qm),Zm=s(94024),Jm=s.n(Zm),eg=function(e){return"object"===(0,Yr.c)(e)&&null!==e};const tg=function e(t,n){return Jm()(t,(function(t,r,o){Xm()(r,n[o])||(t[o]=eg(r)&&eg(n[o])?e(r,n[o]):r)}))},ng=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},rg=function(e){return e?e.replace(/­/g,""):e};function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?og(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=["linkComp"],cg=function(e,t){var n=tg(e,t),r=$m()(gr()(n,ag),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},sg=(0,f.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Gm()(n)?(0,Ae.jsx)(Fs,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ae.jsx)(t,{entityKey:n,children:r})}):r}),cg);sg.propTypes={children:ke().node,entityKey:ke().any,linkComp:ke().func};const ug=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,c=n.DetailLink,s=Kr()(i,t.key,null);return(0,Ae.jsx)(fc.SingleValue,ig(ig({},e),{},{children:(0,Ae.jsx)(Vs,{onMouseOver:function(){return a&&!s&&a(t.key)},isDisabled:r,children:(0,Ae.jsx)(Ym,{content:s?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(s)}}):null,children:(0,Ae.jsx)(sg,{linkComp:c,entityKey:t.key,children:o})})})}))};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}var dg=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const pg=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(i||a)))return(0,Ae.jsx)(fc.ValueContainer,function(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,Ie.c)(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}({},e));var s=f.Children.map(r,(function(e){return dg(e)?e:null})),u=f.Children.map(r,(function(e){return dg(e)?null:e})),l=c&&n;return(0,Ae.jsxs)(Ae.Fragment,{children:[!l&&(0,Ae.jsx)(Ae.Fragment,{children:s}),(0,Ae.jsx)(Gs,{children:u})]})};function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mg=(0,Ee.QX)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,f.useRef)(null),S=(0,f.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},D=(0,f.useState)(P()),j=(0,Ue.c)(D,2),_=j[0],C=j[1],T=(0,f.useState)(E()),I=(0,Ue.c)(T,2),M=I[0],N=I[1],A=(0,f.useState)(!1),R=(0,Ue.c)(A,2),L=R[0],F=R[1],H=function(e){t&&t(e)},U=(0,f.useCallback)(g||function(){},[]),W=(0,f.useCallback)(ro()(U,800,{trailing:!0}),[]),B=Boolean(h),z=Boolean(p),Y=Boolean(O);return(0,Ae.jsx)(Hs,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){C(P()),N(E())}),0)},children:(0,Ae.jsx)(Us,{ref:S,children:(0,Ae.jsx)(ms,hg(hg({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:_,wrapperHeight:M,components:{ClearIndicator:ys,LoadingIndicator:lu,DropdownIndicator:Zs,IndicatorsContainer:su,IndicatorSeparator:null,Menu:Jf,MenuList:nh,MultiValueLabel:Vm,SingleValue:ug,ValueContainer:pg},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ae.jsx)(l,hg({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},g?{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),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&W(e,b),""===e&&"input-change"===n&&H(b)},options:(0,St.c)(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:$s(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:B,openAdvancedSearch:h,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const gg=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,c=e.onChange;return(0,Ae.jsx)(mg,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:to()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var vg,yg=Ee.cp.div.withConfig({displayName:"StyledBoolEdit"})(vg||(vg=(0,Se.c)(["\n margin: 5px 0;\n"])));const bg=function(e){return(0,Ae.jsx)(yg,{children:(0,Ae.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 wg,Og,xg=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ae.jsx)(Rm,{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(t)},breakWords:n,className:r})},kg=Ee.cp.div.withConfig({displayName:"StyledOption"})(wg||(wg=(0,Se.c)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),De.aU.space(-1),De.aU.space(-1.5)),Sg=Ee.cp.span.withConfig({displayName:"StyledLabel"})(Og||(Og=(0,Se.c)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,De.Gj)(),De.aU.space(-1.5));function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dg={single:"radio",multiple:"checkbox"},jg={single:{checked:!1},multiple:{}},_g=function(e,t){return t?(0,Ae.jsx)(xg,{value:e}):e},Cg=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,c=e.hideCheckbox,s=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,Ae.jsxs)(kg,{children:[!c&&(0,Ae.jsx)("input",{name:t,type:Dg[s],checked:i||!1,onChange:l,id:n,disabled:a}),(0,Ae.jsx)(Sg,{children:o||_g(r,u)})]})};const Tg=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return Eg(Eg({},t),t.id===e.target.id?{checked:e.target.checked}:jg[r.selectionType])}));t({options:o})}};return(0,Ae.jsx)(Ae.Fragment,{children:n.options.map((function(e){return(0,Ae.jsx)(Cg,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};s(79304);function Ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ng=(0,f.lazy)((function(){return Promise.all([s.e(904),s.e(784)]).then(s.bind(s,43976))}));const Ag=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:(t=e.value,(0,Ae.jsx)("div",{children:(0,Ae.jsx)("p",{children:t})})),children:(0,Ae.jsx)(Ng,Mg({},e))});var t};var Rg,Lg=Ee.cp.div.withConfig({displayName:"StyledEditorWrapper"})(Rg||(Rg=(0,Se.c)(["\n margin-top: ",";\n"])),De.aU.space(-1.5));const Fg=(0,Ee.QX)(Ke.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ae.jsx)(Lg,{children:(0,Ae.jsx)(Ag,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Hg,Ug,Wg,Bg=Ee.cp.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Hg||(Hg=(0,Se.c)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),zg=Ee.cp.div.withConfig({displayName:"StyledDatePickerWrapper"})(Ug||(Ug=(0,Se.c)(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Fr,Ur,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Yg=Ee.cp.input.withConfig({displayName:"StyledTimeInput"})(Wg||(Wg=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur),Vg="react-datepicker-time__input",qg="react-datepicker__day",Gg="react-datepicker__input",Kg=function(e){return e.classList.contains(qg)},$g=function(e){return e.classList.contains(Vg)},Qg=function(e){return e.classList.contains(Gg)},Xg=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(qg,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Zg=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Jg=function(e){var t=_p(e);return isNaN(t)?null:t},ev=function(e){return e?e.toISOString():null};const tv=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Jg:s,l=n.dateToValue,d=void 0===l?ev:l,p=(0,f.useRef)(null),h=(0,f.useState)(!1),m=(0,Ue.c)(h,2),g=m[0],v=m[1],y=(0,f.useState)(!1),b=(0,Ue.c)(y,2),w=b[0],O=b[1],x=u(e),k=i?u(i):void 0,S=a?u(a):void 0;(0,f.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(g),g)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[g]);var P=function(){return v(!1)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},D=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},j=function(){t(null),D(null)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=E(!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,i=void 0===o?0:o,a=t.second;return Fp(Hp(Up(e,void 0===a?0:a),i),r)}(n,{hour:Bl(r),minute:zl(r),second:Yl(r)}):n;C(o,e)}},C=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return jp(s,e)})),l=Hu(n),f=Bl(n)!==Bl(l)||zl(n)!==zl(l);(a&&!f||u)&&c&&(n=Mf(n)),t(d(n))}else j();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Zg(null===(h=p.current)||void 0===h?void 0:h.input))},T=function(e){if("Tab"===e.key)if(e.shiftKey)if(Qg(e.target))setTimeout((function(){return P()}),0);else if($g(e.target)){var t;D(x||E(!0)),Xg(null===(t=p.current)||void 0===t||null===(t=t.calendar)||void 0===t?void 0:t.componentNode)}else Kg(e.target)&&P();else Qg(e.target)&&g?(_(e),setTimeout((function(){return P()}),0)):$g(e.target)?P():Kg(e.target)&&(c?(_(e,!0),D(null),O(!0),setTimeout((function(){var e,t;t=null===(e=p.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(Vg));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(_(e),P()));var n;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Zg(null===(n=p.current)||void 0===n?void 0:n.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(g){if(g&&null===E(!1)){var r;D(x||E(!0)),Xg(null===(r=p.current)||void 0===r||null===(r=r.calendar)||void 0===r?void 0:r.componentNode)}}else v(!0),e.key="Handled".concat(e.key)},I=function(){var e;v((function(e){return!e})),D(null),Zg(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:P,onInputClick:I,onKeyDown:T,onChange:C,onCalendarOpen:function(){D(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:g,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:Gg},timeInputProps:{onKeyDown:T,className:Vg,tabIndex:w?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),j()}},calendarButtonProps:{onClick:I,className:g?"react-datepicker-ignore-onclickoutside":""}}};var nv="HH:mm:ss",rv="HH:mm",ov=function(e){return jp(e,rv)},iv=function(e){var t=function(e){return jp(e,nv)?Dp(e,nv,new Date):jp(e,rv)?Dp(e,rv,new Date):jp(e,"HH:")?Dp(e,"HH:",new Date):jp(e,"H")?Dp(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return Ul(e,rv)}(t):""};const av=function(e,t){var n=iv(e),r=(0,f.useState)(n),o=(0,Ue.c)(r,2),i=o[0],a=o[1],c=(0,f.useRef)(i),s=Ke.usePrevious(n);(0,f.useEffect)((function(){s!==n&&i===s&&a(n)}),[n,i,s]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),d=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!d||!p)return!1;c.current=n,a(n);var f=iv(n);f&&!ov(f)||t(f)}},onBlur:function(){if(i!==n){var e=iv(i);e&&ov(e)?(c.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var cv=["value","onChange","onKeyDown"];function sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Af();var lv=function(e){var t=e.onChange,n=e.label;return(0,Ae.jsx)(dt,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},dv=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Me.c)(e,cv),i=av(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ae.jsx)(Yg,uv(uv(uv({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},pv={strategy:"fixed"};const fv=(0,Ee.QX)((0,p.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,p=e.dateFormats,h=void 0===p?[]:p,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,f.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},O=(0,f.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){y.current=e,s(e)},P=tv(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:c,hasTime:d}),E=P.reactDatePickerProps,D=P.timeInputProps,j=P.clearButtonProps,_=P.calendarButtonProps;return(0,Ae.jsx)(Bg,{immutable:t,id:n,tabIndex:"-1",children:(0,Ae.jsxs)(zg,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},children:[(0,Ae.jsx)(ju(),uv(uv({id:n?"".concat(n,"-datepicker"):null},E),{},{disabled:t,dateFormat:[].concat((0,St.c)(g),(0,St.c)(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ae.jsx)(dv,uv({},D)),showTimeSelect:d,timeIntervals:15,popperProps:pv,todayButton:(0,Ae.jsx)(lv,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ae.jsx)(bt,uv({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},j)),!t&&(0,Ae.jsx)(bt,uv({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},_))]})})})));function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 mv=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,c=e.placeholder,s=(0,p.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(jf(s.locale)),d=Cf(s.locale),f=[l,d,If(l),If(d)];return(0,Ae.jsx)(fv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:c,events:a},u))};function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vv=(0,p.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,p.useIntl)(),c=(null==n?void 0:n.datePickerOptions)||{},s="".concat(_f(a.locale)),u="".concat(jf(a.locale)),l=Tf(a.locale),d=[s,l,If(s),If(l)],f=Cf(a.locale),h=[u,f,If(u),If(f)];return(0,Ae.jsx)(fv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(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:i},c))}));var yv,bv,wv,Ov,xv,kv,Sv,Pv,Ev=Ee.cp.section.withConfig({displayName:"StyledSection"})(yv||(yv=(0,Se.c)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Dv=Ee.cp.div.withConfig({displayName:"StyledButtonsWrapper"})(bv||(bv=(0,Se.c)(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),ct,De.aU.space(-2)),jv=Ee.cp.div.withConfig({displayName:"StyledDropzone"})(wv||(wv=(0,Se.c)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),ct,De.Il.color("backgroundItemHover")),_v=Ee.cp.div.withConfig({displayName:"StyledUploadInput"})(Ov||(Ov=(0,Se.c)(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,De.Gj)(),(function(e){return e.immutable?"not-allowed":"pointer"}),De.Il.color("paper"),(function(e){return e.immutable?De.Ml.shade2(e):De.Ml.base(e)}),De.aU.space(-2),ct,De.aU.space(-3.1),De.aU.space(-1.5)),Cv=Ee.cp.div.withConfig({displayName:"StyledUploadProgress"})(xv||(xv=(0,Se.c)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),De.aU.space(-2)),Tv=(0,Ee.cp)(Ln.G0).withConfig({displayName:"StyledUploadProgressText"})(kv||(kv=(0,Se.c)(["\n && {\n ","\n }\n"])),(0,De.Gj)({fontSize:De.aU.font(-1)})),Iv=Ee.cp.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Sv||(Sv=(0,Se.c)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),De.aU.space(-2)),Mv=Ee.cp.div.withConfig({displayName:"StyledView"})(Pv||(Pv=(0,Se.c)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),De.aU.space(-2));function Nv(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function Av(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function Rv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Lv(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Fv=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 Hv(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Fv.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 Uv=[".DS_Store","Thumbs.db"];function Wv(e){return"object"==typeof e&&null!==e}function Bv(e){return qv(e.target.files).map((function(e){return Hv(e)}))}function zv(e){return Nv(this,void 0,void 0,(function(){return Av(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 Hv(e)}))]}}))}))}function Yv(e,t){return Nv(this,void 0,void 0,(function(){var n;return Av(this,(function(r){switch(r.label){case 0:return e.items?(n=qv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Gv))]):[3,2];case 1:return[2,Vv(Kv(r.sent()))];case 2:return[2,Vv(qv(e.files).map((function(e){return Hv(e)})))]}}))}))}function Vv(e){return e.filter((function(e){return-1===Uv.indexOf(e.name)}))}function qv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Gv(e){if("function"!=typeof e.webkitGetAsEntry)return $v(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Xv(t):$v(e)}function Kv(e){return e.reduce((function(e,t){return Lv(Lv([],Rv(e),!1),Rv(Array.isArray(t)?Kv(t):[t]),!1)}),[])}function $v(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Hv(t);return Promise.resolve(n)}function Qv(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return[2,e.isDirectory?Xv(e):Zv(e)]}))}))}function Xv(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Nv(i,void 0,void 0,(function(){var i,a,c;return Av(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=s.sent(),e(i),[3,4];case 3:return a=s.sent(),n(a),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(Qv)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Zv(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Hv(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Jv=s(35264);function ey(e){return function(e){if(Array.isArray(e))return ay(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iy(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 ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach((function(t){ry(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||iy(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 iy(e,t){if(e){if("string"==typeof e)return ay(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)?ay(e,t):void 0}}function ay(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 cy="file-invalid-type",sy="file-too-large",uy="file-too-small",ly="too-many-files",dy=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:cy,message:"File type must be ".concat(t)}},py=function(e){return{code:sy,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},fy=function(e){return{code:uy,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},hy={code:ly,message:"Too many files"};function my(e,t){var n="application/x-moz-file"===e.type||(0,Jv.c)(e,t);return[n,n?null:dy(t)]}function gy(e,t,n){if(vy(e.size))if(vy(t)&&vy(n)){if(e.size>n)return[!1,py(n)];if(e.size<t)return[!1,fy(t)]}else{if(vy(t)&&e.size<t)return[!1,fy(t)];if(vy(n)&&e.size>n)return[!1,py(n)]}return[!0,null]}function vy(e){return null!=e}function yy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function by(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 wy(e){e.preventDefault()}function Oy(){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!yy(e)&&t&&t.apply(void 0,[e].concat(r)),yy(e)}))}}function xy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function ky(e){return/^.*\.[\w]+$/.test(e)}var Sy=["children"],Py=["open"],Ey=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Dy=["refKey","onChange","onClick"];function jy(e){return function(e){if(Array.isArray(e))return Ty(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cy(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 _y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Cy(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 Cy(e,t){if(e){if("string"==typeof e)return Ty(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)?Ty(e,t):void 0}}function Ty(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 Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(n),!0).forEach((function(t){Ny(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ry=(0,f.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=My(My({},Ly),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=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,f.useMemo)((function(){return function(e){if(vy(e))return Object.entries(e).reduce((function(e,t){var n=oy(t,2),r=n[0],o=n[1];return[].concat(ey(e),[r],ey(o))}),[]).filter((function(e){return xy(e)||ky(e)})).join(",")}(n)}),[n]),j=(0,f.useMemo)((function(){return function(e){if(vy(e)){var t=Object.entries(e).filter((function(e){var t=oy(e,2),n=t[0],r=t[1],o=!0;return xy(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(ky)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=oy(t,2),r=n[0],o=n[1];return ny(ny({},e),{},ry({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),_=(0,f.useMemo)((function(){return"function"==typeof v?v:By}),[v]),C=(0,f.useMemo)((function(){return"function"==typeof g?g:By}),[g]),T=(0,f.useRef)(null),I=(0,f.useRef)(null),M=_y((0,f.useReducer)(Wy,Uy),2),N=M[0],A=M[1],R=N.isFocused,L=N.isFileDialogActive,F=(0,f.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){I.current&&(I.current.files.length||(A({type:"closeDialog"}),C()))}),300)};(0,f.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[I,L,C,F]);var U=(0,f.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,f.useEffect)((function(){return w&&(document.addEventListener("dragover",wy,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",wy),document.removeEventListener("drop",W))}}),[T,w]),(0,f.useEffect)((function(){return!r&&b&&T.current&&T.current.focus(),function(){}}),[T,b,r]);var B=(0,f.useCallback)((function(e){P?P(e):console.error(e)}),[P]),z=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(jy(U.current),[e.target]),by(e)&&Promise.resolve(o(e)).then((function(t){if(!yy(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,c=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=oy(my(e,n),1)[0],i=oy(gy(e,r,o),1)[0],a=c?c(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:c,maxFiles:s,validator:E});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,D,a,i,c,s,E]),Y=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=by(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),by(e)&&l&&l(e))}),[T,l,S]),q=(0,f.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=_y(my(e,D),2),o=t[0],c=t[1],s=_y(gy(e,a,i),2),u=s[0],l=s[1],d=E?E(e):null;if(o&&u&&!d)n.push(e);else{var p=[c,l];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[hy]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[A,c,D,a,i,s,p,h,m,E]),G=(0,f.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],by(e)&&Promise.resolve(o(e)).then((function(t){yy(e)&&!S||q(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,q,B,S]),K=(0,f.useCallback)((function(){if(F.current){A({type:"openDialog"}),_();var e={multiple:c,types:j};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),A({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(F.current=!1,I.current?(I.current.value=null,I.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),A({type:"closeDialog"}))}))}else I.current&&(A({type:"openDialog"}),_(),I.current.value=null,I.current.click())}),[A,_,C,y,q,B,j,c]),$=(0,f.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[T,K]),Q=(0,f.useCallback)((function(){A({type:"focus"})}),[]),X=(0,f.useCallback)((function(){A({type:"blur"})}),[]),Z=(0,f.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,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=Ay(e,Ey);return My(My(Ny({onKeyDown:ee(Oy(i,$)),onFocus:ee(Oy(a,Q)),onBlur:ee(Oy(c,X)),onClick:J(Oy(s,Z)),onDragEnter:te(Oy(u,z)),onDragOver:te(Oy(l,Y)),onDragLeave:te(Oy(d,V)),onDrop:te(Oy(p,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),f)}}),[T,$,Q,X,Z,z,Y,V,G,x,k,r]),oe=(0,f.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,f.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Ay(e,Dy);return My(My({},Ny({accept:D,multiple:c,type:"file",style:{display:"none"},onChange:J(Oy(r,G)),onClick:J(Oy(o,oe)),tabIndex:-1},n,I)),i)}}),[I,n,c,G,r]);return My(My({},N),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:T,inputRef:I,open:J(K)})}(Ay(e,Sy)),o=r.open,i=Ay(r,Py);return(0,f.useImperativeHandle)(t,(function(){return{open:o}}),[o]),h().createElement(f.Fragment,null,n(My(My({},i),{},{open:o})))}));Ry.displayName="Dropzone";var Ly={disabled:!1,getFilesFromEvent:function(e){return Nv(this,void 0,void 0,(function(){return Av(this,(function(t){return Wv(e)&&Wv(e.dataTransfer)?[2,Yv(e.dataTransfer,e.type)]:function(e){return Wv(e)&&Wv(e.target)}(e)?[2,Bv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,zv(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};Ry.defaultProps=Ly,Ry.propTypes={children:ke().func,accept:ke().objectOf(ke().arrayOf(ke().string)),multiple:ke().bool,preventDropOnDocument:ke().bool,noClick:ke().bool,noKeyboard:ke().bool,noDrag:ke().bool,noDragEventsBubbling:ke().bool,minSize:ke().number,maxSize:ke().number,maxFiles:ke().number,disabled:ke().bool,getFilesFromEvent:ke().func,onFileDialogCancel:ke().func,onFileDialogOpen:ke().func,useFsAccessApi:ke().bool,autoFocus:ke().bool,onDragEnter:ke().func,onDragLeave:ke().func,onDragOver:ke().func,onDrop:ke().func,onDropAccepted:ke().func,onDropRejected:ke().func,onError:ke().func,validator:ke().func};const Fy=Ry;var Hy,Uy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Wy(e,t){switch(t.type){case"focus":return My(My({},e),{},{isFocused:!0});case"blur":return My(My({},e),{},{isFocused:!1});case"openDialog":return My(My({},Uy),{},{isFileDialogActive:!0});case"closeDialog":return My(My({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return My(My({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return My(My({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return My({},Uy);default:return e}}function By(){}function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Vy=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ae.jsxs)(_v,{immutable:n,children:[(0,Ae.jsx)(Fy,{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,Ae.jsx)(Ev,{children:(0,Ae.jsxs)(jv,Yy(Yy({},t()),{},{children:[(0,Ae.jsx)("input",Yy({},n())),Hy||(Hy=(0,Ae.jsx)(dt,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ae.jsx)(dt,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var qy,Gy=Ee.cp.figure.withConfig({displayName:"StyledPreview"})(qy||(qy=(0,Se.c)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),De.aU.space(-2.2),De.Il.color("border"),De.Il.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Ky=Gy;var $y;const Qy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,c=t?(0,Ae.jsx)("img",{alt:n,title:n,src:t}):(0,Ae.jsx)("div",{title:n,children:$y||($y=(0,Ae.jsx)(Ne.c,{icon:"file-alt"}))});return(0,Ae.jsxs)(Ky,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ae.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:c}),o&&(0,Ae.jsx)(Ln.cp.Figcaption,{children:o})]})};var Xy=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 Zy=function(e){var t=e.file,n=e.text;return(0,Ae.jsxs)(Cv,{children:[(0,Ae.jsx)(Qy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ae.jsxs)(Iv,{children:[(0,Ae.jsx)(He,{position:De.Wn.position.PREPEND}),(0,Ae.jsxs)(Tv,{children:[n||"uploading"," (",Xy(t.size),")"]})]})]})};var Jy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const eb={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return Jy(e,"download",!0)},addParameterToURL:Jy};function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?tb(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rb=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ae.jsxs)(Mv,{className:"StyledView",children:[(0,Ae.jsx)(Qy,nb(nb({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ae.jsxs)(Dv,{children:[!o&&(0,Ae.jsx)(dt,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ae.jsx)(dt,{children:(0,Ae.jsx)(Lr.cp,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:eb.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ab=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,i=(0,f.useRef)(t),a=(0,f.useState)({isUploading:!1,previewFile:null}),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,f.useEffect)((function(){Xm()(i.current,t)||u({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,Ae.jsx)(rb,ib(ib({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,Ae.jsx)(Zy,ib({file:s.previewFile,text:n.uploading},e)):(0,Ae.jsx)(Vy,ib(ib({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};ab.defaultProps={textResources:{}};const cb=ab;var sb=function(e){return(0,Ae.jsx)(cb,{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})};sb.defaultProps={options:{}};const ub=sb;var lb,db,pb=Ee.cp.input.withConfig({displayName:"StyledDurationEdit"})(lb||(lb=(0,Se.c)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Ur,(function(e){return e.width})),fb=Ee.cp.label.withConfig({displayName:"StyledDurationEditFocusable"})(db||(db=(0,Se.c)(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),De.aU.space(1),(function(e){return e.immutable?De.Il.color("textDisabled"):De.Il.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),hb=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=Pf(n),c=(0,f.useState)(!1),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=function(e,t){var n,r,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),o((r=i,(n=c)||r?((n<0||r<0)&&(n=Vr(n),r=Vr(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){l(!0)},h=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===i.allowNegative||e.preventDefault()},m=function(){return!0===i.allowNegative?"-?d+":"d+"},g=function(){return u||"number"==typeof n},v=function(e){return 9*(e+"").length},y=r&&Boolean(a.seconds);return(0,Ae.jsxs)(Hr,{onBlur:function(){l(!1)},immutable:r,id:t,children:[(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,min:!0===i.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(t,null)},onKeyPress:h,pattern:m(),step:1,width:v(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!r?"":a.hours+"","data-cy":"input-hours"}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.hoursLabel})]}),(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");d(null,t)},onKeyPress:h,pattern:m(),step:1,width:v(a.minutes),type:"number",value:a.minutes+"","data-cy":"input-minutes"}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.minutesLabel})]}),y&&(0,Ae.jsxs)(fb,{immutable:r,children:[(0,Ae.jsx)(pb,{disabled:r,immutable:r,onChange:function(){},width:v(a.seconds),type:"number",value:a.seconds+""}),g()&&(0,Ae.jsx)(Ln.cp.Span,{children:i.secondsLabel})]})]})};hb.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const mb=hb;var gb;const vb=Ee.cp.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(gb||(gb=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const yb=Ke.Debouncer((function(e){return(0,Ae.jsxs)(Hr,{immutable:e.immutable,children:[(0,Ae.jsx)(vb,{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,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var bb=s(61936),wb=s(51068),Ob=s.n(wb);function xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sb(){Sb=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),(0,bb.c)(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,Oe.c)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,Yr.c)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Sb.apply(this,arguments)}var Pb,Eb=["key","display","postcode","city","country","latitude","longitude"],Db=function(e){return e*Math.PI/180},jb=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:Db(i),longitude:Db(a)}};function _b(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 Cb(){}function Tb(e){return!!(e||"").match(/\d/)}function Ib(e){return null==e}function Mb(e){return Ib(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Nb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ab(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 Rb(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Lb(e,t){return Array(t+1).join(e)}function Fb(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,c=(o=o.replace(".","")).length;return a<0?o="0."+Lb("0",Math.abs(a))+o:a>=c?o+=Lb("0",a-c):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Hb(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Ab(e),i=o.beforeDecimal,a=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:s.toFixed(t)).split("."),l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]);return""+(c?"-":"")+l+(r?".":"")+Rb(u[1]||"",t,n)}function Ub(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"}(Pb||(Pb={}));var Wb,Bb,zb,Yb=(Wb=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},zb=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Bb&&e.length===Bb.length&&e.every((function(e,t){return e===Bb[t]}))?zb:(Bb=e,zb=Wb.apply(void 0,e))});function Vb(e){return Math.max(e.selectionStart,e.selectionEnd)}function qb(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Gb(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Kb(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 $b(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(Tb(e[n])||Tb(e[n-1]));return t}function Qb(e,t,n,r,o,i){void 0===i&&(i=Cb);var a=function(e){var t=(0,f.useRef)(e);t.current=e;var n=(0,f.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Mb(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Fb(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),c=(0,f.useState)((function(){return a(Ib(e)?t:e,n)})),s=c[0],u=c[1],l=e,d=n;Ib(e)&&(l=s.numAsString,d=!0);var p=a(l,d);return(0,f.useMemo)((function(){u(p)}),[p.formattedValue]),[s,function(e,t){e.formattedValue!==s.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Xb(e){return e.replace(/[^0-9]/g,"")}function Zb(e){return e}function Jb(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Zb);var c=e.removeFormatting;void 0===c&&(c=Xb);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=Cb);var m=e.onKeyDown;void 0===m&&(m=Cb);var g=e.onMouseUp;void 0===g&&(g=Cb);var v=e.onFocus;void 0===v&&(v=Cb);var y=e.onBlur;void 0===y&&(y=Cb);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=$b);var O=e.isValidInputCharacter;void 0===O&&(O=Tb);var x=e.isCharacterSame,k=_b(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Qb(b,s,Boolean(u),a,c,l),P=S[0],E=P.formattedValue,D=P.numAsString,j=S[1],_=(0,f.useRef)({formattedValue:E,numAsString:D}),C=function(e,t){_.current={formattedValue:e.formattedValue,numAsString:e.value},j(e,t)},T=(0,f.useState)(!1),I=T[0],M=T[1],N=(0,f.useRef)(null),A=(0,f.useRef)({setCaretTimeout:null,focusTimeout:null});(0,f.useEffect)((function(){return M(!0),function(){clearTimeout(A.current.setCaretTimeout),clearTimeout(A.current.focusTimeout)}}),[]);var R=a,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||(Ub(e,t),A.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==e.selectionEnd&&Ub(e,t)}),0))},H=function(e,t,n){return Kb(e,t,w(e),n)},U=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Gb);var c=o.findIndex((function(e){return e})),s=e.slice(0,c);t||n.startsWith(s)||(t=s,n=s+n,r+=s.length);for(var u=n.length,l=e.length,d={},p=new Array(u),f=0;f<u;f++){p[f]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==d[h]){p[f]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===p[g]||!i(n[g]));)g++;var v=g===u||-1===p[g]?l:p[g];for(g=r-1;g>0&&-1===p[g];)g--;var y=-1===g||-1===p[g]?0:p[g]+1;return y>v?v:r-y<v-r?y:v}(t,E,e,n,r,O,x);return o=Kb(t,o,r)};(0,f.useEffect)((function(){var e=_.current,t=e.formattedValue,n=e.numAsString;E===t||E===D&&t===n||C(L(E,D),{event:void 0,source:Pb.props})}),[E,D]);var W=N.current?Vb(N.current):void 0;("undefined"!=typeof window?f.useLayoutEffect:f.useEffect)((function(){var e=N.current;if(E!==_.current.formattedValue&&e){var t=U(_.current.formattedValue,E,W);e.value=E,F(e,t,E)}}),[E]);var B=function(e,t,n){var r=Yb(E,e),o=Object.assign(Object.assign({},r),{lastValue:E}),i=c(e,o),a=R(i);if(i=c(a,void 0),d&&!d(L(a,i))){var s=t.target,u=Vb(s),l=U(e,E,u);return s.value=E,F(s,l,E),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,i=e.event,a=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Vb(n);n.value=t,c=U(s,t,u)}n.value=t,r&&void 0!==c&&F(n,c,t)}t!==E&&C(L(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0},z=!I||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",Y=Object.assign({inputMode:z},k,{type:t,value:E,onChange:function(e){var t=e.target.value;B(t,e,Pb.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)(c=H(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||O(a[t])?"Backspace"!==r||O(a[t])||(c=H(a,t,"left")):c=H(a,t,"right");c!==t&&F(n,c,a),e.isUnitTestRun&&F(n,c,a),m(e)}else m(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var i=H(o,n);i!==n&&F(t,i,o)}g(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;N.current=t,A.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var i=H(o,n);i===n||0===n&&r===o.length||F(t,i,o),v(e)}),0)},onBlur:function(e){N.current=null,clearTimeout(A.current.focusTimeout),clearTimeout(A.current.setCaretTimeout),y(e)}});if("text"===n)return o?h().createElement(h().Fragment,null,o(E,k)||null):h().createElement("span",Object.assign({},k,{ref:i}),E);if(r){var V=r;return h().createElement(V,Object.assign({},Y,{ref:i}))}return h().createElement("input",Object.assign({},Y,{ref:i}))}function ew(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=tw(t),u=s.thousandSeparator,l=s.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,p=Ab(e,a),f=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Rb(h,n,!!r)),u&&(f=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)}(f,u,c)),o&&(f=o+f),i&&(h+=i),m&&(f="-"+f),e=f+(d&&l||"")+h}function tw(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 nw(e,t,n){var r;void 0===t&&(t=qb(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,d=u.end,p=tw(n),f=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[d]===h;if(Tb(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==f.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-a.length||x<i.length))||S&&a.startsWith(S)||(e=k);var P=0;e.startsWith(i)?P+=i.length:l<i.length&&(P=l),d-=P;var E=(e=e.substring(P)).length,D=e.length-a.length;e.endsWith(a)?E=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Nb(e),t?"g":void 0)}(h,!0))||[]).join("");var j=e.indexOf(h);e=e.replace(new RegExp(Nb(h),"g"),(function(e,t){return t===j?".":""}));var _=Ab(e,o),C=_.beforeDecimal,T=_.afterDecimal,I=_.addNegation;return u.end-u.start<s.end-s.start&&""===C&&m&&!parseFloat(T)&&(e=I?"-":""),e}function rw(e){e=function(e){var t=tw(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Cb);var i=e.onBlur;void 0===i&&(i=Cb);var a=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=_b(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=tw(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return ew(t,e)},b=function(t,n){return nw(t,n,e)},w=Ib(d)?l:d,O=null!=p?p: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);Ib(d)?Ib(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Mb(e)?e:("number"==typeof e&&(e=Fb(e)),O&&"number"==typeof c?Hb(e,c,Boolean(s)):e)},k=Qb(x(d),x(l),Boolean(O),y,b,f),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||Tb(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],c=r[i],s=Yb(n,t).to;return!!(o>=s.start&&o<s.end&&v&&v.includes(a)&&c===g)||a===c},onValueChange:D,format:y,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Ub(t,1),c&&s&&("Backspace"===r&&d[i-1]===g?(Ub(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&Ub(t,i+1);var p=!0===a?",":a;"Backspace"===r&&d[i-1]===p&&Ub(t,i-1),"Delete"===r&&d[i]===p&&Ub(t,i+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)),s&&c&&(n=Hb(n,c,s)),n!==P){var o=ew(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Pb.event})}i(t)}})}function ow(e){var t=rw(e);return h().createElement(Jb,Object.assign({},t))}var iw,aw=["immutable"];function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sw=(0,Ee.cp)((function(e){e.immutable;var t=(0,Me.c)(e,aw);return(0,Ae.jsx)(ow,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(iw||(iw=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const uw=sw;function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pw=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},fw=function(e){return null!=e&&!isNaN(parseFloat(e))},hw=function(e,t,n){return!fw(n)||!(fw(t)&&n>t)&&!(fw(e)&&n<e)},mw=function(e,t){return function(n){var r=n.floatValue;return pw(r)<pw(e)||hw(e,t,r)}};const gw=(0,p.injectIntl)(Ke.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,c=i.postPointDigits,s=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,p=i.suffix,f=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,c,u),g=dw(dw({isAllowed:mw(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!d}),v=void 0===e.value?"":e.value;return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(uw,dw(dw({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&hw(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:p,prefix:f},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!hw(s,m,r)&&(t.target.value=null)}}))})}),800));const vw=Ke.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,d=s.format,p=s.allowLeadingZeros,f=s.suffix,h=void 0===t?"":t;return(0,Ae.jsx)(Hr,{immutable:o,children:(0,Ae.jsx)(uw,{isAllowed:mw(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),hw(u,l,r)&&n(o)},value:h,allowLeadingZeros:p,suffix:f,format:d,placeholder:c,immutable:o})})}),800);var yw,bw,ww,Ow=Ee.cp.div.withConfig({displayName:"StyledWrapper"})(yw||(yw=(0,Se.c)(["\n display: flex;\n justify-content: stretch;\n"]))),xw=Ee.cp.div.withConfig({displayName:"StyledLocationWrapper"})(bw||(bw=(0,Se.c)(["\n flex-grow: 1;\n"]))),kw=Ee.cp.div.withConfig({displayName:"StyledDistanceWrapper"})(ww||(ww=(0,Se.c)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),De.Il.color("border"),De.aU.space(-.8),De.aU.space(.5));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 Pw(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,Ie.c)(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}const Ew=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,c=a.suggestions,s=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,p=a.emptySearchText,f=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?Ob()(e,Eb):void 0}(r),v=function(e){return e?e.map(jb):[]}(c);return(0,Ae.jsxs)(Ow,{children:[(0,Ae.jsx)(xw,{children:(0,Ae.jsx)(mg,{id:t,immutable:n,onChange:function(e){o(Pw(Pw({},function(e,t){return t?kb(kb({},e),Ob()(t,Eb)):gr()(e,Eb)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,St.c)(e.matchAll(Sb(/([\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 kb(kb({},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?f:p}})}),(0,Ae.jsx)(kw,{children:(0,Ae.jsx)(vw,{value:m,onChange:function(e){o(Pw(Pw({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Dw,jw=(0,f.lazy)((function(){return s.e(216).then(s.bind(s,6740))})),_w=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=e.options;if(r)return(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})});var a=i||{},c=a.contentLang,s=a.defaultLinkTarget,u=a.ckEditorConfig;return(0,Ae.jsx)(f.Suspense,{fallback:Dw||(Dw=(0,Ae.jsx)("i",{})),children:(0,Ae.jsx)(jw,{id:t,onChange:function(e){n&&n(e)},value:o,contentLang:c,defaultLinkTarget:s,ckEditorConfig:u})})};_w.defaultProps={value:""};const Cw=_w;var Tw,Iw;function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Aw=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,c=function(e){return function(t){return t[e]}},s=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,Ae.jsxs)(Ln.cp.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Nw(Nw({},r),{},(0,Ie.c)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,Ie.c)({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},f={value:r.city||"",onChange:u("city"),disabled:i};return(0,Ae.jsx)(Dr,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,Ae.jsxs)($r,{immutable:i,name:a,ref:u,children:[(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(Tw||(Tw=(0,Ae.jsx)(Ln.cp.Span,{children:"/"}))),(0,Ae.jsx)(wr(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:c("city"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,Ae.jsxs)(Br,{children:[n.isLoading&&(Iw||(Iw=(0,Ae.jsx)(He,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,Ae.jsx)(Lr.cp,{href:qr(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Lw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(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 Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Uw;const Ww=Ee.cp.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Uw||(Uw=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const Bw=function(e){var n=e.onChange,o=e.value,i=e.immutable,a=e.id,c=e.onLibLoaded,u=Kr()(e,"options.defaultCountry")||"CH",l=(0,f.useState)(null),d=(0,Ue.c)(l,2),p=d[0],m=d[1],g=h().createRef();(0,f.useEffect)((function(){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.e(8).then(s.bind(s,40460));case 2:t=e.sent,m(t),c&&c();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[c]);var v=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},y=o&&null!=p&&p.AsYouType?new p.AsYouType(u).input(o):o||"";return(0,Ae.jsxs)(Hr,{immutable:i,children:[(0,Ae.jsx)(Ww,{disabled:i||!p,id:a,name,onChange:function(e){var t=e.target.value,r=p?p.parseNumber(t,u):t,i=yr()(r)?new p.AsYouType(u).input(t).replace(/\s/g,""):p.formatNumber(r,"E.164");n(i);var a=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new p.AsYouType(u).input(t),o=new p.AsYouType(u).input(e),i=v(r,n),a=v(o,n)-i;window.requestAnimationFrame(function(){var e=n+a;this.setSelectionRange(e,e)}.bind(g.current))}}(t,o,a)},immutable:i||!p,ref:g,value:y}),y&&(0,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:"tel:".concat(o),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vw=function(e){return e.map((function(e){return Ob()(e,["key","display"])}))};const qw=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,Ae.jsx)(mg,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=i.options.map((function(e){return Yw(Yw({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Vw(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Vw(i.options)})};function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Kw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function $w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qw=function(e){return(0,Ae.jsx)(mg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};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}const Zw=function(e){return(0,Ae.jsx)(mg,function(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,Ie.c)(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}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Jw=Ke.Debouncer((function(e){return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(vb,{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 eO,tO,nO,rO,oO,iO=s(57292),aO=Ee.cp.div.withConfig({displayName:"StyledTermsEdit"})(eO||(eO=(0,Se.c)(["\n margin: "," 0;\n display: flex;\n"])),De.aU.space(-1.4)),cO=Ee.cp.input.withConfig({displayName:"StyledCheckbox"})(tO||(tO=(0,Se.c)(["\n margin-right: ",";\n"])),De.aU.space(-1.5)),sO=(0,Ee.gV)(nO||(nO=(0,Se.c)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),De.Il.color("secondary"),De.Il.color("secondaryLight"),De.Il.color("secondary")),uO=Ee.cp.a.withConfig({displayName:"StyledTermsLink"})(rO||(rO=(0,Se.c)(["\n ","\n"])),sO),lO=(0,Ee.cp)(xg).withConfig({displayName:"StyledHtmlFormatter"})(oO||(oO=(0,Se.c)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),sO);const dO=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,c=e.id,s=e.immutable,u=(0,f.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:iO.c.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,f.useCallback)((function(){return o(null)}),[o]),d=(0,f.useCallback)((function(e){return o(u(e))}),[o,u]),p=(0,f.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,f.useEffect)((function(){n()}),[]),(0,f.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!s||d(!1)}),[r,i,s,d]);var h=(null==r?void 0:r.checkbox)&&(0,Ae.jsx)(cO,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return p(e.target.checked)},id:c}),m=(null==r?void 0:r.link)&&(0,Ae.jsx)(uO,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,Ae.jsx)(lO,{value:r.label,breakWords:!0})});return!s&&(0,Ae.jsxs)(aO,{children:[h,m||(0,Ae.jsx)(lO,{value:null==r?void 0:r.label,breakWords:!0})]})};const pO=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var fO,hO,mO,gO=(0,Ee.gV)(fO||(fO=(0,Se.c)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Ur),vO=Ee.cp.div.withConfig({displayName:"StyledSizeWrapper"})(hO||(hO=(0,Se.c)(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),gO),yO=Ee.cp.textarea.withConfig({displayName:"StyledTextarea"})(mO||(mO=(0,Se.c)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),gO,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?De.aU.space(-1.2):"0"}));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,Ie.c)(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}const OO=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,c=(0,f.useState)(t),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=!pO(),p=pO(),h=(0,f.useCallback)(ro()(l,500,{trailing:!0}),[]);return(0,f.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ae.jsx)(vO,wO(wO({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ae.jsx)(yO,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:p})}))};const xO=Ke.Debouncer((function(e){return(0,Ae.jsx)(Hr,{immutable:e.immutable,children:(0,Ae.jsx)(OO,{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 kO;const SO=Ee.cp.input.withConfig({displayName:"StyledTimeEdit"})(kO||(kO=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);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 EO(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,Ie.c)(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}const DO=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=av(n,t),c=a.inputProps,s=a.clearButtonProps,u=n&&!r;return(0,Ae.jsxs)(Hr,{immutable:r,children:[(0,Ae.jsx)(SO,EO({type:"text",disabled:r,id:o,immutable:r,name:i},c)),u&&(0,Ae.jsx)(Br,{children:(0,Ae.jsx)(bt,EO(EO({icon:"times"},s),{},{tabIndex:-1}))})]})};var jO;const _O=Ee.cp.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(jO||(jO=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur);const CO=Ke.Debouncer((function(e){return(0,Ae.jsxs)(Hr,{immutable:e.immutable,children:[(0,Ae.jsx)(_O,{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,Ae.jsx)(Br,{children:(0,Ae.jsx)(Lr.cp,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var MO={boolean:bg,"boolean-select":gg,choice:Tg,code:Fg,date:mv,datetime:vv,document:ub,duration:mb,email:yb,geosearch:Ew,html:Cw,integer:vw,address:Jr,location:Aw,"multi-remote":Lw,"multi-select":Hw,number:gw,phone:Bw,"pseudo-select":qw,remote:Kw,"search-filter":Qw,"single-select":Zw,string:Jw,terms:dO,text:xO,url:CO,time:DO};const NO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(MO[t]){var u=MO[t],l=IO(IO({},gr()(i,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,Ae.jsx)("div",IO(IO({},l),{},{"data-cy":"form-field",children:(0,Ae.jsx)(u,IO(IO({value:n,onChange:null==i?void 0:i.onChange},yr()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function AO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LO=function(e){return(0,Ae.jsx)(zr,{children:(0,Ae.jsx)(NO,RO({componentType:e.type},gr()(e,"type")))})};const FO=(0,Ee.QX)((function(e){return(0,Ae.jsx)(Ne.c,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const HO=function(e){var t=(0,p.useIntl)();return(0,Ae.jsx)(Ln.cp.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ae.jsx)(p.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC"})})};var UO;const WO=(0,p.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),UO||(UO=(0,Ae.jsx)(Ln.cp.Span,{}));var o=Ul(r,"HH:mm");return(0,Ae.jsxs)(Ln.cp.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ae.jsx)(p.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var BO;function zO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?zO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const VO=function(e){var t=e.options||{},n=(0,Ae.jsxs)(Ae.Fragment,{children:[t.title&&(0,Ae.jsx)(Ln.cp.H5,{children:t.title}),(0,Ae.jsx)(xg,YO({},e))]});return"text"===t.mode?n:(0,Ae.jsx)(Ym,{content:n,isPlainHtml:!0,children:BO||(BO=(0,Ae.jsx)(Nm,{children:(0,Ae.jsx)(Ne.c,{icon:"question-circle"})}))})};const qO=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=Kr()(r,t.resourceKey,null);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Ym,{content:i?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(i)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ae.jsx)(Lr.cp,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ae.jsx)(Lr.cp,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:eb.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const GO=function(e){return(0,Ae.jsx)(cb,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const KO=function(e){var t=e.value,n=parseInt(t),r=Ef(n);return(0,Ae.jsx)(Ln.cp.Time,{dateTime:r,title:r,children:r})};const $O=function(e){return(0,Ae.jsx)(Lr.cp,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const QO=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JO=function(){return"; "};const ex=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,c=i.linkProps,s=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ae.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ae.jsx)(a.DetailLink,ZO(ZO({},c),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ae.jsx)(JO,{},"sep".concat(n)),t]})):null;return(0,Ae.jsx)(Ln.cp.Span,{breakWords:r,useTitle:o,children:s})};const tx=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ae.jsx)(p.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const nx=function(e){var t;return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ae.jsx)(p.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function rx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ox(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ix=(0,f.lazy)((function(){return Promise.all([s.e(8),s.e(570)]).then(s.bind(s,33992))}));const ax=function(e){return(0,Ae.jsx)(f.Suspense,{fallback:"",children:(0,Ae.jsx)(ix,ox({},e))})};function cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ux=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle;t=ng(t);var i=(0,Ae.jsx)(Ln.cp.Span,{breakWords:r,useTitle:o,children:t.display}),a=n||{},c=a.tooltips,s=a.loadTooltip,u=a.navigationStrategy,l=a.linkProps,d=Kr()(c,t.key,null);return(null!=u&&u.DetailLink?(0,Ae.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ae.jsx)(u.DetailLink,sx(sx({},l),{},{entityKey:t.key,children:(0,Ae.jsx)(Ym,{content:d?(0,Ae.jsx)("div",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(d)}}):null,children:(0,Ae.jsx)("span",{onMouseOver:function(){return s&&!d&&s(t.key)},children:i})})}))}):null)||i};const lx=function(e){return(0,Ae.jsx)(Ln.cp.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};const dx=function(e){return e.breakWords?e.value.split("\n").map((function(t,n){return(0,Ae.jsx)(Ln.cp.P,{useTitle:e.useTitle,children:t},n)})):(0,Ae.jsx)(Ln.cp.Span,{breakWords:!1,useTitle:e.useTitle,children:e.value.replace("/\n/g"," ")})};var px=function(e,t){return parseInt(e.split(":")[t])||0};const fx=(0,p.injectIntl)((function(e){var t=e.value,n=(e.intl,px(t,0)),r=px(t,1),o=px(t,2),i=px(t,3),a=new Date(2e3,1,1,n,r,o,i),c=Ul(a,"HH:mm:ss.SSS"),s=Ul(a,"HH:mm");return(0,Ae.jsx)(Ln.cp.Time,{dateTime:c,title:s,children:s})}));const hx=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ae.jsx)(Lr.cp,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var mx,gx={boolean:FO,date:HO,datetime:WO,document:GO,"document-compact":qO,duration:KO,email:$O,html:xg,integer:QO,"multi-remote":ex,"multi-select":ex,number:tx,percent:nx,phone:ax,remote:ux,"single-select":ux,string:lx,text:dx,time:fx,url:hx,description:VO};const vx=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,c=void 0===a||a;if(gx[t]){var s=gx[t];return(0,Ae.jsx)(s,{value:n,options:r,breakWords:i,useTitle:c})}return console.log("No FormattedValue mapper defined for component type",t,n),mx||(mx=(0,Ae.jsx)("div",{}))};var yx;const bx=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle;return null==n||""===n?yx||(yx=(0,Ae.jsx)("span",{})):(0,Ae.jsx)(vx,{componentType:t,value:n,options:r,breakWords:o,useTitle:i})},wx=bx;var Ox="checked",xx="indeterminate",kx="unchecked";const Sx=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,f.useRef)(null);return(0,f.useLayoutEffect)((function(){i.current.indeterminate=t===xx,i.current.checked=t===Ox}),[t]),(0,Ae.jsx)("input",{ref:i,onChange:function(e){r(t===xx?kx:e.target.checked?Ox:kx)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},Px=Sx;var Ex;Ee.cp.div.withConfig({displayName:"StyledLayoutBox"})(Ex||(Ex=(0,Se.c)(["\n height: fit-content;\n margin-bottom: ",";\n"])),De.aU.space(.25));var Dx,jx=Ee.cp.div.withConfig({displayName:"StyledLayoutContainer"})(Dx||(Dx=(0,Se.c)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),De.aU.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(De.aU.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const _x=jx;var Cx=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=(0,f.useRef)(null),i=(0,f.useState)(0),a=(0,Ue.c)(i,2),c=a[0],s=a[1],u=function(){s(o.current.offsetWidth)};return(0,f.useEffect)((function(){return u(),window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}),[]),(0,Ae.jsx)(_x,{ref:o,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:r,children:t})};Cx.defaultProps={minBoxWidth:250};var Tx,Ix,Mx,Nx,Ax=s(93896),Rx=(0,Ee.xZ)(Tx||(Tx=(0,Se.c)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Lx=(0,Ee.gV)(Ix||(Ix=(0,Se.c)(["\n animation: "," 400ms ease-in-out both;\n"])),Rx),Fx=Ee.cp.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Mx||(Mx=(0,Se.c)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),De.aU.space(-1),Lx,Ax.G0,De.aU.space(-1));const Hx=Ee.cp.div.withConfig({displayName:"StyledLoadMask"})(Nx||(Nx=(0,Se.c)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Ux;const Wx=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,f.useState)(!1),c=(0,Ue.c)(a,2),s=c[0],u=c[1],l=(0,f.useState)(!0),d=(0,Ue.c)(l,2),p=d[0],h=d[1];(0,f.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,p&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,Ae.jsx)(Hx,{className:i,children:m?r:(0,Ae.jsxs)(Fx,{children:[Ux||(Ux=(0,Ae.jsx)(He,{size:"30px"},"loading-spinner")),o&&(0,Ae.jsx)(Ln.cp.Span,{children:o},"loadingText")]})})};var Bx,zx=Ee.cp.div.withConfig({displayName:"StyledPanel"})(Bx||(Bx=(0,Se.c)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),De.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),De.Il.color("borderLight"),De.Il.radii("form"));const Yx=zx;const Vx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,c=e.isToggleable,s=void 0===c||c,u=e.onToggle,l=(0,f.useState)(a),d=(0,Ue.c)(l,2),p=d[0],m=d[1],g="boolean"==typeof o,v=function(){s&&(g?"function"==typeof u&&u(!o):m(!p))};return(0,Ae.jsx)(Yx,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isFramed:r,isOpen:g?o:p,isToggleable:s,toggleOpenState:v})}))})};var qx,Gx=Ee.cp.div.withConfig({displayName:"StyledPanelBody"})(qx||(qx=(0,Se.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?De.aU.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Kx=Gx;const $x=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ae.jsx)(Kx,{isFramed:n,isOpen:r,children:(0,Ae.jsx)("div",{children:t})})};const Qx=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,f.useState)(t),o=(0,Ue.c)(r,2),i=o[0],a=o[1];return(0,Ae.jsx)(Ae.Fragment,{children:h().Children.map(n,(function(e,t){return h().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Xx;const Zx=Ee.cp.div.withConfig({displayName:"StyledPanelGroup"})(Xx||(Xx=(0,Se.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),De.aU.space(0),Yx,De.aU.space(-1));function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ek(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const tk=function(e){return(0,Ae.jsx)(Zx,{children:(0,Ae.jsx)(Qx,ek({},e))})};var nk,rk,ok,ik,ak,ck,sk,uk="1px",lk=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(nk||(nk=(0,Se.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),De.aU.font(1),De.Il.color("text"),!De.iY&&(0,Ee.gV)(rk||(rk=(0,Se.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),De.Il.color("secondaryLight"))),dk=Ee.cp.div.withConfig({displayName:"StyledPanelHeader"})(ok||(ok=(0,Se.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),De.Il.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,Ee.gV)(ik||(ik=(0,Se.c)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),De.Il.radii("form"),uk,De.Il.radii("form"),uk):(0,Ee.gV)(ak||(ak=(0,Se.c)(["\n calc("," - ",")\n "])),De.Il.radii("form"),uk)}),(function(e){return e.isFramed?(0,Ee.gV)(ck||(ck=(0,Se.c)(["\n "," ","\n "])),De.aU.space(-1.7),De.aU.space(-.375)):0}),!De.iY&&(0,Ee.gV)(sk||(sk=(0,Se.c)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),lk),(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(uk,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(uk,";\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(uk,";\n }\n ")}(e)}));const pk=dk;var fk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,c=e.options;return(0,Ae.jsxs)(pk,{isFramed:n,isOpen:r,onClick:a,children:[(0,Ae.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ae.jsx)(lk,{children:(0,Ae.jsx)(Ne.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};fk.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const hk={Body:$x,Group:tk,Header:fk,Wrapper:Vx};var mk,gk=Ee.cp.div.withConfig({displayName:"StyledPanel"})(mk||(mk=(0,Se.c)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),De.Il.color("paper"),(function(e){return e.isFramed?"solid":"none"}),De.Il.color("borderLight"),De.Il.radii("form"));const vk=gk;const yk=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,f.useState)(i),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,Ae.jsx)(vk,{isFramed:r,children:h().Children.map(t,(function(e){return h().cloneElement(e,{isOpen:s,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!s)}})}))})};var bk,wk,Ok=Ee.cp.div.withConfig({displayName:"StyledPanelBody"})(bk||(bk=(0,Se.c)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Ee.gV)(wk||(wk=(0,Se.c)(["\n "," "," "," ","\n "])),De.aU.space(-1),De.aU.space(.2),De.aU.space(.2),De.aU.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const xk=Ok;const kk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ae.jsx)(xk,{isFramed:n,isOpen:r,children:(0,Ae.jsx)("div",{children:t})})};var Sk;const Pk=Ee.cp.div.withConfig({displayName:"StyledPanelGroup"})(Sk||(Sk=(0,Se.c)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),De.aU.space(0),vk,De.aU.space(-1));function Ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ek(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jk=function(e){return(0,Ae.jsx)(Pk,{children:(0,Ae.jsx)(Qx,Dk({},e))})};var _k,Ck,Tk,Ik="1px",Mk=Ee.cp.div.withConfig({displayName:"StyledPanelHeader"})(_k||(_k=(0,Se.c)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),De.Il.color("paper"),De.Il.radii("form"),Ik,De.Il.radii("form"),Ik,(function(e){return e.isFramed?De.aU.space(.2):0}),De.Il.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: $").concat(Ik,";\n }\n ")}(e)})),Nk=Ee.cp.span.withConfig({displayName:"StyledIconWrapper"})(Ck||(Ck=(0,Se.c)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),De.aU.font(1),De.Il.color("text"),!De.iY&&(0,Ee.gV)(Tk||(Tk=(0,Se.c)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),De.Il.color("secondaryLight")));const Ak=Mk;var Rk=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=e.toggleOpenState,c=e.options;return(0,Ae.jsxs)(Ak,{isFramed:n,isOpen:r,onClick:o?a:function(){},children:[(0,Ae.jsx)("div",{children:h().Children.map(t,(function(e){return h().cloneElement(e)}))}),o&&i&&(0,Ae.jsx)(Nk,{children:(0,Ae.jsx)(Ne.c,{icon:r?"chevron-up":"chevron-down",onClick:a,title:r?c.collapseButtonText:c.unfoldButtonText})})]})};Rk.defaultProps={showToggler:!0,options:{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}};const Lk={Body:kk,Group:jk,Header:Rk,Wrapper:yk};var Fk={Body:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Body),iO.c.EmbedType.widget,Lk.Body),Group:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Group),iO.c.EmbedType.widget,Lk.Group),Header:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Header),iO.c.EmbedType.widget,Lk.Header),Wrapper:(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,hk.Wrapper),iO.c.EmbedType.widget,Lk.Wrapper)};iO.c.embedStrategyFactory({mapping:Fk.Body}),iO.c.embedStrategyFactory({mapping:Fk.Group}),iO.c.embedStrategyFactory({mapping:Fk.Header}),iO.c.embedStrategyFactory({mapping:Fk.Wrapper});var Hk;Ee.cp.div.withConfig({displayName:"StyledButtonWrapper"})(Hk||(Hk=(0,Se.c)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),De.aU.space(0),De.Il.color("paper"));s(18284);var Uk=new AbortController,Wk=!1;window.addEventListener("beforeunload",(function(e){Wk?(e.preventDefault(),e.returnValue=""):Uk.abort()})),window.addEventListener("pagehide",(function(){Uk.signal.aborted||Uk.abort()}));var Bk=function(e){return"@@redux-saga/"+e},zk=Bk("CANCEL_PROMISE"),Yk=Bk("CHANNEL_END"),Vk=Bk("IO"),qk=Bk("MATCH"),Gk=Bk("MULTICAST"),Kk=Bk("SAGA_ACTION"),$k=Bk("SELF_CANCELLATION"),Qk=Bk("TASK"),Xk=Bk("TASK_CANCEL"),Zk=Bk("TERMINATE"),Jk=Bk("LOCATION");function eS(){return eS=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},eS.apply(this,arguments)}var tS=function(e){return null==e},nS=function(e){return null!=e},rS=function(e){return"function"==typeof e},oS=function(e){return"string"==typeof e},iS=Array.isArray,aS=function(e){return e&&rS(e.then)},cS=function(e){return e&&rS(e.next)&&rS(e.throw)},sS=function e(t){return t&&(oS(t)||dS(t)||rS(t)||iS(t)&&t.every(e))},uS=function(e){return e&&rS(e.take)&&rS(e.close)},lS=function(e){return rS(e)&&e.hasOwnProperty("toString")},dS=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},pS=function(e){return uS(e)&&e[Gk]};var fS=function(e){return function(){return e}},hS=fS(!0),mS=function(){};var gS=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var vS=function(e,t){eS(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function yS(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function bS(e){var t=!1;return function(){t||(t=!0,e())}}var wS=function(e){throw e},OS=function(e){return{value:e,done:!0}};function xS(e,t,n){void 0===t&&(t=wS),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:OS,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function kS(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var SS=function(e){return Array.apply(null,new Array(e))},PS=function(e){return function(t){return e(Object.defineProperty(t,Kk,{value:!0}))}},ES=function(e){return e===Zk},DS=function(e){return e===Xk},jS=function(e){return ES(e)||DS(e)};function _S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=iS(e)?SS(r):{},c={};return n.forEach((function(e){var n=function(n,c){o||(c||jS(n)?(t.cancel(),t(n,c)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=mS,c[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return c[e].cancel()})))},c}function CS(e){return{name:e.name||"anonymous",location:TS(e)}}function TS(e){return e[Jk]}function IS(){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 MS={isEmpty:hS,put:mS,take:mS};function NS(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var u;if(r<e)a(c);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=c,i=o=(o+1)%e;break;case 4:u=2*e,n=s(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(c)}},take:c,flush:s}}var AS=function(){return MS},RS=function(e){return NS(e,4)},LS="TAKE",FS="PUT",HS="ALL",US="RACE",WS="CALL",BS="CPS",zS="FORK",YS="JOIN",VS="CANCEL",qS="SELECT",GS="ACTION_CHANNEL",KS="CANCELLED",$S="FLUSH",QS="GET_CONTEXT",XS="SET_CONTEXT",ZS=function(e,t){var n;return(n={})[Vk]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function JS(e,t){return void 0===e&&(e="*"),sS(e)?(nS(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),ZS(LS,{pattern:e})):pS(e)&&nS(t)&&sS(t)?ZS(LS,{channel:e,pattern:t}):uS(e)?(nS(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),ZS(LS,{channel:e})):void 0}function eP(e,t){return tS(t)&&(t=e,e=void 0),ZS(FS,{channel:e,action:t})}function tP(e){var t=ZS(HS,e);return t.combinator=!0,t}function nP(e,t){var n,r=null;return rS(e)?n=e:(iS(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&oS(n)&&rS(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function rP(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 ZS(WS,nP(e,n))}function oP(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 ZS(zS,nP(e,n))}function iP(e){void 0===e&&(e=gS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ZS(qS,{selector:e,args:n})}var aP=function(e){return{done:!0,value:e}},cP={};function sP(e){return uS(e)?"channel":lS(e)?String(e):rS(e)?e.name:String(e)}function uP(e,t,n){var r,o,i,a=t;function c(t,n){if(a===cP)return aP(t);if(n&&!o)throw a=cP,n;r&&r(t);var c=n?e[o](n):e[a]();return a=c.nextState,i=c.effect,r=c.stateUpdater,o=c.errorState,a===cP?aP(t):i}return xS(c,(function(e){return c(null,e)}),n)}function lP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:JS(e)},c=function(e){return i=e};return uP({q1:function(){return{nextState:"q2",effect:a,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:oP.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+sP(e)+", "+t.name+")")}function dP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,c={done:!1,value:JS(e)},s=function(e){return{done:!1,value:oP.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=$k),ZS(VS,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return uP({q1:function(){return{nextState:"q2",effect:c,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:s(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:s(a),stateUpdater:l}}},"q1","takeLatest("+sP(e)+", "+t.name+")")}function pP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oP.apply(void 0,[lP,e,t].concat(r))}function fP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oP.apply(void 0,[dP,e,t].concat(r))}var hP=function(e,t,n){return r().mark((function o(){var i,a,s,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),s=0;s<i;s++)a[s]=u[s];case 1:return r.prev=2,r.next=5,rP.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Uk.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,eP(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:c.c.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const mP={autoRestartSaga:hP,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tP(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(hP(t,null,n)))},abortController:Uk,deactivatePreventFromLeaving:function(){Wk=!1},activatePreventFromLeaving:function(){Wk=!0}};ke().node,ke().bool,ke().string,ke().bool,ke().objectOf(ke().arrayOf(ke().oneOfType([ke().node,ke().string]))),ke().bool,ke().bool,ke().string,ke().string,ke().oneOf(["inside","outside-responsive","outside"]),ke().bool,ke().string,ke().bool,ke().string,ke().bool;var gP,vP,yP,bP=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.BASE,De.Il.color("text")),De.Wn.condition.DANGER,De.Il.color("signal.danger")),De.Wn.condition.SUCCESS,De.Il.color("signal.success")),De.Wn.condition.WARNING,De.Il.color("signal.warning")),De.Wn.condition.INFO,De.Il.color("signal.info")),wP=(0,Ee.cp)(Ln.KM).withConfig({displayName:"StyledSignalList"})(gP||(gP=(0,Se.c)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),OP=Ee.cp.span.withConfig({displayName:"StyledSignalListIcon"})(vP||(vP=(0,Se.c)(["\n margin-left: -1px;\n margin-right: ",";\n"])),De.aU.space(-2)),xP=(0,Ee.cp)(Ln.cP).withConfig({displayName:"StyledSignalListItem"})(yP||(yP=(0,Se.c)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return bP[t]}(e)}));const kP=function(e){return(0,Ae.jsx)(wP,{as:"ul",children:h().Children.map(e.children,(function(e){return h().cloneElement(e)}))})};var SP,PP=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.BASE,!1),De.Wn.condition.DANGER,"times"),De.Wn.condition.SUCCESS,"check"),De.Wn.condition.WARNING,"exclamation-triangle"),De.Wn.condition.INFO,"info"),EP=function(e){var t=PP[e.condition];return t?(0,Ae.jsx)(Ne.c,{icon:t,position:De.Wn.position.SOLE,hasFixedWidth:!1}):SP||(SP=(0,Ae.jsx)("i",{children:"•"}))},DP=function(e){return(0,Ae.jsxs)(xP,{condition:e.condition,children:[(0,Ae.jsx)(OP,{children:EP(e)}),e.label,h().Children.map(e.children,(function(e){return h().cloneElement(e)}))]})};DP.defaultProps={condition:De.Wn.condition.BASE};const jP={List:kP,Item:DP};const _P=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,St.c)(e.error[n]))})),(0,Ae.jsx)(jP.List,{children:t.map((function(e,t){return(0,Ae.jsx)(jP.Item,{condition:"danger",label:e},t)}))})};var CP,TP,IP,MP,NP,AP,RP,LP,FP,HP,UP,WP,BP,zP,YP="1.1px",VP=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},qP=Ee.cp.label.withConfig({displayName:"StyledStatedValueLabel"})(CP||(CP=(0,Se.c)(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,De.Gj)({lineHeight:De.Il.lineHeight("dense")}),De.Il.color("paper"),(function(e){return VP(e)}),(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(TP||(TP=(0,Se.c)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),De.aU.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(IP||(IP=(0,Se.c)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n padding: 0 "," 0 ","; // if immutable remove left padding\n width: fit-content;\n left: ",";\n "])),De.aU.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":De.aU.space(-1.8)}))}),(function(e){return e.styles})),GP=Ee.cp.div.withConfig({displayName:"StyledInputArea"})(MP||(MP=(0,Se.c)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(NP||(NP=(0,Se.c)(["\n width: auto;\n "])))})),KP=Ee.cp.div.withConfig({displayName:"StyledStatedValueBox"})(AP||(AP=(0,Se.c)(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),YP,(function(e){return De.mA[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),De.Il.radii("form"),De.aU.space(-2.5),De.aU.space(-1.5),(function(e){return!e.immutable&&(0,De.i)(e)}),(function(e){return VP(e)}),(0,De.Gj)(),Rm,(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(RP||(RP=(0,Se.c)(["\n padding: "," "," "," ",";\n "])),De.aU.space(-1),De.aU.space(-1.7),De.aU.space(-2),De.aU.space(-1))}),(function(e){return e.styles})),$P=Ee.cp.p.withConfig({displayName:"StyledStatedValueDescription"})(LP||(LP=(0,Se.c)(["\n &&& {\n ","\n }\n"])),(0,De.Gj)({fontSize:De.aU.font(-1)})),QP=Ee.cp.div.withConfig({displayName:"StyledStatedValueError"})(FP||(FP=(0,Se.c)([""]))),XP=Ee.cp.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(HP||(HP=(0,Se.c)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),De.aU.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(UP||(UP=(0,Se.c)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),De.aU.space(-1.5))})),ZP=Ee.cp.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(WP||(WP=(0,Se.c)(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),De.aU.space(-1.5),KP,$P,QP,De.aU.space(-2),$P,De.aU.space(-1),YP,(function(e){return"outside"===e.labelPosition&&(0,Ee.gV)(BP||(BP=(0,Se.c)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Ee.gV)(zP||(zP=(0,Se.c)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JP(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const tE=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,d=e.label,p=e.mandatory,f=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&s&&Object.keys(s).length>0,w=p&&f?", ".concat(f):"",O="".concat(rg(d)).concat(w),x=g||function(e,t,n,r){return t?De.Wn.condition.DANGER:e?De.Wn.condition.INFO:n&&!r?De.Wn.condition.WARNING:void 0}(a,b,p,u),k={__html:"".concat(Rn.sanitizeHtml(d)).concat(p?" *":"")},S=!c&&!h&&{htmlFor:l};return(0,Ae.jsx)(Dr,{children:function(e){var l=e.getRef;return(0,Ae.jsx)(XP,{labelPosition:v,children:(0,Ae.jsxs)(ZP,{labelPosition:v,ref:l,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ae.jsx)(qP,eE(eE({},S),{},{hasValue:u,dirty:a,title:O,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ae.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ae.jsxs)(GP,{labelPosition:v,children:[(0,Ae.jsx)(KP,{hasValue:u,immutable:h,isDisplay:c,signal:x,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(n||(n=(0,Ae.jsx)(QP,{children:(0,Ae.jsx)(_P,{error:s})}))),i&&(r||(r=(0,Ae.jsx)($P,{children:i})))]})]})})}})};var nE,rE,oE=function(e){return(0,Ee.gV)(nE||(nE=(0,Se.c)(["\n color: ",";\n font-weight: ",";\n"])),De.Ml[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?De.Il.fontWeight("bold"):De.Il.fontWeight("regular")}))},iE=function(){return(0,Ee.gV)(rE||(rE=(0,Se.c)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},aE=["labelPosition"];function cE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sE=function(e){var t=e.labelPosition,n=(0,Me.c)(e,aE);return(0,Ae.jsx)(tE,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:oE,valueStyles:iE},labelPosition:t||"outside-responsive"},n))};var uE,lE,dE,pE,fE,hE,mE=function(e){return e.signal?"signal":"shade2"},gE=function(){return(0,Ee.gV)(uE||(uE=(0,Se.c)(["\n align-items: flex-start;\n"])))},vE=function(e){return(0,Ee.gV)(lE||(lE=(0,Se.c)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Ee.gV)(dE||(dE=(0,Se.c)(["\n ","\n "])),De.aU.space(-1.8)):(0,Ee.gV)(pE||(pE=(0,Se.c)(["\n ","\n "])),De.aU.space(.1))}),De.Ml[mE(e)](e))},yE=function(){return(0,Ee.gV)(fE||(fE=(0,Se.c)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,Ee.gV)(hE||(hE=(0,Se.c)(["\n ","\n "])),De.aU.space(-1)):void 0}),(function(e){return e.immutable&&0}))},bE=["labelPosition"];function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const OE=function(e){var t=e.labelPosition,n=(0,Me.c)(e,bE);return(0,Ae.jsx)(tE,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:gE,labelStyles:vE,valueStyles:yE},labelPosition:t||"outside-responsive"},n))};var xE=(0,Ie.c)((0,Ie.c)({},iO.c.EmbedType.admin,sE),iO.c.EmbedType.widget,OE);const kE=iO.c.embedStrategyFactory({mapping:xE});var SE,PE,EE,DE,jE=Ee.cp.span.withConfig({displayName:"StyledSearchIconWrapper"})(SE||(SE=(0,Se.c)(["\n margin-right: ",";\n color: ",";\n"])),De.aU.space(-.8),De.Il.color("text")),_E=Ee.cp.div.withConfig({displayName:"StyledSearchBox"})(PE||(PE=(0,Se.c)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),CE=Ee.cp.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(EE||(EE=(0,Se.c)(["\n &&&& {\n ","\n }\n"])),Ur),TE=h().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=e.onSearch,i=e.placeholder,a=(0,f.useState)(n||""),c=(0,Ue.c)(a,2),s=c[0],u=c[1];return(0,Ae.jsx)(_E,{children:(0,Ae.jsx)(kE,{hasValue:Boolean(s),labelPosition:"inside",children:(0,Ae.jsxs)(Hr,{children:[DE||(DE=(0,Ae.jsx)(jE,{children:(0,Ae.jsx)(Ne.c,{icon:"search"})})),(0,Ae.jsx)(CE,{"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:s,"aria-label":i,placeholder:i}),(null==s?void 0:s.length)>0&&(0,Ae.jsx)(bt,{"data-cy":"btn-reset",icon:"times",onClick:function(){u(""),o("")}})]})})})}));TE.defaultProps={debounce:200,minInputLength:3};const IE=Ke.Debouncer(TE,100,"onSearch");var ME,NE=[De.Wn.condition.INFO,De.Wn.condition.DANGER,De.Wn.condition.SUCCESS,De.Wn.condition.WARNING],AE=(0,Ie.c)((0,Ie.c)((0,Ie.c)((0,Ie.c)({},De.Wn.condition.DANGER,De.Il.color("signal.danger")),De.Wn.condition.SUCCESS,De.Il.color("signal.success")),De.Wn.condition.WARNING,De.Il.color("signal.warning")),De.Wn.condition.INFO,De.Il.color("signal.info")),RE=Ee.cp.div.withConfig({displayName:"StyledSignalBox"})(ME||(ME=(0,Se.c)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: #fff;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return AE[e.condition]||AE[De.Wn.condition.INFO]}(e)}),De.aU.space(-1),De.aU.space(-1));RE.propTypes={condition:De.Wn.oneOfPropTypeAndCompletelyMapped(NE,AE)};var LE=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,Ae.jsxs)(RE,{condition:t,children:[n&&(0,Ae.jsx)(Ln.cp.H5,{children:n}),h().Children.map(r,(function(e){return h().cloneElement(e)})),o&&(0,Ae.jsx)(Ln.cp.Small,{children:o})]})};LE.defaultProps={condition:De.Wn.condition.BASE};var FE=function(e){return(0,Ae.jsxs)(Ln.cp.Span,{children:[e.some," / ",e.of]})};FE.defaultProps={some:0};function HE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HE(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WE={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},BE={Top:"Top",Bottom:"Bottom"};const zE=function(e){var t=(0,f.useState)(WE),n=(0,Ue.c)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,c=r.dropPosition,s=r.offset;return{dndEvents:(0,f.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return UE(UE({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(WE),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!Xm()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return UE(UE({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(i){var t=e.clientY-s>0?BE.Bottom:BE.Top;return o((function(e){return UE(UE({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,c),o(WE),t.stopPropagation())}}}),[a,i,c,s,e]),dndState:(0,f.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,dropPosition:c,offset:s}}),[a,i,c,s])}};var YE,VE,qE,GE,KE,$E,QE,XE=Ee.cp.div.withConfig({displayName:"StyledColumnPickerWrapper"})(YE||(YE=(0,Se.c)([""]))),ZE=Ee.cp.div.withConfig({displayName:"StyledControlsWrapper"})(VE||(VE=(0,Se.c)(["\n margin-top: ",";\n"])),De.aU.space(.7)),JE=Ee.cp.ul.withConfig({displayName:"StyledUl"})(qE||(qE=(0,Se.c)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\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"])),De.aU.space(-.5),Ln.wn),eD=Ee.cp.input.withConfig({displayName:"StyledCheckbox"})(GE||(GE=(0,Se.c)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),De.aU.space(-1)),tD=Ee.cp.span.withConfig({displayName:"StyledId"})(KE||(KE=(0,Se.c)(["\n color: ",";\n font-style: italic;\n"])),De.Il.color("text")),nD=(0,Ee.cp)(Ln.cP).withConfig({displayName:"StyledItem"})($E||($E=(0,Se.c)(["\n display: flex;\n padding: "," "," "," 0;\n border-right: ",";\n ","\n"])),De.aU.space(-2),De.aU.space(-2),De.aU.space(-2),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"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 ")})),rD=Ee.cp.span.withConfig({displayName:"StyledNumber"})(QE||(QE=(0,Se.c)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),De.aU.space(-1),De.Il.color("text"),De.aU.font(0));function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aD=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]}))},cD=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const sD=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=aD(r),c=(0,f.useState)(null),s=(0,Ue.c)(c,2),u=s[0],l=s[1],d=(0,f.useCallback)((function(e,t){if(e!==t){var n=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==n})).reduce((function(e,r){return[].concat((0,St.c)(e),[r],(0,St.c)(r.id===t?[n]:[]))}),[])}))}}),[a,o]),p=zE(d),h=p.dndEvents,m=p.dndState,g=(0,f.useMemo)((function(){return cD(a,u)}),[a,u]),v=g.some((function(e){return e.hidden})),y=(0,f.useMemo)((function(){return g.map((function(e,n){var r=m.currentlyDragOver===e.id&&m.currentlyDragging!==e.id;return(0,Ae.jsxs)(nD,iD(iD({draggable:t,isDraggedOver:r},t&&iD({},h(e.id))),{},{children:[(0,Ae.jsx)(eD,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return aD(n.map((function(n){return n.id===e.id?iD(iD({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ae.jsxs)(Ln.cp.Label,{for:e.id,children:[(0,Ae.jsxs)(rD,{children:[n+1,"."]}),e.label?(0,Ae.jsx)("span",{dangerouslySetInnerHTML:{__html:Rn.sanitizeHtml(e.label)}}):(0,Ae.jsx)(tD,{children:e.id})]})]}),e.id)}))}),[m,t,h,g,o]);return(0,Ae.jsxs)(XE,{children:[(0,Ae.jsx)(IE,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ae.jsxs)(ZE,{children:[(0,Ae.jsx)(eD,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=cD(e,u);return aD((0,St.c)(e.map((function(e){return iD(iD({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!v}),(0,Ae.jsx)(Ln.cp.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ae.jsx)(JE,{children:y})]})};(0,p.injectIntl)(sD);function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dD="yyyy-MM-dd",pD=function(e){return jp(e,dD)?Dp(e,dD,new Date):jp(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||jp(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?Hu(new Date(e)):null},fD={datetime:{type:"date",toRange:function(e){var t=e?pD(e).toISOString():null,n=e?function(e,t){Nu(2,arguments);var n=Au(e),r=Mu(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(pD(e),1).toISOString():null;return{from:t,to:n,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?Ul(new Date(e.from),dD):null!=e&&e.to?Ul(new Date(e.to),dD):null},getToOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return lD(lD({},e),{},{datePickerOptions:lD({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const hD=fD;var mD,gD,vD,yD,bD,wD=Ee.cp.div.withConfig({displayName:"StyledIconWrapper"})(mD||(mD=(0,Se.c)(["\n font-size: ",";\n color: ",";\n"])),De.aU.font(-2.7),De.Il.color("text")),OD=Ee.cp.div.withConfig({displayName:"StyledRange"})(gD||(gD=(0,Se.c)(["\n display: flex;\n align-items: baseline;\n"]))),xD=Ee.cp.div.withConfig({displayName:"StyledInput"})(vD||(vD=(0,Se.c)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),kD=(0,Ee.cp)(bt).withConfig({displayName:"StyledBall"})(yD||(yD=(0,Se.c)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SD(Object(n),!0).forEach((function(t){(0,Ie.c)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ED=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,c=e.toText,s=hD[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,f.useRef)(t);l.current=t;var d=(0,f.useMemo)((function(){return PD(PD({},n),{},{onChange:n.onChange})}),[n]),p={onChange:function(e){n.onChange(PD(PD({},l.current),{},{to:e}))}},h={onChange:function(e){n.onChange(PD(PD({},l.current),{},{from:e}))}},m=(null==s?void 0:s.type)||o,g=(0,Ae.jsx)(LO,PD(PD({type:m},gr()(e,["type"])),{},{events:d})),v=(0,Ae.jsxs)(xD,{children:[(0,Ae.jsx)(LO,PD(PD({},e),{},{options:function(e,t){return null!=s&&s.getFromOptions?s.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:h,placeholder:a})),bD||(bD=(0,Ae.jsx)(wD,{children:(0,Ae.jsx)(Ne.c,{icon:"horizontal-rule"})})),(0,Ae.jsx)(LO,PD(PD({},e),{},{options:function(e,t){return null!=s&&s.getToOptions?s.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:p,placeholder:c}))]});return(0,Ae.jsxs)(OD,{children:[u?v:g,(0,Ae.jsx)(kD,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var DD,jD,_D,CD,TD,ID=Ee.cp.div.withConfig({displayName:"StyledBurgerButton"})(DD||(DD=(0,Se.c)(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),De.Il.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Ee.gV)(jD||(jD=(0,Se.c)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,p.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl;return(0,Ae.jsxs)(ID,{isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),children:[_D||(_D=(0,Ae.jsx)("span",{})),CD||(CD=(0,Ae.jsx)("span",{})),TD||(TD=(0,Ae.jsx)("span",{}))]})}));var MD,ND,AD=Ee.cp.div.withConfig({displayName:"StyledPagination"})(MD||(MD=(0,Se.c)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),De.aU.space(-1),De.aU.space(-1.4)),RD=(0,Ee.cp)(dt).withConfig({displayName:"StyledPaginationButton"})(ND||(ND=(0,Se.c)(["\n padding: "," ",";\n"])),De.aU.space(-2),De.aU.space(-.5));const LD=(0,p.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,c=e.children,s=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,Ae.jsxs)(AD,{children:[(0,Ae.jsxs)(hr,{children:[(0,Ae.jsx)(RD,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,Ae.jsx)(RD,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,Ae.jsx)(RD,{disabled:r>=s,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,Ae.jsx)(RD,{disabled:r>=s,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(s)}})]}),t>0&&(0,Ae.jsx)(Ln.cp.Span,{children:(0,Ae.jsx)(p.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),c]})})),FD=LD;var HD;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}i(p.length==d);const f=8*t.getNumDataCodewords(l,n);i(p.length<=f),r(0,Math.min(4,f-p.length),p),r(0,(8-p.length%8)%8,p),i(p.length%8==0);for(let e=236;p.length<f;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<s?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<s&&o.push(0),l.push(o.concat(i))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=s)&&p.push(t[e])}));return i(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][a]&&n<8*e.length&&(this.modules[c][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=a;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(HD||(HD={})),(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={}))})(HD||(HD={})),(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={}))})(HD||(HD={}));var UD=HD;
|
|
45
45
|
/**
|
|
46
46
|
* @license qrcode.react
|
|
47
47
|
* Copyright (c) Paul O'Shannessy
|