tocco-devcon 3.13.2 → 3.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports["tocco-devcon"]=t(require("React"),require("ReactDOM")):e["tocco-devcon"]=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n,r,o,a,i={23490:e=>{e.exports=function(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}},24394:e=>{e.exports=function(e){if(Array.isArray(e))return e}},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},79092:e=>{function t(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=e.apply(n,r);function s(e){t(i,o,a,s,c,"next",e)}function c(e){t(i,o,a,s,c,"throw",e)}s(void 0)}))}}},82274:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},65044:e=>{function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},26396: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}},16193:e=>{function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},18337:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},56994:(e,t,n)=>{var r=n(67197);e.exports=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}}),t&&r(e,t)}},11572:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},4453:e=>{e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}},66923:e=>{e.exports=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.")}},33694:e=>{e.exports=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.")}},72637:e=>{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},83712:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},65611:(e,t,n)=>{var r=n(85735),o=n(41972);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},67197:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},22056:(e,t,n)=>{var r=n(24394),o=n(4453),a=n(45051),i=n(66923);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},72189:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},21259:(e,t,n)=>{var r=n(96374),o=n(11572),a=n(45051),i=n(33694);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},45051:(e,t,n)=>{var r=n(23490);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},92207:(e,t,n)=>{e.exports=n(7452)},39316:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>a});var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},8568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>B,CompositeItem:()=>W,FloatingArrow:()=>G,FloatingDelayGroup:()=>le,FloatingFocusManager:()=>Ue,FloatingList:()=>A,FloatingNode:()=>ee,FloatingOverlay:()=>qe,FloatingPortal:()=>Ie,FloatingTree:()=>te,arrow:()=>u.UE,autoPlacement:()=>u.RK,autoUpdate:()=>u.ll,computePosition:()=>u.rD,detectOverflow:()=>u.__,flip:()=>u.UU,getOverflowAncestors:()=>u.v9,hide:()=>u.jD,inline:()=>u.mG,inner:()=>kt,limitShift:()=>u.ER,offset:()=>u.cY,platform:()=>u.iD,safePolygon:()=>Pt,shift:()=>u.BN,size:()=>u.Ej,useClick:()=>Ke,useClientPoint:()=>Xe,useDelayGroup:()=>de,useDelayGroupContext:()=>ue,useDismiss:()=>tt,useFloating:()=>rt,useFloatingNodeId:()=>Z,useFloatingParentNodeId:()=>X,useFloatingPortalNode:()=>Ae,useFloatingRootContext:()=>nt,useFloatingTree:()=>J,useFocus:()=>ot,useHover:()=>ie,useId:()=>q,useInnerOffset:()=>St,useInteractions:()=>ct,useListItem:()=>I,useListNavigation:()=>ht,useMergeRefs:()=>l,useRole:()=>gt,useTransitionStatus:()=>bt,useTransitionStyles:()=>wt,useTypeahead:()=>Ot});var r=n(4883),o=n(66984),a=n(97193),i=n(86635),s=n(49054),c=n(81845),u=n(4865);function l(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 d={...r},f=d.useInsertionEffect||(e=>e());function p(e){const t=r.useRef((()=>{0}));return f((()=>{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 h="ArrowUp",m="ArrowDown",g="ArrowLeft",v="ArrowRight";function y(e,t,n){return Math.floor(e/t)!==n}function b(e,t){return t<0||t>=e.current.length}function w(e,t){return x(e,{disabledIndices:t})}function O(e,t){return x(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function x(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current;let s=n;do{s+=r?-a:a}while(s>=0&&s<=i.length-1&&D(i,s,o));return s}function k(e,t){let{event:n,orientation:r,loop:i,cols:s,disabledIndices:c,minIndex:u,maxIndex:l,prevIndex:d,stopEvent:f=!1}=t,p=d;if(n.key===h){if(f&&(0,o.jo)(n),-1===d)p=l;else if(p=x(e,{startingIndex:p,amount:s,decrement:!0,disabledIndices:c}),i&&(d-s<u||p<0)){const e=d%s,t=l%s,n=l-(t-e);p=t===e?l:t>e?n:n-s}b(e,p)&&(p=d)}if(n.key===m&&(f&&(0,o.jo)(n),-1===d?p=u:(p=x(e,{startingIndex:d,amount:s,disabledIndices:c}),i&&d+s>l&&(p=x(e,{startingIndex:d%s-s,amount:s,disabledIndices:c}))),b(e,p)&&(p=d)),"both"===r){const t=(0,a.RI)(d/s);n.key===v&&(f&&(0,o.jo)(n),d%s!=s-1?(p=x(e,{startingIndex:d,disabledIndices:c}),i&&y(p,s,t)&&(p=x(e,{startingIndex:d-d%s-1,disabledIndices:c}))):i&&(p=x(e,{startingIndex:d-d%s-1,disabledIndices:c})),y(p,s,t)&&(p=d)),n.key===g&&(f&&(0,o.jo)(n),d%s!=0?(p=x(e,{startingIndex:d,decrement:!0,disabledIndices:c}),i&&y(p,s,t)&&(p=x(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:c}))):i&&(p=x(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:c})),y(p,s,t)&&(p=d));const r=(0,a.RI)(l/s)===t;b(e,p)&&(p=i&&r?n.key===g?l:x(e,{startingIndex:d-d%s-1,disabledIndices:c}):d)}return p}function S(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,c=!1;for(n&&(o=0);!c;){const e=[];for(let n=0;n<i;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+i<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=a})),c=!0):o++}})),[...r]}function E(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*r:a;case"br":return n.lastIndexOf(e)}}function P(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function D(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let _=0;function j(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(_);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():_=requestAnimationFrame(a)}var C="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function T(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 M=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function A(e){const{children:t,elementsRef:n,labelsRef:o}=e,[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),c=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return C((()=>{const e=new Map(a);Array.from(e.keys()).sort(T).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(M.Provider,{value:r.useMemo((()=>({register:s,unregister:c,map:a,elementsRef:n,labelsRef:o})),[s,c,a,n,o])},t)}function I(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:o,map:a,elementsRef:i,labelsRef:s}=r.useContext(M),[c,u]=r.useState(null),l=r.useRef(null),d=r.useCallback((e=>{if(l.current=e,null!==c&&(i.current[c]=e,s)){var n;const r=void 0!==t;s.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[c,i,s,t]);return C((()=>{const e=l.current;if(e)return n(e),()=>{o(e)}}),[n,o]),C((()=>{const e=l.current?a.get(l.current):null;null!=e&&u(e)}),[a]),r.useMemo((()=>({ref:d,index:null==c?-1:c})),[c,d])}function R(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const N=r.createContext({activeIndex:0,onNavigate:()=>{}}),L=[g,v],F=[h,m],H=[...L,...F],B=r.forwardRef((function(e,t){const{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s,activeIndex:c,onNavigate:u,itemSizes:l,dense:d=!1,...f}=e,[y,_]=r.useState(0),C=null!=c?c:y,T=p(null!=u?u:_),M=r.useRef([]),I=n&&"function"!=typeof n?n.props:{},B=r.useMemo((()=>({activeIndex:C,onNavigate:T})),[C,T]),W=i>1;const Y={...f,...I,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==I.onKeyDown||I.onKeyDown(e),function(e){if(!H.includes(e.key))return;let t=C;const n=w(M,s),r=O(M,s);if(W){const c=l||Array.from({length:M.current.length},(()=>({width:1,height:1}))),u=S(c,i,d),f=u.findIndex((e=>null!=e&&!D(M.current,e,s))),p=u.reduce(((e,t,n)=>null==t||D(M.current,t,s)?e:n),-1),h=u[k({current:u.map((e=>e?M.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:P([...s||M.current.map(((e,t)=>D(M.current,t)?t:void 0)),void 0],u),minIndex:f,maxIndex:p,prevIndex:E(C>r?n:C,c,u,i,e.key===m?"bl":e.key===v?"tr":"tl")})];null!=h&&(t=h)}const c={horizontal:[v],vertical:[m],both:[v,m]}[o],u={horizontal:[g],vertical:[h],both:[g,h]}[o],f=W?H:{horizontal:L,vertical:F,both:H}[o];t===C&&[...c,...u].includes(e.key)&&(t=a&&t===r&&c.includes(e.key)?n:a&&t===n&&u.includes(e.key)?r:x(M,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:s})),t===C||b(M,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),T(t),queueMicrotask((()=>{j(M.current[t])})))}(e)}};return r.createElement(N.Provider,{value:B},r.createElement(A,{elementsRef:M},R(n,Y)))})),W=r.forwardRef((function(e,t){const{render:n,...o}=e,a=n&&"function"!=typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext(N),{ref:c,index:u}=I(),d=l([c,t,a.ref]),f=i===u;return R(n,{...o,...a,ref:d,tabIndex:f?0:-1,"data-active":f?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(u)}})}));function Y(){return Y=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},Y.apply(this,arguments)}let U=!1,z=0;const V=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+z++;const q=d.useId||function(){const[e,t]=r.useState((()=>U?V():void 0));return C((()=>{null==e&&t(V())}),[]),r.useEffect((()=>{U=!0}),[]),e};const G=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a,shift:s}},width:c=14,height:u=7,tipRadius:l=0,strokeWidth:d=0,staticOffset:f,stroke:p,d:h,style:{transform:m,...g}={},...v}=e;const y=q(),[b,w]=r.useState(!1);if(C((()=>{if(!o)return;"rtl"===(0,i.L9)(o).direction&&w(!0)}),[o]),!o)return null;const[O,x]=n.split("-"),k="top"===O||"bottom"===O;let S=f;(k&&null!=s&&s.x||!k&&null!=s&&s.y)&&(S=null);const E=2*d,P=E/2,D=c/2*(l/-8+1),_=u/2*l/4,j=!!h,T=S&&"end"===x?"bottom":"top";let M=S&&"end"===x?"right":"left";S&&b&&(M="end"===x?"left":"right");const A=null!=(null==a?void 0:a.x)?S||a.x:"",I=null!=(null==a?void 0:a.y)?S||a.y:"",R=h||"M0,0 H"+c+" L"+(c-D)+","+(u-_)+" Q"+c/2+","+u+" "+D+","+(u-_)+" Z",N={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[O];return r.createElement("svg",Y({},v,{"aria-hidden":!0,ref:t,width:j?c:c+E,height:c,viewBox:"0 0 "+c+" "+(u>c?u:c),style:{position:"absolute",pointerEvents:"none",[M]:A,[T]:I,[O]:k||j?"100%":"calc(100% - "+E/2+"px)",transform:[N,m].filter((e=>!!e)).join(" "),...g}}),E>0&&r.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:E+(h?0:1),d:R}),r.createElement("path",{stroke:E&&!h?v.fill:"none",d:R}),r.createElement("clipPath",{id:y},r.createElement("rect",{x:-P,y:P*(j?-1:1),width:c+E,height:c})))}));function $(){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 K=r.createContext(null),Q=r.createContext(null),X=()=>{var e;return(null==(e=r.useContext(K))?void 0:e.id)||null},J=()=>r.useContext(Q);function Z(e){const t=q(),n=J(),r=X(),o=e||r;return C((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function ee(e){const{children:t,id:n}=e,o=X();return r.createElement(K.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function te(e){const{children:t}=e,n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>$()))[0];return r.createElement(Q.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function ne(e){return"data-floating-ui-"+e}function re(e){const t=(0,r.useRef)(e);return C((()=>{t.current=e})),t}const oe=ne("safe-polygon");function ae(e,t,n){return n&&!(0,o.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function ie(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:s,events:c,elements:u}=e,{enabled:l=!0,delay:d=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,v=J(),y=X(),b=re(f),w=re(d),O=re(n),x=r.useRef(),k=r.useRef(-1),S=r.useRef(),E=r.useRef(-1),P=r.useRef(!0),D=r.useRef(!1),_=r.useRef((()=>{})),j=r.useRef(!1),T=r.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);r.useEffect((()=>{if(l)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(E.current),P.current=!0,j.current=!1)}}),[l,c]),r.useEffect((()=>{if(!l)return;if(!b.current)return;if(!n)return;function e(e){T()&&a(!1,e,"hover")}const t=(0,o.YE)(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u.floating,n,a,l,b,T]);const M=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=ae(w.current,"close",x.current);r&&!S.current?(clearTimeout(k.current),k.current=window.setTimeout((()=>a(!1,e,n)),r)):t&&(clearTimeout(k.current),a(!1,e,n))}),[w,a]),A=p((()=>{_.current(),S.current=void 0})),I=p((()=>{if(D.current){const e=(0,o.YE)(u.floating).body;e.style.pointerEvents="",e.removeAttribute(oe),D.current=!1}}));r.useEffect((()=>{if(l&&(0,i.vq)(u.domReference)){var e;const t=u.domReference;return n&&t.addEventListener("mouseleave",d),null==(e=u.floating)||e.addEventListener("mouseleave",d),g&&t.addEventListener("mousemove",r,{once:!0}),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",d),null==(e=u.floating)||e.removeEventListener("mouseleave",d),g&&t.removeEventListener("mousemove",r),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",c)}}function t(){return!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)}function r(e){if(clearTimeout(k.current),P.current=!1,h&&!(0,o.Go)(x.current)||m>0&&!ae(w.current,"open"))return;const t=ae(w.current,"open",x.current);t?k.current=window.setTimeout((()=>{O.current||a(!0,e,"hover")}),t):a(!0,e,"hover")}function c(e){if(t())return;_.current();const r=(0,o.YE)(u.floating);if(clearTimeout(E.current),j.current=!1,b.current&&s.current.floatingContext){n||clearTimeout(k.current),S.current=b.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),M(e,!0,"safe-polygon")}});const t=S.current;return r.addEventListener("mousemove",t),void(_.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==x.current||!(0,o.gR)(u.floating,e.relatedTarget))&&M(e)}function d(e){t()||s.current.floatingContext&&(null==b.current||b.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),M(e)}})(e))}}),[u,l,e,h,m,g,M,A,I,a,n,O,v,w,b,s]),C((()=>{var e;if(l&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&T()){D.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=(0,o.YE)(u.floating).body;n.setAttribute(oe,"");const r=u.domReference,a=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return a&&(a.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,y,u,v,b,T]),C((()=>{n||(x.current=void 0,j.current=!1,A(),I())}),[n,A,I]),r.useEffect((()=>()=>{A(),clearTimeout(k.current),clearTimeout(E.current),I()}),[l,u.domReference,A,I]);const R=r.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){P.current||O.current||a(!0,t,"hover")}h&&!(0,o.Go)(x.current)||n||0===m||j.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===x.current?r():(j.current=!0,E.current=window.setTimeout(r,m)))}}}),[h,a,n,O,m]),N=r.useMemo((()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){M(e.nativeEvent,!1)}})),[M]);return r.useMemo((()=>l?{reference:R,floating:N}:{}),[l,R,N])}const se=()=>{},ce=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:se,setState:se,isInstantPhase:!1}),ue=()=>r.useContext(ce);function le(e){const{children:t,delay:n,timeoutMs:o=0}=e,[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),c=r.useCallback((e=>{i({currentId:e})}),[]);return C((()=>{a.currentId?null===s.current?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)}),[a.currentId,a.isInstantPhase]),r.createElement(ce.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:c})),[a,c])},t)}function de(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:a,enabled:i=!0}=t,s=null!=a?a:o,c=ue(),{currentId:u,setCurrentId:l,initialDelay:d,setState:f,timeoutMs:p}=c;return C((()=>{i&&u&&(f({delay:{open:1,close:ae(d,"close")}}),u!==s&&r(!1))}),[i,s,r,f,u,d]),C((()=>{function e(){r(!1),f({delay:d,currentId:null})}if(i&&u&&!n&&u===s){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}}),[i,n,f,u,s,r,d,p]),C((()=>{i&&l!==se&&n&&l(s)}),[i,n,l,s]),c}function fe(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 pe=new WeakMap,he=new WeakSet,me={},ge=0;const ve=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,ye=e=>e&&(e.host||ye(e.parentNode)),be=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=ye(t);return e.contains(n)?n:null})).filter((e=>null!=e));function we(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(0,o.YE)(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,s=be(t,e),c=new Set,u=new Set(s),l=[];me[o]||(me[o]=new WeakMap);const d=me[o];return s.forEach((function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,i.mq)(t))if(c.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(pe.get(t)||0)+1,i=(d.get(t)||0)+1;pe.set(t,r),d.set(t,i),l.push(t),1===r&&n&&he.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),c.clear(),ge++,()=>{l.forEach((e=>{const t=(pe.get(e)||0)-1,n=(d.get(e)||0)-1;pe.set(e,t),d.set(e,n),t||(!he.has(e)&&a&&e.removeAttribute(a),he.delete(e)),n||e.removeAttribute(o)})),ge--,ge||(pe=new WeakMap,pe=new WeakMap,he=new WeakSet,me={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Oe=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xe(e,t){const n=(0,s.Kr)(e,Oe());"prev"===t&&n.reverse();const r=n.indexOf((0,o.RS)((0,o.YE)(e)));return n.slice(r+1)[0]}function ke(){return xe(document.body,"next")}function Se(){return xe(document.body,"prev")}function Ee(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,o.gR)(n,r)}function Pe(e){(0,s.Kr)(e,Oe()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function De(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 _e={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 je(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ce=r.forwardRef((function(e,t){const[n,a]=r.useState();C((()=>((0,o.nr)()&&a("button"),document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ne("focus-guard")]:"",style:_e};return r.createElement("span",Y({},e,i))})),Te=r.createContext(null),Me=ne("portal");function Ae(e){void 0===e&&(e={});const{id:t,root:n}=e,o=q(),a=Re(),[s,c]=r.useState(null),u=r.useRef(null);return C((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{u.current=null}))}),[s]),C((()=>{if(!o)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Me,""),e.appendChild(n),u.current=n,c(n)}),[t,o]),C((()=>{if(!o)return;if(u.current)return;let e=n||(null==a?void 0:a.portalNode);e&&!(0,i.vq)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const s=document.createElement("div");s.id=o,s.setAttribute(Me,""),e=r||e,e.appendChild(s),u.current=s,c(s)}),[t,n,o,a]),s}function Ie(e){const{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e,i=Ae({id:n,root:o}),[s,u]=r.useState(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),h=null==s?void 0:s.modal,m=null==s?void 0:s.open,g=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&!h)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Ee(e)){("focusin"===e.type?De:Pe)(i)}}}),[i,a,h]),r.useEffect((()=>{i&&(m||De(i))}),[m,i]),r.createElement(Te.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:i,setFocusManagerState:u})),[a,i])},g&&i&&r.createElement(Ce,{"data-type":"outside",ref:l,onFocus:e=>{if(Ee(e,i)){var t;null==(t=f.current)||t.focus()}else{const e=Se()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),g&&i&&r.createElement("span",{"aria-owns":i.id,style:_e}),i&&c.createPortal(t,i),g&&i&&r.createElement(Ce,{"data-type":"outside",ref:d,onFocus:e=>{if(Ee(e,i)){var t;null==(t=p.current)||t.focus()}else{const t=ke()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Re=()=>r.useContext(Te),Ne="data-floating-ui-focusable";function Le(e){return e?e.hasAttribute(Ne)?e:e.querySelector("["+Ne+"]")||e:null}const Fe=20;let He=[];function Be(e){He=He.filter((e=>e.isConnected));let t=e;if(t&&"body"!==(0,i.mq)(t)){if(!(0,s.AO)(t,Oe())){const e=(0,s.Kr)(t,Oe())[0];e&&(t=e)}He.push(t),He.length>Fe&&(He=He.slice(-Fe))}}function We(){return He.slice().reverse().find((e=>e.isConnected))}const Ye=r.forwardRef((function(e,t){return r.createElement("button",Y({},e,{type:"button",ref:t,tabIndex:-1,style:_e}))}));function Ue(e){const{context:t,children:n,disabled:a=!1,order:c=["content"],guards:u=!0,initialFocus:l=0,returnFocus:d=!0,restoreFocus:f=!1,modal:h=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:g=!0}=e,{open:v,refs:y,nodeId:b,onOpenChange:w,events:O,dataRef:x,floatingId:k,elements:{domReference:S,floating:E}}=t,P="number"==typeof l&&l<0,D=(0,o.WZ)(S)&&P,_=!ve()||u,T=re(c),M=re(l),A=re(d),I=J(),R=Re(),N=r.useRef(null),L=r.useRef(null),F=r.useRef(!1),H=r.useRef(!1),B=r.useRef(-1),W=null!=R,Y=Le(E),U=p((function(e){return void 0===e&&(e=Y),e?(0,s.Kr)(e,Oe()):[]})),z=p((e=>{const t=U(e);return T.current.map((e=>S&&"reference"===e?S:Y&&"floating"===e?Y:t)).filter(Boolean).flat()}));function V(e){return!a&&m&&h?r.createElement(Ye,{ref:"start"===e?N:L,onClick:e=>w(!1,e.nativeEvent)},"string"==typeof m?m:"Dismiss"):null}r.useEffect((()=>{F.current=!1}),[a]),r.useEffect((()=>{if(a)return;if(!h)return;function e(e){if("Tab"===e.key){(0,o.gR)(Y,(0,o.RS)((0,o.YE)(Y)))&&0===U().length&&!D&&(0,o.jo)(e);const t=z(),n=(0,o.EW)(e);"reference"===T.current[0]&&n===S&&((0,o.jo)(e),e.shiftKey?j(t[t.length-1]):j(t[1])),"floating"===T.current[1]&&n===Y&&e.shiftKey&&((0,o.jo)(e),j(t[0]))}}const t=(0,o.YE)(Y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[a,S,Y,h,T,D,U,z]),r.useEffect((()=>{if(!a&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=(0,o.EW)(e),n=U().indexOf(t);-1!==n&&(B.current=n)}}),[a,E,U]),r.useEffect((()=>{if(!a&&g)return E&&(0,i.sb)(S)?(S.addEventListener("focusout",t),S.addEventListener("pointerdown",e),E.addEventListener("focusout",t),()=>{S.removeEventListener("focusout",t),S.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t)}):void 0;function e(){H.current=!0,setTimeout((()=>{H.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!((0,o.gR)(S,t)||(0,o.gR)(E,t)||(0,o.gR)(t,E)||(0,o.gR)(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute(ne("focus-guard"))||I&&(fe(I.nodesRef.current,b).find((e=>{var n,r;return(0,o.gR)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,o.gR)(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}(I.nodesRef.current,b).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}))));if(f&&n&&(0,o.RS)((0,o.YE)(Y))===(0,o.YE)(Y).body){(0,i.sb)(Y)&&Y.focus();const e=B.current,t=U(),n=t[e]||t[t.length-1]||Y;(0,i.sb)(n)&&n.focus()}!D&&h||!t||!n||H.current||t===We()||(F.current=!0,w(!1,e,"focus-out"))}))}}),[a,S,E,Y,h,b,I,R,w,g,f,U,D]),r.useEffect((()=>{var e;if(a)return;const t=Array.from((null==R||null==(e=R.portalNode)?void 0:e.querySelectorAll("["+ne("portal")+"]"))||[]);if(E){const e=[E,...t,N.current,L.current,T.current.includes("reference")||D?S:null].filter((e=>null!=e)),n=h||D?we(e,_,!_):we(e);return()=>{n()}}}),[a,S,E,h,T,R,D,_]),C((()=>{if(a||!(0,i.sb)(Y))return;const e=(0,o.YE)(Y),t=(0,o.RS)(e);queueMicrotask((()=>{const e=z(Y),n=M.current,r=("number"==typeof n?e[n]:n.current)||Y,a=(0,o.gR)(Y,t);P||a||!v||j(r,{preventScroll:r===Y})}))}),[a,v,Y,P,z,M]),C((()=>{if(a||!Y)return;let e=!1;const t=(0,o.YE)(Y),n=(0,o.RS)(t);let r=x.current.openEvent;function s(t){let{open:n,reason:a,event:i,nested:s}=t;n&&(r=i),"escape-key"===a&&y.domReference.current&&Be(y.domReference.current),"hover"===a&&"mouseleave"===i.type&&(F.current=!0),"outside-press"===a&&(s?(F.current=!1,e=!0):F.current=!((0,o.YF)(i)||(0,o.Pg)(i)))}Be(n),O.on("openchange",s);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,_e),W&&S&&S.insertAdjacentElement("afterend",c),()=>{O.off("openchange",s);const n=(0,o.RS)(t),a=(0,o.gR)(E,n)||I&&fe(I.nodesRef.current,b).some((e=>{var t;return(0,o.gR)(null==(t=e.context)?void 0:t.elements.floating,n)}));(a||r&&["click","mousedown"].includes(r.type))&&y.domReference.current&&Be(y.domReference.current);const u=We()||c;queueMicrotask((()=>{A.current&&!F.current&&(0,i.sb)(u)&&(u===n||n===t.body||a)&&u.focus({preventScroll:e}),c.remove()}))}}),[a,E,Y,A,x,y,O,I,b,W,S]),C((()=>{if(!a&&R)return R.setFocusManagerState({modal:h,closeOnFocusOut:g,open:v,onOpenChange:w,refs:y}),()=>{R.setFocusManagerState(null)}}),[a,R,h,v,w,y,g]),C((()=>{if(a)return;if(!Y)return;if("function"!=typeof MutationObserver)return;if(P)return;const e=()=>{const e=Y.getAttribute("tabindex"),t=U(),n=(0,o.RS)((0,o.YE)(E)),r=t.indexOf(n);-1!==r&&(B.current=r),T.current.includes("floating")||n!==y.domReference.current&&0===t.length?"0"!==e&&Y.setAttribute("tabindex","0"):"-1"!==e&&Y.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(Y,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[a,E,Y,y,T,U,P]);const q=!a&&_&&(!h||!D)&&(W||h);return r.createElement(r.Fragment,null,q&&r.createElement(Ce,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(h){const e=z();j("reference"===c[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(F.current=!1,Ee(e,R.portalNode)){const e=ke()||S;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}),!D&&V("start"),n,V("end"),q&&r.createElement(Ce,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(h)j(z()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(g&&(F.current=!0),Ee(e,R.portalNode)){const e=Se()||S;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}))}let ze=0;let Ve=()=>{};const qe=r.forwardRef((function(e,t){const{lockScroll:n=!1,...a}=e;return C((()=>{if(n)return ze++,1===ze&&(Ve=function(){const e=/iP(hone|ad|od)|iOS/.test((0,o.uo)()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,c;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}()),()=>{ze--,0===ze&&Ve()}}),[n]),r.createElement("div",Y({ref:t},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))}));function Ge(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function $e(e){return(0,o.$u)(e)}function Ke(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:i,elements:{domReference:s}}=e,{enabled:c=!0,event:u="click",toggle:l=!0,ignoreMouse:d=!1,keyboardHandlers:f=!0}=t,p=r.useRef(),h=r.useRef(!1),m=r.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==u&&((0,o.Go)(t,!0)&&d||(!n||!l||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),a(!0,e.nativeEvent,"click")):a(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===u&&p.current?p.current=void 0:(0,o.Go)(t,!0)&&d||(!n||!l||i.current.openEvent&&"click"!==i.current.openEvent.type?a(!0,e.nativeEvent,"click"):a(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||Ge(e)||(" "!==e.key||$e(s)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&a(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||Ge(e)||$e(s)||" "===e.key&&h.current&&(h.current=!1,a(!n||!l,e.nativeEvent,"click"))}})),[i,s,u,d,f,a,n,l]);return r.useMemo((()=>c?{reference:m}:{}),[c,m])}function Qe(e){return null!=e&&null!=e.clientX}function Xe(e,t){void 0===t&&(t={});const{open:n,dataRef:a,elements:{floating:s,domReference:c},refs:u}=e,{enabled:l=!0,axis:d="both",x:f=null,y:h=null}=t,m=r.useRef(!1),g=r.useRef(null),[v,y]=r.useState(),[b,w]=r.useState([]),O=p(((e,t)=>{m.current||a.current.openEvent&&!Qe(a.current.openEvent)||u.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var a;const i=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,c="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let l=i.width,d=i.height,f=i.x,p=i.y;return null==n&&t.x&&s&&(n=i.x-t.x),null==r&&t.y&&c&&(r=i.y-t.y),f-=n||0,p-=r||0,l=0,d=0,!o||u?(l="y"===t.axis?i.width:0,d="x"===t.axis?i.height:0,f=s&&null!=t.x?t.x:f,p=c&&null!=t.y?t.y:p):o&&!u&&(d="x"===t.axis?i.height:d,l="y"===t.axis?i.width:l),o=!0,{width:l,height:d,x:f,y:p,top:p,right:f+l,bottom:p+d,left:f}}}}(c,{x:e,y:t,axis:d,dataRef:a,pointerType:v}))})),x=p((e=>{null==f&&null==h&&(n?g.current||w([]):O(e.clientX,e.clientY))})),k=(0,o.Go)(v)?s:n,S=r.useCallback((()=>{if(!k||!l||null!=f||null!=h)return;const e=(0,i.zk)(s);function t(n){const r=(0,o.EW)(n);(0,o.gR)(s,r)?(e.removeEventListener("mousemove",t),g.current=null):O(n.clientX,n.clientY)}if(!a.current.openEvent||Qe(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),g.current=null};return g.current=n,n}u.setPositionReference(c)}),[k,l,f,h,s,a,u,c,O]);r.useEffect((()=>S()),[S,b]),r.useEffect((()=>{l&&!s&&(m.current=!1)}),[l,s]),r.useEffect((()=>{!l&&n&&(m.current=!0)}),[l,n]),C((()=>{!l||null==f&&null==h||(m.current=!1,O(f,h))}),[l,f,h,O]);const E=r.useMemo((()=>{function e(e){let{pointerType:t}=e;y(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:x,onMouseEnter:x}}),[x]);return r.useMemo((()=>l?{reference:E}:{}),[l,E])}const Je={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ze={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},et=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 tt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,elements:s,dataRef:c}=e,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:h="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:y,capture:b}=t,w=J(),O=p("function"==typeof f?f:()=>!1),x="function"==typeof f?O:f,k=r.useRef(!1),S=r.useRef(!1),{escapeKey:E,outsidePress:P}=et(y),{escapeKey:D,outsidePress:_}=et(b),j=r.useRef(!1),C=p((e=>{var t;if(!n||!l||!d||"Escape"!==e.key)return;if(j.current)return;const r=null==(t=c.current.floatingContext)?void 0:t.nodeId,i=w?fe(w.nodesRef.current,r):[];if(!E&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}a(!1,(0,o.O_)(e)?e.nativeEvent:e,"escape-key")})),T=p((e=>{var t;const n=()=>{var t;C(e),null==(t=(0,o.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,o.EW)(e))||t.addEventListener("keydown",n)})),M=p((e=>{var t;const n=k.current;k.current=!1;const r=S.current;if(S.current=!1,"click"===h&&r)return;if(n)return;if("function"==typeof x&&!x(e))return;const u=(0,o.EW)(e),l="["+ne("inert")+"]",d=(0,o.YE)(s.floating).querySelectorAll(l);let f=(0,i.vq)(u)?u:null;for(;f&&!(0,i.eu)(f);){const e=(0,i.$4)(f);if((0,i.eu)(e)||!(0,i.vq)(e))break;f=e}if(d.length&&(0,i.vq)(u)&&!(0,o.tZ)(u)&&!(0,o.gR)(u,s.floating)&&Array.from(d).every((e=>!(0,o.gR)(f,e))))return;if((0,i.sb)(u)&&R){const t=u.clientWidth>0&&u.scrollWidth>u.clientWidth,n=u.clientHeight>0&&u.scrollHeight>u.clientHeight;let r=n&&e.offsetX>u.clientWidth;if(n){"rtl"===(0,i.L9)(u).direction&&(r=e.offsetX<=u.offsetWidth-u.clientWidth)}if(r||t&&e.offsetY>u.clientHeight)return}const p=null==(t=c.current.floatingContext)?void 0:t.nodeId,m=w&&fe(w.nodesRef.current,p).some((t=>{var n;return(0,o.F2)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,o.F2)(e,s.floating)||(0,o.F2)(e,s.domReference)||m)return;const g=w?fe(w.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}a(!1,e,"outside-press")})),A=p((e=>{var t;const n=()=>{var t;M(e),null==(t=(0,o.EW)(e))||t.removeEventListener(h,n)};null==(t=(0,o.EW)(e))||t.addEventListener(h,n)}));r.useEffect((()=>{if(!n||!l)return;c.current.__escapeKeyBubbles=E,c.current.__outsidePressBubbles=P;let e=-1;function t(e){a(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),j.current=!0}function f(){e=window.setTimeout((()=>{j.current=!1}),(0,i.Tc)()?5:0)}const p=(0,o.YE)(s.floating);d&&(p.addEventListener("keydown",D?T:C,D),p.addEventListener("compositionstart",r),p.addEventListener("compositionend",f)),x&&p.addEventListener(h,_?A:M,_);let m=[];return v&&((0,i.vq)(s.domReference)&&(m=(0,u.v9)(s.domReference)),(0,i.vq)(s.floating)&&(m=m.concat((0,u.v9)(s.floating))),!(0,i.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(m=m.concat((0,u.v9)(s.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{d&&(p.removeEventListener("keydown",D?T:C,D),p.removeEventListener("compositionstart",r),p.removeEventListener("compositionend",f)),x&&p.removeEventListener(h,_?A:M,_),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[c,s,d,x,h,n,a,v,l,E,P,C,D,T,M,_,A]),r.useEffect((()=>{k.current=!1}),[x,h]);const I=r.useMemo((()=>({onKeyDown:C,[Je[g]]:e=>{m&&a(!1,e.nativeEvent,"reference-press")}})),[C,a,m,g]),R=r.useMemo((()=>({onKeyDown:C,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[Ze[h]]:()=>{k.current=!0}})),[C,h]);return r.useMemo((()=>l?{reference:I,floating:R}:{}),[l,I,R])}function nt(e){const{open:t=!1,onOpenChange:n,elements:o}=e,a=q(),i=r.useRef({}),[s]=r.useState((()=>$())),c=null!=X();const[u,l]=r.useState(o.reference),d=p(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:l})),[]),h=r.useMemo((()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference})),[u,o.reference,o.floating]);return r.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:a,refs:f})),[t,d,h,s,a,f])}function rt(e){void 0===e&&(e={});const{nodeId:t}=e,n=nt({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[s,c]=r.useState(null),[l,d]=r.useState(null),f=(null==a?void 0:a.reference)||s,p=r.useRef(null),h=J();C((()=>{f&&(p.current=f)}),[f]);const m=(0,u.we)({...e,elements:{...a,...l&&{reference:l}}}),g=r.useCallback((e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),m.refs.setReference(t)}),[m.refs]),v=r.useCallback((e=>{((0,i.vq)(e)||null===e)&&(p.current=e,c(e)),((0,i.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,i.vq)(e))&&m.refs.setReference(e)}),[m.refs]),y=r.useMemo((()=>({...m.refs,setReference:v,setPositionReference:g,domReference:p})),[m.refs,v,g]),b=r.useMemo((()=>({...m.elements,domReference:f})),[m.elements,f]),w=r.useMemo((()=>({...m,...o,refs:y,elements:b,nodeId:t})),[m,y,b,t,o]);return C((()=>{o.dataRef.current.floatingContext=w;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=w)})),r.useMemo((()=>({...m,context:w,refs:y,elements:b})),[m,y,b,w])}function ot(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,events:s,dataRef:c,elements:u}=e,{enabled:l=!0,visibleOnly:d=!0}=t,f=r.useRef(!1),p=r.useRef(),h=r.useRef(!0);r.useEffect((()=>{if(!l)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===(0,o.RS)((0,o.YE)(u.domReference))&&(f.current=!0)}function r(){h.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[u.domReference,n,l]),r.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}}),[s,l]),r.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=r.useMemo((()=>({onPointerDown(e){(0,o.Pg)(e.nativeEvent)||(h.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=(0,o.EW)(e.nativeEvent);if(d&&(0,i.vq)(t))try{if((0,o.nr)()&&(0,o.cX)())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!h.current&&!(0,o.$u)(t))return}a(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,i.vq)(t)&&t.hasAttribute(ne("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{var e;const i=(0,o.RS)(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&((0,o.gR)(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,i)||(0,o.gR)(u.domReference,i)||r||a(!1,n,"focus"))}))}})),[c,u.domReference,a,d]);return r.useMemo((()=>l?{reference:m}:{}),[l,m])}const at="active",it="selected";function st(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[at]:t,[it]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Ne]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[at,it].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function ct(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),a=r.useCallback((t=>st(t,e,"reference")),t),i=r.useCallback((t=>st(t,e,"floating")),n),s=r.useCallback((t=>st(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s})),[a,i,s])}let ut=!1;function lt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function dt(e,t){return lt(t,e===h||e===m,e===g||e===v)}function ft(e,t,n){return lt(t,e===m,n?e===g:e===v)||"Enter"===e||" "===e||""===e}function pt(e,t,n){return lt(t,n?e===v:e===g,e===h)}function ht(e,t){const{open:n,onOpenChange:a,elements:s}=e,{listRef:c,activeIndex:u,onNavigate:l=(()=>{}),enabled:d=!0,selectedIndex:f=null,allowEscape:h=!1,loop:y=!1,nested:_=!1,rtl:T=!1,virtual:M=!1,focusItemOnOpen:A="auto",focusItemOnHover:I=!0,openOnArrowKeyDown:R=!0,disabledIndices:N,orientation:L="vertical",cols:F=1,scrollItemIntoView:H=!0,virtualItemRef:B,itemSizes:W,dense:Y=!1}=t;const U=re(Le(s.floating)),z=X(),V=J(),q=p(l),G=r.useRef(A),$=r.useRef(null!=f?f:-1),K=r.useRef(null),Q=r.useRef(!0),Z=r.useRef(q),ee=r.useRef(!!s.floating),te=r.useRef(n),ne=r.useRef(!1),oe=r.useRef(!1),ae=re(N),ie=re(n),se=re(H),ce=re(f),[ue,le]=r.useState(),[de,pe]=r.useState(),he=p((function(e,t,n){function r(e){M?(le(e.id),null==V||V.events.emit("virtualfocus",e),B&&(B.current=e)):j(e,{preventScroll:!0,sync:!(!(0,o.cX)()||!(0,o.nr)())&&(ut||ne.current)})}void 0===n&&(n=!1);const a=e.current[t.current];a&&r(a),requestAnimationFrame((()=>{const o=e.current[t.current]||a;if(!o)return;a||r(o);const i=se.current;i&&ge&&(n||!Q.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))}))}));C((()=>{document.createElement("div").focus({get preventScroll(){return ut=!0,!1}})}),[]),C((()=>{d&&(n&&s.floating?G.current&&null!=f&&(oe.current=!0,$.current=f,q(f)):ee.current&&($.current=-1,Z.current(null)))}),[d,n,s.floating,f,q]),C((()=>{if(d&&n&&s.floating)if(null==u){if(ne.current=!1,null!=ce.current)return;if(ee.current&&($.current=-1,he(c,$)),(!te.current||!ee.current)&&G.current&&(null!=K.current||!0===G.current&&null==K.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else $.current=null==K.current||ft(K.current,L,T)||_?w(c,ae.current):O(c,ae.current),K.current=null,q($.current)};t()}}else b(c,u)||($.current=u,he(c,$,oe.current),oe.current=!1)}),[d,n,s.floating,u,ce,_,c,L,T,q,he,ae]),C((()=>{var e;if(!d||s.floating||!V||M||!ee.current)return;const t=V.nodesRef.current,n=null==(e=t.find((e=>e.id===z)))||null==(e=e.context)?void 0:e.elements.floating,r=(0,o.RS)((0,o.YE)(s.floating)),a=t.some((e=>e.context&&(0,o.gR)(e.context.elements.floating,r)));n&&!a&&Q.current&&n.focus({preventScroll:!0})}),[d,s.floating,V,z,M]),C((()=>{if(d&&V&&M&&!z)return V.events.on("virtualfocus",e),()=>{V.events.off("virtualfocus",e)};function e(e){pe(e.id),B&&(B.current=e)}}),[d,V,M,z,B]),C((()=>{Z.current=q,ee.current=!!s.floating})),C((()=>{n||(K.current=null)}),[n]),C((()=>{te.current=n}),[n]);const me=null!=u,ge=r.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&q(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...I&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;Q.current&&"touch"!==t&&($.current=-1,he(c,$),q(null),M||j(U.current,{preventScroll:!0}))}}}}),[n,U,he,I,c,q,M]),ve=p((e=>{if(Q.current=!1,ne.current=!0,229===e.which)return;if(!ie.current&&e.currentTarget===U.current)return;if(_&&pt(e.key,L,T))return(0,o.jo)(e),a(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(s.domReference)&&!M&&s.domReference.focus());const t=$.current,r=w(c,N),u=O(c,N);if("Home"===e.key&&((0,o.jo)(e),$.current=r,q($.current)),"End"===e.key&&((0,o.jo)(e),$.current=u,q($.current)),F>1){const t=W||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=S(t,F,Y),o=n.findIndex((e=>null!=e&&!D(c.current,e,N))),a=n.reduce(((e,t,n)=>null==t||D(c.current,t,N)?e:n),-1),i=n[k({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:L,loop:y,cols:F,disabledIndices:P([...N||c.current.map(((e,t)=>D(c.current,t)?t:void 0)),void 0],n),minIndex:o,maxIndex:a,prevIndex:E($.current>u?r:$.current,t,n,F,e.key===m?"bl":e.key===v?"tr":"tl"),stopEvent:!0})];if(null!=i&&($.current=i,q($.current)),"both"===L)return}if(dt(e.key,L)){if((0,o.jo)(e),n&&!M&&(0,o.RS)(e.currentTarget.ownerDocument)===e.currentTarget)return $.current=ft(e.key,L,T)?r:u,void q($.current);ft(e.key,L,T)?$.current=y?t>=u?h&&t!==c.current.length?-1:r:x(c,{startingIndex:t,disabledIndices:N}):Math.min(u,x(c,{startingIndex:t,disabledIndices:N})):$.current=y?t<=r?h&&-1!==t?c.current.length:u:x(c,{startingIndex:t,decrement:!0,disabledIndices:N}):Math.max(r,x(c,{startingIndex:t,decrement:!0,disabledIndices:N})),b(c,$.current)?q(null):q($.current)}})),ye=r.useMemo((()=>M&&n&&me&&{"aria-activedescendant":de||ue}),[M,n,me,de,ue]),be=r.useMemo((()=>({"aria-orientation":"both"===L?void 0:L,...!(0,o.WZ)(s.domReference)&&ye,onKeyDown:ve,onPointerMove(){Q.current=!0}})),[ye,ve,s.domReference,L]),we=r.useMemo((()=>{function e(e){"auto"===A&&(0,o.YF)(e.nativeEvent)&&(G.current=!0)}return{...ye,onKeyDown(e){Q.current=!1;const t=e.key.startsWith("Arrow"),r=["Home","End"].includes(e.key),i=t||r,s=function(e,t,n){return lt(t,n?e===g:e===v,e===m)}(e.key,L,T),u=pt(e.key,L,T),l=dt(e.key,L),d=(_?s:l)||"Enter"===e.key||""===e.key.trim();if(M&&n){const t=null==V?void 0:V.nodesRef.current.find((e=>null==e.parentId)),n=V&&t?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),fe(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(V.nodesRef.current,t.id):null;if(i&&n&&B){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||u){var p,h;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,a=u&&!r?null==(h=n.context)?void 0:h.elements.domReference:s?c.current.find((e=>(null==e?void 0:e.id)===ue)):null;a&&((0,o.jo)(e),a.dispatchEvent(t),pe(void 0))}var y;if((l||r)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return(0,o.jo)(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return ve(e)}(n||R||!t)&&(d&&(K.current=_&&l?null:e.key),_?s&&((0,o.jo)(e),n?($.current=w(c,ae.current),q($.current)):a(!0,e.nativeEvent,"list-navigation")):l&&(null!=f&&($.current=f),(0,o.jo)(e),!n&&R?a(!0,e.nativeEvent,"list-navigation"):ve(e),n&&q($.current)))},onFocus(){n&&!M&&q(null)},onPointerDown:function(e){G.current=A,"auto"===A&&(0,o.Pg)(e.nativeEvent)&&(G.current=!0)},onMouseDown:e,onClick:e}}),[ue,ye,ve,ae,A,c,_,q,a,n,R,L,T,f,V,M,B]);return r.useMemo((()=>d?{reference:we,floating:be,item:ge}:{}),[d,we,be,ge])}const mt=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function gt(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,c=null!=(n=mt.get(s))?n:s,u=q(),l=null!=X(),d=r.useMemo((()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":o?a:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:u},..."menu"===c&&l&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[c,a,l,o,u,s]),f=r.useMemo((()=>{const e={id:a,...c&&{role:c}};return"tooltip"===c||"label"===s?e:{...e,..."menu"===c&&{"aria-labelledby":u}}}),[c,a,u,s]),p=r.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[a,s]);return r.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}const vt=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function yt(e,t){return"function"==typeof e?e(t):e}function bt(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"==typeof a?a:a.close)||0,[s,c]=r.useState("unmounted"),u=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return u||"close"!==s||c("unmounted"),C((()=>{if(o){if(n){c("initial");const e=requestAnimationFrame((()=>{c("open")}));return()=>{cancelAnimationFrame(e)}}c("close")}}),[n,o]),{isMounted:u,status:s}}function wt(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,c=e.placement,u=c.split("-")[0],l=r.useMemo((()=>({side:u,placement:c})),[u,c]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=r.useState((()=>({...yt(i,l),...yt(n,l)}))),{isMounted:g,status:v}=bt(e,{duration:s}),y=re(n),b=re(o),w=re(a),O=re(i);return C((()=>{const e=yt(y.current,l),t=yt(w.current,l),n=yt(O.current,l),r=yt(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(vt).join(","),transitionDuration:f+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(vt).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,y,b,O,f,v,l]),{isMounted:g,styles:h}}function Ot(e,t){var n;const{open:a,dataRef:i}=e,{listRef:s,activeIndex:c,onMatch:u,onTypingChange:l,enabled:d=!0,findMatch:f=null,resetMs:h=750,ignoreKeys:m=[],selectedIndex:g=null}=t,v=r.useRef(),y=r.useRef(""),b=r.useRef(null!=(n=null!=g?g:c)?n:-1),w=r.useRef(null),O=p(u),x=p(l),k=re(f),S=re(m);C((()=>{a&&(clearTimeout(v.current),w.current=null,y.current="")}),[a]),C((()=>{var e;a&&""===y.current&&(b.current=null!=(e=null!=g?g:c)?e:-1)}),[a,g,c]);const E=p((e=>{e?i.current.typing||(i.current.typing=e,x(e)):i.current.typing&&(i.current.typing=e,x(e))})),P=p((e=>{function t(e,t,n){const r=k.current?k.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=s.current;if(y.current.length>0&&" "!==y.current[0]&&(-1===t(n,n,y.current)?E(!1):" "===e.key&&(0,o.jo)(e)),null==n||S.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&((0,o.jo)(e),E(!0));n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&y.current===e.key&&(y.current="",b.current=w.current),y.current+=e.key,clearTimeout(v.current),v.current=setTimeout((()=>{y.current="",b.current=w.current,E(!1)}),h);const r=b.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],y.current);-1!==i?(O(i),w.current=i):" "!==e.key&&(y.current="",E(!1))})),D=r.useMemo((()=>({onKeyDown:P})),[P]),_=r.useMemo((()=>({onKeyDown:P,onKeyUp(e){" "===e.key&&E(!1)}})),[P,E]);return r.useMemo((()=>d?{reference:D,floating:_}:{}),[d,D,_])}function xt(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const kt=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:s=0,minItemsVisible:l=4,referenceOverflowThreshold:d=0,scrollRef:f,...p}=(0,a._3)(e,t),{rects:h,elements:{floating:m}}=t,g=n.current[s],v=(null==f?void 0:f.current)||m,y=m.clientTop||v.clientTop,b=0!==m.clientTop,w=0!==v.clientTop,O=m===v;if(!g)return{};const x={...t,...await(0,u.cY)(-g.offsetTop-m.clientTop-h.reference.height/2-g.offsetHeight/2-i).fn(t)},k=await(0,u.__)(xt(x,v.scrollHeight+y+m.clientTop),p),S=await(0,u.__)(x,{...p,elementContext:"reference"}),E=(0,a.T9)(0,k.top),P=x.y+E,D=v.scrollHeight>v.clientHeight,_=(D?e=>e:a.LI)((0,a.T9)(0,v.scrollHeight+(b&&O||w?2*y:0)-E-(0,a.T9)(0,k.bottom)));if(v.style.maxHeight=_+"px",v.scrollTop=E,o){const e=D&&v.offsetHeight<g.offsetHeight*l-1||S.top>=-d||S.bottom>=-d;c.flushSync((()=>o(e)))}return r&&(r.current=await(0,u.__)(xt({...x,y:P},v.offsetHeight+y+m.clientTop),p)),{y:P}}});function St(e,t){const{open:n,elements:a}=e,{enabled:i=!0,overflowRef:s,scrollRef:u,onChange:l}=t,d=p(l),f=r.useRef(!1),h=r.useRef(null),m=r.useRef(null);r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==s.current)return;const n=e.deltaY,r=s.current.top>=-.5,a=s.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,u=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!a&&n<0?(e.preventDefault(),c.flushSync((()=>{d((e=>e+Math[l](n,i*u)))}))):/firefox/i.test((0,o.$t)())&&(t.scrollTop+=n))}const t=(null==u?void 0:u.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{h.current=t.scrollTop,null!=s.current&&(m.current={...s.current})})),()=>{h.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,a.floating,s,u,d]);const g=r.useMemo((()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){const e=(null==u?void 0:u.current)||a.floating;if(s.current&&e&&f.current){if(null!==h.current){const t=e.scrollTop-h.current;(s.current.bottom<-.5&&t<-1||s.current.top<-.5&&t>1)&&c.flushSync((()=>d((e=>e+t))))}requestAnimationFrame((()=>{h.current=e.scrollTop}))}}})),[a.floating,d,s,u]);return r.useMemo((()=>i?{floating:g}:{}),[i,g])}function Et(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[c,u]=t[i]||[0,0];s>=r!=u>=r&&n<=(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}function Pt(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let a,s=!1,c=null,u=null,l=performance.now();const d=e=>{let{x:n,y:d,placement:f,elements:p,onClose:h,nodeId:m,tree:g}=e;return function(e){function v(){clearTimeout(a),h()}if(clearTimeout(a),!p.domReference||!p.floating||null==f||null==n||null==d)return;const{clientX:y,clientY:b}=e,w=[y,b],O=(0,o.EW)(e),x="mouseleave"===e.type,k=(0,o.gR)(p.floating,O),S=(0,o.gR)(p.domReference,O),E=p.domReference.getBoundingClientRect(),P=p.floating.getBoundingClientRect(),D=f.split("-")[0],_=n>P.right-P.width/2,j=d>P.bottom-P.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}(w,E),T=P.width>E.width,M=P.height>E.height,A=(T?E:P).left,I=(T?E:P).right,R=(M?E:P).top,N=(M?E:P).bottom;if(k&&(s=!0,!x))return;if(S&&(s=!1),S&&!x)return void(s=!0);if(x&&(0,i.vq)(e.relatedTarget)&&(0,o.gR)(p.floating,e.relatedTarget))return;if(g&&fe(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===D&&d>=E.bottom-1||"bottom"===D&&d<=E.top+1||"left"===D&&n>=E.right-1||"right"===D&&n<=E.left+1)return v();let L=[];switch(D){case"top":L=[[A,E.top+1],[A,P.bottom-1],[I,P.bottom-1],[I,E.top+1]];break;case"bottom":L=[[A,P.top+1],[A,E.bottom-1],[I,E.bottom-1],[I,P.top+1]];break;case"left":L=[[P.right-1,N],[P.right-1,R],[E.left+1,R],[E.left+1,N]];break;case"right":L=[[E.right-1,N],[E.right-1,R],[P.left+1,R],[P.left+1,N]]}if(!Et([y,b],L)){if(s&&!C)return v();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===c||null===u||0===r)return c=e,u=t,l=n,null;const o=e-c,a=t-u,i=Math.sqrt(o*o+a*a);return c=e,u=t,l=n,i/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Et([y,b],function(e){let[n,r]=e;switch(D){case"top":return[[T?n+t/2:_?n+4*t:n-4*t,r+t+1],[T?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[P.left,_||T?P.bottom-t:P.top],[P.right,_?T?P.bottom-t:P.top:P.bottom-t]]];case"bottom":return[[T?n+t/2:_?n+4*t:n-4*t,r-t],[T?n-t/2:_?n+4*t:n-4*t,r-t],...[[P.left,_||T?P.top+t:P.bottom],[P.right,_?T?P.top+t:P.bottom:P.top+t]]];case"left":{const e=[n+t+1,M?r+t/2:j?r+4*t:r-4*t],o=[n+t+1,M?r-t/2:j?r+4*t:r-4*t];return[...[[j||M?P.right-t:P.left,P.top],[j?M?P.right-t:P.left:P.right-t,P.bottom]],e,o]}case"right":return[[n-t,M?r+t/2:j?r+4*t:r-4*t],[n-t,M?r-t/2:j?r+4*t:r-4*t],...[[j||M?P.left+t:P.right,P.top],[j?M?P.left+t:P.right:P.left+t,P.bottom]]]}}([n,d]))?!s&&r&&(a=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:n},d}},28424:(e,t,n)=>{"use strict";n.d(t,{$:()=>X,A:()=>I,B:()=>D,C:()=>N,D:()=>v,E:()=>w,F:()=>F,G:()=>V,H:()=>u,J:()=>H,L:()=>K,M:()=>ee,N:()=>ne,O:()=>Z,P:()=>A,Q:()=>oe,R:()=>R,S:()=>W,T:()=>M,Z:()=>Q,a:()=>L,a2:()=>te,a4:()=>re,b:()=>B,d:()=>Y,e:()=>T,f:()=>U,g:()=>z,h:()=>q,i:()=>y,j:()=>E,k:()=>s,l:()=>S,m:()=>b,n:()=>C,o:()=>p,p:()=>l,q:()=>g,r:()=>f,s:()=>k,t:()=>c,u:()=>d,v:()=>P,y:()=>x,z:()=>O});var r=n(63821),o=n(58168),a=n(21225),i=n(37089),s=function(e){return function(){return e}}(!0),c=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var y=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},w=function(e){return function(t){return e(Object.defineProperty(t,r.q8,{value:!0}))}},O=function(e){return e===r.a6},x=function(e){return e===r.nm},k=function(e){return O(e)||x(e)};function S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,s=(0,a.YO)(e)?b(r):{},u={};return n.forEach((function(e){var n=function(n,a){o||(a||k(n)?(t.cancel(),t(n,a)):(s[e]=n,++i===r&&(o=!0,t(s))))};n.cancel=c,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function E(e){return{name:e.name||"anonymous",location:P(e)}}function P(e){return e[r.x2]}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var _={isEmpty:s,put:c,take:c};function j(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var C=function(){return _},T=function(e){return j(e,4)},M="TAKE",A="PUT",I="ALL",R="RACE",N="CALL",L="CPS",F="FORK",H="JOIN",B="CANCEL",W="SELECT",Y="ACTION_CHANNEL",U="CANCELLED",z="FLUSH",V="GET_CONTEXT",q="SET_CONTEXT",G=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},$=function(e){return G(F,(0,o.A)({},e.payload,{detached:!0}))};function K(e,t){return void 0===e&&(e="*"),(0,a.T1)(e)?((0,a.uQ)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),G(M,{pattern:e})):(0,a.fD)(e)&&(0,a.uQ)(t)&&(0,a.T1)(t)?G(M,{channel:e,pattern:t}):(0,a.Ix)(e)?((0,a.uQ)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),G(M,{channel:e})):void 0}function Q(e,t){return(0,a.vD)(t)&&(t=e,e=void 0),G(A,{channel:e,action:t})}function X(e){var t=G(I,e);return t.combinator=!0,t}function J(e,t){var n,r=null;return(0,a.Pc)(e)?n=e:((0,a.YO)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,a.Yj)(n)&&(0,a.Pc)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(N,J(e,n))}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(F,J(e,n))}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(ee.apply(void 0,[e].concat(n)))}function ne(e){return void 0===e&&(e=r.Pe),G(B,e)}function re(e){void 0===e&&(e=u);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(W,{selector:e,args:n})}var oe=Z.bind(null,i.A)},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},21225:(e,t,n)=>{"use strict";n.d(t,{HR:()=>h,Ix:()=>f,Pc:()=>i,T1:()=>d,YO:()=>c,Yj:()=>s,fD:()=>m,iv:()=>u,lJ:()=>l,mr:()=>p,uQ:()=>a,vD:()=>o});var r=n(63821),o=function(e){return null==e},a=function(e){return null!=e},i=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},c=Array.isArray,u=function(e){return e&&i(e.then)},l=function(e){return e&&i(e.next)&&i(e.throw)},d=function e(t){return t&&(s(t)||h(t)||i(t)||c(t)&&t.every(e))},f=function(e){return e&&i(e.take)&&i(e.close)},p=function(e){return i(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return f(e)&&e[r.Xl]}},63821:(e,t,n)=>{"use strict";n.d(t,{E_:()=>s,IO:()=>i,Pe:()=>l,Xl:()=>c,a6:()=>p,bO:()=>o,nm:()=>f,q8:()=>u,wn:()=>d,x2:()=>h,x7:()=>a});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),a=r("CHANNEL_END"),i=r("IO"),s=r("MATCH"),c=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),d=r("TASK"),f=r("TASK_CANCEL"),p=r("TERMINATE"),h=r("LOCATION")},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0}},82558:(e,t,n)=>{"use strict";n.d(t,{$y:()=>r,AM:()=>d,Dh:()=>s,EG:()=>E,EY:()=>h,ID:()=>u,JK:()=>P,KM:()=>a,M2:()=>f,XC:()=>c,Yn:()=>l,Yv:()=>y,Zc:()=>i,a9:()=>x,cM:()=>O,cV:()=>b,iN:()=>g,ln:()=>o,o_:()=>m,q0:()=>k,rw:()=>w,sT:()=>p,vJ:()=>v,xC:()=>S});var r="dbrefactoring/LOAD_MODULES",o="dbrefactoring/LOAD_FRAGMENTS",a="dbrefactoring/SET_VERSION",i="dbrefactoring/SET_FRAGMENTS",s="dbrefactoring/SET_MODULES",c="dbrefactoring/SET_SELECTED_MODULES",u="dbrefactoring/SET_FRAGMENT_SELECTED",l="dbrefactoring/SET_IGNORE_ERRORS",d="dbrefactoring/EXECUTE_DB_REFACTORING",f="dbrefactoring/SET_LANGUAGE",p="dbrefactoring/EXECUTE_LANGUAGE_UPGRADE",h="dbrefactoring/UNSET_RUNNING",m=function(){return{type:r}},g=function(){return{type:o}},v=function(e){return{type:a,payload:{version:e}}},y=function(e){return{type:i,payload:{fragments:e}}},b=function(e){return{type:s,payload:{modules:e}}},w=function(e){return{type:c,payload:{selectedModules:e}}},O=function(e,t){return{type:u,payload:{fragment:e,selected:t}}},x=function(e){return{type:l,payload:{ignoreErrors:e}}},k=function(){return{type:d}},S=function(e){return{type:f,payload:{language:e}}},E=function(){return{type:p}},P=function(e){return{type:h,payload:{path:e}}}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,E9:()=>S,Fr:()=>P,HA:()=>f,Jg:()=>k,Ki:()=>E,QQ:()=>O,TA:()=>y,UT:()=>w,Ur:()=>s,V8:()=>u,VI:()=>g,Wt:()=>h,XS:()=>p,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>c,tW:()=>l,uN:()=>v,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",s="modelvalidation/ADD_CHECK_EVENT",c="modelvalidation/SET_RESULT",u="modelvalidation/SET_SELECTED",l="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",f="modelvalidation/EXECUTE_SQL",p="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){return{type:o,payload:{message:e}}},v=function(e){return{type:c,payload:{result:e}}},y=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:s,payload:{id:e,type:t,label:n}}},O=function(e,t){return{type:u,payload:{ids:e,selected:t}}},x=function(){return{type:l}},k=function(e){return{type:d,payload:{sql:e}}},S=function(e){return{type:f,payload:{close:e}}},E=function(){return{type:p}},P=function(e){return{type:h,payload:{changelog:e}}}},42938:(e,t,n)=>{"use strict";n.d(t,{A0:()=>o,AB:()=>a,Fm:()=>s,bJ:()=>r,dy:()=>c,oG:()=>i});var r="sqllog/RECEIVE_ENTRY",o="sqllog/SET_ACTIVE",a="sqllog/SET_ELAPSED",i=function(e){return{type:r,payload:{data:e}}},s=function(e){return{type:o,payload:{active:e}}},c=function(e){return{type:a,payload:{elapsed:e}}}},6730:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(92207),o=n.n(r),a=n(43786),i="EMIT_ACTION",s="DISPATCH_EMITTED_ACTION",c=o().mark(u);function u(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.Q7)([(0,a.jP)(i,l,e),(0,a.jP)(s,d)]);case 2:case"end":return t.stop()}}),c)}function l(e,t){var n=t.payload;return o().mark((function t(){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,(0,a.Lt)(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,(0,a.T1)(i,r);case 7:case"end":return t.stop()}}),t)}))()}function d(e){var t=e.payload;return o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,(0,a.yJ)(n);case 3:case"end":return e.stop()}}),e)}))()}const f={emitAction:function(e){return{type:i,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:s,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(u,t)}}},60085:(e,t,n)=>{"use strict";n.d(t,{A:()=>ca});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),s=n(43786),c=n(63205),u=n(5556),l=n.n(u),d={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},f={outputjob:"OUTPUTJOB",entities:"ENTITIES"},p=o()(o()(o()(o()(o()({},d.neutral,null),d.error,"times-circle"),d.warning,"exclamation-circle"),d.success,"check-circle"),d.info,"info-circle"),h=(l().shape({key:l().string.isRequired,message:l().string,read:l().bool,timestamp:l().string,originId:l().string,type:l().string,taskProgress:l().shape({taskExecutionKey:l().string.isRequired,status:l().string,message:l().string,percentage:l().number,done:l().number,total:l().number,supportsCancellation:l().bool,isRunning:l().bool})}),i().mark(k)),m=i().mark(S);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y={failed:"error",info:"info",warning:"warning",success:"success"},b="running_infinite",w="running_absolute",O="pending",x=function(e){return e.status&&(e.status===O||e.status===w||e.status===b)};function k(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=v(v({},e),{},{type:y[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?v(v({},e.taskProgress),{},{isRunning:x(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,(0,s.T1)(S,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),h)}function S(e){var t,n,r,o,a,u;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e||e.type!==f.outputjob){i.next=14;break}return t=null,i.prev=2,n=e.content[0].key,i.next=6,(0,s.T1)(c.A.fetchEntity,"Output_job",n,{paths:["document"]});case 6:r=i.sent,o=r.paths.document.value,a=o.fileName,u=o.binaryLink,t={name:a,link:u,description:e.content[0].display},i.next=13;break;case 11:i.prev=11,i.t0=i.catch(2);case 13:return i.abrupt("return",v(v({},e),{},{file:t}));case 14:return i.abrupt("return",e);case 15:case"end":return i.stop()}}),m,null,[[2,11]])}var E=n(71468),P="notification/MODAL",D="notification/REMOVE_MODAL",_=function(e,t,n,r){return{type:P,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){}}}},j=function(e){return{type:D,payload:{id:e}}},C=n(81845),T=n.n(C),M=n(33015);const A={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};l().shape({id:l().string.isRequired,title:l().string,body:l().oneOfType([l().string,l().element]),type:l().oneOf(Object.values(A))}),l().shape({id:l().oneOfType([l().string,l().number]).isRequired,title:l().oneOfType([l().string,l().node]),message:l().oneOfType([l().string,l().node]),component:l().func,cancelable:l().bool,cancelCallback:l().func,type:l().oneOf(Object.values(A))});var I,R,N=n(72189),L=n.n(N),F=n(87716),H=F.Ay.div.withConfig({displayName:"StyledPageOverlay"})(I||(I=L()(["\n background-color: rgba(50 50 50 / 70%);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),B=F.Ay.div.withConfig({displayName:"StyledHolder"})(R||(R=L()(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n\n /* higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n lower than ext-js legacy actions */\n z-index: 9000;\n"]))),W=n(23228),Y=n(85015),U=n.n(Y),z=n(31004),V=n(74848);const q=function(e){var t,n=e.children;return U()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,V.jsx)(M.Ar,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,V.jsx)(z.FormattedMessage,{id:n}):(0,V.jsx)("span",{children:n}):n};var G,$;const K={blockingDiplayStyles:(0,F.AH)(G||(G=L()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),M.t7.color("signal.info"),M.t7.color("paper")),titleWrapperStyles:(0,F.AH)($||($=L()(["\n color: ",";\n"])),M.t7.color("paper"))};var Q,X;const J={blockingDiplayStyles:(0,F.AH)(Q||(Q=L()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),M.t7.color("paper"),M.t7.color("border"),M.t7.radii("toaster"),M.t7.color("text")),titleWrapperStyles:(0,F.AH)(X||(X=L()(["\n color: ",";\n"])),M.t7.color("signal.info"))};var Z,ee,te=o()(o()({},W.A.EmbedType.admin,K),W.A.EmbedType.widget,J),ne=F.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(Z||(Z=L()(["\n /* only latest modal should be above mask */\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),M.hs.space(-.5),(function(e){return e.styles})),re=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(ee||(ee=L()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),M.hs.font(1.5),M.t7.fontWeight("regular"),(function(e){return e.styles}));const oe=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=W.A.embedStrategy({mapping:te});return(0,V.jsxs)(ne,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(re,{styles:a.titleWrapperStyles,children:(0,V.jsx)(q,{children:n})})}),r&&(0,V.jsx)(M.o5.Span,{children:(0,V.jsx)(q,{children:r})})]})};const ae=function(e){var t=e.blocker,n=e.isLatest;return(0,V.jsx)(oe,{blocker:t,isLatest:n})};var ie,se,ce,ue,le,de,fe,pe,he,me,ge,ve=n(4883),ye=M.hs.space(.5),be=F.Ay.div.withConfig({displayName:"StyledModalContent"})(ie||(ie=L()(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgba(0 0 0 / 40%);\n max-height: 80%;\n min-width: 350px;\n max-width: 700px;\n margin: auto;\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),M.t7.color("paper"),M.t7.radii("modal"),ye,M.gQ),we=F.Ay.button.withConfig({displayName:"StyledCloseButton"})(se||(se=L()(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),M.t7.color("text")),Oe=F.Ay.div.withConfig({displayName:"StyledModalWrapper"})(ce||(ce=L()(["\n width: 100%;\n height: 100%;\n position: absolute;\n\n /* only latest modal should be above mask */\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),xe=F.Ay.div.withConfig({displayName:"StyledModalHeader"})(ue||(ue=L()(["\n grid-row-start: header;\n display: flex;\n"]))),ke=F.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(le||(le=L()(["\n padding-bottom: ",";\n"])),M.hs.space(.5)),Se=F.Ay.div.withConfig({displayName:"StyledModalBody"})(de||(de=L()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),Ee=F.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(fe||(fe=L()(["\n padding-bottom: ",";\n"])),M.hs.space(0)),Pe=(0,F.Ay)(M.$n).withConfig({displayName:"StyledModalButton"})(pe||(pe=L()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),M.hs.space(0)),De=F.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(he||(he=L()(["\n display: flex;\n justify-content: flex-end;\n"]))),_e=(0,F.DU)(me||(me=L()(["\n "," {\n && {\n z-index: 9999999; /* higher than StyledModalHolder */\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),M.Ec);const je=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,ve.useRef)(null),f=(0,ve.useCallback)((function(){c(i)}),[c,i]),p=(0,ve.useCallback)((function(){u(i)}),[u,i]);(0,ve.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&p()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[p,r]),(0,ve.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var h=(0,ve.useMemo)((function(){return t||(t=(0,V.jsx)(s,{close:f}))}),[s,f]);return(0,V.jsxs)(V.Fragment,{children:[ge||(ge=(0,V.jsx)(_e,{})),(0,V.jsx)(Oe,{isLatest:l,children:(0,V.jsxs)(be,{ref:d,"data-cy":"modal-content",children:[(0,V.jsxs)(xe,{children:[a&&(0,V.jsx)(ke,{children:(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(q,{children:a})})}),r&&(0,V.jsx)(we,{onClick:p,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,V.jsxs)(Se,{children:[o&&(0,V.jsx)(Ee,{children:(0,V.jsx)(M.o5.Span,{children:(0,V.jsx)(q,{children:o})})}),h]})]})})]})};const Ce=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,V.jsx)(je,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var Te={closeModal:j};const Me=(0,E.Ng)((function(){return{}}),Te)(Ce);var Ae;const Ie=function(e){var t=e.overlays;return t.length>0&&T().createPortal((0,V.jsxs)(B,{className:M.eG,children:[t.map((function(e,n){return function(e,t,n){return e.type===A.MODAL?(0,V.jsx)(Me,{idx:t,modal:e,isLatest:n},t):e.type===A.BLOCKER?(0,V.jsx)(ae,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),Ae||(Ae=(0,V.jsx)(H,{}))]}),document.body)};var Re={closeModal:j};const Ne=(0,E.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),Re)(Ie);var Le="notification/SET_UNREAD_NOTIFICATION_KEYS",Fe="notification/UPDATE_UNREAD_NOTIFICATION",He="notification/LOAD_NOTIFICATIONS",Be="notification/SET_NOTIFICATION",We="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",Ye="notification/UPDATE_NOTIFICATION",Ue="notification/IS_LOADING_MORE_NOTIFICATIONS",ze="notification/MARK_AS_READ",Ve="notification/CANCEL_TASK",qe=function(e){return{type:Le,payload:{unreadNotificationKeys:e}}},Ge=function(e,t){return{type:Fe,payload:{notificationKey:e,read:t}}},$e=function(e){return{type:Be,payload:{notifications:e}}},Ke=function(e){return{type:We,payload:{moreNotificationsAvailable:e}}},Qe=function(e){return{type:Ye,payload:{notification:e}}},Xe=function(){return{type:Ue,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Je=function(e){return{type:ze,payload:{notificationKey:e}}},Ze=function(e){return{type:Ve,payload:{taskExecutionKey:e}}},et="notification/TOASTER",tt="notification/REMOVE_TOASTER",nt="notification/REMOVE_TOASTER_FROM_STORE",rt=function(e){return{type:et,payload:{toaster:e}}},ot=function(e,t){return{type:tt,payload:{key:e,manually:t}}},at=function(e){return{type:nt,payload:{key:e}}},it=n(93419);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 ct(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){o()(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 ut,lt,dt,ft,pt,ht,mt,gt,vt=function(e,t){return Number.isInteger(e)?e:function(e){return e===d.error||e===d.warning}(t)?-1:5e3},yt=(l().shape({type:l().oneOf(Object.values(d)).isRequired,title:l().oneOfType([l().string,l().func]),message:l().oneOfType([l().string,l().func]),body:l().oneOfType([l().string,l().func]),onClose:l().func,icons:l().string,duration:l().number,time:l().instanceOf(Date)}),n(72637)),bt=n.n(yt),wt=n(16193),Ot=n.n(wt),xt=(l().func.isRequired,l().func.isRequired,l().object,n(22056)),kt=n.n(xt),St=n(96424),Et=(0,F.i7)(ut||(ut=L()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),Pt=F.Ay.div.withConfig({displayName:"StyledToaster"})(lt||(lt=L()(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgba(0 0 0 / 70%);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),M.hs.space(-.5),M.hs.space(0),Et),Dt=(0,F.Ay)(M.cx).withConfig({displayName:"StyledCloseButton"})(dt||(dt=L()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &&:hover {\n background: transparent;\n cursor: pointer;\n }\n ","\n"])),M.hs.font(3),M.t7.color("backgroundBody"),(function(e){return e.styles})),_t=F.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(ft||(ft=L()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),M.hs.space(0),M.hs.space(0),M.rd,(function(e){return e.styles})),jt=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(pt||(pt=L()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),M.hs.font(1.5),M.t7.fontWeight("regular")),Ct=F.Ay.div.withConfig({displayName:"StyledIconWrapper"})(ht||(ht=L()(["\n font-size: ",";\n"])),M.hs.font(7)),Tt=F.Ay.div.withConfig({displayName:"StyledContentWrapper"})(mt||(mt=L()(["\n padding-top: ",";\n color: ",";\n"])),M.hs.space(-1),M.t7.color("textToaster")),Mt=F.Ay.div.withConfig({displayName:"StyledToasterBox"})(gt||(gt=L()(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); /* subtract height of header plus some additional padding */\n min-width: 310px;\n max-width: 400px;\n top: 40px; /* height of Header to prevent coverage */\n right: 55px;\n\n /* lower than StyledModalHolder and very high value \n to prevent other elements blocking it when implemented as a widget */\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); /* subtract height of header */\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,M.Ed)());const At=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,ve.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=St.A.useUserActive(i),c=kt()(s,3),u=c[0],l=c[1],d=c[2];(0,ve.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,V.jsxs)(Pt,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==a?void 0:a.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,V.jsx)(Dt,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,V.jsxs)(_t,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,V.jsx)(Ct,{children:(0,V.jsx)(M.In,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(jt,{"data-cy":"toaster-title",children:(0,V.jsx)(q,{children:t.title})})})]}),t.body&&(0,V.jsx)(Tt,{"data-cy":"toaster-content",children:(0,V.jsx)(q,{children:"function"==typeof t.body?(0,V.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var It,Rt,Nt={info:"info",success:"success",error:"danger",warning:"warning"},Lt=function(){return(0,F.AH)(It||(It=L()(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Nt[e]?t.colors.signal[Nt[e]]:"#ccc"}(e.type,e.theme)}),M.t7.color("textToaster"))},Ft=function(){return(0,F.AH)(Rt||(Rt=L()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),M.t7.color("textToaster"))};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Bt=function(e){var t=Ot()({},(bt()(e),e));return(0,V.jsx)(At,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:Lt,closeButtonStyles:Ft}},t))};var Wt,Yt,Ut={info:"info",success:"success",error:"danger",warning:"warning"},zt=function(){return(0,F.AH)(Wt||(Wt=L()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),M.t7.color("paper"),M.t7.radii("statusLabel"),M.t7.color("border"),M.t7.color("text"))},Vt=function(){return(0,F.AH)(Yt||(Yt=L()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Ut[e]?t.colors.signal[Ut[e]]:"#ccc"}(e.type,e.theme)}))};function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gt=function(e){var t=Ot()({},(bt()(e),e));return(0,V.jsx)(At,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:zt,iconTitleWrapperStyles:Vt}},t))};var $t=o()(o()({},W.A.EmbedType.admin,Bt),W.A.EmbedType.widget,Gt);const Kt=W.A.embedStrategyFactory({mapping:$t});const Qt=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,V.jsx)(Kt,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,V.jsx)(V.Fragment,{children:t&&T().createPortal((0,V.jsx)(Mt,{className:M.eG,children:a}),document.body)})};var Xt={removeToaster:ot,cancelTask:Ze};const Jt=(0,E.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Xt)(Qt);var Zt;const en=function(e){var t=e.navigationStrategy;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Jt,{navigationStrategy:t}),Zt||(Zt=(0,V.jsx)(Ne,{}))]})};var tn,nn,rn,on,an,sn,cn,un,ln,dn,fn="notification/BLOCKING_INFO",pn="notification/REMOVE_BLOCKING_INFO",hn=n(37576),mn=F.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(tn||(tn=L()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),M.hs.space(-1.5)),gn=F.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(nn||(nn=L()(["\n margin-right: ",";\n"])),M.hs.space(-1.5)),vn=F.Ay.div.withConfig({displayName:"StyledProgressOuter"})(rn||(rn=L()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),M.t7.color("paper")),yn=F.Ay.div.withConfig({displayName:"StyledProgressInner"})(on||(on=L()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),M.t7.color("paper"),(function(e){return e.percentage})),bn=F.Ay.span.withConfig({displayName:"StyledMessage"})(an||(an=L()(["\n margin-right: ",";\n"])),M.hs.space(-2)),wn=F.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(sn||(sn=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),M.hs.space(-2),M.hs.space(-2),M.hs.font(-1)),On=F.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(cn||(cn=L()(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),M.t7.color("text"),M.t7.color("text")),xn=F.Ay.div.withConfig({displayName:"StyledFileDescription"})(un||(un=L()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),M.hs.space(0)),kn=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(ln||(ln=L()(["\n padding-right: ",";\n"])),M.hs.space(-1.5)),Sn=F.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(dn||(dn=L()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),M.t7.color("text"));const En=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,V.jsx)(bn,{children:(0,V.jsx)(q,{children:t})}):null};var Pn,Dn=n(94394),_n=n.n(Dn),jn=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,V.jsx)(M.AM,{content:(0,V.jsx)(M.o5.P,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const Cn=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,V.jsx)(V.Fragment,{children:Object.entries(_n()(r,(function(e){return e.model}))).map((function(e){var t=kt()(e,2),r=t[0],o=t[1];return(0,V.jsx)(wn,{children:n&&n.ListOrDetailLink&&(0,V.jsx)(jn,{hasTooManyEntities:o.length>100,children:(0,V.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[Pn||(Pn=(0,V.jsx)(M.In,{icon:"arrow-right"}))," ",(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var Tn,Mn,An,In,Rn,Nn,Ln=n(31558);const Fn=(0,z.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},s=i("client.common.notification.outputJobFileLink"),c=i("client.common.notification.outputJobFileDownload");return o?(0,V.jsxs)(On,{children:[(0,V.jsx)(xn,{children:(0,V.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,V.jsx)("div",{children:(0,V.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[Tn||(Tn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"eye"})})),Mn||(Mn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),Ln.A.downloadSupportedByBrowser()&&(0,V.jsxs)("a",{href:Ln.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[An||(An=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"arrow-to-bottom"})})),In||(In=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,V.jsx)(wn,{children:n&&n.DetailLink&&(0,V.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[Rn||(Rn=(0,V.jsx)(M.In,{icon:"arrow-right"}))," ",Nn||(Nn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var Hn=o()(o()({},f.outputjob,Fn),f.entities,Cn);const Bn=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(Hn[r]){var o=Hn[r];return(0,V.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var Wn,Yn,Un,zn,Vn;const qn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===d.info&&o.isRunning&&o.supportsCancellation;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(mn,{children:[(0,V.jsx)(gn,{children:o.isRunning&&(Wn||(Wn=(0,V.jsx)(M.kt,{})))}),(0,V.jsx)(En,{notification:t})]}),"running_absolute"===o.status&&(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(vn,{children:(0,V.jsx)(yn,{percentage:o.percentage})})}),(0,V.jsx)(wn,{children:a&&(0,V.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[Yn||(Yn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"arrow-right"})})),Un||(Un=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,V.jsxs)(Sn,{onClick:function(){return n(o.taskExecutionKey)},children:[zn||(zn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"times"})})),Vn||(Vn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const Gn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress;return o?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(En,{notification:t}),(0,V.jsx)(Bn,{notification:t,navigationStrategy:r})]}):a?(0,V.jsx)(qn,{notification:t,navigationStrategy:r,cancelTask:n}):(0,V.jsx)(En,{notification:t})},$n=Gn;var Kn,Qn,Xn,Jn,Zn,er,tr,nr,rr={warning:M.t7.color("signal.warning"),error:M.t7.color("signal.danger"),success:M.t7.color("signal.success"),info:M.t7.color("signal.info")},or=F.Ay.article.withConfig({displayName:"StyledNotification"})(Kn||(Kn=L()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),M.hs.space(0),M.hs.space(-1),(function(e){return!e.read&&(0,F.AH)(Qn||(Qn=L()(["\n background-color: ",";\n "])),M.t7.color("backgroundBody"))})),ar=F.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Xn||(Xn=L()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),M.hs.space(-1),(function(e){var t=e.notificationType;return rr[t]})),ir=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jn||(Jn=L()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),M.hs.space(-1.5),M.hs.font(5)),sr=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Zn||(Zn=L()(["\n * {\n font-weight: "," !important;\n }\n"])),M.t7.fontWeight("regular")),cr=F.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(er||(er=L()(["\n ","\n margin-bottom: ",";\n"])),(0,M.Ed)({fontSize:M.hs.font(2.9),fontWeight:M.t7.fontWeight("bold"),color:M.t7.color("secondary")}),M.hs.space(-.5)),ur=F.Ay.div.withConfig({displayName:"StyledTimeStamp"})(tr||(tr=L()(["\n font-size: ",";\n"])),M.hs.font(-2)),lr=F.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(nr||(nr=L()(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),M.hs.space(-.5),M.t7.color("paper"),M.t7.color("secondaryLight"),M.t7.radii("menu"),vn,M.t7.color("text"),yn,M.t7.color("textLighter"),(0,M.Ed)());var dr={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const fr=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,ve.useRef)(null),u=hn.A.selectUnit(new Date(o.timestamp)),l=(0,ve.useState)((function(){return o.read})),d=kt()(l,1)[0];return t=c,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){kt()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,ve.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,V.jsxs)(or,{ref:c,read:d,"data-cy":"notification-item",children:[(0,V.jsxs)(ar,{notificationType:o.type,children:[(0,V.jsx)(ir,{children:(0,V.jsx)(M.In,{icon:dr[o.type]})}),(0,V.jsx)(sr,{children:(0,V.jsx)(M.o5.H5,{children:o.title})})]}),(0,V.jsx)($n,{notification:o,navigationStrategy:s,cancelTask:i}),(0,V.jsx)(ur,{children:(0,V.jsx)(z.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var pr,hr,mr,gr;const vr=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,ve.useRef)(null);(0,ve.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==f.outputjob||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,V.jsx)(fr,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,V.jsxs)(lr,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[pr||(pr=(0,V.jsx)(cr,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(hr||(hr=(0,V.jsx)(M.kt,{}))),u.length>0&&!r&&(mr||(mr=(0,V.jsx)(M.o5.I,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(gr||(gr=(0,V.jsx)(M.o5.I,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};var yr={loadNotifications:function(){return{type:He,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Je,cancelTask:Ze};const br=(0,E.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),yr)(vr);var wr="notification/CONFIRM",Or="notification/YES_NO_QUESTION",xr="notification/INFO",kr="notification/CONNECT_SOCKET",Sr="notification/CLOSE_SOCKET",Er="notification/SOCKET_MESSAGE_RECEIVED",Pr="notification/ADD_IGNORE_TOASTER",Dr=function(e){return{type:Er,payload:{data:e}}},_r=function(e){return{type:Pr,payload:{key:e}}};const jr={SYNC_ACTION:"sync-action"};var Cr=n(14644),Tr=n(37954),Mr=n(6730),Ar=i().mark(Rr),Ir=i().mark(Nr);function Rr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(fn,Nr),(0,s.jP)(pn,Nr)]);case 3:case"end":return t.stop()}}),Ar)}function Nr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),Ir)}var Lr=n(80299),Fr=n.n(Lr);function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wr=o()(o()(o()(o()(o()(o()({},Be,(function(e,t){var n=t.payload.notifications;return Br(Br({},e),{},{notifications:Br(Br({},e.notifications),n),isLoadingMoreNotifications:!1})})),We,Tr.A.singleTransferReducer("moreNotificationsAvailable")),Ye,(function(e,t){var n=t.payload.notification;return Br(Br({},e),{},{notifications:Br(Br({},e.notifications),{},o()({},n.key,n))})})),Le,Tr.A.singleTransferReducer("unreadNotificationKeys")),Fe,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):Fr()(e.unreadNotificationKeys,[o]),Br(Br({},e),{},{unreadNotificationKeys:n})})),Ue,Tr.A.singleTransferReducer("isLoadingMoreNotifications")),Yr={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yr,t=arguments.length>1?arguments[1]:void 0,n=Wr[t.type];return n?n(e,t):e}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qr=i().mark(Kr),Gr=i().mark(Qr),$r=10;function Kr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.T1)(Qr),(0,s.jP)(He,Xr),(0,s.jP)(ze,Jr),(0,s.jP)(Ve,Zr)]);case 3:case"end":return t.stop()}}),qr)}function Qr(){var e,t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,s.T1)(c.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,s.yJ)(qe(n));case 7:case"end":return r.stop()}}),Gr)}function Xr(e){var t=e.payload.offset;return i().mark((function e(){var n,r,a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.yJ)(Xe());case 2:return n={_limit:$r,_offset:t},e.next=5,(0,s.T1)(c.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,s.Q7)(r.body.data.map((function(e){return(0,s.T1)(k,e)})));case 8:if(a=e.sent,u=a.reduce((function(e,t){return Vr(Vr({},e),{},o()({},t.key,t))}),{}),!(Object.keys(u).length<$r)){e.next=13;break}return e.next=13,(0,s.yJ)(Ke(!1));case 13:return e.next=15,(0,s.yJ)($e(u));case 15:case"end":return e.stop()}}),e)}))()}function Jr(e){var t=e.payload.notificationKey;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,s.T1)(c.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Zr(e){var t=e.payload.taskExecutionKey;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(c.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var eo=n(39892),to=n.n(eo),no=["primary","callback","label"];function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ao=function(e){var t=e.buttons;return(0,V.jsx)(De,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=to()(e,no);return(0,ve.createElement)(Pe,oo(oo({},n?{ink:M.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function io(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,s=e.defaultAction,c=void 0===s?"submit":s,u=(0,it.v4)();return _(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===c?a():"cancel"===c&&i(),t()):"Escape"===e.key&&(i(),t())};(0,ve.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var s=[{label:r,primary:"submit"===c,look:"submit"===c?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===c,look:"cancel"===c?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,V.jsx)(ao,{buttons:s})}),!0,i)}function so(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,s=e.onCancel,c=(0,it.v4)();return _(c,t,n,(function(e){var t=e.close,n=function(){i(),t()};(0,M.c2)(n);var s=[{label:r,callback:function(){a(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,V.jsx)(ao,{buttons:s})}),!0,s)}function co(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,it.v4)();return _(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,ve.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,V.jsx)(ao,{buttons:a})}),!1)}var uo=i().mark(fo),lo=i().mark(go);function fo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,s.Q7)([(0,s.jP)(wr,po),(0,s.jP)(Or,ho),(0,s.jP)(xr,mo)]);case 3:t.next=7;break;case 5:return t.next=7,(0,s.Q7)([(0,s.jP)(wr,go),(0,s.jP)(Or,go),(0,s.jP)(xr,go)]);case 7:case"end":return t.stop()}}),uo)}function po(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(io,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function ho(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(so,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function mo(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(co,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function go(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),lo)}var vo=i().mark(bo),yo=i().mark(wo);function bo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(P,wo),(0,s.jP)(D,wo)]);case 3:case"end":return t.stop()}}),vo)}function wo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),yo)}var Oo=n(21259),xo=n.n(Oo);function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo={overlays:[]},Po=function(e){return function(t,n){var r=n.payload.id;return So(So({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},Do=o()(o()(o()(o()({},P,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,s=n.cancelable,c=n.cancelCallback;return So(So({},e),{},{overlays:[].concat(xo()(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:s,cancelCallback:c,type:A.MODAL}])})})),D,Po(A.MODAL)),fn,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return So(So({},e),{},{overlays:[].concat(xo()(e.overlays),[{id:r,title:o,body:a,type:A.BLOCKER}])})})),pn,Po(A.BLOCKER));function _o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eo,t=arguments.length>1?arguments[1]:void 0,n=Do[t.type];return n?n(e,t):e}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var To=o()({},Pr,(function(e,t){var n=t.payload.key;return Co(Co({},e),{},{ignoredToasters:xo()(new Set([].concat(xo()(e.ignoredToasters),[n])))})})),Mo={ignoredToasters:[]};function Ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mo,t=arguments.length>1?arguments[1]:void 0,n=To[t.type];return n?n(e,t):e}var Io=n(19383),Ro=n(61502);function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Lo="socket-msg-",Fo=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Lo).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,V.jsx)($n,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return W.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===f.outputjob}(e)?{duration:-1}:{})},Ho=i().mark(zo),Bo=i().mark(Vo),Wo=i().mark(qo),Yo=function(e){return e.notification.socket},Uo=function(e){return e.notification.toaster.toasters};function zo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(Er,Go),(0,s.jP)(tt,$o),(0,s.jP)(kr,Vo),(0,s.jP)(Sr,qo)]);case 3:case"end":return t.stop()}}),Ho)}function Vo(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.T1)(Io.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,s.T1)(Ro.A.connectSocket,{name:"notification",messageReceivedAction:Dr,originId:e});case 5:case"end":return t.stop()}}),Bo)}function qo(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(Ro.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Wo)}function Go(e){var t=e.payload.data;return i().mark((function e(){var n,r,o,a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(k,t);case 2:return n=e.sent,e.next=5,(0,s.Lt)(Yo);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==Io.A.getOriginId()){e.next=16;break}return e.next=11,(0,s.T1)(Fo,n);case 11:if(c=e.sent,o.includes(c.key)||n.read){e.next=16;break}return e.next=15,(0,s.yJ)(rt(c));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,s.yJ)(Ge(n.key,n.read));case 19:return e.next=21,(0,s.yJ)(Qe(n));case 21:case"end":return e.stop()}}),e)}))()}function $o(e){var t=e.payload,n=t.key,r=t.manually;return i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Lo)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,s.yJ)(_r(n));case 4:return e.next=6,(0,s.Lt)(Uo);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Lo,""),e.next=11,(0,s.yJ)(Je(t));case 11:case"end":return e.stop()}}),e)}))()}var Ko=n(85735),Qo=n.n(Ko);function Xo(e){var t=function(e,t){if("object"!=Qo()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qo()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qo()(t)?t:t+""}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ea=o()(o()({},et,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(d).includes(e.type)?e.type:d.neutral;return ct(ct(ct(ct(ct({type:t,key:e.key||(0,it.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||p[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:vt(e.duration,t),time:e.time instanceof Date?e.time:new Date},e.source&&{source:e.source})}(t.payload.toaster),r=e.toasters[n.key];return!r||function(e){return e.source!==jr.SYNC_ACTION}(r)?Zo(Zo({},e),{},{toasters:Zo(Zo({},e.toasters),{},o()({},n.key,n))}):e})),nt,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],to()(r,[n].map(Xo)));return Zo(Zo({},e),{},{toasters:Zo({},o)})})),ta={toasters:{}};function na(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta,t=arguments.length>1?arguments[1]:void 0,n=ea[t.type];return n?n(e,t):e}var ra=i().mark(aa),oa=i().mark(ia);function aa(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,s.Q7)([(0,s.jP)(tt,sa)]);case 3:t.next=7;break;case 5:return t.next=7,(0,s.Q7)([(0,s.jP)(et,ia),(0,s.jP)(tt,ia)]);case 7:case"end":return t.stop()}}),ra)}function ia(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),oa)}function sa(e){var t=e.payload,n=t.key;t.manually;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.yJ)(at(n));case 2:case"end":return e.stop()}}),e)}))()}const ca={transformNotificationResult:S,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&Tr.A.injectReducers(e,{notification:(0,Cr.HY)({socket:Ao,toaster:na,center:Ur,overlay:_o})}),e.sagaMiddleware.run(Rr,t),e.sagaMiddleware.run(fo,t),e.sagaMiddleware.run(bo,t),e.sagaMiddleware.run(zo,t),e.sagaMiddleware.run(aa,t),t&&r&&e.sagaMiddleware.run(Kr)},Notifications:en,NotificationCenter:br,confirm:function(e,t,n,r,o,a,i){return{type:wr,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:Or,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:xr,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:fn,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:pn,payload:{id:e}}},modal:_,removeModal:j,toaster:rt,removeToaster:ot,connectSocket:function(){return{type:kr}},closeSocket:function(){return{type:Sr}},toasterSources:jr}},63205:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ot});var r=n(65044),o=n.n(r),a=n(82274),i=n.n(a),s=n(65611),c=n.n(s),u=n(18337),l=n.n(u),d=n(56994),f=n.n(d);function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}const h=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),p(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));function m(e,t,n){return t=l()(t),c()(e,g()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}const v=function(e){function t(){return i()(this,t),m(this,t,arguments)}return f()(t,e),o()(t)}(h);function y(e,t,n){return t=l()(t),c()(e,b()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}const w=function(e){function t(){return i()(this,t),y(this,t,arguments)}return f()(t,e),o()(t)}(h);var O=n(21259),x=n.n(O),k=n(22056),S=n.n(k),E=n(26396),P=n.n(E),D=n(92207),_=n.n(D),j=n(58156),C=n.n(j),T=n(23805),M=n.n(T),A=n(23181),I=n.n(A),R=n(40860),N=n.n(R),L=n(43786),F=n(43806),H=n(90179),B=n.n(H),W=n(23228),Y=n(88691),U=n(99208),z=n(93419),V=n(60085),q=n(27701),G=n(8271);function $(e,t,n){return t=l()(t),c()(e,K()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K=function(){return!!e})()}const Q=function(e){function t(e){var n;return i()(this,t),(n=$(this,t)).message=e,n}return f()(t,e),o()(t)}(h);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=412,ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new Q(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?J(J({},a),{},{body:null}):t(e).then((function(e){return J(J({},a),{},{body:e})})).catch((function(e){return J(J({},a),{},{body:null})}))},ne=function(e){return te(e,(function(e){return e.blob()}))},re=function(e){return J(J({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:G.A.abortController.signal})};function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(Z),fetch(e,re(t)).then((function(e){return te(e)})).then((function(e){return ee(e,n,r)}))}function ae(e,t,n,r){return fetch(e,re(t)).then((function(e){return ne(e)})).then((function(e){return ee(e,n,r)}))}var ie=_().mark(de),se=_().mark(pe),ce=_().mark(he),ue={ConfirmQuestionHandler:pe,YesNoQuestionHandler:he};function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.addBlockingInfoAction,a=r.removeBlockingInfoAction;return _().mark((function r(){var i,s;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("GET"!==t.options.method&&"HEAD"!==t.options.method){r.next=2;break}return r.abrupt("return",e);case 2:i={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,(0,L.T1)(de,e.body.clientQuestion);case 6:if(null!=(s=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new v("Client question cancelled by user");case 13:if(i[e.body.clientQuestion.id]=s.answer,t.options.body=JSON.stringify({clientAnswers:i,payload:n.body}),!o){r.next=18;break}return r.next=18,(0,L.yJ)(o);case 18:return r.next=20,(0,L.T1)(oe,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,(0,L.yJ)(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),r)}))()}function de(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=ue[e.handler])){n.next=5;break}return n.next=4,(0,L.T1)(t,e);case 4:return n.abrupt("return",n.sent);case 5:throw new Error("No question handler found for client question",e);case 6:case"end":return n.stop()}}),ie)}var fe=function(e){return{answer:e}};function pe(e){var t,n,r,o,a,i,s;return _().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,L.T1)(q.Ix);case 2:return t=c.sent,n=function(){return t.put(fe(!0))},r=function(){return t.put(fe(null))},o=e.header,a=e.message,i=e.okText,s=e.cancelText,c.next=8,(0,L.yJ)(V.A.confirm(o,a,i,s,n,r));case 8:return c.next=10,(0,L.s)(t);case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}}),se)}function he(e){var t,n,r,o,a,i,s,c;return _().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,L.T1)(q.Ix);case 2:return t=u.sent,n=function(){return t.put(fe(!0))},r=function(){return t.put(fe(!1))},o=function(){return t.put(fe(null))},a=e.header,i=e.message,s=e.yesText,c=e.noText,u.next=9,(0,L.yJ)(V.A.yesNoQuestion(a,i,s,c,n,r,o));case 9:return u.next=11,(0,L.s)(t);case 11:return u.abrupt("return",u.sent);case 12:case"end":return u.stop()}}),ce)}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=_().mark(we),ye=_().mark(xe),be=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function we(e){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Q)){t.next=5;break}return t.next=3,(0,L.yJ)(V.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 3:t.next=6;break;case 5:throw e;case 6:case"end":return t.stop()}}),ve)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _().mark((function n(){var r,o,a,i,s;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(xe,t);case 2:return n.next=4,(0,L.T1)(ke,e,t);case 4:return r=n.sent,n.next=7,(0,L.T1)(Se,t);case 7:if(o=n.sent,a=o.addBlockingInfoAction,i=o.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,(0,L.yJ)(a);case 13:return n.next=15,(0,L.T1)(oe,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(s=n.sent,!i){n.next=19;break}return n.next=19,(0,L.yJ)(i);case 19:return n.next=21,(0,L.T1)(le,s,r,t,o);case 21:return s=n.sent,n.abrupt("return",s);case 25:if(n.prev=25,n.t0=n.catch(9),!i){n.next=30;break}return n.next=30,(0,L.yJ)(i);case 30:return n.next=32,we(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function xe(e){var t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=5;break}return r.next=3,(0,L.Lt)(Y.A.localeSelector);case 3:n=r.sent,e.queryParams=ge(ge({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),ye)}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,s=void 0===i?W.A.getBackendUrl():i,c=U.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=ge({method:a,headers:c,credentials:"include"},u?{body:u}:{}),d=be(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?U.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function Se(e){var t=e.blockingInfoTitle;return _().mark((function e(){var n,r,o,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,(0,L.T1)(z.v4);case 3:return n=e.sent,r=t,o=V.A.blockingInfo(n,r),a=V.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var Ee=_().mark(_e),Pe=_().mark(je),De=_().mark(Ce);function _e(){var e,t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/settings");case 2:return e=n.sent,t=B()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),Ee)}function je(){var e,t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/settings");case 2:return e=n.sent,t=B()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),Pe)}function Ce(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,L.T1)(_e);case 7:return t=r.sent,n=t.maxLimit,F.A.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),De)}var Te=_().mark(Ve),Me=_().mark(qe),Ae=_().mark(Ge),Ie=_().mark(et),Re=_().mark(ct),Ne=_().mark(ut),Le=_().mark(lt),Fe=_().mark(dt),He=_().mark(ft),Be=_().mark(pt),We=_().mark(ht);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ye(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze="nice2.web.core.useSelectorsByDefault";function Ve(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,L.T1)(Oe,"client/property",{method:"POST",body:{propertyNames:[ze]}});case 7:return t=r.sent,n=t.body.loadedProperties[ze],F.A.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),Te)}function qe(e,t){var n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,(0,L.T1)(Oe,"entities/2.0/".concat(e,"/").concat(t),n);case 4:return r.abrupt("return",!0);case 7:return r.prev=7,r.t0=r.catch(1),r.abrupt("return",!1);case 10:case"end":return r.stop()}}),Me,null,[[1,7]])}function Ge(e,t,n,r,o){var a,i;return _().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},s.next=3,(0,L.T1)(Oe,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return i=s.sent,s.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return Ue(Ue({},e),{},P()({},t.key,t.displayExpressions))}),{}));case 5:case"end":return s.stop()}}),Ae)}var $e=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function Ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return _().mark((function r(){var o,a;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=S()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===F.A.getObjectCache("display",$e(r,e,t))})),displays:o.map((function(e){return{key:e,display:F.A.getObjectCache("display",$e(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,Xe(o,t,n);case 3:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return Ue(Ue({},e),{},P()({},n,Ue(Ue({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return Ue(Ue({},e),{},P()({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),r)}))()}function Qe(e,t){Object.entries(e).forEach((function(e){var n=S()(e,2),r=n[0];n[1].forEach((function(e){return F.A.removeObjectCache("display",$e(r,e,t))}))}))}function Xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return _().mark((function r(){var o,a,i,s,c;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=12;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},i=t?"/".concat(t):"",r.next=6,(0,L.T1)(Oe,"entities/2.0/displays".concat(i),a);case 6:return s=r.sent,c=s.body.data.reduce((function(e,t){var n=t.model,r=t.values;return Ue(Ue({},e),{},P()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return Ue(Ue({},e),{},P()({},n,r))}),{})))}),{}),Object.entries(c).forEach((function(e){var n=S()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=S()(e,2),o=n[0],a=n[1];F.A.addObjectCache("display",$e(r,o,t),a)}))})),r.abrupt("return",c);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),r)}))()}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _().mark((function r(){var o,a,i,s,c,u,l;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=3,(0,L.T1)(ot,t);case 3:return s=r.sent,c=(i||"entities/2.0/".concat(e))+"/count",u=Ue({method:a},"GET"===a?{queryParams:it(s)}:{body:s}),r.next=8,(0,L.T1)(Oe,c,u);case 8:return l=r.sent,r.abrupt("return",l.body.count);case 10:case"end":return r.stop()}}),r)}))()}function Ze(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rt;return _().mark((function a(){var i,s;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=Ue({method:e,queryParams:Ue({_omitLinks:!0,_allKeys:t},"GET"===e&&it(n))},"POST"===e&&{body:n}),a.next=3,(0,L.T1)(Oe,r,i);case 3:return s=a.sent,a.next=6,(0,L.T1)(o,s.body);case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)}))()}function et(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),Ie)}var tt=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=Ue({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=Ue({type:"relation"},e)})),t},nt=function(e){return e.form},rt=function(e){return e.data},ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:at(i)}:{}),s&&o?{offset:(s-1)*o}:{}),c?{paths:c}:{}),u?{where:u}:{}),Array.isArray(l)?{relations:0===l.length?"!":l}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},at=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},it=function(e){return N()(e,(function(e,t,n){var r={};return"conditions"===n?r=st(t):r["_"+n]=Array.isArray(t)?t.join(","):t,Ue(Ue({},e),r)}),{})},st=function(e){return N()(e,(function(e,t,n){return Ue(Ue({},e),{},P()({},n,M()(t)&&t.value?t.value:t))}),{})};function ct(){var e,t,n,r,o;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,L.T1)(Oe,"principals");case 2:return e=a.sent,t=e.body,n=t.username,r=t.businessUnit,o={username:n,currentBusinessUnit:r},a.abrupt("return",o);case 6:case"end":return a.stop()}}),Re)}function ut(e){var t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,(0,L.T1)(Oe,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),Ne)}function lt(e,t){var n,r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=3,(0,L.T1)(Oe,"client/markings/".concat(e,"/").concat(t),n);case 3:return r=o.sent,o.abrupt("return",r.body.marked);case 5:case"end":return o.stop()}}),Le)}function dt(e,t,n){var r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=3,(0,L.T1)(Oe,"client/markings/".concat(e,"/").concat(t),r);case 3:case"end":return o.stop()}}),Fe)}function ft(e,t){var n,r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},o.next=3,(0,L.T1)(Oe,"client/markings",n);case 3:return r=o.sent,o.abrupt("return",r.body.markings);case 5:case"end":return o.stop()}}),He)}function pt(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,L.T1)(Oe,"locales");case 5:return t=r.sent,n=t.body.locales,F.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),Be)}function ht(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","modules"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,L.T1)(Oe,"modules");case 5:return t=r.sent,n=t.body.modules,F.A.addLongTerm("server","modules",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),We)}var mt=_().mark(yt),gt=_().mark(bt),vt=_().mark(wt);function yt(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),mt)}function bt(e){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,L.T1)(Oe,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),gt)}function wt(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.T1)(Oe,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),vt)}const Ot={requestSaga:Oe,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _().mark((function n(){var r;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(xe,t);case 2:return n.next=4,(0,L.T1)(ke,e,t);case 4:return r=n.sent,n.prev=5,n.next=8,(0,L.T1)(ae,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 8:return n.abrupt("return",n.sent);case 11:return n.prev=11,n.t0=n.catch(5),n.next=15,we(n.t0);case 15:return n.abrupt("return",{});case 16:case"end":return n.stop()}}),n,null,[[5,11]])}))()},simpleRequest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ke(e,t);return oe(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:v,ForbiddenException:w,InformationError:Q,fetchEntity:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return _().mark((function a(){var i,s,c,u,l,d,f,p;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,L.T1)(Ve);case 2:return i=a.sent,s=r.method,c=void 0===s?"POST":s,u=r.useSelectors,l=void 0===u?i:u,a.next=6,(0,L.T1)(ot,n);case 6:return d=a.sent,f=Ue({method:c,queryParams:Ue({_omitLinks:!0,_useSelectors:l},"GET"===c&&Ue(Ue({},it(d)),{},{_permissions:!0}))},"POST"===c&&{body:Ue(Ue({},d),{},{permissions:!0})}),a.next=10,(0,L.T1)(Oe,"entities/2.0/".concat(e,"/").concat(t),f);case 10:return p=a.sent,a.next=13,(0,L.T1)(o,p.body);case 13:return a.abrupt("return",a.sent);case 14:case"end":return a.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;return _().mark((function o(){var a,i,s,c,u,l,d,f,p,h;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,L.T1)(Ce);case 2:return a=o.sent,i=n.method,s=void 0===i?"POST":i,c=n.endpoint,u=n.allKeys,o.next=6,(0,L.T1)(Je,e,t,n);case 6:return l=o.sent,d=u?1:Math.ceil(l/a),f=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),p=I()(d).map((function(e){return e+1})).map((function(e){return Ue(Ue({},t),{},{page:e,limit:a})})).map(ot).map((function(e){return(0,L.T1)(Ze,s,u,e,f,r)})),o.next=12,(0,L.Q7)(p);case 12:return h=o.sent,o.abrupt("return",h.reduce((function(e,t){return[].concat(x()(e),x()(t))}),[]));case 14:case"end":return o.stop()}}),o)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;return _().mark((function o(){var a,i,s,c,u,l;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,s=n.endpoint,c=n.allKeys,o.next=3,(0,L.T1)(ot,t);case 3:return u=o.sent,l=s||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=7,(0,L.T1)(Ze,i,c,u,l,r);case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),o)}))()},fetchDisplay:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _().mark((function o(){return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=C(),o.next=3,Ke(P()({},e,[t]),n,r);case 3:return o.t1=o.sent,o.t2="".concat(e,".").concat(t),o.abrupt("return",(0,o.t0)(o.t1,o.t2,null));case 6:case"end":return o.stop()}}),o)}))()},invalidateDisplay:function(e,t,n){Qe(P()({},e,[t]),n)},fetchDisplays:Ke,invalidateDisplays:Qe,fetchDisplayExpressions:Ge,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return _().mark((function o(){var a,i,s,c;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===F.A.getObjectCache("forms",a)||r){o.next=4;break}return o.abrupt("return",F.A.getObjectCache("forms",a));case 4:return i=Ue(Ue({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=7,(0,L.T1)(Oe,"forms/".concat(a),i);case 7:if(s=o.sent,!n||404!==s.status){o.next=11;break}return F.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 11:return o.next=13,(0,L.T1)(nt,s.body);case 13:return c=o.sent,F.A.addObjectCache("forms",a,c),o.abrupt("return",c);case 16:case"end":return o.stop()}}),o)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return _().mark((function n(){var r,o,a;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=F.A.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",r);case 3:return n.next=5,(0,L.T1)(Oe,"entities/".concat(e,"/model"));case 5:return o=n.sent,n.next=8,(0,L.T1)(t,o.body);case 8:return a=n.sent,F.A.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:tt,fetchEntityCount:Je,fetchSearchFilters:et,buildRequestQuery:ot,requestQueryToUrlParams:it,fetchPrincipal:ct,fetchUserPreferences:yt,deleteUserPreferences:bt,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return _().mark((function n(){return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:wt,fetchServerSettings:_e,fetchServerRevision:je,fetchServerMaxLimit:Ce,createSortingString:at,fetchMarkings:ut,fetchMarked:lt,setMarked:dt,setSelectionMarked:ft,entityExists:qe,fetchLocales:pt,fetchModules:ht}},61502:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),s=n(27701),c=n(43786),u=n(73082),l=n(23228),d=i().mark(m);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h={};function m(e){var t,n,r;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,c.T1)(v,e.name,e.originId);case 2:return t=o.sent,o.next=5,(0,c.T1)(g,p(p({},e),{},{url:t}));case 5:n=o.sent;case 6:return o.next=9,(0,c.s)(n);case 9:return r=o.sent,o.next=12,(0,c.yJ)(r);case 12:o.next=6;break;case 14:case"end":return o.stop()}}),d)}var g=function(e){return(0,s.Od)((function(t){var n=function(){var r=e.url,o=e.messageReceivedAction,a=e.name;h[a]=new WebSocket(r),h[a].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},h[a].onclose=function(e){1e3!==e.code&&n()},h[a].onerror=function(e){u.A.log("socket error",e)}};return n(),function(){}}))},v=function(e,t){var n=(l.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const y={connectSocket:m,closeSocket:function(e){h[e].close(1e3)}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},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",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},59492:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39316);const o=function(e){return(0,r.A)(e)};const a={shouldForwardProp:function(e,t){return"string"!=typeof t||o(e)},isPropValid:o}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r,o=n(72189),a=n.n(o),i=n(87716).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=a()([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>p.i,A:()=>f});var r,o=n(26396),a=n.n(o),i=n(4883),s=n.n(i),c=n(74848);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=(0,i.lazy)((function(){return Promise.all([n.e(310),n.e(103),n.e(916)]).then(n.bind(n,8264))}));const f=function(e){return(0,c.jsx)(i.Suspense,{fallback:r||(r=(0,c.jsx)(s().Fragment,{})),children:(0,c.jsx)(d,l({},e))})};var p=n(93564)},88357:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>g,Ay:()=>d});n(5556);var r,o=n(47850),a=n(17656),i=n(72189),s=n.n(i),c=n(87716);const u=c.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=s()(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,a.Ed)(),(function(e){return e.breakWords?(0,a.KV)():(0,a.sb)()}),a.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var l=n(74848);const d=function(e){var t=e.alt,n=e.breakWords,r=void 0===n||n,i=e.download,s=e.href,c=void 0===s?"#":s,d=e.neutral,f=e.onClick,p=e.rel,h=e.tabIndex,m=e.target,g=void 0===m?"_self":m,v=e.title,y=e.label,b=e.icon,w=e.children,O=e.useTitle,x=void 0===O||O,k=v||(r?void 0:y);return(0,l.jsxs)(u,{alt:t,breakWords:r,download:i,href:c,neutral:d,onClick:f,rel:p,tabIndex:h,target:g,title:x?k:void 0,children:[b&&(0,l.jsx)(o.A,{icon:b,position:a.xX.position.PREPEND}),y||w]})};var f,p,h=n(92648),m=(0,c.AH)(f||(f=s()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,a.Ed)(),a.t7.color("secondary"),a.t7.color("text"),a.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?a.t7.color("text"):a.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));const g=(0,c.Ay)(h.N_)(p||(p=s()(["\n ","\n"])),m)},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>Y,AE:()=>U,C$:()=>L,F1:()=>V,Gw:()=>R,Js:()=>$,Li:()=>N,MM:()=>I,Ng:()=>z,QF:()=>T,aB:()=>M,fN:()=>B,oY:()=>W,or:()=>_,pR:()=>j,rY:()=>C,rs:()=>F,v8:()=>H,vB:()=>A,vr:()=>q,zG:()=>G});var r,o,a,i,s,c,u,l,d,f,p,h,m,g,v,y,b,w,O,x,k,S=n(72189),E=n.n(S),P=n(87716),D=n(17656),_=P.Ay.b.withConfig({displayName:"StyledB"})(r||(r=E()(["\n && {\n ","\n }\n ","\n"])),(0,D.Ed)({fontWeight:D.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),j=P.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=E()(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),D.t7.color("backgroundTypographyCode"),D.t7.radii("form"),D.hs.space(-4),D.hs.space(-2)),C=P.Ay.del.withConfig({displayName:"StyledDel"})(a||(a=E()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),T=P.Ay.em.withConfig({displayName:"StyledEm"})(i||(i=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),M=P.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(s||(s=E()(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-2),D.hs.space(-1)),A=P.Ay.i.withConfig({displayName:"StyledI"})(c||(c=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),I=P.Ay.ins.withConfig({displayName:"StyledIns"})(u||(u=E()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),R=P.Ay.label.withConfig({displayName:"StyledLabel"})(l||(l=E()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-1)),N=P.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=E()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),color:D.t7.color("paper")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.t7.color("signal.info"),D.t7.radii("form"),D.hs.space(-4),D.hs.space(-2)),L=P.Ay.p.withConfig({displayName:"StyledP"})(f||(f=E()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-1)),F=P.Ay.pre.withConfig({displayName:"StyledPre"})(p||(p=E()(["\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,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.t7.color("backgroundTypographyCode"),D.t7.radii("form"),D.t7.color("border"),D.hs.space(-1),D.hs.space(-3),D.hs.space(-2)),H=P.Ay.s.withConfig({displayName:"StyledS"})(h||(h=E()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),B=P.Ay.small.withConfig({displayName:"StyledSmall"})(m||(m=E()(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,D.Ed)(),D.t7.fontSize("factor"),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),W=P.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),Y=P.Ay.sub.withConfig({displayName:"StyledSub"})(v||(v=E()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),U=P.Ay.sup.withConfig({displayName:"StyledSup"})(y||(y=E()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),z=P.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontWeight:D.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),V=P.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),q=P.Ay.u.withConfig({displayName:"StyledU"})(O||(O=E()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),G=P.Ay.var.withConfig({displayName:"StyledVar"})(x||(x=E()(["\n && {\n ","\n ","\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),$=P.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=E()(["\n && {\n ","\n ","\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}))},60284:(e,t,n)=>{"use strict";n.d(t,{pR:()=>L.pR,rd:()=>k,Gw:()=>L.Gw,vx:()=>A,oY:()=>L.oY,dV:()=>N,gv:()=>W,Ay:()=>Y});n(5556);var r,o,a,i,s,c,u,l,d,f,p,h,m,g,v=n(17656),y=n(72189),b=n.n(y),w=n(87716),O=function(e){var t;switch(e.styledLike){case"H1":t=v.hs.font(5)(e);break;case"H2":t=v.hs.font(4)(e);break;case"H3":t=v.hs.font(3)(e);break;case"H4":t=v.hs.font(2)(e);break;case"H5":t=v.hs.font(1)(e);break;default:t=v.hs.font(0)(e)}return(0,v.Ed)({fontWeight:v.w4.fontWeight("bold"),fontSize:t})},x=function(e){return(0,w.AH)(r||(r=b()(["\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"])),v.hs.space(0),v.hs.space(-1))},k=w.Ay.h1.withConfig({displayName:"StyledH1"})(o||(o=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),S=w.Ay.h2.withConfig({displayName:"StyledH2"})(a||(a=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),E=w.Ay.h3.withConfig({displayName:"StyledH3"})(i||(i=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),P=w.Ay.h4.withConfig({displayName:"StyledH4"})(s||(s=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),D=w.Ay.h5.withConfig({displayName:"StyledH5"})(c||(c=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),_=w.Ay.h6.withConfig({displayName:"StyledH6"})(u||(u=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),j=n(74848),C=w.Ay.dd.withConfig({displayName:"StyledDd"})(l||(l=b()(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,v.Ed)(),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),T=w.Ay.dl.withConfig({displayName:"StyledDl"})(d||(d=b()(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),v.hs.space(-1)),M=w.Ay.dt.withConfig({displayName:"StyledDt"})(f||(f=b()(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,v.Ed)({fontWeight:v.w4.fontWeight("bold")}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),A=w.Ay.li.withConfig({displayName:"StyledLi"})(p||(p=b()(["\n && {\n ","\n ","\n }\n"])),(0,v.Ed)(),(0,v.KV)()),I=w.Ay.ol.withConfig({displayName:"StyledList"})(h||(h=b()(["\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"])),v.hs.space(-1),v.hs.space(-.1)),R=(0,w.Ay)(I).withConfig({displayName:"StyledOl"})(m||(m=b()(["\n list-style-type: decimal;\n"]))),N=(0,w.Ay)(I).withConfig({displayName:"StyledUl"})(g||(g=b()(["\n && {\n list-style-type: disc;\n }\n"]))),L=n(5016),F=function(e,t,n){return!t||e?void 0:(0,v.GV)(n)},H=n(58156),B=n.n(H),W=function(e,t){var n="\n color: ".concat(v.w4.color("text")(e),";\n font-family: ").concat(v.w4.fontFamily("regular")(e),";\n font-size: ").concat(v.hs.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(v.w4.fontWeight("regular")(e),";\n line-height: ").concat(v.w4.lineHeight("regular")(e),";\n\n a {\n color: ").concat(v.w4.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(B()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(B()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(v.w4.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(v.hs.font(5)(e),";}\n h2 {font-size: ").concat(v.hs.font(4)(e),";}\n h3 {font-size: ").concat(v.hs.font(3)(e),";}\n h4 {font-size: ").concat(v.hs.font(2)(e),";}\n h5 {font-size: ").concat(v.hs.font(1)(e),";}\n h6 {font-size: ").concat(v.hs.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(v.w4.fontWeight("bold")(e),";\n margin-top: ").concat(v.hs.space(0)(e),";\n margin-bottom: ").concat(v.hs.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(v.hs.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n a {\n text-decoration: none; \n }\n\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(v.hs.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n};const Y={H1:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H1":r,a=e.children;return(0,j.jsx)(k,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H2:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H2":r,a=e.children;return(0,j.jsx)(S,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H3:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H3":r,a=e.children;return(0,j.jsx)(E,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H4:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H4":r,a=e.children;return(0,j.jsx)(P,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H5:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H5":r,a=e.children;return(0,j.jsx)(D,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H6:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H6":r,a=e.children;return(0,j.jsx)(_,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},Dd:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,j.jsx)(C,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dt:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,j.jsx)(M,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dl:function(e){return(0,j.jsx)(T,{children:e.children})},Li:function(e){var t=e.children;return(0,j.jsx)(A,{children:t})},Ol:function(e){var t=e.children;return(0,j.jsx)(R,{children:t})},Ul:function(e){var t=e.children;return(0,j.jsx)(N,{as:"ul",children:t})},B:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.or,{breakWords:n,title:F(n,o,a),children:a})},Code:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.pR,{title:F(n,o,a),children:a})},Del:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.rY,{breakWords:n,title:F(n,o,a),children:a})},Em:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.QF,{breakWords:n,title:F(n,o,a),children:a})},Figcaption:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.aB,{breakWords:n,title:F(n,o,a),children:a})},I:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.vB,{breakWords:n,title:F(n,o,a),children:a})},Ins:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.MM,{breakWords:n,title:F(n,o,a),children:a})},Label:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.htmlFor;return(0,j.jsx)(L.Gw,{breakWords:n,title:F(n,o,a),htmlFor:i,children:a})},Mark:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Li,{breakWords:n,title:F(n,o,a),children:a})},P:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.id;return(0,j.jsx)(L.C$,{breakWords:n,title:F(n,o,a),id:i,children:a})},Pre:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.rs,{breakWords:n,title:F(n,o,a),children:a})},Q:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Js,{breakWords:n,title:F(n,o,a),children:a})},S:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.v8,{breakWords:n,title:F(n,o,a),children:a})},Small:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.fN,{breakWords:n,title:F(n,o,a),children:a})},Span:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.id;return(0,j.jsx)(L.oY,{breakWords:n,title:F(n,o,a),id:i,children:a})},Strong:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Ng,{breakWords:n,title:F(n,o,a),children:a})},Sub:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.AB,{breakWords:n,title:F(n,o,a),children:a})},Sup:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.AE,{breakWords:n,title:F(n,o,a),children:a})},Time:function(e){var t=e.breakWords,n=void 0!==t&&t,r=e.title,o=e.dateTime,a=e.children;return(0,j.jsx)(L.F1,{breakWords:n,title:r,dateTime:o,children:a})},U:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.vr,{breakWords:n,title:F(n,o,a),children:a})},Var:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.zG,{breakWords:n,title:F(n,o,a),children:a})}}},33015:(e,t,n)=>{"use strict";n.d(t,{cx:()=>re,$n:()=>K,se:()=>Um,jt:()=>Kt,Ar:()=>Pg,eG:()=>tc,kH:()=>Lc,In:()=>k.A,tQ:()=>Hg,kt:()=>_,dK:()=>mw,AM:()=>Xu,Q6:()=>rw,Wk:()=>kn.Wk,$O:()=>$y,dm:()=>kO,N1:()=>Z,OV:()=>q,pR:()=>kt.pR,oX:()=>Sn,iY:()=>k.i,rd:()=>kt.rd,jx:()=>Pn,gQ:()=>Lg,oY:()=>kt.oY,Ec:()=>Ms,o5:()=>kt.Ay,Hr:()=>cp,Ed:()=>l.Ed,xX:()=>l.xX,hs:()=>l.hs,w4:()=>l.w4,t7:()=>l.t7,c2:()=>l.LE});var r,o,a=n(72189),i=n.n(a),s=n(92648),c=n(87716),u=n(59492),l=n(17656),d=(0,c.AH)(r||(r=i()(["\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,l.Ed)(),l.w4.color("text"),l.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const f=(0,c.Ay)(s.N_).withConfig({shouldForwardProp:u.A.isPropValid})(o||(o=i()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),l.t7.color("text"),d);var p,h=n(26396),m=n.n(h),g=n(39892),v=n.n(g),y=n(5556),b=n.n(y),w=n(4883),O=n.t(w,2),x=n.n(w),k=n(47850),S=n(74848);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=(0,w.lazy)((function(){return n.e(389).then(n.bind(n,68389))}));const _=function(e){return(0,S.jsx)(w.Suspense,{fallback:p||(p=(0,S.jsx)(x().Fragment,{})),children:(0,S.jsx)(D,P({},e))})};var j=n(22056),C=n.n(j),T=n(96424),M="hidden",A="responsive",I={labelVisibility:A},R=x().createContext(I);var N,L,F,H,B,W,Y,U=(0,c.AH)(H||(H=i()(["\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"])),l.w4.radii("button"),l.hs.space(-1.38),l.hs.space(-2.1),l.hs.space(0),(0,l.Ed)(),(function(e){return e.withoutBackground?(0,c.AH)(F||(F=i()(["\n background: transparent;\n"]))):(0,l.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,c.AH)(N||(N=i()(["\n line-height: ",";\n padding: "," ",";\n "])),l.w4.lineHeight("dense")({theme:n}),l.hs.space(-3.5)({theme:n}),l.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,c.AH)(L||(L=i()(["\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===l.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(z," {\n display: none;\n }\n ");return t&&n===M?r:t&&n===A&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),z=c.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(B||(B=i()([""]))),V=c.Ay.button.withConfig({displayName:"StyledButton"})(W||(W=i()(["\n ","\n"])),U);c.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(Y||(Y=i()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),l.hs.space(0),l.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),V);const q=V;function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const K=x().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,c=void 0===s?l.xX.look.FLAT:s,u=e.iconPosition,d=void 0===u?l.xX.position.PREPEND:u,f=e.type,p=void 0===f?"button":f,h=e.iconOnly,m=e.children,g=(0,w.useContext)(R).labelVisibility;return(0,S.jsxs)(q,$($($({ref:t},n),e),{},{ink:r||l.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:p,children:[a&&!i&&(0,S.jsx)(k.A,{icon:a}),i&&(0,S.jsx)(_,{ink:r||l.xX.ink.BASE,look:c,position:d,size:"1em"}),!h&&o?(0,S.jsx)(z,{children:o}):m||"​"]}))}));var Q;(0,c.Ay)(s.N_).withConfig({shouldForwardProp:u.A.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Q||(Q=i()(["\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"])),l.t7.color("text"),U);var X,J;const Z=c.Ay.button.withConfig({displayName:"StyledButton"})(J||(J=i()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,l.Ed)(),l.x5,(function(){return(0,c.AH)(X||(X=i()(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n\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"])),l.hs.space(-3),l.w4.fontSize("base"),l.w4.lineHeight("regular"),l.hs.space(-3))}));function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=x().forwardRef((function(e,t){return(0,S.jsx)(Z,te(te({ref:t,type:"button"},e),{},{children:(0,S.jsx)(k.A,{icon:e.icon})}))}));ne.propTypes={disabled:b().bool,icon:b().string.isRequired,ink:l.xX.inkPropTypes,look:b().oneOf([l.xX.look.FLAT,l.xX.look.RAISED]),onClick:b().func,title:b().string,tabIndex:b().number,"data-cy":b().string};const re=ne;var oe,ae,ie,se,ce=n(31004),ue=n(21259),le=n.n(ue),de=n(49859),fe=n.n(de),pe=n(52098),he=n.n(pe),me=n(30115),ge=n.n(me),ve=n(45228),ye=n.n(ve),be="bodyAttributes",we="htmlAttributes",Oe="titleAttributes",xe={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ke=(Object.keys(xe).map((function(e){return xe[e]})),"charset"),Se="cssText",Ee="href",Pe="http-equiv",De="innerHTML",_e="itemprop",je="name",Ce="property",Te="rel",Me="src",Ae="target",Ie={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Re="defaultTitle",Ne="defer",Le="encodeSpecialCharacters",Fe="onChangeClientState",He="titleTemplate",Be=Object.keys(Ie).reduce((function(e,t){return e[Ie[t]]=t,e}),{}),We=[xe.NOSCRIPT,xe.SCRIPT,xe.STYLE],Ye="data-react-helmet",Ue="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},ze=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}}(),Ve=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},qe=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},Ge=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},$e=function(e){var t=Ze(e,xe.TITLE),n=Ze(e,He);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Ze(e,Re);return t||r||void 0},Ke=function(e){return Ze(e,Fe)||function(){}},Qe=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ve({},e,t)}),{})},Xe=function(e,t){return t.filter((function(e){return void 0!==e[xe.BASE]})).map((function(e){return e[xe.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Je=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&ot("Helmet: "+e+' should be of type "Array". Instead found type "'+Ue(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===Te&&"canonical"===e[n].toLowerCase()||c===Te&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==De&&s!==Se&&s!==_e||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=ye()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Ze=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},et=(oe=Date.now(),function(e){var t=Date.now();t-oe>16?(oe=t,e(t)):setTimeout((function(){et(e)}),0)}),tt=function(e){return clearTimeout(e)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||et:n.g.requestAnimationFrame||et,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tt:n.g.cancelAnimationFrame||tt,ot=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},at=null,it=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;ut(xe.BODY,r),ut(xe.HTML,o),ct(d,f);var p={baseTag:lt(xe.BASE,n),linkTags:lt(xe.LINK,a),metaTags:lt(xe.META,i),noscriptTags:lt(xe.NOSCRIPT,s),scriptTags:lt(xe.SCRIPT,u),styleTags:lt(xe.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},st=function(e){return Array.isArray(e)?e.join(""):e},ct=function(e,t){void 0!==e&&document.title!==e&&(document.title=st(e)),ut(xe.TITLE,t)},ut=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ye),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ye):n.getAttribute(Ye)!==i.join(",")&&n.setAttribute(Ye,i.join(","))}},lt=function(e,t){var n=document.head||document.querySelector(xe.HEAD),r=n.querySelectorAll(e+"["+Ye+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===De)n.innerHTML=t.innerHTML;else if(r===Se)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(Ye,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},dt=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}),"")},ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Ie[n]||n]=e[n],t}),t)},pt=function(e,t,n){switch(e){case xe.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ye]=!0,o=ft(n,r),[x().createElement(xe.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=dt(n),a=st(t);return o?"<"+e+" "+Ye+'="true" '+o+">"+Ge(a,r)+"</"+e+">":"<"+e+" "+Ye+'="true">'+Ge(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case be:case we:return{toComponent:function(){return ft(t)},toString:function(){return dt(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ye]=!0,r);return Object.keys(t).forEach((function(e){var n=Ie[e]||e;if(n===De||n===Se){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),x().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===De||e===Se)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Ge(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===We.indexOf(e);return t+"<"+e+" "+Ye+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},ht=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:pt(xe.BASE,t,r),bodyAttributes:pt(be,n,r),htmlAttributes:pt(we,o,r),link:pt(xe.LINK,a,r),meta:pt(xe.META,i,r),noscript:pt(xe.NOSCRIPT,s,r),script:pt(xe.SCRIPT,c,r),style:pt(xe.STYLE,u,r),title:pt(xe.TITLE,{title:d,titleAttributes:f},r)}},mt=he()((function(e){return{baseTag:Xe([Ee,Ae],e),bodyAttributes:Qe(be,e),defer:Ze(e,Ne),encode:Ze(e,Le),htmlAttributes:Qe(we,e),linkTags:Je(xe.LINK,[Te,Ee],e),metaTags:Je(xe.META,[je,ke,Pe,Ce,_e],e),noscriptTags:Je(xe.NOSCRIPT,[De],e),onChangeClientState:Ke(e),scriptTags:Je(xe.SCRIPT,[Me,De],e),styleTags:Je(xe.STYLE,[Se],e),title:$e(e),titleAttributes:Qe(Oe,e)}}),(function(e){at&&rt(at),e.defer?at=nt((function(){it(e,(function(){at=null}))})):(it(e),at=null)}),ht)((function(){return null})),gt=(ae=mt,se=ie=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!ge()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case xe.SCRIPT:case xe.NOSCRIPT:return{innerHTML:t};case xe.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Ve({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Ve({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case xe.TITLE:return Ve({},o,((t={})[r.type]=i,t.titleAttributes=Ve({},a),t));case xe.BODY:return Ve({},o,{bodyAttributes:Ve({},a)});case xe.HTML:return Ve({},o,{htmlAttributes:Ve({},a)})}return Ve({},o,((n={})[r.type]=Ve({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Ve({},t);return Object.keys(e).forEach((function(t){var r;n=Ve({},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 x().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Be[n]||n]=e[n],t}),t)}(qe(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case xe.LINK:case xe.META:case xe.NOSCRIPT:case xe.SCRIPT:case xe.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=qe(e,["children"]),r=Ve({},n);return t&&(r=this.mapChildrenToProps(t,r)),x().createElement(ae,r)},ze(t,null,[{key:"canUseDOM",set:function(e){ae.canUseDOM=e}}]),t}(x().Component),ie.propTypes={base:fe().object,bodyAttributes:fe().object,children:fe().oneOfType([fe().arrayOf(fe().node),fe().node]),defaultTitle:fe().string,defer:fe().bool,encodeSpecialCharacters:fe().bool,htmlAttributes:fe().object,link:fe().arrayOf(fe().object),meta:fe().arrayOf(fe().object),noscript:fe().arrayOf(fe().object),onChangeClientState:fe().func,script:fe().arrayOf(fe().object),style:fe().arrayOf(fe().object),title:fe().string,titleAttributes:fe().object,titleTemplate:fe().string},ie.defaultProps={defer:!0,encodeSpecialCharacters:!0},ie.peek=ae.peek,ie.rewind=function(){var e=ae.rewind();return e||(e=ht({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},se);gt.renderStatic=gt.rewind;var vt=n(42838),yt=n.n(vt),bt=["border","border-spacing","padding","margin","text-align","width"];yt().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=(n=e.style,bt.map((function(e){var t=n[e];return t&&"string"==typeof t&&!function(e){return/\w\(/.test(e)}(t)?"".concat(e,":").concat(t,";"):null})).filter(Boolean).join(""));t?e.setAttribute("style",t):e.removeAttribute("style")}var n;return e}));const wt=function(e){return e?yt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Ot={sanitizeHtml:wt};var xt=n(23076),kt=n(60284),St={error:"exclamation-circle",home:"house-blank"},Et=function(e){return St[e]||e};const Pt=function(e){var t=e.type;return t&&"record"!==t?(0,S.jsx)(k.A,{icon:Et(t)}):null};var Dt,_t,jt,Ct,Tt,Mt,At=["component"],It=c.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(Dt||(Dt=i()(["\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||l.w4.color("backgroundBreadcrumbs")(e)}),l.hs.space(-.7),l.hs.space(.39)),Rt=(0,c.Ay)((function(e){var t=e.component,n=v()(e,At);return x().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(_t||(_t=i()(["\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"])),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.color("secondaryLight"),l.w4.color("breadcrumbsActive")),Nt=c.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(jt||(jt=i()(["\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"])),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.color("breadcrumbsActive")),Lt=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(Ct||(Ct=i()(["\n margin-left: ",";\n margin-right: ",";\n"])),l.hs.space(-2),l.hs.space(-2)),Ft=c.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Tt||(Tt=i()(["\n "," {\n margin-right: ",";\n }\n"])),k.i,l.hs.space(-1));const Ht=function(){return Mt||(Mt=(0,S.jsx)(Lt,{breakWords:!0,children:(0,S.jsx)(k.A,{icon:"chevron-right"})}))};var Bt;function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ut=function(e){return e.title||e.display},zt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Ut(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Ut).join(" - ");break;default:r=Ut(n)}return xt.A.adjustedHTMLString(r)};const Vt=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,a=e.breadcrumbsInfo,i=void 0===a?[]:a,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,p=[].concat(le()(i),le()(s?[s]:[]));if(0===p.length)return null;var h,m=p.map((function(e,n){var r,a=e.display||"",i=n===p.length-1?Nt:Rt,s=n===p.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path)}:{},d=l?t||(t=(0,S.jsx)(l,{})):Bt||(Bt=(0,S.jsx)(f,{}));return(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)(Ft,{children:(0,S.jsxs)(i,Yt(Yt(Yt({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,S.jsx)(Pt,{type:e.type}),(0,S.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,S.jsx)(Ht,{},"icon".concat(n)),t]}));return(0,S.jsxs)(It,{backgroundColor:c,children:[d?(0,S.jsx)(gt,{defer:!1,children:(0,S.jsx)("title",{children:zt(p,(h="client.component.breadcrumbs.createTitle",n.formatMessage({id:h})))})}):null,(0,S.jsx)(S.Fragment,{children:m})]})};(0,ce.injectIntl)(Vt);var qt,Gt,$t=c.Ay.div.withConfig({displayName:"StyledWrapper"})(qt||(qt=i()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,l.Ed)(),(function(e){return e.theme.colors.signal.danger}),l.t7.color("paper"),l.hs.space(-.5));const Kt=function(){return Gt||(Gt=(0,S.jsx)($t,{children:(0,S.jsx)(ce.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Qt;const Xt=c.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Qt||(Qt=i()(["\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"])),q);var Jt=x().forwardRef((function(e,t){return(0,S.jsx)(Xt,{ref:t,children:e.children})}));Jt.propTypes={children:b().node};const Zt=Jt;var en=n(90179),tn=n.n(en),nn=n(62193),rn=n.n(nn),on=n(62243),an=n.n(on),sn=n(36193),cn=n.n(sn),un=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},ln=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},dn={outline:"none"},fn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ln(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=x().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)},ln(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?x().cloneElement(e({focused:t,getRef:this.ref}),n):x().createElement("div",un({ref:this.ref,style:dn},n),e)},t}(x().Component);fn.propTypes={children:cn().oneOfType([cn().node,cn().func]).isRequired,onBlur:cn().func,onFocus:cn().func},fn.defaultProps={onBlur:function(){},onFocus:function(){}};const pn=fn;var hn,mn,gn,vn,yn,bn,wn,On,xn,kn=n(88357),Sn=(0,c.AH)(hn||(hn=i()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),En=c.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(mn||(mn=i()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Sn),Pn=(0,c.AH)(gn||(gn=i()(["\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\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&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,l.Ed)({color:l.t7.color("text")})}),l.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Dn=(0,c.AH)(vn||(vn=i()(["\n display: flex;\n align-items: center;\n"]))),_n=c.Ay.div.withConfig({displayName:"StyledEditableControl"})(yn||(yn=i()(["\n &&& {\n ","\n }\n"])),Dn),jn=c.Ay.span.withConfig({displayName:"StyledEditableValue"})(bn||(bn=i()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\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: text;\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"])),l.t7.color("signal.danger")),Cn=n(85735),Tn=n.n(Cn),Mn=function(e){return-1*Math.abs(e)},An=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===Tn()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},In=n(58156),Rn=n.n(In),Nn=c.Ay.div.withConfig({displayName:"StyledLocationEdit"})(wn||(wn=i()(["\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"])),Sn,l.hs.space(-2),l.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Rn()(n,"colors.textDisabled"):Rn()(n,"colors.text")}),Pn,l.t7.color("paper"),l.t7.color("signal.info"),l.t7.color("secondaryLight"),l.t7.color("backgroundItemHover")),Ln=(0,c.Ay)(Nn).withConfig({displayName:"StyledAddressEdit"})(On||(On=i()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bn=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),s=n?"- ".concat(n):"",c=r?"/ ".concat(r.display):"";return(0,S.jsxs)(kt.Ay.Span,{children:[i,", ",o," ",a," ",s," ",c]})},d=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Hn(Hn({},o),{},m()({},t,a)))}),disabled:i};return(0,S.jsx)(pn,{children:function(e){var t,n,o,a,u=e.getRef;return(0,S.jsxs)(Ln,{immutable:i,name:s,ref:u,children:[(0,S.jsx)(an(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:c("street"),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:d,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,S.jsxs)(_n,{children:[r.isLoading&&(xn||(xn=(0,S.jsx)(_,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,S.jsx)(kn.Ay,{href:An(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Wn=n(69843),Yn=n.n(Wn),Un=n(7350),zn=n.n(Un);function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $n(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 Kn(e,t){if(e){if("string"==typeof e)return $n(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)?$n(e,t):void 0}}function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||Kn(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 Xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zn(){return Zn=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},Zn.apply(this,arguments)}function er(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 tr(e,t){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tr(e,t)}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nr(e)}function rr(e){return rr="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},rr(e)}function or(e,t){if(t&&("object"===rr(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 ar(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=nr(e);if(t){var o=nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return or(this,n)}}function ir(e){return function(e){if(Array.isArray(e))return $n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kn(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 sr=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}(),cr="-ms-",ur="-moz-",lr="-webkit-",dr="comm",fr="rule",pr="decl",hr="@keyframes",mr=Math.abs,gr=String.fromCharCode,vr=Object.assign;function yr(e){return e.trim()}function br(e,t,n){return e.replace(t,n)}function wr(e,t){return e.indexOf(t)}function Or(e,t){return 0|e.charCodeAt(t)}function xr(e,t,n){return e.slice(t,n)}function kr(e){return e.length}function Sr(e){return e.length}function Er(e,t){return t.push(e),e}var Pr=1,Dr=1,_r=0,jr=0,Cr=0,Tr="";function Mr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Pr,column:Dr,length:i,return:""}}function Ar(e,t){return vr(Mr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ir(){return Cr=jr>0?Or(Tr,--jr):0,Dr--,10===Cr&&(Dr=1,Pr--),Cr}function Rr(){return Cr=jr<_r?Or(Tr,jr++):0,Dr++,10===Cr&&(Dr=1,Pr++),Cr}function Nr(){return Or(Tr,jr)}function Lr(){return jr}function Fr(e,t){return xr(Tr,e,t)}function Hr(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 Br(e){return Pr=Dr=1,_r=kr(Tr=e),jr=0,[]}function Wr(e){return Tr="",e}function Yr(e){return yr(Fr(jr-1,Vr(91===e?e+2:40===e?e+1:e)))}function Ur(e){for(;(Cr=Nr())&&Cr<33;)Rr();return Hr(e)>2||Hr(Cr)>3?"":" "}function zr(e,t){for(;--t&&Rr()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Fr(e,Lr()+(t<6&&32==Nr()&&32==Rr()))}function Vr(e){for(;Rr();)switch(Cr){case e:return jr;case 34:case 39:34!==e&&39!==e&&Vr(Cr);break;case 40:41===e&&Vr(e);break;case 92:Rr()}return jr}function qr(e,t){for(;Rr()&&e+Cr!==57&&(e+Cr!==84||47!==Nr()););return"/*"+Fr(t,jr-1)+"*"+gr(47===e?e:Rr())}function Gr(e){for(;!Hr(Nr());)Rr();return Fr(e,jr)}function $r(e){return Wr(Kr("",null,null,null,[""],e=Br(e),0,[0],e))}function Kr(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=y,y=Rr()){case 40:if(108!=h&&58==Or(k,d-1)){-1!=wr(k+=br(Yr(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Yr(y);break;case 9:case 10:case 13:case 32:k+=Ur(h);break;case 92:k+=zr(Lr()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Er(Xr(qr(Rr(),Lr()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=kr(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&kr(k)-d&&Er(p>32?Jr(k+";",r,n,d-1):Jr(br(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Er(x=Qr(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===y)if(0===l)Kr(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===Or(k,3)?100:f){case 100:case 109:case 115:Kr(e,x,x,r&&Er(Qr(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:Kr(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=v=1,b=k="",d=i;break;case 58:d=1+kr(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ir())continue;switch(k+=gr(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(kr(k)-1)*v,v=1;break;case 64:45===Nr()&&(k+=Yr(Rr())),f=Nr(),l=d=kr(b=k+=Gr(Lr())),y++;break;case 45:45===h&&2==kr(k)&&(m=0)}}return a}function Qr(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=Sr(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=xr(e,d+1,d=mr(m=i[h])),b=e;v<p;++v)(b=yr(m>0?f[v]+" "+y:br(y,/&\f/g,f[v])))&&(c[g++]=b);return Mr(e,t,n,0===o?fr:s,c,u,l)}function Xr(e,t,n){return Mr(e,t,n,dr,gr(Cr),xr(e,2,-2),0)}function Jr(e,t,n,r){return Mr(e,t,n,pr,xr(e,0,r),xr(e,r+1,-1),r)}function Zr(e,t){for(var n="",r=Sr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eo(e,t,n,r){switch(e.type){case"@import":case pr:return e.return=e.return||e.value;case dr:return"";case hr:return e.return=e.value+"{"+Zr(e.children,r)+"}";case fr:e.value=e.props.join(",")}return kr(n=Zr(e.children,r))?e.return=e.value+"{"+n+"}":""}var to=function(e,t,n){for(var r=0,o=0;r=o,o=Nr(),38===r&&12===o&&(t[n]=1),!Hr(o);)Rr();return Fr(e,jr)},no=function(e,t){return Wr(function(e,t){var n=-1,r=44;do{switch(Hr(r)){case 0:38===r&&12===Nr()&&(t[n]=1),e[n]+=to(jr-1,t,n);break;case 2:e[n]+=Yr(r);break;case 4:if(44===r){e[++n]=58===Nr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gr(r)}}while(r=Rr());return e}(Br(e),t))},ro=new WeakMap,oo=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)||ro.get(n))&&!r){ro.set(e,!0);for(var o=[],a=no(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},ao=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function io(e,t){switch(function(e,t){return 45^Or(e,0)?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}(e,t)){case 5103:return lr+"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 lr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lr+e+ur+e+cr+e+e;case 6828:case 4268:return lr+e+cr+e+e;case 6165:return lr+e+cr+"flex-"+e+e;case 5187:return lr+e+br(e,/(\w+).+(:[^]+)/,lr+"box-$1$2"+cr+"flex-$1$2")+e;case 5443:return lr+e+cr+"flex-item-"+br(e,/flex-|-self/,"")+e;case 4675:return lr+e+cr+"flex-line-pack"+br(e,/align-content|flex-|-self/,"")+e;case 5548:return lr+e+cr+br(e,"shrink","negative")+e;case 5292:return lr+e+cr+br(e,"basis","preferred-size")+e;case 6060:return lr+"box-"+br(e,"-grow","")+lr+e+cr+br(e,"grow","positive")+e;case 4554:return lr+br(e,/([^-])(transform)/g,"$1"+lr+"$2")+e;case 6187:return br(br(br(e,/(zoom-|grab)/,lr+"$1"),/(image-set)/,lr+"$1"),e,"")+e;case 5495:case 3959:return br(e,/(image-set\([^]*)/,lr+"$1$`$1");case 4968:return br(br(e,/(.+:)(flex-)?(.*)/,lr+"box-pack:$3"+cr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lr+e+e;case 4095:case 3583:case 4068:case 2532:return br(e,/(.+)-inline(.+)/,lr+"$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(kr(e)-1-t>6)switch(Or(e,t+1)){case 109:if(45!==Or(e,t+4))break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+ur+(108==Or(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wr(e,"stretch")?io(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Or(e,t+1))break;case 6444:switch(Or(e,kr(e)-3-(~wr(e,"!important")&&10))){case 107:return br(e,":",":"+lr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(45===Or(e,14)?"inline-":"")+"box$3$1"+lr+"$2$3$1"+cr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+cr+e+e}return e}var so=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=io(e.value,e.length);break;case hr:return Zr([Ar(e,{value:br(e.value,"@","@"+lr)})],r);case fr: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 Zr([Ar(e,{props:[br(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Zr([Ar(e,{props:[br(t,/:(plac\w+)/,":"+lr+"input-$1")]}),Ar(e,{props:[br(t,/:(plac\w+)/,":-moz-$1")]}),Ar(e,{props:[br(t,/:(plac\w+)/,cr+"input-$1")]})],r)}return""}))}}];const co=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||so;var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[eo,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[oo,ao].concat(r,f),l=Sr(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,Zr($r(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new sr({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};n(4146);var uo=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const lo=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 fo={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 po=/[A-Z]|^ms/g,ho=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mo=function(e){return 45===e.charCodeAt(1)},go=function(e){return null!=e&&"boolean"!=typeof e},vo=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return mo(e)?e:e.replace(po,"-$&").toLowerCase()})),yo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ho,(function(e,t,n){return wo={name:t,styles:n,next:wo},t}))}return 1===fo[e]||mo(e)||"number"!=typeof t||0===t?t:t+"px"};function bo(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 wo={name:n.name,styles:n.styles,next:wo},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wo={name:r.name,styles:r.styles,next:wo},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+=bo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":go(i)&&(r+=vo(a)+":"+yo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=bo(e,t,i);switch(a){case"animation":case"animationName":r+=vo(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)go(i[c])&&(r+=vo(a)+":"+yo(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=wo,a=n(e);return wo=o,bo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var wo,Oo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var xo=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="";wo=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=bo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=bo(n,t,e[i]),r&&(o+=a[i]);Oo.lastIndex=0;for(var s,c="";null!==(s=Oo.exec(o));)c+="-"+s[1];return{name:lo(o)+c,styles:o,next:wo}},ko=!!w.useInsertionEffect&&w.useInsertionEffect,So=ko||function(e){return e()},Eo={}.hasOwnProperty,Po=(0,w.createContext)("undefined"!=typeof HTMLElement?co({key:"css"}):null);Po.Provider;var Do=function(e){return(0,w.forwardRef)((function(t,n){var r=(0,w.useContext)(Po);return e(t,r,n)}))},_o=(0,w.createContext)({});var jo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Co=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;uo(t,n,r);So((function(){return function(e,t,n){uo(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},To=Do((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[jo],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=xo(a,void 0,(0,w.useContext)(_o));i+=t.key+"-"+s.name;var c={};for(var u in e)Eo.call(e,u)&&"css"!==u&&u!==jo&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,w.createElement)(w.Fragment,null,(0,w.createElement)(Co,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,w.createElement)(o,c))}));var Mo=function(e,t){var n=arguments;if(null==t||!Eo.call(t,"css"))return w.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=To,o[1]=function(e,t){var n={};for(var r in t)Eo.call(t,r)&&(n[r]=t[r]);return n[jo]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return w.createElement.apply(null,o)};function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xo(t)}var Io=n(81845);Math.min,Math.max;const Ro=["top","right","bottom","left"];Ro.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function No(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Lo(e){if(null==e)return window;if(!No(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fo(e){return Lo(e).getComputedStyle(e)}function Ho(e){return No(e)?"":e?(e.nodeName||"").toLowerCase():""}function Bo(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Wo(e){return e instanceof Lo(e).HTMLElement}function Yo(e){return e instanceof Lo(e).Element}function Uo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lo(e).ShadowRoot||e instanceof ShadowRoot)}function zo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fo(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Vo(){return!/^((?!chrome|android).)*safari/i.test(Bo())}function qo(e){return["html","body","#document"].includes(Ho(e))}Math.min,Math.max;const Go=Math.round;function $o(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Wo(e)&&(c=e.offsetWidth>0&&Go(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Go(s.height)/e.offsetHeight||1);const l=Yo(e)?Lo(e):window,d=!Vo()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Ko(e){return(t=e,(t instanceof Lo(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Qo(e){if("html"===Ho(e))return e;const t=e.assignedSlot||e.parentNode||(Uo(e)?e.host:null)||Ko(e);return Uo(t)?t.host:t}function Xo(e){const t=Qo(e);return qo(t)?e.ownerDocument.body:Wo(t)&&zo(t)?t:Xo(t)}function Jo(e,t){var n;void 0===t&&(t=[]);const r=Xo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Lo(r),i=o?[a].concat(a.visualViewport||[],zo(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Jo(i))}const Zo=w.useLayoutEffect;var ea=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ta=function(){};function na(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(na(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===rr(e)&&null!==e?[e]:[];var t},aa=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,Gn({},Xn(e,ea))},ia=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function sa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ca(e){return sa(e)?window.pageYOffset:e.scrollTop}function ua(e,t){sa(e)?window.scrollTo(0,t):e.scrollTop=t}function la(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ta,o=ca(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ua(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function da(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ua(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ua(e,Math.max(t.offsetTop-o,0))}function fa(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var pa=!1,ha={get passive(){return pa=!0}},ma="undefined"!=typeof window?window:{};ma.addEventListener&&ma.removeEventListener&&(ma.addEventListener("p",ta,ha),ma.removeEventListener("p",ta,!1));var ga=pa;function va(e){return null!=e}function ya(e,t,n){return e?t:n}var ba=["children","innerProps"],wa=["children","innerProps"];function Oa(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:sa(l=c)?window.innerHeight:l.clientHeight,y=ca(c),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,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&la(c,E,D),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&la(c,E,D),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,j=i?O:k;return j>=r&&(_=Math.min(j-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&ua(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&la(c,P,D),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var C=t;return(!i&&k>=r||i&&O>=r)&&(C=i?O-w:k-w),a&&la(c,P,D),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var xa,ka=function(e){return"auto"===e?"bottom":e},Sa=(0,w.createContext)(null),Ea=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,w.useContext)(Sa)||{}).setPortalPlacement,u=(0,w.useRef)(null),l=Qn((0,w.useState)(r),2),d=l[0],f=l[1],p=Qn((0,w.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Zo((function(){var e=u.current;if(e){var t="fixed"===a,s=Oa({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,g]),t({ref:u,placerProps:Gn(Gn({},e),{},{placement:h||ka(o),maxHeight:d})})},Pa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Mo("div",Zn({},ia(e,"menu",{menu:!0}),{ref:n},r),t)},Da=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Gn({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},_a=Da,ja=Da,Ca=["size"],Ta=["innerProps","isRtl","size"];var Ma,Aa,Ia={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ra=function(e){var t=e.size,n=Xn(e,Ca);return Mo("svg",Zn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ia},n))},Na=function(e){return Mo(Ra,Zn({size:20},e),Mo("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"}))},La=function(e){return Mo(Ra,Zn({size:20},e),Mo("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"}))},Fa=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Gn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ha=Fa,Ba=Fa,Wa=function(){var e=Ao.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_"}}}(xa||(Ma=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Aa||(Aa=Ma.slice(0)),xa=Object.freeze(Object.defineProperties(Ma,{raw:{value:Object.freeze(Aa)}})))),Ya=function(e){var t=e.delay,n=e.offset;return Mo("span",{css:Ao({animation:"".concat(Wa," 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"},"","")})},Ua=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Mo("div",Zn({ref:o},ia(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},za=["data"],Va=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Mo("div",Zn({},ia(e,"group",{group:!0}),s),Mo(a,Zn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Mo("div",null,t))},qa=["innerRef","isDisabled","isHidden","inputClassName"],Ga={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},$a={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Gn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ga)},Ka=function(e){return Gn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ga)},Qa=function(e){var t=e.cx,n=e.value,r=aa(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Xn(r,qa);return Mo("div",Zn({},ia(e,"input",{"input-container":!0}),{"data-value":n||""}),Mo("input",Zn({className:t({input:!0},s),ref:o,style:Ka(i),disabled:a},c)))},Xa=function(e){var t=e.children,n=e.innerProps;return Mo("div",n,t)};var Ja=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Mo(c,{data:r,innerProps:Gn(Gn({},ia(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},Mo(u,{data:r,innerProps:Gn({},ia(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Mo(l,{data:r,innerProps:Gn(Gn({},ia(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},Za=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Mo("div",Zn({},ia(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},ei=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Mo("div",Zn({},ia(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ti={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Mo(Na,null))},Control:Ua,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Mo(La,null))},DownChevron:La,CrossIcon:Na,Group:Va,GroupHeading:function(e){var t=aa(e);t.data;var n=Xn(t,za);return Mo("div",Zn({},ia(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Mo("span",Zn({},t,ia(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Qa,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Xn(e,Ta);return Mo("div",Zn({},ia(Gn(Gn({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Mo(Ya,{delay:0,offset:n}),Mo(Ya,{delay:160,offset:!0}),Mo(Ya,{delay:320,offset:!n}))},Menu:Pa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Mo("div",Zn({},ia(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,s=(0,w.useRef)(null),c=(0,w.useRef)(null),u=Qn((0,w.useState)(ka(a)),2),l=u[0],d=u[1],f=(0,w.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=Qn((0,w.useState)(null),2),h=p[0],m=p[1],g=(0,w.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Zo((function(){g()}),[g]);var v=(0,w.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...Yo(e)?Jo(e):e.contextElement?Jo(e.contextElement):[],...Jo(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Yo(e)&&!s&&d.observe(e),Yo(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?$o(e):null;return s&&function t(){const r=$o(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Zo((function(){v()}),[v]);var y=(0,w.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var b=Mo("div",Zn({ref:y},ia(Gn(Gn({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Mo(Sa.Provider,{value:f},t?(0,Io.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Xn(e,wa);return Mo("div",Zn({},ia(Gn(Gn({},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=Xn(e,ba);return Mo("div",Zn({},ia(Gn(Gn({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ja,MultiValueContainer:Xa,MultiValueLabel:Xa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({role:"button"},n),t||Mo(Na,{size:14}))},Option:Za,Placeholder:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Mo("div",Zn({},ia(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:ei,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Mo("div",Zn({},ia(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},ni=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ri(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||ni(r)&&ni(o)))return!1;var r,o;return!0}for(var oi={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"},ai=function(e){return Mo("span",Zn({css:oi},e))},ii={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},si=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,b=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,w.useMemo)((function(){return Gn(Gn({},ii),l||{})}),[l]),E=(0,w.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=Gn({isDisabled:u&&h(u,i),label:l,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),P=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,h,S,o,i,u]),D=(0,w.useMemo)((function(){var e="";if(g&&v.length&&!O&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,S,v,y,O]),_="initial-input-focus"===(null==t?void 0:t.action),j=(0,w.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:_})}return e}),[x,n,r,p,h,m,g,S,i,b,_]),C=Mo(w.Fragment,null,Mo("span",{id:"aria-selection"},E),Mo("span",{id:"aria-focused"},P),Mo("span",{id:"aria-results"},D),Mo("span",{id:"aria-guidance"},j));return Mo(w.Fragment,null,Mo(ai,{id:c},_&&C),Mo(ai,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&C))},ci=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ui=new RegExp("["+ci.map((function(e){return e.letters})).join("")+"]","g"),li={},di=0;di<ci.length;di++)for(var fi=ci[di],pi=0;pi<fi.letters.length;pi++)li[fi.letters[pi]]=fi.base;var hi=function(e){return e.replace(ui,(function(e){return li[e]}))},mi=function(e,t){void 0===t&&(t=ri);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(hi),gi=function(e){return e.replace(/^\s+|\s+$/g,"")},vi=function(e){return"".concat(e.label," ").concat(e.value)},yi=["innerRef"];function bi(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=Qn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Qn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Xn(e,yi),"onExited","in","enter","exit","appear");return Mo("input",Zn({ref:t},n,{css:Ao({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 wi=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Oi=["boxSizing","height","overflow","paddingRight","position"],xi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ki(e){e.preventDefault()}function Si(e){e.stopPropagation()}function Ei(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Di=!("undefined"==typeof window||!window.document||!window.document.createElement),_i=0,ji={capture:!1,passive:!1};var Ci=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ti={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Mi(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),s=(0,w.useRef)(!1),c=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&wi(e)}}),[n,r,o,a]),d=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,w.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,w.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!ga&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(Di){var t=document.body,n=t&&t.style;if(r&&Oi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&_i<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(xi).forEach((function(e){var t=xi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Pi()&&(t.addEventListener("touchmove",ki,ji),e&&(e.addEventListener("touchstart",Ei,ji),e.addEventListener("touchmove",Si,ji))),_i+=1}}),[r]),s=(0,w.useCallback)((function(e){if(Di){var t=document.body,n=t&&t.style;_i=Math.max(_i-1,0),r&&_i<1&&Oi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Pi()&&(t.removeEventListener("touchmove",ki,ji),e&&(e.removeEventListener("touchstart",Ei,ji),e.removeEventListener("touchmove",Si,ji)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return Mo(w.Fragment,null,n&&Mo("div",{onClick:Ci,css:Ti}),t((function(e){o(e),a(e)})))}var Ai={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ii=function(e){var t=e.name,n=e.onFocus;return Mo("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ai,value:"",onChange:function(){}})};function Ri(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 Ni(){return Ri(/^Mac/i)}function Li(){return Ri(/^iPhone/i)||Ri(/^iPad/i)||Ni()&&navigator.maxTouchPoints>1}var Fi={clearIndicator:Ba,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Gn({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ha,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 Gn({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Gn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Gn(Gn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},$a),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Gn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:ja,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Gn((Vn(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Vn(n,"position","absolute"),Vn(n,"width","100%"),Vn(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Gn({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Gn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Gn({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Gn({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:_a,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Gn({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Gn({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Gn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Gn({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Hi,Bi={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}},Wi={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:fa(),captureMenuScroll:!fa(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Gn({ignoreCase:!0,ignoreAccents:!0,stringify:vi,trim:!0,matchFrom:"any"},Hi),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?gi(t):t,u=i?gi(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=mi(c),u=hi(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yi(e,t,n,r){return{type:"option",data:t,isDisabled:Qi(e,t,n),isSelected:Xi(e,t,n),label:$i(e,t),value:Ki(e,t),index:r}}function Ui(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Yi(e,n,t,r)})).filter((function(t){return qi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Yi(e,n,t,r);return qi(e,a)?a:void 0})).filter(va)}function zi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ir(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Vi(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ir(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 qi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Zi(e)||!a)&&Ji(e,{label:i,value:s,data:o},r)}var Gi=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},$i=function(e,t){return e.getOptionLabel(t)},Ki=function(e,t){return e.getOptionValue(t)};function Qi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Xi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ki(e,t);return n.some((function(t){return Ki(e,t)===r}))}function Ji(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Zi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},es=1,ts=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&&tr(e,t)}(a,e);var t,n,r,o=ar(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Ni()||Li(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(ir(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ya(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ya(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ya(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Gi(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Vi(Ui(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 ra.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $i(t.props,e)},t.getOptionValue=function(e){return Ki(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Fi[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Gn(Gn({},ti),e.components);var e},t.buildCategorizedOptions=function(){return Ui(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return zi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Gn({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&&sa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Zi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++es),t.state.selectValue=oa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=Gi(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&da(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&&(da(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Bi):Gn(Gn({},Bi),this.props.theme):Bi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Qi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ji(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=Gn(Gn(Gn({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,Zn({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(bi,Zn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ta,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return p?null:w.createElement(s,Zn({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,Zn({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=g[0];return w.createElement(i,Zn({},c,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,Zn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,Zn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,Zn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,Zn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!b)return null;var j,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,f=d===o,p=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return w.createElement(u,Zn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return w.createElement(n,Zn({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;j=w.createElement(s,l,T)}else{var M=P({inputValue:h});if(null===M)return null;j=w.createElement(c,l,M)}var A={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},I=w.createElement(Ea,Zn({},l,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return w.createElement(o,Zn({},l,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),w.createElement(Mi,{captureEnabled:p,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return w.createElement(a,Zn({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),j)})))}));return k||"fixed"===x?w.createElement(i,Zn({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement(Ii,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return w.createElement(si,Zn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return w.createElement(r,Zn({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),w.createElement(t,Zn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),w.createElement(o,Zn({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,Zn({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=oa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return zi(Ui(e,t))}(e,h):[],v=d?Vi(Ui(e,h),"".concat(c,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:Gi(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:ya(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Gn(Gn(Gn({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);ts.defaultProps=Wi;var ns=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=Xn(e,Jn),m=Qn((0,w.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],y=Qn((0,w.useState)(void 0!==c?c:o),2),b=y[0],O=y[1],x=Qn((0,w.useState)(void 0!==p?p:i),2),k=x[0],S=x[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),_=(0,w.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),j=void 0!==s?s:g,C=void 0!==c?c:b,T=void 0!==p?p:k;return Gn(Gn({},h),{},{inputValue:j,menuIsOpen:C,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:T})}(e);return w.createElement(ts,Zn({ref:t},n))})),rs=ns,os=n(81570);const as={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isTouchDevice:os.C,isPrimaryTouchDevice:os.i};function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cs=(0,ce.injectIntl)((function(e){var t;return(0,S.jsx)("span",ss(ss({},e.innerProps),{},{children:(0,S.jsx)(re,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var us=n(2418);function ls(){return ls=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},ls.apply(this,arguments)}const ds=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class fs extends w.Component{constructor(...e){super(...e),this._targetNode=w.createRef(),this._elementNode=w.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,w.isValidElement)(e)||(e=null),(0,w.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new us(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,ds),a=ls({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?w.createElement(w.Fragment,null,e,t&&this._elementParentNode&&Io.createPortal(t,this._elementParentNode)):null}}var ps,hs,ms,gs,vs,ys,bs,ws,Os,xs,ks,Ss,Es;function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _s=c.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(ps||(ps=i()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),js=c.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(hs||(hs=i()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),Cs=c.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(ms||(ms=i()(["\n outline-style: none;\n"]))),Ts=c.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(gs||(gs=i()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),l.t7.color("paper"),l.t7.radii("form"),(function(e){return e.isTopAligned&&(0,c.AH)(vs||(vs=i()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Ms=(0,c.Ay)(fs).withConfig({displayName:"StyledTether"})(ys||(ys=i()(["\n && {\n z-index: 1;\n }\n"]))),As=(c.Ay.div.withConfig({displayName:"StyledNonTether"})(bs||(bs=i()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),l.hs.space(1.5)),(0,c.Ay)(ti.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(ws||(ws=i()(["\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}))),Is=c.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Os||(Os=i()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,l.Ed)({color:l.t7.color("signal.info"),lineHeight:"normal"}),l.hs.space(-.5),l.hs.space(-.2)),Rs=c.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(xs||(xs=i()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?l.t7.color("text"):"inherit"})),Ns=c.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(ks||(ks=i()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Ls=c.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Ss||(Ss=i()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Fs=c.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Es||(Es=i()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),Hs=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,c=l.hs.space(-1)({theme:e}),u=l.hs.space(-2)({theme:e}),d={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},f=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return Ds(Ds({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Ds(Ds(Ds({},e),d),{},{outline:0})},control:function(e,t){return Ds(Ds({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:f(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),Ds(Ds({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return Ds(Ds({},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),Ds(Ds(Ds({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},f(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:s}},menuList:function(t,n){return Ds(Ds(Ds({},t),d),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Ds(Ds({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},f(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Ds(Ds({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Ds(Ds({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Ds(Ds({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Ds(Ds({},e),{},{color:t.isDisabled?i:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(e,t){return Ds(Ds({},e),{},{padding:0,margin:0,minHeight:t.isDisabled?"0":"2.6rem"})}}};function Bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ys=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,S.jsx)(ti.DropdownIndicator,Ws(Ws({},e),{},{children:(0,S.jsx)(Ns,{children:(0,S.jsx)(re,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};b().shape({key:b().any.isRequired,display:b().string});var Us,zs,Vs;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 Gs(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){m()(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}var $s=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ks=function(e,t){return function(n){n.stopPropagation(),e(t)}},Qs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Xs=function(e){e.stopPropagation()};const Js=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,S.jsx)(Ts,{isTopAligned:f,children:(0,S.jsxs)(ti.IndicatorsContainer,Gs(Gs({},e),{},{children:[e.children,n&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:Ks(n,u),children:Us||(Us=(0,S.jsx)(re,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:$s(r,d,u),children:zs||(zs=(0,S.jsx)(re,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:Qs(o,u),children:Vs||(Vs=(0,S.jsx)(re,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Zs;const ec=function(){return Zs||(Zs=(0,S.jsx)("span",{children:(0,S.jsx)(_,{size:"1.8rem"})}))};var tc="tocco-app",nc=n(85072),rc=n.n(nc),oc=n(97825),ac=n.n(oc),ic=n(77659),sc=n.n(ic),cc=n(55056),uc=n.n(cc),lc=n(10540),dc=n.n(lc),fc=n(41113),pc=n.n(fc),hc=n(2063),mc={};mc.styleTagTransform=pc(),mc.setAttributes=uc(),mc.insert=sc().bind(null,"head"),mc.domAPI=ac(),mc.insertStyleElement=dc();rc()(hc.A,mc);hc.A&&hc.A.locals&&hc.A.locals;var gc,vc=n(59386),yc=n.n(vc),bc=c.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(gc||(gc=i()(["\n cursor: pointer;\n user-select: none;\n"]))),wc=x().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,S.jsx)(bc,{onClick:r,ref:t,children:n})}));wc.propTypes={children:b().any,onOpen:b().func};const Oc=wc;var xc=n(33046),kc=n(37576),Sc=function(){(0,vc.registerLocale)("en",kc.A.getDateFnsLocale("en")),(0,vc.registerLocale)("en-US",kc.A.getDateFnsLocale("en")),(0,vc.registerLocale)("de-CH",kc.A.getDateFnsLocale("de-CH")),(0,vc.registerLocale)("de-DE",kc.A.getDateFnsLocale("de-DE")),(0,vc.registerLocale)("de",kc.A.getDateFnsLocale("de")),(0,vc.registerLocale)("fr",kc.A.getDateFnsLocale("fr")),(0,vc.registerLocale)("fr-CH",kc.A.getDateFnsLocale("fr")),(0,vc.registerLocale)("it",kc.A.getDateFnsLocale("it")),(0,vc.registerLocale)("it-CH",kc.A.getDateFnsLocale("it")),(0,vc.setDefaultLocale)("de")};Sc();(0,c.SL)((0,ce.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,w.useRef)(null),c=(0,w.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,S.jsx)(yc(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:i,enableTabLoop:!1,customInput:(0,S.jsx)(Oc,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var Ec,Pc,Dc,_c,jc=l.t7.color("secondaryLight"),Cc=l.t7.color("paper"),Tc=l.t7.color("text"),Mc=l.t7.color("secondary"),Ac=l.t7.radii("form"),Ic=(0,c.DU)(Ec||(Ec=i()(["\n .react-datepicker-popper {\n && {\n /* higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget */\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; /* prevent box-sizing problems in widgets */\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; /* static in all themes */\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n /* TODO fix stylelint error - https://toccoag.atlassian.net/browse/TOCDEV-9208 */\n /* stylelint-disable-next-line no-duplicate-selectors */\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"])),k.i,Tc,l.t7.radii("form"),Ac,jc,Cc,(0,l.Ed)(),(0,l.Ed)(),jc,Ac,Ac,l.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",Cc,l.hs.font(1),l.t7.fontWeight("bold"),(0,l.Ed)({fontWeight:l.t7.fontWeight("bold")}),Cc,l.hs.font(-2),l.hs.space(-1.8),Mc,Mc,Mc,jc,jc,jc,Mc,(0,l.Ed)(),Cc,l.hs.space(-.5),l.t7.color("backgroundItemHover"),Ac,l.hs.space(-.5),Cc,l.t7.color("border"),l.t7.radii("form"),l.hs.space(-1),l.hs.space(-1),l.hs.font(1),Cc,l.t7.fontWeight("bold"),l.hs.space(-1),Cc,l.hs.font(0),Tc,jc,jc,l.t7.radii("form"),Cc,jc,Mc,Tc,Tc,Cc,jc,l.t7.color("backgroundItemHover"),l.t7.color("textDisabled"),l.t7.color("border"),l.t7.radii("form")),Rc=(0,c.DU)(Pc||(Pc=i()(["\n /****** Global text colors *****/\n \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"])),l.t7.color("signal.success"),l.t7.color("signal.info"),l.t7.color("signal.warning"),l.t7.color("signal.danger"),l.t7.color("textDisabled")),Nc=(0,c.DU)(Dc||(Dc=i()(["\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"])),l.t7.color("backgroundScrollbar"),l.t7.color("backgroundScrollbarHover"),l.t7.color("backgroundScrollbar"));const Lc=function(){return _c||(_c=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Rc,{}),(0,S.jsx)(Ic,{}),(0,S.jsx)(Nc,{})]}))};function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bc=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,S.jsx)(Ms,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,S.jsx)("div",{ref:e})},renderElement:function(o){return(0,S.jsx)("div",{ref:o,className:tc,children:(0,S.jsx)(As,Hc(Hc({},tn()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Uc=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,S.jsxs)(ti.MenuList,Yc(Yc({},e),{},{className:"MenuList",children:[n,r&&(0,S.jsx)(Is,{children:o})]}))};var zc=n(66984),Vc=(n(97193),n(86635)),qc=n(49054),Gc=n(4865);const $c={...O},Kc=$c.useInsertionEffect||(e=>e());function Qc(e){const t=w.useRef((()=>{0}));return Kc((()=>{t.current=e})),w.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 Xc="ArrowUp",Jc="ArrowDown",Zc="ArrowLeft",eu="ArrowRight";var tu="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;const nu=[Zc,eu],ru=[Xc,Jc];function ou(){return ou=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},ou.apply(this,arguments)}let au=!1,iu=0;const su=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iu++;const cu=$c.useId||function(){const[e,t]=w.useState((()=>au?su():void 0));return tu((()=>{null==e&&t(su())}),[]),w.useEffect((()=>{au=!0}),[]),e};const uu=w.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:f,style:{transform:p,...h}={},...m}=e;const g=cu(),[v,y]=w.useState(!1);if(tu((()=>{if(!r)return;"rtl"===(0,Vc.L9)(r).direction&&y(!0)}),[r]),!r)return null;const[b,O]=n.split("-"),x="top"===b||"bottom"===b;let k=l;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*u,E=S/2,P=i/2*(c/-8+1),D=s/2*c/4,_=!!f,j=k&&"end"===O?"bottom":"top";let C=k&&"end"===O?"right":"left";k&&v&&(C="end"===O?"left":"right");const T=null!=(null==o?void 0:o.x)?k||o.x:"",M=null!=(null==o?void 0:o.y)?k||o.y:"",A=f||"M0,0 H"+i+" L"+(i-P)+","+(s-D)+" Q"+i/2+","+s+" "+P+","+(s-D)+" Z",I={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[b];return w.createElement("svg",ou({},m,{"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[C]:T,[j]:M,[b]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[I,p].filter((e=>!!e)).join(" "),...h}}),S>0&&w.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(f?0:1),d:A}),w.createElement("path",{stroke:S&&!f?m.fill:"none",d:A}),w.createElement("clipPath",{id:g},w.createElement("rect",{x:-E,y:E*(_?-1:1),width:i+S,height:i})))}));function lu(){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 du=w.createContext(null),fu=w.createContext(null),pu=()=>{var e;return(null==(e=w.useContext(du))?void 0:e.id)||null},hu=()=>w.useContext(fu);function mu(e){return"data-floating-ui-"+e}function gu(e){const t=(0,w.useRef)(e);return tu((()=>{t.current=e})),t}const vu=mu("safe-polygon");function yu(e,t,n){return n&&!(0,zc.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const bu=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wu(e,t){const n=(0,qc.Kr)(e,bu());"prev"===t&&n.reverse();const r=n.indexOf((0,zc.RS)((0,zc.YE)(e)));return n.slice(r+1)[0]}function Ou(){return wu(document.body,"next")}function xu(){return wu(document.body,"prev")}function ku(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,zc.gR)(n,r)}function Su(e){(0,qc.Kr)(e,bu()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Eu(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 Pu={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 Du(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const _u=w.forwardRef((function(e,t){const[n,r]=w.useState();tu((()=>((0,zc.nr)()&&r("button"),document.addEventListener("keydown",Du),()=>{document.removeEventListener("keydown",Du)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[mu("focus-guard")]:"",style:Pu};return w.createElement("span",ou({},e,o))})),ju=w.createContext(null),Cu=mu("portal");function Tu(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=cu(),o=Mu(),[a,i]=w.useState(null),s=w.useRef(null);return tu((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{s.current=null}))}),[a]),tu((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Cu,""),e.appendChild(n),s.current=n,i(n)}),[t,r]),tu((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,Vc.vq)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const c=document.createElement("div");c.id=r,c.setAttribute(Cu,""),e=a||e,e.appendChild(c),s.current=c,i(c)}),[t,n,r,o]),a}({id:n,root:r}),[i,s]=w.useState(null),c=w.useRef(null),u=w.useRef(null),l=w.useRef(null),d=w.useRef(null),f=null==i?void 0:i.modal,p=null==i?void 0:i.open,h=!!i&&!i.modal&&i.open&&o&&!(!r&&!a);return w.useEffect((()=>{if(a&&o&&!f)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&&ku(e)){("focusin"===e.type?Eu:Su)(a)}}}),[a,o,f]),w.useEffect((()=>{a&&(p||Eu(a))}),[p,a]),w.createElement(ju.Provider,{value:w.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:a,setFocusManagerState:s})),[o,a])},h&&a&&w.createElement(_u,{"data-type":"outside",ref:c,onFocus:e=>{if(ku(e,a)){var t;null==(t=l.current)||t.focus()}else{const e=xu()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),h&&a&&w.createElement("span",{"aria-owns":a.id,style:Pu}),a&&Io.createPortal(t,a),h&&a&&w.createElement(_u,{"data-type":"outside",ref:u,onFocus:e=>{if(ku(e,a)){var t;null==(t=d.current)||t.focus()}else{const t=Ou()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Mu=()=>w.useContext(ju),Au="data-floating-ui-focusable";function Iu(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=cu(),a=w.useRef({}),[i]=w.useState((()=>lu())),s=null!=pu(),[c,u]=w.useState(r.reference),l=Qc(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=w.useMemo((()=>({setPositionReference:u})),[]),f=w.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return w.useMemo((()=>({dataRef:a,open:t,onOpenChange:l,elements:f,events:i,floatingId:o,refs:d})),[t,l,f,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=w.useState(null),[s,c]=w.useState(null),u=(null==o?void 0:o.reference)||a,l=w.useRef(null),d=hu();tu((()=>{u&&(l.current=u)}),[u]);const f=(0,Gc.we)({...e,elements:{...o,...s&&{reference:s}}}),p=w.useCallback((e=>{const t=(0,Vc.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),h=w.useCallback((e=>{((0,Vc.vq)(e)||null===e)&&(l.current=e,i(e)),((0,Vc.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,Vc.vq)(e))&&f.refs.setReference(e)}),[f.refs]),m=w.useMemo((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:l})),[f.refs,h,p]),g=w.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),v=w.useMemo((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return tu((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),w.useMemo((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}const Ru="active",Nu="selected";function Lu(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Ru]:t,[Nu]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Au]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[Ru,Nu].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}var Fu,Hu,Bu,Wu,Yu,Uu=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Fu||(Fu=i()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),l.t7.color("text"),l.hs.font(1),l.hs.space(-1)),zu=(0,c.AH)(Hu||(Hu=i()(["\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"])),l.t7.color("text"),l.t7.lineHeight("regular"),l.t7.fontWeight("regular"),l.hs.space(-3),l.hs.space(-1.5),l.t7.radii("statusLabel")),Vu=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledHtmlFormatter"})(Bu||(Bu=i()(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; /* nice2 reset */\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; /* same color in all themes */\n }\n }\n }\n"])),(function(e){return(0,kt.gv)(e,"html")}),l.hs.space(-1),l.hs.space(-1.5),zu,l.t7.color("signal.dangerLight"),l.t7.color("textLabel"),l.t7.color("signal.infoLight"),l.t7.color("textLabel"),l.t7.color("signal.warningLight"),l.t7.color("textLabel"),l.t7.color("signal.successLight"),l.t7.color("textLabel"),zu,l.t7.color("signal.dangerLight"),l.t7.color("textLabel"),l.t7.radii("statusLabel"),l.hs.space(-2.1),l.hs.space(0),l.t7.color("paper"),l.t7.color("signal.info"),l.t7.color("signal.warningLight"),l.hs.space(-1.5),l.hs.space(.5)),qu=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Wu||(Wu=i()(["\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 svg path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),l.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":l.hs.space(0)}),l.t7.color("textPopover"),l.t7.color("backgroundPopover")),Gu=c.Ay.div.withConfig({displayName:"StyledBox"})(Yu||(Yu=i()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,kt.gv)(e,"html")}),Vu,l.t7.color("textPopover"));function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$u(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qu=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,i=void 0!==a&&a,s=(0,w.useState)(!1),c=C()(s,2),u=c[0],l=c[1],d=(0,w.useRef)(null),f=Iu({open:u,onOpenChange:l,middleware:[(0,Gc.UU)(),(0,Gc.BN)({padding:20}),(0,Gc.UE)({element:d}),(0,Gc.cY)(5)]}),p=f.refs,h=f.floatingStyles,m=f.context,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,p=hu(),h=pu(),m=gu(u),g=gu(c),v=gu(n),y=w.useRef(),b=w.useRef(-1),O=w.useRef(),x=w.useRef(-1),k=w.useRef(!0),S=w.useRef(!1),E=w.useRef((()=>{})),P=w.useRef(!1),D=w.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);w.useEffect((()=>{if(s)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(x.current),k.current=!0,P.current=!1)}}),[s,a]),w.useEffect((()=>{if(!s)return;if(!m.current)return;if(!n)return;function e(e){D()&&r(!1,e,"hover")}const t=(0,zc.YE)(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,s,m,D]);const _=w.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=yu(g.current,"close",y.current);o&&!O.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(b.current),r(!1,e,n))}),[g,r]),j=Qc((()=>{E.current(),O.current=void 0})),C=Qc((()=>{if(S.current){const e=(0,zc.YE)(i.floating).body;e.style.pointerEvents="",e.removeAttribute(vu),S.current=!1}}));w.useEffect((()=>{if(s&&(0,Vc.vq)(i.domReference)){var e;const t=i.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=i.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",a,{once:!0}),t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=i.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",a),t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function a(e){if(clearTimeout(b.current),k.current=!1,l&&!(0,zc.Go)(y.current)||d>0&&!yu(g.current,"open"))return;const t=yu(g.current,"open",y.current);t?b.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=(0,zc.YE)(i.floating);if(clearTimeout(x.current),P.current=!1,m.current&&o.current.floatingContext){n||clearTimeout(b.current),O.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),j(),_(e,!0,"safe-polygon")}});const t=O.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==y.current||!(0,zc.gR)(i.floating,e.relatedTarget))&&_(e)}function u(e){t()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),j(),_(e)}})(e))}}),[i,s,e,l,d,f,_,j,C,r,n,v,p,g,m,o]),tu((()=>{var e;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&D()){S.current=!0;const e=i.floating;if((0,Vc.vq)(i.domReference)&&e){var t;const n=(0,zc.YE)(i.floating).body;n.setAttribute(vu,"");const r=i.domReference,o=null==p||null==(t=p.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,h,i,p,m,D]),tu((()=>{n||(y.current=void 0,P.current=!1,j(),C())}),[n,j,C]),w.useEffect((()=>()=>{j(),clearTimeout(b.current),clearTimeout(x.current),C()}),[s,i.domReference,j,C]);const T=w.useMemo((()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||v.current||r(!0,t,"hover")}l&&!(0,zc.Go)(y.current)||n||0===d||P.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===y.current?o():(P.current=!0,x.current=window.setTimeout(o,d)))}}}),[l,r,n,v,d]),M=w.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){_(e.nativeEvent,!1)}})),[_]);return w.useMemo((()=>s?{reference:T,floating:M}:{}),[s,T,M])}(m,{delay:{open:500,close:0}}),v=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=w.useCallback((t=>Lu(t,e,"reference")),t),a=w.useCallback((t=>Lu(t,e,"floating")),n),i=w.useCallback((t=>Lu(t,e,"item")),r);return w.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i})),[o,a,i])}([g]),y=v.getReferenceProps,b=v.getFloatingProps;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",Ku(Ku({ref:p.setReference},y()),{},{children:t})),u&&n&&(0,S.jsx)(Tu,{children:(0,S.jsxs)(qu,Ku(Ku({ref:p.setFloating,style:h,rimless:i},b()),{},{className:tc,children:[(0,S.jsx)(uu,{ref:d,context:m}),(0,S.jsx)(Gu,{isPlainHtml:o,children:n})]}))})]})},Xu=Qu;const Ju=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=Rn()(a,t.key,null),u=(0,S.jsx)("span",{style:n.css,children:r}),l=s?(0,S.jsx)(_s,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,S.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,S.jsx)(Xu,{content:c?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(c)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,S.jsx)(Fs,{children:l})};var Zu=n(85015),el=n.n(Zu),tl=n(42194),nl=n.n(tl);function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var al=["linkComp"],il=function(e,t){var n=xt.A.difference(e,t),r=nl()(tn()(n,al),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},sl=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&el()(n)?(0,S.jsx)(_s,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,S.jsx)(t,{entityKey:n,children:r})}):r}),il);sl.propTypes={children:b().node,entityKey:b().any,linkComp:b().func};const cl=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=Rn()(a,t.key,null);return(0,S.jsx)(ti.SingleValue,ol(ol({},e),{},{children:(0,S.jsx)(Rs,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,S.jsx)(Xu,{content:c?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(c)}}):null,children:(0,S.jsx)(sl,{linkComp:s,entityKey:t.key,children:o})})})}))};function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ll=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const dl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,S.jsx)(ti.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=w.Children.map(r,(function(e){return ll(e)?e:null})),u=w.Children.map(r,(function(e){return ll(e)?null:e})),l=s&&n;return(0,S.jsxs)(S.Fragment,{children:[!l&&(0,S.jsx)(S.Fragment,{children:c}),(0,S.jsx)(Ls,{children:u})]})};function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hl=(0,c.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),E=(0,w.useRef)(null),P=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),j=C()(_,2),T=j[0],M=j[1],A=(0,w.useState)(D()),I=C()(A,2),R=I[0],N=I[1],L=(0,w.useState)(!1),F=C()(L,2),H=F[0],B=F[1],W=function(e){t&&t(e)},Y=(0,w.useCallback)(m||function(){},[]),U=(0,w.useCallback)(zn()(Y,800,{trailing:!0}),[]),z=Boolean(p),V=Boolean(f),q=Boolean(O),G=Boolean(m)||!as.isPrimaryTouchDevice();return(0,S.jsx)(js,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){M(P()),N(D())}),0)},children:(0,S.jsx)(Cs,{ref:E,children:(0,S.jsx)(rs,pl(pl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:T,wrapperHeight:R,components:{ClearIndicator:cs,LoadingIndicator:ec,DropdownIndicator:Ys,IndicatorsContainer:Js,IndicatorSeparator:null,Menu:Bc,MenuList:Uc,MultiValueLabel:Ju,SingleValue:cl,ValueContainer:dl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,S.jsx)(l,pl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:G},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),W(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,y),""===e&&"input-change"===n&&W(y)},options:le()(h||[]),onKeyDown:function(e){"Enter"===e.key&&H&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){W(y),B(!0)},onMenuClose:function(){B(!1)},styles:Hs(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:z,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:q,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const ml=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,S.jsx)(hl,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Yn()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var gl,vl=c.Ay.div.withConfig({displayName:"StyledBoolEdit"})(gl||(gl=i()(["\n margin: 5px 0;\n"])));const yl=function(e){return(0,S.jsx)(vl,{children:(0,S.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 bl,wl,Ol=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className;return(0,S.jsx)(Vu,{id:t,dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(n)},breakWords:r,className:o})},xl=c.Ay.div.withConfig({displayName:"StyledOption"})(bl||(bl=i()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),l.hs.space(-1),l.hs.space(-1.5)),kl=c.Ay.span.withConfig({displayName:"StyledLabel"})(wl||(wl=i()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,l.Ed)(),l.hs.space(-1.5));function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pl={single:"radio",multiple:"checkbox"},Dl={single:{checked:!1},multiple:{}},_l=function(e,t){return t?(0,S.jsx)(Ol,{value:e}):e},jl=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,S.jsxs)(xl,{children:[!s&&(0,S.jsx)("input",{name:t,type:Pl[c],checked:a||!1,onChange:l,id:n,disabled:i}),(0,S.jsx)(kl,{children:o||_l(r,u)})]})};const Cl=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return El(El({},t),t.id===e.target.id?{checked:e.target.checked}:Dl[r.selectionType])}));t({options:o})}};return(0,S.jsx)(S.Fragment,{children:n.options.map((function(e){return(0,S.jsx)(jl,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};n(98639);function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=(0,w.lazy)((function(){return Promise.all([n.e(264),n.e(722)]).then(n.bind(n,65066))}));const Il=function(e){return(0,S.jsx)(w.Suspense,{fallback:(t=e.value,(0,S.jsx)("div",{children:(0,S.jsx)("p",{children:t})})),children:(0,S.jsx)(Al,Ml({},e))});var t};var Rl,Nl=c.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Rl||(Rl=i()(["\n margin-top: ",";\n"])),l.hs.space(-1.5));const Ll=(0,c.SL)(T.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,S.jsx)(Nl,{children:(0,S.jsx)(Il,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Fl,Hl,Bl,Wl=c.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Fl||(Fl=i()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Yl=c.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Hl||(Hl=i()(["\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"])),Sn,Pn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Ul=c.Ay.input.withConfig({displayName:"StyledTimeInput"})(Bl||(Bl=i()(["\n &&&& {\n ","\n }\n"])),Pn),zl=n(73082),Vl="react-datepicker-time__input",ql="react-datepicker__day",Gl="react-datepicker__input",$l=function(e){return e.classList.contains(ql)},Kl=function(e){return e.classList.contains(Vl)},Ql=function(e){return e.classList.contains(Gl)},Xl=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ql,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Jl=function(e,t){var n=null==e?void 0:e.form;if(n){var r=le()(n).indexOf(e);if(r>=0)Zl(n[r+(t?2:3)])}else zl.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},Zl=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},ed=function(e){if(!e)return null;var t=(0,xc.Hle)(e.toString());return isNaN(t)?null:t},td=function(e){return e?e.toISOString():null};const nd=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?ed:c,l=n.dateToValue,d=void 0===l?td:l,f=(0,w.useRef)(null),p=(0,w.useState)(!1),h=C()(p,2),m=h[0],g=h[1],v=u(e),y=a?u(a):void 0,b=i?u(i):void 0;(0,w.useEffect)((function(){f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m)}),[m]);var O=function(){return g(!1)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},k=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},S=function(){t(null),k(null)},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=x(!1);if(n){var r=v||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,xc.avh)((0,xc.glI)((0,xc.gtt)(e,s),a),r)}(n,{hour:(0,xc.qZx)(r),minute:(0,xc.Osm)(r),second:(0,xc.SyE)(r)}):n;P(o,e)}},P=function(n,r){if(n){var a,i=!e&&Boolean(n),c=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!c&&o.some((function(e){return(0,xc.uv4)(c,e)})),l=(0,xc.ol1)(n),p=(0,xc.qZx)(n)!==(0,xc.qZx)(l)||(0,xc.Osm)(n)!==(0,xc.Osm)(l);(i&&!p||u)&&s&&(n=kc.A.setCurrentTime(n)),t(d(n))}else S();var h;s||"click"!==(null==r?void 0:r.type)||(O(),Zl(null===(h=f.current)||void 0===h?void 0:h.input))},D=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Ql(t.target))O();else if(Kl(t.target)){var a;k(v||x(!0)),Xl(null==f||null===(a=f.current)||void 0===a||null===(a=a.calendar)||void 0===a||null===(a=a.containerRef)||void 0===a?void 0:a.current)}else if($l(t.target)){var i;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=le()(t).indexOf(e);n>=1&&Zl(t[n-1])}else zl.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(i=f.current)||void 0===i?void 0:i.input)}}else if(Ql(t.target)&&m)E(t),O(),Jl(null===(n=f.current)||void 0===n?void 0:n.input,o);else if(Kl(t.target)){var c;O(),Jl(null===(c=f.current)||void 0===c?void 0:c.input,o)}else if($l(t.target)){var u,l;if(s)E(t,!0),k(null),r=null==f||null===(u=f.current)||void 0===u||null===(u=u.calendar)||void 0===u||null===(u=u.containerRef)||void 0===u?void 0:u.current,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Vl));e&&e.focus({preventScroll:!0})}}),0);else E(t),O(),Jl(null===(l=f.current)||void 0===l?void 0:l.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;Zl(null===(e=f.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(m){if(m&&null===x(!1)){var d;k(v||x(!0)),Xl(null==f||null===(d=f.current)||void 0===d||null===(d=d.calendar)||void 0===d||null===(d=d.containerRef)||void 0===d?void 0:d.current)}}else g(!0),t.key="Handled".concat(t.key)},_=function(){var e;g((function(e){return!e})),k(null),Zl(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:_,onKeyDown:D,onChange:P,onCalendarOpen:function(){k(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:v,showTimeInput:s,minDate:y,maxDate:b,ref:f,className:Gl},timeInputProps:{onKeyDown:D,className:Vl},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),S()}},calendarButtonProps:{onClick:_,className:m?"react-datepicker-ignore-onclickoutside":""},closeModal:O}};var rd="HH:mm:ss",od="HH:mm",ad=function(e){return(0,xc.uv4)(e,od)},id=function(e){var t=function(e){return e?(0,xc.uv4)(e,rd)?(0,xc.qgA)(e,rd,new Date):(0,xc.uv4)(e,od)?(0,xc.qgA)(e,od,new Date):(0,xc.uv4)(e,"HH:")?(0,xc.qgA)(e,"HH:",new Date):(0,xc.uv4)(e,"H")?(0,xc.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,xc.GPZ)(e,od)}(t):""};const sd=function(e,t){var n=id(e),r=(0,w.useState)(n),o=C()(r,2),a=o[0],i=o[1],s=(0,w.useRef)(a),c=T.A.usePrevious(n);(0,w.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,i(n);var p=id(n);p&&!ad(p)||t(p)}},onBlur:function(){if(a!==n){var e=id(a);e&&ad(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var cd=["value","onChange","onKeyDown"];function 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){m()(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}Sc();var dd=function(e){var t=e.onChange,n=e.label;return(0,S.jsx)(K,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},fd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=v()(e,cd),a=sd(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,S.jsx)(Ul,ld(ld(ld({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},pd={strategy:"fixed"};const hd=(0,c.SL)((0,ce.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,E=function(e){v.current=e,c(e)},P=nd(r,E,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),D=P.reactDatePickerProps,_=P.timeInputProps,j=P.clearButtonProps,C=P.calendarButtonProps,T=P.closeModal;return(0,w.useEffect)((function(){var e=function(){return T()},t=O.current;return t&&t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[T]),(0,S.jsx)(Wl,{immutable:t,id:n,tabIndex:"-1",children:(0,S.jsxs)(Yl,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,S.jsx)(yc(),ld(ld({id:n?"".concat(n,"-datepicker"):null,popperClassName:tc},D),{},{disabled:t,dateFormat:[].concat(le()(m),le()(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,S.jsx)(fd,ld({},_)),showTimeSelect:d,timeIntervals:15,popperProps:pd,portalId:"react-datepicker",todayButton:(0,S.jsx)(dd,{onChange:E,label:b("client.component.datePicker.todayLabel")})})),k&&(0,S.jsx)(re,ld({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},j)),!t&&(0,S.jsx)(re,ld({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const gd=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,ce.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(kc.A.getLocalizedDateFormat(c.locale)),d=kc.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,kc.A.useTwoDigitYear(l),kc.A.useTwoDigitYear(d)];return(0,S.jsx)(hd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:a,placeholder:s,events:i},u))};function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const yd=(0,ce.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,ce.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(kc.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(kc.A.getLocalizedDateFormat(i.locale)),l=kc.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),d=[c,l,kc.A.useTwoDigitYear(c),kc.A.useTwoDigitYear(l)],f=kc.A.getLocalizedDateFormatWithoutPunctuation(i.locale),p=[u,f,kc.A.useTwoDigitYear(u),kc.A.useTwoDigitYear(f)];return(0,S.jsx)(hd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:a},s))}));var bd,wd,Od,xd,kd,Sd,Ed,Pd,Dd=c.Ay.section.withConfig({displayName:"StyledSection"})(bd||(bd=i()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),_d=c.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(wd||(wd=i()(["\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"])),q,l.hs.space(-2)),jd=c.Ay.div.withConfig({displayName:"StyledDropzone"})(Od||(Od=i()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),q,l.t7.color("backgroundItemHover")),Cd=c.Ay.div.withConfig({displayName:"StyledUploadInput"})(xd||(xd=i()(["\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,l.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),l.t7.color("paper"),(function(e){return e.immutable?l.Db.shade2(e):l.Db.base(e)}),l.hs.space(-2),q,l.hs.space(-3.1),l.hs.space(-1.5)),Td=c.Ay.div.withConfig({displayName:"StyledUploadProgress"})(kd||(kd=i()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),l.hs.space(-2)),Md=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledUploadProgressText"})(Sd||(Sd=i()(["\n && {\n ","\n }\n"])),(0,l.Ed)({fontSize:l.hs.font(-1)})),Ad=c.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Ed||(Ed=i()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),l.hs.space(-2)),Id=c.Ay.div.withConfig({displayName:"StyledView"})(Pd||(Pd=i()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),l.hs.space(-2)),Rd=n(2404),Nd=n.n(Rd);function Ld(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function Fd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Hd(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Bd(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Wd=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 Yd(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Wd.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 Ud=[".DS_Store","Thumbs.db"];function zd(e){return"object"==typeof e&&null!==e}function Vd(e){return Kd(e.target.files).map((function(e){return Yd(e)}))}function qd(e){return Ld(this,void 0,void 0,(function(){return Fd(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 Yd(e)}))]}}))}))}function Gd(e,t){return Ld(this,void 0,void 0,(function(){var n;return Fd(this,(function(r){switch(r.label){case 0:return e.items?(n=Kd(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qd))]):[3,2];case 1:return[2,$d(Xd(r.sent()))];case 2:return[2,$d(Kd(e.files).map((function(e){return Yd(e)})))]}}))}))}function $d(e){return e.filter((function(e){return-1===Ud.indexOf(e.name)}))}function Kd(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qd(e){if("function"!=typeof e.webkitGetAsEntry)return Jd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ef(t):Jd(e)}function Xd(e){return e.reduce((function(e,t){return Bd(Bd([],Hd(e),!1),Hd(Array.isArray(t)?Xd(t):[t]),!1)}),[])}function Jd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Yd(t);return Promise.resolve(n)}function Zd(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return[2,e.isDirectory?ef(e):tf(e)]}))}))}function ef(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Ld(a,void 0,void 0,(function(){var a,i,s;return Fd(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(Zd)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function tf(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Yd(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var nf=n(9455);function rf(e){return function(e){if(Array.isArray(e))return lf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uf(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 of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||uf(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 uf(e,t){if(e){if("string"==typeof e)return lf(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)?lf(e,t):void 0}}function lf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var df="file-invalid-type",ff="file-too-large",pf="file-too-small",hf="too-many-files",mf=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:df,message:"File type must be ".concat(t)}},gf=function(e){return{code:ff,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},vf=function(e){return{code:pf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},yf={code:hf,message:"Too many files"};function bf(e,t){var n="application/x-moz-file"===e.type||(0,nf.A)(e,t);return[n,n?null:mf(t)]}function wf(e,t,n){if(Of(e.size))if(Of(t)&&Of(n)){if(e.size>n)return[!1,gf(n)];if(e.size<t)return[!1,vf(t)]}else{if(Of(t)&&e.size<t)return[!1,vf(t)];if(Of(n)&&e.size>n)return[!1,gf(n)]}return[!0,null]}function Of(e){return null!=e}function xf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function kf(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 Sf(e){e.preventDefault()}function Ef(){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!xf(e)&&t&&t.apply(void 0,[e].concat(r)),xf(e)}))}}function Pf(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Df(e){return/^.*\.[\w]+$/.test(e)}var _f=["children"],jf=["open"],Cf=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Tf=["refKey","onChange","onClick"];function Mf(e){return function(e){if(Array.isArray(e))return Rf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||If(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 Af(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||If(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 If(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){Ff(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ff(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Bf=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lf(Lf({},Wf),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,w.useMemo)((function(){return function(e){if(Of(e))return Object.entries(e).reduce((function(e,t){var n=cf(t,2),r=n[0],o=n[1];return[].concat(rf(e),[r],rf(o))}),[]).filter((function(e){return Pf(e)||Df(e)})).join(",")}(n)}),[n]),_=(0,w.useMemo)((function(){return function(e){if(Of(e)){var t=Object.entries(e).filter((function(e){var t=cf(e,2),n=t[0],r=t[1],o=!0;return Pf(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(Df)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=cf(t,2),r=n[0],o=n[1];return af(af({},e),{},sf({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),j=(0,w.useMemo)((function(){return"function"==typeof g?g:Vf}),[g]),C=(0,w.useMemo)((function(){return"function"==typeof m?m:Vf}),[m]),T=(0,w.useRef)(null),M=(0,w.useRef)(null),A=Af((0,w.useReducer)(zf,Uf),2),I=A[0],R=A[1],N=I.isFocused,L=I.isFileDialogActive,F=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(R({type:"closeDialog"}),C()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[M,L,C,F]);var B=(0,w.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",Sf,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",Sf),document.removeEventListener("drop",W))}}),[T,b]),(0,w.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var Y=(0,w.useCallback)((function(e){E?E(e):console.error(e)}),[E]),U=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Mf(B.current),[e.target]),kf(e)&&Promise.resolve(o(e)).then((function(t){if(!xf(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=cf(bf(e,n),1)[0],a=cf(wf(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:D,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:P});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,i,a,s,c,P]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=kf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kf(e)&&l&&l(e))}),[T,l,S]),q=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Af(bf(e,D),2),o=t[0],s=t[1],c=Af(wf(e,i,a),2),u=c[0],l=c[1],d=P?P(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[yf]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[R,s,D,i,a,c,f,p,h,P]),G=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],kf(e)&&Promise.resolve(o(e)).then((function(t){xf(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),R({type:"reset"})}),[o,q,Y,S]),$=(0,w.useCallback)((function(){if(F.current){R({type:"openDialog"}),j();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),R({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?Y(e):(F.current=!1,M.current?(M.current.value=null,M.current.click()):Y(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),R({type:"closeDialog"}))}))}else M.current&&(R({type:"openDialog"}),j(),M.current.value=null,M.current.click())}),[R,j,C,v,q,Y,_,s]),K=(0,w.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),$()))}),[T,$]),Q=(0,w.useCallback)((function(){R({type:"focus"})}),[]),X=(0,w.useCallback)((function(){R({type:"blur"})}),[]),J=(0,w.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)}()?$():setTimeout($,0))}),[O,$]),Z=function(e){return r?null:e},ee=function(e){return x?null:Z(e)},te=function(e){return k?null:Z(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hf(e,Cf);return Lf(Lf(Ff({onKeyDown:ee(Ef(a,K)),onFocus:ee(Ef(i,Q)),onBlur:ee(Ef(s,X)),onClick:Z(Ef(c,J)),onDragEnter:te(Ef(u,U)),onDragOver:te(Ef(l,z)),onDragLeave:te(Ef(d,V)),onDrop:te(Ef(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),p)}}),[T,K,Q,X,J,U,z,V,G,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Hf(e,Tf);return Lf(Lf({},Ff({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:Z(Ef(r,G)),onClick:Z(Ef(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,s,G,r]);return Lf(Lf({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:Z($)})}(Hf(e,_f)),o=r.open,a=Hf(r,jf);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),x().createElement(w.Fragment,null,n(Lf(Lf({},a),{},{open:o})))}));Bf.displayName="Dropzone";var Wf={disabled:!1,getFilesFromEvent:function(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return zd(e)&&zd(e.dataTransfer)?[2,Gd(e.dataTransfer,e.type)]:function(e){return zd(e)&&zd(e.target)}(e)?[2,Vd(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qd(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};Bf.defaultProps=Wf,Bf.propTypes={children:b().func,accept:b().objectOf(b().arrayOf(b().string)),multiple:b().bool,preventDropOnDocument:b().bool,noClick:b().bool,noKeyboard:b().bool,noDrag:b().bool,noDragEventsBubbling:b().bool,minSize:b().number,maxSize:b().number,maxFiles:b().number,disabled:b().bool,getFilesFromEvent:b().func,onFileDialogCancel:b().func,onFileDialogOpen:b().func,useFsAccessApi:b().bool,autoFocus:b().bool,onDragEnter:b().func,onDragLeave:b().func,onDragOver:b().func,onDrop:b().func,onDropAccepted:b().func,onDropRejected:b().func,onError:b().func,validator:b().func};const Yf=Bf;var Uf={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function zf(e,t){switch(t.type){case"focus":return Lf(Lf({},e),{},{isFocused:!0});case"blur":return Lf(Lf({},e),{},{isFocused:!1});case"openDialog":return Lf(Lf({},Uf),{},{isFileDialogActive:!0});case"closeDialog":return Lf(Lf({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Lf(Lf({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Lf(Lf({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Lf({},Uf);default:return e}}function Vf(){}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $f=(0,ce.injectIntl)((function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose,a=e.intl,i=function(e){return a.formatMessage({id:e})};return(0,S.jsxs)(Cd,{immutable:n,children:[(0,S.jsx)(Yf,{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,S.jsx)(Dd,{children:(0,S.jsxs)(jd,Gf(Gf({},t()),{},{children:[(0,S.jsx)("input",Gf({},n())),(0,S.jsx)(K,{icon:"arrow-to-top",label:i("client.component.upload.uploadFile"),iconOnly:!0})]}))})}}),o&&(0,S.jsx)(K,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:i("client.component.upload.browseDocs"),iconOnly:!0})]})}));var Kf,Qf=c.Ay.figure.withConfig({displayName:"StyledPreview"})(Kf||(Kf=i()(["\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"])),l.hs.space(-2.2),l.t7.color("border"),l.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Xf=Qf;var Jf;const Zf=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,S.jsx)("img",{alt:n,title:n,src:t}):(0,S.jsx)("div",{title:n,children:Jf||(Jf=(0,S.jsx)(k.A,{icon:"file-alt"}))});return(0,S.jsxs)(Xf,{maxDimensionX:a,maxDimensionY:i,children:[(0,S.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,S.jsx)(kt.Ay.Figcaption,{children:o})]})};var ep=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 tp=function(e){var t=e.file,n=e.text;return(0,S.jsxs)(Td,{children:[(0,S.jsx)(Zf,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,S.jsxs)(Ad,{children:[(0,S.jsx)(_,{position:l.xX.position.PREPEND}),(0,S.jsxs)(Md,{children:[n||"uploading"," (",ep(t.size),")"]})]})]})};var np=n(31558);function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ap=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,S.jsxs)(Id,{className:"StyledView",children:[(0,S.jsx)(Zf,op(op({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,S.jsxs)(_d,{children:[!o&&(0,S.jsx)(K,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,S.jsx)(K,{children:(0,S.jsx)(kn.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:np.A.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cp=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,i=(0,w.useRef)(t),s=(0,w.useState)({isUploading:!1,previewFile:null}),c=C()(s,2),u=c[0],l=c[1];return(0,w.useEffect)((function(){Nd()(i.current,t)||l({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,S.jsx)(ap,sp(sp({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,S.jsx)(tp,sp({file:u.previewFile,text:r.uploading},e)):(0,S.jsx)($f,sp(sp({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:a}))};const up=function(e){var t=e.onChange,n=e.options,r=void 0===n?{}:n,o=e.immutable,a=e.value;return(0,S.jsx)(cp,{onUpload:function(e){null===e?t&&t(null):r.upload&&r.upload(e)},onChoose:r.choose,immutable:o,textResources:{upload:r.uploadText,uploading:r.uploadingText,delete:r.deleteText,download:r.downloadText},value:a||null})};var lp,dp,fp=c.Ay.input.withConfig({displayName:"StyledDurationEdit"})(lp||(lp=i()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Pn,(function(e){return e.width})),pp=c.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(dp||(dp=i()(["\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"])),l.hs.space(1),(function(e){return e.immutable?l.t7.color("textDisabled"):l.t7.color("text")}),(function(e){return e.immutable&&"text"}));const hp=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=void 0===a?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:a,s=kc.A.millisecondsToDuration(n),c=(0,w.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e,t){var n,r,a=null!==t?t:s.minutes,i=null!==e?e:s.hours;""!==a||""!==i?(a>=60&&(i=0),o((r=a,(n=i)||r?((n<0||r<0)&&(n=Mn(n),r=Mn(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){d(!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 l||"number"==typeof n},v=function(e){return 9*(e+"").length},y=r&&Boolean(s.seconds);return(0,S.jsxs)(En,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{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,"");f(t,null)},onKeyPress:h,pattern:m(),step:1,width:v(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.hoursLabel})]}),(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(null,t)},onKeyPress:h,pattern:m(),step:1,width:v(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.minutesLabel})]}),y&&(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{disabled:r,immutable:r,onChange:function(){},width:v(s.seconds),type:"number",value:s.seconds+""}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.secondsLabel})]})]})};var mp;const gp=c.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(mp||(mp=i()(["\n &&&& {\n ","\n }\n"])),Pn);const vp=T.A.Debouncer((function(e){return(0,S.jsxs)(En,{immutable:e.immutable,children:[(0,S.jsx)(gp,{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,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var yp=n(56994),bp=n.n(yp),wp=n(67197),Op=n.n(wp),xp=n(44383),kp=n.n(xp);function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pp(){Pp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),Op()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return bp()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Tn()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Pp.apply(this,arguments)}var Dp,_p=["key","display","postcode","city","country","latitude","longitude"],jp=function(e){return e*Math.PI/180},Cp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:jp(a),longitude:jp(i)}};function Tp(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 Mp(){}function Ap(e){return!!(e||"").match(/\d/)}function Ip(e){return null==e}function Rp(e){return Ip(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Np(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Lp(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 Fp(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Hp(e,t){return Array(t+1).join(e)}function Bp(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+Hp("0",Math.abs(i))+o:i>=s?o+=Hp("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Wp(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Lp(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Fp(u[1]||"",t,n)}function Yp(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"}(Dp||(Dp={}));var Up,zp,Vp,qp=(Up=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},Vp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return zp&&e.length===zp.length&&e.every((function(e,t){return e===zp[t]}))?Vp:(zp=e,Vp=Up.apply(void 0,e))}),Gp=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function $p(e){return Math.max(e.selectionStart,e.selectionEnd)}function Kp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Qp(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Xp(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 Jp(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(Ap(e[n])||Ap(e[n-1]));return t}function Zp(e,t,n,r,o,a){void 0===a&&(a=Mp);var i=function(e){var t=(0,w.useRef)(e);t.current=e;var n=(0,w.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Rp(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Bp(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,w.useState)((function(){return i(Ip(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Ip(e)&&(l=c.numAsString,d=!0);var f=i(l,d);return(0,w.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function eh(e){return e.replace(/[^0-9]/g,"")}function th(e){return e}function nh(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=th);var s=e.removeFormatting;void 0===s&&(s=eh);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Mp);var p=e.onKeyDown;void 0===p&&(p=Mp);var h=e.onMouseUp;void 0===h&&(h=Mp);var m=e.onFocus;void 0===m&&(m=Mp);var g=e.onBlur;void 0===g&&(g=Mp);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Jp);var b=e.isValidInputCharacter;void 0===b&&(b=Ap);var O=e.isCharacterSame,k=Tp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Zp(v,c,Boolean(u),i,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],j=(0,w.useRef)(),C=(0,w.useRef)({formattedValue:P,numAsString:D}),T=function(e,t){C.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},M=(0,w.useState)(!1),A=M[0],I=M[1],R=(0,w.useRef)(null),N=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return I(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var L=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},H=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Yp(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Yp(e,t)}),0))},B=function(e,t,n){return Xp(e,t,y(e),n)},W=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=Qp);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!a(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,b,O);return o=Xp(t,o,r)};(0,w.useEffect)((function(){var e=C.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||T(F(P,D),{event:void 0,source:Dp.props})}),[P,D]);var Y=R.current?$p(R.current):void 0;("undefined"!=typeof window?w.useLayoutEffect:w.useEffect)((function(){var e=R.current;if(P!==C.current.formattedValue&&e){var t=W(C.current.formattedValue,P,Y);e.value=P,H(e,t,P)}}),[P]);var U=function(e,t,n){var r=t.target,o=j.current?Gp(j.current,r.selectionEnd):qp(P,e),a=Object.assign(Object.assign({},o),{lastValue:P}),i=s(e,a),c=L(i);if(i=s(c,void 0),d&&!d(F(c,i))){var u=t.target,l=$p(u),f=W(e,P,l);return u.value=P,H(u,f,P),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=$p(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&T(F(t,i),{event:a,source:o})}({formattedValue:c,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},z=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;j.current={selectionStart:n,selectionEnd:r+t}},V=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:V},k,{type:t,value:P,onChange:function(e){var t=e.target.value;U(t,e,Dp.event)&&f(e),j.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===a&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==a&&!c)return p(e),void z(n,s);var u=t;c?(u=B(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(u=B(i,t,"left")):u=B(i,t,"right");u!==t&&H(n,u,i),p(e),z(n,s)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=B(r,e);o!==e&&H(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e),z(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;R.current=t,N.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=B(a,r);i===r||0===r&&o===a.length||H(t,i,a),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){R.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?x().createElement(x().Fragment,null,o(P,k)||null):x().createElement("span",Object.assign({},k,{ref:a}),P);if(r){var G=r;return x().createElement(G,Object.assign({},q,{ref:a}))}return x().createElement("input",Object.assign({},q,{ref:a}))}function rh(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=oh(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Lp(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Fp(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function oh(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 ah(e,t,n){var r;void 0===t&&(t=Kp(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=oh(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Ap(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var E=0;e.startsWith(a)?E+=a.length:l<a.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-i.length;e.endsWith(i)?P=D:(d>D||d>e.length-i.length)&&(P=d),e=e.substring(0,P),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Np(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Np(h),"g"),(function(e,t){return t===_?".":""}));var j=Lp(e,o),C=j.beforeDecimal,T=j.afterDecimal,M=j.addNegation;return u.end-u.start<c.end-c.start&&""===C&&m&&!parseFloat(T)&&(e=M?"-":""),e}function ih(e){e=function(e){var t=oh(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Mp);var a=e.onBlur;void 0===a&&(a=Mp);var i=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Tp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=oh(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return rh(t,e)},b=function(t,n){return ah(t,n,e)},w=Ip(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Ip(d)?Ip(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Rp(e)?e:("number"==typeof e&&(e=Bp(e)),O&&"number"==typeof s?Wp(e,s,Boolean(c)):e)},k=Zp(x(d),x(l),Boolean(O),y,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Ap(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],l=r[a],f=qp(n,t).to,p=function(e){return b(e).indexOf(".")+u.length};return!(0===d&&c&&s&&t[f.start]===g&&p(t)<o&&p(r)>a)&&(!!(o>=f.start&&o<f.end&&v&&v.includes(i)&&l===g)||i===l)},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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Yp(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(Yp(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[a]===g&&Yp(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&Yp(t,a-1),"Delete"===r&&d[a]===f&&Yp(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Wp(n,s,c)),n!==E){var o=rh(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Dp.event})}a(t)}})}function sh(e){var t=ih(e);return x().createElement(nh,Object.assign({},t))}var ch,uh=["immutable"];function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dh=(0,c.Ay)((function(e){e.immutable;var t=v()(e,uh);return(0,S.jsx)(sh,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ch||(ch=i()(["\n &&&& {\n ","\n }\n"])),Pn);const fh=dh;function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},gh=function(e){return null!=e&&!isNaN(parseFloat(e))},vh=function(e,t,n){return!gh(n)||!(gh(t)&&n>t)&&!(gh(e)&&n<e)},yh=function(e,t){return function(n){var r=n.floatValue;return mh(r)<mh(e)||vh(e,t,r)}};const bh=(0,ce.injectIntl)(T.A.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=hh(hh({isAllowed:yh(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,S.jsx)(En,{immutable:e.immutable,children:(0,S.jsx)(fh,hh(hh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&vh(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!vh(c,m,r)&&(t.target.value=null)}}))})}),800));const wh=T.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,S.jsx)(En,{immutable:o,children:(0,S.jsx)(fh,{isAllowed:yh(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),vh(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Oh,xh,kh,Sh=c.Ay.div.withConfig({displayName:"StyledWrapper"})(Oh||(Oh=i()(["\n display: flex;\n justify-content: stretch;\n"]))),Eh=c.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(xh||(xh=i()(["\n flex-grow: 1;\n"]))),Ph=c.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(kh||(kh=i()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),l.t7.color("border"),l.hs.space(-.8),l.hs.space(.5));function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?kp()(e,_p):void 0}(r),v=function(e){return e?e.map(Cp):[]}(s);return(0,S.jsxs)(Sh,{children:[(0,S.jsx)(Eh,{children:(0,S.jsx)(hl,{id:t,immutable:n,onChange:function(e){o(_h(_h({},function(e,t){return t?Ep(Ep({},e),kp()(t,_p)):tn()(e,_p)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=le()(e.matchAll(Pp(/([\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 Ep(Ep({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,S.jsx)(Ph,{children:(0,S.jsx)(wh,{value:m,onChange:function(e){o(_h(_h({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Ch,Th=(0,w.lazy)((function(){return n.e(262).then(n.bind(n,8810))}));const Mh=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=void 0===o?"":o,i=e.options;if(r)return(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})});var s=i||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,S.jsx)(w.Suspense,{fallback:Ch||(Ch=(0,S.jsx)("i",{})),children:(0,S.jsx)(Th,{id:t,onChange:function(e){n&&n(e)},value:a,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var Ah,Ih;function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lh=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,S.jsxs)(kt.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(Nh(Nh({},r),{},m()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions(m()({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},p={value:r.city||"",onChange:u("city"),disabled:a};return(0,S.jsx)(pn,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,S.jsxs)(Nn,{immutable:a,name:i,ref:u,children:[(0,S.jsx)(an(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(Ah||(Ah=(0,S.jsx)(kt.Ay.Span,{children:"/"}))),(0,S.jsx)(an(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,S.jsxs)(_n,{children:[n.isLoading&&(Ih||(Ih=(0,S.jsx)(_,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,S.jsx)(kn.Ay,{href:An(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hh=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(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 Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Wh=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(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 Yh,Uh=n(79092),zh=n.n(Uh),Vh=n(92207),qh=n.n(Vh);const Gh=c.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Yh||(Yh=i()(["\n &&&& {\n ","\n }\n"])),Pn);const $h=function(e){var t=e.onChange,r=e.value,o=e.immutable,a=e.id,i=e.onLibLoaded,s=Rn()(e,"options.defaultCountry")||"CH",c=(0,w.useState)(null),u=C()(c,2),l=u[0],d=u[1],f=x().createRef();(0,w.useEffect)((function(){var e=function(){var e=zh()(qh().mark((function e(){var t;return qh().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(222).then(n.bind(n,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var p=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=r&&null!=l&&l.AsYouType?new l.AsYouType(s).input(r):r||"";return(0,S.jsxs)(En,{immutable:o,children:[(0,S.jsx)(Gh,{disabled:o||!l,id:a,name,onChange:function(e){var n=e.target.value,o=l?l.parseNumber(n,s):n,a=rn()(o)?new l.AsYouType(s).input(n).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(s).input(t),o=new l.AsYouType(s).input(e),a=p(r,n),i=p(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(f.current))}}(n,r,i)},immutable:o||!l,ref:f,value:h}),h&&(0,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:"tel:".concat(r),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xh=function(e){return e.map((function(e){return kp()(e,["key","display"])}))};const Jh=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,S.jsx)(hl,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Qh(Qh({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Xh(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Xh(a.options)})};function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const em=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(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 tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 nm=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(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 rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const om=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(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 am=T.A.Debouncer((function(e){return(0,S.jsx)(En,{immutable:e.immutable,children:(0,S.jsx)(gp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||"","data-custom-arrow-navigation":"string"})})}));var im,sm,cm,um,lm,dm=n(23228),fm=c.Ay.div.withConfig({displayName:"StyledTermsEdit"})(im||(im=i()(["\n margin: "," 0;\n display: flex;\n"])),l.hs.space(-1.4)),pm=c.Ay.input.withConfig({displayName:"StyledCheckbox"})(sm||(sm=i()(["\n margin-right: ",";\n"])),l.hs.space(-1.5)),hm=(0,c.AH)(cm||(cm=i()(["\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"])),l.t7.color("secondary"),l.t7.color("secondaryLight"),l.t7.color("secondary")),mm=c.Ay.a.withConfig({displayName:"StyledTermsLink"})(um||(um=i()(["\n ","\n"])),hm),gm=(0,c.Ay)(Ol).withConfig({displayName:"StyledHtmlFormatter"})(lm||(lm=i()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),hm);const vm=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,w.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:dm.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,w.useCallback)((function(){return o(null)}),[o]),d=(0,w.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,w.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,w.useEffect)((function(){n()}),[]),(0,w.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,S.jsx)(pm,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,S.jsx)(mm,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,S.jsx)(gm,{value:r.label,breakWords:!0})});return!c&&(0,S.jsxs)(fm,{children:[p,h||(0,S.jsx)(gm,{value:null==r?void 0:r.label,breakWords:!0})]})};var ym,bm,wm,Om=(0,c.AH)(ym||(ym=i()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Pn),xm=c.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(bm||(bm=i()(["\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 /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Om),km=c.Ay.textarea.withConfig({displayName:"StyledTextarea"})(wm||(wm=i()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Om,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?l.hs.space(-1.2):"0"}));function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pm=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,w.useState)(t),c=C()(s,2),u=c[0],l=c[1],d=!as.isSafari(),f=as.isSafari(),p=(0,w.useCallback)(zn()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,S.jsx)(xm,Em(Em({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,S.jsx)(km,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:f})}))};const Dm=T.A.Debouncer((function(e){return(0,S.jsx)(En,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,S.jsx)(Pm,{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 _m;const jm=c.Ay.input.withConfig({displayName:"StyledTimeEdit"})(_m||(_m=i()(["\n &&&& {\n ","\n }\n"])),Pn);function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mm=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=sd(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,S.jsxs)(En,{immutable:r,children:[(0,S.jsx)(jm,Tm({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,S.jsx)(_n,{children:(0,S.jsx)(re,Tm(Tm({icon:"times"},c),{},{tabIndex:-1}))})]})};var Am;const Im=c.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Am||(Am=i()(["\n &&&& {\n ","\n }\n"])),Pn);const Rm=T.A.Debouncer((function(e){return(0,S.jsxs)(En,{immutable:e.immutable,children:[(0,S.jsx)(Im,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fm={boolean:yl,"boolean-select":ml,choice:Cl,code:Ll,date:gd,datetime:yd,document:up,duration:hp,email:vp,geosearch:jh,html:Mh,integer:wh,address:Bn,location:Lh,"multi-remote":Hh,"multi-select":Wh,number:bh,phone:$h,"pseudo-select":Jh,remote:em,"search-filter":nm,"single-select":om,string:am,terms:vm,text:Dm,url:Rm,time:Mm},Hm=["boolean","choice","terms"];const Bm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(Fm[t]){var u=Fm[t],l=Lm(Lm({},tn()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)},onClick:function(e){Hm.includes(t)&&("function"==typeof(null==a?void 0:a.onClick)&&a.onClick(e),"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur())}});return(0,S.jsx)("div",Lm(Lm({},l),{},{"data-cy":"form-field",children:(0,S.jsx)(u,Lm(Lm({value:n,onChange:null==a?void 0:a.onChange},rn()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};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 Ym(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){m()(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}const Um=function(e){return(0,S.jsx)(jn,{children:(0,S.jsx)(Bm,Ym({componentType:e.type},tn()(e,"type")))})};const zm=(0,c.SL)((function(e){return(0,S.jsx)(k.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Vm=function(e){var t=(0,ce.useIntl)();return(0,S.jsx)(kt.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,S.jsx)(ce.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var qm;const Gm=(0,ce.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),qm||(qm=(0,S.jsx)(kt.Ay.Span,{}));var o=(0,xc.GPZ)(r,"HH:mm");return(0,S.jsxs)(kt.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,S.jsx)(ce.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var $m;function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xm=function(e){var t=e.options||{},n=(0,S.jsxs)(S.Fragment,{children:[t.title&&(0,S.jsx)(kt.Ay.H5,{children:t.title}),(0,S.jsx)(Ol,Qm({},e))]});return"text"===t.mode?n:(0,S.jsx)(Xu,{content:n,isPlainHtml:!0,children:$m||($m=(0,S.jsx)(Uu,{children:(0,S.jsx)(k.A,{icon:"question-circle"})}))})};const Jm=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Rn()(r,t.resourceKey,null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Xu,{content:a?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(a)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,S.jsx)(kn.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,S.jsx)(kn.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:np.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Zm=function(e){return(0,S.jsx)(cp,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const eg=function(e){var t=e.value,n=parseInt(t),r=kc.A.formatDuration(n);return(0,S.jsx)(kt.Ay.Time,{dateTime:r,title:r,children:r})};const tg=function(e){return(0,S.jsx)(kn.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const ng=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rg(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=function(){return"; "};const ig=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,S.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,S.jsx)(i.DetailLink,og(og({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,S.jsx)(ag,{},"sep".concat(n)),t]})):null;return(0,S.jsx)(kt.Ay.Span,{breakWords:r,useTitle:o,children:c})};const sg=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,S.jsx)(ce.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const cg=function(e){var t;return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,S.jsx)(ce.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dg=(0,w.lazy)((function(){return Promise.all([n.e(222),n.e(672)]).then(n.bind(n,74302))}));const fg=function(e){return(0,S.jsx)(w.Suspense,{fallback:"",children:(0,S.jsx)(dg,lg({},e))})};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 hg(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){m()(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}const mg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,s=a.loadTooltip,c=a.navigationStrategy,u=a.linkProps,l=Rn()(i,t.key,null);t=xt.A.getOrFirst(t);var d=(0,S.jsx)(kt.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,S.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,S.jsx)(c.DetailLink,hg(hg({},u),{},{entityKey:t.key,children:(0,S.jsx)(Xu,{content:l?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(l)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const gg=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const vg=function(e){return e.breakWords?(0,S.jsx)(kt.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,S.jsx)("br",{},t)]:e})))}):(0,S.jsx)(kt.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var yg=function(e,t){return parseInt(e.split(":")[t])||0};const bg=(0,ce.injectIntl)((function(e){var t=e.value,n=(e.intl,yg(t,0)),r=yg(t,1),o=yg(t,2),a=yg(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,xc.GPZ)(i,"HH:mm:ss.SSS"),c=(0,xc.GPZ)(i,"HH:mm");return(0,S.jsx)(kt.Ay.Time,{dateTime:s,title:c,children:c})}));const wg=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,S.jsx)(kn.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Og,xg={boolean:zm,date:Vm,datetime:Gm,document:Zm,"document-compact":Jm,duration:eg,email:tg,html:Ol,integer:ng,"multi-remote":ig,"multi-select":ig,number:sg,percent:cg,phone:fg,remote:mg,"single-select":mg,string:gg,text:vg,time:bg,url:wg,description:Xm};const kg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i,c=e.id;if(xg[t]){var u=xg[t];return(0,S.jsx)(u,{value:n,options:r,breakWords:a,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),Og||(Og=(0,S.jsx)("div",{}))};var Sg;const Eg=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?Sg||(Sg=(0,S.jsx)("span",{})):(0,S.jsx)(kg,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})},Pg=Eg;var Dg;c.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Dg||(Dg=i()(["\n height: fit-content;\n margin-bottom: ",";\n"])),l.hs.space(.25));var _g;c.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(_g||(_g=i()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),l.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(l.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));var jg,Cg,Tg,Mg,Ag=n(5016),Ig=(0,c.i7)(jg||(jg=i()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Rg=(0,c.AH)(Cg||(Cg=i()(["\n animation: "," 400ms ease-in-out both;\n"])),Ig),Ng=c.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Tg||(Tg=i()(["\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"])),l.hs.space(-1),Rg,Ag.oY,l.hs.space(-1));const Lg=c.Ay.div.withConfig({displayName:"StyledLoadMask"})(Mg||(Mg=i()(["\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 Fg;const Hg=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,w.useState)(!1),s=C()(i,2),c=s[0],u=s[1],l=(0,w.useState)(!0),d=C()(l,2),f=d[0],p=d[1];(0,w.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,S.jsx)(Lg,{className:a,children:h?r:(0,S.jsxs)(Ng,{children:[Fg||(Fg=(0,S.jsx)(_,{size:"30px"},"loading-spinner")),o&&(0,S.jsx)(kt.Ay.Span,{children:o},"loadingText")]})})};var Bg,Wg=c.Ay.div.withConfig({displayName:"StyledPanel"})(Bg||(Bg=i()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),l.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),l.t7.color("borderLight"),l.t7.radii("form"));const Yg=Wg;var Ug=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const zg=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=v()(e,Ug),d=(0,w.useState)(i),f=C()(d,2),p=f[0],h=f[1],m="boolean"==typeof o,g=function(){c&&(m?"function"==typeof u&&u(!o):h(!p))};return(0,S.jsx)(Yg,{isFramed:r,"data-cy":l["data-cy"],children:x().Children.map(t,(function(e){return x().cloneElement(e,{isFramed:r,isOpen:m?o:p,isToggleable:c,toggleOpenState:g})}))})};var Vg,qg=c.Ay.div.withConfig({displayName:"StyledPanelBody"})(Vg||(Vg=i()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?l.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Gg=qg;var $g=["children","isFramed","isOpen"];const Kg=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=v()(e,$g);return(0,S.jsx)(Gg,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,S.jsx)("div",{children:t})})};const Qg=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,w.useState)(t),o=C()(r,2),a=o[0],i=o[1];return(0,S.jsx)(S.Fragment,{children:x().Children.map(n,(function(e,t){return x().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Xg;const Jg=c.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Xg||(Xg=i()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),l.hs.space(0),Yg,l.hs.space(-1));function Zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zg(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const tv=function(e){return(0,S.jsx)(Jg,{children:(0,S.jsx)(Qg,ev({},e))})};var nv,rv,ov,av,iv,sv,cv="1px",uv=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(nv||(nv=i()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),l.hs.font(1),l.t7.color("text"),!as.isTouchDevice&&(0,c.AH)(rv||(rv=i()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),l.t7.color("secondaryLight"))),lv=c.Ay.div.withConfig({displayName:"StyledPanelHeader"})(ov||(ov=i()(["\n && {\n background-color: ",";\n display: flex;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n border-top-left-radius: calc("," - ",");\n border-top-right-radius: calc("," - ",");\n border-bottom-right-radius: calc("," - ",");\n border-bottom-left-radius: calc("," - ",");\n ","\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n /* stylelint-disable-line rule-empty-line-before */\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),l.t7.color("backgroundPanelHeaderFooter"),l.t7.radii("form"),cv,l.t7.radii("form"),cv,l.t7.radii("form"),cv,l.t7.radii("form"),cv,(function(e){return e.isOpen&&(0,c.AH)(av||(av=i()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,c.AH)(iv||(iv=i()(["\n "," ","\n "])),l.hs.space(-1.7),l.hs.space(-.375)):0}),!as.isTouchDevice&&(0,c.AH)(sv||(sv=i()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),uv),(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(cv,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(cv,";\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(cv,";\n }\n ")}(e)}));const dv=lv;var fv=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const pv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=v()(e,fv);return(0,S.jsxs)(dv,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,S.jsx)("div",{children:x().Children.map(t,(function(e){return x().cloneElement(e)}))}),o&&i&&(0,S.jsx)(uv,{children:(0,S.jsx)(k.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},hv={Body:Kg,Group:tv,Header:pv,Wrapper:zg};var mv,gv=c.Ay.div.withConfig({displayName:"StyledPanel"})(mv||(mv=i()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),l.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),l.t7.color("borderLight"),l.t7.radii("form"));const vv=gv;const yv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,w.useState)(a),s=C()(i,2),c=s[0],u=s[1];return(0,S.jsx)(vv,{isFramed:r,children:x().Children.map(t,(function(e){return x().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var bv,wv,Ov=c.Ay.div.withConfig({displayName:"StyledPanelBody"})(bv||(bv=i()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,c.AH)(wv||(wv=i()(["\n "," "," "," ","\n "])),l.hs.space(-1),l.hs.space(.2),l.hs.space(.2),l.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const xv=Ov;const kv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,S.jsx)(xv,{isFramed:n,isOpen:r,children:(0,S.jsx)("div",{children:t})})};var Sv;const Ev=c.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Sv||(Sv=i()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),l.hs.space(0),vv,l.hs.space(-1));function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pv(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _v=function(e){return(0,S.jsx)(Ev,{children:(0,S.jsx)(Qg,Dv({},e))})};var jv,Cv,Tv,Mv="1px",Av=c.Ay.div.withConfig({displayName:"StyledPanelHeader"})(jv||(jv=i()(["\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"])),l.t7.color("paper"),l.t7.radii("form"),Mv,l.t7.radii("form"),Mv,(function(e){return e.isFramed?l.hs.space(.2):0}),l.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(Mv,";\n }\n ")}(e)})),Iv=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Cv||(Cv=i()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),l.hs.font(1),l.t7.color("text"),!as.isTouchDevice&&(0,c.AH)(Tv||(Tv=i()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),l.t7.color("secondaryLight")));const Rv=Av;const Nv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,S.jsxs)(Rv,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,S.jsx)("div",{children:x().Children.map(t,(function(e){return x().cloneElement(e)}))}),o&&i&&(0,S.jsx)(Iv,{children:(0,S.jsx)(k.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Lv={Body:kv,Group:_v,Header:Nv,Wrapper:yv};var Fv={Body:m()(m()({},dm.A.EmbedType.admin,hv.Body),dm.A.EmbedType.widget,Lv.Body),Group:m()(m()({},dm.A.EmbedType.admin,hv.Group),dm.A.EmbedType.widget,Lv.Group),Header:m()(m()({},dm.A.EmbedType.admin,hv.Header),dm.A.EmbedType.widget,Lv.Header),Wrapper:m()(m()({},dm.A.EmbedType.admin,hv.Wrapper),dm.A.EmbedType.widget,Lv.Wrapper)};dm.A.embedStrategyFactory({mapping:Fv.Body}),dm.A.embedStrategyFactory({mapping:Fv.Group}),dm.A.embedStrategyFactory({mapping:Fv.Header}),dm.A.embedStrategyFactory({mapping:Fv.Wrapper});var Hv;c.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Hv||(Hv=i()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),l.hs.space(0),l.t7.color("paper"));n(8271);b().node,b().bool,b().string,b().bool,b().objectOf(b().arrayOf(b().oneOfType([b().node,b().string]))),b().bool,b().bool,b().string,b().string,b().oneOf(["inside","outside-responsive","outside"]),b().bool,b().string,b().bool,b().string,b().bool;var Bv,Wv,Yv,Uv=m()(m()(m()(m()(m()({},l.xX.condition.BASE,l.t7.color("text")),l.xX.condition.DANGER,l.t7.color("signal.danger")),l.xX.condition.SUCCESS,l.t7.color("signal.success")),l.xX.condition.WARNING,l.t7.color("signal.warning")),l.xX.condition.INFO,l.t7.color("signal.info")),zv=(0,c.Ay)(kt.dV).withConfig({displayName:"StyledSignalList"})(Bv||(Bv=i()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Vv=c.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(Wv||(Wv=i()(["\n margin-left: -1px;\n margin-right: ",";\n"])),l.hs.space(-2)),qv=(0,c.Ay)(kt.vx).withConfig({displayName:"StyledSignalListItem"})(Yv||(Yv=i()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return Uv[t]}(e)}));const Gv=function(e){return(0,S.jsx)(zv,{as:"ul",children:x().Children.map(e.children,(function(e){return x().cloneElement(e)}))})};var $v,Kv=["condition","label","children"],Qv=m()(m()(m()(m()(m()({},l.xX.condition.BASE,!1),l.xX.condition.DANGER,"times"),l.xX.condition.SUCCESS,"check"),l.xX.condition.WARNING,"exclamation-triangle"),l.xX.condition.INFO,"info"),Xv=function(e){var t=Qv[e];return t?(0,S.jsx)(k.A,{icon:t,position:l.xX.position.SOLE,hasFixedWidth:!1}):$v||($v=(0,S.jsx)("i",{children:"•"}))};const Jv=function(e){var t=e.condition,n=void 0===t?l.xX.condition.BASE:t,r=e.label,o=e.children,a=v()(e,Kv);return(0,S.jsxs)(qv,{condition:n,"data-cy":a["data-cy"],children:[(0,S.jsx)(Vv,{children:Xv(n)}),r,x().Children.map(o,(function(e){return x().cloneElement(e)}))]})},Zv={List:Gv,Item:Jv};const ey=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,le()(e.error[n]))})),(0,S.jsx)(Zv.List,{children:t.map((function(e,t){return(0,S.jsx)(Zv.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var ty,ny,ry,oy,ay,iy,sy,cy,uy,ly,dy,fy,py,hy,my="1.1px",gy=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},vy=c.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(ty||(ty=i()(["\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,l.Ed)({lineHeight:l.t7.lineHeight("dense")}),l.t7.color("paper"),(function(e){return gy(e)}),(function(e){return"outside"===e.labelPosition&&(0,c.AH)(ny||(ny=i()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),l.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(ry||(ry=i()(["\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 "])),l.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":l.hs.space(-1.8)}))}),(function(e){return e.styles})),yy=c.Ay.div.withConfig({displayName:"StyledInputArea"})(oy||(oy=i()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,c.AH)(ay||(ay=i()(["\n width: auto;\n "])))})),by=c.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(iy||(iy=i()(["\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 display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),my,(function(e){return l.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),l.t7.radii("form"),l.hs.space(-2.5),l.hs.space(-1.5),(function(e){return!e.immutable&&(0,l.h7)(e)}),(function(e){return gy(e)}),(0,l.Ed)(),Vu,(function(e){return"inside"===e.labelPosition&&(0,c.AH)(sy||(sy=i()(["\n padding: "," "," "," ",";\n "])),l.hs.space(-1),l.hs.space(-1.7),l.hs.space(-2),l.hs.space(-1))}),(function(e){return e.styles})),wy=c.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(cy||(cy=i()(["\n &&& {\n ","\n }\n"])),(0,l.Ed)({fontSize:l.hs.font(-1)})),Oy=c.Ay.div.withConfig({displayName:"StyledStatedValueError"})(uy||(uy=i()([""]))),xy=c.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(ly||(ly=i()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),l.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(dy||(dy=i()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),l.hs.space(-1.5))})),ky=c.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(fy||(fy=i()(["\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"])),l.hs.space(-1.5),by,wy,Oy,l.hs.space(-2),wy,l.hs.space(-1),my,(function(e){return"outside"===e.labelPosition&&(0,c.AH)(py||(py=i()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(hy||(hy=i()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ey(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sy(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Py=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,d=e.id,f=e.label,p=e.mandatory,h=e.mandatoryTitle,m=e.immutable,g=e.touched,v=e.signal,y=e.labelPosition,b=e.styles,w=!m&&g&&c&&Object.keys(c).length>0,O=p&&h?", ".concat(h):"",x="".concat(xt.A.adjustedHTMLString(f)).concat(O),k=v||function(e,t,n,r){return t?l.xX.condition.DANGER:e?l.xX.condition.INFO:n&&!r?l.xX.condition.WARNING:void 0}(i,w,p,u),E={__html:"".concat(Ot.sanitizeHtml(f)).concat(p?" *":"")},P=!s&&!m&&{htmlFor:d};return(0,S.jsx)(pn,{children:function(e){var l=e.getRef;return(0,S.jsx)(xy,{labelPosition:y,children:(0,S.jsxs)(ky,{labelPosition:y,ref:l,label:f,styles:null==b?void 0:b.innerWrapperStyles,children:[f&&(0,S.jsx)(vy,Ey(Ey({},P),{},{hasValue:u,dirty:i,title:x,immutable:m,isDisplay:s,signal:k,labelPosition:y,styles:null==b?void 0:b.labelStyles,children:t||(t=(0,S.jsx)("span",{dangerouslySetInnerHTML:E}))})),(0,S.jsxs)(yy,{labelPosition:y,children:[(0,S.jsx)(by,{hasValue:u,immutable:m,isDisplay:s,signal:k,labelPosition:y,styles:null==b?void 0:b.valueStyles,children:o}),w&&(0,S.jsx)(Oy,{"data-cy":"errorlist-".concat(d),children:n||(n=(0,S.jsx)(ey,{error:c}))}),a&&(r||(r=(0,S.jsx)(wy,{children:a})))]})]})})}})};var Dy,_y,jy=function(e){return(0,c.AH)(Dy||(Dy=i()(["\n color: ",";\n font-weight: ",";\n"])),l.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?l.t7.fontWeight("bold"):l.t7.fontWeight("regular")}))},Cy=function(){return(0,c.AH)(_y||(_y=i()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Ty=["labelPosition"];function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Ay=function(e){var t=e.labelPosition,n=v()(e,Ty);return(0,S.jsx)(Py,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?My(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:jy,valueStyles:Cy},labelPosition:t||"outside-responsive"},n))};var Iy,Ry,Ny,Ly,Fy,Hy,By=function(e){return e.signal?"signal":"shade2"},Wy=function(){return(0,c.AH)(Iy||(Iy=i()(["\n align-items: flex-start;\n"])))},Yy=function(e){return(0,c.AH)(Ry||(Ry=i()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,c.AH)(Ny||(Ny=i()(["\n ","\n "])),l.hs.space(-1.8)):(0,c.AH)(Ly||(Ly=i()(["\n ","\n "])),l.hs.space(.1))}),l.Db[By(e)](e))},Uy=function(){return(0,c.AH)(Fy||(Fy=i()(["\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,c.AH)(Hy||(Hy=i()(["\n ","\n "])),l.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},zy=["labelPosition"];function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 qy=function(e){var t=e.labelPosition,n=v()(e,zy);return(0,S.jsx)(Py,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:Wy,labelStyles:Yy,valueStyles:Uy},labelPosition:t||"outside-responsive"},n))};var Gy=m()(m()({},dm.A.EmbedType.admin,Ay),dm.A.EmbedType.widget,qy);const $y=dm.A.embedStrategyFactory({mapping:Gy});var Ky,Qy,Xy,Jy,Zy=c.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(Ky||(Ky=i()(["\n margin-right: ",";\n color: ",";\n"])),l.hs.space(-.8),l.t7.color("text")),eb=c.Ay.div.withConfig({displayName:"StyledSearchBox"})(Qy||(Qy=i()(["\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"]))),tb=c.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(Xy||(Xy=i()(["\n &&&& {\n ","\n }\n"])),Pn),nb=x().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,a=e.onSearch,i=e.placeholder,s=(e.debounce,(0,w.useState)(n||"")),c=C()(s,2),u=c[0],l=c[1];return(0,S.jsx)(eb,{children:(0,S.jsx)($y,{hasValue:Boolean(u),labelPosition:"inside",children:(0,S.jsxs)(En,{children:[Jy||(Jy=(0,S.jsx)(Zy,{children:(0,S.jsx)(k.A,{icon:"search"})})),(0,S.jsx)(tb,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&a(t.trim())},value:u,"aria-label":i,placeholder:i}),(null==u?void 0:u.length)>0&&(0,S.jsx)(re,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),a("")}})]})})})}));const rb=T.A.Debouncer(nb,100,"onSearch");var ob,ab=[l.xX.condition.BASE,l.xX.condition.INFO,l.xX.condition.DANGER,l.xX.condition.SUCCESS,l.xX.condition.WARNING],ib=m()(m()(m()(m()(m()({},l.xX.condition.BASE,l.t7.color("signal.neutral")),l.xX.condition.DANGER,l.t7.color("signal.danger")),l.xX.condition.SUCCESS,l.t7.color("signal.success")),l.xX.condition.WARNING,l.t7.color("signal.warning")),l.xX.condition.INFO,l.t7.color("signal.info")),sb=c.Ay.div.withConfig({displayName:"StyledSignalBox"})(ob||(ob=i()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return ib[e.condition]||ib[l.xX.condition.INFO]}(e)}),l.hs.space(-1),l.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));sb.propTypes={condition:l.xX.oneOfPropTypeAndCompletelyMapped(ab,ib)};var cb,ub,lb;c.Ay.div.withConfig({displayName:"StyledCell"})(cb||(cb=i()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),c.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(ub||(ub=i()(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),l.h7,l.t7.color("border"),l.t7.radii("form"),(function(e){return e.borderless&&(0,c.AH)(lb||(lb=i()(["\n border: none;\n "])))}),js,l.hs.space(-2),l.hs.space(-1.7),l.hs.space(-2),l.hs.space(-1),l.t7.radii("form"),l.t7.color("paper"),l.hs.space(-1),l.hs.space(-1),l.hs.space(-.5),l.hs.space(-1));function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pb={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},hb={Left:"Left",Right:"Right"},mb={Top:"Top",Bottom:"Bottom"},gb=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?hb.Right:hb.Left,vertical:o?mb.Bottom:mb.Top}};const vb=function(e){var t=(0,w.useState)(pb),n=C()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,w.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return fb(fb({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(pb),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Nd()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=gb(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return fb(fb({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(a&&Nd()(i,t)){var n=gb(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return fb(fb({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,s,c),o(pb),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),dndState:(0,w.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l])}},yb=hb;var bb,wb,Ob,xb,kb,Sb,Eb,Pb=c.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(bb||(bb=i()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),Db=c.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(wb||(wb=i()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),l.hs.space(.7)),_b=c.Ay.ul.withConfig({displayName:"StyledUl"})(Ob||(Ob=i()(["\n list-style-type: none;\n margin-top: "," !important; /* Nice2 Reset */\n margin-left: 3px; /* make room for drop indicator when it appears on the left-most side */\n padding-left: 0 !important; /* Nice2 Reset */\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; /* Nice2 Reset */\n }\n"])),l.hs.space(-.5),kt.Gw),jb=c.Ay.input.withConfig({displayName:"StyledCheckbox"})(xb||(xb=i()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),l.hs.space(-1)),Cb=c.Ay.span.withConfig({displayName:"StyledId"})(kb||(kb=i()(["\n color: ",";\n font-style: italic;\n"])),l.t7.color("text")),Tb=(0,c.Ay)(kt.vx).withConfig({displayName:"StyledItem"})(Sb||(Sb=i()(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n\n /* when border appears, the content moves over by the width of the border,\n so we move the content back the same width */\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),l.hs.space(-2),l.hs.space(-2),l.hs.space(-2),(function(e){return e.dropPosition===yb.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===yb.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===yb.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),Mb=c.Ay.span.withConfig({displayName:"StyledNumber"})(Eb||(Eb=i()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),l.hs.space(-1),l.t7.color("text"),l.hs.font(0));function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ab(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rb=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,S.jsxs)(Tb,Ib(Ib({},n),{},{children:[(0,S.jsx)(jb,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,S.jsxs)(kt.Ay.Label,{htmlFor:r.id,children:[(0,S.jsxs)(Mb,{children:[t,"."]}),r.label?(0,S.jsx)("span",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(r.label)}}):(0,S.jsx)(Cb,{children:r.id})]})]}))};function Nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fb=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const Hb=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,a=e.onColumnsChange,i=e.intl,s=function(e){return o?o(e):function(e){return le()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,w.useState)(null),l=C()(u,2),d=l[0],f=l[1],p=(0,w.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));a((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===yb.Left)return[].concat(le()(e),[o,t]);if(i===yb.Right)return[].concat(le()(e),[t,o])}return[].concat(le()(e),[t])}),[]);var o,a,i}))}}),[c,a]),h=vb(p),m=h.dndEvents,g=h.dndState,v=(0,w.useMemo)((function(){return Fb(c,d)}),[c,d]),y=v.some((function(e){return e.hidden})),b=function(e,t){a((function(n){return s(n.map((function(n){return n.id===e?Lb(Lb({},n),{},{hidden:!t}):n})))}))},O=function(e){return g.currentlyDragOver===e.id&&g.currentlyDragging!==e.id};return(0,S.jsxs)(Pb,{children:[(0,S.jsx)(rb,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:f}),(0,S.jsxs)(Db,{children:[(0,S.jsx)(jb,{type:"checkbox",onChange:function(e){var t=e.target.checked;a((function(e){var n=Fb(e,d);return s(le()(e.map((function(e){return Lb(Lb({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!y}),(0,S.jsx)(kt.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,S.jsx)(_b,{children:v.map((function(e,n){return(0,S.jsx)(Rb,{index:n+1,column:e,dndProps:Lb({draggable:t,dropPosition:O(e)&&g.horizontalDropPosition},t&&Lb({},m(e.id))),onSelectionChange:b},e.id)}))})]})};(0,ce.injectIntl)(Hb);function Bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yb="yyyy-MM-dd",Ub=function(e){return(0,xc.uv4)(e,Yb)?(0,xc.qgA)(e,Yb,new Date):(0,xc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,xc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xc.ol1)(new Date(e)):null},zb={datetime:{type:"date",toRange:function(e){return{from:e?Ub(e).toISOString():null,to:e?(0,xc.fij)(Ub(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,xc.GPZ)(new Date(e.from),Yb):null!=e&&e.to?(0,xc.GPZ)(new Date(e.to),Yb):null},getToOptions:function(e,t){return Wb(Wb({},e),{},{datePickerOptions:Wb({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Wb(Wb({},e),{},{datePickerOptions:Wb({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return Wb(Wb({},e),{},{datePickerOptions:Wb({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Wb(Wb({},e),{},{datePickerOptions:Wb({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const Vb=zb;var qb,Gb,$b,Kb,Qb,Xb=c.Ay.div.withConfig({displayName:"StyledIconWrapper"})(qb||(qb=i()(["\n font-size: ",";\n color: ",";\n"])),l.hs.font(-2.7),l.t7.color("text")),Jb=c.Ay.div.withConfig({displayName:"StyledRange"})(Gb||(Gb=i()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Zb=c.Ay.div.withConfig({displayName:"StyledInput"})($b||($b=i()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),ew=(0,c.Ay)(re).withConfig({displayName:"StyledBall"})(Kb||(Kb=i()(["\n position: relative;\n top: 0.5px; /* offset false vertical alignment */\n"])));function tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?tw(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rw=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,s=e.toText,c=Vb[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,w.useRef)(t);l.current=t;var d=(0,w.useMemo)((function(){return nw(nw({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(nw(nw({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(nw(nw({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,S.jsx)(Um,nw(nw({type:h},tn()(e,["type"])),{},{events:d})),g=(0,S.jsxs)(Zb,{children:[(0,S.jsx)(Um,nw(nw({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:i})),Qb||(Qb=(0,S.jsx)(Xb,{children:(0,S.jsx)(k.A,{icon:"horizontal-rule"})})),(0,S.jsx)(Um,nw(nw({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,S.jsxs)(Jb,{children:[u?g:m,(0,S.jsx)(ew,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var ow,aw,iw,sw,cw,uw=c.Ay.div.withConfig({displayName:"StyledBurgerButton"})(ow||(ow=i()(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; /* higher than StyledHeader to enable interactions */\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"])),l.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,c.AH)(aw||(aw=i()(["\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,ce.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,S.jsxs)(uw,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[iw||(iw=(0,S.jsx)("span",{})),sw||(sw=(0,S.jsx)("span",{})),cw||(cw=(0,S.jsx)("span",{}))]})}));var lw,dw,fw=c.Ay.div.withConfig({displayName:"StyledPagination"})(lw||(lw=i()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),l.hs.space(-1),l.hs.space(-1.4)),pw=(0,c.Ay)(K).withConfig({displayName:"StyledPaginationButton"})(dw||(dw=i()(["\n padding: "," ",";\n"])),l.hs.space(-2),l.hs.space(-.5));const hw=(0,ce.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return a.formatMessage({id:e})},f=function(e){o(e),i.current.scrollTop=0};return(0,S.jsxs)(fw,{children:[(0,S.jsxs)(Zt,{children:[(0,S.jsx)(pw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,S.jsx)(pw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,S.jsx)(pw,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,S.jsx)(pw,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)(ce.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),mw=hw;var gw,vw=Object.defineProperty,yw=Object.getOwnPropertySymbols,bw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Ow=(e,t,n)=>t in e?vw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xw=(e,t)=>{for(var n in t||(t={}))bw.call(t,n)&&Ow(e,n,t[n]);if(yw)for(var n of yw(t))ww.call(t,n)&&Ow(e,n,t[n]);return e},kw=(e,t)=>{var n={};for(var r in e)bw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yw)for(var r of yw(e))t.indexOf(r)<0&&ww.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,a){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(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),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,r,a=1,s=40,c=-1,u=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=a;;l++){const n=8*t.getNumDataCodewords(l,r),o=i.getTotalBits(e,l);if(o<=n){d=o;break}if(l>=s)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)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(l,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);o(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,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;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,u=Math.floor(s/a);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-o:o;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(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 o(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 o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(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)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.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]],t.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]];function n(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 r(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const a=class e{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(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(a,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}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.substring(n+1,n+3),16)),n+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(gw||(gw={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(gw||(gw={})),(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)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(gw||(gw={}));var Sw=gw,Ew={L:Sw.QrCode.Ecc.LOW,M:Sw.QrCode.Ecc.MEDIUM,Q:Sw.QrCode.Ecc.QUARTILE,H:Sw.QrCode.Ecc.HIGH},Pw=128,Dw="L",_w="#FFFFFF",jw="#000000",Cw=!1,Tw=1,Mw=4,Aw=0,Iw=.1;
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports["tocco-devcon"]=t(require("React"),require("ReactDOM")):e["tocco-devcon"]=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n,r,o,a,i={23490:e=>{e.exports=function(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}},24394:e=>{e.exports=function(e){if(Array.isArray(e))return e}},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},79092:e=>{function t(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=e.apply(n,r);function s(e){t(i,o,a,s,c,"next",e)}function c(e){t(i,o,a,s,c,"throw",e)}s(void 0)}))}}},82274:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},65044:e=>{function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},26396: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}},16193:e=>{function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},18337:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},56994:(e,t,n)=>{var r=n(67197);e.exports=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}}),t&&r(e,t)}},11572:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},4453:e=>{e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}},66923:e=>{e.exports=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.")}},33694:e=>{e.exports=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.")}},72637:e=>{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},83712:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},65611:(e,t,n)=>{var r=n(85735),o=n(41972);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},67197:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},22056:(e,t,n)=>{var r=n(24394),o=n(4453),a=n(45051),i=n(66923);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},72189:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},21259:(e,t,n)=>{var r=n(96374),o=n(11572),a=n(45051),i=n(33694);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},45051:(e,t,n)=>{var r=n(23490);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},92207:(e,t,n)=>{e.exports=n(7452)},39316:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>a});var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},8568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>B,CompositeItem:()=>W,FloatingArrow:()=>G,FloatingDelayGroup:()=>le,FloatingFocusManager:()=>Ue,FloatingList:()=>A,FloatingNode:()=>ee,FloatingOverlay:()=>qe,FloatingPortal:()=>Ie,FloatingTree:()=>te,arrow:()=>u.UE,autoPlacement:()=>u.RK,autoUpdate:()=>u.ll,computePosition:()=>u.rD,detectOverflow:()=>u.__,flip:()=>u.UU,getOverflowAncestors:()=>u.v9,hide:()=>u.jD,inline:()=>u.mG,inner:()=>kt,limitShift:()=>u.ER,offset:()=>u.cY,platform:()=>u.iD,safePolygon:()=>Pt,shift:()=>u.BN,size:()=>u.Ej,useClick:()=>Ke,useClientPoint:()=>Xe,useDelayGroup:()=>de,useDelayGroupContext:()=>ue,useDismiss:()=>tt,useFloating:()=>rt,useFloatingNodeId:()=>Z,useFloatingParentNodeId:()=>X,useFloatingPortalNode:()=>Ae,useFloatingRootContext:()=>nt,useFloatingTree:()=>J,useFocus:()=>ot,useHover:()=>ie,useId:()=>q,useInnerOffset:()=>St,useInteractions:()=>ct,useListItem:()=>I,useListNavigation:()=>ht,useMergeRefs:()=>l,useRole:()=>gt,useTransitionStatus:()=>bt,useTransitionStyles:()=>wt,useTypeahead:()=>Ot});var r=n(4883),o=n(66984),a=n(97193),i=n(86635),s=n(49054),c=n(81845),u=n(4865);function l(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 d={...r},f=d.useInsertionEffect||(e=>e());function p(e){const t=r.useRef((()=>{0}));return f((()=>{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 h="ArrowUp",m="ArrowDown",g="ArrowLeft",v="ArrowRight";function y(e,t,n){return Math.floor(e/t)!==n}function b(e,t){return t<0||t>=e.current.length}function w(e,t){return x(e,{disabledIndices:t})}function O(e,t){return x(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function x(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current;let s=n;do{s+=r?-a:a}while(s>=0&&s<=i.length-1&&D(i,s,o));return s}function k(e,t){let{event:n,orientation:r,loop:i,cols:s,disabledIndices:c,minIndex:u,maxIndex:l,prevIndex:d,stopEvent:f=!1}=t,p=d;if(n.key===h){if(f&&(0,o.jo)(n),-1===d)p=l;else if(p=x(e,{startingIndex:p,amount:s,decrement:!0,disabledIndices:c}),i&&(d-s<u||p<0)){const e=d%s,t=l%s,n=l-(t-e);p=t===e?l:t>e?n:n-s}b(e,p)&&(p=d)}if(n.key===m&&(f&&(0,o.jo)(n),-1===d?p=u:(p=x(e,{startingIndex:d,amount:s,disabledIndices:c}),i&&d+s>l&&(p=x(e,{startingIndex:d%s-s,amount:s,disabledIndices:c}))),b(e,p)&&(p=d)),"both"===r){const t=(0,a.RI)(d/s);n.key===v&&(f&&(0,o.jo)(n),d%s!=s-1?(p=x(e,{startingIndex:d,disabledIndices:c}),i&&y(p,s,t)&&(p=x(e,{startingIndex:d-d%s-1,disabledIndices:c}))):i&&(p=x(e,{startingIndex:d-d%s-1,disabledIndices:c})),y(p,s,t)&&(p=d)),n.key===g&&(f&&(0,o.jo)(n),d%s!=0?(p=x(e,{startingIndex:d,decrement:!0,disabledIndices:c}),i&&y(p,s,t)&&(p=x(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:c}))):i&&(p=x(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:c})),y(p,s,t)&&(p=d));const r=(0,a.RI)(l/s)===t;b(e,p)&&(p=i&&r?n.key===g?l:x(e,{startingIndex:d-d%s-1,disabledIndices:c}):d)}return p}function S(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,c=!1;for(n&&(o=0);!c;){const e=[];for(let n=0;n<i;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+i<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=a})),c=!0):o++}})),[...r]}function E(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*r:a;case"br":return n.lastIndexOf(e)}}function P(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function D(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let _=0;function j(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(_);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():_=requestAnimationFrame(a)}var C="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function T(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 M=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function A(e){const{children:t,elementsRef:n,labelsRef:o}=e,[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),c=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return C((()=>{const e=new Map(a);Array.from(e.keys()).sort(T).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(M.Provider,{value:r.useMemo((()=>({register:s,unregister:c,map:a,elementsRef:n,labelsRef:o})),[s,c,a,n,o])},t)}function I(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:o,map:a,elementsRef:i,labelsRef:s}=r.useContext(M),[c,u]=r.useState(null),l=r.useRef(null),d=r.useCallback((e=>{if(l.current=e,null!==c&&(i.current[c]=e,s)){var n;const r=void 0!==t;s.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[c,i,s,t]);return C((()=>{const e=l.current;if(e)return n(e),()=>{o(e)}}),[n,o]),C((()=>{const e=l.current?a.get(l.current):null;null!=e&&u(e)}),[a]),r.useMemo((()=>({ref:d,index:null==c?-1:c})),[c,d])}function R(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const N=r.createContext({activeIndex:0,onNavigate:()=>{}}),L=[g,v],F=[h,m],H=[...L,...F],B=r.forwardRef((function(e,t){const{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s,activeIndex:c,onNavigate:u,itemSizes:l,dense:d=!1,...f}=e,[y,_]=r.useState(0),C=null!=c?c:y,T=p(null!=u?u:_),M=r.useRef([]),I=n&&"function"!=typeof n?n.props:{},B=r.useMemo((()=>({activeIndex:C,onNavigate:T})),[C,T]),W=i>1;const Y={...f,...I,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==I.onKeyDown||I.onKeyDown(e),function(e){if(!H.includes(e.key))return;let t=C;const n=w(M,s),r=O(M,s);if(W){const c=l||Array.from({length:M.current.length},(()=>({width:1,height:1}))),u=S(c,i,d),f=u.findIndex((e=>null!=e&&!D(M.current,e,s))),p=u.reduce(((e,t,n)=>null==t||D(M.current,t,s)?e:n),-1),h=u[k({current:u.map((e=>e?M.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:P([...s||M.current.map(((e,t)=>D(M.current,t)?t:void 0)),void 0],u),minIndex:f,maxIndex:p,prevIndex:E(C>r?n:C,c,u,i,e.key===m?"bl":e.key===v?"tr":"tl")})];null!=h&&(t=h)}const c={horizontal:[v],vertical:[m],both:[v,m]}[o],u={horizontal:[g],vertical:[h],both:[g,h]}[o],f=W?H:{horizontal:L,vertical:F,both:H}[o];t===C&&[...c,...u].includes(e.key)&&(t=a&&t===r&&c.includes(e.key)?n:a&&t===n&&u.includes(e.key)?r:x(M,{startingIndex:t,decrement:u.includes(e.key),disabledIndices:s})),t===C||b(M,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),T(t),queueMicrotask((()=>{j(M.current[t])})))}(e)}};return r.createElement(N.Provider,{value:B},r.createElement(A,{elementsRef:M},R(n,Y)))})),W=r.forwardRef((function(e,t){const{render:n,...o}=e,a=n&&"function"!=typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext(N),{ref:c,index:u}=I(),d=l([c,t,a.ref]),f=i===u;return R(n,{...o,...a,ref:d,tabIndex:f?0:-1,"data-active":f?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(u)}})}));function Y(){return Y=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},Y.apply(this,arguments)}let U=!1,z=0;const V=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+z++;const q=d.useId||function(){const[e,t]=r.useState((()=>U?V():void 0));return C((()=>{null==e&&t(V())}),[]),r.useEffect((()=>{U=!0}),[]),e};const G=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a,shift:s}},width:c=14,height:u=7,tipRadius:l=0,strokeWidth:d=0,staticOffset:f,stroke:p,d:h,style:{transform:m,...g}={},...v}=e;const y=q(),[b,w]=r.useState(!1);if(C((()=>{if(!o)return;"rtl"===(0,i.L9)(o).direction&&w(!0)}),[o]),!o)return null;const[O,x]=n.split("-"),k="top"===O||"bottom"===O;let S=f;(k&&null!=s&&s.x||!k&&null!=s&&s.y)&&(S=null);const E=2*d,P=E/2,D=c/2*(l/-8+1),_=u/2*l/4,j=!!h,T=S&&"end"===x?"bottom":"top";let M=S&&"end"===x?"right":"left";S&&b&&(M="end"===x?"left":"right");const A=null!=(null==a?void 0:a.x)?S||a.x:"",I=null!=(null==a?void 0:a.y)?S||a.y:"",R=h||"M0,0 H"+c+" L"+(c-D)+","+(u-_)+" Q"+c/2+","+u+" "+D+","+(u-_)+" Z",N={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[O];return r.createElement("svg",Y({},v,{"aria-hidden":!0,ref:t,width:j?c:c+E,height:c,viewBox:"0 0 "+c+" "+(u>c?u:c),style:{position:"absolute",pointerEvents:"none",[M]:A,[T]:I,[O]:k||j?"100%":"calc(100% - "+E/2+"px)",transform:[N,m].filter((e=>!!e)).join(" "),...g}}),E>0&&r.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:E+(h?0:1),d:R}),r.createElement("path",{stroke:E&&!h?v.fill:"none",d:R}),r.createElement("clipPath",{id:y},r.createElement("rect",{x:-P,y:P*(j?-1:1),width:c+E,height:c})))}));function $(){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 K=r.createContext(null),Q=r.createContext(null),X=()=>{var e;return(null==(e=r.useContext(K))?void 0:e.id)||null},J=()=>r.useContext(Q);function Z(e){const t=q(),n=J(),r=X(),o=e||r;return C((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function ee(e){const{children:t,id:n}=e,o=X();return r.createElement(K.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function te(e){const{children:t}=e,n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>$()))[0];return r.createElement(Q.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function ne(e){return"data-floating-ui-"+e}function re(e){const t=(0,r.useRef)(e);return C((()=>{t.current=e})),t}const oe=ne("safe-polygon");function ae(e,t,n){return n&&!(0,o.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function ie(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:s,events:c,elements:u}=e,{enabled:l=!0,delay:d=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,v=J(),y=X(),b=re(f),w=re(d),O=re(n),x=r.useRef(),k=r.useRef(-1),S=r.useRef(),E=r.useRef(-1),P=r.useRef(!0),D=r.useRef(!1),_=r.useRef((()=>{})),j=r.useRef(!1),T=r.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);r.useEffect((()=>{if(l)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(E.current),P.current=!0,j.current=!1)}}),[l,c]),r.useEffect((()=>{if(!l)return;if(!b.current)return;if(!n)return;function e(e){T()&&a(!1,e,"hover")}const t=(0,o.YE)(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u.floating,n,a,l,b,T]);const M=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=ae(w.current,"close",x.current);r&&!S.current?(clearTimeout(k.current),k.current=window.setTimeout((()=>a(!1,e,n)),r)):t&&(clearTimeout(k.current),a(!1,e,n))}),[w,a]),A=p((()=>{_.current(),S.current=void 0})),I=p((()=>{if(D.current){const e=(0,o.YE)(u.floating).body;e.style.pointerEvents="",e.removeAttribute(oe),D.current=!1}}));r.useEffect((()=>{if(l&&(0,i.vq)(u.domReference)){var e;const t=u.domReference;return n&&t.addEventListener("mouseleave",d),null==(e=u.floating)||e.addEventListener("mouseleave",d),g&&t.addEventListener("mousemove",r,{once:!0}),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",d),null==(e=u.floating)||e.removeEventListener("mouseleave",d),g&&t.removeEventListener("mousemove",r),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",c)}}function t(){return!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)}function r(e){if(clearTimeout(k.current),P.current=!1,h&&!(0,o.Go)(x.current)||m>0&&!ae(w.current,"open"))return;const t=ae(w.current,"open",x.current);t?k.current=window.setTimeout((()=>{O.current||a(!0,e,"hover")}),t):a(!0,e,"hover")}function c(e){if(t())return;_.current();const r=(0,o.YE)(u.floating);if(clearTimeout(E.current),j.current=!1,b.current&&s.current.floatingContext){n||clearTimeout(k.current),S.current=b.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),M(e,!0,"safe-polygon")}});const t=S.current;return r.addEventListener("mousemove",t),void(_.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==x.current||!(0,o.gR)(u.floating,e.relatedTarget))&&M(e)}function d(e){t()||s.current.floatingContext&&(null==b.current||b.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),M(e)}})(e))}}),[u,l,e,h,m,g,M,A,I,a,n,O,v,w,b,s]),C((()=>{var e;if(l&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&T()){D.current=!0;const e=u.floating;if((0,i.vq)(u.domReference)&&e){var t;const n=(0,o.YE)(u.floating).body;n.setAttribute(oe,"");const r=u.domReference,a=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return a&&(a.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,y,u,v,b,T]),C((()=>{n||(x.current=void 0,j.current=!1,A(),I())}),[n,A,I]),r.useEffect((()=>()=>{A(),clearTimeout(k.current),clearTimeout(E.current),I()}),[l,u.domReference,A,I]);const R=r.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){P.current||O.current||a(!0,t,"hover")}h&&!(0,o.Go)(x.current)||n||0===m||j.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===x.current?r():(j.current=!0,E.current=window.setTimeout(r,m)))}}}),[h,a,n,O,m]),N=r.useMemo((()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){M(e.nativeEvent,!1)}})),[M]);return r.useMemo((()=>l?{reference:R,floating:N}:{}),[l,R,N])}const se=()=>{},ce=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:se,setState:se,isInstantPhase:!1}),ue=()=>r.useContext(ce);function le(e){const{children:t,delay:n,timeoutMs:o=0}=e,[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),c=r.useCallback((e=>{i({currentId:e})}),[]);return C((()=>{a.currentId?null===s.current?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)}),[a.currentId,a.isInstantPhase]),r.createElement(ce.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:c})),[a,c])},t)}function de(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:a,enabled:i=!0}=t,s=null!=a?a:o,c=ue(),{currentId:u,setCurrentId:l,initialDelay:d,setState:f,timeoutMs:p}=c;return C((()=>{i&&u&&(f({delay:{open:1,close:ae(d,"close")}}),u!==s&&r(!1))}),[i,s,r,f,u,d]),C((()=>{function e(){r(!1),f({delay:d,currentId:null})}if(i&&u&&!n&&u===s){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}}),[i,n,f,u,s,r,d,p]),C((()=>{i&&l!==se&&n&&l(s)}),[i,n,l,s]),c}function fe(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 pe=new WeakMap,he=new WeakSet,me={},ge=0;const ve=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,ye=e=>e&&(e.host||ye(e.parentNode)),be=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=ye(t);return e.contains(n)?n:null})).filter((e=>null!=e));function we(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(0,o.YE)(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,s=be(t,e),c=new Set,u=new Set(s),l=[];me[o]||(me[o]=new WeakMap);const d=me[o];return s.forEach((function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,i.mq)(t))if(c.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(pe.get(t)||0)+1,i=(d.get(t)||0)+1;pe.set(t,r),d.set(t,i),l.push(t),1===r&&n&&he.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),c.clear(),ge++,()=>{l.forEach((e=>{const t=(pe.get(e)||0)-1,n=(d.get(e)||0)-1;pe.set(e,t),d.set(e,n),t||(!he.has(e)&&a&&e.removeAttribute(a),he.delete(e)),n||e.removeAttribute(o)})),ge--,ge||(pe=new WeakMap,pe=new WeakMap,he=new WeakSet,me={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Oe=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xe(e,t){const n=(0,s.Kr)(e,Oe());"prev"===t&&n.reverse();const r=n.indexOf((0,o.RS)((0,o.YE)(e)));return n.slice(r+1)[0]}function ke(){return xe(document.body,"next")}function Se(){return xe(document.body,"prev")}function Ee(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,o.gR)(n,r)}function Pe(e){(0,s.Kr)(e,Oe()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function De(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 _e={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 je(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ce=r.forwardRef((function(e,t){const[n,a]=r.useState();C((()=>((0,o.nr)()&&a("button"),document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ne("focus-guard")]:"",style:_e};return r.createElement("span",Y({},e,i))})),Te=r.createContext(null),Me=ne("portal");function Ae(e){void 0===e&&(e={});const{id:t,root:n}=e,o=q(),a=Re(),[s,c]=r.useState(null),u=r.useRef(null);return C((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{u.current=null}))}),[s]),C((()=>{if(!o)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Me,""),e.appendChild(n),u.current=n,c(n)}),[t,o]),C((()=>{if(!o)return;if(u.current)return;let e=n||(null==a?void 0:a.portalNode);e&&!(0,i.vq)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const s=document.createElement("div");s.id=o,s.setAttribute(Me,""),e=r||e,e.appendChild(s),u.current=s,c(s)}),[t,n,o,a]),s}function Ie(e){const{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e,i=Ae({id:n,root:o}),[s,u]=r.useState(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),h=null==s?void 0:s.modal,m=null==s?void 0:s.open,g=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&!h)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&Ee(e)){("focusin"===e.type?De:Pe)(i)}}}),[i,a,h]),r.useEffect((()=>{i&&(m||De(i))}),[m,i]),r.createElement(Te.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:i,setFocusManagerState:u})),[a,i])},g&&i&&r.createElement(Ce,{"data-type":"outside",ref:l,onFocus:e=>{if(Ee(e,i)){var t;null==(t=f.current)||t.focus()}else{const e=Se()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),g&&i&&r.createElement("span",{"aria-owns":i.id,style:_e}),i&&c.createPortal(t,i),g&&i&&r.createElement(Ce,{"data-type":"outside",ref:d,onFocus:e=>{if(Ee(e,i)){var t;null==(t=p.current)||t.focus()}else{const t=ke()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Re=()=>r.useContext(Te),Ne="data-floating-ui-focusable";function Le(e){return e?e.hasAttribute(Ne)?e:e.querySelector("["+Ne+"]")||e:null}const Fe=20;let He=[];function Be(e){He=He.filter((e=>e.isConnected));let t=e;if(t&&"body"!==(0,i.mq)(t)){if(!(0,s.AO)(t,Oe())){const e=(0,s.Kr)(t,Oe())[0];e&&(t=e)}He.push(t),He.length>Fe&&(He=He.slice(-Fe))}}function We(){return He.slice().reverse().find((e=>e.isConnected))}const Ye=r.forwardRef((function(e,t){return r.createElement("button",Y({},e,{type:"button",ref:t,tabIndex:-1,style:_e}))}));function Ue(e){const{context:t,children:n,disabled:a=!1,order:c=["content"],guards:u=!0,initialFocus:l=0,returnFocus:d=!0,restoreFocus:f=!1,modal:h=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:g=!0}=e,{open:v,refs:y,nodeId:b,onOpenChange:w,events:O,dataRef:x,floatingId:k,elements:{domReference:S,floating:E}}=t,P="number"==typeof l&&l<0,D=(0,o.WZ)(S)&&P,_=!ve()||u,T=re(c),M=re(l),A=re(d),I=J(),R=Re(),N=r.useRef(null),L=r.useRef(null),F=r.useRef(!1),H=r.useRef(!1),B=r.useRef(-1),W=null!=R,Y=Le(E),U=p((function(e){return void 0===e&&(e=Y),e?(0,s.Kr)(e,Oe()):[]})),z=p((e=>{const t=U(e);return T.current.map((e=>S&&"reference"===e?S:Y&&"floating"===e?Y:t)).filter(Boolean).flat()}));function V(e){return!a&&m&&h?r.createElement(Ye,{ref:"start"===e?N:L,onClick:e=>w(!1,e.nativeEvent)},"string"==typeof m?m:"Dismiss"):null}r.useEffect((()=>{F.current=!1}),[a]),r.useEffect((()=>{if(a)return;if(!h)return;function e(e){if("Tab"===e.key){(0,o.gR)(Y,(0,o.RS)((0,o.YE)(Y)))&&0===U().length&&!D&&(0,o.jo)(e);const t=z(),n=(0,o.EW)(e);"reference"===T.current[0]&&n===S&&((0,o.jo)(e),e.shiftKey?j(t[t.length-1]):j(t[1])),"floating"===T.current[1]&&n===Y&&e.shiftKey&&((0,o.jo)(e),j(t[0]))}}const t=(0,o.YE)(Y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[a,S,Y,h,T,D,U,z]),r.useEffect((()=>{if(!a&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=(0,o.EW)(e),n=U().indexOf(t);-1!==n&&(B.current=n)}}),[a,E,U]),r.useEffect((()=>{if(!a&&g)return E&&(0,i.sb)(S)?(S.addEventListener("focusout",t),S.addEventListener("pointerdown",e),E.addEventListener("focusout",t),()=>{S.removeEventListener("focusout",t),S.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t)}):void 0;function e(){H.current=!0,setTimeout((()=>{H.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!((0,o.gR)(S,t)||(0,o.gR)(E,t)||(0,o.gR)(t,E)||(0,o.gR)(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute(ne("focus-guard"))||I&&(fe(I.nodesRef.current,b).find((e=>{var n,r;return(0,o.gR)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,o.gR)(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}(I.nodesRef.current,b).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}))));if(f&&n&&(0,o.RS)((0,o.YE)(Y))===(0,o.YE)(Y).body){(0,i.sb)(Y)&&Y.focus();const e=B.current,t=U(),n=t[e]||t[t.length-1]||Y;(0,i.sb)(n)&&n.focus()}!D&&h||!t||!n||H.current||t===We()||(F.current=!0,w(!1,e,"focus-out"))}))}}),[a,S,E,Y,h,b,I,R,w,g,f,U,D]),r.useEffect((()=>{var e;if(a)return;const t=Array.from((null==R||null==(e=R.portalNode)?void 0:e.querySelectorAll("["+ne("portal")+"]"))||[]);if(E){const e=[E,...t,N.current,L.current,T.current.includes("reference")||D?S:null].filter((e=>null!=e)),n=h||D?we(e,_,!_):we(e);return()=>{n()}}}),[a,S,E,h,T,R,D,_]),C((()=>{if(a||!(0,i.sb)(Y))return;const e=(0,o.YE)(Y),t=(0,o.RS)(e);queueMicrotask((()=>{const e=z(Y),n=M.current,r=("number"==typeof n?e[n]:n.current)||Y,a=(0,o.gR)(Y,t);P||a||!v||j(r,{preventScroll:r===Y})}))}),[a,v,Y,P,z,M]),C((()=>{if(a||!Y)return;let e=!1;const t=(0,o.YE)(Y),n=(0,o.RS)(t);let r=x.current.openEvent;function s(t){let{open:n,reason:a,event:i,nested:s}=t;n&&(r=i),"escape-key"===a&&y.domReference.current&&Be(y.domReference.current),"hover"===a&&"mouseleave"===i.type&&(F.current=!0),"outside-press"===a&&(s?(F.current=!1,e=!0):F.current=!((0,o.YF)(i)||(0,o.Pg)(i)))}Be(n),O.on("openchange",s);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,_e),W&&S&&S.insertAdjacentElement("afterend",c),()=>{O.off("openchange",s);const n=(0,o.RS)(t),a=(0,o.gR)(E,n)||I&&fe(I.nodesRef.current,b).some((e=>{var t;return(0,o.gR)(null==(t=e.context)?void 0:t.elements.floating,n)}));(a||r&&["click","mousedown"].includes(r.type))&&y.domReference.current&&Be(y.domReference.current);const u=We()||c;queueMicrotask((()=>{A.current&&!F.current&&(0,i.sb)(u)&&(u===n||n===t.body||a)&&u.focus({preventScroll:e}),c.remove()}))}}),[a,E,Y,A,x,y,O,I,b,W,S]),C((()=>{if(!a&&R)return R.setFocusManagerState({modal:h,closeOnFocusOut:g,open:v,onOpenChange:w,refs:y}),()=>{R.setFocusManagerState(null)}}),[a,R,h,v,w,y,g]),C((()=>{if(a)return;if(!Y)return;if("function"!=typeof MutationObserver)return;if(P)return;const e=()=>{const e=Y.getAttribute("tabindex"),t=U(),n=(0,o.RS)((0,o.YE)(E)),r=t.indexOf(n);-1!==r&&(B.current=r),T.current.includes("floating")||n!==y.domReference.current&&0===t.length?"0"!==e&&Y.setAttribute("tabindex","0"):"-1"!==e&&Y.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(Y,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[a,E,Y,y,T,U,P]);const q=!a&&_&&(!h||!D)&&(W||h);return r.createElement(r.Fragment,null,q&&r.createElement(Ce,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(h){const e=z();j("reference"===c[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(F.current=!1,Ee(e,R.portalNode)){const e=ke()||S;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}),!D&&V("start"),n,V("end"),q&&r.createElement(Ce,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(h)j(z()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(g&&(F.current=!0),Ee(e,R.portalNode)){const e=Se()||S;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}))}let ze=0;let Ve=()=>{};const qe=r.forwardRef((function(e,t){const{lockScroll:n=!1,...a}=e;return C((()=>{if(n)return ze++,1===ze&&(Ve=function(){const e=/iP(hone|ad|od)|iOS/.test((0,o.uo)()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,c;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}()),()=>{ze--,0===ze&&Ve()}}),[n]),r.createElement("div",Y({ref:t},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))}));function Ge(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function $e(e){return(0,o.$u)(e)}function Ke(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:i,elements:{domReference:s}}=e,{enabled:c=!0,event:u="click",toggle:l=!0,ignoreMouse:d=!1,keyboardHandlers:f=!0}=t,p=r.useRef(),h=r.useRef(!1),m=r.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==u&&((0,o.Go)(t,!0)&&d||(!n||!l||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),a(!0,e.nativeEvent,"click")):a(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===u&&p.current?p.current=void 0:(0,o.Go)(t,!0)&&d||(!n||!l||i.current.openEvent&&"click"!==i.current.openEvent.type?a(!0,e.nativeEvent,"click"):a(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||Ge(e)||(" "!==e.key||$e(s)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&a(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||Ge(e)||$e(s)||" "===e.key&&h.current&&(h.current=!1,a(!n||!l,e.nativeEvent,"click"))}})),[i,s,u,d,f,a,n,l]);return r.useMemo((()=>c?{reference:m}:{}),[c,m])}function Qe(e){return null!=e&&null!=e.clientX}function Xe(e,t){void 0===t&&(t={});const{open:n,dataRef:a,elements:{floating:s,domReference:c},refs:u}=e,{enabled:l=!0,axis:d="both",x:f=null,y:h=null}=t,m=r.useRef(!1),g=r.useRef(null),[v,y]=r.useState(),[b,w]=r.useState([]),O=p(((e,t)=>{m.current||a.current.openEvent&&!Qe(a.current.openEvent)||u.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var a;const i=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,c="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let l=i.width,d=i.height,f=i.x,p=i.y;return null==n&&t.x&&s&&(n=i.x-t.x),null==r&&t.y&&c&&(r=i.y-t.y),f-=n||0,p-=r||0,l=0,d=0,!o||u?(l="y"===t.axis?i.width:0,d="x"===t.axis?i.height:0,f=s&&null!=t.x?t.x:f,p=c&&null!=t.y?t.y:p):o&&!u&&(d="x"===t.axis?i.height:d,l="y"===t.axis?i.width:l),o=!0,{width:l,height:d,x:f,y:p,top:p,right:f+l,bottom:p+d,left:f}}}}(c,{x:e,y:t,axis:d,dataRef:a,pointerType:v}))})),x=p((e=>{null==f&&null==h&&(n?g.current||w([]):O(e.clientX,e.clientY))})),k=(0,o.Go)(v)?s:n,S=r.useCallback((()=>{if(!k||!l||null!=f||null!=h)return;const e=(0,i.zk)(s);function t(n){const r=(0,o.EW)(n);(0,o.gR)(s,r)?(e.removeEventListener("mousemove",t),g.current=null):O(n.clientX,n.clientY)}if(!a.current.openEvent||Qe(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),g.current=null};return g.current=n,n}u.setPositionReference(c)}),[k,l,f,h,s,a,u,c,O]);r.useEffect((()=>S()),[S,b]),r.useEffect((()=>{l&&!s&&(m.current=!1)}),[l,s]),r.useEffect((()=>{!l&&n&&(m.current=!0)}),[l,n]),C((()=>{!l||null==f&&null==h||(m.current=!1,O(f,h))}),[l,f,h,O]);const E=r.useMemo((()=>{function e(e){let{pointerType:t}=e;y(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:x,onMouseEnter:x}}),[x]);return r.useMemo((()=>l?{reference:E}:{}),[l,E])}const Je={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ze={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},et=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 tt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,elements:s,dataRef:c}=e,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:h="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:y,capture:b}=t,w=J(),O=p("function"==typeof f?f:()=>!1),x="function"==typeof f?O:f,k=r.useRef(!1),S=r.useRef(!1),{escapeKey:E,outsidePress:P}=et(y),{escapeKey:D,outsidePress:_}=et(b),j=r.useRef(!1),C=p((e=>{var t;if(!n||!l||!d||"Escape"!==e.key)return;if(j.current)return;const r=null==(t=c.current.floatingContext)?void 0:t.nodeId,i=w?fe(w.nodesRef.current,r):[];if(!E&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}a(!1,(0,o.O_)(e)?e.nativeEvent:e,"escape-key")})),T=p((e=>{var t;const n=()=>{var t;C(e),null==(t=(0,o.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,o.EW)(e))||t.addEventListener("keydown",n)})),M=p((e=>{var t;const n=k.current;k.current=!1;const r=S.current;if(S.current=!1,"click"===h&&r)return;if(n)return;if("function"==typeof x&&!x(e))return;const u=(0,o.EW)(e),l="["+ne("inert")+"]",d=(0,o.YE)(s.floating).querySelectorAll(l);let f=(0,i.vq)(u)?u:null;for(;f&&!(0,i.eu)(f);){const e=(0,i.$4)(f);if((0,i.eu)(e)||!(0,i.vq)(e))break;f=e}if(d.length&&(0,i.vq)(u)&&!(0,o.tZ)(u)&&!(0,o.gR)(u,s.floating)&&Array.from(d).every((e=>!(0,o.gR)(f,e))))return;if((0,i.sb)(u)&&R){const t=u.clientWidth>0&&u.scrollWidth>u.clientWidth,n=u.clientHeight>0&&u.scrollHeight>u.clientHeight;let r=n&&e.offsetX>u.clientWidth;if(n){"rtl"===(0,i.L9)(u).direction&&(r=e.offsetX<=u.offsetWidth-u.clientWidth)}if(r||t&&e.offsetY>u.clientHeight)return}const p=null==(t=c.current.floatingContext)?void 0:t.nodeId,m=w&&fe(w.nodesRef.current,p).some((t=>{var n;return(0,o.F2)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,o.F2)(e,s.floating)||(0,o.F2)(e,s.domReference)||m)return;const g=w?fe(w.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}a(!1,e,"outside-press")})),A=p((e=>{var t;const n=()=>{var t;M(e),null==(t=(0,o.EW)(e))||t.removeEventListener(h,n)};null==(t=(0,o.EW)(e))||t.addEventListener(h,n)}));r.useEffect((()=>{if(!n||!l)return;c.current.__escapeKeyBubbles=E,c.current.__outsidePressBubbles=P;let e=-1;function t(e){a(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),j.current=!0}function f(){e=window.setTimeout((()=>{j.current=!1}),(0,i.Tc)()?5:0)}const p=(0,o.YE)(s.floating);d&&(p.addEventListener("keydown",D?T:C,D),p.addEventListener("compositionstart",r),p.addEventListener("compositionend",f)),x&&p.addEventListener(h,_?A:M,_);let m=[];return v&&((0,i.vq)(s.domReference)&&(m=(0,u.v9)(s.domReference)),(0,i.vq)(s.floating)&&(m=m.concat((0,u.v9)(s.floating))),!(0,i.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(m=m.concat((0,u.v9)(s.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{d&&(p.removeEventListener("keydown",D?T:C,D),p.removeEventListener("compositionstart",r),p.removeEventListener("compositionend",f)),x&&p.removeEventListener(h,_?A:M,_),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[c,s,d,x,h,n,a,v,l,E,P,C,D,T,M,_,A]),r.useEffect((()=>{k.current=!1}),[x,h]);const I=r.useMemo((()=>({onKeyDown:C,[Je[g]]:e=>{m&&a(!1,e.nativeEvent,"reference-press")}})),[C,a,m,g]),R=r.useMemo((()=>({onKeyDown:C,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[Ze[h]]:()=>{k.current=!0}})),[C,h]);return r.useMemo((()=>l?{reference:I,floating:R}:{}),[l,I,R])}function nt(e){const{open:t=!1,onOpenChange:n,elements:o}=e,a=q(),i=r.useRef({}),[s]=r.useState((()=>$())),c=null!=X();const[u,l]=r.useState(o.reference),d=p(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:l})),[]),h=r.useMemo((()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference})),[u,o.reference,o.floating]);return r.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:a,refs:f})),[t,d,h,s,a,f])}function rt(e){void 0===e&&(e={});const{nodeId:t}=e,n=nt({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[s,c]=r.useState(null),[l,d]=r.useState(null),f=(null==a?void 0:a.reference)||s,p=r.useRef(null),h=J();C((()=>{f&&(p.current=f)}),[f]);const m=(0,u.we)({...e,elements:{...a,...l&&{reference:l}}}),g=r.useCallback((e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),m.refs.setReference(t)}),[m.refs]),v=r.useCallback((e=>{((0,i.vq)(e)||null===e)&&(p.current=e,c(e)),((0,i.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,i.vq)(e))&&m.refs.setReference(e)}),[m.refs]),y=r.useMemo((()=>({...m.refs,setReference:v,setPositionReference:g,domReference:p})),[m.refs,v,g]),b=r.useMemo((()=>({...m.elements,domReference:f})),[m.elements,f]),w=r.useMemo((()=>({...m,...o,refs:y,elements:b,nodeId:t})),[m,y,b,t,o]);return C((()=>{o.dataRef.current.floatingContext=w;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=w)})),r.useMemo((()=>({...m,context:w,refs:y,elements:b})),[m,y,b,w])}function ot(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,events:s,dataRef:c,elements:u}=e,{enabled:l=!0,visibleOnly:d=!0}=t,f=r.useRef(!1),p=r.useRef(),h=r.useRef(!0);r.useEffect((()=>{if(!l)return;const e=(0,i.zk)(u.domReference);function t(){!n&&(0,i.sb)(u.domReference)&&u.domReference===(0,o.RS)((0,o.YE)(u.domReference))&&(f.current=!0)}function r(){h.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[u.domReference,n,l]),r.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}}),[s,l]),r.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=r.useMemo((()=>({onPointerDown(e){(0,o.Pg)(e.nativeEvent)||(h.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=(0,o.EW)(e.nativeEvent);if(d&&(0,i.vq)(t))try{if((0,o.nr)()&&(0,o.cX)())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!h.current&&!(0,o.$u)(t))return}a(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,i.vq)(t)&&t.hasAttribute(ne("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{var e;const i=(0,o.RS)(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&((0,o.gR)(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,i)||(0,o.gR)(u.domReference,i)||r||a(!1,n,"focus"))}))}})),[c,u.domReference,a,d]);return r.useMemo((()=>l?{reference:m}:{}),[l,m])}const at="active",it="selected";function st(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[at]:t,[it]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Ne]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[at,it].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function ct(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),a=r.useCallback((t=>st(t,e,"reference")),t),i=r.useCallback((t=>st(t,e,"floating")),n),s=r.useCallback((t=>st(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s})),[a,i,s])}let ut=!1;function lt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function dt(e,t){return lt(t,e===h||e===m,e===g||e===v)}function ft(e,t,n){return lt(t,e===m,n?e===g:e===v)||"Enter"===e||" "===e||""===e}function pt(e,t,n){return lt(t,n?e===v:e===g,e===h)}function ht(e,t){const{open:n,onOpenChange:a,elements:s}=e,{listRef:c,activeIndex:u,onNavigate:l=(()=>{}),enabled:d=!0,selectedIndex:f=null,allowEscape:h=!1,loop:y=!1,nested:_=!1,rtl:T=!1,virtual:M=!1,focusItemOnOpen:A="auto",focusItemOnHover:I=!0,openOnArrowKeyDown:R=!0,disabledIndices:N,orientation:L="vertical",cols:F=1,scrollItemIntoView:H=!0,virtualItemRef:B,itemSizes:W,dense:Y=!1}=t;const U=re(Le(s.floating)),z=X(),V=J(),q=p(l),G=r.useRef(A),$=r.useRef(null!=f?f:-1),K=r.useRef(null),Q=r.useRef(!0),Z=r.useRef(q),ee=r.useRef(!!s.floating),te=r.useRef(n),ne=r.useRef(!1),oe=r.useRef(!1),ae=re(N),ie=re(n),se=re(H),ce=re(f),[ue,le]=r.useState(),[de,pe]=r.useState(),he=p((function(e,t,n){function r(e){M?(le(e.id),null==V||V.events.emit("virtualfocus",e),B&&(B.current=e)):j(e,{preventScroll:!0,sync:!(!(0,o.cX)()||!(0,o.nr)())&&(ut||ne.current)})}void 0===n&&(n=!1);const a=e.current[t.current];a&&r(a),requestAnimationFrame((()=>{const o=e.current[t.current]||a;if(!o)return;a||r(o);const i=se.current;i&&ge&&(n||!Q.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))}))}));C((()=>{document.createElement("div").focus({get preventScroll(){return ut=!0,!1}})}),[]),C((()=>{d&&(n&&s.floating?G.current&&null!=f&&(oe.current=!0,$.current=f,q(f)):ee.current&&($.current=-1,Z.current(null)))}),[d,n,s.floating,f,q]),C((()=>{if(d&&n&&s.floating)if(null==u){if(ne.current=!1,null!=ce.current)return;if(ee.current&&($.current=-1,he(c,$)),(!te.current||!ee.current)&&G.current&&(null!=K.current||!0===G.current&&null==K.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else $.current=null==K.current||ft(K.current,L,T)||_?w(c,ae.current):O(c,ae.current),K.current=null,q($.current)};t()}}else b(c,u)||($.current=u,he(c,$,oe.current),oe.current=!1)}),[d,n,s.floating,u,ce,_,c,L,T,q,he,ae]),C((()=>{var e;if(!d||s.floating||!V||M||!ee.current)return;const t=V.nodesRef.current,n=null==(e=t.find((e=>e.id===z)))||null==(e=e.context)?void 0:e.elements.floating,r=(0,o.RS)((0,o.YE)(s.floating)),a=t.some((e=>e.context&&(0,o.gR)(e.context.elements.floating,r)));n&&!a&&Q.current&&n.focus({preventScroll:!0})}),[d,s.floating,V,z,M]),C((()=>{if(d&&V&&M&&!z)return V.events.on("virtualfocus",e),()=>{V.events.off("virtualfocus",e)};function e(e){pe(e.id),B&&(B.current=e)}}),[d,V,M,z,B]),C((()=>{Z.current=q,ee.current=!!s.floating})),C((()=>{n||(K.current=null)}),[n]),C((()=>{te.current=n}),[n]);const me=null!=u,ge=r.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&q(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...I&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;Q.current&&"touch"!==t&&($.current=-1,he(c,$),q(null),M||j(U.current,{preventScroll:!0}))}}}}),[n,U,he,I,c,q,M]),ve=p((e=>{if(Q.current=!1,ne.current=!0,229===e.which)return;if(!ie.current&&e.currentTarget===U.current)return;if(_&&pt(e.key,L,T))return(0,o.jo)(e),a(!1,e.nativeEvent,"list-navigation"),void((0,i.sb)(s.domReference)&&!M&&s.domReference.focus());const t=$.current,r=w(c,N),u=O(c,N);if("Home"===e.key&&((0,o.jo)(e),$.current=r,q($.current)),"End"===e.key&&((0,o.jo)(e),$.current=u,q($.current)),F>1){const t=W||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=S(t,F,Y),o=n.findIndex((e=>null!=e&&!D(c.current,e,N))),a=n.reduce(((e,t,n)=>null==t||D(c.current,t,N)?e:n),-1),i=n[k({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:L,loop:y,cols:F,disabledIndices:P([...N||c.current.map(((e,t)=>D(c.current,t)?t:void 0)),void 0],n),minIndex:o,maxIndex:a,prevIndex:E($.current>u?r:$.current,t,n,F,e.key===m?"bl":e.key===v?"tr":"tl"),stopEvent:!0})];if(null!=i&&($.current=i,q($.current)),"both"===L)return}if(dt(e.key,L)){if((0,o.jo)(e),n&&!M&&(0,o.RS)(e.currentTarget.ownerDocument)===e.currentTarget)return $.current=ft(e.key,L,T)?r:u,void q($.current);ft(e.key,L,T)?$.current=y?t>=u?h&&t!==c.current.length?-1:r:x(c,{startingIndex:t,disabledIndices:N}):Math.min(u,x(c,{startingIndex:t,disabledIndices:N})):$.current=y?t<=r?h&&-1!==t?c.current.length:u:x(c,{startingIndex:t,decrement:!0,disabledIndices:N}):Math.max(r,x(c,{startingIndex:t,decrement:!0,disabledIndices:N})),b(c,$.current)?q(null):q($.current)}})),ye=r.useMemo((()=>M&&n&&me&&{"aria-activedescendant":de||ue}),[M,n,me,de,ue]),be=r.useMemo((()=>({"aria-orientation":"both"===L?void 0:L,...!(0,o.WZ)(s.domReference)&&ye,onKeyDown:ve,onPointerMove(){Q.current=!0}})),[ye,ve,s.domReference,L]),we=r.useMemo((()=>{function e(e){"auto"===A&&(0,o.YF)(e.nativeEvent)&&(G.current=!0)}return{...ye,onKeyDown(e){Q.current=!1;const t=e.key.startsWith("Arrow"),r=["Home","End"].includes(e.key),i=t||r,s=function(e,t,n){return lt(t,n?e===g:e===v,e===m)}(e.key,L,T),u=pt(e.key,L,T),l=dt(e.key,L),d=(_?s:l)||"Enter"===e.key||""===e.key.trim();if(M&&n){const t=null==V?void 0:V.nodesRef.current.find((e=>null==e.parentId)),n=V&&t?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),fe(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(V.nodesRef.current,t.id):null;if(i&&n&&B){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||u){var p,h;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,a=u&&!r?null==(h=n.context)?void 0:h.elements.domReference:s?c.current.find((e=>(null==e?void 0:e.id)===ue)):null;a&&((0,o.jo)(e),a.dispatchEvent(t),pe(void 0))}var y;if((l||r)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return(0,o.jo)(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return ve(e)}(n||R||!t)&&(d&&(K.current=_&&l?null:e.key),_?s&&((0,o.jo)(e),n?($.current=w(c,ae.current),q($.current)):a(!0,e.nativeEvent,"list-navigation")):l&&(null!=f&&($.current=f),(0,o.jo)(e),!n&&R?a(!0,e.nativeEvent,"list-navigation"):ve(e),n&&q($.current)))},onFocus(){n&&!M&&q(null)},onPointerDown:function(e){G.current=A,"auto"===A&&(0,o.Pg)(e.nativeEvent)&&(G.current=!0)},onMouseDown:e,onClick:e}}),[ue,ye,ve,ae,A,c,_,q,a,n,R,L,T,f,V,M,B]);return r.useMemo((()=>d?{reference:we,floating:be,item:ge}:{}),[d,we,be,ge])}const mt=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function gt(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,c=null!=(n=mt.get(s))?n:s,u=q(),l=null!=X(),d=r.useMemo((()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":o?a:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:u},..."menu"===c&&l&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[c,a,l,o,u,s]),f=r.useMemo((()=>{const e={id:a,...c&&{role:c}};return"tooltip"===c||"label"===s?e:{...e,..."menu"===c&&{"aria-labelledby":u}}}),[c,a,u,s]),p=r.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[a,s]);return r.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}const vt=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function yt(e,t){return"function"==typeof e?e(t):e}function bt(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"==typeof a?a:a.close)||0,[s,c]=r.useState("unmounted"),u=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return u||"close"!==s||c("unmounted"),C((()=>{if(o){if(n){c("initial");const e=requestAnimationFrame((()=>{c("open")}));return()=>{cancelAnimationFrame(e)}}c("close")}}),[n,o]),{isMounted:u,status:s}}function wt(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,c=e.placement,u=c.split("-")[0],l=r.useMemo((()=>({side:u,placement:c})),[u,c]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,m]=r.useState((()=>({...yt(i,l),...yt(n,l)}))),{isMounted:g,status:v}=bt(e,{duration:s}),y=re(n),b=re(o),w=re(a),O=re(i);return C((()=>{const e=yt(y.current,l),t=yt(w.current,l),n=yt(O.current,l),r=yt(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(vt).join(","),transitionDuration:f+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(vt).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,y,b,O,f,v,l]),{isMounted:g,styles:h}}function Ot(e,t){var n;const{open:a,dataRef:i}=e,{listRef:s,activeIndex:c,onMatch:u,onTypingChange:l,enabled:d=!0,findMatch:f=null,resetMs:h=750,ignoreKeys:m=[],selectedIndex:g=null}=t,v=r.useRef(),y=r.useRef(""),b=r.useRef(null!=(n=null!=g?g:c)?n:-1),w=r.useRef(null),O=p(u),x=p(l),k=re(f),S=re(m);C((()=>{a&&(clearTimeout(v.current),w.current=null,y.current="")}),[a]),C((()=>{var e;a&&""===y.current&&(b.current=null!=(e=null!=g?g:c)?e:-1)}),[a,g,c]);const E=p((e=>{e?i.current.typing||(i.current.typing=e,x(e)):i.current.typing&&(i.current.typing=e,x(e))})),P=p((e=>{function t(e,t,n){const r=k.current?k.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=s.current;if(y.current.length>0&&" "!==y.current[0]&&(-1===t(n,n,y.current)?E(!1):" "===e.key&&(0,o.jo)(e)),null==n||S.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&((0,o.jo)(e),E(!0));n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&y.current===e.key&&(y.current="",b.current=w.current),y.current+=e.key,clearTimeout(v.current),v.current=setTimeout((()=>{y.current="",b.current=w.current,E(!1)}),h);const r=b.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],y.current);-1!==i?(O(i),w.current=i):" "!==e.key&&(y.current="",E(!1))})),D=r.useMemo((()=>({onKeyDown:P})),[P]),_=r.useMemo((()=>({onKeyDown:P,onKeyUp(e){" "===e.key&&E(!1)}})),[P,E]);return r.useMemo((()=>d?{reference:D,floating:_}:{}),[d,D,_])}function xt(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const kt=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:s=0,minItemsVisible:l=4,referenceOverflowThreshold:d=0,scrollRef:f,...p}=(0,a._3)(e,t),{rects:h,elements:{floating:m}}=t,g=n.current[s],v=(null==f?void 0:f.current)||m,y=m.clientTop||v.clientTop,b=0!==m.clientTop,w=0!==v.clientTop,O=m===v;if(!g)return{};const x={...t,...await(0,u.cY)(-g.offsetTop-m.clientTop-h.reference.height/2-g.offsetHeight/2-i).fn(t)},k=await(0,u.__)(xt(x,v.scrollHeight+y+m.clientTop),p),S=await(0,u.__)(x,{...p,elementContext:"reference"}),E=(0,a.T9)(0,k.top),P=x.y+E,D=v.scrollHeight>v.clientHeight,_=(D?e=>e:a.LI)((0,a.T9)(0,v.scrollHeight+(b&&O||w?2*y:0)-E-(0,a.T9)(0,k.bottom)));if(v.style.maxHeight=_+"px",v.scrollTop=E,o){const e=D&&v.offsetHeight<g.offsetHeight*l-1||S.top>=-d||S.bottom>=-d;c.flushSync((()=>o(e)))}return r&&(r.current=await(0,u.__)(xt({...x,y:P},v.offsetHeight+y+m.clientTop),p)),{y:P}}});function St(e,t){const{open:n,elements:a}=e,{enabled:i=!0,overflowRef:s,scrollRef:u,onChange:l}=t,d=p(l),f=r.useRef(!1),h=r.useRef(null),m=r.useRef(null);r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==s.current)return;const n=e.deltaY,r=s.current.top>=-.5,a=s.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,u=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!a&&n<0?(e.preventDefault(),c.flushSync((()=>{d((e=>e+Math[l](n,i*u)))}))):/firefox/i.test((0,o.$t)())&&(t.scrollTop+=n))}const t=(null==u?void 0:u.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{h.current=t.scrollTop,null!=s.current&&(m.current={...s.current})})),()=>{h.current=null,m.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,a.floating,s,u,d]);const g=r.useMemo((()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){const e=(null==u?void 0:u.current)||a.floating;if(s.current&&e&&f.current){if(null!==h.current){const t=e.scrollTop-h.current;(s.current.bottom<-.5&&t<-1||s.current.top<-.5&&t>1)&&c.flushSync((()=>d((e=>e+t))))}requestAnimationFrame((()=>{h.current=e.scrollTop}))}}})),[a.floating,d,s,u]);return r.useMemo((()=>i?{floating:g}:{}),[i,g])}function Et(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[c,u]=t[i]||[0,0];s>=r!=u>=r&&n<=(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}function Pt(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let a,s=!1,c=null,u=null,l=performance.now();const d=e=>{let{x:n,y:d,placement:f,elements:p,onClose:h,nodeId:m,tree:g}=e;return function(e){function v(){clearTimeout(a),h()}if(clearTimeout(a),!p.domReference||!p.floating||null==f||null==n||null==d)return;const{clientX:y,clientY:b}=e,w=[y,b],O=(0,o.EW)(e),x="mouseleave"===e.type,k=(0,o.gR)(p.floating,O),S=(0,o.gR)(p.domReference,O),E=p.domReference.getBoundingClientRect(),P=p.floating.getBoundingClientRect(),D=f.split("-")[0],_=n>P.right-P.width/2,j=d>P.bottom-P.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}(w,E),T=P.width>E.width,M=P.height>E.height,A=(T?E:P).left,I=(T?E:P).right,R=(M?E:P).top,N=(M?E:P).bottom;if(k&&(s=!0,!x))return;if(S&&(s=!1),S&&!x)return void(s=!0);if(x&&(0,i.vq)(e.relatedTarget)&&(0,o.gR)(p.floating,e.relatedTarget))return;if(g&&fe(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===D&&d>=E.bottom-1||"bottom"===D&&d<=E.top+1||"left"===D&&n>=E.right-1||"right"===D&&n<=E.left+1)return v();let L=[];switch(D){case"top":L=[[A,E.top+1],[A,P.bottom-1],[I,P.bottom-1],[I,E.top+1]];break;case"bottom":L=[[A,P.top+1],[A,E.bottom-1],[I,E.bottom-1],[I,P.top+1]];break;case"left":L=[[P.right-1,N],[P.right-1,R],[E.left+1,R],[E.left+1,N]];break;case"right":L=[[E.right-1,N],[E.right-1,R],[P.left+1,R],[P.left+1,N]]}if(!Et([y,b],L)){if(s&&!C)return v();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===c||null===u||0===r)return c=e,u=t,l=n,null;const o=e-c,a=t-u,i=Math.sqrt(o*o+a*a);return c=e,u=t,l=n,i/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Et([y,b],function(e){let[n,r]=e;switch(D){case"top":return[[T?n+t/2:_?n+4*t:n-4*t,r+t+1],[T?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[P.left,_||T?P.bottom-t:P.top],[P.right,_?T?P.bottom-t:P.top:P.bottom-t]]];case"bottom":return[[T?n+t/2:_?n+4*t:n-4*t,r-t],[T?n-t/2:_?n+4*t:n-4*t,r-t],...[[P.left,_||T?P.top+t:P.bottom],[P.right,_?T?P.top+t:P.bottom:P.top+t]]];case"left":{const e=[n+t+1,M?r+t/2:j?r+4*t:r-4*t],o=[n+t+1,M?r-t/2:j?r+4*t:r-4*t];return[...[[j||M?P.right-t:P.left,P.top],[j?M?P.right-t:P.left:P.right-t,P.bottom]],e,o]}case"right":return[[n-t,M?r+t/2:j?r+4*t:r-4*t],[n-t,M?r-t/2:j?r+4*t:r-4*t],...[[j||M?P.left+t:P.right,P.top],[j?M?P.left+t:P.right:P.left+t,P.bottom]]]}}([n,d]))?!s&&r&&(a=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:n},d}},28424:(e,t,n)=>{"use strict";n.d(t,{$:()=>X,A:()=>I,B:()=>D,C:()=>N,D:()=>v,E:()=>w,F:()=>F,G:()=>V,H:()=>u,J:()=>H,L:()=>K,M:()=>ee,N:()=>ne,O:()=>Z,P:()=>A,Q:()=>oe,R:()=>R,S:()=>W,T:()=>M,Z:()=>Q,a:()=>L,a2:()=>te,a4:()=>re,b:()=>B,d:()=>Y,e:()=>T,f:()=>U,g:()=>z,h:()=>q,i:()=>y,j:()=>E,k:()=>s,l:()=>S,m:()=>b,n:()=>C,o:()=>p,p:()=>l,q:()=>g,r:()=>f,s:()=>k,t:()=>c,u:()=>d,v:()=>P,y:()=>x,z:()=>O});var r=n(63821),o=n(58168),a=n(21225),i=n(37089),s=function(e){return function(){return e}}(!0),c=function(){};var u=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(e,t){(0,o.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var y=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},w=function(e){return function(t){return e(Object.defineProperty(t,r.q8,{value:!0}))}},O=function(e){return e===r.a6},x=function(e){return e===r.nm},k=function(e){return O(e)||x(e)};function S(e,t){var n=Object.keys(e),r=n.length;var o,i=0,s=(0,a.YO)(e)?b(r):{},u={};return n.forEach((function(e){var n=function(n,a){o||(a||k(n)?(t.cancel(),t(n,a)):(s[e]=n,++i===r&&(o=!0,t(s))))};n.cancel=c,u[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return u[e].cancel()})))},u}function E(e){return{name:e.name||"anonymous",location:P(e)}}function P(e){return e[r.x2]}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var _={isEmpty:s,put:c,take:c};function j(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)i(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,a=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,a=0,n.length=u,e=u,i(s)}},take:s,flush:c}}var C=function(){return _},T=function(e){return j(e,4)},M="TAKE",A="PUT",I="ALL",R="RACE",N="CALL",L="CPS",F="FORK",H="JOIN",B="CANCEL",W="SELECT",Y="ACTION_CHANNEL",U="CANCELLED",z="FLUSH",V="GET_CONTEXT",q="SET_CONTEXT",G=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},$=function(e){return G(F,(0,o.A)({},e.payload,{detached:!0}))};function K(e,t){return void 0===e&&(e="*"),(0,a.T1)(e)?((0,a.uQ)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),G(M,{pattern:e})):(0,a.fD)(e)&&(0,a.uQ)(t)&&(0,a.T1)(t)?G(M,{channel:e,pattern:t}):(0,a.Ix)(e)?((0,a.uQ)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),G(M,{channel:e})):void 0}function Q(e,t){return(0,a.vD)(t)&&(t=e,e=void 0),G(A,{channel:e,action:t})}function X(e){var t=G(I,e);return t.combinator=!0,t}function J(e,t){var n,r=null;return(0,a.Pc)(e)?n=e:((0,a.YO)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,a.Yj)(n)&&(0,a.Pc)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(N,J(e,n))}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(F,J(e,n))}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(ee.apply(void 0,[e].concat(n)))}function ne(e){return void 0===e&&(e=r.Pe),G(B,e)}function re(e){void 0===e&&(e=u);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(W,{selector:e,args:n})}var oe=Z.bind(null,i.A)},37089:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63821);const o=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o}},21225:(e,t,n)=>{"use strict";n.d(t,{HR:()=>h,Ix:()=>f,Pc:()=>i,T1:()=>d,YO:()=>c,Yj:()=>s,fD:()=>m,iv:()=>u,lJ:()=>l,mr:()=>p,uQ:()=>a,vD:()=>o});var r=n(63821),o=function(e){return null==e},a=function(e){return null!=e},i=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},c=Array.isArray,u=function(e){return e&&i(e.then)},l=function(e){return e&&i(e.next)&&i(e.throw)},d=function e(t){return t&&(s(t)||h(t)||i(t)||c(t)&&t.every(e))},f=function(e){return e&&i(e.take)&&i(e.close)},p=function(e){return i(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return f(e)&&e[r.Xl]}},63821:(e,t,n)=>{"use strict";n.d(t,{E_:()=>s,IO:()=>i,Pe:()=>l,Xl:()=>c,a6:()=>p,bO:()=>o,nm:()=>f,q8:()=>u,wn:()=>d,x2:()=>h,x7:()=>a});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),a=r("CHANNEL_END"),i=r("IO"),s=r("MATCH"),c=r("MULTICAST"),u=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),d=r("TASK"),f=r("TASK_CANCEL"),p=r("TERMINATE"),h=r("LOCATION")},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0}},82558:(e,t,n)=>{"use strict";n.d(t,{$y:()=>r,AM:()=>d,Dh:()=>s,EG:()=>E,EY:()=>h,ID:()=>u,JK:()=>P,KM:()=>a,M2:()=>f,XC:()=>c,Yn:()=>l,Yv:()=>y,Zc:()=>i,a9:()=>x,cM:()=>O,cV:()=>b,iN:()=>g,ln:()=>o,o_:()=>m,q0:()=>k,rw:()=>w,sT:()=>p,vJ:()=>v,xC:()=>S});var r="dbrefactoring/LOAD_MODULES",o="dbrefactoring/LOAD_FRAGMENTS",a="dbrefactoring/SET_VERSION",i="dbrefactoring/SET_FRAGMENTS",s="dbrefactoring/SET_MODULES",c="dbrefactoring/SET_SELECTED_MODULES",u="dbrefactoring/SET_FRAGMENT_SELECTED",l="dbrefactoring/SET_IGNORE_ERRORS",d="dbrefactoring/EXECUTE_DB_REFACTORING",f="dbrefactoring/SET_LANGUAGE",p="dbrefactoring/EXECUTE_LANGUAGE_UPGRADE",h="dbrefactoring/UNSET_RUNNING",m=function(){return{type:r}},g=function(){return{type:o}},v=function(e){return{type:a,payload:{version:e}}},y=function(e){return{type:i,payload:{fragments:e}}},b=function(e){return{type:s,payload:{modules:e}}},w=function(e){return{type:c,payload:{selectedModules:e}}},O=function(e,t){return{type:u,payload:{fragment:e,selected:t}}},x=function(e){return{type:l,payload:{ignoreErrors:e}}},k=function(){return{type:d}},S=function(e){return{type:f,payload:{language:e}}},E=function(){return{type:p}},P=function(e){return{type:h,payload:{path:e}}}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,E9:()=>S,Fr:()=>P,HA:()=>f,Jg:()=>k,Ki:()=>E,QQ:()=>O,TA:()=>y,UT:()=>w,Ur:()=>s,V8:()=>u,VI:()=>g,Wt:()=>h,XS:()=>p,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>c,tW:()=>l,uN:()=>v,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",s="modelvalidation/ADD_CHECK_EVENT",c="modelvalidation/SET_RESULT",u="modelvalidation/SET_SELECTED",l="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",f="modelvalidation/EXECUTE_SQL",p="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){return{type:o,payload:{message:e}}},v=function(e){return{type:c,payload:{result:e}}},y=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:s,payload:{id:e,type:t,label:n}}},O=function(e,t){return{type:u,payload:{ids:e,selected:t}}},x=function(){return{type:l}},k=function(e){return{type:d,payload:{sql:e}}},S=function(e){return{type:f,payload:{close:e}}},E=function(){return{type:p}},P=function(e){return{type:h,payload:{changelog:e}}}},42938:(e,t,n)=>{"use strict";n.d(t,{A0:()=>o,AB:()=>a,Fm:()=>s,bJ:()=>r,dy:()=>c,oG:()=>i});var r="sqllog/RECEIVE_ENTRY",o="sqllog/SET_ACTIVE",a="sqllog/SET_ELAPSED",i=function(e){return{type:r,payload:{data:e}}},s=function(e){return{type:o,payload:{active:e}}},c=function(e){return{type:a,payload:{elapsed:e}}}},6730:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(92207),o=n.n(r),a=n(43786),i="EMIT_ACTION",s="DISPATCH_EMITTED_ACTION",c=o().mark(u);function u(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.Q7)([(0,a.jP)(i,l,e),(0,a.jP)(s,d)]);case 2:case"end":return t.stop()}}),c)}function l(e,t){var n=t.payload;return o().mark((function t(){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,(0,a.Lt)(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,(0,a.T1)(i,r);case 7:case"end":return t.stop()}}),t)}))()}function d(e){var t=e.payload;return o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,(0,a.yJ)(n);case 3:case"end":return e.stop()}}),e)}))()}const f={emitAction:function(e){return{type:i,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:s,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(u,t)}}},60085:(e,t,n)=>{"use strict";n.d(t,{A:()=>ca});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),s=n(43786),c=n(63205),u=n(5556),l=n.n(u),d={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},f={outputjob:"OUTPUTJOB",entities:"ENTITIES"},p=o()(o()(o()(o()(o()({},d.neutral,null),d.error,"times-circle"),d.warning,"exclamation-circle"),d.success,"check-circle"),d.info,"info-circle"),h=(l().shape({key:l().string.isRequired,message:l().string,read:l().bool,timestamp:l().string,originId:l().string,type:l().string,taskProgress:l().shape({taskExecutionKey:l().string.isRequired,status:l().string,message:l().string,percentage:l().number,done:l().number,total:l().number,supportsCancellation:l().bool,isRunning:l().bool})}),i().mark(k)),m=i().mark(S);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y={failed:"error",info:"info",warning:"warning",success:"success"},b="running_infinite",w="running_absolute",O="pending",x=function(e){return e.status&&(e.status===O||e.status===w||e.status===b)};function k(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=v(v({},e),{},{type:y[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?v(v({},e.taskProgress),{},{isRunning:x(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,(0,s.T1)(S,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),h)}function S(e){var t,n,r,o,a,u;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e||e.type!==f.outputjob){i.next=14;break}return t=null,i.prev=2,n=e.content[0].key,i.next=6,(0,s.T1)(c.A.fetchEntity,"Output_job",n,{paths:["document"]});case 6:r=i.sent,o=r.paths.document.value,a=o.fileName,u=o.binaryLink,t={name:a,link:u,description:e.content[0].display},i.next=13;break;case 11:i.prev=11,i.t0=i.catch(2);case 13:return i.abrupt("return",v(v({},e),{},{file:t}));case 14:return i.abrupt("return",e);case 15:case"end":return i.stop()}}),m,null,[[2,11]])}var E=n(71468),P="notification/MODAL",D="notification/REMOVE_MODAL",_=function(e,t,n,r){return{type:P,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){}}}},j=function(e){return{type:D,payload:{id:e}}},C=n(81845),T=n.n(C),M=n(33015);const A={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};l().shape({id:l().string.isRequired,title:l().string,body:l().oneOfType([l().string,l().element]),type:l().oneOf(Object.values(A))}),l().shape({id:l().oneOfType([l().string,l().number]).isRequired,title:l().oneOfType([l().string,l().node]),message:l().oneOfType([l().string,l().node]),component:l().func,cancelable:l().bool,cancelCallback:l().func,type:l().oneOf(Object.values(A))});var I,R,N=n(72189),L=n.n(N),F=n(87716),H=F.Ay.div.withConfig({displayName:"StyledPageOverlay"})(I||(I=L()(["\n background-color: rgba(50 50 50 / 70%);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),B=F.Ay.div.withConfig({displayName:"StyledHolder"})(R||(R=L()(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n\n /* higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n lower than ext-js legacy actions */\n z-index: 9000;\n"]))),W=n(23228),Y=n(85015),U=n.n(Y),z=n(31004),V=n(74848);const q=function(e){var t,n=e.children;return U()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,V.jsx)(M.Ar,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,V.jsx)(z.FormattedMessage,{id:n}):(0,V.jsx)("span",{children:n}):n};var G,$;const K={blockingDiplayStyles:(0,F.AH)(G||(G=L()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),M.t7.color("signal.info"),M.t7.color("paper")),titleWrapperStyles:(0,F.AH)($||($=L()(["\n color: ",";\n"])),M.t7.color("paper"))};var Q,X;const J={blockingDiplayStyles:(0,F.AH)(Q||(Q=L()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),M.t7.color("paper"),M.t7.color("border"),M.t7.radii("toaster"),M.t7.color("text")),titleWrapperStyles:(0,F.AH)(X||(X=L()(["\n color: ",";\n"])),M.t7.color("signal.info"))};var Z,ee,te=o()(o()({},W.A.EmbedType.admin,K),W.A.EmbedType.widget,J),ne=F.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(Z||(Z=L()(["\n /* only latest modal should be above mask */\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),M.hs.space(-.5),(function(e){return e.styles})),re=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(ee||(ee=L()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),M.hs.font(1.5),M.t7.fontWeight("regular"),(function(e){return e.styles}));const oe=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=W.A.embedStrategy({mapping:te});return(0,V.jsxs)(ne,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(re,{styles:a.titleWrapperStyles,children:(0,V.jsx)(q,{children:n})})}),r&&(0,V.jsx)(M.o5.Span,{children:(0,V.jsx)(q,{children:r})})]})};const ae=function(e){var t=e.blocker,n=e.isLatest;return(0,V.jsx)(oe,{blocker:t,isLatest:n})};var ie,se,ce,ue,le,de,fe,pe,he,me,ge,ve=n(4883),ye=M.hs.space(.5),be=F.Ay.div.withConfig({displayName:"StyledModalContent"})(ie||(ie=L()(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n "," {\n padding-right: 0;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgba(0 0 0 / 40%);\n max-height: 80%;\n min-width: 350px;\n max-width: 700px;\n margin: auto;\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),M.t7.color("paper"),M.t7.radii("modal"),ye,M.gQ,M.DC),we=F.Ay.button.withConfig({displayName:"StyledCloseButton"})(se||(se=L()(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),M.t7.color("text")),Oe=F.Ay.div.withConfig({displayName:"StyledModalWrapper"})(ce||(ce=L()(["\n width: 100%;\n height: 100%;\n position: absolute;\n\n /* only latest modal should be above mask */\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),xe=F.Ay.div.withConfig({displayName:"StyledModalHeader"})(ue||(ue=L()(["\n grid-row-start: header;\n display: flex;\n"]))),ke=F.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(le||(le=L()(["\n padding-bottom: ",";\n"])),M.hs.space(.5)),Se=F.Ay.div.withConfig({displayName:"StyledModalBody"})(de||(de=L()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),Ee=F.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(fe||(fe=L()(["\n padding-bottom: ",";\n"])),M.hs.space(0)),Pe=(0,F.Ay)(M.$n).withConfig({displayName:"StyledModalButton"})(pe||(pe=L()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),M.hs.space(0)),De=F.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(he||(he=L()(["\n display: flex;\n justify-content: flex-end;\n"]))),_e=(0,F.DU)(me||(me=L()(["\n "," {\n && {\n z-index: 9999999; /* higher than StyledModalHolder */\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),M.Ec);const je=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,ve.useRef)(null),f=(0,ve.useCallback)((function(){c(i)}),[c,i]),p=(0,ve.useCallback)((function(){u(i)}),[u,i]);(0,ve.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&p()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[p,r]),(0,ve.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var h=(0,ve.useMemo)((function(){return t||(t=(0,V.jsx)(s,{close:f}))}),[s,f]);return(0,V.jsxs)(V.Fragment,{children:[ge||(ge=(0,V.jsx)(_e,{})),(0,V.jsx)(Oe,{isLatest:l,children:(0,V.jsxs)(be,{ref:d,"data-cy":"modal-content",children:[(0,V.jsxs)(xe,{children:[a&&(0,V.jsx)(ke,{children:(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(q,{children:a})})}),r&&(0,V.jsx)(we,{onClick:p,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,V.jsxs)(Se,{children:[o&&(0,V.jsx)(Ee,{children:(0,V.jsx)(M.o5.Span,{children:(0,V.jsx)(q,{children:o})})}),h]})]})})]})};const Ce=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,V.jsx)(je,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var Te={closeModal:j};const Me=(0,E.Ng)((function(){return{}}),Te)(Ce);var Ae;const Ie=function(e){var t=e.overlays;return t.length>0&&T().createPortal((0,V.jsxs)(B,{className:M.eG,children:[t.map((function(e,n){return function(e,t,n){return e.type===A.MODAL?(0,V.jsx)(Me,{idx:t,modal:e,isLatest:n},t):e.type===A.BLOCKER?(0,V.jsx)(ae,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),Ae||(Ae=(0,V.jsx)(H,{}))]}),document.body)};var Re={closeModal:j};const Ne=(0,E.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),Re)(Ie);var Le="notification/SET_UNREAD_NOTIFICATION_KEYS",Fe="notification/UPDATE_UNREAD_NOTIFICATION",He="notification/LOAD_NOTIFICATIONS",Be="notification/SET_NOTIFICATION",We="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",Ye="notification/UPDATE_NOTIFICATION",Ue="notification/IS_LOADING_MORE_NOTIFICATIONS",ze="notification/MARK_AS_READ",Ve="notification/CANCEL_TASK",qe=function(e){return{type:Le,payload:{unreadNotificationKeys:e}}},Ge=function(e,t){return{type:Fe,payload:{notificationKey:e,read:t}}},$e=function(e){return{type:Be,payload:{notifications:e}}},Ke=function(e){return{type:We,payload:{moreNotificationsAvailable:e}}},Qe=function(e){return{type:Ye,payload:{notification:e}}},Xe=function(){return{type:Ue,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Je=function(e){return{type:ze,payload:{notificationKey:e}}},Ze=function(e){return{type:Ve,payload:{taskExecutionKey:e}}},et="notification/TOASTER",tt="notification/REMOVE_TOASTER",nt="notification/REMOVE_TOASTER_FROM_STORE",rt=function(e){return{type:et,payload:{toaster:e}}},ot=function(e,t){return{type:tt,payload:{key:e,manually:t}}},at=function(e){return{type:nt,payload:{key:e}}},it=n(93419);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 ct(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){o()(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 ut,lt,dt,ft,pt,ht,mt,gt,vt=function(e,t){return Number.isInteger(e)?e:function(e){return e===d.error||e===d.warning}(t)?-1:5e3},yt=(l().shape({type:l().oneOf(Object.values(d)).isRequired,title:l().oneOfType([l().string,l().func]),message:l().oneOfType([l().string,l().func]),body:l().oneOfType([l().string,l().func]),onClose:l().func,icons:l().string,duration:l().number,time:l().instanceOf(Date)}),n(72637)),bt=n.n(yt),wt=n(16193),Ot=n.n(wt),xt=(l().func.isRequired,l().func.isRequired,l().object,n(22056)),kt=n.n(xt),St=n(96424),Et=(0,F.i7)(ut||(ut=L()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),Pt=F.Ay.div.withConfig({displayName:"StyledToaster"})(lt||(lt=L()(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgba(0 0 0 / 70%);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),M.hs.space(-.5),M.hs.space(0),Et),Dt=(0,F.Ay)(M.cx).withConfig({displayName:"StyledCloseButton"})(dt||(dt=L()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &&:hover {\n background: transparent;\n cursor: pointer;\n }\n ","\n"])),M.hs.font(3),M.t7.color("backgroundBody"),(function(e){return e.styles})),_t=F.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(ft||(ft=L()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),M.hs.space(0),M.hs.space(0),M.rd,(function(e){return e.styles})),jt=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(pt||(pt=L()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),M.hs.font(1.5),M.t7.fontWeight("regular")),Ct=F.Ay.div.withConfig({displayName:"StyledIconWrapper"})(ht||(ht=L()(["\n font-size: ",";\n"])),M.hs.font(7)),Tt=F.Ay.div.withConfig({displayName:"StyledContentWrapper"})(mt||(mt=L()(["\n padding-top: ",";\n color: ",";\n"])),M.hs.space(-1),M.t7.color("textToaster")),Mt=F.Ay.div.withConfig({displayName:"StyledToasterBox"})(gt||(gt=L()(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); /* subtract height of header plus some additional padding */\n min-width: 310px;\n max-width: 400px;\n top: 40px; /* height of Header to prevent coverage */\n right: 55px;\n\n /* lower than StyledModalHolder and very high value \n to prevent other elements blocking it when implemented as a widget */\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); /* subtract height of header */\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,M.Ed)());const At=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,ve.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=St.A.useUserActive(i),c=kt()(s,3),u=c[0],l=c[1],d=c[2];(0,ve.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,V.jsxs)(Pt,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==a?void 0:a.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,V.jsx)(Dt,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,V.jsxs)(_t,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,V.jsx)(Ct,{children:(0,V.jsx)(M.In,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,V.jsx)(M.o5.H1,{children:(0,V.jsx)(jt,{"data-cy":"toaster-title",children:(0,V.jsx)(q,{children:t.title})})})]}),t.body&&(0,V.jsx)(Tt,{"data-cy":"toaster-content",children:(0,V.jsx)(q,{children:"function"==typeof t.body?(0,V.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var It,Rt,Nt={info:"info",success:"success",error:"danger",warning:"warning"},Lt=function(){return(0,F.AH)(It||(It=L()(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Nt[e]?t.colors.signal[Nt[e]]:"#ccc"}(e.type,e.theme)}),M.t7.color("textToaster"))},Ft=function(){return(0,F.AH)(Rt||(Rt=L()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),M.t7.color("textToaster"))};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Bt=function(e){var t=Ot()({},(bt()(e),e));return(0,V.jsx)(At,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:Lt,closeButtonStyles:Ft}},t))};var Wt,Yt,Ut={info:"info",success:"success",error:"danger",warning:"warning"},zt=function(){return(0,F.AH)(Wt||(Wt=L()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),M.t7.color("paper"),M.t7.radii("statusLabel"),M.t7.color("border"),M.t7.color("text"))},Vt=function(){return(0,F.AH)(Yt||(Yt=L()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Ut[e]?t.colors.signal[Ut[e]]:"#ccc"}(e.type,e.theme)}))};function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gt=function(e){var t=Ot()({},(bt()(e),e));return(0,V.jsx)(At,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:zt,iconTitleWrapperStyles:Vt}},t))};var $t=o()(o()({},W.A.EmbedType.admin,Bt),W.A.EmbedType.widget,Gt);const Kt=W.A.embedStrategyFactory({mapping:$t});const Qt=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,V.jsx)(Kt,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,V.jsx)(V.Fragment,{children:t&&T().createPortal((0,V.jsx)(Mt,{className:M.eG,children:a}),document.body)})};var Xt={removeToaster:ot,cancelTask:Ze};const Jt=(0,E.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Xt)(Qt);var Zt;const en=function(e){var t=e.navigationStrategy;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Jt,{navigationStrategy:t}),Zt||(Zt=(0,V.jsx)(Ne,{}))]})};var tn,nn,rn,on,an,sn,cn,un,ln,dn,fn="notification/BLOCKING_INFO",pn="notification/REMOVE_BLOCKING_INFO",hn=n(37576),mn=F.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(tn||(tn=L()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),M.hs.space(-1.5)),gn=F.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(nn||(nn=L()(["\n margin-right: ",";\n"])),M.hs.space(-1.5)),vn=F.Ay.div.withConfig({displayName:"StyledProgressOuter"})(rn||(rn=L()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),M.t7.color("paper")),yn=F.Ay.div.withConfig({displayName:"StyledProgressInner"})(on||(on=L()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),M.t7.color("paper"),(function(e){return e.percentage})),bn=F.Ay.span.withConfig({displayName:"StyledMessage"})(an||(an=L()(["\n margin-right: ",";\n"])),M.hs.space(-2)),wn=F.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(sn||(sn=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),M.hs.space(-2),M.hs.space(-2),M.hs.font(-1)),On=F.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(cn||(cn=L()(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),M.t7.color("text"),M.t7.color("text")),xn=F.Ay.div.withConfig({displayName:"StyledFileDescription"})(un||(un=L()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),M.hs.space(0)),kn=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(ln||(ln=L()(["\n padding-right: ",";\n"])),M.hs.space(-1.5)),Sn=F.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(dn||(dn=L()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),M.t7.color("text"));const En=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,V.jsx)(bn,{children:(0,V.jsx)(q,{children:t})}):null};var Pn,Dn=n(94394),_n=n.n(Dn),jn=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,V.jsx)(M.AM,{content:(0,V.jsx)(M.o5.P,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const Cn=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,V.jsx)(V.Fragment,{children:Object.entries(_n()(r,(function(e){return e.model}))).map((function(e){var t=kt()(e,2),r=t[0],o=t[1];return(0,V.jsx)(wn,{children:n&&n.ListOrDetailLink&&(0,V.jsx)(jn,{hasTooManyEntities:o.length>100,children:(0,V.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[Pn||(Pn=(0,V.jsx)(M.In,{icon:"arrow-right"}))," ",(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var Tn,Mn,An,In,Rn,Nn,Ln=n(31558);const Fn=(0,z.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},s=i("client.common.notification.outputJobFileLink"),c=i("client.common.notification.outputJobFileDownload");return o?(0,V.jsxs)(On,{children:[(0,V.jsx)(xn,{children:(0,V.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,V.jsx)("div",{children:(0,V.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[Tn||(Tn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"eye"})})),Mn||(Mn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),Ln.A.downloadSupportedByBrowser()&&(0,V.jsxs)("a",{href:Ln.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[An||(An=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"arrow-to-bottom"})})),In||(In=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,V.jsx)(wn,{children:n&&n.DetailLink&&(0,V.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[Rn||(Rn=(0,V.jsx)(M.In,{icon:"arrow-right"}))," ",Nn||(Nn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var Hn=o()(o()({},f.outputjob,Fn),f.entities,Cn);const Bn=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(Hn[r]){var o=Hn[r];return(0,V.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var Wn,Yn,Un,zn,Vn;const qn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===d.info&&o.isRunning&&o.supportsCancellation;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(mn,{children:[(0,V.jsx)(gn,{children:o.isRunning&&(Wn||(Wn=(0,V.jsx)(M.kt,{})))}),(0,V.jsx)(En,{notification:t})]}),"running_absolute"===o.status&&(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(vn,{children:(0,V.jsx)(yn,{percentage:o.percentage})})}),(0,V.jsx)(wn,{children:a&&(0,V.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[Yn||(Yn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"arrow-right"})})),Un||(Un=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,V.jsxs)(Sn,{onClick:function(){return n(o.taskExecutionKey)},children:[zn||(zn=(0,V.jsx)(kn,{children:(0,V.jsx)(M.In,{icon:"times"})})),Vn||(Vn=(0,V.jsx)(z.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const Gn=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress;return o?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(En,{notification:t}),(0,V.jsx)(Bn,{notification:t,navigationStrategy:r})]}):a?(0,V.jsx)(qn,{notification:t,navigationStrategy:r,cancelTask:n}):(0,V.jsx)(En,{notification:t})},$n=Gn;var Kn,Qn,Xn,Jn,Zn,er,tr,nr,rr={warning:M.t7.color("signal.warning"),error:M.t7.color("signal.danger"),success:M.t7.color("signal.success"),info:M.t7.color("signal.info")},or=F.Ay.article.withConfig({displayName:"StyledNotification"})(Kn||(Kn=L()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),M.hs.space(0),M.hs.space(-1),(function(e){return!e.read&&(0,F.AH)(Qn||(Qn=L()(["\n background-color: ",";\n "])),M.t7.color("backgroundBody"))})),ar=F.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Xn||(Xn=L()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),M.hs.space(-1),(function(e){var t=e.notificationType;return rr[t]})),ir=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jn||(Jn=L()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),M.hs.space(-1.5),M.hs.font(5)),sr=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Zn||(Zn=L()(["\n * {\n font-weight: "," !important;\n }\n"])),M.t7.fontWeight("regular")),cr=F.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(er||(er=L()(["\n ","\n margin-bottom: ",";\n"])),(0,M.Ed)({fontSize:M.hs.font(2.9),fontWeight:M.t7.fontWeight("bold"),color:M.t7.color("secondary")}),M.hs.space(-.5)),ur=F.Ay.div.withConfig({displayName:"StyledTimeStamp"})(tr||(tr=L()(["\n font-size: ",";\n"])),M.hs.font(-2)),lr=F.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(nr||(nr=L()(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),M.hs.space(-.5),M.t7.color("paper"),M.t7.color("secondaryLight"),M.t7.radii("menu"),vn,M.t7.color("text"),yn,M.t7.color("textLighter"),(0,M.Ed)());var dr={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const fr=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,ve.useRef)(null),u=hn.A.selectUnit(new Date(o.timestamp)),l=(0,ve.useState)((function(){return o.read})),d=kt()(l,1)[0];return t=c,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){kt()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,ve.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,V.jsxs)(or,{ref:c,read:d,"data-cy":"notification-item",children:[(0,V.jsxs)(ar,{notificationType:o.type,children:[(0,V.jsx)(ir,{children:(0,V.jsx)(M.In,{icon:dr[o.type]})}),(0,V.jsx)(sr,{children:(0,V.jsx)(M.o5.H5,{children:o.title})})]}),(0,V.jsx)($n,{notification:o,navigationStrategy:s,cancelTask:i}),(0,V.jsx)(ur,{children:(0,V.jsx)(z.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var pr,hr,mr,gr;const vr=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,s=e.navigationStrategy,c=(0,ve.useRef)(null);(0,ve.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==f.outputjob||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,V.jsx)(fr,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,V.jsxs)(lr,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[pr||(pr=(0,V.jsx)(cr,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(hr||(hr=(0,V.jsx)(M.kt,{}))),u.length>0&&!r&&(mr||(mr=(0,V.jsx)(M.o5.I,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(gr||(gr=(0,V.jsx)(M.o5.I,{children:(0,V.jsx)(z.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};var yr={loadNotifications:function(){return{type:He,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Je,cancelTask:Ze};const br=(0,E.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),yr)(vr);var wr="notification/CONFIRM",Or="notification/YES_NO_QUESTION",xr="notification/INFO",kr="notification/CONNECT_SOCKET",Sr="notification/CLOSE_SOCKET",Er="notification/SOCKET_MESSAGE_RECEIVED",Pr="notification/ADD_IGNORE_TOASTER",Dr=function(e){return{type:Er,payload:{data:e}}},_r=function(e){return{type:Pr,payload:{key:e}}};const jr={SYNC_ACTION:"sync-action"};var Cr=n(14644),Tr=n(37954),Mr=n(6730),Ar=i().mark(Rr),Ir=i().mark(Nr);function Rr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(fn,Nr),(0,s.jP)(pn,Nr)]);case 3:case"end":return t.stop()}}),Ar)}function Nr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),Ir)}var Lr=n(80299),Fr=n.n(Lr);function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wr=o()(o()(o()(o()(o()(o()({},Be,(function(e,t){var n=t.payload.notifications;return Br(Br({},e),{},{notifications:Br(Br({},e.notifications),n),isLoadingMoreNotifications:!1})})),We,Tr.A.singleTransferReducer("moreNotificationsAvailable")),Ye,(function(e,t){var n=t.payload.notification;return Br(Br({},e),{},{notifications:Br(Br({},e.notifications),{},o()({},n.key,n))})})),Le,Tr.A.singleTransferReducer("unreadNotificationKeys")),Fe,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):Fr()(e.unreadNotificationKeys,[o]),Br(Br({},e),{},{unreadNotificationKeys:n})})),Ue,Tr.A.singleTransferReducer("isLoadingMoreNotifications")),Yr={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yr,t=arguments.length>1?arguments[1]:void 0,n=Wr[t.type];return n?n(e,t):e}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qr=i().mark(Kr),Gr=i().mark(Qr),$r=10;function Kr(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.T1)(Qr),(0,s.jP)(He,Xr),(0,s.jP)(ze,Jr),(0,s.jP)(Ve,Zr)]);case 3:case"end":return t.stop()}}),qr)}function Qr(){var e,t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,s.T1)(c.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,s.yJ)(qe(n));case 7:case"end":return r.stop()}}),Gr)}function Xr(e){var t=e.payload.offset;return i().mark((function e(){var n,r,a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.yJ)(Xe());case 2:return n={_limit:$r,_offset:t},e.next=5,(0,s.T1)(c.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,s.Q7)(r.body.data.map((function(e){return(0,s.T1)(k,e)})));case 8:if(a=e.sent,u=a.reduce((function(e,t){return Vr(Vr({},e),{},o()({},t.key,t))}),{}),!(Object.keys(u).length<$r)){e.next=13;break}return e.next=13,(0,s.yJ)(Ke(!1));case 13:return e.next=15,(0,s.yJ)($e(u));case 15:case"end":return e.stop()}}),e)}))()}function Jr(e){var t=e.payload.notificationKey;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,s.T1)(c.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Zr(e){var t=e.payload.taskExecutionKey;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(c.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var eo=n(39892),to=n.n(eo),no=["primary","callback","label"];function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ao=function(e){var t=e.buttons;return(0,V.jsx)(De,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=to()(e,no);return(0,ve.createElement)(Pe,oo(oo({},n?{ink:M.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function io(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,s=e.defaultAction,c=void 0===s?"submit":s,u=(0,it.v4)();return _(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===c?a():"cancel"===c&&i(),t()):"Escape"===e.key&&(i(),t())};(0,ve.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var s=[{label:r,primary:"submit"===c,look:"submit"===c?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===c,look:"cancel"===c?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,V.jsx)(ao,{buttons:s})}),!0,i)}function so(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,s=e.onCancel,c=(0,it.v4)();return _(c,t,n,(function(e){var t=e.close,n=function(){i(),t()};(0,M.c2)(n);var s=[{label:r,callback:function(){a(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,V.jsx)(ao,{buttons:s})}),!0,s)}function co(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,it.v4)();return _(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,ve.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,V.jsx)(ao,{buttons:a})}),!1)}var uo=i().mark(fo),lo=i().mark(go);function fo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,s.Q7)([(0,s.jP)(wr,po),(0,s.jP)(Or,ho),(0,s.jP)(xr,mo)]);case 3:t.next=7;break;case 5:return t.next=7,(0,s.Q7)([(0,s.jP)(wr,go),(0,s.jP)(Or,go),(0,s.jP)(xr,go)]);case 7:case"end":return t.stop()}}),uo)}function po(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(io,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function ho(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(so,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function mo(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(co,t);case 2:return n=e.sent,e.next=5,(0,s.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function go(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),lo)}var vo=i().mark(bo),yo=i().mark(wo);function bo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(P,wo),(0,s.jP)(D,wo)]);case 3:case"end":return t.stop()}}),vo)}function wo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),yo)}var Oo=n(21259),xo=n.n(Oo);function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eo={overlays:[]},Po=function(e){return function(t,n){var r=n.payload.id;return So(So({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},Do=o()(o()(o()(o()({},P,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,s=n.cancelable,c=n.cancelCallback;return So(So({},e),{},{overlays:[].concat(xo()(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:s,cancelCallback:c,type:A.MODAL}])})})),D,Po(A.MODAL)),fn,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return So(So({},e),{},{overlays:[].concat(xo()(e.overlays),[{id:r,title:o,body:a,type:A.BLOCKER}])})})),pn,Po(A.BLOCKER));function _o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eo,t=arguments.length>1?arguments[1]:void 0,n=Do[t.type];return n?n(e,t):e}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var To=o()({},Pr,(function(e,t){var n=t.payload.key;return Co(Co({},e),{},{ignoredToasters:xo()(new Set([].concat(xo()(e.ignoredToasters),[n])))})})),Mo={ignoredToasters:[]};function Ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mo,t=arguments.length>1?arguments[1]:void 0,n=To[t.type];return n?n(e,t):e}var Io=n(19383),Ro=n(61502);function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Lo="socket-msg-",Fo=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Lo).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,V.jsx)($n,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return W.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===f.outputjob}(e)?{duration:-1}:{})},Ho=i().mark(zo),Bo=i().mark(Vo),Wo=i().mark(qo),Yo=function(e){return e.notification.socket},Uo=function(e){return e.notification.toaster.toasters};function zo(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,s.Q7)([(0,s.jP)(Er,Go),(0,s.jP)(tt,$o),(0,s.jP)(kr,Vo),(0,s.jP)(Sr,qo)]);case 3:case"end":return t.stop()}}),Ho)}function Vo(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.T1)(Io.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,s.T1)(Ro.A.connectSocket,{name:"notification",messageReceivedAction:Dr,originId:e});case 5:case"end":return t.stop()}}),Bo)}function qo(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(Ro.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Wo)}function Go(e){var t=e.payload.data;return i().mark((function e(){var n,r,o,a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.T1)(k,t);case 2:return n=e.sent,e.next=5,(0,s.Lt)(Yo);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==Io.A.getOriginId()){e.next=16;break}return e.next=11,(0,s.T1)(Fo,n);case 11:if(c=e.sent,o.includes(c.key)||n.read){e.next=16;break}return e.next=15,(0,s.yJ)(rt(c));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,s.yJ)(Ge(n.key,n.read));case 19:return e.next=21,(0,s.yJ)(Qe(n));case 21:case"end":return e.stop()}}),e)}))()}function $o(e){var t=e.payload,n=t.key,r=t.manually;return i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Lo)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,s.yJ)(_r(n));case 4:return e.next=6,(0,s.Lt)(Uo);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Lo,""),e.next=11,(0,s.yJ)(Je(t));case 11:case"end":return e.stop()}}),e)}))()}var Ko=n(85735),Qo=n.n(Ko);function Xo(e){var t=function(e,t){if("object"!=Qo()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qo()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qo()(t)?t:t+""}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ea=o()(o()({},et,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(d).includes(e.type)?e.type:d.neutral;return ct(ct(ct(ct(ct({type:t,key:e.key||(0,it.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||p[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:vt(e.duration,t),time:e.time instanceof Date?e.time:new Date},e.source&&{source:e.source})}(t.payload.toaster),r=e.toasters[n.key];return!r||function(e){return e.source!==jr.SYNC_ACTION}(r)?Zo(Zo({},e),{},{toasters:Zo(Zo({},e.toasters),{},o()({},n.key,n))}):e})),nt,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],to()(r,[n].map(Xo)));return Zo(Zo({},e),{},{toasters:Zo({},o)})})),ta={toasters:{}};function na(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta,t=arguments.length>1?arguments[1]:void 0,n=ea[t.type];return n?n(e,t):e}var ra=i().mark(aa),oa=i().mark(ia);function aa(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,s.Q7)([(0,s.jP)(tt,sa)]);case 3:t.next=7;break;case 5:return t.next=7,(0,s.Q7)([(0,s.jP)(et,ia),(0,s.jP)(tt,ia)]);case 7:case"end":return t.stop()}}),ra)}function ia(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.yJ)(Mr.A.emitAction(e));case 2:case"end":return t.stop()}}),oa)}function sa(e){var t=e.payload,n=t.key;t.manually;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.yJ)(at(n));case 2:case"end":return e.stop()}}),e)}))()}const ca={transformNotificationResult:S,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&Tr.A.injectReducers(e,{notification:(0,Cr.HY)({socket:Ao,toaster:na,center:Ur,overlay:_o})}),e.sagaMiddleware.run(Rr,t),e.sagaMiddleware.run(fo,t),e.sagaMiddleware.run(bo,t),e.sagaMiddleware.run(zo,t),e.sagaMiddleware.run(aa,t),t&&r&&e.sagaMiddleware.run(Kr)},Notifications:en,NotificationCenter:br,confirm:function(e,t,n,r,o,a,i){return{type:wr,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:Or,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:xr,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:fn,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:pn,payload:{id:e}}},modal:_,removeModal:j,toaster:rt,removeToaster:ot,connectSocket:function(){return{type:kr}},closeSocket:function(){return{type:Sr}},toasterSources:jr}},63205:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ot});var r=n(65044),o=n.n(r),a=n(82274),i=n.n(a),s=n(65611),c=n.n(s),u=n(18337),l=n.n(u),d=n(56994),f=n.n(d);function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}const h=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),p(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));function m(e,t,n){return t=l()(t),c()(e,g()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}const v=function(e){function t(){return i()(this,t),m(this,t,arguments)}return f()(t,e),o()(t)}(h);function y(e,t,n){return t=l()(t),c()(e,b()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}const w=function(e){function t(){return i()(this,t),y(this,t,arguments)}return f()(t,e),o()(t)}(h);var O=n(21259),x=n.n(O),k=n(22056),S=n.n(k),E=n(26396),P=n.n(E),D=n(92207),_=n.n(D),j=n(58156),C=n.n(j),T=n(23805),M=n.n(T),A=n(23181),I=n.n(A),R=n(40860),N=n.n(R),L=n(43786),F=n(43806),H=n(90179),B=n.n(H),W=n(23228),Y=n(88691),U=n(99208),z=n(93419),V=n(60085),q=n(27701),G=n(8271);function $(e,t,n){return t=l()(t),c()(e,K()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K=function(){return!!e})()}const Q=function(e){function t(e){var n;return i()(this,t),(n=$(this,t)).message=e,n}return f()(t,e),o()(t)}(h);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=412,ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!(e.ok||n.includes(e.status)||e.body&&t.includes(e.body.errorCode))){if(409===e.status&&e.body.information)throw new Q(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.json()},n=e.ok,r=e.headers,o=e.status,a={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?J(J({},a),{},{body:null}):t(e).then((function(e){return J(J({},a),{},{body:e})})).catch((function(e){return J(J({},a),{},{body:null})}))},ne=function(e){return te(e,(function(e){return e.blob()}))},re=function(e){return J(J({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:G.A.abortController.signal})};function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r.push(Z),fetch(e,re(t)).then((function(e){return te(e)})).then((function(e){return ee(e,n,r)}))}function ae(e,t,n,r){return fetch(e,re(t)).then((function(e){return ne(e)})).then((function(e){return ee(e,n,r)}))}var ie=_().mark(de),se=_().mark(pe),ce=_().mark(he),ue={ConfirmQuestionHandler:pe,YesNoQuestionHandler:he};function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.addBlockingInfoAction,a=r.removeBlockingInfoAction;return _().mark((function r(){var i,s;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("GET"!==t.options.method&&"HEAD"!==t.options.method){r.next=2;break}return r.abrupt("return",e);case 2:i={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,(0,L.T1)(de,e.body.clientQuestion);case 6:if(null!=(s=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new v("Client question cancelled by user");case 13:if(i[e.body.clientQuestion.id]=s.answer,t.options.body=JSON.stringify({clientAnswers:i,payload:n.body}),!o){r.next=18;break}return r.next=18,(0,L.yJ)(o);case 18:return r.next=20,(0,L.T1)(oe,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,(0,L.yJ)(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),r)}))()}function de(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=ue[e.handler])){n.next=5;break}return n.next=4,(0,L.T1)(t,e);case 4:return n.abrupt("return",n.sent);case 5:throw new Error("No question handler found for client question",e);case 6:case"end":return n.stop()}}),ie)}var fe=function(e){return{answer:e}};function pe(e){var t,n,r,o,a,i,s;return _().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,L.T1)(q.Ix);case 2:return t=c.sent,n=function(){return t.put(fe(!0))},r=function(){return t.put(fe(null))},o=e.header,a=e.message,i=e.okText,s=e.cancelText,c.next=8,(0,L.yJ)(V.A.confirm(o,a,i,s,n,r));case 8:return c.next=10,(0,L.s)(t);case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}}),se)}function he(e){var t,n,r,o,a,i,s,c;return _().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,L.T1)(q.Ix);case 2:return t=u.sent,n=function(){return t.put(fe(!0))},r=function(){return t.put(fe(!1))},o=function(){return t.put(fe(null))},a=e.header,i=e.message,s=e.yesText,c=e.noText,u.next=9,(0,L.yJ)(V.A.yesNoQuestion(a,i,s,c,n,r,o));case 9:return u.next=11,(0,L.s)(t);case 11:return u.abrupt("return",u.sent);case 12:case"end":return u.stop()}}),ce)}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=_().mark(we),ye=_().mark(xe),be=function(e){var t=Object.keys(e||{}).filter((function(t){return!!e[t]})).sort((function(e,t){return e.localeCompare(t)})).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&");return t?"?".concat(t):""};function we(e){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Q)){t.next=5;break}return t.next=3,(0,L.yJ)(V.A.toaster({type:"info",title:"client.common.information",body:e.message}));case 3:t.next=6;break;case 5:throw e;case 6:case"end":return t.stop()}}),ve)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _().mark((function n(){var r,o,a,i,s;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(xe,t);case 2:return n.next=4,(0,L.T1)(ke,e,t);case 4:return r=n.sent,n.next=7,(0,L.T1)(Se,t);case 7:if(o=n.sent,a=o.addBlockingInfoAction,i=o.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,(0,L.yJ)(a);case 13:return n.next=15,(0,L.T1)(oe,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(s=n.sent,!i){n.next=19;break}return n.next=19,(0,L.yJ)(i);case 19:return n.next=21,(0,L.T1)(le,s,r,t,o);case 21:return s=n.sent,n.abrupt("return",s);case 25:if(n.prev=25,n.t0=n.catch(9),!i){n.next=30;break}return n.next=30,(0,L.yJ)(i);case 30:return n.next=32,we(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function xe(e){var t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null!==(t=e.queryParams)&&void 0!==t&&t.locale){r.next=5;break}return r.next=3,(0,L.Lt)(Y.A.localeSelector);case 3:n=r.sent,e.queryParams=ge(ge({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),ye)}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,a=void 0===o?"GET":o,i=t.backendUrl,s=void 0===i?W.A.getBackendUrl():i,c=U.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=ge({method:a,headers:c,credentials:"include"},u?{body:u}:{}),d=be(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?U.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function Se(e){var t=e.blockingInfoTitle;return _().mark((function e(){var n,r,o,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,(0,L.T1)(z.v4);case 3:return n=e.sent,r=t,o=V.A.blockingInfo(n,r),a=V.A.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:o,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var Ee=_().mark(_e),Pe=_().mark(je),De=_().mark(Ce);function _e(){var e,t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/settings");case 2:return e=n.sent,t=B()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),Ee)}function je(){var e,t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/settings");case 2:return e=n.sent,t=B()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),Pe)}function Ce(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,L.T1)(_e);case 7:return t=r.sent,n=t.maxLimit,F.A.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),De)}var Te=_().mark(Ve),Me=_().mark(qe),Ae=_().mark(Ge),Ie=_().mark(et),Re=_().mark(ct),Ne=_().mark(ut),Le=_().mark(lt),Fe=_().mark(dt),He=_().mark(ft),Be=_().mark(pt),We=_().mark(ht);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ye(Object(n),!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze="nice2.web.core.useSelectorsByDefault";function Ve(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,(0,L.T1)(Oe,"client/property",{method:"POST",body:{propertyNames:[ze]}});case 7:return t=r.sent,n=t.body.loadedProperties[ze],F.A.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),Te)}function qe(e,t){var n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,(0,L.T1)(Oe,"entities/2.0/".concat(e,"/").concat(t),n);case 4:return r.abrupt("return",!0);case 7:return r.prev=7,r.t0=r.catch(1),r.abrupt("return",!1);case 10:case"end":return r.stop()}}),Me,null,[[1,7]])}function Ge(e,t,n,r,o){var a,i;return _().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return a={method:"POST",queryParams:{_paths:r.join(",")},body:{entityName:o,type:"ID",ids:n}},s.next=3,(0,L.T1)(Oe,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return i=s.sent,s.abrupt("return",i.body.displayExpressions.reduce((function(e,t){return Ue(Ue({},e),{},P()({},t.key,t.displayExpressions))}),{}));case 5:case"end":return s.stop()}}),Ae)}var $e=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function Ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return _().mark((function r(){var o,a;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.entries(e).map((function(e){var n=S()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===F.A.getObjectCache("display",$e(r,e,t))})),displays:o.map((function(e){return{key:e,display:F.A.getObjectCache("display",$e(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,Xe(o,t,n);case 3:return a=r.sent,r.abrupt("return",o.reduce((function(e,t){var n=t.model,r=t.displays;return Ue(Ue({},e),{},P()({},n,Ue(Ue({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return Ue(Ue({},e),{},P()({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),r)}))()}function Qe(e,t){Object.entries(e).forEach((function(e){var n=S()(e,2),r=n[0];n[1].forEach((function(e){return F.A.removeObjectCache("display",$e(r,e,t))}))}))}function Xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return _().mark((function r(){var o,a,i,s,c;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=e.filter((function(e){return e.keys.length>0})).map((function(e){return{model:e.model,keys:e.keys}}))).length>0)){r.next=12;break}return a={method:"POST",body:{data:o},queryParams:{_ignoreFallback:n}},i=t?"/".concat(t):"",r.next=6,(0,L.T1)(Oe,"entities/2.0/displays".concat(i),a);case 6:return s=r.sent,c=s.body.data.reduce((function(e,t){var n=t.model,r=t.values;return Ue(Ue({},e),{},P()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return Ue(Ue({},e),{},P()({},n,r))}),{})))}),{}),Object.entries(c).forEach((function(e){var n=S()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=S()(e,2),o=n[0],a=n[1];F.A.addObjectCache("display",$e(r,o,t),a)}))})),r.abrupt("return",c);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),r)}))()}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _().mark((function r(){var o,a,i,s,c,u,l;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.method,a=void 0===o?"POST":o,i=n.endpoint,r.next=3,(0,L.T1)(ot,t);case 3:return s=r.sent,c=(i||"entities/2.0/".concat(e))+"/count",u=Ue({method:a},"GET"===a?{queryParams:it(s)}:{body:s}),r.next=8,(0,L.T1)(Oe,c,u);case 8:return l=r.sent,r.abrupt("return",l.body.count);case 10:case"end":return r.stop()}}),r)}))()}function Ze(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rt;return _().mark((function a(){var i,s;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=Ue({method:e,queryParams:Ue({_omitLinks:!0,_allKeys:t},"GET"===e&&it(n))},"POST"===e&&{body:n}),a.next=3,(0,L.T1)(Oe,r,i);case 3:return s=a.sent,a.next=6,(0,L.T1)(o,s.body);case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)}))()}function et(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),Ie)}var tt=function(e){var t={name:e.name,label:e.label,markable:e.markable,useNiceFields:e.useNiceFields,keyField:e.keyField,paths:{}};return e.fields.forEach((function(e){t.paths[e.fieldName]=Ue({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=Ue({type:"relation"},e)})),t},nt=function(e){return e.form},rt=function(e){return e.data},ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,a=e.search,i=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),a?{search:a}:{}),i?{sort:at(i)}:{}),s&&o?{offset:(s-1)*o}:{}),c?{paths:c}:{}),u?{where:u}:{}),Array.isArray(l)?{relations:0===l.length?"!":l}:{}),d?{filter:d}:{}),f?{keys:f}:{}),p?{constriction:p}:{})},at=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},it=function(e){return N()(e,(function(e,t,n){var r={};return"conditions"===n?r=st(t):r["_"+n]=Array.isArray(t)?t.join(","):t,Ue(Ue({},e),r)}),{})},st=function(e){return N()(e,(function(e,t,n){return Ue(Ue({},e),{},P()({},n,M()(t)&&t.value?t.value:t))}),{})};function ct(){var e,t,n,r,o;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,L.T1)(Oe,"principals");case 2:return e=a.sent,t=e.body,n=t.username,r=t.businessUnit,o={username:n,currentBusinessUnit:r},a.abrupt("return",o);case 6:case"end":return a.stop()}}),Re)}function ut(e){var t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,(0,L.T1)(Oe,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),Ne)}function lt(e,t){var n,r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"GET"},o.next=3,(0,L.T1)(Oe,"client/markings/".concat(e,"/").concat(t),n);case 3:return r=o.sent,o.abrupt("return",r.body.marked);case 5:case"end":return o.stop()}}),Le)}function dt(e,t,n){var r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"PATCH",body:{marked:n}},o.next=3,(0,L.T1)(Oe,"client/markings/".concat(e,"/").concat(t),r);case 3:case"end":return o.stop()}}),Fe)}function ft(e,t){var n,r;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},o.next=3,(0,L.T1)(Oe,"client/markings",n);case 3:return r=o.sent,o.abrupt("return",r.body.markings);case 5:case"end":return o.stop()}}),He)}function pt(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,L.T1)(Oe,"locales");case 5:return t=r.sent,n=t.body.locales,F.A.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),Be)}function ht(){var e,t,n;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=F.A.getLongTerm("server","modules"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,(0,L.T1)(Oe,"modules");case 5:return t=r.sent,n=t.body.modules,F.A.addLongTerm("server","modules",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),We)}var mt=_().mark(yt),gt=_().mark(bt),vt=_().mark(wt);function yt(e){var t;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),mt)}function bt(e){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,L.T1)(Oe,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),gt)}function wt(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.T1)(Oe,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),vt)}const Ot={requestSaga:Oe,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _().mark((function n(){var r;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(xe,t);case 2:return n.next=4,(0,L.T1)(ke,e,t);case 4:return r=n.sent,n.prev=5,n.next=8,(0,L.T1)(ae,r.url,r.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 8:return n.abrupt("return",n.sent);case 11:return n.prev=11,n.t0=n.catch(5),n.next=15,we(n.t0);case 15:return n.abrupt("return",{});case 16:case"end":return n.stop()}}),n,null,[[5,11]])}))()},simpleRequest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ke(e,t);return oe(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:v,ForbiddenException:w,InformationError:Q,fetchEntity:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return _().mark((function a(){var i,s,c,u,l,d,f,p;return _().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,L.T1)(Ve);case 2:return i=a.sent,s=r.method,c=void 0===s?"POST":s,u=r.useSelectors,l=void 0===u?i:u,a.next=6,(0,L.T1)(ot,n);case 6:return d=a.sent,f=Ue({method:c,queryParams:Ue({_omitLinks:!0,_useSelectors:l},"GET"===c&&Ue(Ue({},it(d)),{},{_permissions:!0}))},"POST"===c&&{body:Ue(Ue({},d),{},{permissions:!0})}),a.next=10,(0,L.T1)(Oe,"entities/2.0/".concat(e,"/").concat(t),f);case 10:return p=a.sent,a.next=13,(0,L.T1)(o,p.body);case 13:return a.abrupt("return",a.sent);case 14:case"end":return a.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;return _().mark((function o(){var a,i,s,c,u,l,d,f,p,h;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,L.T1)(Ce);case 2:return a=o.sent,i=n.method,s=void 0===i?"POST":i,c=n.endpoint,u=n.allKeys,o.next=6,(0,L.T1)(Je,e,t,n);case 6:return l=o.sent,d=u?1:Math.ceil(l/a),f=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),p=I()(d).map((function(e){return e+1})).map((function(e){return Ue(Ue({},t),{},{page:e,limit:a})})).map(ot).map((function(e){return(0,L.T1)(Ze,s,u,e,f,r)})),o.next=12,(0,L.Q7)(p);case 12:return h=o.sent,o.abrupt("return",h.reduce((function(e,t){return[].concat(x()(e),x()(t))}),[]));case 14:case"end":return o.stop()}}),o)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;return _().mark((function o(){var a,i,s,c,u,l;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.method,i=void 0===a?"POST":a,s=n.endpoint,c=n.allKeys,o.next=3,(0,L.T1)(ot,t);case 3:return u=o.sent,l=s||"entities/2.0/".concat(e).concat("POST"===i?"/search":""),o.next=7,(0,L.T1)(Ze,i,c,u,l,r);case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),o)}))()},fetchDisplay:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _().mark((function o(){return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=C(),o.next=3,Ke(P()({},e,[t]),n,r);case 3:return o.t1=o.sent,o.t2="".concat(e,".").concat(t),o.abrupt("return",(0,o.t0)(o.t1,o.t2,null));case 6:case"end":return o.stop()}}),o)}))()},invalidateDisplay:function(e,t,n){Qe(P()({},e,[t]),n)},fetchDisplays:Ke,invalidateDisplays:Qe,fetchDisplayExpressions:Ge,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return _().mark((function o(){var a,i,s,c;return _().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===r&&(r="create"===t),a="".concat(e,"/").concat(t),void 0===F.A.getObjectCache("forms",a)||r){o.next=4;break}return o.abrupt("return",F.A.getObjectCache("forms",a));case 4:return i=Ue(Ue({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),o.next=7,(0,L.T1)(Oe,"forms/".concat(a),i);case 7:if(s=o.sent,!n||404!==s.status){o.next=11;break}return F.A.addObjectCache("forms",a,null),o.abrupt("return",null);case 11:return o.next=13,(0,L.T1)(nt,s.body);case 13:return c=o.sent,F.A.addObjectCache("forms",a,c),o.abrupt("return",c);case 16:case"end":return o.stop()}}),o)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return _().mark((function n(){var r,o,a;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=F.A.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",r);case 3:return n.next=5,(0,L.T1)(Oe,"entities/".concat(e,"/model"));case 5:return o=n.sent,n.next=8,(0,L.T1)(t,o.body);case 8:return a=n.sent,F.A.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:tt,fetchEntityCount:Je,fetchSearchFilters:et,buildRequestQuery:ot,requestQueryToUrlParams:it,fetchPrincipal:ct,fetchUserPreferences:yt,deleteUserPreferences:bt,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return _().mark((function n(){return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,L.T1)(Oe,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:wt,fetchServerSettings:_e,fetchServerRevision:je,fetchServerMaxLimit:Ce,createSortingString:at,fetchMarkings:ut,fetchMarked:lt,setMarked:dt,setSelectionMarked:ft,entityExists:qe,fetchLocales:pt,fetchModules:ht}},61502:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),s=n(27701),c=n(43786),u=n(73082),l=n(23228),d=i().mark(m);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h={};function m(e){var t,n,r;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,c.T1)(v,e.name,e.originId);case 2:return t=o.sent,o.next=5,(0,c.T1)(g,p(p({},e),{},{url:t}));case 5:n=o.sent;case 6:return o.next=9,(0,c.s)(n);case 9:return r=o.sent,o.next=12,(0,c.yJ)(r);case 12:o.next=6;break;case 14:case"end":return o.stop()}}),d)}var g=function(e){return(0,s.Od)((function(t){var n=function(){var r=e.url,o=e.messageReceivedAction,a=e.name;h[a]=new WebSocket(r),h[a].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},h[a].onclose=function(e){1e3!==e.code&&n()},h[a].onerror=function(e){u.A.log("socket error",e)}};return n(),function(){}}))},v=function(e,t){var n=(l.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const y={connectSocket:m,closeSocket:function(e){h[e].close(1e3)}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,menuEntries:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},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",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},59492:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39316);const o=function(e){return(0,r.A)(e)};const a={shouldForwardProp:function(e,t){return"string"!=typeof t||o(e)},isPropValid:o}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r,o=n(72189),a=n.n(o),i=n(87716).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=a()([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>p.i,A:()=>f});var r,o=n(26396),a=n.n(o),i=n(4883),s=n.n(i),c=n(74848);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=(0,i.lazy)((function(){return Promise.all([n.e(310),n.e(103),n.e(916)]).then(n.bind(n,8264))}));const f=function(e){return(0,c.jsx)(i.Suspense,{fallback:r||(r=(0,c.jsx)(s().Fragment,{})),children:(0,c.jsx)(d,l({},e))})};var p=n(93564)},88357:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>g,Ay:()=>d});n(5556);var r,o=n(47850),a=n(17656),i=n(72189),s=n.n(i),c=n(87716);const u=c.Ay.a.withConfig({displayName:"StyledLink"})(r||(r=s()(["\n ","\n ","\n\n && {\n color: ",";\n text-decoration: ",";\n\n &:hover,\n &:focus {\n text-decoration: ",";\n }\n\n &:active {\n text-decoration: ",";\n }\n }\n"])),(0,a.Ed)(),(function(e){return e.breakWords?(0,a.KV)():(0,a.sb)()}),a.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));var l=n(74848);const d=function(e){var t=e.alt,n=e.breakWords,r=void 0===n||n,i=e.download,s=e.href,c=void 0===s?"#":s,d=e.neutral,f=e.onClick,p=e.rel,h=e.tabIndex,m=e.target,g=void 0===m?"_self":m,v=e.title,y=e.label,b=e.icon,w=e.children,O=e.useTitle,x=void 0===O||O,k=v||(r?void 0:y);return(0,l.jsxs)(u,{alt:t,breakWords:r,download:i,href:c,neutral:d,onClick:f,rel:p,tabIndex:h,target:g,title:x?k:void 0,children:[b&&(0,l.jsx)(o.A,{icon:b,position:a.xX.position.PREPEND}),y||w]})};var f,p,h=n(92648),m=(0,c.AH)(f||(f=s()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,a.Ed)(),a.t7.color("secondary"),a.t7.color("text"),a.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?a.t7.color("text"):a.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));const g=(0,c.Ay)(h.N_)(p||(p=s()(["\n ","\n"])),m)},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>Y,AE:()=>U,C$:()=>L,F1:()=>V,Gw:()=>R,Js:()=>$,Li:()=>N,MM:()=>I,Ng:()=>z,QF:()=>T,aB:()=>M,fN:()=>B,oY:()=>W,or:()=>_,pR:()=>j,rY:()=>C,rs:()=>F,v8:()=>H,vB:()=>A,vr:()=>q,zG:()=>G});var r,o,a,i,s,c,u,l,d,f,p,h,m,g,v,y,b,w,O,x,k,S=n(72189),E=n.n(S),P=n(87716),D=n(17656),_=P.Ay.b.withConfig({displayName:"StyledB"})(r||(r=E()(["\n && {\n ","\n }\n ","\n"])),(0,D.Ed)({fontWeight:D.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),j=P.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=E()(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),D.t7.color("backgroundTypographyCode"),D.t7.radii("form"),D.hs.space(-4),D.hs.space(-2)),C=P.Ay.del.withConfig({displayName:"StyledDel"})(a||(a=E()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),T=P.Ay.em.withConfig({displayName:"StyledEm"})(i||(i=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),M=P.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(s||(s=E()(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-2),D.hs.space(-1)),A=P.Ay.i.withConfig({displayName:"StyledI"})(c||(c=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),I=P.Ay.ins.withConfig({displayName:"StyledIns"})(u||(u=E()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),R=P.Ay.label.withConfig({displayName:"StyledLabel"})(l||(l=E()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-1)),N=P.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=E()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),color:D.t7.color("paper")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.t7.color("signal.info"),D.t7.radii("form"),D.hs.space(-4),D.hs.space(-2)),L=P.Ay.p.withConfig({displayName:"StyledP"})(f||(f=E()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.hs.space(-1)),F=P.Ay.pre.withConfig({displayName:"StyledPre"})(p||(p=E()(["\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,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}),D.t7.color("backgroundTypographyCode"),D.t7.radii("form"),D.t7.color("border"),D.hs.space(-1),D.hs.space(-3),D.hs.space(-2)),H=P.Ay.s.withConfig({displayName:"StyledS"})(h||(h=E()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),B=P.Ay.small.withConfig({displayName:"StyledSmall"})(m||(m=E()(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,D.Ed)(),D.t7.fontSize("factor"),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),W=P.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),Y=P.Ay.sub.withConfig({displayName:"StyledSub"})(v||(v=E()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),U=P.Ay.sup.withConfig({displayName:"StyledSup"})(y||(y=E()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,D.Ed)({fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),z=P.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontWeight:D.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),V=P.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),q=P.Ay.u.withConfig({displayName:"StyledU"})(O||(O=E()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),G=P.Ay.var.withConfig({displayName:"StyledVar"})(x||(x=E()(["\n && {\n ","\n ","\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,D.Ed)({fontFamily:D.t7.fontFamily("monospace"),fontSize:D.hs.font(-1)}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),$=P.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=E()(["\n && {\n ","\n ","\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,D.Ed)(),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()}))},60284:(e,t,n)=>{"use strict";n.d(t,{pR:()=>L.pR,rd:()=>k,Gw:()=>L.Gw,vx:()=>A,oY:()=>L.oY,dV:()=>N,gv:()=>W,Ay:()=>Y});n(5556);var r,o,a,i,s,c,u,l,d,f,p,h,m,g,v=n(17656),y=n(72189),b=n.n(y),w=n(87716),O=function(e){var t;switch(e.styledLike){case"H1":t=v.hs.font(5)(e);break;case"H2":t=v.hs.font(4)(e);break;case"H3":t=v.hs.font(3)(e);break;case"H4":t=v.hs.font(2)(e);break;case"H5":t=v.hs.font(1)(e);break;default:t=v.hs.font(0)(e)}return(0,v.Ed)({fontWeight:v.w4.fontWeight("bold"),fontSize:t})},x=function(e){return(0,w.AH)(r||(r=b()(["\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"])),v.hs.space(0),v.hs.space(-1))},k=w.Ay.h1.withConfig({displayName:"StyledH1"})(o||(o=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),S=w.Ay.h2.withConfig({displayName:"StyledH2"})(a||(a=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),E=w.Ay.h3.withConfig({displayName:"StyledH3"})(i||(i=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),P=w.Ay.h4.withConfig({displayName:"StyledH4"})(s||(s=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),D=w.Ay.h5.withConfig({displayName:"StyledH5"})(c||(c=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),_=w.Ay.h6.withConfig({displayName:"StyledH6"})(u||(u=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return O(e)}),(function(e){return x()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),j=n(74848),C=w.Ay.dd.withConfig({displayName:"StyledDd"})(l||(l=b()(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,v.Ed)(),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),T=w.Ay.dl.withConfig({displayName:"StyledDl"})(d||(d=b()(["\n && {\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),v.hs.space(-1)),M=w.Ay.dt.withConfig({displayName:"StyledDt"})(f||(f=b()(["\n && {\n ","\n ","\n margin: 0;\n }\n"])),(0,v.Ed)({fontWeight:v.w4.fontWeight("bold")}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),A=w.Ay.li.withConfig({displayName:"StyledLi"})(p||(p=b()(["\n && {\n ","\n ","\n }\n"])),(0,v.Ed)(),(0,v.KV)()),I=w.Ay.ol.withConfig({displayName:"StyledList"})(h||(h=b()(["\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"])),v.hs.space(-1),v.hs.space(-.1)),R=(0,w.Ay)(I).withConfig({displayName:"StyledOl"})(m||(m=b()(["\n list-style-type: decimal;\n"]))),N=(0,w.Ay)(I).withConfig({displayName:"StyledUl"})(g||(g=b()(["\n && {\n list-style-type: disc;\n }\n"]))),L=n(5016),F=function(e,t,n){return!t||e?void 0:(0,v.GV)(n)},H=n(58156),B=n.n(H),W=function(e,t){var n="\n color: ".concat(v.w4.color("text")(e),";\n font-family: ").concat(v.w4.fontFamily("regular")(e),";\n font-size: ").concat(v.hs.font(0)(e),";\n font-style: ","normal",";\n font-weight: ").concat(v.w4.fontWeight("regular")(e),";\n line-height: ").concat(v.w4.lineHeight("regular")(e),";\n\n a {\n color: ").concat(v.w4.color("secondary")(e),";\n\n &:hover,\n &:focus {\n color: ").concat(B()(e.theme,"colors.secondaryLight"),";\n text-decoration: underline;\n }\n\n &:active {\n color: ").concat(B()(e.theme,"colors.secondary"),";\n }\n }\n\n b,\n strong {\n font-weight: ").concat(v.w4.fontWeight("bold")(e),"\n }\n\n em,\n i {\n font-style: italic;\n }\n\n u {\n text-decoration: underline;\n }\n\n h1 {font-size: ").concat(v.hs.font(5)(e),";}\n h2 {font-size: ").concat(v.hs.font(4)(e),";}\n h3 {font-size: ").concat(v.hs.font(3)(e),";}\n h4 {font-size: ").concat(v.hs.font(2)(e),";}\n h5 {font-size: ").concat(v.hs.font(1)(e),";}\n h6 {font-size: ").concat(v.hs.font(0)(e),";}\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: ").concat(v.w4.fontWeight("bold")(e),";\n margin-top: ").concat(v.hs.space(0)(e),";\n margin-bottom: ").concat(v.hs.space(-1)(e),";\n\n + h1,\n + h2,\n + h3,\n + h4,\n + h5,\n + h6,\n &:first-child {\n margin-top: 0;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n p {\n margin-bottom: ").concat(v.hs.space(-1)(e),";\n &:last-child {\n margin-bottom: 0;\n }\n }\n ");return"ckeditor"!==t&&(n="\n ".concat(n,"\n a {\n text-decoration: none; \n }\n\n ol,\n ul {\n display: block;\n list-style-position: outside;\n margin: 0 0 ").concat(v.hs.space(-1)(e)," 1.6rem;\n padding: 0;\n\n ol,\n ul,\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ol li {\n list-style-type: decimal;\n }\n\n ul li {\n list-style-type: disc;\n }\n ")),n};const Y={H1:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H1":r,a=e.children;return(0,j.jsx)(k,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H2:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H2":r,a=e.children;return(0,j.jsx)(S,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H3:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H3":r,a=e.children;return(0,j.jsx)(E,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H4:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H4":r,a=e.children;return(0,j.jsx)(P,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H5:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H5":r,a=e.children;return(0,j.jsx)(D,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},H6:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H6":r,a=e.children;return(0,j.jsx)(_,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(a),children:a})},Dd:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,j.jsx)(C,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dt:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,j.jsx)(M,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dl:function(e){return(0,j.jsx)(T,{children:e.children})},Li:function(e){var t=e.children;return(0,j.jsx)(A,{children:t})},Ol:function(e){var t=e.children;return(0,j.jsx)(R,{children:t})},Ul:function(e){var t=e.children;return(0,j.jsx)(N,{as:"ul",children:t})},B:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.or,{breakWords:n,title:F(n,o,a),children:a})},Code:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.pR,{title:F(n,o,a),children:a})},Del:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.rY,{breakWords:n,title:F(n,o,a),children:a})},Em:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.QF,{breakWords:n,title:F(n,o,a),children:a})},Figcaption:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.aB,{breakWords:n,title:F(n,o,a),children:a})},I:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.vB,{breakWords:n,title:F(n,o,a),children:a})},Ins:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.MM,{breakWords:n,title:F(n,o,a),children:a})},Label:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.htmlFor;return(0,j.jsx)(L.Gw,{breakWords:n,title:F(n,o,a),htmlFor:i,children:a})},Mark:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Li,{breakWords:n,title:F(n,o,a),children:a})},P:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.id;return(0,j.jsx)(L.C$,{breakWords:n,title:F(n,o,a),id:i,children:a})},Pre:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.rs,{breakWords:n,title:F(n,o,a),children:a})},Q:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Js,{breakWords:n,title:F(n,o,a),children:a})},S:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.v8,{breakWords:n,title:F(n,o,a),children:a})},Small:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.fN,{breakWords:n,title:F(n,o,a),children:a})},Span:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children,i=e.id;return(0,j.jsx)(L.oY,{breakWords:n,title:F(n,o,a),id:i,children:a})},Strong:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.Ng,{breakWords:n,title:F(n,o,a),children:a})},Sub:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.AB,{breakWords:n,title:F(n,o,a),children:a})},Sup:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.AE,{breakWords:n,title:F(n,o,a),children:a})},Time:function(e){var t=e.breakWords,n=void 0!==t&&t,r=e.title,o=e.dateTime,a=e.children;return(0,j.jsx)(L.F1,{breakWords:n,title:r,dateTime:o,children:a})},U:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.vr,{breakWords:n,title:F(n,o,a),children:a})},Var:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,a=e.children;return(0,j.jsx)(L.zG,{breakWords:n,title:F(n,o,a),children:a})}}},33015:(e,t,n)=>{"use strict";n.d(t,{cx:()=>re,$n:()=>K,se:()=>Um,jt:()=>Kt,Ar:()=>Pg,eG:()=>tc,kH:()=>Lc,In:()=>k.A,tQ:()=>Wg,kt:()=>_,dK:()=>vw,AM:()=>Xu,Q6:()=>aw,Wk:()=>kn.Wk,$O:()=>Qy,dm:()=>EO,N1:()=>Z,OV:()=>q,pR:()=>kt.pR,oX:()=>Sn,iY:()=>k.i,rd:()=>kt.rd,jx:()=>Pn,DC:()=>Cg,gQ:()=>Hg,oY:()=>kt.oY,Ec:()=>Ms,o5:()=>kt.Ay,Hr:()=>cp,Ed:()=>l.Ed,xX:()=>l.xX,hs:()=>l.hs,w4:()=>l.w4,t7:()=>l.t7,c2:()=>l.LE});var r,o,a=n(72189),i=n.n(a),s=n(92648),c=n(87716),u=n(59492),l=n(17656),d=(0,c.AH)(r||(r=i()(["\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,l.Ed)(),l.w4.color("text"),l.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const f=(0,c.Ay)(s.N_).withConfig({shouldForwardProp:function(e){return u.A.isPropValid(e)||"state"===e}})(o||(o=i()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),l.t7.color("text"),d);var p,h=n(26396),m=n.n(h),g=n(39892),v=n.n(g),y=n(5556),b=n.n(y),w=n(4883),O=n.t(w,2),x=n.n(w),k=n(47850),S=n(74848);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=(0,w.lazy)((function(){return n.e(389).then(n.bind(n,68389))}));const _=function(e){return(0,S.jsx)(w.Suspense,{fallback:p||(p=(0,S.jsx)(x().Fragment,{})),children:(0,S.jsx)(D,P({},e))})};var j=n(22056),C=n.n(j),T=n(96424),M="hidden",A="responsive",I={labelVisibility:A},R=x().createContext(I);var N,L,F,H,B,W,Y,U=(0,c.AH)(H||(H=i()(["\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"])),l.w4.radii("button"),l.hs.space(-1.38),l.hs.space(-2.1),l.hs.space(0),(0,l.Ed)(),(function(e){return e.withoutBackground?(0,c.AH)(F||(F=i()(["\n background: transparent;\n"]))):(0,l.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,c.AH)(N||(N=i()(["\n line-height: ",";\n padding: "," ",";\n "])),l.w4.lineHeight("dense")({theme:n}),l.hs.space(-3.5)({theme:n}),l.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,c.AH)(L||(L=i()(["\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===l.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(z," {\n display: none;\n }\n ");return t&&n===M?r:t&&n===A&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),z=c.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(B||(B=i()([""]))),V=c.Ay.button.withConfig({displayName:"StyledButton"})(W||(W=i()(["\n ","\n"])),U);c.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(Y||(Y=i()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),l.hs.space(0),l.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),V);const q=V;function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const K=x().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.icon,i=e.pending,s=e.look,c=void 0===s?l.xX.look.FLAT:s,u=e.iconPosition,d=void 0===u?l.xX.position.PREPEND:u,f=e.type,p=void 0===f?"button":f,h=e.iconOnly,m=e.children,g=(0,w.useContext)(R).labelVisibility;return(0,S.jsxs)(q,$($($({ref:t},n),e),{},{ink:r||l.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:p,children:[a&&!i&&(0,S.jsx)(k.A,{icon:a}),i&&(0,S.jsx)(_,{ink:r||l.xX.ink.BASE,look:c,position:d,size:"1em"}),!h&&o?(0,S.jsx)(z,{children:o}):m||"​"]}))}));var Q;(0,c.Ay)(s.N_).withConfig({shouldForwardProp:u.A.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Q||(Q=i()(["\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"])),l.t7.color("text"),U);var X,J;const Z=c.Ay.button.withConfig({displayName:"StyledButton"})(J||(J=i()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,l.Ed)(),l.x5,(function(){return(0,c.AH)(X||(X=i()(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n\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"])),l.hs.space(-3),l.w4.fontSize("base"),l.w4.lineHeight("regular"),l.hs.space(-3))}));function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=x().forwardRef((function(e,t){return(0,S.jsx)(Z,te(te({ref:t,type:"button"},e),{},{children:(0,S.jsx)(k.A,{icon:e.icon})}))}));ne.propTypes={disabled:b().bool,icon:b().string.isRequired,ink:l.xX.inkPropTypes,look:b().oneOf([l.xX.look.FLAT,l.xX.look.RAISED]),onClick:b().func,title:b().string,tabIndex:b().number,"data-cy":b().string};const re=ne;var oe,ae,ie,se,ce=n(31004),ue=n(21259),le=n.n(ue),de=n(49859),fe=n.n(de),pe=n(52098),he=n.n(pe),me=n(30115),ge=n.n(me),ve=n(45228),ye=n.n(ve),be="bodyAttributes",we="htmlAttributes",Oe="titleAttributes",xe={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ke=(Object.keys(xe).map((function(e){return xe[e]})),"charset"),Se="cssText",Ee="href",Pe="http-equiv",De="innerHTML",_e="itemprop",je="name",Ce="property",Te="rel",Me="src",Ae="target",Ie={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Re="defaultTitle",Ne="defer",Le="encodeSpecialCharacters",Fe="onChangeClientState",He="titleTemplate",Be=Object.keys(Ie).reduce((function(e,t){return e[Ie[t]]=t,e}),{}),We=[xe.NOSCRIPT,xe.SCRIPT,xe.STYLE],Ye="data-react-helmet",Ue="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},ze=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}}(),Ve=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},qe=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},Ge=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},$e=function(e){var t=Ze(e,xe.TITLE),n=Ze(e,He);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Ze(e,Re);return t||r||void 0},Ke=function(e){return Ze(e,Fe)||function(){}},Qe=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ve({},e,t)}),{})},Xe=function(e,t){return t.filter((function(e){return void 0!==e[xe.BASE]})).map((function(e){return e[xe.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Je=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&ot("Helmet: "+e+' should be of type "Array". Instead found type "'+Ue(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],c=s.toLowerCase();-1===t.indexOf(c)||n===Te&&"canonical"===e[n].toLowerCase()||c===Te&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==De&&s!==Se&&s!==_e||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],c=ye()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Ze=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},et=(oe=Date.now(),function(e){var t=Date.now();t-oe>16?(oe=t,e(t)):setTimeout((function(){et(e)}),0)}),tt=function(e){return clearTimeout(e)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||et:n.g.requestAnimationFrame||et,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tt:n.g.cancelAnimationFrame||tt,ot=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},at=null,it=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;ut(xe.BODY,r),ut(xe.HTML,o),ct(d,f);var p={baseTag:lt(xe.BASE,n),linkTags:lt(xe.LINK,a),metaTags:lt(xe.META,i),noscriptTags:lt(xe.NOSCRIPT,s),scriptTags:lt(xe.SCRIPT,u),styleTags:lt(xe.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},st=function(e){return Array.isArray(e)?e.join(""):e},ct=function(e,t){void 0!==e&&document.title!==e&&(document.title=st(e)),ut(xe.TITLE,t)},ut=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Ye),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=a.indexOf(c);-1!==l&&a.splice(l,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Ye):n.getAttribute(Ye)!==i.join(",")&&n.setAttribute(Ye,i.join(","))}},lt=function(e,t){var n=document.head||document.querySelector(xe.HEAD),r=n.querySelectorAll(e+"["+Ye+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===De)n.innerHTML=t.innerHTML;else if(r===Se)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(Ye,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},dt=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}),"")},ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Ie[n]||n]=e[n],t}),t)},pt=function(e,t,n){switch(e){case xe.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Ye]=!0,o=ft(n,r),[x().createElement(xe.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=dt(n),a=st(t);return o?"<"+e+" "+Ye+'="true" '+o+">"+Ge(a,r)+"</"+e+">":"<"+e+" "+Ye+'="true">'+Ge(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case be:case we:return{toComponent:function(){return ft(t)},toString:function(){return dt(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Ye]=!0,r);return Object.keys(t).forEach((function(e){var n=Ie[e]||e;if(n===De||n===Se){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),x().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===De||e===Se)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Ge(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===We.indexOf(e);return t+"<"+e+" "+Ye+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},ht=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:pt(xe.BASE,t,r),bodyAttributes:pt(be,n,r),htmlAttributes:pt(we,o,r),link:pt(xe.LINK,a,r),meta:pt(xe.META,i,r),noscript:pt(xe.NOSCRIPT,s,r),script:pt(xe.SCRIPT,c,r),style:pt(xe.STYLE,u,r),title:pt(xe.TITLE,{title:d,titleAttributes:f},r)}},mt=he()((function(e){return{baseTag:Xe([Ee,Ae],e),bodyAttributes:Qe(be,e),defer:Ze(e,Ne),encode:Ze(e,Le),htmlAttributes:Qe(we,e),linkTags:Je(xe.LINK,[Te,Ee],e),metaTags:Je(xe.META,[je,ke,Pe,Ce,_e],e),noscriptTags:Je(xe.NOSCRIPT,[De],e),onChangeClientState:Ke(e),scriptTags:Je(xe.SCRIPT,[Me,De],e),styleTags:Je(xe.STYLE,[Se],e),title:$e(e),titleAttributes:Qe(Oe,e)}}),(function(e){at&&rt(at),e.defer?at=nt((function(){it(e,(function(){at=null}))})):(it(e),at=null)}),ht)((function(){return null})),gt=(ae=mt,se=ie=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!ge()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case xe.SCRIPT:case xe.NOSCRIPT:return{innerHTML:t};case xe.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Ve({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Ve({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case xe.TITLE:return Ve({},o,((t={})[r.type]=i,t.titleAttributes=Ve({},a),t));case xe.BODY:return Ve({},o,{bodyAttributes:Ve({},a)});case xe.HTML:return Ve({},o,{htmlAttributes:Ve({},a)})}return Ve({},o,((n={})[r.type]=Ve({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Ve({},t);return Object.keys(e).forEach((function(t){var r;n=Ve({},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 x().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Be[n]||n]=e[n],t}),t)}(qe(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case xe.LINK:case xe.META:case xe.NOSCRIPT:case xe.SCRIPT:case xe.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=qe(e,["children"]),r=Ve({},n);return t&&(r=this.mapChildrenToProps(t,r)),x().createElement(ae,r)},ze(t,null,[{key:"canUseDOM",set:function(e){ae.canUseDOM=e}}]),t}(x().Component),ie.propTypes={base:fe().object,bodyAttributes:fe().object,children:fe().oneOfType([fe().arrayOf(fe().node),fe().node]),defaultTitle:fe().string,defer:fe().bool,encodeSpecialCharacters:fe().bool,htmlAttributes:fe().object,link:fe().arrayOf(fe().object),meta:fe().arrayOf(fe().object),noscript:fe().arrayOf(fe().object),onChangeClientState:fe().func,script:fe().arrayOf(fe().object),style:fe().arrayOf(fe().object),title:fe().string,titleAttributes:fe().object,titleTemplate:fe().string},ie.defaultProps={defer:!0,encodeSpecialCharacters:!0},ie.peek=ae.peek,ie.rewind=function(){var e=ae.rewind();return e||(e=ht({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},se);gt.renderStatic=gt.rewind;var vt=n(42838),yt=n.n(vt),bt=["border","border-spacing","padding","margin","text-align","width"];yt().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=(n=e.style,bt.map((function(e){var t=n[e];return t&&"string"==typeof t&&!function(e){return/\w\(/.test(e)}(t)?"".concat(e,":").concat(t,";"):null})).filter(Boolean).join(""));t?e.setAttribute("style",t):e.removeAttribute("style")}var n;return e}));const wt=function(e){return e?yt().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Ot={sanitizeHtml:wt};var xt=n(23076),kt=n(60284),St={error:"exclamation-circle",home:"house-blank"},Et=function(e){return St[e]||e};const Pt=function(e){var t=e.type;return t&&"record"!==t?(0,S.jsx)(k.A,{icon:Et(t)}):null};var Dt,_t,jt,Ct,Tt,Mt,At=["component"],It=c.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(Dt||(Dt=i()(["\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||l.w4.color("backgroundBreadcrumbs")(e)}),l.hs.space(-.7),l.hs.space(.39)),Rt=(0,c.Ay)((function(e){var t=e.component,n=v()(e,At);return x().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(_t||(_t=i()(["\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"])),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.color("secondaryLight"),l.w4.color("breadcrumbsActive")),Nt=c.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(jt||(jt=i()(["\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"])),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.fontWeight("bold"),(function(e){return e.active&&l.w4.color("breadcrumbsActive")}),l.w4.color("breadcrumbsActive")),Lt=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(Ct||(Ct=i()(["\n margin-left: ",";\n margin-right: ",";\n"])),l.hs.space(-2),l.hs.space(-2)),Ft=c.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Tt||(Tt=i()(["\n "," {\n margin-right: ",";\n }\n"])),k.i,l.hs.space(-1));const Ht=function(){return Mt||(Mt=(0,S.jsx)(Lt,{breakWords:!0,children:(0,S.jsx)(k.A,{icon:"chevron-right"})}))};var Bt;function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ut=function(e){return e.title||e.display},zt=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(Ut(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(Ut).join(" - ");break;default:r=Ut(n)}return xt.A.adjustedHTMLString(r)};const Vt=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,a=e.breadcrumbsInfo,i=void 0===a?[]:a,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,p=[].concat(le()(i),le()(s?[s]:[]));if(0===p.length)return null;var h,m=p.map((function(e,n){var r,a=e.display||"",i=n===p.length-1?Nt:Rt,s=n===p.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path),state:e.state}:{},d=l?t||(t=(0,S.jsx)(l,{})):Bt||(Bt=(0,S.jsx)(f,{}));return(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)(Ft,{children:(0,S.jsxs)(i,Yt(Yt(Yt({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,S.jsx)(Pt,{type:e.type}),(0,S.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(a)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[].concat(le()(e),[t,(0,S.jsx)(Ht,{},"icon".concat(n))])}),[]).slice(0,-1);return(0,S.jsxs)(It,{backgroundColor:c,children:[d?(0,S.jsx)(gt,{defer:!1,children:(0,S.jsx)("title",{children:zt(p,(h="client.component.breadcrumbs.createTitle",n.formatMessage({id:h})))})}):null,(0,S.jsx)(S.Fragment,{children:m})]})};(0,ce.injectIntl)(Vt);var qt,Gt,$t=c.Ay.div.withConfig({displayName:"StyledWrapper"})(qt||(qt=i()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,l.Ed)(),(function(e){return e.theme.colors.signal.danger}),l.t7.color("paper"),l.hs.space(-.5));const Kt=function(){return Gt||(Gt=(0,S.jsx)($t,{children:(0,S.jsx)(ce.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Qt;const Xt=c.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Qt||(Qt=i()(["\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"])),q);var Jt=x().forwardRef((function(e,t){return(0,S.jsx)(Xt,{ref:t,children:e.children})}));Jt.propTypes={children:b().node};const Zt=Jt;var en=n(90179),tn=n.n(en),nn=n(62193),rn=n.n(nn),on=n(62243),an=n.n(on),sn=n(36193),cn=n.n(sn),un=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},ln=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},dn={outline:"none"},fn=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ln(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=x().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)},ln(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?x().cloneElement(e({focused:t,getRef:this.ref}),n):x().createElement("div",un({ref:this.ref,style:dn},n),e)},t}(x().Component);fn.propTypes={children:cn().oneOfType([cn().node,cn().func]).isRequired,onBlur:cn().func,onFocus:cn().func},fn.defaultProps={onBlur:function(){},onFocus:function(){}};const pn=fn;var hn,mn,gn,vn,yn,bn,wn,On,xn,kn=n(88357),Sn=(0,c.AH)(hn||(hn=i()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),En=c.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(mn||(mn=i()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Sn),Pn=(0,c.AH)(gn||(gn=i()(["\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\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&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,l.Ed)({color:l.t7.color("text")})}),l.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Dn=(0,c.AH)(vn||(vn=i()(["\n display: flex;\n align-items: center;\n"]))),_n=c.Ay.div.withConfig({displayName:"StyledEditableControl"})(yn||(yn=i()(["\n &&& {\n ","\n }\n"])),Dn),jn=c.Ay.span.withConfig({displayName:"StyledEditableValue"})(bn||(bn=i()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\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: text;\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"])),l.t7.color("signal.danger")),Cn=n(85735),Tn=n.n(Cn),Mn=function(e){return-1*Math.abs(e)},An=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===Tn()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},In=n(58156),Rn=n.n(In),Nn=c.Ay.div.withConfig({displayName:"StyledLocationEdit"})(wn||(wn=i()(["\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"])),Sn,l.hs.space(-2),l.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Rn()(n,"colors.textDisabled"):Rn()(n,"colors.text")}),Pn,l.t7.color("paper"),l.t7.color("signal.info"),l.t7.color("secondaryLight"),l.t7.color("backgroundItemHover")),Ln=(0,c.Ay)(Nn).withConfig({displayName:"StyledAddressEdit"})(On||(On=i()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bn=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,s=e.name,c=function(e){return function(t){return t[e]}},u=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},l=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=u(e),s=n?"- ".concat(n):"",c=r?"/ ".concat(r.display):"";return(0,S.jsxs)(kt.Ay.Span,{children:[i,", ",o," ",a," ",s," ",c]})},d=function(e,t){var o=t.suggestion;!0===o.validationRequired?r.validateLocation(o,n):n(o)},f=function(e){var t=e.value,n=r.locationValues.country,o={street:t};r.fetchSuggestions(o,n)},p={id:a,value:o&&o.street?u(o):"",onChange:(t="street",function(e,r){var a=r.newValue;n(Hn(Hn({},o),{},m()({},t,a)))}),disabled:i};return(0,S.jsx)(pn,{children:function(e){var t,n,o,a,u=e.getRef;return(0,S.jsxs)(Ln,{immutable:i,name:s,ref:u,children:[(0,S.jsx)(an(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:f,getSuggestionValue:c("street"),renderSuggestion:l,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:d,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,S.jsxs)(_n,{children:[r.isLoading&&(xn||(xn=(0,S.jsx)(_,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,S.jsx)(kn.Ay,{href:An(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Wn=n(69843),Yn=n.n(Wn),Un=n(7350),zn=n.n(Un);function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $n(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 Kn(e,t){if(e){if("string"==typeof e)return $n(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)?$n(e,t):void 0}}function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||Kn(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 Xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zn(){return Zn=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},Zn.apply(this,arguments)}function er(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 tr(e,t){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tr(e,t)}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nr(e)}function rr(e){return rr="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},rr(e)}function or(e,t){if(t&&("object"===rr(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 ar(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=nr(e);if(t){var o=nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return or(this,n)}}function ir(e){return function(e){if(Array.isArray(e))return $n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kn(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 sr=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}(),cr="-ms-",ur="-moz-",lr="-webkit-",dr="comm",fr="rule",pr="decl",hr="@keyframes",mr=Math.abs,gr=String.fromCharCode,vr=Object.assign;function yr(e){return e.trim()}function br(e,t,n){return e.replace(t,n)}function wr(e,t){return e.indexOf(t)}function Or(e,t){return 0|e.charCodeAt(t)}function xr(e,t,n){return e.slice(t,n)}function kr(e){return e.length}function Sr(e){return e.length}function Er(e,t){return t.push(e),e}var Pr=1,Dr=1,_r=0,jr=0,Cr=0,Tr="";function Mr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Pr,column:Dr,length:i,return:""}}function Ar(e,t){return vr(Mr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ir(){return Cr=jr>0?Or(Tr,--jr):0,Dr--,10===Cr&&(Dr=1,Pr--),Cr}function Rr(){return Cr=jr<_r?Or(Tr,jr++):0,Dr++,10===Cr&&(Dr=1,Pr++),Cr}function Nr(){return Or(Tr,jr)}function Lr(){return jr}function Fr(e,t){return xr(Tr,e,t)}function Hr(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 Br(e){return Pr=Dr=1,_r=kr(Tr=e),jr=0,[]}function Wr(e){return Tr="",e}function Yr(e){return yr(Fr(jr-1,Vr(91===e?e+2:40===e?e+1:e)))}function Ur(e){for(;(Cr=Nr())&&Cr<33;)Rr();return Hr(e)>2||Hr(Cr)>3?"":" "}function zr(e,t){for(;--t&&Rr()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Fr(e,Lr()+(t<6&&32==Nr()&&32==Rr()))}function Vr(e){for(;Rr();)switch(Cr){case e:return jr;case 34:case 39:34!==e&&39!==e&&Vr(Cr);break;case 40:41===e&&Vr(e);break;case 92:Rr()}return jr}function qr(e,t){for(;Rr()&&e+Cr!==57&&(e+Cr!==84||47!==Nr()););return"/*"+Fr(t,jr-1)+"*"+gr(47===e?e:Rr())}function Gr(e){for(;!Hr(Nr());)Rr();return Fr(e,jr)}function $r(e){return Wr(Kr("",null,null,null,[""],e=Br(e),0,[0],e))}function Kr(e,t,n,r,o,a,i,s,c){for(var u=0,l=0,d=i,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,O=a,x=r,k=b;g;)switch(h=y,y=Rr()){case 40:if(108!=h&&58==Or(k,d-1)){-1!=wr(k+=br(Yr(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Yr(y);break;case 9:case 10:case 13:case 32:k+=Ur(h);break;case 92:k+=zr(Lr()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Er(Xr(qr(Rr(),Lr()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=kr(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&kr(k)-d&&Er(p>32?Jr(k+";",r,n,d-1):Jr(br(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Er(x=Qr(k,t,n,u,l,o,s,b,w=[],O=[],d),a),123===y)if(0===l)Kr(k,t,x,x,w,a,d,s,O);else switch(99===f&&110===Or(k,3)?100:f){case 100:case 109:case 115:Kr(e,x,x,r&&Er(Qr(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:Kr(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=v=1,b=k="",d=i;break;case 58:d=1+kr(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ir())continue;switch(k+=gr(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(kr(k)-1)*v,v=1;break;case 64:45===Nr()&&(k+=Yr(Rr())),f=Nr(),l=d=kr(b=k+=Gr(Lr())),y++;break;case 45:45===h&&2==kr(k)&&(m=0)}}return a}function Qr(e,t,n,r,o,a,i,s,c,u,l){for(var d=o-1,f=0===o?a:[""],p=Sr(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=xr(e,d+1,d=mr(m=i[h])),b=e;v<p;++v)(b=yr(m>0?f[v]+" "+y:br(y,/&\f/g,f[v])))&&(c[g++]=b);return Mr(e,t,n,0===o?fr:s,c,u,l)}function Xr(e,t,n){return Mr(e,t,n,dr,gr(Cr),xr(e,2,-2),0)}function Jr(e,t,n,r){return Mr(e,t,n,pr,xr(e,0,r),xr(e,r+1,-1),r)}function Zr(e,t){for(var n="",r=Sr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eo(e,t,n,r){switch(e.type){case"@import":case pr:return e.return=e.return||e.value;case dr:return"";case hr:return e.return=e.value+"{"+Zr(e.children,r)+"}";case fr:e.value=e.props.join(",")}return kr(n=Zr(e.children,r))?e.return=e.value+"{"+n+"}":""}var to=function(e,t,n){for(var r=0,o=0;r=o,o=Nr(),38===r&&12===o&&(t[n]=1),!Hr(o);)Rr();return Fr(e,jr)},no=function(e,t){return Wr(function(e,t){var n=-1,r=44;do{switch(Hr(r)){case 0:38===r&&12===Nr()&&(t[n]=1),e[n]+=to(jr-1,t,n);break;case 2:e[n]+=Yr(r);break;case 4:if(44===r){e[++n]=58===Nr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gr(r)}}while(r=Rr());return e}(Br(e),t))},ro=new WeakMap,oo=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)||ro.get(n))&&!r){ro.set(e,!0);for(var o=[],a=no(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},ao=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function io(e,t){switch(function(e,t){return 45^Or(e,0)?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}(e,t)){case 5103:return lr+"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 lr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lr+e+ur+e+cr+e+e;case 6828:case 4268:return lr+e+cr+e+e;case 6165:return lr+e+cr+"flex-"+e+e;case 5187:return lr+e+br(e,/(\w+).+(:[^]+)/,lr+"box-$1$2"+cr+"flex-$1$2")+e;case 5443:return lr+e+cr+"flex-item-"+br(e,/flex-|-self/,"")+e;case 4675:return lr+e+cr+"flex-line-pack"+br(e,/align-content|flex-|-self/,"")+e;case 5548:return lr+e+cr+br(e,"shrink","negative")+e;case 5292:return lr+e+cr+br(e,"basis","preferred-size")+e;case 6060:return lr+"box-"+br(e,"-grow","")+lr+e+cr+br(e,"grow","positive")+e;case 4554:return lr+br(e,/([^-])(transform)/g,"$1"+lr+"$2")+e;case 6187:return br(br(br(e,/(zoom-|grab)/,lr+"$1"),/(image-set)/,lr+"$1"),e,"")+e;case 5495:case 3959:return br(e,/(image-set\([^]*)/,lr+"$1$`$1");case 4968:return br(br(e,/(.+:)(flex-)?(.*)/,lr+"box-pack:$3"+cr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lr+e+e;case 4095:case 3583:case 4068:case 2532:return br(e,/(.+)-inline(.+)/,lr+"$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(kr(e)-1-t>6)switch(Or(e,t+1)){case 109:if(45!==Or(e,t+4))break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+ur+(108==Or(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wr(e,"stretch")?io(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Or(e,t+1))break;case 6444:switch(Or(e,kr(e)-3-(~wr(e,"!important")&&10))){case 107:return br(e,":",":"+lr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(45===Or(e,14)?"inline-":"")+"box$3$1"+lr+"$2$3$1"+cr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+cr+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+cr+e+e}return e}var so=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=io(e.value,e.length);break;case hr:return Zr([Ar(e,{value:br(e.value,"@","@"+lr)})],r);case fr: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 Zr([Ar(e,{props:[br(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Zr([Ar(e,{props:[br(t,/:(plac\w+)/,":"+lr+"input-$1")]}),Ar(e,{props:[br(t,/:(plac\w+)/,":-moz-$1")]}),Ar(e,{props:[br(t,/:(plac\w+)/,cr+"input-$1")]})],r)}return""}))}}];const co=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||so;var o,a,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[eo,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[oo,ao].concat(r,f),l=Sr(u),function(e,t,n,r){for(var o="",a=0;a<l;a++)o+=u[a](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,Zr($r(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new sr({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};n(4146);var uo=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const lo=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 fo={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 po=/[A-Z]|^ms/g,ho=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mo=function(e){return 45===e.charCodeAt(1)},go=function(e){return null!=e&&"boolean"!=typeof e},vo=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return mo(e)?e:e.replace(po,"-$&").toLowerCase()})),yo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ho,(function(e,t,n){return wo={name:t,styles:n,next:wo},t}))}return 1===fo[e]||mo(e)||"number"!=typeof t||0===t?t:t+"px"};function bo(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 wo={name:n.name,styles:n.styles,next:wo},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wo={name:r.name,styles:r.styles,next:wo},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+=bo(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":go(i)&&(r+=vo(a)+":"+yo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=bo(e,t,i);switch(a){case"animation":case"animationName":r+=vo(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)go(i[c])&&(r+=vo(a)+":"+yo(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=wo,a=n(e);return wo=o,bo(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var wo,Oo=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var xo=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="";wo=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=bo(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=bo(n,t,e[i]),r&&(o+=a[i]);Oo.lastIndex=0;for(var s,c="";null!==(s=Oo.exec(o));)c+="-"+s[1];return{name:lo(o)+c,styles:o,next:wo}},ko=!!w.useInsertionEffect&&w.useInsertionEffect,So=ko||function(e){return e()},Eo={}.hasOwnProperty,Po=(0,w.createContext)("undefined"!=typeof HTMLElement?co({key:"css"}):null);Po.Provider;var Do=function(e){return(0,w.forwardRef)((function(t,n){var r=(0,w.useContext)(Po);return e(t,r,n)}))},_o=(0,w.createContext)({});var jo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Co=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;uo(t,n,r);So((function(){return function(e,t,n){uo(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},To=Do((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[jo],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=xo(a,void 0,(0,w.useContext)(_o));i+=t.key+"-"+s.name;var c={};for(var u in e)Eo.call(e,u)&&"css"!==u&&u!==jo&&(c[u]=e[u]);return c.ref=n,c.className=i,(0,w.createElement)(w.Fragment,null,(0,w.createElement)(Co,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,w.createElement)(o,c))}));var Mo=function(e,t){var n=arguments;if(null==t||!Eo.call(t,"css"))return w.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=To,o[1]=function(e,t){var n={};for(var r in t)Eo.call(t,r)&&(n[r]=t[r]);return n[jo]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return w.createElement.apply(null,o)};function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xo(t)}var Io=n(81845);Math.min,Math.max;const Ro=["top","right","bottom","left"];Ro.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function No(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Lo(e){if(null==e)return window;if(!No(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fo(e){return Lo(e).getComputedStyle(e)}function Ho(e){return No(e)?"":e?(e.nodeName||"").toLowerCase():""}function Bo(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Wo(e){return e instanceof Lo(e).HTMLElement}function Yo(e){return e instanceof Lo(e).Element}function Uo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lo(e).ShadowRoot||e instanceof ShadowRoot)}function zo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fo(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Vo(){return!/^((?!chrome|android).)*safari/i.test(Bo())}function qo(e){return["html","body","#document"].includes(Ho(e))}Math.min,Math.max;const Go=Math.round;function $o(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Wo(e)&&(c=e.offsetWidth>0&&Go(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Go(s.height)/e.offsetHeight||1);const l=Yo(e)?Lo(e):window,d=!Vo()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(a=null==(i=l.visualViewport)?void 0:i.offsetTop)?a:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function Ko(e){return(t=e,(t instanceof Lo(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Qo(e){if("html"===Ho(e))return e;const t=e.assignedSlot||e.parentNode||(Uo(e)?e.host:null)||Ko(e);return Uo(t)?t.host:t}function Xo(e){const t=Qo(e);return qo(t)?e.ownerDocument.body:Wo(t)&&zo(t)?t:Xo(t)}function Jo(e,t){var n;void 0===t&&(t=[]);const r=Xo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Lo(r),i=o?[a].concat(a.visualViewport||[],zo(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Jo(i))}const Zo=w.useLayoutEffect;var ea=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ta=function(){};function na(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(na(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===rr(e)&&null!==e?[e]:[];var t},aa=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,Gn({},Xn(e,ea))},ia=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function sa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ca(e){return sa(e)?window.pageYOffset:e.scrollTop}function ua(e,t){sa(e)?window.scrollTo(0,t):e.scrollTop=t}function la(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ta,o=ca(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ua(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function da(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ua(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ua(e,Math.max(t.offsetTop-o,0))}function fa(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var pa=!1,ha={get passive(){return pa=!0}},ma="undefined"!=typeof window?window:{};ma.addEventListener&&ma.removeEventListener&&(ma.addEventListener("p",ta,ha),ma.removeEventListener("p",ta,!1));var ga=pa;function va(e){return null!=e}function ya(e,t,n){return e?t:n}var ba=["children","innerProps"],wa=["children","innerProps"];function Oa(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:sa(l=c)?window.innerHeight:l.clientHeight,y=ca(c),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,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!i)return a&&la(c,E,D),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&la(c,E,D),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var _=t,j=i?O:k;return j>=r&&(_=Math.min(j-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return a&&ua(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!i)return a&&la(c,P,D),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&O>=r){var C=t;return(!i&&k>=r||i&&O>=r)&&(C=i?O-w:k-w),a&&la(c,P,D),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var xa,ka=function(e){return"auto"===e?"bottom":e},Sa=(0,w.createContext)(null),Ea=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,w.useContext)(Sa)||{}).setPortalPlacement,u=(0,w.useRef)(null),l=Qn((0,w.useState)(r),2),d=l[0],f=l[1],p=Qn((0,w.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return Zo((function(){var e=u.current;if(e){var t="fixed"===a,s=Oa({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,a,i,n,c,g]),t({ref:u,placerProps:Gn(Gn({},e),{},{placement:h||ka(o),maxHeight:d})})},Pa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Mo("div",Zn({},ia(e,"menu",{menu:!0}),{ref:n},r),t)},Da=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Gn({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},_a=Da,ja=Da,Ca=["size"],Ta=["innerProps","isRtl","size"];var Ma,Aa,Ia={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ra=function(e){var t=e.size,n=Xn(e,Ca);return Mo("svg",Zn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ia},n))},Na=function(e){return Mo(Ra,Zn({size:20},e),Mo("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"}))},La=function(e){return Mo(Ra,Zn({size:20},e),Mo("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"}))},Fa=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Gn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Ha=Fa,Ba=Fa,Wa=function(){var e=Ao.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_"}}}(xa||(Ma=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Aa||(Aa=Ma.slice(0)),xa=Object.freeze(Object.defineProperties(Ma,{raw:{value:Object.freeze(Aa)}})))),Ya=function(e){var t=e.delay,n=e.offset;return Mo("span",{css:Ao({animation:"".concat(Wa," 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"},"","")})},Ua=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Mo("div",Zn({ref:o},ia(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},za=["data"],Va=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Mo("div",Zn({},ia(e,"group",{group:!0}),s),Mo(a,Zn({},i,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Mo("div",null,t))},qa=["innerRef","isDisabled","isHidden","inputClassName"],Ga={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},$a={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Gn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ga)},Ka=function(e){return Gn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ga)},Qa=function(e){var t=e.cx,n=e.value,r=aa(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,c=Xn(r,qa);return Mo("div",Zn({},ia(e,"input",{"input-container":!0}),{"data-value":n||""}),Mo("input",Zn({className:t({input:!0},s),ref:o,style:Ka(i),disabled:a},c)))},Xa=function(e){var t=e.children,n=e.innerProps;return Mo("div",n,t)};var Ja=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Mo(c,{data:r,innerProps:Gn(Gn({},ia(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},Mo(u,{data:r,innerProps:Gn({},ia(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Mo(l,{data:r,innerProps:Gn(Gn({},ia(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},Za=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Mo("div",Zn({},ia(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},ei=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Mo("div",Zn({},ia(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ti={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Mo(Na,null))},Control:Ua,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Mo(La,null))},DownChevron:La,CrossIcon:Na,Group:Va,GroupHeading:function(e){var t=aa(e);t.data;var n=Xn(t,za);return Mo("div",Zn({},ia(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Mo("span",Zn({},t,ia(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Qa,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Xn(e,Ta);return Mo("div",Zn({},ia(Gn(Gn({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Mo(Ya,{delay:0,offset:n}),Mo(Ya,{delay:160,offset:!0}),Mo(Ya,{delay:320,offset:!n}))},Menu:Pa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Mo("div",Zn({},ia(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,s=(0,w.useRef)(null),c=(0,w.useRef)(null),u=Qn((0,w.useState)(ka(a)),2),l=u[0],d=u[1],f=(0,w.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=Qn((0,w.useState)(null),2),h=p[0],m=p[1],g=(0,w.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,i,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Zo((function(){g()}),[g]);var v=(0,w.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||a?[...Yo(e)?Jo(e):e.contextElement?Jo(e.contextElement):[],...Jo(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let l,d=null;if(i){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Yo(e)&&!s&&d.observe(e),Yo(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?$o(e):null;return s&&function t(){const r=$o(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Zo((function(){v()}),[v]);var y=(0,w.useCallback)((function(e){s.current=e,v()}),[v]);if(!t&&"fixed"!==i||!h)return null;var b=Mo("div",Zn({ref:y},ia(Gn(Gn({},e),{},{offset:h.offset,position:i,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Mo(Sa.Provider,{value:f},t?(0,Io.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Xn(e,wa);return Mo("div",Zn({},ia(Gn(Gn({},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=Xn(e,ba);return Mo("div",Zn({},ia(Gn(Gn({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ja,MultiValueContainer:Xa,MultiValueLabel:Xa,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({role:"button"},n),t||Mo(Na,{size:14}))},Option:Za,Placeholder:function(e){var t=e.children,n=e.innerProps;return Mo("div",Zn({},ia(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Mo("div",Zn({},ia(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:ei,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Mo("div",Zn({},ia(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},ni=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ri(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||ni(r)&&ni(o)))return!1;var r,o;return!0}for(var oi={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"},ai=function(e){return Mo("span",Zn({css:oi},e))},ii={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(l(i,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},si=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,b=s.tabSelectsValue,O=s.isLoading,x=s["aria-label"],k=s["aria-live"],S=(0,w.useMemo)((function(){return Gn(Gn({},ii),l||{})}),[l]),E=(0,w.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,s=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=Gn({isDisabled:u&&h(u,i),label:l,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),P=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,h,S,o,i,u]),D=(0,w.useMemo)((function(){var e="";if(g&&v.length&&!O&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,S,v,y,O]),_="initial-input-focus"===(null==t?void 0:t.action),j=(0,w.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:_})}return e}),[x,n,r,p,h,m,g,S,i,b,_]),C=Mo(w.Fragment,null,Mo("span",{id:"aria-selection"},E),Mo("span",{id:"aria-focused"},P),Mo("span",{id:"aria-results"},D),Mo("span",{id:"aria-guidance"},j));return Mo(w.Fragment,null,Mo(ai,{id:c},_&&C),Mo(ai,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&C))},ci=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ui=new RegExp("["+ci.map((function(e){return e.letters})).join("")+"]","g"),li={},di=0;di<ci.length;di++)for(var fi=ci[di],pi=0;pi<fi.letters.length;pi++)li[fi.letters[pi]]=fi.base;var hi=function(e){return e.replace(ui,(function(e){return li[e]}))},mi=function(e,t){void 0===t&&(t=ri);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(hi),gi=function(e){return e.replace(/^\s+|\s+$/g,"")},vi=function(e){return"".concat(e.label," ").concat(e.value)},yi=["innerRef"];function bi(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=Qn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Qn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Xn(e,yi),"onExited","in","enter","exit","appear");return Mo("input",Zn({ref:t},n,{css:Ao({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 wi=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Oi=["boxSizing","height","overflow","paddingRight","position"],xi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ki(e){e.preventDefault()}function Si(e){e.stopPropagation()}function Ei(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Di=!("undefined"==typeof window||!window.document||!window.document.createElement),_i=0,ji={capture:!1,passive:!1};var Ci=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ti={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Mi(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),s=(0,w.useRef)(!1),c=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),p.scrollTop=d,g=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&wi(e)}}),[n,r,o,a]),d=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,w.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,w.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!ga&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(Di){var t=document.body,n=t&&t.style;if(r&&Oi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&_i<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(xi).forEach((function(e){var t=xi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Pi()&&(t.addEventListener("touchmove",ki,ji),e&&(e.addEventListener("touchstart",Ei,ji),e.addEventListener("touchmove",Si,ji))),_i+=1}}),[r]),s=(0,w.useCallback)((function(e){if(Di){var t=document.body,n=t&&t.style;_i=Math.max(_i-1,0),r&&_i<1&&Oi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Pi()&&(t.removeEventListener("touchmove",ki,ji),e&&(e.removeEventListener("touchstart",Ei,ji),e.removeEventListener("touchmove",Si,ji)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return Mo(w.Fragment,null,n&&Mo("div",{onClick:Ci,css:Ti}),t((function(e){o(e),a(e)})))}var Ai={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ii=function(e){var t=e.name,n=e.onFocus;return Mo("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ai,value:"",onChange:function(){}})};function Ri(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 Ni(){return Ri(/^Mac/i)}function Li(){return Ri(/^iPhone/i)||Ri(/^iPad/i)||Ni()&&navigator.maxTouchPoints>1}var Fi={clearIndicator:Ba,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Gn({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Ha,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 Gn({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Gn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Gn(Gn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},$a),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Gn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:ja,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Gn((Vn(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Vn(n,"position","absolute"),Vn(n,"width","100%"),Vn(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Gn({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Gn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Gn({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Gn({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:_a,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Gn({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Gn({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Gn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Gn({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Hi,Bi={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}},Wi={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:fa(),captureMenuScroll:!fa(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Gn({ignoreCase:!0,ignoreAccents:!0,stringify:vi,trim:!0,matchFrom:"any"},Hi),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,c=i?gi(t):t,u=i?gi(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=mi(c),u=hi(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yi(e,t,n,r){return{type:"option",data:t,isDisabled:Qi(e,t,n),isSelected:Xi(e,t,n),label:$i(e,t),value:Ki(e,t),index:r}}function Ui(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Yi(e,n,t,r)})).filter((function(t){return qi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Yi(e,n,t,r);return qi(e,a)?a:void 0})).filter(va)}function zi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ir(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Vi(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ir(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 qi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Zi(e)||!a)&&Ji(e,{label:i,value:s,data:o},r)}var Gi=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},$i=function(e,t){return e.getOptionLabel(t)},Ki=function(e,t){return e.getOptionValue(t)};function Qi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Xi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ki(e,t);return n.some((function(t){return Ki(e,t)===r}))}function Ji(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Zi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},es=1,ts=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&&tr(e,t)}(a,e);var t,n,r,o=ar(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Ni()||Li(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,s=o&&t.isOptionSelected(e,i),c=t.isOptionDisabled(e,i);if(s){var u=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(ir(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ya(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ya(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ya(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Gi(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Vi(Ui(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 ra.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $i(t.props,e)},t.getOptionValue=function(e){return Ki(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Fi[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Gn(Gn({},ti),e.components);var e},t.buildCategorizedOptions=function(){return Ui(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return zi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Gn({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&&sa(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Zi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++es),t.state.selectValue=oa(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=Gi(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&da(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&&(da(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Bi):Gn(Gn({},Bi),this.props.theme):Bi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Qi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ji(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=Gn(Gn(Gn({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,Zn({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(bi,Zn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ta,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return p?null:w.createElement(s,Zn({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,Zn({},c,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=g[0];return w.createElement(i,Zn({},c,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,Zn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,Zn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,Zn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,Zn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!b)return null;var j,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,f=d===o,p=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return w.createElement(u,Zn({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return w.createElement(n,Zn({},l,{key:s,data:o,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var T=g({inputValue:h});if(null===T)return null;j=w.createElement(s,l,T)}else{var M=P({inputValue:h});if(null===M)return null;j=w.createElement(c,l,M)}var A={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},I=w.createElement(Ea,Zn({},l,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return w.createElement(o,Zn({},l,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),w.createElement(Mi,{captureEnabled:p,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return w.createElement(a,Zn({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),j)})))}));return k||"fixed"===x?w.createElement(i,Zn({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement(Ii,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return w.createElement(si,Zn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return w.createElement(r,Zn({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),w.createElement(t,Zn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),w.createElement(o,Zn({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,Zn({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=oa(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return zi(Ui(e,t))}(e,h):[],v=d?Vi(Ui(e,h),"".concat(c,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:Gi(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,x=i&&s;return i&&!x&&(O={value:ya(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(O=null),Gn(Gn(Gn({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);ts.defaultProps=Wi;var ns=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=Xn(e,Jn),m=Qn((0,w.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],y=Qn((0,w.useState)(void 0!==c?c:o),2),b=y[0],O=y[1],x=Qn((0,w.useState)(void 0!==p?p:i),2),k=x[0],S=x[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),v(void 0!==n?n:e)}),[l]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),_=(0,w.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),j=void 0!==s?s:g,C=void 0!==c?c:b,T=void 0!==p?p:k;return Gn(Gn({},h),{},{inputValue:j,menuIsOpen:C,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:T})}(e);return w.createElement(ts,Zn({ref:t},n))})),rs=ns,os=n(81570);const as={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isTouchDevice:os.C,isPrimaryTouchDevice:os.i};function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cs=(0,ce.injectIntl)((function(e){var t;return(0,S.jsx)("span",ss(ss({},e.innerProps),{},{children:(0,S.jsx)(re,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var us=n(2418);function ls(){return ls=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},ls.apply(this,arguments)}const ds=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class fs extends w.Component{constructor(...e){super(...e),this._targetNode=w.createRef(),this._elementNode=w.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,w.isValidElement)(e)||(e=null),(0,w.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new us(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,ds),a=ls({target:this._targetNode.current,element:this._elementParentNode},o),i=n||"";if(this._elementParentNode&&this._elementParentNode.id!==i&&(this._elementParentNode.id=i),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?w.createElement(w.Fragment,null,e,t&&this._elementParentNode&&Io.createPortal(t,this._elementParentNode)):null}}var ps,hs,ms,gs,vs,ys,bs,ws,Os,xs,ks,Ss,Es;function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _s=c.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(ps||(ps=i()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),js=c.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(hs||(hs=i()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),Cs=c.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(ms||(ms=i()(["\n outline-style: none;\n"]))),Ts=c.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(gs||(gs=i()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),l.t7.color("paper"),l.t7.radii("form"),(function(e){return e.isTopAligned&&(0,c.AH)(vs||(vs=i()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Ms=(0,c.Ay)(fs).withConfig({displayName:"StyledTether"})(ys||(ys=i()(["\n && {\n z-index: 1;\n }\n"]))),As=(c.Ay.div.withConfig({displayName:"StyledNonTether"})(bs||(bs=i()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),l.hs.space(1.5)),(0,c.Ay)(ti.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(ws||(ws=i()(["\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}))),Is=c.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Os||(Os=i()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,l.Ed)({color:l.t7.color("signal.info"),lineHeight:"normal"}),l.hs.space(-.5),l.hs.space(-.2)),Rs=c.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(xs||(xs=i()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?l.t7.color("text"):"inherit"})),Ns=c.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(ks||(ks=i()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),Ls=c.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Ss||(Ss=i()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Fs=c.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Es||(Es=i()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),Hs=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,a=e.colors.borderSelect,i=e.colors.textDisabled,s=e.radii.form,c=l.hs.space(-1)({theme:e}),u=l.hs.space(-2)({theme:e}),d={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},f=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},p=function(t){return Ds(Ds({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Ds(Ds(Ds({},e),d),{},{outline:0})},control:function(e,t){return Ds(Ds({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:f(t)?"block":e.display})},noOptionsMessage:p,loadingMessage:p,option:function(o,a){var i=t;return a.isSelected?i=r:a.isFocused&&(i=n),Ds(Ds({},o),{},{color:e.colors.text,backgroundColor:i,cursor:"pointer",":active":{backgroundColor:a.isSelected?r:n}})},indicatorsContainer:function(e,t){return Ds(Ds({},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),Ds(Ds(Ds({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},f(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(a),borderRadius:s}},menuList:function(t,n){return Ds(Ds(Ds({},t),d),{},{border:"1px solid ".concat(a),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Ds(Ds({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},f(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Ds(Ds({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Ds(Ds({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Ds(Ds({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Ds(Ds({},e),{},{color:t.isDisabled?i:o,margin:0,whiteSpace:"wrap"})},valueContainer:function(e,t){return Ds(Ds({},e),{},{padding:0,margin:0,minHeight:t.isDisabled?"0":"2.6rem"})}}};function Bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ys=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,S.jsx)(ti.DropdownIndicator,Ws(Ws({},e),{},{children:(0,S.jsx)(Ns,{children:(0,S.jsx)(re,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};b().shape({key:b().any.isRequired,display:b().string});var Us,zs,Vs;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 Gs(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){m()(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}var $s=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ks=function(e,t){return function(n){n.stopPropagation(),e(t)}},Qs=function(e,t){return function(n){n.stopPropagation(),e(t)}},Xs=function(e){e.stopPropagation()};const Js=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||i);return(0,S.jsx)(Ts,{isTopAligned:f,children:(0,S.jsxs)(ti.IndicatorsContainer,Gs(Gs({},e),{},{children:[e.children,n&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:Ks(n,u),children:Us||(Us=(0,S.jsx)(re,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:$s(r,d,u),children:zs||(zs=(0,S.jsx)(re,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!a&&(0,S.jsx)("span",{onTouchEnd:Xs,onMouseDown:Qs(o,u),children:Vs||(Vs=(0,S.jsx)(re,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Zs;const ec=function(){return Zs||(Zs=(0,S.jsx)("span",{children:(0,S.jsx)(_,{size:"1.8rem"})}))};var tc="tocco-app",nc=n(85072),rc=n.n(nc),oc=n(97825),ac=n.n(oc),ic=n(77659),sc=n.n(ic),cc=n(55056),uc=n.n(cc),lc=n(10540),dc=n.n(lc),fc=n(41113),pc=n.n(fc),hc=n(2063),mc={};mc.styleTagTransform=pc(),mc.setAttributes=uc(),mc.insert=sc().bind(null,"head"),mc.domAPI=ac(),mc.insertStyleElement=dc();rc()(hc.A,mc);hc.A&&hc.A.locals&&hc.A.locals;var gc,vc=n(59386),yc=n.n(vc),bc=c.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(gc||(gc=i()(["\n cursor: pointer;\n user-select: none;\n"]))),wc=x().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,S.jsx)(bc,{onClick:r,ref:t,children:n})}));wc.propTypes={children:b().any,onOpen:b().func};const Oc=wc;var xc=n(33046),kc=n(37576),Sc=function(){(0,vc.registerLocale)("en",kc.A.getDateFnsLocale("en")),(0,vc.registerLocale)("en-US",kc.A.getDateFnsLocale("en")),(0,vc.registerLocale)("de-CH",kc.A.getDateFnsLocale("de-CH")),(0,vc.registerLocale)("de-DE",kc.A.getDateFnsLocale("de-DE")),(0,vc.registerLocale)("de",kc.A.getDateFnsLocale("de")),(0,vc.registerLocale)("fr",kc.A.getDateFnsLocale("fr")),(0,vc.registerLocale)("fr-CH",kc.A.getDateFnsLocale("fr")),(0,vc.registerLocale)("it",kc.A.getDateFnsLocale("it")),(0,vc.registerLocale)("it-CH",kc.A.getDateFnsLocale("it")),(0,vc.setDefaultLocale)("de")};Sc();(0,c.SL)((0,ce.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,a=e.intl,i=a.locale,s=(0,w.useRef)(null),c=(0,w.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,S.jsx)(yc(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:i,enableTabLoop:!1,customInput:(0,S.jsx)(Oc,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",a.formatMessage({id:t}))})})));var Ec,Pc,Dc,_c,jc=l.t7.color("secondaryLight"),Cc=l.t7.color("paper"),Tc=l.t7.color("text"),Mc=l.t7.color("secondary"),Ac=l.t7.radii("form"),Ic=(0,c.DU)(Ec||(Ec=i()(["\n .react-datepicker-popper {\n && {\n /* higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget */\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; /* prevent box-sizing problems in widgets */\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; /* static in all themes */\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n /* TODO fix stylelint error - https://toccoag.atlassian.net/browse/TOCDEV-9208 */\n /* stylelint-disable-next-line no-duplicate-selectors */\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"])),k.i,Tc,l.t7.radii("form"),Ac,jc,Cc,(0,l.Ed)(),(0,l.Ed)(),jc,Ac,Ac,l.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",Cc,l.hs.font(1),l.t7.fontWeight("bold"),(0,l.Ed)({fontWeight:l.t7.fontWeight("bold")}),Cc,l.hs.font(-2),l.hs.space(-1.8),Mc,Mc,Mc,jc,jc,jc,Mc,(0,l.Ed)(),Cc,l.hs.space(-.5),l.t7.color("backgroundItemHover"),Ac,l.hs.space(-.5),Cc,l.t7.color("border"),l.t7.radii("form"),l.hs.space(-1),l.hs.space(-1),l.hs.font(1),Cc,l.t7.fontWeight("bold"),l.hs.space(-1),Cc,l.hs.font(0),Tc,jc,jc,l.t7.radii("form"),Cc,jc,Mc,Tc,Tc,Cc,jc,l.t7.color("backgroundItemHover"),l.t7.color("textDisabled"),l.t7.color("border"),l.t7.radii("form")),Rc=(0,c.DU)(Pc||(Pc=i()(["\n /****** Global text colors *****/\n \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"])),l.t7.color("signal.success"),l.t7.color("signal.info"),l.t7.color("signal.warning"),l.t7.color("signal.danger"),l.t7.color("textDisabled")),Nc=(0,c.DU)(Dc||(Dc=i()(["\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"])),l.t7.color("backgroundScrollbar"),l.t7.color("backgroundScrollbarHover"),l.t7.color("backgroundScrollbar"));const Lc=function(){return _c||(_c=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Rc,{}),(0,S.jsx)(Ic,{}),(0,S.jsx)(Nc,{})]}))};function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bc=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,S.jsx)(Ms,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,S.jsx)("div",{ref:e})},renderElement:function(o){return(0,S.jsx)("div",{ref:o,className:tc,children:(0,S.jsx)(As,Hc(Hc({},tn()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Uc=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,S.jsxs)(ti.MenuList,Yc(Yc({},e),{},{className:"MenuList",children:[n,r&&(0,S.jsx)(Is,{children:o})]}))};var zc=n(66984),Vc=(n(97193),n(86635)),qc=n(49054),Gc=n(4865);const $c={...O},Kc=$c.useInsertionEffect||(e=>e());function Qc(e){const t=w.useRef((()=>{0}));return Kc((()=>{t.current=e})),w.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 Xc="ArrowUp",Jc="ArrowDown",Zc="ArrowLeft",eu="ArrowRight";var tu="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;const nu=[Zc,eu],ru=[Xc,Jc];function ou(){return ou=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},ou.apply(this,arguments)}let au=!1,iu=0;const su=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iu++;const cu=$c.useId||function(){const[e,t]=w.useState((()=>au?su():void 0));return tu((()=>{null==e&&t(su())}),[]),w.useEffect((()=>{au=!0}),[]),e};const uu=w.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:l,stroke:d,d:f,style:{transform:p,...h}={},...m}=e;const g=cu(),[v,y]=w.useState(!1);if(tu((()=>{if(!r)return;"rtl"===(0,Vc.L9)(r).direction&&y(!0)}),[r]),!r)return null;const[b,O]=n.split("-"),x="top"===b||"bottom"===b;let k=l;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*u,E=S/2,P=i/2*(c/-8+1),D=s/2*c/4,_=!!f,j=k&&"end"===O?"bottom":"top";let C=k&&"end"===O?"right":"left";k&&v&&(C="end"===O?"left":"right");const T=null!=(null==o?void 0:o.x)?k||o.x:"",M=null!=(null==o?void 0:o.y)?k||o.y:"",A=f||"M0,0 H"+i+" L"+(i-P)+","+(s-D)+" Q"+i/2+","+s+" "+P+","+(s-D)+" Z",I={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[b];return w.createElement("svg",ou({},m,{"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[C]:T,[j]:M,[b]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[I,p].filter((e=>!!e)).join(" "),...h}}),S>0&&w.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(f?0:1),d:A}),w.createElement("path",{stroke:S&&!f?m.fill:"none",d:A}),w.createElement("clipPath",{id:g},w.createElement("rect",{x:-E,y:E*(_?-1:1),width:i+S,height:i})))}));function lu(){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 du=w.createContext(null),fu=w.createContext(null),pu=()=>{var e;return(null==(e=w.useContext(du))?void 0:e.id)||null},hu=()=>w.useContext(fu);function mu(e){return"data-floating-ui-"+e}function gu(e){const t=(0,w.useRef)(e);return tu((()=>{t.current=e})),t}const vu=mu("safe-polygon");function yu(e,t,n){return n&&!(0,zc.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const bu=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wu(e,t){const n=(0,qc.Kr)(e,bu());"prev"===t&&n.reverse();const r=n.indexOf((0,zc.RS)((0,zc.YE)(e)));return n.slice(r+1)[0]}function Ou(){return wu(document.body,"next")}function xu(){return wu(document.body,"prev")}function ku(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,zc.gR)(n,r)}function Su(e){(0,qc.Kr)(e,bu()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Eu(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 Pu={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 Du(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const _u=w.forwardRef((function(e,t){const[n,r]=w.useState();tu((()=>((0,zc.nr)()&&r("button"),document.addEventListener("keydown",Du),()=>{document.removeEventListener("keydown",Du)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[mu("focus-guard")]:"",style:Pu};return w.createElement("span",ou({},e,o))})),ju=w.createContext(null),Cu=mu("portal");function Tu(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=cu(),o=Mu(),[a,i]=w.useState(null),s=w.useRef(null);return tu((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{s.current=null}))}),[a]),tu((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Cu,""),e.appendChild(n),s.current=n,i(n)}),[t,r]),tu((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,Vc.vq)(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const c=document.createElement("div");c.id=r,c.setAttribute(Cu,""),e=a||e,e.appendChild(c),s.current=c,i(c)}),[t,n,r,o]),a}({id:n,root:r}),[i,s]=w.useState(null),c=w.useRef(null),u=w.useRef(null),l=w.useRef(null),d=w.useRef(null),f=null==i?void 0:i.modal,p=null==i?void 0:i.open,h=!!i&&!i.modal&&i.open&&o&&!(!r&&!a);return w.useEffect((()=>{if(a&&o&&!f)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&&ku(e)){("focusin"===e.type?Eu:Su)(a)}}}),[a,o,f]),w.useEffect((()=>{a&&(p||Eu(a))}),[p,a]),w.createElement(ju.Provider,{value:w.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:a,setFocusManagerState:s})),[o,a])},h&&a&&w.createElement(_u,{"data-type":"outside",ref:c,onFocus:e=>{if(ku(e,a)){var t;null==(t=l.current)||t.focus()}else{const e=xu()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),h&&a&&w.createElement("span",{"aria-owns":a.id,style:Pu}),a&&Io.createPortal(t,a),h&&a&&w.createElement(_u,{"data-type":"outside",ref:u,onFocus:e=>{if(ku(e,a)){var t;null==(t=d.current)||t.focus()}else{const t=Ou()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Mu=()=>w.useContext(ju),Au="data-floating-ui-focusable";function Iu(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=cu(),a=w.useRef({}),[i]=w.useState((()=>lu())),s=null!=pu(),[c,u]=w.useState(r.reference),l=Qc(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=w.useMemo((()=>({setPositionReference:u})),[]),f=w.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return w.useMemo((()=>({dataRef:a,open:t,onOpenChange:l,elements:f,events:i,floatingId:o,refs:d})),[t,l,f,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=w.useState(null),[s,c]=w.useState(null),u=(null==o?void 0:o.reference)||a,l=w.useRef(null),d=hu();tu((()=>{u&&(l.current=u)}),[u]);const f=(0,Gc.we)({...e,elements:{...o,...s&&{reference:s}}}),p=w.useCallback((e=>{const t=(0,Vc.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),h=w.useCallback((e=>{((0,Vc.vq)(e)||null===e)&&(l.current=e,i(e)),((0,Vc.vq)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,Vc.vq)(e))&&f.refs.setReference(e)}),[f.refs]),m=w.useMemo((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:l})),[f.refs,h,p]),g=w.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),v=w.useMemo((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return tu((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),w.useMemo((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}const Ru="active",Nu="selected";function Lu(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Ru]:t,[Nu]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Au]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[Ru,Nu].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}var Fu,Hu,Bu,Wu,Yu,Uu=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Fu||(Fu=i()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),l.t7.color("text"),l.hs.font(1),l.hs.space(-1)),zu=(0,c.AH)(Hu||(Hu=i()(["\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"])),l.t7.color("text"),l.t7.lineHeight("regular"),l.t7.fontWeight("regular"),l.hs.space(-3),l.hs.space(-1.5),l.t7.radii("statusLabel")),Vu=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledHtmlFormatter"})(Bu||(Bu=i()(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; /* nice2 reset */\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; /* nice2 reset */\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; /* same color in all themes */\n }\n }\n }\n"])),(function(e){return(0,kt.gv)(e,"html")}),l.hs.space(-1),l.hs.space(-1.5),zu,l.t7.color("signal.dangerLight"),l.t7.color("textLabel"),l.t7.color("signal.infoLight"),l.t7.color("textLabel"),l.t7.color("signal.warningLight"),l.t7.color("textLabel"),l.t7.color("signal.successLight"),l.t7.color("textLabel"),zu,l.t7.color("signal.dangerLight"),l.t7.color("textLabel"),l.t7.radii("statusLabel"),l.hs.space(-2.1),l.hs.space(0),l.t7.color("paper"),l.t7.color("signal.info"),l.t7.color("signal.warningLight"),l.hs.space(-1.5),l.hs.space(.5)),qu=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Wu||(Wu=i()(["\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 svg path {\n /* style FloatingArrow SVG */\n fill: ",";\n }\n }\n"])),l.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":l.hs.space(0)}),l.t7.color("textPopover"),l.t7.color("backgroundPopover")),Gu=c.Ay.div.withConfig({displayName:"StyledBox"})(Yu||(Yu=i()(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,kt.gv)(e,"html")}),Vu,l.t7.color("textPopover"));function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$u(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qu=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,a=e.rimless,i=void 0!==a&&a,s=(0,w.useState)(!1),c=C()(s,2),u=c[0],l=c[1],d=(0,w.useRef)(null),f=Iu({open:u,onOpenChange:l,middleware:[(0,Gc.UU)(),(0,Gc.BN)({padding:20}),(0,Gc.UE)({element:d}),(0,Gc.cY)(5)]}),p=f.refs,h=f.floatingStyles,m=f.context,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,p=hu(),h=pu(),m=gu(u),g=gu(c),v=gu(n),y=w.useRef(),b=w.useRef(-1),O=w.useRef(),x=w.useRef(-1),k=w.useRef(!0),S=w.useRef(!1),E=w.useRef((()=>{})),P=w.useRef(!1),D=w.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);w.useEffect((()=>{if(s)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(x.current),k.current=!0,P.current=!1)}}),[s,a]),w.useEffect((()=>{if(!s)return;if(!m.current)return;if(!n)return;function e(e){D()&&r(!1,e,"hover")}const t=(0,zc.YE)(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,s,m,D]);const _=w.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=yu(g.current,"close",y.current);o&&!O.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(b.current),r(!1,e,n))}),[g,r]),j=Qc((()=>{E.current(),O.current=void 0})),C=Qc((()=>{if(S.current){const e=(0,zc.YE)(i.floating).body;e.style.pointerEvents="",e.removeAttribute(vu),S.current=!1}}));w.useEffect((()=>{if(s&&(0,Vc.vq)(i.domReference)){var e;const t=i.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=i.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",a,{once:!0}),t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=i.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",a),t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function a(e){if(clearTimeout(b.current),k.current=!1,l&&!(0,zc.Go)(y.current)||d>0&&!yu(g.current,"open"))return;const t=yu(g.current,"open",y.current);t?b.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=(0,zc.YE)(i.floating);if(clearTimeout(x.current),P.current=!1,m.current&&o.current.floatingContext){n||clearTimeout(b.current),O.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),j(),_(e,!0,"safe-polygon")}});const t=O.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==y.current||!(0,zc.gR)(i.floating,e.relatedTarget))&&_(e)}function u(e){t()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){C(),j(),_(e)}})(e))}}),[i,s,e,l,d,f,_,j,C,r,n,v,p,g,m,o]),tu((()=>{var e;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&D()){S.current=!0;const e=i.floating;if((0,Vc.vq)(i.domReference)&&e){var t;const n=(0,zc.YE)(i.floating).body;n.setAttribute(vu,"");const r=i.domReference,o=null==p||null==(t=p.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,h,i,p,m,D]),tu((()=>{n||(y.current=void 0,P.current=!1,j(),C())}),[n,j,C]),w.useEffect((()=>()=>{j(),clearTimeout(b.current),clearTimeout(x.current),C()}),[s,i.domReference,j,C]);const T=w.useMemo((()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||v.current||r(!0,t,"hover")}l&&!(0,zc.Go)(y.current)||n||0===d||P.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===y.current?o():(P.current=!0,x.current=window.setTimeout(o,d)))}}}),[l,r,n,v,d]),M=w.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){_(e.nativeEvent,!1)}})),[_]);return w.useMemo((()=>s?{reference:T,floating:M}:{}),[s,T,M])}(m,{delay:{open:500,close:0}}),v=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=w.useCallback((t=>Lu(t,e,"reference")),t),a=w.useCallback((t=>Lu(t,e,"floating")),n),i=w.useCallback((t=>Lu(t,e,"item")),r);return w.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i})),[o,a,i])}([g]),y=v.getReferenceProps,b=v.getFloatingProps;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",Ku(Ku({ref:p.setReference},y()),{},{children:t})),u&&n&&(0,S.jsx)(Tu,{children:(0,S.jsxs)(qu,Ku(Ku({ref:p.setFloating,style:h,rimless:i},b()),{},{className:tc,children:[(0,S.jsx)(uu,{ref:d,context:m}),(0,S.jsx)(Gu,{isPlainHtml:o,children:n})]}))})]})},Xu=Qu;const Ju=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,s=o.DetailLink,c=Rn()(a,t.key,null),u=(0,S.jsx)("span",{style:n.css,children:r}),l=s?(0,S.jsx)(_s,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,S.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,S.jsx)(Xu,{content:c?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(c)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return i&&!c&&i(t.key)},children:u})})})}):u;return(0,S.jsx)(Fs,{children:l})};var Zu=n(85015),el=n.n(Zu),tl=n(42194),nl=n.n(tl);function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var al=["linkComp"],il=function(e,t){var n=xt.A.difference(e,t),r=nl()(tn()(n,al),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},sl=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&el()(n)?(0,S.jsx)(_s,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,S.jsx)(t,{entityKey:n,children:r})}):r}),il);sl.propTypes={children:b().node,entityKey:b().any,linkComp:b().func};const cl=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,s=n.DetailLink,c=Rn()(a,t.key,null);return(0,S.jsx)(ti.SingleValue,ol(ol({},e),{},{children:(0,S.jsx)(Rs,{onMouseOver:function(){return i&&!c&&i(t.key)},isDisabled:r,children:(0,S.jsx)(Xu,{content:c?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(c)}}):null,children:(0,S.jsx)(sl,{linkComp:s,entityKey:t.key,children:o})})})}))};function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 ll=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const dl=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,S.jsx)(ti.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=w.Children.map(r,(function(e){return ll(e)?e:null})),u=w.Children.map(r,(function(e){return ll(e)?null:e})),l=s&&n;return(0,S.jsxs)(S.Fragment,{children:[!l&&(0,S.jsx)(S.Fragment,{children:c}),(0,S.jsx)(Ls,{children:u})]})};function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hl=(0,c.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),E=(0,w.useRef)(null),P=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||300},D=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),j=C()(_,2),T=j[0],M=j[1],A=(0,w.useState)(D()),I=C()(A,2),R=I[0],N=I[1],L=(0,w.useState)(!1),F=C()(L,2),H=F[0],B=F[1],W=function(e){t&&t(e)},Y=(0,w.useCallback)(m||function(){},[]),U=(0,w.useCallback)(zn()(Y,800,{trailing:!0}),[]),z=Boolean(p),V=Boolean(f),q=Boolean(O),G=Boolean(m)||!as.isPrimaryTouchDevice();return(0,S.jsx)(js,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){M(P()),N(D())}),0)},children:(0,S.jsx)(Cs,{ref:E,children:(0,S.jsx)(rs,pl(pl({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:T,wrapperHeight:R,components:{ClearIndicator:cs,LoadingIndicator:ec,DropdownIndicator:Ys,IndicatorsContainer:Js,IndicatorSeparator:null,Menu:Bc,MenuList:Uc,MultiValueLabel:Ju,SingleValue:cl,ValueContainer:dl},noOptionsMessage:function(e){return u||("function"==typeof l?(0,S.jsx)(l,pl({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:G},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),W(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,y),""===e&&"input-change"===n&&W(y)},options:le()(h||[]),onKeyDown:function(e){"Enter"===e.key&&H&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){W(y),B(!0)},onMenuClose:function(){B(!1)},styles:Hs(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:z,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:q,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const ml=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,s=e.onChange;return(0,S.jsx)(hl,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Yn()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var gl,vl=c.Ay.div.withConfig({displayName:"StyledBoolEdit"})(gl||(gl=i()(["\n margin: 5px 0;\n"])));const yl=function(e){return(0,S.jsx)(vl,{children:(0,S.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 bl,wl,Ol=function(e){var t=e.id,n=e.value,r=e.breakWords,o=e.className;return(0,S.jsx)(Vu,{id:t,dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(n)},breakWords:r,className:o})},xl=c.Ay.div.withConfig({displayName:"StyledOption"})(bl||(bl=i()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),l.hs.space(-1),l.hs.space(-1.5)),kl=c.Ay.span.withConfig({displayName:"StyledLabel"})(wl||(wl=i()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,l.Ed)(),l.hs.space(-1.5));function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pl={single:"radio",multiple:"checkbox"},Dl={single:{checked:!1},multiple:{}},_l=function(e,t){return t?(0,S.jsx)(Ol,{value:e}):e},jl=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,S.jsxs)(xl,{children:[!s&&(0,S.jsx)("input",{name:t,type:Pl[c],checked:a||!1,onChange:l,id:n,disabled:i}),(0,S.jsx)(kl,{children:o||_l(r,u)})]})};const Cl=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return El(El({},t),t.id===e.target.id?{checked:e.target.checked}:Dl[r.selectionType])}));t({options:o})}};return(0,S.jsx)(S.Fragment,{children:n.options.map((function(e){return(0,S.jsx)(jl,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};n(98639);function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=(0,w.lazy)((function(){return Promise.all([n.e(264),n.e(722)]).then(n.bind(n,65066))}));const Il=function(e){return(0,S.jsx)(w.Suspense,{fallback:(t=e.value,(0,S.jsx)("div",{children:(0,S.jsx)("p",{children:t})})),children:(0,S.jsx)(Al,Ml({},e))});var t};var Rl,Nl=c.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Rl||(Rl=i()(["\n margin-top: ",";\n"])),l.hs.space(-1.5));const Ll=(0,c.SL)(T.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,S.jsx)(Nl,{children:(0,S.jsx)(Il,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Fl,Hl,Bl,Wl=c.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Fl||(Fl=i()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Yl=c.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Hl||(Hl=i()(["\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"])),Sn,Pn,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Ul=c.Ay.input.withConfig({displayName:"StyledTimeInput"})(Bl||(Bl=i()(["\n &&&& {\n ","\n }\n"])),Pn),zl=n(73082),Vl="react-datepicker-time__input",ql="react-datepicker__day",Gl="react-datepicker__input",$l=function(e){return e.classList.contains(ql)},Kl=function(e){return e.classList.contains(Vl)},Ql=function(e){return e.classList.contains(Gl)},Xl=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ql,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Jl=function(e,t){var n=null==e?void 0:e.form;if(n){var r=le()(n).indexOf(e);if(r>=0)Zl(n[r+(t?2:3)])}else zl.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},Zl=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},ed=function(e){if(!e)return null;var t=(0,xc.Hle)(e.toString());return isNaN(t)?null:t},td=function(e){return e?e.toISOString():null};const nd=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?ed:c,l=n.dateToValue,d=void 0===l?td:l,f=(0,w.useRef)(null),p=(0,w.useState)(!1),h=C()(p,2),m=h[0],g=h[1],v=u(e),y=a?u(a):void 0,b=i?u(i):void 0;(0,w.useEffect)((function(){f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m)}),[m]);var O=function(){return g(!1)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},k=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},S=function(){t(null),k(null)},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=x(!1);if(n){var r=v||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,s=void 0===i?0:i;return(0,xc.avh)((0,xc.glI)((0,xc.gtt)(e,s),a),r)}(n,{hour:(0,xc.qZx)(r),minute:(0,xc.Osm)(r),second:(0,xc.SyE)(r)}):n;P(o,e)}},P=function(n,r){if(n){var a,i=!e&&Boolean(n),c=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!c&&o.some((function(e){return(0,xc.uv4)(c,e)})),l=(0,xc.ol1)(n),p=(0,xc.qZx)(n)!==(0,xc.qZx)(l)||(0,xc.Osm)(n)!==(0,xc.Osm)(l);(i&&!p||u)&&s&&(n=kc.A.setCurrentTime(n)),t(d(n))}else S();var h;s||"click"!==(null==r?void 0:r.type)||(O(),Zl(null===(h=f.current)||void 0===h?void 0:h.input))},D=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Ql(t.target))O();else if(Kl(t.target)){var a;k(v||x(!0)),Xl(null==f||null===(a=f.current)||void 0===a||null===(a=a.calendar)||void 0===a||null===(a=a.containerRef)||void 0===a?void 0:a.current)}else if($l(t.target)){var i;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=le()(t).indexOf(e);n>=1&&Zl(t[n-1])}else zl.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(i=f.current)||void 0===i?void 0:i.input)}}else if(Ql(t.target)&&m)E(t),O(),Jl(null===(n=f.current)||void 0===n?void 0:n.input,o);else if(Kl(t.target)){var c;O(),Jl(null===(c=f.current)||void 0===c?void 0:c.input,o)}else if($l(t.target)){var u,l;if(s)E(t,!0),k(null),r=null==f||null===(u=f.current)||void 0===u||null===(u=u.calendar)||void 0===u||null===(u=u.containerRef)||void 0===u?void 0:u.current,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Vl));e&&e.focus({preventScroll:!0})}}),0);else E(t),O(),Jl(null===(l=f.current)||void 0===l?void 0:l.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;Zl(null===(e=f.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(m){if(m&&null===x(!1)){var d;k(v||x(!0)),Xl(null==f||null===(d=f.current)||void 0===d||null===(d=d.calendar)||void 0===d||null===(d=d.containerRef)||void 0===d?void 0:d.current)}}else g(!0),t.key="Handled".concat(t.key)},_=function(){var e;g((function(e){return!e})),k(null),Zl(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:_,onKeyDown:D,onChange:P,onCalendarOpen:function(){k(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:v,showTimeInput:s,minDate:y,maxDate:b,ref:f,className:Gl},timeInputProps:{onKeyDown:D,className:Vl},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),S()}},calendarButtonProps:{onClick:_,className:m?"react-datepicker-ignore-onclickoutside":""},closeModal:O}};var rd="HH:mm:ss",od="HH:mm",ad=function(e){return(0,xc.uv4)(e,od)},id=function(e){var t=function(e){return e?(0,xc.uv4)(e,rd)?(0,xc.qgA)(e,rd,new Date):(0,xc.uv4)(e,od)?(0,xc.qgA)(e,od,new Date):(0,xc.uv4)(e,"HH:")?(0,xc.qgA)(e,"HH:",new Date):(0,xc.uv4)(e,"H")?(0,xc.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,xc.GPZ)(e,od)}(t):""};const sd=function(e,t){var n=id(e),r=(0,w.useState)(n),o=C()(r,2),a=o[0],i=o[1],s=(0,w.useRef)(a),c=T.A.usePrevious(n);(0,w.useEffect)((function(){c!==n&&a===c&&i(n)}),[n,a,c]);var u={onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,i(n);var p=id(n);p&&!ad(p)||t(p)}},onBlur:function(){if(a!==n){var e=id(a);e&&ad(e)?(s.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var cd=["value","onChange","onKeyDown"];function 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){m()(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}Sc();var dd=function(e){var t=e.onChange,n=e.label;return(0,S.jsx)(K,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},fd=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=v()(e,cd),a=sd(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,S.jsx)(Ul,ld(ld(ld({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},pd={strategy:"fixed"};const hd=(0,c.SL)((0,ce.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,E=function(e){v.current=e,c(e)},P=nd(r,E,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:s,hasTime:d}),D=P.reactDatePickerProps,_=P.timeInputProps,j=P.clearButtonProps,C=P.calendarButtonProps,T=P.closeModal;return(0,w.useEffect)((function(){var e=function(){return T()},t=O.current;return t&&t.addEventListener("tableNavigationBlur",e),function(){t&&t.removeEventListener("tableNavigationBlur",e)}}),[T]),(0,S.jsx)(Wl,{immutable:t,id:n,tabIndex:"-1",children:(0,S.jsxs)(Yl,{immutable:t,ref:O,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},"data-custom-arrow-navigation":"datepicker",children:[(0,S.jsx)(yc(),ld(ld({id:n?"".concat(n,"-datepicker"):null,popperClassName:tc},D),{},{disabled:t,dateFormat:[].concat(le()(m),le()(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:y,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,S.jsx)(fd,ld({},_)),showTimeSelect:d,timeIntervals:15,popperProps:pd,portalId:"react-datepicker",todayButton:(0,S.jsx)(dd,{onChange:E,label:b("client.component.datePicker.todayLabel")})})),k&&(0,S.jsx)(re,ld({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},j)),!t&&(0,S.jsx)(re,ld({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const gd=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,s=e.placeholder,c=(0,ce.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(kc.A.getLocalizedDateFormat(c.locale)),d=kc.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,kc.A.useTwoDigitYear(l),kc.A.useTwoDigitYear(d)];return(0,S.jsx)(hd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:a,placeholder:s,events:i},u))};function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const yd=(0,ce.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,ce.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(kc.A.getLocalizedDateTimeFormat(i.locale)),u="".concat(kc.A.getLocalizedDateFormat(i.locale)),l=kc.A.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),d=[c,l,kc.A.useTwoDigitYear(c),kc.A.useTwoDigitYear(l)],f=kc.A.getLocalizedDateFormatWithoutPunctuation(i.locale),p=[u,f,kc.A.useTwoDigitYear(u),kc.A.useTwoDigitYear(f)];return(0,S.jsx)(hd,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:a},s))}));var bd,wd,Od,xd,kd,Sd,Ed,Pd,Dd=c.Ay.section.withConfig({displayName:"StyledSection"})(bd||(bd=i()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),_d=c.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(wd||(wd=i()(["\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"])),q,l.hs.space(-2)),jd=c.Ay.div.withConfig({displayName:"StyledDropzone"})(Od||(Od=i()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),q,l.t7.color("backgroundItemHover")),Cd=c.Ay.div.withConfig({displayName:"StyledUploadInput"})(xd||(xd=i()(["\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,l.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),l.t7.color("paper"),(function(e){return e.immutable?l.Db.shade2(e):l.Db.base(e)}),l.hs.space(-2),q,l.hs.space(-3.1),l.hs.space(-1.5)),Td=c.Ay.div.withConfig({displayName:"StyledUploadProgress"})(kd||(kd=i()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),l.hs.space(-2)),Md=(0,c.Ay)(kt.oY).withConfig({displayName:"StyledUploadProgressText"})(Sd||(Sd=i()(["\n && {\n ","\n }\n"])),(0,l.Ed)({fontSize:l.hs.font(-1)})),Ad=c.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Ed||(Ed=i()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),l.hs.space(-2)),Id=c.Ay.div.withConfig({displayName:"StyledView"})(Pd||(Pd=i()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),l.hs.space(-2)),Rd=n(2404),Nd=n.n(Rd);function Ld(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function Fd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Hd(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Bd(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Wd=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 Yd(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Wd.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 Ud=[".DS_Store","Thumbs.db"];function zd(e){return"object"==typeof e&&null!==e}function Vd(e){return Kd(e.target.files).map((function(e){return Yd(e)}))}function qd(e){return Ld(this,void 0,void 0,(function(){return Fd(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 Yd(e)}))]}}))}))}function Gd(e,t){return Ld(this,void 0,void 0,(function(){var n;return Fd(this,(function(r){switch(r.label){case 0:return e.items?(n=Kd(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qd))]):[3,2];case 1:return[2,$d(Xd(r.sent()))];case 2:return[2,$d(Kd(e.files).map((function(e){return Yd(e)})))]}}))}))}function $d(e){return e.filter((function(e){return-1===Ud.indexOf(e.name)}))}function Kd(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qd(e){if("function"!=typeof e.webkitGetAsEntry)return Jd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ef(t):Jd(e)}function Xd(e){return e.reduce((function(e,t){return Bd(Bd([],Hd(e),!1),Hd(Array.isArray(t)?Xd(t):[t]),!1)}),[])}function Jd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Yd(t);return Promise.resolve(n)}function Zd(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return[2,e.isDirectory?ef(e):tf(e)]}))}))}function ef(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Ld(a,void 0,void 0,(function(){var a,i,s;return Fd(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=c.sent(),e(a),[3,4];case 3:return i=c.sent(),n(i),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(Zd)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function tf(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Yd(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var nf=n(9455);function rf(e){return function(e){if(Array.isArray(e))return lf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uf(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 of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||uf(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 uf(e,t){if(e){if("string"==typeof e)return lf(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)?lf(e,t):void 0}}function lf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var df="file-invalid-type",ff="file-too-large",pf="file-too-small",hf="too-many-files",mf=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:df,message:"File type must be ".concat(t)}},gf=function(e){return{code:ff,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},vf=function(e){return{code:pf,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},yf={code:hf,message:"Too many files"};function bf(e,t){var n="application/x-moz-file"===e.type||(0,nf.A)(e,t);return[n,n?null:mf(t)]}function wf(e,t,n){if(Of(e.size))if(Of(t)&&Of(n)){if(e.size>n)return[!1,gf(n)];if(e.size<t)return[!1,vf(t)]}else{if(Of(t)&&e.size<t)return[!1,vf(t)];if(Of(n)&&e.size>n)return[!1,gf(n)]}return[!0,null]}function Of(e){return null!=e}function xf(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function kf(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 Sf(e){e.preventDefault()}function Ef(){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!xf(e)&&t&&t.apply(void 0,[e].concat(r)),xf(e)}))}}function Pf(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Df(e){return/^.*\.[\w]+$/.test(e)}var _f=["children"],jf=["open"],Cf=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Tf=["refKey","onChange","onClick"];function Mf(e){return function(e){if(Array.isArray(e))return Rf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||If(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 Af(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||If(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 If(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){Ff(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ff(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Bf=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lf(Lf({},Wf),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,w.useMemo)((function(){return function(e){if(Of(e))return Object.entries(e).reduce((function(e,t){var n=cf(t,2),r=n[0],o=n[1];return[].concat(rf(e),[r],rf(o))}),[]).filter((function(e){return Pf(e)||Df(e)})).join(",")}(n)}),[n]),_=(0,w.useMemo)((function(){return function(e){if(Of(e)){var t=Object.entries(e).filter((function(e){var t=cf(e,2),n=t[0],r=t[1],o=!0;return Pf(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(Df)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=cf(t,2),r=n[0],o=n[1];return af(af({},e),{},sf({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),j=(0,w.useMemo)((function(){return"function"==typeof g?g:Vf}),[g]),C=(0,w.useMemo)((function(){return"function"==typeof m?m:Vf}),[m]),T=(0,w.useRef)(null),M=(0,w.useRef)(null),A=Af((0,w.useReducer)(zf,Uf),2),I=A[0],R=A[1],N=I.isFocused,L=I.isFileDialogActive,F=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){M.current&&(M.current.files.length||(R({type:"closeDialog"}),C()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[M,L,C,F]);var B=(0,w.useRef)([]),W=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",Sf,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",Sf),document.removeEventListener("drop",W))}}),[T,b]),(0,w.useEffect)((function(){return!r&&y&&T.current&&T.current.focus(),function(){}}),[T,y,r]);var Y=(0,w.useCallback)((function(e){E?E(e):console.error(e)}),[E]),U=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Mf(B.current),[e.target]),kf(e)&&Promise.resolve(o(e)).then((function(t){if(!xf(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=cf(bf(e,n),1)[0],a=cf(wf(e,r,o),1)[0],i=s?s(e):null;return t&&a&&!i}))}({files:t,accept:D,minSize:i,maxSize:a,multiple:s,maxFiles:c,validator:P});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return Y(e)}))}),[o,u,Y,S,D,i,a,s,c,P]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=kf(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),V=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kf(e)&&l&&l(e))}),[T,l,S]),q=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Af(bf(e,D),2),o=t[0],s=t[1],c=Af(wf(e,i,a),2),u=c[0],l=c[1],d=P?P(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[yf]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[R,s,D,i,a,c,f,p,h,P]),G=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],kf(e)&&Promise.resolve(o(e)).then((function(t){xf(e)&&!S||q(t,e)})).catch((function(e){return Y(e)})),R({type:"reset"})}),[o,q,Y,S]),$=(0,w.useCallback)((function(){if(F.current){R({type:"openDialog"}),j();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),R({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?Y(e):(F.current=!1,M.current?(M.current.value=null,M.current.click()):Y(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(C(e),R({type:"closeDialog"}))}))}else M.current&&(R({type:"openDialog"}),j(),M.current.value=null,M.current.click())}),[R,j,C,v,q,Y,_,s]),K=(0,w.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),$()))}),[T,$]),Q=(0,w.useCallback)((function(){R({type:"focus"})}),[]),X=(0,w.useCallback)((function(){R({type:"blur"})}),[]),J=(0,w.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)}()?$():setTimeout($,0))}),[O,$]),Z=function(e){return r?null:e},ee=function(e){return x?null:Z(e)},te=function(e){return k?null:Z(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Hf(e,Cf);return Lf(Lf(Ff({onKeyDown:ee(Ef(a,K)),onFocus:ee(Ef(i,Q)),onBlur:ee(Ef(s,X)),onClick:Z(Ef(c,J)),onDragEnter:te(Ef(u,U)),onDragOver:te(Ef(l,z)),onDragLeave:te(Ef(d,V)),onDrop:te(Ef(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,T),r||x?{}:{tabIndex:0}),p)}}),[T,K,Q,X,J,U,z,V,G,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=Hf(e,Tf);return Lf(Lf({},Ff({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:Z(Ef(r,G)),onClick:Z(Ef(o,oe)),tabIndex:-1},n,M)),a)}}),[M,n,s,G,r]);return Lf(Lf({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:M,open:Z($)})}(Hf(e,_f)),o=r.open,a=Hf(r,jf);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),x().createElement(w.Fragment,null,n(Lf(Lf({},a),{},{open:o})))}));Bf.displayName="Dropzone";var Wf={disabled:!1,getFilesFromEvent:function(e){return Ld(this,void 0,void 0,(function(){return Fd(this,(function(t){return zd(e)&&zd(e.dataTransfer)?[2,Gd(e.dataTransfer,e.type)]:function(e){return zd(e)&&zd(e.target)}(e)?[2,Vd(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qd(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};Bf.defaultProps=Wf,Bf.propTypes={children:b().func,accept:b().objectOf(b().arrayOf(b().string)),multiple:b().bool,preventDropOnDocument:b().bool,noClick:b().bool,noKeyboard:b().bool,noDrag:b().bool,noDragEventsBubbling:b().bool,minSize:b().number,maxSize:b().number,maxFiles:b().number,disabled:b().bool,getFilesFromEvent:b().func,onFileDialogCancel:b().func,onFileDialogOpen:b().func,useFsAccessApi:b().bool,autoFocus:b().bool,onDragEnter:b().func,onDragLeave:b().func,onDragOver:b().func,onDrop:b().func,onDropAccepted:b().func,onDropRejected:b().func,onError:b().func,validator:b().func};const Yf=Bf;var Uf={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function zf(e,t){switch(t.type){case"focus":return Lf(Lf({},e),{},{isFocused:!0});case"blur":return Lf(Lf({},e),{},{isFocused:!1});case"openDialog":return Lf(Lf({},Uf),{},{isFileDialogActive:!0});case"closeDialog":return Lf(Lf({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Lf(Lf({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Lf(Lf({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Lf({},Uf);default:return e}}function Vf(){}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $f=(0,ce.injectIntl)((function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose,a=e.intl,i=function(e){return a.formatMessage({id:e})};return(0,S.jsxs)(Cd,{immutable:n,children:[(0,S.jsx)(Yf,{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,S.jsx)(Dd,{children:(0,S.jsxs)(jd,Gf(Gf({},t()),{},{children:[(0,S.jsx)("input",Gf({},n())),(0,S.jsx)(K,{icon:"arrow-to-top",label:i("client.component.upload.uploadFile"),iconOnly:!0})]}))})}}),o&&(0,S.jsx)(K,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:i("client.component.upload.browseDocs"),iconOnly:!0})]})}));var Kf,Qf=c.Ay.figure.withConfig({displayName:"StyledPreview"})(Kf||(Kf=i()(["\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"])),l.hs.space(-2.2),l.t7.color("border"),l.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Xf=Qf;var Jf;const Zf=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),a=e.maxDimensionX,i=e.maxDimensionY,s=t?(0,S.jsx)("img",{alt:n,title:n,src:t}):(0,S.jsx)("div",{title:n,children:Jf||(Jf=(0,S.jsx)(k.A,{icon:"file-alt"}))});return(0,S.jsxs)(Xf,{maxDimensionX:a,maxDimensionY:i,children:[(0,S.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,S.jsx)(kt.Ay.Figcaption,{children:o})]})};var ep=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 tp=function(e){var t=e.file,n=e.text;return(0,S.jsxs)(Td,{children:[(0,S.jsx)(Zf,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,S.jsxs)(Ad,{children:[(0,S.jsx)(_,{position:l.xX.position.PREPEND}),(0,S.jsxs)(Md,{children:[n||"uploading"," (",ep(t.size),")"]})]})]})};var np=n(31558);function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ap=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,S.jsxs)(Id,{className:"StyledView",children:[(0,S.jsx)(Zf,op(op({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,S.jsxs)(_d,{children:[!o&&(0,S.jsx)(K,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,S.jsx)(K,{children:(0,S.jsx)(kn.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:np.A.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cp=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,a=e.onChoose,i=(0,w.useRef)(t),s=(0,w.useState)({isUploading:!1,previewFile:null}),c=C()(s,2),u=c[0],l=c[1];return(0,w.useEffect)((function(){Nd()(i.current,t)||l({isUploading:!1,previewFile:null}),i.current=t}),[t]),null!=t&&t.binaryLink?(0,S.jsx)(ap,sp(sp({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,S.jsx)(tp,sp({file:u.previewFile,text:r.uploading},e)):(0,S.jsx)($f,sp(sp({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:a}))};const up=function(e){var t=e.onChange,n=e.options,r=void 0===n?{}:n,o=e.immutable,a=e.value;return(0,S.jsx)(cp,{onUpload:function(e){null===e?t&&t(null):r.upload&&r.upload(e)},onChoose:r.choose,immutable:o,textResources:{upload:r.uploadText,uploading:r.uploadingText,delete:r.deleteText,download:r.downloadText},value:a||null})};var lp,dp,fp=c.Ay.input.withConfig({displayName:"StyledDurationEdit"})(lp||(lp=i()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Pn,(function(e){return e.width})),pp=c.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(dp||(dp=i()(["\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"])),l.hs.space(1),(function(e){return e.immutable?l.t7.color("textDisabled"):l.t7.color("text")}),(function(e){return e.immutable&&"text"}));const hp=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,a=e.options,i=void 0===a?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:a,s=kc.A.millisecondsToDuration(n),c=(0,w.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e,t){var n,r,a=null!==t?t:s.minutes,i=null!==e?e:s.hours;""!==a||""!==i?(a>=60&&(i=0),o((r=a,(n=i)||r?((n<0||r<0)&&(n=Mn(n),r=Mn(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){d(!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 l||"number"==typeof n},v=function(e){return 9*(e+"").length},y=r&&Boolean(s.seconds);return(0,S.jsxs)(En,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{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,"");f(t,null)},onKeyPress:h,pattern:m(),step:1,width:v(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.hoursLabel})]}),(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{disabled:r,immutable:r,min:!0!==i.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(null,t)},onKeyPress:h,pattern:m(),step:1,width:v(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.minutesLabel})]}),y&&(0,S.jsxs)(pp,{immutable:r,children:[(0,S.jsx)(fp,{disabled:r,immutable:r,onChange:function(){},width:v(s.seconds),type:"number",value:s.seconds+""}),g()&&(0,S.jsx)(kt.Ay.Span,{children:i.secondsLabel})]})]})};var mp;const gp=c.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(mp||(mp=i()(["\n &&&& {\n ","\n }\n"])),Pn);const vp=T.A.Debouncer((function(e){return(0,S.jsxs)(En,{immutable:e.immutable,children:[(0,S.jsx)(gp,{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,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var yp=n(56994),bp=n.n(yp),wp=n(67197),Op=n.n(wp),xp=n(44383),kp=n.n(xp);function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pp(){Pp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=RegExp(e,r);return t.set(a,o||t.get(e)),Op()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return bp()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Tn()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Pp.apply(this,arguments)}var Dp,_p=["key","display","postcode","city","country","latitude","longitude"],jp=function(e){return e*Math.PI/180},Cp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:jp(a),longitude:jp(i)}};function Tp(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 Mp(){}function Ap(e){return!!(e||"").match(/\d/)}function Ip(e){return null==e}function Rp(e){return Ip(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Np(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Lp(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 Fp(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Hp(e,t){return Array(t+1).join(e)}function Bp(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,s=(o=o.replace(".","")).length;return i<0?o="0."+Hp("0",Math.abs(i))+o:i>=s?o+=Hp("0",i-s):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Wp(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Lp(e),a=o.beforeDecimal,i=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:c.toFixed(t)).split("."),l=a;return a&&Number(u[0])&&(l=a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Fp(u[1]||"",t,n)}function Yp(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"}(Dp||(Dp={}));var Up,zp,Vp,qp=(Up=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}},Vp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return zp&&e.length===zp.length&&e.every((function(e,t){return e===zp[t]}))?Vp:(zp=e,Vp=Up.apply(void 0,e))}),Gp=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function $p(e){return Math.max(e.selectionStart,e.selectionEnd)}function Kp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Qp(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Xp(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 Jp(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(Ap(e[n])||Ap(e[n-1]));return t}function Zp(e,t,n,r,o,a){void 0===a&&(a=Mp);var i=function(e){var t=(0,w.useRef)(e);t.current=e;var n=(0,w.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,a;return Rp(e)?(a="",n=""):"number"==typeof e||t?(a="number"==typeof e?Bp(e):e,n=r(a)):(a=o(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}})),s=(0,w.useState)((function(){return i(Ip(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Ip(e)&&(l=c.numAsString,d=!0);var f=i(l,d);return(0,w.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function eh(e){return e.replace(/[^0-9]/g,"")}function th(e){return e}function nh(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=th);var s=e.removeFormatting;void 0===s&&(s=eh);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Mp);var p=e.onKeyDown;void 0===p&&(p=Mp);var h=e.onMouseUp;void 0===h&&(h=Mp);var m=e.onFocus;void 0===m&&(m=Mp);var g=e.onBlur;void 0===g&&(g=Mp);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Jp);var b=e.isValidInputCharacter;void 0===b&&(b=Ap);var O=e.isCharacterSame,k=Tp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Zp(v,c,Boolean(u),i,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],j=(0,w.useRef)(),C=(0,w.useRef)({formattedValue:P,numAsString:D}),T=function(e,t){C.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},M=(0,w.useState)(!1),A=M[0],I=M[1],R=(0,w.useRef)(null),N=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return I(!0),function(){clearTimeout(N.current.setCaretTimeout),clearTimeout(N.current.focusTimeout)}}),[]);var L=i,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},H=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Yp(e,t),N.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Yp(e,t)}),0))},B=function(e,t,n){return Xp(e,t,y(e),n)},W=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a,i){void 0===i&&(i=Qp);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(i({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!a(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,b,O);return o=Xp(t,o,r)};(0,w.useEffect)((function(){var e=C.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||T(F(P,D),{event:void 0,source:Dp.props})}),[P,D]);var Y=R.current?$p(R.current):void 0;("undefined"!=typeof window?w.useLayoutEffect:w.useEffect)((function(){var e=R.current;if(P!==C.current.formattedValue&&e){var t=W(C.current.formattedValue,P,Y);e.value=P,H(e,t,P)}}),[P]);var U=function(e,t,n){var r=t.target,o=j.current?Gp(j.current,r.selectionEnd):qp(P,e),a=Object.assign(Object.assign({},o),{lastValue:P}),i=s(e,a),c=L(i);if(i=s(c,void 0),d&&!d(F(c,i))){var u=t.target,l=$p(u),f=W(e,P,l);return u.value=P,H(u,f,P),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,a=e.event,i=e.numAsString;if(r){var s=e.inputValue||r.value,c=$p(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&T(F(t,i),{event:a,source:o})}({formattedValue:c,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},z=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;j.current={selectionStart:n,selectionEnd:r+t}},V=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:V},k,{type:t,value:P,onChange:function(e){var t=e.target.value;U(t,e,Dp.event)&&f(e),j.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===a&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==a&&!c)return p(e),void z(n,s);var u=t;c?(u=B(i,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(u=B(i,t,"left")):u=B(i,t,"right");u!==t&&H(n,u,i),p(e),z(n,s)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=B(r,e);o!==e&&H(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e),z(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;R.current=t,N.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,a=t.value;void 0===a&&(a="");var i=B(a,r);i===r||0===r&&o===a.length||H(t,i,a),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){R.current=null,clearTimeout(N.current.focusTimeout),clearTimeout(N.current.setCaretTimeout),g(e)}});if("text"===n)return o?x().createElement(x().Fragment,null,o(P,k)||null):x().createElement("span",Object.assign({},k,{ref:a}),P);if(r){var G=r;return x().createElement(G,Object.assign({},q,{ref:a}))}return x().createElement("input",Object.assign({},q,{ref:a}))}function rh(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=oh(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Lp(e,i),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Fp(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),a&&(h+=a),m&&(p="-"+p),e=p+(d&&l||"")+h}function oh(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 ah(e,t,n){var r;void 0===t&&(t=Kp(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=oh(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(Ap(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var E=0;e.startsWith(a)?E+=a.length:l<a.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-i.length;e.endsWith(i)?P=D:(d>D||d>e.length-i.length)&&(P=d),e=e.substring(0,P),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Np(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Np(h),"g"),(function(e,t){return t===_?".":""}));var j=Lp(e,o),C=j.beforeDecimal,T=j.afterDecimal,M=j.addNegation;return u.end-u.start<c.end-c.start&&""===C&&m&&!parseFloat(T)&&(e=M?"-":""),e}function ih(e){e=function(e){var t=oh(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Mp);var a=e.onBlur;void 0===a&&(a=Mp);var i=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Tp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=oh(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return rh(t,e)},b=function(t,n){return ah(t,n,e)},w=Ip(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Ip(d)?Ip(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Rp(e)?e:("number"==typeof e&&(e=Bp(e)),O&&"number"==typeof s?Wp(e,s,Boolean(c)):e)},k=Zp(x(d),x(l),Boolean(O),y,b,p),S=k[0],E=S.numAsString,P=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:P,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Ap(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,a=e.formattedValueIndex,i=t[o],l=r[a],f=qp(n,t).to,p=function(e){return b(e).indexOf(".")+u.length};return!(0===d&&c&&s&&t[f.start]===g&&p(t)<o&&p(r)>a)&&(!!(o>=f.start&&o<f.end&&v&&v.includes(i)&&l===g)||i===l)},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})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(a===l){"Backspace"===r&&"-"===d[0]&&a===u.length+1&&n&&Yp(t,1),s&&c&&("Backspace"===r&&d[a-1]===g?(Yp(t,a-1),e.preventDefault()):"Delete"===r&&d[a]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[a]===g&&Yp(t,a+1);var f=!0===i?",":i;"Backspace"===r&&d[a-1]===f&&Yp(t,a-1),"Delete"===r&&d[a]===f&&Yp(t,a+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Wp(n,s,c)),n!==E){var o=rh(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Dp.event})}a(t)}})}function sh(e){var t=ih(e);return x().createElement(nh,Object.assign({},t))}var ch,uh=["immutable"];function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dh=(0,c.Ay)((function(e){e.immutable;var t=v()(e,uh);return(0,S.jsx)(sh,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ch||(ch=i()(["\n &&&& {\n ","\n }\n"])),Pn);const fh=dh;function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mh=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},gh=function(e){return null!=e&&!isNaN(parseFloat(e))},vh=function(e,t,n){return!gh(n)||!(gh(t)&&n>t)&&!(gh(e)&&n<e)},yh=function(e,t){return function(n){var r=n.floatValue;return mh(r)<mh(e)||vh(e,t,r)}};const bh=(0,ce.injectIntl)(T.A.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,s=a.postPointDigits,c=a.minValue,u=a.maxValue,l=a.allowNegative,d=a.fixedDecimalScale,f=a.suffix,p=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,s,u),g=hh(hh({isAllowed:yh(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,S.jsx)(En,{immutable:e.immutable,children:(0,S.jsx)(fh,hh(hh({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&vh(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:v,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!vh(c,m,r)&&(t.target.value=null)}}))})}),800));const wh=T.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,S.jsx)(En,{immutable:o,children:(0,S.jsx)(fh,{isAllowed:yh(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),vh(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var Oh,xh,kh,Sh=c.Ay.div.withConfig({displayName:"StyledWrapper"})(Oh||(Oh=i()(["\n display: flex;\n justify-content: stretch;\n"]))),Eh=c.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(xh||(xh=i()(["\n flex-grow: 1;\n"]))),Ph=c.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(kh||(kh=i()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),l.t7.color("border"),l.hs.space(-.8),l.hs.space(.5));function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jh=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,s=i.suggestions,c=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,d=i.longitudeField,f=i.emptySearchText,p=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?kp()(e,_p):void 0}(r),v=function(e){return e?e.map(Cp):[]}(s);return(0,S.jsxs)(Sh,{children:[(0,S.jsx)(Eh,{children:(0,S.jsx)(hl,{id:t,immutable:n,onChange:function(e){o(_h(_h({},function(e,t){return t?Ep(Ep({},e),kp()(t,_p)):tn()(e,_p)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=le()(e.matchAll(Pp(/([\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 Ep(Ep({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,S.jsx)(Ph,{children:(0,S.jsx)(wh,{value:m,onChange:function(e){o(_h(_h({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var Ch,Th=(0,w.lazy)((function(){return n.e(262).then(n.bind(n,8810))}));const Mh=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,a=void 0===o?"":o,i=e.options;if(r)return(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})});var s=i||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,S.jsx)(w.Suspense,{fallback:Ch||(Ch=(0,S.jsx)("i",{})),children:(0,S.jsx)(Th,{id:t,onChange:function(e){n&&n(e)},value:a,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var Ah,Ih;function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lh=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,S.jsxs)(kt.Ay.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(Nh(Nh({},r),{},m()({},e,a)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions(m()({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},p={value:r.city||"",onChange:u("city"),disabled:a};return(0,S.jsx)(pn,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,S.jsxs)(Nn,{immutable:a,name:i,ref:u,children:[(0,S.jsx)(an(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(o||r.city||r.postcode)&&(Ah||(Ah=(0,S.jsx)(kt.Ay.Span,{children:"/"}))),(0,S.jsx)(an(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,S.jsxs)(_n,{children:[n.isLoading&&(Ih||(Ih=(0,S.jsx)(_,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,S.jsx)(kn.Ay,{href:An(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hh=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(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 Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 Wh=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(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 Yh,Uh=n(79092),zh=n.n(Uh),Vh=n(92207),qh=n.n(Vh);const Gh=c.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Yh||(Yh=i()(["\n &&&& {\n ","\n }\n"])),Pn);const $h=function(e){var t=e.onChange,r=e.value,o=e.immutable,a=e.id,i=e.onLibLoaded,s=Rn()(e,"options.defaultCountry")||"CH",c=(0,w.useState)(null),u=C()(c,2),l=u[0],d=u[1],f=x().createRef();(0,w.useEffect)((function(){var e=function(){var e=zh()(qh().mark((function e(){var t;return qh().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(222).then(n.bind(n,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var p=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=r&&null!=l&&l.AsYouType?new l.AsYouType(s).input(r):r||"";return(0,S.jsxs)(En,{immutable:o,children:[(0,S.jsx)(Gh,{disabled:o||!l,id:a,name,onChange:function(e){var n=e.target.value,o=l?l.parseNumber(n,s):n,a=rn()(o)?new l.AsYouType(s).input(n).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(s).input(t),o=new l.AsYouType(s).input(e),a=p(r,n),i=p(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(f.current))}}(n,r,i)},immutable:o||!l,ref:f,value:h}),h&&(0,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:"tel:".concat(r),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xh=function(e){return e.map((function(e){return kp()(e,["key","display"])}))};const Jh=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,S.jsx)(hl,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Qh(Qh({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Xh(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Xh(a.options)})};function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const em=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(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 tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 nm=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(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 rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const om=function(e){return(0,S.jsx)(hl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(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 am=T.A.Debouncer((function(e){return(0,S.jsx)(En,{immutable:e.immutable,children:(0,S.jsx)(gp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||"","data-custom-arrow-navigation":"string"})})}));var im,sm,cm,um,lm,dm=n(23228),fm=c.Ay.div.withConfig({displayName:"StyledTermsEdit"})(im||(im=i()(["\n margin: "," 0;\n display: flex;\n"])),l.hs.space(-1.4)),pm=c.Ay.input.withConfig({displayName:"StyledCheckbox"})(sm||(sm=i()(["\n margin-right: ",";\n"])),l.hs.space(-1.5)),hm=(0,c.AH)(cm||(cm=i()(["\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"])),l.t7.color("secondary"),l.t7.color("secondaryLight"),l.t7.color("secondary")),mm=c.Ay.a.withConfig({displayName:"StyledTermsLink"})(um||(um=i()(["\n ","\n"])),hm),gm=(0,c.Ay)(Ol).withConfig({displayName:"StyledHtmlFormatter"})(lm||(lm=i()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),hm);const vm=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,a=e.value,i=e.name,s=e.id,c=e.immutable,u=(0,w.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:dm.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,w.useCallback)((function(){return o(null)}),[o]),d=(0,w.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,w.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,w.useEffect)((function(){n()}),[]),(0,w.useEffect)((function(){!r||a||null!=r&&r.checkbox&&!c||d(!1)}),[r,a,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,S.jsx)(pm,{type:"checkbox",checked:(null==a?void 0:a.checked)||!1,name:i,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,S.jsx)(mm,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,S.jsx)(gm,{value:r.label,breakWords:!0})});return!c&&(0,S.jsxs)(fm,{children:[p,h||(0,S.jsx)(gm,{value:null==r?void 0:r.label,breakWords:!0})]})};var ym,bm,wm,Om=(0,c.AH)(ym||(ym=i()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Pn),xm=c.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(bm||(bm=i()(["\n display: grid;\n width: 100%;\n overflow: hidden;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Om),km=c.Ay.textarea.withConfig({displayName:"StyledTextarea"})(wm||(wm=i()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Om,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?l.hs.space(-1.2):"0"}));function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pm=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,s=(0,w.useState)(t),c=C()(s,2),u=c[0],l=c[1],d=!as.isSafari(),f=as.isSafari(),p=(0,w.useCallback)(zn()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,S.jsx)(xm,Em(Em({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,S.jsx)(km,{value:t||"",name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1",isSafari:f})}))};const Dm=T.A.Debouncer((function(e){return(0,S.jsx)(En,{immutable:e.immutable,"data-custom-arrow-navigation":"text",children:(0,S.jsx)(Pm,{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 _m;const jm=c.Ay.input.withConfig({displayName:"StyledTimeEdit"})(_m||(_m=i()(["\n &&&& {\n ","\n }\n"])),Pn);function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mm=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=sd(n,t),s=i.inputProps,c=i.clearButtonProps,u=n&&!r;return(0,S.jsxs)(En,{immutable:r,children:[(0,S.jsx)(jm,Tm({type:"text",disabled:r,id:o,immutable:r,name:a},s)),u&&(0,S.jsx)(_n,{children:(0,S.jsx)(re,Tm(Tm({icon:"times"},c),{},{tabIndex:-1}))})]})};var Am;const Im=c.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Am||(Am=i()(["\n &&&& {\n ","\n }\n"])),Pn);const Rm=T.A.Debouncer((function(e){return(0,S.jsxs)(En,{immutable:e.immutable,children:[(0,S.jsx)(Im,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,S.jsx)(_n,{children:(0,S.jsx)(kn.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fm={boolean:yl,"boolean-select":ml,choice:Cl,code:Ll,date:gd,datetime:yd,document:up,duration:hp,email:vp,geosearch:jh,html:Mh,integer:wh,address:Bn,location:Lh,"multi-remote":Hh,"multi-select":Wh,number:bh,phone:$h,"pseudo-select":Jh,remote:em,"search-filter":nm,"single-select":om,string:am,terms:vm,text:Dm,url:Rm,time:Mm},Hm=["boolean","choice","terms"];const Bm=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(Fm[t]){var u=Fm[t],l=Lm(Lm({},tn()(a,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)},onClick:function(e){Hm.includes(t)&&("function"==typeof(null==a?void 0:a.onClick)&&a.onClick(e),"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur())}});return(0,S.jsx)("div",Lm(Lm({},l),{},{"data-cy":"form-field",children:(0,S.jsx)(u,Lm(Lm({value:n,onChange:null==a?void 0:a.onChange},rn()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};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 Ym(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){m()(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}const Um=function(e){return(0,S.jsx)(jn,{children:(0,S.jsx)(Bm,Ym({componentType:e.type},tn()(e,"type")))})};const zm=(0,c.SL)((function(e){return(0,S.jsx)(k.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Vm=function(e){var t=(0,ce.useIntl)();return(0,S.jsx)(kt.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,S.jsx)(ce.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var qm;const Gm=(0,ce.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),qm||(qm=(0,S.jsx)(kt.Ay.Span,{}));var o=(0,xc.GPZ)(r,"HH:mm");return(0,S.jsxs)(kt.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,S.jsx)(ce.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var $m;function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xm=function(e){var t=e.options||{},n=(0,S.jsxs)(S.Fragment,{children:[t.title&&(0,S.jsx)(kt.Ay.H5,{children:t.title}),(0,S.jsx)(Ol,Qm({},e))]});return"text"===t.mode?n:(0,S.jsx)(Xu,{content:n,isPlainHtml:!0,children:$m||($m=(0,S.jsx)(Uu,{children:(0,S.jsx)(k.A,{icon:"question-circle"})}))})};const Jm=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=Rn()(r,t.resourceKey,null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Xu,{content:a?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(a)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,S.jsx)(kn.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,S.jsx)(kn.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:np.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Zm=function(e){return(0,S.jsx)(cp,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const eg=function(e){var t=e.value,n=parseInt(t),r=kc.A.formatDuration(n);return(0,S.jsx)(kt.Ay.Time,{dateTime:r,title:r,children:r})};const tg=function(e){return(0,S.jsx)(kn.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const ng=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rg(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=function(){return"; "};const ig=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,s=a.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=i&&i.DetailLink?(0,S.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,S.jsx)(i.DetailLink,og(og({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,S.jsx)(ag,{},"sep".concat(n)),t]})):null;return(0,S.jsx)(kt.Ay.Span,{breakWords:r,useTitle:o,children:c})};const sg=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,S.jsx)(ce.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const cg=function(e){var t;return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,S.jsx)(ce.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dg=(0,w.lazy)((function(){return Promise.all([n.e(222),n.e(672)]).then(n.bind(n,74302))}));const fg=function(e){return(0,S.jsx)(w.Suspense,{fallback:"",children:(0,S.jsx)(dg,lg({},e))})};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 hg(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){m()(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}const mg=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,s=a.loadTooltip,c=a.navigationStrategy,u=a.linkProps,l=Rn()(i,t.key,null);t=xt.A.getOrFirst(t);var d=(0,S.jsx)(kt.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,S.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,S.jsx)(c.DetailLink,hg(hg({},u),{},{entityKey:t.key,children:(0,S.jsx)(Xu,{content:l?(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(l)}}):null,children:(0,S.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const gg=function(e){return(0,S.jsx)(kt.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const vg=function(e){return e.breakWords?(0,S.jsx)(kt.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,S.jsx)("br",{},t)]:e})))}):(0,S.jsx)(kt.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var yg=function(e,t){return parseInt(e.split(":")[t])||0};const bg=(0,ce.injectIntl)((function(e){var t=e.value,n=(e.intl,yg(t,0)),r=yg(t,1),o=yg(t,2),a=yg(t,3),i=new Date(2e3,1,1,n,r,o,a),s=(0,xc.GPZ)(i,"HH:mm:ss.SSS"),c=(0,xc.GPZ)(i,"HH:mm");return(0,S.jsx)(kt.Ay.Time,{dateTime:s,title:c,children:c})}));const wg=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,S.jsx)(kn.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Og,xg={boolean:zm,date:Vm,datetime:Gm,document:Zm,"document-compact":Jm,duration:eg,email:tg,html:Ol,integer:ng,"multi-remote":ig,"multi-select":ig,number:sg,percent:cg,phone:fg,remote:mg,"single-select":mg,string:gg,text:vg,time:bg,url:wg,description:Xm};const kg=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,s=void 0===i||i,c=e.id;if(xg[t]){var u=xg[t];return(0,S.jsx)(u,{value:n,options:r,breakWords:a,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),Og||(Og=(0,S.jsx)("div",{}))};var Sg;const Eg=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?Sg||(Sg=(0,S.jsx)("span",{})):(0,S.jsx)(kg,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})},Pg=Eg;var Dg;c.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Dg||(Dg=i()(["\n height: fit-content;\n margin-bottom: ",";\n"])),l.hs.space(.25));var _g,jg=c.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(_g||(_g=i()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),l.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(l.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const Cg=jg;var Tg,Mg,Ag,Ig,Rg=n(5016),Ng=(0,c.i7)(Tg||(Tg=i()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Lg=(0,c.AH)(Mg||(Mg=i()(["\n animation: "," 400ms ease-in-out both;\n"])),Ng),Fg=c.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(Ag||(Ag=i()(["\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"])),l.hs.space(-1),Lg,Rg.oY,l.hs.space(-1));const Hg=c.Ay.div.withConfig({displayName:"StyledLoadMask"})(Ig||(Ig=i()(["\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 Bg;const Wg=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,w.useState)(!1),s=C()(i,2),c=s[0],u=s[1],l=(0,w.useState)(!0),d=C()(l,2),f=d[0],p=d[1];(0,w.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,S.jsx)(Hg,{className:a,children:h?r:(0,S.jsxs)(Fg,{children:[Bg||(Bg=(0,S.jsx)(_,{size:"30px"},"loading-spinner")),o&&(0,S.jsx)(kt.Ay.Span,{children:o},"loadingText")]})})};var Yg,Ug=c.Ay.div.withConfig({displayName:"StyledPanel"})(Yg||(Yg=i()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),l.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),l.t7.color("borderLight"),l.t7.radii("form"));const zg=Ug;var Vg=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const qg=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,a=e.isOpenInitial,i=void 0===a||a,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=v()(e,Vg),d=(0,w.useState)(i),f=C()(d,2),p=f[0],h=f[1],m="boolean"==typeof o,g=function(){c&&(m?"function"==typeof u&&u(!o):h(!p))};return(0,S.jsx)(zg,{isFramed:r,"data-cy":l["data-cy"],children:x().Children.map(t,(function(e){return x().cloneElement(e,{isFramed:r,isOpen:m?o:p,isToggleable:c,toggleOpenState:g})}))})};var Gg,$g=c.Ay.div.withConfig({displayName:"StyledPanelBody"})(Gg||(Gg=i()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?l.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Kg=$g;var Qg=["children","isFramed","isOpen"];const Xg=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=v()(e,Qg);return(0,S.jsx)(Kg,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,S.jsx)("div",{children:t})})};const Jg=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,w.useState)(t),o=C()(r,2),a=o[0],i=o[1];return(0,S.jsx)(S.Fragment,{children:x().Children.map(n,(function(e,t){return x().cloneElement(e,{controlledIsOpen:a===t,onToggle:function(e){return function(e,t){i(!0===t?e:void 0)}(t,e)}})}))})};var Zg;const ev=c.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Zg||(Zg=i()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),l.hs.space(0),zg,l.hs.space(-1));function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rv=function(e){return(0,S.jsx)(ev,{children:(0,S.jsx)(Jg,nv({},e))})};var ov,av,iv,sv,cv,uv,lv="1px",dv=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(ov||(ov=i()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),l.hs.font(1),l.t7.color("text"),!as.isTouchDevice&&(0,c.AH)(av||(av=i()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),l.t7.color("secondaryLight"))),fv=c.Ay.div.withConfig({displayName:"StyledPanelHeader"})(iv||(iv=i()(["\n && {\n background-color: ",";\n display: flex;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n border-top-left-radius: calc("," - ",");\n border-top-right-radius: calc("," - ",");\n border-bottom-right-radius: calc("," - ",");\n border-bottom-left-radius: calc("," - ",");\n ","\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n /* stylelint-disable-line rule-empty-line-before */\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),l.t7.color("backgroundPanelHeaderFooter"),l.t7.radii("form"),lv,l.t7.radii("form"),lv,l.t7.radii("form"),lv,l.t7.radii("form"),lv,(function(e){return e.isOpen&&(0,c.AH)(sv||(sv=i()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,c.AH)(cv||(cv=i()(["\n "," ","\n "])),l.hs.space(-1.7),l.hs.space(-.375)):0}),!as.isTouchDevice&&(0,c.AH)(uv||(uv=i()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),dv),(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(lv,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(lv,";\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(lv,";\n }\n ")}(e)}));const pv=fv;var hv=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const mv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=v()(e,hv);return(0,S.jsxs)(pv,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,S.jsx)("div",{children:x().Children.map(t,(function(e){return x().cloneElement(e)}))}),o&&i&&(0,S.jsx)(dv,{children:(0,S.jsx)(k.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},gv={Body:Xg,Group:rv,Header:mv,Wrapper:qg};var vv,yv=c.Ay.div.withConfig({displayName:"StyledPanel"})(vv||(vv=i()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),l.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),l.t7.color("borderLight"),l.t7.radii("form"));const bv=yv;const wv=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,a=void 0===o||o,i=(0,w.useState)(a),s=C()(i,2),c=s[0],u=s[1];return(0,S.jsx)(bv,{isFramed:r,children:x().Children.map(t,(function(e){return x().cloneElement(e,{isOpen:c,isToggleable:!a,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var Ov,xv,kv=c.Ay.div.withConfig({displayName:"StyledPanelBody"})(Ov||(Ov=i()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,c.AH)(xv||(xv=i()(["\n "," "," "," ","\n "])),l.hs.space(-1),l.hs.space(.2),l.hs.space(.2),l.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const Sv=kv;const Ev=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,S.jsx)(Sv,{isFramed:n,isOpen:r,children:(0,S.jsx)("div",{children:t})})};var Pv;const Dv=c.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Pv||(Pv=i()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),l.hs.space(0),bv,l.hs.space(-1));function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_v(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Cv=function(e){return(0,S.jsx)(Dv,{children:(0,S.jsx)(Jg,jv({},e))})};var Tv,Mv,Av,Iv="1px",Rv=c.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Tv||(Tv=i()(["\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"])),l.t7.color("paper"),l.t7.radii("form"),Iv,l.t7.radii("form"),Iv,(function(e){return e.isFramed?l.hs.space(.2):0}),l.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(Iv,";\n }\n ")}(e)})),Nv=c.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Mv||(Mv=i()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),l.hs.font(1),l.t7.color("text"),!as.isTouchDevice&&(0,c.AH)(Av||(Av=i()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),l.t7.color("secondaryLight")));const Lv=Rv;const Fv=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,a=e.showToggler,i=void 0===a||a,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,S.jsxs)(Lv,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,S.jsx)("div",{children:x().Children.map(t,(function(e){return x().cloneElement(e)}))}),o&&i&&(0,S.jsx)(Nv,{children:(0,S.jsx)(k.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Hv={Body:Ev,Group:Cv,Header:Fv,Wrapper:wv};var Bv={Body:m()(m()({},dm.A.EmbedType.admin,gv.Body),dm.A.EmbedType.widget,Hv.Body),Group:m()(m()({},dm.A.EmbedType.admin,gv.Group),dm.A.EmbedType.widget,Hv.Group),Header:m()(m()({},dm.A.EmbedType.admin,gv.Header),dm.A.EmbedType.widget,Hv.Header),Wrapper:m()(m()({},dm.A.EmbedType.admin,gv.Wrapper),dm.A.EmbedType.widget,Hv.Wrapper)};dm.A.embedStrategyFactory({mapping:Bv.Body}),dm.A.embedStrategyFactory({mapping:Bv.Group}),dm.A.embedStrategyFactory({mapping:Bv.Header}),dm.A.embedStrategyFactory({mapping:Bv.Wrapper});var Wv;c.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Wv||(Wv=i()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),l.hs.space(0),l.t7.color("paper"));n(8271);b().node,b().bool,b().string,b().bool,b().objectOf(b().arrayOf(b().oneOfType([b().node,b().string]))),b().bool,b().bool,b().string,b().string,b().oneOf(["inside","outside-responsive","outside"]),b().bool,b().string,b().bool,b().string,b().bool;var Yv,Uv,zv,Vv=m()(m()(m()(m()(m()({},l.xX.condition.BASE,l.t7.color("text")),l.xX.condition.DANGER,l.t7.color("signal.danger")),l.xX.condition.SUCCESS,l.t7.color("signal.success")),l.xX.condition.WARNING,l.t7.color("signal.warning")),l.xX.condition.INFO,l.t7.color("signal.info")),qv=(0,c.Ay)(kt.dV).withConfig({displayName:"StyledSignalList"})(Yv||(Yv=i()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Gv=c.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(Uv||(Uv=i()(["\n margin-left: -1px;\n margin-right: ",";\n"])),l.hs.space(-2)),$v=(0,c.Ay)(kt.vx).withConfig({displayName:"StyledSignalListItem"})(zv||(zv=i()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return Vv[t]}(e)}));const Kv=function(e){return(0,S.jsx)(qv,{as:"ul",children:x().Children.map(e.children,(function(e){return x().cloneElement(e)}))})};var Qv,Xv=["condition","label","children"],Jv=m()(m()(m()(m()(m()({},l.xX.condition.BASE,!1),l.xX.condition.DANGER,"times"),l.xX.condition.SUCCESS,"check"),l.xX.condition.WARNING,"exclamation-triangle"),l.xX.condition.INFO,"info"),Zv=function(e){var t=Jv[e];return t?(0,S.jsx)(k.A,{icon:t,position:l.xX.position.SOLE,hasFixedWidth:!1}):Qv||(Qv=(0,S.jsx)("i",{children:"•"}))};const ey=function(e){var t=e.condition,n=void 0===t?l.xX.condition.BASE:t,r=e.label,o=e.children,a=v()(e,Xv);return(0,S.jsxs)($v,{condition:n,"data-cy":a["data-cy"],children:[(0,S.jsx)(Gv,{children:Zv(n)}),r,x().Children.map(o,(function(e){return x().cloneElement(e)}))]})},ty={List:Kv,Item:ey};const ny=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,le()(e.error[n]))})),(0,S.jsx)(ty.List,{children:t.map((function(e,t){return(0,S.jsx)(ty.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var ry,oy,ay,iy,sy,cy,uy,ly,dy,fy,py,hy,my,gy,vy="1.1px",yy=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},by=c.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(ry||(ry=i()(["\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,l.Ed)({lineHeight:l.t7.lineHeight("dense")}),l.t7.color("paper"),(function(e){return yy(e)}),(function(e){return"outside"===e.labelPosition&&(0,c.AH)(oy||(oy=i()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),l.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(ay||(ay=i()(["\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 "])),l.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":l.hs.space(-1.8)}))}),(function(e){return e.styles})),wy=c.Ay.div.withConfig({displayName:"StyledInputArea"})(iy||(iy=i()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,c.AH)(sy||(sy=i()(["\n width: auto;\n "])))})),Oy=c.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(cy||(cy=i()(["\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 display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),vy,(function(e){return l.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),l.t7.radii("form"),l.hs.space(-2.5),l.hs.space(-1.5),(function(e){return!e.immutable&&(0,l.h7)(e)}),(function(e){return yy(e)}),(0,l.Ed)(),Vu,(function(e){return"inside"===e.labelPosition&&(0,c.AH)(uy||(uy=i()(["\n padding: "," "," "," ",";\n "])),l.hs.space(-1),l.hs.space(-1.7),l.hs.space(-2),l.hs.space(-1))}),(function(e){return e.styles})),xy=c.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(ly||(ly=i()(["\n &&& {\n ","\n }\n"])),(0,l.Ed)({fontSize:l.hs.font(-1)})),ky=c.Ay.div.withConfig({displayName:"StyledStatedValueError"})(dy||(dy=i()([""]))),Sy=c.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(fy||(fy=i()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),l.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(py||(py=i()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),l.hs.space(-1.5))})),Ey=c.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(hy||(hy=i()(["\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"])),l.hs.space(-1.5),Oy,xy,ky,l.hs.space(-2),xy,l.hs.space(-1),vy,(function(e){return"outside"===e.labelPosition&&(0,c.AH)(my||(my=i()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,c.AH)(gy||(gy=i()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Py(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Py(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _y=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,d=e.id,f=e.label,p=e.mandatory,h=e.mandatoryTitle,m=e.immutable,g=e.touched,v=e.signal,y=e.labelPosition,b=e.styles,w=!m&&g&&c&&Object.keys(c).length>0,O=p&&h?", ".concat(h):"",x="".concat(xt.A.adjustedHTMLString(f)).concat(O),k=v||function(e,t,n,r){return t?l.xX.condition.DANGER:e?l.xX.condition.INFO:n&&!r?l.xX.condition.WARNING:void 0}(i,w,p,u),E={__html:"".concat(Ot.sanitizeHtml(f)).concat(p?" *":"")},P=!s&&!m&&{htmlFor:d};return(0,S.jsx)(pn,{children:function(e){var l=e.getRef;return(0,S.jsx)(Sy,{labelPosition:y,children:(0,S.jsxs)(Ey,{labelPosition:y,ref:l,label:f,styles:null==b?void 0:b.innerWrapperStyles,children:[f&&(0,S.jsx)(by,Dy(Dy({},P),{},{hasValue:u,dirty:i,title:x,immutable:m,isDisplay:s,signal:k,labelPosition:y,styles:null==b?void 0:b.labelStyles,children:t||(t=(0,S.jsx)("span",{dangerouslySetInnerHTML:E}))})),(0,S.jsxs)(wy,{labelPosition:y,children:[(0,S.jsx)(Oy,{hasValue:u,immutable:m,isDisplay:s,signal:k,labelPosition:y,styles:null==b?void 0:b.valueStyles,children:o}),w&&(0,S.jsx)(ky,{"data-cy":"errorlist-".concat(d),children:n||(n=(0,S.jsx)(ny,{error:c}))}),a&&(r||(r=(0,S.jsx)(xy,{children:a})))]})]})})}})};var jy,Cy,Ty=function(e){return(0,c.AH)(jy||(jy=i()(["\n color: ",";\n font-weight: ",";\n"])),l.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?l.t7.fontWeight("bold"):l.t7.fontWeight("regular")}))},My=function(){return(0,c.AH)(Cy||(Cy=i()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Ay=["labelPosition"];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}const Ry=function(e){var t=e.labelPosition,n=v()(e,Ay);return(0,S.jsx)(_y,function(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){m()(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}({styles:{labelStyles:Ty,valueStyles:My},labelPosition:t||"outside-responsive"},n))};var Ny,Ly,Fy,Hy,By,Wy,Yy=function(e){return e.signal?"signal":"shade2"},Uy=function(){return(0,c.AH)(Ny||(Ny=i()(["\n align-items: flex-start;\n"])))},zy=function(e){return(0,c.AH)(Ly||(Ly=i()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,c.AH)(Fy||(Fy=i()(["\n ","\n "])),l.hs.space(-1.8)):(0,c.AH)(Hy||(Hy=i()(["\n ","\n "])),l.hs.space(.1))}),l.Db[Yy(e)](e))},Vy=function(){return(0,c.AH)(By||(By=i()(["\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,c.AH)(Wy||(Wy=i()(["\n ","\n "])),l.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},qy=["labelPosition"];function Gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const $y=function(e){var t=e.labelPosition,n=v()(e,qy);return(0,S.jsx)(_y,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:Uy,labelStyles:zy,valueStyles:Vy},labelPosition:t||"outside-responsive"},n))};var Ky=m()(m()({},dm.A.EmbedType.admin,Ry),dm.A.EmbedType.widget,$y);const Qy=dm.A.embedStrategyFactory({mapping:Ky});var Xy,Jy,Zy,eb,tb=c.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(Xy||(Xy=i()(["\n margin-right: ",";\n color: ",";\n"])),l.hs.space(-.8),l.t7.color("text")),nb=c.Ay.div.withConfig({displayName:"StyledSearchBox"})(Jy||(Jy=i()(["\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"]))),rb=c.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(Zy||(Zy=i()(["\n &&&& {\n ","\n }\n"])),Pn),ob=x().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,a=e.onSearch,i=e.placeholder,s=(e.debounce,(0,w.useState)(n||"")),c=C()(s,2),u=c[0],l=c[1];return(0,S.jsx)(nb,{children:(0,S.jsx)(Qy,{hasValue:Boolean(u),labelPosition:"inside",children:(0,S.jsxs)(En,{children:[eb||(eb=(0,S.jsx)(tb,{children:(0,S.jsx)(k.A,{icon:"search"})})),(0,S.jsx)(rb,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&a(t.trim())},value:u,"aria-label":i,placeholder:i}),(null==u?void 0:u.length)>0&&(0,S.jsx)(re,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),a("")}})]})})})}));const ab=T.A.Debouncer(ob,100,"onSearch");var ib,sb=[l.xX.condition.BASE,l.xX.condition.INFO,l.xX.condition.DANGER,l.xX.condition.SUCCESS,l.xX.condition.WARNING],cb=m()(m()(m()(m()(m()({},l.xX.condition.BASE,l.t7.color("signal.neutral")),l.xX.condition.DANGER,l.t7.color("signal.danger")),l.xX.condition.SUCCESS,l.t7.color("signal.success")),l.xX.condition.WARNING,l.t7.color("signal.warning")),l.xX.condition.INFO,l.t7.color("signal.info")),ub=c.Ay.div.withConfig({displayName:"StyledSignalBox"})(ib||(ib=i()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return cb[e.condition]||cb[l.xX.condition.INFO]}(e)}),l.hs.space(-1),l.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));ub.propTypes={condition:l.xX.oneOfPropTypeAndCompletelyMapped(sb,cb)};var lb,db,fb;c.Ay.div.withConfig({displayName:"StyledCell"})(lb||(lb=i()(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),c.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(db||(db=i()(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),l.h7,l.t7.color("border"),l.t7.radii("form"),(function(e){return e.borderless&&(0,c.AH)(fb||(fb=i()(["\n border: none;\n "])))}),js,l.hs.space(-2),l.hs.space(-1.7),l.hs.space(-2),l.hs.space(-1),l.t7.radii("form"),l.t7.color("paper"),l.hs.space(-1),l.hs.space(-1),l.hs.space(-.5),l.hs.space(-1));function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mb={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},gb={Left:"Left",Right:"Right"},vb={Top:"Top",Bottom:"Bottom"},yb=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?gb.Right:gb.Left,vertical:o?vb.Bottom:vb.Top}};const bb=function(e){var t=(0,w.useState)(mb),n=C()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,w.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return hb(hb({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(mb),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Nd()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=yb(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return hb(hb({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(a&&Nd()(i,t)){var n=yb(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return hb(hb({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,s,c),o(mb),t.stopPropagation())}}}),[i,a,s,c,u,l,e]),dndState:(0,w.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[i,a,s,c,u,l])}},wb=gb;var Ob,xb,kb,Sb,Eb,Pb,Db,_b=c.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(Ob||(Ob=i()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),jb=c.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(xb||(xb=i()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),l.hs.space(.7)),Cb=c.Ay.ul.withConfig({displayName:"StyledUl"})(kb||(kb=i()(["\n list-style-type: none;\n margin-top: "," !important; /* Nice2 Reset */\n margin-left: 3px; /* make room for drop indicator when it appears on the left-most side */\n padding-left: 0 !important; /* Nice2 Reset */\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; /* Nice2 Reset */\n }\n"])),l.hs.space(-.5),kt.Gw),Tb=c.Ay.input.withConfig({displayName:"StyledCheckbox"})(Sb||(Sb=i()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),l.hs.space(-1)),Mb=c.Ay.span.withConfig({displayName:"StyledId"})(Eb||(Eb=i()(["\n color: ",";\n font-style: italic;\n"])),l.t7.color("text")),Ab=(0,c.Ay)(kt.vx).withConfig({displayName:"StyledItem"})(Pb||(Pb=i()(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n\n /* when border appears, the content moves over by the width of the border,\n so we move the content back the same width */\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),l.hs.space(-2),l.hs.space(-2),l.hs.space(-2),(function(e){return e.dropPosition===wb.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===wb.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===wb.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),Ib=c.Ay.span.withConfig({displayName:"StyledNumber"})(Db||(Db=i()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),l.hs.space(-1),l.t7.color("text"),l.hs.font(0));function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lb=function(e){var t=e.index,n=e.dndProps,r=e.column,o=e.onSelectionChange;return(0,S.jsxs)(Ab,Nb(Nb({},n),{},{children:[(0,S.jsx)(Tb,{type:"checkbox",id:r.id,checked:!r.hidden,onChange:function(e){return o(r.id,e.target.checked)}}),(0,S.jsxs)(kt.Ay.Label,{htmlFor:r.id,children:[(0,S.jsxs)(Ib,{children:[t,"."]}),r.label?(0,S.jsx)("span",{dangerouslySetInnerHTML:{__html:Ot.sanitizeHtml(r.label)}}):(0,S.jsx)(Mb,{children:r.id})]})]}))};function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bb=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const Wb=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.sortColumns,a=e.onColumnsChange,i=e.intl,s=function(e){return o?o(e):function(e){return le()(e).sort((function(e,t){return e.hidden-t.hidden}))}(e)},c=s(r),u=(0,w.useState)(null),l=C()(u,2),d=l[0],f=l[1],p=(0,w.useCallback)((function(e,t,n){if(e!==t){var r=c.find((function(t){return t.id===e}));a((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,a=t,i=n,function(e,t){if(t.id===a){if(i===wb.Left)return[].concat(le()(e),[o,t]);if(i===wb.Right)return[].concat(le()(e),[t,o])}return[].concat(le()(e),[t])}),[]);var o,a,i}))}}),[c,a]),h=bb(p),m=h.dndEvents,g=h.dndState,v=(0,w.useMemo)((function(){return Bb(c,d)}),[c,d]),y=v.some((function(e){return e.hidden})),b=function(e,t){a((function(n){return s(n.map((function(n){return n.id===e?Hb(Hb({},n),{},{hidden:!t}):n})))}))},O=function(e){return g.currentlyDragOver===e.id&&g.currentlyDragging!==e.id};return(0,S.jsxs)(_b,{children:[(0,S.jsx)(ab,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:f}),(0,S.jsxs)(jb,{children:[(0,S.jsx)(Tb,{type:"checkbox",onChange:function(e){var t=e.target.checked;a((function(e){var n=Bb(e,d);return s(le()(e.map((function(e){return Hb(Hb({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!y}),(0,S.jsx)(kt.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,S.jsx)(Cb,{children:v.map((function(e,n){return(0,S.jsx)(Lb,{index:n+1,column:e,dndProps:Hb({draggable:t,dropPosition:O(e)&&g.horizontalDropPosition},t&&Hb({},m(e.id))),onSelectionChange:b},e.id)}))})]})};(0,ce.injectIntl)(Wb);function Yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yb(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zb="yyyy-MM-dd",Vb=function(e){return(0,xc.uv4)(e,zb)?(0,xc.qgA)(e,zb,new Date):(0,xc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,xc.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,xc.ol1)(new Date(e)):null},qb={datetime:{type:"date",toRange:function(e){return{from:e?Vb(e).toISOString():null,to:e?(0,xc.fij)(Vb(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,xc.GPZ)(new Date(e.from),zb):null!=e&&e.to?(0,xc.GPZ)(new Date(e.to),zb):null},getToOptions:function(e,t){return Ub(Ub({},e),{},{datePickerOptions:Ub({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ub(Ub({},e),{},{datePickerOptions:Ub({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return Ub(Ub({},e),{},{datePickerOptions:Ub({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return Ub(Ub({},e),{},{datePickerOptions:Ub({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const Gb=qb;var $b,Kb,Qb,Xb,Jb,Zb=c.Ay.div.withConfig({displayName:"StyledIconWrapper"})($b||($b=i()(["\n font-size: ",";\n color: ",";\n"])),l.hs.font(-2.7),l.t7.color("text")),ew=c.Ay.div.withConfig({displayName:"StyledRange"})(Kb||(Kb=i()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),tw=c.Ay.div.withConfig({displayName:"StyledInput"})(Qb||(Qb=i()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),nw=(0,c.Ay)(re).withConfig({displayName:"StyledBall"})(Xb||(Xb=i()(["\n position: relative;\n top: 0.5px; /* offset false vertical alignment */\n"])));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}function ow(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){m()(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}const aw=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,s=e.toText,c=Gb[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,w.useRef)(t);l.current=t;var d=(0,w.useMemo)((function(){return ow(ow({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(ow(ow({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(ow(ow({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,S.jsx)(Um,ow(ow({type:h},tn()(e,["type"])),{},{events:d})),g=(0,S.jsxs)(tw,{children:[(0,S.jsx)(Um,ow(ow({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:i})),Jb||(Jb=(0,S.jsx)(Zb,{children:(0,S.jsx)(k.A,{icon:"horizontal-rule"})})),(0,S.jsx)(Um,ow(ow({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,S.jsxs)(ew,{children:[u?g:m,(0,S.jsx)(nw,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var iw,sw,cw,uw,lw,dw=c.Ay.div.withConfig({displayName:"StyledBurgerButton"})(iw||(iw=i()(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; /* higher than StyledHeader to enable interactions */\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"])),l.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,c.AH)(sw||(sw=i()(["\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,ce.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,S.jsxs)(dw,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[cw||(cw=(0,S.jsx)("span",{})),uw||(uw=(0,S.jsx)("span",{})),lw||(lw=(0,S.jsx)("span",{}))]})}));var fw,pw,hw=c.Ay.div.withConfig({displayName:"StyledPagination"})(fw||(fw=i()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),l.hs.space(-1),l.hs.space(-1.4)),mw=(0,c.Ay)(K).withConfig({displayName:"StyledPaginationButton"})(pw||(pw=i()(["\n padding: "," ",";\n"])),l.hs.space(-2),l.hs.space(-.5));const gw=(0,ce.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return a.formatMessage({id:e})},f=function(e){o(e),i.current.scrollTop=0};return(0,S.jsxs)(hw,{children:[(0,S.jsxs)(Zt,{children:[(0,S.jsx)(mw,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,S.jsx)(mw,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,S.jsx)(mw,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,S.jsx)(mw,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,S.jsx)(kt.Ay.Span,{children:(0,S.jsx)(ce.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),vw=gw;var yw,bw=Object.defineProperty,ww=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,xw=Object.prototype.propertyIsEnumerable,kw=(e,t,n)=>t in e?bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sw=(e,t)=>{for(var n in t||(t={}))Ow.call(t,n)&&kw(e,n,t[n]);if(ww)for(var n of ww(t))xw.call(t,n)&&kw(e,n,t[n]);return e},Ew=(e,t)=>{var n={};for(var r in e)Ow.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ww)for(var r of ww(e))t.indexOf(r)<0&&xw.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,a){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(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),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,r,a=1,s=40,c=-1,u=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=a;;l++){const n=8*t.getNumDataCodewords(l,r),o=i.getTotalBits(e,l);if(o<=n){d=o;break}if(l>=s)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)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(l,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);o(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,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;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,u=Math.floor(s/a);let l=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let o=e.slice(r,r+u-i+(n<c?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=c)&&f.push(t[e])}));return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-o:o;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(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 o(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 o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(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)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.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]],t.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]];function n(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 r(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const a=class e{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(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(a,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}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.substring(n+1,n+3),16)),n+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(yw||(yw={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(yw||(yw={})),(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)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(yw||(yw={}));var Pw=yw,Dw={L:Pw.QrCode.Ecc.LOW,M:Pw.QrCode.Ecc.MEDIUM,Q:Pw.QrCode.Ecc.QUARTILE,H:Pw.QrCode.Ecc.HIGH},_w=128,jw="L",Cw="#FFFFFF",Tw="#000000",Mw=!1,Aw=1,Iw=4,Rw=0,Nw=.1;
2
2
  /**
3
3
  * @license qrcode.react
4
4
  * Copyright (c) Paul O'Shannessy
5
5
  * SPDX-License-Identifier: ISC
6
- */function Rw(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function Nw(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function Lw({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:a,size:i,boostLevel:s}){let c=w.useMemo((()=>{const r=(Array.isArray(e)?e:[e]).reduce(((e,t)=>(e.push(...Sw.QrSegment.makeSegments(t)),e)),[]);return Sw.QrCode.encodeSegments(r,Ew[t],n,void 0,void 0,s)}),[e,t,n,s]);const{cells:u,margin:l,numCells:d,calculatedImageSettings:f}=w.useMemo((()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?Mw:Aw}(r,o),n=e.length+2*t,s=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,a=Math.floor(t*Iw),i=o/t,s=(r.width||a)*i,c=(r.height||a)*i,u=null==r.x?e.length/2-s/2:r.x*i,l=null==r.y?e.length/2-c/2:r.y*i,d=null==r.opacity?1:r.opacity;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(l);f={x:e,y:t,w:Math.ceil(s+u-e),h:Math.ceil(c+l-t)}}return{x:u,y:l,h:c,w:s,excavation:f,opacity:d,crossOrigin:r.crossOrigin}}(e,i,t,a);return{cells:e,margin:t,numCells:n,calculatedImageSettings:s}}),[c,i,a,r,o]);return{qrcode:c,margin:l,cells:u,numCells:d,calculatedImageSettings:f}}var Fw=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Hw=w.forwardRef((function(e,t){const n=e,{value:r,size:o=Pw,level:a=Dw,bgColor:i=_w,fgColor:s=jw,includeMargin:c=Cw,minVersion:u=Tw,boostLevel:l,marginSize:d,imageSettings:f}=n,p=kw(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=p,m=kw(p,["style"]),g=null==f?void 0:f.src,v=w.useRef(null),y=w.useRef(null),b=w.useCallback((e=>{v.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[t]),[O,x]=w.useState(!1),{margin:k,cells:S,numCells:E,calculatedImageSettings:P}=Lw({value:r,level:a,minVersion:u,boostLevel:l,includeMargin:c,marginSize:d,imageSettings:f,size:o});w.useEffect((()=>{if(null!=v.current){const e=v.current,t=e.getContext("2d");if(!t)return;let n=S;const r=y.current,a=null!=P&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;a&&null!=P.excavation&&(n=Nw(S,P.excavation));const c=window.devicePixelRatio||1;e.height=e.width=o*c;const u=o/E*c;t.scale(u,u),t.fillStyle=i,t.fillRect(0,0,E,E),t.fillStyle=s,Fw?t.fill(new Path2D(Rw(n,k))):S.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+k,n+k,1,1)}))})),P&&(t.globalAlpha=P.opacity),a&&t.drawImage(r,P.x+k,P.y+k,P.w,P.h)}})),w.useEffect((()=>{x(!1)}),[g]);const D=xw({height:o,width:o},h);let _=null;return null!=g&&(_=w.createElement("img",{src:g,key:g,style:{display:"none"},onLoad:()=>{x(!0)},ref:y,crossOrigin:null==P?void 0:P.crossOrigin})),w.createElement(w.Fragment,null,w.createElement("canvas",xw({style:D,height:o,width:o,ref:b,role:"img"},m)),_)}));Hw.displayName="QRCodeCanvas";var Bw=w.forwardRef((function(e,t){const n=e,{value:r,size:o=Pw,level:a=Dw,bgColor:i=_w,fgColor:s=jw,includeMargin:c=Cw,minVersion:u=Tw,boostLevel:l,title:d,marginSize:f,imageSettings:p}=n,h=kw(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:m,cells:g,numCells:v,calculatedImageSettings:y}=Lw({value:r,level:a,minVersion:u,boostLevel:l,includeMargin:c,marginSize:f,imageSettings:p,size:o});let b=g,O=null;null!=p&&null!=y&&(null!=y.excavation&&(b=Nw(g,y.excavation)),O=w.createElement("image",{href:p.src,height:y.h,width:y.w,x:y.x+m,y:y.y+m,preserveAspectRatio:"none",opacity:y.opacity,crossOrigin:y.crossOrigin}));const x=Rw(b,m);return w.createElement("svg",xw({height:o,width:o,viewBox:`0 0 ${v} ${v}`,ref:t,role:"img"},h),!!d&&w.createElement("title",null,d),w.createElement("path",{fill:i,d:`M0,0 h${v}v${v}H0z`,shapeRendering:"crispEdges"}),w.createElement("path",{fill:s,d:x,shapeRendering:"crispEdges"}),O)}));Bw.displayName="QRCodeSVG";var Ww,Yw,Uw,zw,Vw,qw,Gw,$w,Kw,Qw,Xw,Jw,Zw,eO,tO,nO,rO,oO,aO,iO,sO,cO,uO=b().oneOfType([b().string,b().number]),lO=b().shape({__key:uO}),dO=(b().arrayOf(lO),b().shape({id:b().string.isRequired,label:b().string,sorting:b().shape({sortable:b().bool,sortRank:b().number,order:b().oneOf(["asc","desc"])}),resizable:b().bool,width:b().number,HeaderRenderer:b().elementType,CellRenderer:b().elementType,rightAligned:b().bool})),fO={SINGLE:"single",MULTI:"multi",NONE:"none"},pO=(b().oneOf(Object.keys(fO).map((function(e){return fO[e]}))),{INLINE:"inline",NONE:"none"}),hO=function(e){var t=e.theme;return Rn()(t,"colors.border")},mO=l.hs.space(-1.5),gO=c.Ay.div.withConfig({displayName:"StyledTableFooter"})(Ww||(Ww=i()(["\n grid-row-start: pagination-start;\n display: flex;\n flex-wrap: wrap;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),l.hs.space(-.5),l.hs.space(-1),hO,Z,l.hs.space(-1)),vO=(0,c.Ay)(re).withConfig({displayName:"StyledReloadButton"})(Yw||(Yw=i()(["\n height: 25px;\n width: 25px;\n"]))),yO=c.Ay.td.withConfig({displayName:"StyledTableCell"})(Uw||(Uw=i()(["\n && {\n padding: ",";\n background-color: ",";\n align-content: center;\n box-sizing: content-box;\n\n &,\n input {\n text-align: ",";\n }\n\n "," {\n color: ",";\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),mO,l.t7.color("paper"),(function(e){return e.alignment}),k.i,l.t7.color("text"),l.hs.space(-2)),bO=(c.Ay.div.withConfig({displayName:"StyledDnD"})(zw||(zw=i()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),mO,(function(e){return e.isDragged?.2:1})),c.Ay.span.withConfig({displayName:"StyledResizeHandle"})(Vw||(Vw=i()(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){return e.theme.colors.backgroundItemSelected}))),wO=(c.Ay.th.withConfig({displayName:"StyledTableHeaderCell"})(qw||(qw=i()(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n overflow: hidden;\n ",";\n ","\n ","\n ","\n }\n"])),l.t7.color("paper"),(function(e){return e.alignment}),hO,(0,l.Ed)({fontWeight:l.t7.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(bO," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(bO," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),(0,c.AH)(Gw||(Gw=i()(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.lastOpened {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):not(.lastOpened):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),yO,(function(e){return e.theme.colors.backgroundItemSelected}),yO,(function(e){return e.theme.colors.backgroundItemLastOpened}),yO,(function(e){return e.theme.colors.backgroundItemHover}))),OO=c.Ay.span.withConfig({displayName:"StyledSortingSpan"})($w||($w=i()(["\n height: 100%;\n margin-right: 2px;\n"]))),xO=c.Ay.span.withConfig({displayName:"StyledSortingRank"})(Kw||(Kw=i()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),l.t7.fontWeight("regular")),kO=(c.Ay.td.withConfig({displayName:"StyledFullRowProgress"})(Qw||(Qw=i()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),mO),c.Ay.td.withConfig({displayName:"StyledFullRow"})(Xw||(Xw=i()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),mO,(0,l.Ed)()),c.Ay.thead.withConfig({displayName:"StyledTableHead"})(Jw||(Jw=i()(["\n ","\n"])),wO),c.Ay.tr.withConfig({displayName:"StyledTableRow"})(Zw||(Zw=i()(["\n ","\n\n && > td {\n ",";\n }\n"])),wO,(function(e){var t=e.even,n=e.theme;return t&&"background-color: ".concat(n.colors.backgroundTableEvenRow)})),c.Ay.tbody.withConfig({displayName:"StyledTableBody"})(eO||(eO=i()(["\n ","\n"])),wO),c.Ay.table.withConfig({displayName:"StyledTable"})(tO||(tO=i()(["\n ","\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n"])),(function(e){return e.overflowAuto?"overflow: auto;":null}),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===pO.INLINE&&(0,c.AH)(nO||(nO=i()(["\n position: absolute;\n inset: 0;\n "])))})),c.Ay.div.withConfig({displayName:"StretchingTableContainer"})(rO||(rO=i()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))));c.Ay.div.withConfig({displayName:"StyledTableWrapper"})(oO||(oO=i()(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n /* reset external styles in old client */\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),l.t7.color("paper")),c.Ay.div.withConfig({displayName:"StyledDraggable"})(aO||(aO=i()(["\n width: 100%;\n height: 100%;\n display: flex;\n box-sizing: border-box;\n border-right: 3px solid transparent;\n border-left: 3px solid transparent;\n border-right-color: ",";\n border-left-color: ",";\n"])),(function(e){var t=e.isDraggedOver,n=e.dragPosition,r=e.theme;return t&&n===yb.Right?r.colors.text:"transparent"}),(function(e){var t=e.isDraggedOver,n=e.dragPosition,r=e.theme;return t&&n===yb.Left?r.colors.text:"transparent"})),c.Ay.span.withConfig({displayName:"StyledHeaderContentWrapper"})(iO||(iO=i()(["\n display: flex;\n"]))),c.Ay.div.withConfig({displayName:"StyledHeaderContent"})(sO||(sO=i()(["\n width: 100%;\n"]))),b().oneOf(Object.keys(pO).map((function(e){return pO[e]}))),(0,c.Ay)(kt.oY).withConfig({displayName:"StyledNumbering"})(cO||(cO=i()(["\n text-align: right;\n width: 100%;\n"])));(0,ce.injectIntl)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=e.tableEl,s=Boolean(o),c="function"==typeof r;return s||c?(0,S.jsx)(gO,{children:s&&(0,S.jsx)(mw,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:i,children:c&&(0,S.jsx)(vO,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));(0,ce.injectIntl)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,s=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,S.jsx)(xO,{children:o.sorting.sortRank}),c="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,S.jsxs)(OO,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,S.jsx)(k.A,{icon:c}),s]}):null}));var SO=x().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx,o=e.style;return(0,S.jsx)(yO,{"data-cy":"tbl-cell-".concat(t.id),alignment:t.alignment,style:o,children:t.CellRenderer?(0,S.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,S.jsx)(kt.Ay.Span,{children:n[t.id]})})}));SO.propTypes={rowData:lO.isRequired,column:dO.isRequired,rowIdx:b().number,style:b().object};let EO;EO="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let PO=null,DO=null;const _O=EO.clearTimeout,jO=EO.setTimeout,CO=EO.cancelAnimationFrame||EO.mozCancelAnimationFrame||EO.webkitCancelAnimationFrame,TO=EO.requestAnimationFrame||EO.mozRequestAnimationFrame||EO.webkitRequestAnimationFrame;null==CO||null==TO?(PO=_O,DO=function(e){return jO(e,20)}):(PO=function([e,t]){CO(e),_O(t)},DO=function(e){const t=TO((function(){_O(n),e()})),n=jO((function(){CO(t),e()}),20);return[t,n]});w.Component;n(58168);Number.isNaN;n(98587),"object"==typeof performance&&performance.now;S.Fragment;c.Ay.div.withConfig({displayName:"StyledIconWrapper"})(MO||(MO=i()(["\n margin-left: ",";\n margin-right: -",";\n"])),l.hs.space(-1.7),l.hs.space(-2.1)),(0,c.Ay)(K).withConfig({displayName:"StyledIconButtonWrapper"})(AO||(AO=i()(["\n padding-left: ",";\n padding-right: ",";\n"])),l.hs.space(-.5),l.hs.space(-.5));var MO,AO,IO,RO,NO,LO,FO,HO,BO=c.Ay.div.withConfig({displayName:"StyledFloatingUiWrapper"})(IO||(IO=i()(["\n position: absolute;\n"]))),WO=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(RO||(RO=i()(["\n max-height: ","; /* add 15px for small padding */\n min-height: calc(2 * "," + ","); /* min-height of 1 entry */\n width: max-content;\n overflow: hidden auto;\n background: ",";\n box-shadow: 0 0 5px rgba(0 0 0 / 30%);\n border: 1px solid ",";\n border-radius: ",";\n z-index: 9999999; /* higher than StyledModalHolder */\n"])),(function(e){var t=e.rectBottom;return"calc(100dvh - ".concat(t+15,"px)")}),l.hs.space(-1.4),l.hs.font(0),l.t7.color("paper"),l.t7.color("secondaryLight"),l.t7.radii("menu")),YO=c.Ay.div.withConfig({displayName:"StyledMenuItem"})(NO||(NO=i()(["\n min-width: 200px;\n max-width: 300px;\n"]))),UO=c.Ay.div.withConfig({displayName:"StyledItemLabel"})(LO||(LO=i()(["\n cursor: ",";\n ","\n ","\n /* increased padding on touchdevices */\n padding: ","\n calc("," + ",");\n font-weight: ",";\n box-shadow: none;\n\n &:disabled,\n &[disabled] {\n color: ",";\n cursor: text;\n }\n"])),(function(e){return e.hasOnClick?"pointer":"default"}),(0,l.Ed)(),(function(e){return e.hasOnClick?(0,l.x5)(e):""}),as.isTouchDevice?(0,c.AH)(FO||(FO=i()(["\n ","\n ","\n ","\n "])),l.hs.space(-1.4),l.hs.space(-.5),l.hs.space(-1.4)):(0,c.AH)(HO||(HO=i()(["\n ","\n ","\n ","\n "])),l.hs.space(-2),l.hs.space(-.5),l.hs.space(-2)),l.hs.space(-.5),(function(e){return 10*(e.level||0)+"px"}),(function(e){return e.isGroup?l.t7.fontWeight("bold"):l.t7.fontWeight("regular")}),l.t7.color("textDisabled"));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 VO(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){m()(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 qO=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,a=e.onClose,i=e.children;return o?(0,S.jsx)(BO,{children:i&&o&&(0,S.jsx)(Tu,{children:(0,S.jsx)(WO,VO(VO({ref:r.setFloating,style:t},n()),{},{className:tc,children:x().Children.map(i,(function(e){return e&&x().cloneElement(e,{onClose:a})}))}))})}):null};var GO=["children","onClick","onClose","disabled","closeOnClick","title","level"];function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$O(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var QO=function(e){var t=e.children,n=e.onClick,r=e.onClose,o=e.disabled,a=e.closeOnClick,i=void 0===a||a,s=e.title,c=e.level,u=v()(e,GO),l=x().Children.toArray(t).filter(Boolean),d=l.length>1,f=Boolean(n),p=l.map((function(e,t){var n,a=c?c++:1;return"MenuItem"===(null===(n=e.type)||void 0===n?void 0:n.displayName)?x().cloneElement(e,KO(KO({},e.props),{},{onClose:r,closeOnClick:i,level:a,key:"menu-item-".concat(t,"-").concat(a)})):(0,S.jsx)(UO,{hasOnClick:f,isGroup:d,title:s,disabled:o,look:"raised",level:c,"data-cy":u["data-cy"],children:e},"menu-item-label-".concat(t,"-").concat(a))}));return(0,S.jsx)(YO,{onClick:function(e){f&&!o&&(n(),i&&r&&r()),e.stopPropagation()},level:c,children:p})};QO.displayName="MenuItem";var XO,JO,ZO,ex,tx,nx,rx,ox,ax,ix,sx=c.Ay.div.withConfig({displayName:"TopPositioning"})(XO||(XO=i()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template:\n 'sidepanel' min-content\n 'content' minmax(auto, 1fr)\n / minmax(100%, 700px);\n"]))),cx=(c.Ay.div.withConfig({displayName:"LeftPositioning"})(JO||(JO=i()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),c.Ay.div.withConfig({displayName:"StyledSidepanel"})(ZO||(ZO=i()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),sx,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),c.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(ex||(ex=i()(["\n grid-area: content;\n display: flex;\n"]))),c.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(tx||(tx=i()(["\n display: flex; /* enables StyledSidepanelCollapsed to take full height */\n flex-direction: column;\n height: 100%;\n overflow: hidden auto;\n background-color: ",";\n"])),l.w4.color("paper")),c.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(nx||(nx=i()([""]))),c.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(rx||(rx=i()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),c.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(ox||(ox=i()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),l.w4.color("paper"),l.hs.space(-.5),l.hs.space(-2.5)));(0,c.Ay)(re).withConfig({displayName:"StyledToggleCollapseButton"})(ax||(ax=i()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),l.hs.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),cx,l.w4.color("secondaryLight")),c.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(ix||(ix=i()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n\n "," {\n z-index: 3; /* higher than rest to lay over search filter list */\n }\n"])),l.w4.color("paper"),l.w4.color("backgroundBody"),l.hs.space(-.53),qO);var ux,lx,dx,fx,px,hx,mx,gx=(0,c.Ay)(K).withConfig({displayName:"StyledAddRemoveButton"})(ux||(ux=i()(["\n && {\n background-color: transparent;\n border: 0;\n height: auto;\n border-radius: 0;\n padding: 0 "," 0 0;\n\n &:hover * {\n color: "," !important;\n }\n }\n"])),l.hs.space(-2.5),(function(e){return e.active?l.t7.color("paper"):l.t7.color("hoverInteractiveIcon")})),vx=c.Ay.div.withConfig({displayName:"StyledMenuWrapper"})(lx||(lx=i()(["\n &&& {\n button {\n background-color: transparent;\n padding: 0 "," 0 0;\n }\n\n &:hover button {\n color: ",";\n cursor: pointer;\n }\n }\n"])),l.hs.space(-1),(function(e){return e.active?l.t7.color("paper"):l.t7.color("hoverInteractiveIcon")})),yx=(c.Ay.div.withConfig({displayName:"StyleButtonWrapper"})(dx||(dx=i()(["\n display: flex;\n "," button,\n "," * {\n color: transparent;\n }\n"])),vx,gx),(0,c.Ay)(kt.oY).withConfig({displayName:"StyledButtonLabel"})(fx||(fx=i()(["\n flex-grow: 1;\n"]))));c.Ay.div.withConfig({displayName:"StyledSidepanelHorizontalButton"})(px||(px=i()(["\n border-radius: ",";\n display: flex;\n padding: 0.3rem 0 0.3rem 1rem;\n margin-bottom: 0.2rem;\n background-color: ",";\n justify-content: flex-end;\n\n && {\n *:not(",") {\n color: ",";\n }\n }\n\n /* allow hover styles only on non-touch devices */\n ","\n\n /* apply font color only on touch devices to always show them */\n ","\n"])),l.t7.radii("button"),(function(e){return e.active&&l.t7.color("secondary")}),UO,(function(e){return e.active&&l.t7.color("paper")}),!as.isTouchDevice&&(0,c.AH)(hx||(hx=i()(["\n &:hover {\n ",",\n "," button,\n "," * {\n color: ",";\n }\n background-color: ",";\n cursor: pointer;\n }\n "])),yx,vx,gx,l.t7.color("paper"),(function(e){return!e.active&&l.t7.color("secondaryLight")})),as.isTouchDevice&&(0,c.AH)(mx||(mx=i()(["\n ",",\n "," button,\n "," * {\n color: ",";\n }\n "])),yx,vx,gx,l.t7.color("secondary")));var bx;c.Ay.div.withConfig({displayName:"ActionBar"})(bx||(bx=i()(["\n display: flex;\n background-color: ",";\n margin-bottom: 3px;\n padding: 8px;\n grid-row-start: action-start;\n flex-wrap: wrap;\n"])),l.w4.color("paper"));var wx;c.Ay.div.withConfig({displayName:"ActionBarContainer"})(wx||(wx=i()(["\n display: grid;\n grid-template-rows: [action-start] auto [table-start] minmax(0, 1fr);\n height: 100%;\n width: 100%;\n"])));var Ox;c.Ay.div.withConfig({displayName:"ActionBarMainContent"})(Ox||(Ox=i()(["\n grid-row-start: table-start;\n\n "," {\n overflow-x: hidden;\n }\n"])),kO)},17656:(e,t,n)=>{"use strict";n.d(t,{KY:()=>i,Db:()=>a,h7:()=>de,Ed:()=>fe,sb:()=>pe,KV:()=>he,xX:()=>Pe,GV:()=>Ae,x5:()=>Ne,hs:()=>ze,w4:()=>We,t7:()=>qe,LE:()=>Ve});var r=n(58156),o=n.n(r),a={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")}},i={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"}},s=n(72189),c=n.n(s),u=n(87716);function l(){return l=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},l.apply(this,arguments)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return p=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&&d(o,n.prototype),o},p.apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return h=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 p(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)},h(e)}var m=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,d(t,n),r}(h(Error));function g(e,t){return e.substr(-t.length)===t}var v=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function y(e){return"string"!=typeof e?e:e.match(v)?parseFloat(e):e}var b=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!g(t,"px"))throw new m(69,e,t);r=y(t)}if("string"==typeof n){if(!g(n,"px"))throw new m(70,e,n);o=y(n)}if("string"==typeof r)throw new m(71,t,e);if("string"==typeof o)throw new m(72,n,e);return""+r/o+e}};b("em");b("rem");function w(e){return Math.round(255*e)}function O(e,t,n){return w(e)+","+w(t)+","+w(n)}function x(e,t,n,r){if(void 0===r&&(r=O),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,c=0,u=0;o>=0&&o<1?(s=a,c=i):o>=1&&o<2?(s=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var l=n-a/2;return r(s+l,c+l,u+l)}var k={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 S=/^#[a-fA-F0-9]{6}$/,E=/^#[a-fA-F0-9]{8}$/,P=/^#[a-fA-F0-9]{3}$/,D=/^#[a-fA-F0-9]{4}$/,_=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,j=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,C=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,T=/^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 M(e){if("string"!=typeof e)throw new m(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return k[t]?"#"+k[t]:e}(e);if(t.match(S))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(E)){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(P))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(D)){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=_.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=j.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=C.exec(t);if(i){var s="rgb("+x(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=_.exec(s);if(!c)throw new m(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=T.exec(t.substring(0,50));if(u){var l="rgb("+x(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=_.exec(l);if(!d)throw new m(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 m(5)}function A(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=a-i,u=s>.5?c/(2-a-i):c/(a+i);switch(a){case n:t=(r-o)/c+(r<o?6:0);break;case r:t=(o-n)/c+2;break;default:t=(n-r)/c+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:s,alpha:e.alpha}:{hue:t,saturation:u,lightness:s}}(M(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 R(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function N(e){return R(Math.round(255*e))}function L(e,t,n){return I("#"+N(e)+N(t)+N(n))}function F(e,t,n){return x(e,t,n,L)}function H(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return F(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return F(e.hue,e.saturation,e.lightness);throw new m(1)}function B(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?F(e,t,n):"rgba("+x(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?F(e.hue,e.saturation,e.lightness):"rgba("+x(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new m(2)}function W(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return I("#"+R(e)+R(t)+R(n));if("object"==typeof e&&void 0===t&&void 0===n)return I("#"+R(e.red)+R(e.green)+R(e.blue));throw new m(6)}function Y(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=M(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?W(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?W(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new m(7)}var U=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},z=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},V=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},q=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function G(e){if("object"!=typeof e)throw new m(8);if(z(e))return Y(e);if(U(e))return W(e);if(q(e))return B(e);if(V(e))return H(e);throw new m(8)}function $(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):$(e,t,r)}}function K(e){return $(e,e.length,[])}K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{hue:n.hue+parseFloat(e)}))}));function Q(e,t,n){return Math.max(e,Math.min(t,n))}K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{lightness:Q(0,1,n.lightness-parseFloat(e))}))}));K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{saturation:Q(0,1,n.saturation-parseFloat(e))}))}));function X(e){if("transparent"===e)return 0;var t=M(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],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function J(e,t){var n=X(e),r=X(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var Z=K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{lightness:Q(0,1,n.lightness+parseFloat(e))}))})),ee=Z;var te=K((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=M(t),o=l({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),a=M(n),i=l({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),s=o.alpha-i.alpha,c=2*parseFloat(e)-1,u=((c*s==-1?c:c+s)/(1+c*s)+1)/2,d=1-u;return Y({red:Math.floor(o.red*u+i.red*d),green:Math.floor(o.green*u+i.green*d),blue:Math.floor(o.blue*u+i.blue*d),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))})})),ne=te;K((function(e,t){if("transparent"===t)return t;var n=M(t);return Y(l({},n,{alpha:Q(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var re="#000",oe="#fff";K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{saturation:Q(0,1,n.saturation+parseFloat(e))}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{hue:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{lightness:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{saturation:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(0, 0, 0)",t)}));var ae=K((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(255, 255, 255)",t)})),ie=ae;var se=K((function(e,t){if("transparent"===t)return t;var n=M(t);return Y(l({},n,{alpha:Q(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),ce=se;var ue;var le,de=function(e){var t=o()(e.theme,"colors.signal.info",Pe.fallbackColors.INFO);return(0,u.AH)(ue||(ue=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,ce(.4,t))};const fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.AH)(le||(le=c()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||We.color("text"),e.fontFamily||We.fontFamily("regular"),e.fontSize||ze.font(0),e.fontStyle||"normal",e.fontWeight||We.fontWeight("regular"),e.lineHeight||We.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"},he=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"},me=n(5556),ge=n.n(me),ve={NONE:"none",SPIN:"spin"},ye={BASE:"base",PRIMARY:"primary",SECONDARY:"secondary"},be={BOX:"layoutBox",CONTAINER:"layoutContainer",NONE:"none"},we={BALL:"ball",FLAT:"flat",PLAIN:"plain",RAISED:"raised"},Oe={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},xe=ge().oneOf(Object.values(ve)),ke=ge().oneOf(Object.values(ye)),Se=ge().oneOf(Object.values(we)),Ee=ge().oneOf(Object.values(Oe));const Pe={animation:ve,animationPropTypes:xe,condition:{BASE:"base",DANGER:"danger",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",INFO:"info"},ink:ye,inkPropTypes:ke,layout:be,layoutPropTypes:ge().oneOf(Object.values(be)),look:we,lookPropTypes:Se,fallbackColors:{SHADE:"#000000",INFO:"#0000ff",TEXT:"#010101",PAPER:"#fefefe"},format:{HTML:"html",SVG:"svg"},oneOfPropTypeAndCompletelyMapped:function(e,t){return ge().oneOf(Object.values(e))},position:Oe,positionPropTypes:Ee};n(71086);var De=n(85735),_e=n.n(De),je=n(4883),Ce=n.n(je),Te=function(e){var t="";return Ce().Children.map(e,(function(e,n){"string"==typeof e||"number"==typeof e?t="".concat(t).concat(e):"object"===_e()(e)&&e.props.children?t="".concat(t).concat(Te(e.props.children)):"object"===_e()(e)&&e.props.dangerouslySetInnerHTML&&(t="".concat(t," ").concat(Me(e.props.dangerouslySetInnerHTML.__html)))})),t},Me=function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};const Ae=Te;var Ie,Re=function(e,t){return function(e,t,n,r){void 0===t&&(t=re),void 0===n&&(n=oe),void 0===r&&(r=!0);var o=X(e)>.179,a=o?t:n;return!r||J(e,a)>=4.5?a:o?re:oe}(e,We.color("text")({theme:t}),We.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?We.color("primary")({theme:n}):r?We.color("secondary")({theme:n}):We.color("paper")({theme:n})}(t,n,r),a=function(e,t,n,r){return"primary"===e&&"raised"!==t?We.color("primary")({theme:n}):Re(r,n)}(t,n,r,o),i=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(We.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?We.color("primaryLight")({theme:n}):We.color("secondaryLight")({theme:n}):We.color("backgroundItemHover")({theme:n})}(t,n,r),l=function(e,t,n){return"raised"===e?We.color("paper")({theme:t}):Re(n,t)}(n,r,o);return(0,u.AH)(Ie||(Ie=c()(["\n && {\n color: ",";\n }\n background: ",";\n box-shadow: ",";\n outline: none;\n border: none;\n\n &:active,\n &[aria-pressed='true'] {\n background: ",";\n }\n\n &:disabled,\n &[disabled] {\n background: ",";\n opacity: 0.5;\n cursor: text;\n }\n\n &:focus:not(:disabled),\n &:focus:not([disabled]),\n &:hover:not(:disabled),\n &:hover:not([disabled]) {\n background: ",";\n color: ",";\n }\n "])),a,o,i,ee(.1,s),"dark"!==r.name?ie(.41,o):"transparent",s,l)};var Le=n(36944),Fe=n.n(Le),He=n(94200),Be=function(e){return 0===Object.keys(e).length?He.A:e};const We={color:function(e){return function(t){var n=t.theme;return o()(Be(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(Be(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(Be(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(Be(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(Be(n),"specificProperties.".concat(e))}}};var Ye=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(Fe()(Ue(t,e,n),3)).concat(r)},Ue=function(e,t,n){return Math.pow(n,t)*e};const ze={declareScale:Ye,exponentiate:Ue,font:function(e,t){return function(n){return Ye(e,We.fontSize("base")(n),We.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ye(e,We.space("base")(n),We.space("factor")(n),t)}}};n(22056);var Ve=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 qe=We},43806:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(73357),o=n.n(r),a=n(73082),i=n(1882),s=n.n(i);const c=function(){return window.app&&s()(window.app.getRunEnv)?window.app.getRunEnv():"PRODUCTION"};var u="meta",l="tocco.cache",d=function(e,t){return"".concat(l,".").concat(e,".").concat(t)},f={},p=function(e,t){f[e]=t},h=function(e,t,n){return g(e,t,n,p)},m=function(e,t,n){return g(e,t,n,(r=localStorage,function(e,t){return r.setItem(e,JSON.stringify(t))}));var r},g=function(e,t,n,r){return"PRODUCTION"!==c()?null:r(d(e,t),n)},v=function(e,t){return f[d(e,t)]},y=function(e,t){return b(e,t,localStorage)},b=function(e,t,n){var r=n.getItem(d(e,t));if(r)return JSON.parse(r)},w=function(e,t,n){return n.removeItem(d(e,t))},O=function(){a.A.log("cache - object cache invalidated"),Object.keys(f).forEach((function(e){return o()(f,e)}))},x=function(){a.A.log("cache - long term cache invalidated"),k(localStorage)},k=function(e){Object.keys(e).filter((function(e){return e.startsWith(l)&&!function(e){return e.startsWith("".concat(l,".").concat(u))}(e)})).forEach((function(t){return e.removeItem(t)}))};const S={addObjectCache:h,addLongTerm:m,getObjectCache:v,getLongTerm:y,removeObjectCache:function(e,t){return o()(f,d(e,t))},removeLongTerm:function(e,t){return w(e,t,localStorage)},clearObjectCache:O,clearLongTerm:x,getLongTermMetaInfo:function(){return{revision:y(u,"revision")}},setLongTermMetaInfo:function(e){var t=e.revision;m(u,"revision",t||"")},getObjectCacheMetaInfo:function(){return{locale:v(u,"locale"),businessUnitId:v(u,"businessUnitId"),username:v(u,"username")}},setObjectCacheMetaInfo:function(e){var t=e.locale,n=e.businessUnitId,r=e.username;h(u,"locale",t||""),h(u,"businessUnitId",n||""),h(u,"username",r||"")}}},73082:(e,t,n)=>{"use strict";n.d(t,{A:()=>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)}}},37576:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(33046);const o={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:"eine halbe Minute",withPreposition:"einer 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"}}};var a=n(7277);const i={date:(0,a.k)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},s={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};var c=n(33443);const u={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"]},l={narrow:u.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:u.wide},d={ordinalNumber:e=>Number(e)+".",era:(0,c.o)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,c.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,c.o)({values:u,formattingValues:l,defaultWidth:"wide"}),day:(0,c.o)({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:(0,c.o)({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 f=n(57883),p=n(20337);const h={code:"de",formatDistance:(e,t,n)=>{let r;const a=n?.addSuffix?o[e].withPreposition:o[e].standalone;return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:i,formatRelative:(e,t,n,r)=>s[e],localize:d,match:{ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var m=n(9946);const g={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"}},v=["MMM","MMMM"],y={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&v.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t},ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let o;return o=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+o},era:(0,c.o)({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:(0,c.o)({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:e=>e-1}),month:(0,c.o)({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:(0,c.o)({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:(0,c.o)({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"})},b={ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},w={date:(0,a.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={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"},x={code:"fr-CH",formatDistance:(e,t,n)=>{let r;const o=g[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},formatLong:w,formatRelative:(e,t,n,r)=>O[e],localize:y,match:b,options:{weekStartsOn:1,firstWeekContainsDate:4}},k={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"}},S={date:(0,a.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var E=n(90096);const P=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function D(e){return"'"+P[e]+" alle' p"}const _={lastWeek:(e,t,n)=>{const r=e.getDay();return(0,E.R)(e,t,n)?D(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+P[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const r=e.getDay();return(0,E.R)(e,t,n)?D(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+P[e]+" prossimo alle' p"}(r)},other:"P"},j={code:"it",formatDistance:(e,t,n)=>{let r;const o=k[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:S,formatRelative:(e,t,n,r)=>{const o=_[e];return"function"==typeof o?o(t,n,r):o},localize:{ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:(0,c.o)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,c.o)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,c.o)({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:(0,c.o)({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:(0,c.o)({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"})},match:{ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var C=n(98166),T=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=(0,C.O5)(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}},M=function(e){switch(e){case"fr":return x;case"en":return m.c;case"it":return j;default:return h}},A=function(e){return M(e).formatLong.date({width:"short"})},I=function(e){return A(e).replace(/[/.]/g,"")};const R={millisecondsToDuration:T,formatDuration:function(e){var t=T(e),n=t.hours,r=t.minutes,o=t.seconds,a="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),i="".concat(a,":").concat(o.toFixed(3).padStart(6,"0"));return o?i:a},getDateFnsLocale:M,getLocalizedDateFormat:A,getLocalizedDateTimeFormat:function(e){return"".concat(A(e)," HH:mm")},getLocalizedDateFormatWithoutPunctuation:I,getLocalizedDateTimeFormatWithoutPunctuation:function(e){return"".concat(I(e)," HHmm")},useTwoDigitYear:function(e){return e.replace(/y+/,"yy")},setCurrentTime:function(e){var t=new Date,n=new Date(e);return n=(0,r.avh)(n,(0,r.qZx)(t)),n=(0,r.glI)(n,(0,r.Osm)(t)),n=(0,r.gtt)(n,0),n=(0,r.$7z)(n,0)},selectUnit:function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}}}},81570:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,i:()=>o});var r="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,o=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches}},31558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const o={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 r(e,"download",!0)},addParameterToURL:r}},23228:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(26396),o=n.n(r),a=n(73082),i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},s=Object.values(i),c={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:i.admin,widgetConfigKey:void 0},u=function(e){c.backendUrl=e},l=function(e){c.businessUnit=e},d=function(e){c.ruleProvider=e},f=function(){return c.embedType},p=function(e){s.includes(e)?c.embedType=e:a.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(s.join(", ")))},h=function(e){c.widgetConfigKey=e},m=n(74848);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var v=function(e){var t=e.mapping;return t[f()||i.admin]||t[i.admin]};const y={EmbedType:i,isInAdminEmbedded:function(){var e=f();return[i.admin,i.legacyAdmin].includes(e)},isInWidgetEmbedded:function(){var e=f();return[i.widget].includes(e)},embedStrategyFactory:function(e){var t=e.mapping;e.propTypes;return function(e){var n=v({mapping:t});return n||a.A.logError("Unable to render embed component: No embed component defined."),(0,m.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}},embedStrategy:v,getBackendUrl:function(){return c.backendUrl||""},setBackendUrl:u,getBusinessUnit:function(){return c.businessUnit},getRuleProvider:function(){return c.ruleProvider},setBusinessUnit:l,setRuleProvider:d,getEmbedType:f,setEmbedType:p,getWidgetConfigKey:function(){return c.widgetConfigKey},setWidgetConfigKey:h,asInputProps:function(){return{backendUrl:c.backendUrl,businessUnit:c.businessUnit,appContext:{embedType:c.embedType,widgetConfigKey:c.widgetConfigKey}}},NULL_BUSINESS_UNIT:"__n-u-l-l__",ALLOWED_EMBED_TYPES:s,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&u(e.backendUrl),e.businessUnit&&l(e.businessUnit),e.ruleProvider&&d(e.ruleProvider),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&p(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&h(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},88691:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(26396),o=n.n(r),a=n(79092),i=n.n(a),s=n(92207),c=n.n(s),u=n(60991),l=n(43806),d=n(99208);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=["de","fr","en","it"],m=function(){var e=i()(c().mark((function e(t,n,r){var o,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r){e.next=5;break}return e.next=4,v();case 4:o=e.sent;case 5:return e.next=7,g(n,o);case 7:return a=e.sent,e.abrupt("return",t.dispatch(a));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),g=function(){var e=i()(c().mark((function e(t,n){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b(n,t);case 2:return r=e.sent,e.abrupt("return",(0,u.D6)({locale:n.replace("_","-"),messages:r}));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=i()(c().mark((function e(){var t,n,r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.A.getObjectCacheMetaInfo(),!(n=t.locale)){e.next=3;break}return e.abrupt("return",n);case 3:return e.next=5,y();case 5:return r=e.sent,o=r.locale,e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=i()(c().mark((function e(){var t,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.A.executeRequest("username").then(d.A.extractBody);case 2:return t=e.sent,n=t.locale,"anonymous"===t.username&&(r=void 0,o=void 0,r=window.navigator.userLanguage||window.navigator.language,o=r.indexOf("-")>0?r.split("-")[0]:r,n=h.includes(o)?o:"en"),e.abrupt("return",p(p({},t),{},{locale:n}));case 6:case"end":return e.stop()}var r,o}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=i()(c().mark((function e(t,n){var r,a,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},a=[],n.forEach((function(e){var n=l.A.getLongTerm("textResource","".concat(t,".").concat(e));n?r=p(p({},r),n):a.push(e)})),!(a.length>0)){e.next=8;break}return e.next=6,w(t,a);case 6:i=e.sent,a.forEach((function(e){var n=Object.keys(i).filter((function(t){return t.match(new RegExp("^client\\."+e+".*","g"))})).reduce((function(e,t){return p(p({},e),{},o()({},t,i[t]))}),{});l.A.addLongTerm("textResource","".concat(t,".").concat(e),n),r=p(p({},r),n)}));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),w=function(e,t){var n="".concat(t.join(",")),r=n?"&module=".concat(n):"",o="textresource?locale=".concat(e).concat(r);return d.A.executeRequest(o).then(d.A.extractBody)};const O={initIntl:m,getChangeLocaleAction:g,localeSelector:function(e){return e.intl.locale},loadUserWithLocale:y,getUserLocale:v}},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>i,Yd:()=>r,lW:()=>a});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},a=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},i=function(e){return null!=e}},23076:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(98166),o=n(85735),a=n.n(o),i=n(2404),s=n.n(i),c=n(69752),u=n.n(c),l=function(e){return"object"===a()(e)&&null!==e},d=function(e,t){return u()(e,(function(e,n,r){s()(n,t[r])||(e[r]=l(n)&&l(t[r])?d(n,t[r]):n)}))};const f={difference:d,getOrFirst:r.Yd,adjustedHTMLString:function(e){return e?e.replace(/&shy;/g,""):e},roundDecimalPlaces:r.O5,copyToClipboard:r.lW,isDefined:r.O9}},19383:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(93419),o="_tocco_originId";const a={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),s=(n(5556),n(4883)),c=n.n(s);function u(e,t){var n=(0,s.useState)(e),r=i()(n,2),o=r[0],a=r[1];return(0,s.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}var l=n(74848);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=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 c().forwardRef((function(r,a){var c=r.value,d=(0,s.useState)(c),p=i()(d,2),h=p[0],m=p[1],g=u(h,t),v=i()(g,2),y=v[0],b=v[1],w=(0,s.useRef)(c),O=r[n];return(0,s.useEffect)((function(){h!==c&&h===y&&(m(c),w.current=c,b(c))}),[c]),(0,s.useEffect)((function(){O&&w.current!==y&&(O(y),w.current=y)}),[y,O]),(0,l.jsx)(e,f(f(f({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))};var h=n(81570);const m={useAutofocus: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,s.useEffect)((function(){if(!t.disabled&&e.current&&!(0,h.i)()){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]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:u,Debouncer:p,useUserActive:function(e){var t=(0,s.useRef)(null),n=(0,s.useState)(null),r=i()(n,2),o=r[0],a=r[1],c=(0,s.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),u=(0,s.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,s.useEffect)((function(){return u(),window.addEventListener("mousemove",c,{once:!0}),window.addEventListener("touchstart",c,{once:!0}),function(){u()}}),[u,c]),[a,u,c]},usePrevious:function(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,s.useRef)(!1);(0,s.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,s.useState)(),t=i()(e,2),n=t[0],r=t[1],o=(0,s.useRef)(),a=(0,s.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),c=(0,s.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,s.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[c,n]}}},37954:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(26396),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=n(66245),c=n.n(s),u=n(44383),l=n.n(u),d=n(14644);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e,t){var n=p(p({},e.allReducers),t),r=(0,d.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n},m=n(63560),g=n.n(m);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const w={singleTransferReducer:function(e,t){return function(n,r){var a=r.payload[e],i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return g()(i,t?t+"."+e:e,a),i}},mappingTransferReducer:function(e,t){return function(n,r){var a=r.payload[e];return i(i({},n),{},o()({},t,a))}},injectReducers:function(e,t){var n=c()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=p(p({},e.allReducers),l()(t,n));h(e,r)}},hotReloadReducers:h,toggleReducer:function(e){return function(t){return b(b({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),s=n(23228),c=n(19383);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(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",c.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t},p=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 h={prepareHeaders:f,prepareUrl:p,executeRequest:function(e){var t=function(e){return l(l(l({},d),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=p(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},8271:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=new AbortController,o=!1;window.addEventListener("beforeunload",(function(e){o?(e.preventDefault(),e.returnValue=""):r.abort()})),window.addEventListener("pagehide",(function(){r.signal.aborted||r.abort()}));var a=n(92207),i=n.n(a),s=n(43786),c=n(73082),u=function(e,t,n){return i().mark((function o(){var a,u,l,d=arguments;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:for(a=d.length,u=new Array(a),l=0;l<a;l++)u[l]=d[l];case 1:return o.prev=2,o.next=5,s.T1.apply(void 0,[e,t].concat(u));case 5:o.next=16;break;case 7:if(o.prev=7,o.t0=o.catch(2),!1!==r.signal.aborted){o.next=16;break}if(!n){o.next=15;break}return o.next=13,(0,s.yJ)(n("client.common.unexpectedError","client.common.unexpectedError",o.t0));case 13:o.next=16;break;case 15:c.A.logError("error",o.t0);case 16:o.next=1;break;case 18:case"end":return o.stop()}}),o,null,[[2,7]])}))};const l={autoRestartSaga:u,createGenerator:function(e){return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.Q7)(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(u(t,null,n)))},abortController:r,deactivatePreventFromLeaving:function(){o=!1},activatePreventFromLeaving:function(){o=!0}}},71508:e=>{function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},2063:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,'@charset "UTF-8";\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, .react-datepicker__navigation-icon::before {\n border-color: #ccc;\n border-style: solid;\n border-width: 3px 3px 0 0;\n content: "";\n display: block;\n height: 9px;\n position: absolute;\n top: 6px;\n width: 9px;\n}\n.react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n}\n\n.react-datepicker {\n font-family: "Helvetica Neue", helvetica, arial, sans-serif;\n font-size: 0.8rem;\n background-color: #fff;\n color: #000;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n line-height: initial;\n}\n\n.react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n}\n.react-datepicker--time-only .react-datepicker__time,\n.react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n\n.react-datepicker-popper {\n z-index: 1;\n line-height: 0;\n}\n.react-datepicker-popper .react-datepicker__triangle {\n stroke: #aeaeae;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n fill: #f0f0f0;\n color: #f0f0f0;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n fill: #fff;\n color: #fff;\n}\n\n.react-datepicker__header {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #aeaeae;\n border-top-left-radius: 0.3rem;\n padding: 8px 0;\n position: relative;\n}\n.react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n}\n.react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\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 display: inline-block;\n margin: 0 15px;\n}\n\n.react-datepicker__current-month,\n.react-datepicker-time__header,\n.react-datepicker-year-header {\n margin-top: 0;\n color: #000;\n font-weight: bold;\n font-size: 0.944rem;\n}\n\nh2.react-datepicker__current-month {\n padding: 0;\n margin: 0;\n}\n\n.react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n}\n.react-datepicker__navigation--previous {\n left: 2px;\n}\n.react-datepicker__navigation--next {\n right: 2px;\n}\n.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n}\n.react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__navigation--years-previous {\n top: 4px;\n}\n.react-datepicker__navigation--years-upcoming {\n top: -4px;\n}\n.react-datepicker__navigation:hover *::before {\n border-color: rgb(165.75, 165.75, 165.75);\n}\n\n.react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n}\n.react-datepicker__navigation-icon--next {\n left: -2px;\n}\n.react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n}\n.react-datepicker__navigation-icon--previous {\n right: -2px;\n}\n.react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n}\n\n.react-datepicker__month-container {\n float: left;\n}\n\n.react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n}\n.react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__month {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__month .react-datepicker__month-text,\n.react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__input-time-container {\n clear: both;\n width: 100%;\n float: left;\n margin: 5px 0 10px 15px;\n text-align: left;\n}\n.react-datepicker__input-time-container .react-datepicker-time__caption {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n display: inline-block;\n margin-left: 10px;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n margin-left: 5px;\n display: inline-block;\n}\n\n.react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n}\n.react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -87px;\n top: 0;\n}\n.react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + 1.7rem / 2);\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: #f0f0f0;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: #216ba5;\n color: white;\n font-weight: bold;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: #216ba5;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: #ccc;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n}\n\n.react-datepicker__week-number {\n color: #ccc;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,\n.react-datepicker__week-number--keyboard-selected):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__week-number--selected {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__week-number--selected:hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__week-number--keyboard-selected {\n border-radius: 0.3rem;\n background-color: rgb(41.5, 134.5606060606, 207.5);\n color: #fff;\n}\n.react-datepicker__week-number--keyboard-selected:hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n\n.react-datepicker__day-names {\n white-space: nowrap;\n margin-bottom: -8px;\n}\n\n.react-datepicker__week {\n white-space: nowrap;\n}\n\n.react-datepicker__day-name,\n.react-datepicker__day,\n.react-datepicker__time-name {\n color: #000;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n\n.react-datepicker__day,\n.react-datepicker__month-text,\n.react-datepicker__quarter-text,\n.react-datepicker__year-text {\n cursor: pointer;\n}\n.react-datepicker__day:not([aria-disabled=true]):hover,\n.react-datepicker__month-text:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text:not([aria-disabled=true]):hover,\n.react-datepicker__year-text:not([aria-disabled=true]):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\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 font-weight: bold;\n}\n.react-datepicker__day--highlighted,\n.react-datepicker__month-text--highlighted,\n.react-datepicker__quarter-text--highlighted,\n.react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n}\n.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover {\n background-color: rgb(49.8551020408, 189.6448979592, 62.5632653061);\n}\n.react-datepicker__day--highlighted-custom-1,\n.react-datepicker__month-text--highlighted-custom-1,\n.react-datepicker__quarter-text--highlighted-custom-1,\n.react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n}\n.react-datepicker__day--highlighted-custom-2,\n.react-datepicker__month-text--highlighted-custom-2,\n.react-datepicker__quarter-text--highlighted-custom-2,\n.react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n}\n.react-datepicker__day--holidays,\n.react-datepicker__month-text--holidays,\n.react-datepicker__quarter-text--holidays,\n.react-datepicker__year-text--holidays {\n position: relative;\n border-radius: 0.3rem;\n background-color: #ff6803;\n color: #fff;\n}\n.react-datepicker__day--holidays .overlay,\n.react-datepicker__month-text--holidays .overlay,\n.react-datepicker__quarter-text--holidays .overlay,\n.react-datepicker__year-text--holidays .overlay {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n.react-datepicker__day--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover {\n background-color: rgb(207, 82.9642857143, 0);\n}\n.react-datepicker__day--holidays:hover .overlay,\n.react-datepicker__month-text--holidays:hover .overlay,\n.react-datepicker__quarter-text--holidays:hover .overlay,\n.react-datepicker__year-text--holidays:hover .overlay {\n visibility: visible;\n opacity: 1;\n}\n.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n.react-datepicker__month-text--selected,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--selected,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--selected,\n.react-datepicker__year-text--in-selecting-range,\n.react-datepicker__year-text--in-range {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__day--selected:not([aria-disabled=true]):hover, .react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover, .react-datepicker__day--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--keyboard-selected,\n.react-datepicker__month-text--keyboard-selected,\n.react-datepicker__quarter-text--keyboard-selected,\n.react-datepicker__year-text--keyboard-selected {\n border-radius: 0.3rem;\n background-color: rgb(186.25, 217.0833333333, 241.25);\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range) {\n background-color: rgba(33, 107, 165, 0.5);\n}\n.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range) {\n background-color: #f0f0f0;\n color: #000;\n}\n.react-datepicker__day--disabled,\n.react-datepicker__month-text--disabled,\n.react-datepicker__quarter-text--disabled,\n.react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n}\n.react-datepicker__day--disabled .overlay,\n.react-datepicker__month-text--disabled .overlay,\n.react-datepicker__quarter-text--disabled .overlay,\n.react-datepicker__year-text--disabled .overlay {\n position: absolute;\n bottom: 70%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n\n.react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n.react-datepicker__input-container .react-datepicker__calendar-icon {\n position: absolute;\n padding: 0.5rem;\n box-sizing: content-box;\n}\n\n.react-datepicker__view-calendar-icon input {\n padding: 6px 10px 5px 25px;\n}\n\n.react-datepicker__year-read-view,\n.react-datepicker__month-read-view,\n.react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n}\n.react-datepicker__year-read-view:hover,\n.react-datepicker__month-read-view:hover,\n.react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n}\n.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: rgb(178.5, 178.5, 178.5);\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 transform: rotate(135deg);\n right: -16px;\n top: 0;\n}\n\n.react-datepicker__year-dropdown,\n.react-datepicker__month-dropdown,\n.react-datepicker__month-year-dropdown {\n background-color: #f0f0f0;\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n}\n.react-datepicker__year-dropdown:hover,\n.react-datepicker__month-dropdown:hover,\n.react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n}\n.react-datepicker__year-dropdown--scrollable,\n.react-datepicker__month-dropdown--scrollable,\n.react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n}\n\n.react-datepicker__year-option,\n.react-datepicker__month-option,\n.react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\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 border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n}\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 -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:hover,\n.react-datepicker__month-option:hover,\n.react-datepicker__month-year-option:hover {\n background-color: #ccc;\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option--selected,\n.react-datepicker__month-option--selected,\n.react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n}\n\n.react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n.react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: #216ba5;\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: "×";\n}\n.react-datepicker__close-icon--disabled {\n cursor: default;\n}\n.react-datepicker__close-icon--disabled::after {\n cursor: default;\n background-color: #ccc;\n}\n\n.react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n}\n\n.react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n}\n.react-datepicker__portal .react-datepicker__day-name,\n.react-datepicker__portal .react-datepicker__day,\n.react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n}\n@media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n}\n.react-datepicker__portal .react-datepicker__current-month,\n.react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n}\n\n.react-datepicker__children-container {\n width: 13.8rem;\n margin: 0.4rem;\n padding-right: 0.2rem;\n padding-left: 0.2rem;\n height: auto;\n}\n\n.react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n}\n\n.react-datepicker__calendar-icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.125em;\n}\n',""]);const s=i},27752:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap);"]),i.push([e.id,"\n",""]);const s=i},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},42838:function(e){
6
+ */function Lw(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function Fw(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function Hw({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:a,size:i,boostLevel:s}){let c=w.useMemo((()=>{const r=(Array.isArray(e)?e:[e]).reduce(((e,t)=>(e.push(...Pw.QrSegment.makeSegments(t)),e)),[]);return Pw.QrCode.encodeSegments(r,Dw[t],n,void 0,void 0,s)}),[e,t,n,s]);const{cells:u,margin:l,numCells:d,calculatedImageSettings:f}=w.useMemo((()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?Iw:Rw}(r,o),n=e.length+2*t,s=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,a=Math.floor(t*Nw),i=o/t,s=(r.width||a)*i,c=(r.height||a)*i,u=null==r.x?e.length/2-s/2:r.x*i,l=null==r.y?e.length/2-c/2:r.y*i,d=null==r.opacity?1:r.opacity;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(l);f={x:e,y:t,w:Math.ceil(s+u-e),h:Math.ceil(c+l-t)}}return{x:u,y:l,h:c,w:s,excavation:f,opacity:d,crossOrigin:r.crossOrigin}}(e,i,t,a);return{cells:e,margin:t,numCells:n,calculatedImageSettings:s}}),[c,i,a,r,o]);return{qrcode:c,margin:l,cells:u,numCells:d,calculatedImageSettings:f}}var Bw=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Ww=w.forwardRef((function(e,t){const n=e,{value:r,size:o=_w,level:a=jw,bgColor:i=Cw,fgColor:s=Tw,includeMargin:c=Mw,minVersion:u=Aw,boostLevel:l,marginSize:d,imageSettings:f}=n,p=Ew(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=p,m=Ew(p,["style"]),g=null==f?void 0:f.src,v=w.useRef(null),y=w.useRef(null),b=w.useCallback((e=>{v.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[t]),[O,x]=w.useState(!1),{margin:k,cells:S,numCells:E,calculatedImageSettings:P}=Hw({value:r,level:a,minVersion:u,boostLevel:l,includeMargin:c,marginSize:d,imageSettings:f,size:o});w.useEffect((()=>{if(null!=v.current){const e=v.current,t=e.getContext("2d");if(!t)return;let n=S;const r=y.current,a=null!=P&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;a&&null!=P.excavation&&(n=Fw(S,P.excavation));const c=window.devicePixelRatio||1;e.height=e.width=o*c;const u=o/E*c;t.scale(u,u),t.fillStyle=i,t.fillRect(0,0,E,E),t.fillStyle=s,Bw?t.fill(new Path2D(Lw(n,k))):S.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+k,n+k,1,1)}))})),P&&(t.globalAlpha=P.opacity),a&&t.drawImage(r,P.x+k,P.y+k,P.w,P.h)}})),w.useEffect((()=>{x(!1)}),[g]);const D=Sw({height:o,width:o},h);let _=null;return null!=g&&(_=w.createElement("img",{src:g,key:g,style:{display:"none"},onLoad:()=>{x(!0)},ref:y,crossOrigin:null==P?void 0:P.crossOrigin})),w.createElement(w.Fragment,null,w.createElement("canvas",Sw({style:D,height:o,width:o,ref:b,role:"img"},m)),_)}));Ww.displayName="QRCodeCanvas";var Yw=w.forwardRef((function(e,t){const n=e,{value:r,size:o=_w,level:a=jw,bgColor:i=Cw,fgColor:s=Tw,includeMargin:c=Mw,minVersion:u=Aw,boostLevel:l,title:d,marginSize:f,imageSettings:p}=n,h=Ew(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:m,cells:g,numCells:v,calculatedImageSettings:y}=Hw({value:r,level:a,minVersion:u,boostLevel:l,includeMargin:c,marginSize:f,imageSettings:p,size:o});let b=g,O=null;null!=p&&null!=y&&(null!=y.excavation&&(b=Fw(g,y.excavation)),O=w.createElement("image",{href:p.src,height:y.h,width:y.w,x:y.x+m,y:y.y+m,preserveAspectRatio:"none",opacity:y.opacity,crossOrigin:y.crossOrigin}));const x=Lw(b,m);return w.createElement("svg",Sw({height:o,width:o,viewBox:`0 0 ${v} ${v}`,ref:t,role:"img"},h),!!d&&w.createElement("title",null,d),w.createElement("path",{fill:i,d:`M0,0 h${v}v${v}H0z`,shapeRendering:"crispEdges"}),w.createElement("path",{fill:s,d:x,shapeRendering:"crispEdges"}),O)}));Yw.displayName="QRCodeSVG";var Uw,zw,Vw,qw,Gw,$w,Kw,Qw,Xw,Jw,Zw,eO,tO,nO,rO,oO,aO,iO,sO,cO,uO,lO,dO=b().oneOfType([b().string,b().number]),fO=b().shape({__key:dO}),pO=(b().arrayOf(fO),b().shape({id:b().string.isRequired,label:b().string,sorting:b().shape({sortable:b().bool,sortRank:b().number,order:b().oneOf(["asc","desc"])}),resizable:b().bool,width:b().number,HeaderRenderer:b().elementType,CellRenderer:b().elementType,rightAligned:b().bool})),hO={SINGLE:"single",MULTI:"multi",NONE:"none"},mO=(b().oneOf(Object.keys(hO).map((function(e){return hO[e]}))),{INLINE:"inline",NONE:"none"}),gO=function(e){var t=e.theme;return Rn()(t,"colors.border")},vO=l.hs.space(-1.5),yO=c.Ay.div.withConfig({displayName:"StyledTableFooter"})(Uw||(Uw=i()(["\n grid-row-start: pagination-start;\n display: flex;\n flex-wrap: wrap;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),l.hs.space(-.5),l.hs.space(-1),gO,Z,l.hs.space(-1)),bO=(0,c.Ay)(re).withConfig({displayName:"StyledReloadButton"})(zw||(zw=i()(["\n height: 25px;\n width: 25px;\n"]))),wO=c.Ay.td.withConfig({displayName:"StyledTableCell"})(Vw||(Vw=i()(["\n && {\n padding: ",";\n background-color: ",";\n align-content: center;\n box-sizing: content-box;\n\n &,\n input {\n text-align: ",";\n }\n\n "," {\n color: ",";\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),vO,l.t7.color("paper"),(function(e){return e.alignment}),k.i,l.t7.color("text"),l.hs.space(-2)),OO=(c.Ay.div.withConfig({displayName:"StyledDnD"})(qw||(qw=i()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),vO,(function(e){return e.isDragged?.2:1})),c.Ay.span.withConfig({displayName:"StyledResizeHandle"})(Gw||(Gw=i()(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){return e.theme.colors.backgroundItemSelected}))),xO=(c.Ay.th.withConfig({displayName:"StyledTableHeaderCell"})($w||($w=i()(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n overflow: hidden;\n ",";\n ","\n ","\n ","\n }\n"])),l.t7.color("paper"),(function(e){return e.alignment}),gO,(0,l.Ed)({fontWeight:l.t7.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(OO," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(OO," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),(0,c.AH)(Kw||(Kw=i()(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.lastOpened {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):not(.lastOpened):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),wO,(function(e){return e.theme.colors.backgroundItemSelected}),wO,(function(e){return e.theme.colors.backgroundItemLastOpened}),wO,(function(e){return e.theme.colors.backgroundItemHover}))),kO=c.Ay.span.withConfig({displayName:"StyledSortingSpan"})(Qw||(Qw=i()(["\n height: 100%;\n margin-right: 2px;\n"]))),SO=c.Ay.span.withConfig({displayName:"StyledSortingRank"})(Xw||(Xw=i()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),l.t7.fontWeight("regular")),EO=(c.Ay.td.withConfig({displayName:"StyledFullRowProgress"})(Jw||(Jw=i()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),vO),c.Ay.td.withConfig({displayName:"StyledFullRow"})(Zw||(Zw=i()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),vO,(0,l.Ed)()),c.Ay.thead.withConfig({displayName:"StyledTableHead"})(eO||(eO=i()(["\n ","\n"])),xO),c.Ay.tr.withConfig({displayName:"StyledTableRow"})(tO||(tO=i()(["\n ","\n\n && > td {\n ",";\n }\n"])),xO,(function(e){var t=e.even,n=e.theme;return t&&"background-color: ".concat(n.colors.backgroundTableEvenRow)})),c.Ay.tbody.withConfig({displayName:"StyledTableBody"})(nO||(nO=i()(["\n ","\n"])),xO),c.Ay.table.withConfig({displayName:"StyledTable"})(rO||(rO=i()(["\n ","\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n"])),(function(e){return e.overflowAuto?"overflow: auto;":null}),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===mO.INLINE&&(0,c.AH)(oO||(oO=i()(["\n position: absolute;\n inset: 0;\n "])))})),c.Ay.div.withConfig({displayName:"StretchingTableContainer"})(aO||(aO=i()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))));c.Ay.div.withConfig({displayName:"StyledTableWrapper"})(iO||(iO=i()(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n /* reset external styles in old client */\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),l.t7.color("paper")),c.Ay.div.withConfig({displayName:"StyledDraggable"})(sO||(sO=i()(["\n width: 100%;\n height: 100%;\n display: flex;\n box-sizing: border-box;\n border-right: 3px solid transparent;\n border-left: 3px solid transparent;\n border-right-color: ",";\n border-left-color: ",";\n"])),(function(e){var t=e.isDraggedOver,n=e.dragPosition,r=e.theme;return t&&n===wb.Right?r.colors.text:"transparent"}),(function(e){var t=e.isDraggedOver,n=e.dragPosition,r=e.theme;return t&&n===wb.Left?r.colors.text:"transparent"})),c.Ay.span.withConfig({displayName:"StyledHeaderContentWrapper"})(cO||(cO=i()(["\n display: flex;\n"]))),c.Ay.div.withConfig({displayName:"StyledHeaderContent"})(uO||(uO=i()(["\n width: 100%;\n"]))),b().oneOf(Object.keys(mO).map((function(e){return mO[e]}))),(0,c.Ay)(kt.oY).withConfig({displayName:"StyledNumbering"})(lO||(lO=i()(["\n text-align: right;\n width: 100%;\n"])));(0,ce.injectIntl)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=e.tableEl,s=Boolean(o),c="function"==typeof r;return s||c?(0,S.jsx)(yO,{children:s&&(0,S.jsx)(vw,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:i,children:c&&(0,S.jsx)(bO,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));(0,ce.injectIntl)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,s=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,S.jsx)(SO,{children:o.sorting.sortRank}),c="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,S.jsxs)(kO,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,S.jsx)(k.A,{icon:c}),s]}):null}));var PO=x().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx,o=e.style;return(0,S.jsx)(wO,{"data-cy":"tbl-cell-".concat(t.id),alignment:t.alignment,style:o,children:t.CellRenderer?(0,S.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,S.jsx)(kt.Ay.Span,{children:n[t.id]})})}));PO.propTypes={rowData:fO.isRequired,column:pO.isRequired,rowIdx:b().number,style:b().object};let DO;DO="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let _O=null,jO=null;const CO=DO.clearTimeout,TO=DO.setTimeout,MO=DO.cancelAnimationFrame||DO.mozCancelAnimationFrame||DO.webkitCancelAnimationFrame,AO=DO.requestAnimationFrame||DO.mozRequestAnimationFrame||DO.webkitRequestAnimationFrame;null==MO||null==AO?(_O=CO,jO=function(e){return TO(e,20)}):(_O=function([e,t]){MO(e),CO(t)},jO=function(e){const t=AO((function(){CO(n),e()})),n=TO((function(){MO(t),e()}),20);return[t,n]});w.Component;n(58168);Number.isNaN;n(98587),"object"==typeof performance&&performance.now;S.Fragment;c.Ay.div.withConfig({displayName:"StyledIconWrapper"})(IO||(IO=i()(["\n margin-left: ",";\n margin-right: -",";\n"])),l.hs.space(-1.7),l.hs.space(-2.1)),(0,c.Ay)(K).withConfig({displayName:"StyledIconButtonWrapper"})(RO||(RO=i()(["\n padding-left: ",";\n padding-right: ",";\n"])),l.hs.space(-.5),l.hs.space(-.5));var IO,RO,NO,LO,FO,HO,BO,WO,YO=c.Ay.div.withConfig({displayName:"StyledFloatingUiWrapper"})(NO||(NO=i()(["\n position: absolute;\n"]))),UO=c.Ay.div.withConfig({displayName:"StyledFloatingUi"})(LO||(LO=i()(["\n max-height: ","; /* add 15px for small padding */\n min-height: calc(2 * "," + ","); /* min-height of 1 entry */\n width: max-content;\n overflow: hidden auto;\n background: ",";\n box-shadow: 0 0 5px rgba(0 0 0 / 30%);\n border: 1px solid ",";\n border-radius: ",";\n z-index: 9999999; /* higher than StyledModalHolder */\n"])),(function(e){var t=e.rectBottom;return"calc(100dvh - ".concat(t+15,"px)")}),l.hs.space(-1.4),l.hs.font(0),l.t7.color("paper"),l.t7.color("secondaryLight"),l.t7.radii("menu")),zO=c.Ay.div.withConfig({displayName:"StyledMenuItem"})(FO||(FO=i()(["\n min-width: 200px;\n max-width: 300px;\n"]))),VO=c.Ay.div.withConfig({displayName:"StyledItemLabel"})(HO||(HO=i()(["\n cursor: ",";\n ","\n ","\n /* increased padding on touchdevices */\n padding: ","\n calc("," + ",");\n font-weight: ",";\n box-shadow: none;\n\n &:disabled,\n &[disabled] {\n color: ",";\n cursor: text;\n }\n"])),(function(e){return e.hasOnClick?"pointer":"default"}),(0,l.Ed)(),(function(e){return e.hasOnClick?(0,l.x5)(e):""}),as.isTouchDevice?(0,c.AH)(BO||(BO=i()(["\n ","\n ","\n ","\n "])),l.hs.space(-1.4),l.hs.space(-.5),l.hs.space(-1.4)):(0,c.AH)(WO||(WO=i()(["\n ","\n ","\n ","\n "])),l.hs.space(-2),l.hs.space(-.5),l.hs.space(-2)),l.hs.space(-.5),(function(e){return 10*(e.level||0)+"px"}),(function(e){return e.isGroup?l.t7.fontWeight("bold"):l.t7.fontWeight("regular")}),l.t7.color("textDisabled"));function qO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qO(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $O=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,a=e.onClose,i=e.children;return o?(0,S.jsx)(YO,{children:i&&o&&(0,S.jsx)(Tu,{children:(0,S.jsx)(UO,GO(GO({ref:r.setFloating,style:t},n()),{},{className:tc,children:x().Children.map(i,(function(e){return e&&x().cloneElement(e,{onClose:a})}))}))})}):null};var KO=["children","onClick","onClose","disabled","closeOnClick","title","level"];function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QO(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JO=function(e){var t=e.children,n=e.onClick,r=e.onClose,o=e.disabled,a=e.closeOnClick,i=void 0===a||a,s=e.title,c=e.level,u=v()(e,KO),l=x().Children.toArray(t).filter(Boolean),d=l.length>1,f=Boolean(n),p=l.map((function(e,t){var n,a=c?c++:1;return"MenuItem"===(null===(n=e.type)||void 0===n?void 0:n.displayName)?x().cloneElement(e,XO(XO({},e.props),{},{onClose:r,closeOnClick:i,level:a,key:"menu-item-".concat(t,"-").concat(a)})):(0,S.jsx)(VO,{hasOnClick:f,isGroup:d,title:s,disabled:o,look:"raised",level:c,"data-cy":u["data-cy"],children:e},"menu-item-label-".concat(t,"-").concat(a))}));return(0,S.jsx)(zO,{onClick:function(e){f&&!o&&(n(),i&&r&&r()),e.stopPropagation()},level:c,children:p})};JO.displayName="MenuItem";var ZO,ex,tx,nx,rx,ox,ax,ix,sx,cx,ux=c.Ay.div.withConfig({displayName:"TopPositioning"})(ZO||(ZO=i()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template:\n 'sidepanel' min-content\n 'content' minmax(auto, 1fr)\n / minmax(100%, 700px);\n"]))),lx=(c.Ay.div.withConfig({displayName:"LeftPositioning"})(ex||(ex=i()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),c.Ay.div.withConfig({displayName:"StyledSidepanel"})(tx||(tx=i()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),ux,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),c.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(nx||(nx=i()(["\n grid-area: content;\n display: flex;\n"]))),c.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(rx||(rx=i()(["\n display: flex; /* enables StyledSidepanelCollapsed to take full height */\n flex-direction: column;\n height: 100%;\n overflow: hidden auto;\n background-color: ",";\n"])),l.w4.color("paper")),c.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(ox||(ox=i()([""]))),c.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(ax||(ax=i()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),c.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(ix||(ix=i()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),l.w4.color("paper"),l.hs.space(-.5),l.hs.space(-2.5)));(0,c.Ay)(re).withConfig({displayName:"StyledToggleCollapseButton"})(sx||(sx=i()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),l.hs.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),lx,l.w4.color("secondaryLight")),c.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(cx||(cx=i()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n\n "," {\n z-index: 3; /* higher than rest to lay over search filter list */\n }\n"])),l.w4.color("paper"),l.w4.color("backgroundBody"),l.hs.space(-.53),$O);var dx,fx,px,hx,mx,gx,vx,yx=(0,c.Ay)(K).withConfig({displayName:"StyledAddRemoveButton"})(dx||(dx=i()(["\n && {\n background-color: transparent;\n border: 0;\n height: auto;\n border-radius: 0;\n padding: 0 "," 0 0;\n\n &:hover * {\n color: "," !important;\n }\n }\n"])),l.hs.space(-2.5),(function(e){return e.active?l.t7.color("paper"):l.t7.color("hoverInteractiveIcon")})),bx=c.Ay.div.withConfig({displayName:"StyledMenuWrapper"})(fx||(fx=i()(["\n &&& {\n button {\n background-color: transparent;\n padding: 0 "," 0 0;\n }\n\n &:hover button {\n color: ",";\n cursor: pointer;\n }\n }\n"])),l.hs.space(-1),(function(e){return e.active?l.t7.color("paper"):l.t7.color("hoverInteractiveIcon")})),wx=(c.Ay.div.withConfig({displayName:"StyleButtonWrapper"})(px||(px=i()(["\n display: flex;\n "," button,\n "," * {\n color: transparent;\n }\n"])),bx,yx),(0,c.Ay)(kt.oY).withConfig({displayName:"StyledButtonLabel"})(hx||(hx=i()(["\n flex-grow: 1;\n"]))));c.Ay.div.withConfig({displayName:"StyledSidepanelHorizontalButton"})(mx||(mx=i()(["\n border-radius: ",";\n display: flex;\n padding: 0.3rem 0 0.3rem 1rem;\n margin-bottom: 0.2rem;\n background-color: ",";\n justify-content: flex-end;\n\n && {\n *:not(",") {\n color: ",";\n }\n }\n\n /* allow hover styles only on non-touch devices */\n ","\n\n /* apply font color only on touch devices to always show them */\n ","\n"])),l.t7.radii("button"),(function(e){return e.active&&l.t7.color("secondary")}),VO,(function(e){return e.active&&l.t7.color("paper")}),!as.isTouchDevice&&(0,c.AH)(gx||(gx=i()(["\n &:hover {\n ",",\n "," button,\n "," * {\n color: ",";\n }\n background-color: ",";\n cursor: pointer;\n }\n "])),wx,bx,yx,l.t7.color("paper"),(function(e){return!e.active&&l.t7.color("secondaryLight")})),as.isTouchDevice&&(0,c.AH)(vx||(vx=i()(["\n ",",\n "," button,\n "," * {\n color: ",";\n }\n "])),wx,bx,yx,l.t7.color("secondary")));var Ox;c.Ay.div.withConfig({displayName:"ActionBar"})(Ox||(Ox=i()(["\n display: flex;\n background-color: ",";\n margin-bottom: 3px;\n padding: 8px;\n grid-row-start: action-start;\n flex-wrap: wrap;\n"])),l.w4.color("paper"));var xx;c.Ay.div.withConfig({displayName:"ActionBarContainer"})(xx||(xx=i()(["\n display: grid;\n grid-template-rows: [action-start] auto [table-start] minmax(0, 1fr);\n height: 100%;\n width: 100%;\n"])));var kx;c.Ay.div.withConfig({displayName:"ActionBarMainContent"})(kx||(kx=i()(["\n grid-row-start: table-start;\n\n "," {\n overflow-x: hidden;\n }\n"])),EO)},17656:(e,t,n)=>{"use strict";n.d(t,{KY:()=>i,Db:()=>a,h7:()=>de,Ed:()=>fe,sb:()=>pe,KV:()=>he,xX:()=>Pe,GV:()=>Ae,x5:()=>Ne,hs:()=>ze,w4:()=>We,t7:()=>qe,LE:()=>Ve});var r=n(58156),o=n.n(r),a={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")}},i={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"}},s=n(72189),c=n.n(s),u=n(87716);function l(){return l=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},l.apply(this,arguments)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n){return p=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&&d(o,n.prototype),o},p.apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return h=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 p(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)},h(e)}var m=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,d(t,n),r}(h(Error));function g(e,t){return e.substr(-t.length)===t}var v=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function y(e){return"string"!=typeof e?e:e.match(v)?parseFloat(e):e}var b=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!g(t,"px"))throw new m(69,e,t);r=y(t)}if("string"==typeof n){if(!g(n,"px"))throw new m(70,e,n);o=y(n)}if("string"==typeof r)throw new m(71,t,e);if("string"==typeof o)throw new m(72,n,e);return""+r/o+e}};b("em");b("rem");function w(e){return Math.round(255*e)}function O(e,t,n){return w(e)+","+w(t)+","+w(n)}function x(e,t,n,r){if(void 0===r&&(r=O),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,c=0,u=0;o>=0&&o<1?(s=a,c=i):o>=1&&o<2?(s=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var l=n-a/2;return r(s+l,c+l,u+l)}var k={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 S=/^#[a-fA-F0-9]{6}$/,E=/^#[a-fA-F0-9]{8}$/,P=/^#[a-fA-F0-9]{3}$/,D=/^#[a-fA-F0-9]{4}$/,_=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,j=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,C=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,T=/^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 M(e){if("string"!=typeof e)throw new m(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return k[t]?"#"+k[t]:e}(e);if(t.match(S))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(E)){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(P))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(D)){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=_.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=j.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=C.exec(t);if(i){var s="rgb("+x(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=_.exec(s);if(!c)throw new m(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=T.exec(t.substring(0,50));if(u){var l="rgb("+x(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=_.exec(l);if(!d)throw new m(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 m(5)}function A(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=a-i,u=s>.5?c/(2-a-i):c/(a+i);switch(a){case n:t=(r-o)/c+(r<o?6:0);break;case r:t=(o-n)/c+2;break;default:t=(n-r)/c+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:s,alpha:e.alpha}:{hue:t,saturation:u,lightness:s}}(M(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 R(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function N(e){return R(Math.round(255*e))}function L(e,t,n){return I("#"+N(e)+N(t)+N(n))}function F(e,t,n){return x(e,t,n,L)}function H(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return F(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return F(e.hue,e.saturation,e.lightness);throw new m(1)}function B(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?F(e,t,n):"rgba("+x(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?F(e.hue,e.saturation,e.lightness):"rgba("+x(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new m(2)}function W(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return I("#"+R(e)+R(t)+R(n));if("object"==typeof e&&void 0===t&&void 0===n)return I("#"+R(e.red)+R(e.green)+R(e.blue));throw new m(6)}function Y(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=M(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?W(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?W(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new m(7)}var U=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},z=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},V=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},q=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function G(e){if("object"!=typeof e)throw new m(8);if(z(e))return Y(e);if(U(e))return W(e);if(q(e))return B(e);if(V(e))return H(e);throw new m(8)}function $(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):$(e,t,r)}}function K(e){return $(e,e.length,[])}K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{hue:n.hue+parseFloat(e)}))}));function Q(e,t,n){return Math.max(e,Math.min(t,n))}K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{lightness:Q(0,1,n.lightness-parseFloat(e))}))}));K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{saturation:Q(0,1,n.saturation-parseFloat(e))}))}));function X(e){if("transparent"===e)return 0;var t=M(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],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function J(e,t){var n=X(e),r=X(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var Z=K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{lightness:Q(0,1,n.lightness+parseFloat(e))}))})),ee=Z;var te=K((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=M(t),o=l({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),a=M(n),i=l({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),s=o.alpha-i.alpha,c=2*parseFloat(e)-1,u=((c*s==-1?c:c+s)/(1+c*s)+1)/2,d=1-u;return Y({red:Math.floor(o.red*u+i.red*d),green:Math.floor(o.green*u+i.green*d),blue:Math.floor(o.blue*u+i.blue*d),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))})})),ne=te;K((function(e,t){if("transparent"===t)return t;var n=M(t);return Y(l({},n,{alpha:Q(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var re="#000",oe="#fff";K((function(e,t){if("transparent"===t)return t;var n=A(t);return G(l({},n,{saturation:Q(0,1,n.saturation+parseFloat(e))}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{hue:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{lightness:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:G(l({},A(t),{saturation:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(0, 0, 0)",t)}));var ae=K((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(255, 255, 255)",t)})),ie=ae;var se=K((function(e,t){if("transparent"===t)return t;var n=M(t);return Y(l({},n,{alpha:Q(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),ce=se;var ue;var le,de=function(e){var t=o()(e.theme,"colors.signal.info",Pe.fallbackColors.INFO);return(0,u.AH)(ue||(ue=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,ce(.4,t))};const fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.AH)(le||(le=c()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||We.color("text"),e.fontFamily||We.fontFamily("regular"),e.fontSize||ze.font(0),e.fontStyle||"normal",e.fontWeight||We.fontWeight("regular"),e.lineHeight||We.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"},he=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"},me=n(5556),ge=n.n(me),ve={NONE:"none",SPIN:"spin"},ye={BASE:"base",PRIMARY:"primary",SECONDARY:"secondary"},be={BOX:"layoutBox",CONTAINER:"layoutContainer",NONE:"none"},we={BALL:"ball",FLAT:"flat",PLAIN:"plain",RAISED:"raised"},Oe={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},xe=ge().oneOf(Object.values(ve)),ke=ge().oneOf(Object.values(ye)),Se=ge().oneOf(Object.values(we)),Ee=ge().oneOf(Object.values(Oe));const Pe={animation:ve,animationPropTypes:xe,condition:{BASE:"base",DANGER:"danger",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",INFO:"info"},ink:ye,inkPropTypes:ke,layout:be,layoutPropTypes:ge().oneOf(Object.values(be)),look:we,lookPropTypes:Se,fallbackColors:{SHADE:"#000000",INFO:"#0000ff",TEXT:"#010101",PAPER:"#fefefe"},format:{HTML:"html",SVG:"svg"},oneOfPropTypeAndCompletelyMapped:function(e,t){return ge().oneOf(Object.values(e))},position:Oe,positionPropTypes:Ee};n(71086);var De=n(85735),_e=n.n(De),je=n(4883),Ce=n.n(je),Te=function(e){var t="";return Ce().Children.map(e,(function(e,n){"string"==typeof e||"number"==typeof e?t="".concat(t).concat(e):"object"===_e()(e)&&e.props.children?t="".concat(t).concat(Te(e.props.children)):"object"===_e()(e)&&e.props.dangerouslySetInnerHTML&&(t="".concat(t," ").concat(Me(e.props.dangerouslySetInnerHTML.__html)))})),t},Me=function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""};const Ae=Te;var Ie,Re=function(e,t){return function(e,t,n,r){void 0===t&&(t=re),void 0===n&&(n=oe),void 0===r&&(r=!0);var o=X(e)>.179,a=o?t:n;return!r||J(e,a)>=4.5?a:o?re:oe}(e,We.color("text")({theme:t}),We.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?We.color("primary")({theme:n}):r?We.color("secondary")({theme:n}):We.color("paper")({theme:n})}(t,n,r),a=function(e,t,n,r){return"primary"===e&&"raised"!==t?We.color("primary")({theme:n}):Re(r,n)}(t,n,r,o),i=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(We.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?We.color("primaryLight")({theme:n}):We.color("secondaryLight")({theme:n}):We.color("backgroundItemHover")({theme:n})}(t,n,r),l=function(e,t,n){return"raised"===e?We.color("paper")({theme:t}):Re(n,t)}(n,r,o);return(0,u.AH)(Ie||(Ie=c()(["\n && {\n color: ",";\n }\n background: ",";\n box-shadow: ",";\n outline: none;\n border: none;\n\n &:active,\n &[aria-pressed='true'] {\n background: ",";\n }\n\n &:disabled,\n &[disabled] {\n background: ",";\n opacity: 0.5;\n cursor: text;\n }\n\n &:focus:not(:disabled),\n &:focus:not([disabled]),\n &:hover:not(:disabled),\n &:hover:not([disabled]) {\n background: ",";\n color: ",";\n }\n "])),a,o,i,ee(.1,s),"dark"!==r.name?ie(.41,o):"transparent",s,l)};var Le=n(36944),Fe=n.n(Le),He=n(94200),Be=function(e){return 0===Object.keys(e).length?He.A:e};const We={color:function(e){return function(t){var n=t.theme;return o()(Be(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(Be(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(Be(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(Be(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(Be(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(Be(n),"specificProperties.".concat(e))}}};var Ye=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(Fe()(Ue(t,e,n),3)).concat(r)},Ue=function(e,t,n){return Math.pow(n,t)*e};const ze={declareScale:Ye,exponentiate:Ue,font:function(e,t){return function(n){return Ye(e,We.fontSize("base")(n),We.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ye(e,We.space("base")(n),We.space("factor")(n),t)}}};n(22056);var Ve=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 qe=We},43806:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(73357),o=n.n(r),a=n(73082),i=n(1882),s=n.n(i);const c=function(){return window.app&&s()(window.app.getRunEnv)?window.app.getRunEnv():"PRODUCTION"};var u="meta",l="tocco.cache",d=function(e,t){return"".concat(l,".").concat(e,".").concat(t)},f={},p=function(e,t){f[e]=t},h=function(e,t,n){return g(e,t,n,p)},m=function(e,t,n){return g(e,t,n,(r=localStorage,function(e,t){return r.setItem(e,JSON.stringify(t))}));var r},g=function(e,t,n,r){return"PRODUCTION"!==c()?null:r(d(e,t),n)},v=function(e,t){return f[d(e,t)]},y=function(e,t){return b(e,t,localStorage)},b=function(e,t,n){var r=n.getItem(d(e,t));if(r)return JSON.parse(r)},w=function(e,t,n){return n.removeItem(d(e,t))},O=function(){a.A.log("cache - object cache invalidated"),Object.keys(f).forEach((function(e){return o()(f,e)}))},x=function(){a.A.log("cache - long term cache invalidated"),k(localStorage)},k=function(e){Object.keys(e).filter((function(e){return e.startsWith(l)&&!function(e){return e.startsWith("".concat(l,".").concat(u))}(e)})).forEach((function(t){return e.removeItem(t)}))};const S={addObjectCache:h,addLongTerm:m,getObjectCache:v,getLongTerm:y,removeObjectCache:function(e,t){return o()(f,d(e,t))},removeLongTerm:function(e,t){return w(e,t,localStorage)},clearObjectCache:O,clearLongTerm:x,getLongTermMetaInfo:function(){return{revision:y(u,"revision")}},setLongTermMetaInfo:function(e){var t=e.revision;m(u,"revision",t||"")},getObjectCacheMetaInfo:function(){return{locale:v(u,"locale"),businessUnitId:v(u,"businessUnitId"),username:v(u,"username")}},setObjectCacheMetaInfo:function(e){var t=e.locale,n=e.businessUnitId,r=e.username;h(u,"locale",t||""),h(u,"businessUnitId",n||""),h(u,"username",r||"")}}},73082:(e,t,n)=>{"use strict";n.d(t,{A:()=>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)}}},37576:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(33046);const o={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:"eine halbe Minute",withPreposition:"einer 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"}}};var a=n(7277);const i={date:(0,a.k)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},s={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};var c=n(33443);const u={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"]},l={narrow:u.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:u.wide},d={ordinalNumber:e=>Number(e)+".",era:(0,c.o)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,c.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,c.o)({values:u,formattingValues:l,defaultWidth:"wide"}),day:(0,c.o)({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:(0,c.o)({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 f=n(57883),p=n(20337);const h={code:"de",formatDistance:(e,t,n)=>{let r;const a=n?.addSuffix?o[e].withPreposition:o[e].standalone;return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:i,formatRelative:(e,t,n,r)=>s[e],localize:d,match:{ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var m=n(9946);const g={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"}},v=["MMM","MMMM"],y={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&v.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t},ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let o;return o=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+o},era:(0,c.o)({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:(0,c.o)({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:e=>e-1}),month:(0,c.o)({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:(0,c.o)({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:(0,c.o)({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"})},b={ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},w={date:(0,a.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={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"},x={code:"fr-CH",formatDistance:(e,t,n)=>{let r;const o=g[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},formatLong:w,formatRelative:(e,t,n,r)=>O[e],localize:y,match:b,options:{weekStartsOn:1,firstWeekContainsDate:4}},k={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"}},S={date:(0,a.k)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.k)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};var E=n(90096);const P=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function D(e){return"'"+P[e]+" alle' p"}const _={lastWeek:(e,t,n)=>{const r=e.getDay();return(0,E.R)(e,t,n)?D(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+P[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const r=e.getDay();return(0,E.R)(e,t,n)?D(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+P[e]+" prossimo alle' p"}(r)},other:"P"},j={code:"it",formatDistance:(e,t,n)=>{let r;const o=k[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:S,formatRelative:(e,t,n,r)=>{const o=_[e];return"function"==typeof o?o(t,n,r):o},localize:{ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:(0,c.o)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,c.o)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,c.o)({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:(0,c.o)({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:(0,c.o)({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"})},match:{ordinalNumber:(0,p.K)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,f.A)({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:(0,f.A)({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:e=>e+1}),month:(0,f.A)({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:(0,f.A)({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:(0,f.A)({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"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var C=n(98166),T=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=(0,C.O5)(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}},M=function(e){switch(e){case"fr":return x;case"en":return m.c;case"it":return j;default:return h}},A=function(e){return M(e).formatLong.date({width:"short"})},I=function(e){return A(e).replace(/[/.]/g,"")};const R={millisecondsToDuration:T,formatDuration:function(e){var t=T(e),n=t.hours,r=t.minutes,o=t.seconds,a="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),i="".concat(a,":").concat(o.toFixed(3).padStart(6,"0"));return o?i:a},getDateFnsLocale:M,getLocalizedDateFormat:A,getLocalizedDateTimeFormat:function(e){return"".concat(A(e)," HH:mm")},getLocalizedDateFormatWithoutPunctuation:I,getLocalizedDateTimeFormatWithoutPunctuation:function(e){return"".concat(I(e)," HHmm")},useTwoDigitYear:function(e){return e.replace(/y+/,"yy")},setCurrentTime:function(e){var t=new Date,n=new Date(e);return n=(0,r.avh)(n,(0,r.qZx)(t)),n=(0,r.glI)(n,(0,r.Osm)(t)),n=(0,r.gtt)(n,0),n=(0,r.$7z)(n,0)},selectUnit:function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}}}},81570:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,i:()=>o});var r="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,o=function(){return"matchMedia"in window&&window.matchMedia("(pointer: coarse)").matches}},31558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const o={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 r(e,"download",!0)},addParameterToURL:r}},23228:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(26396),o=n.n(r),a=n(73082),i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},s=Object.values(i),c={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:i.admin,widgetConfigKey:void 0},u=function(e){c.backendUrl=e},l=function(e){c.businessUnit=e},d=function(e){c.ruleProvider=e},f=function(){return c.embedType},p=function(e){s.includes(e)?c.embedType=e:a.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(s.join(", ")))},h=function(e){c.widgetConfigKey=e},m=n(74848);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var v=function(e){var t=e.mapping;return t[f()||i.admin]||t[i.admin]};const y={EmbedType:i,isInAdminEmbedded:function(){var e=f();return[i.admin,i.legacyAdmin].includes(e)},isInWidgetEmbedded:function(){var e=f();return[i.widget].includes(e)},embedStrategyFactory:function(e){var t=e.mapping;e.propTypes;return function(e){var n=v({mapping:t});return n||a.A.logError("Unable to render embed component: No embed component defined."),(0,m.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}},embedStrategy:v,getBackendUrl:function(){return c.backendUrl||""},setBackendUrl:u,getBusinessUnit:function(){return c.businessUnit},getRuleProvider:function(){return c.ruleProvider},setBusinessUnit:l,setRuleProvider:d,getEmbedType:f,setEmbedType:p,getWidgetConfigKey:function(){return c.widgetConfigKey},setWidgetConfigKey:h,asInputProps:function(){return{backendUrl:c.backendUrl,businessUnit:c.businessUnit,appContext:{embedType:c.embedType,widgetConfigKey:c.widgetConfigKey}}},NULL_BUSINESS_UNIT:"__n-u-l-l__",ALLOWED_EMBED_TYPES:s,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&u(e.backendUrl),e.businessUnit&&l(e.businessUnit),e.ruleProvider&&d(e.ruleProvider),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&p(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&h(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},88691:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(26396),o=n.n(r),a=n(79092),i=n.n(a),s=n(92207),c=n.n(s),u=n(60991),l=n(43806),d=n(99208);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=["de","fr","en","it"],m=function(){var e=i()(c().mark((function e(t,n,r){var o,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r){e.next=5;break}return e.next=4,v();case 4:o=e.sent;case 5:return e.next=7,g(n,o);case 7:return a=e.sent,e.abrupt("return",t.dispatch(a));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),g=function(){var e=i()(c().mark((function e(t,n){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b(n,t);case 2:return r=e.sent,e.abrupt("return",(0,u.D6)({locale:n.replace("_","-"),messages:r}));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=i()(c().mark((function e(){var t,n,r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.A.getObjectCacheMetaInfo(),!(n=t.locale)){e.next=3;break}return e.abrupt("return",n);case 3:return e.next=5,y();case 5:return r=e.sent,o=r.locale,e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=i()(c().mark((function e(){var t,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.A.executeRequest("username").then(d.A.extractBody);case 2:return t=e.sent,n=t.locale,"anonymous"===t.username&&(r=void 0,o=void 0,r=window.navigator.userLanguage||window.navigator.language,o=r.indexOf("-")>0?r.split("-")[0]:r,n=h.includes(o)?o:"en"),e.abrupt("return",p(p({},t),{},{locale:n}));case 6:case"end":return e.stop()}var r,o}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=i()(c().mark((function e(t,n){var r,a,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},a=[],n.forEach((function(e){var n=l.A.getLongTerm("textResource","".concat(t,".").concat(e));n?r=p(p({},r),n):a.push(e)})),!(a.length>0)){e.next=8;break}return e.next=6,w(t,a);case 6:i=e.sent,a.forEach((function(e){var n=Object.keys(i).filter((function(t){return t.match(new RegExp("^client\\."+e+".*","g"))})).reduce((function(e,t){return p(p({},e),{},o()({},t,i[t]))}),{});l.A.addLongTerm("textResource","".concat(t,".").concat(e),n),r=p(p({},r),n)}));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),w=function(e,t){var n="".concat(t.join(",")),r=n?"&module=".concat(n):"",o="textresource?locale=".concat(e).concat(r);return d.A.executeRequest(o).then(d.A.extractBody)};const O={initIntl:m,getChangeLocaleAction:g,localeSelector:function(e){return e.intl.locale},loadUserWithLocale:y,getUserLocale:v}},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>i,Yd:()=>r,lW:()=>a});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},a=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},i=function(e){return null!=e}},23076:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(98166),o=n(85735),a=n.n(o),i=n(2404),s=n.n(i),c=n(69752),u=n.n(c),l=function(e){return"object"===a()(e)&&null!==e},d=function(e,t){return u()(e,(function(e,n,r){s()(n,t[r])||(e[r]=l(n)&&l(t[r])?d(n,t[r]):n)}))};const f={difference:d,getOrFirst:r.Yd,adjustedHTMLString:function(e){return e?e.replace(/&shy;/g,""):e},roundDecimalPlaces:r.O5,copyToClipboard:r.lW,isDefined:r.O9}},19383:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(93419),o="_tocco_originId";const a={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),s=(n(5556),n(4883)),c=n.n(s);function u(e,t){var n=(0,s.useState)(e),r=i()(n,2),o=r[0],a=r[1];return(0,s.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}var l=n(74848);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=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 c().forwardRef((function(r,a){var c=r.value,d=(0,s.useState)(c),p=i()(d,2),h=p[0],m=p[1],g=u(h,t),v=i()(g,2),y=v[0],b=v[1],w=(0,s.useRef)(c),O=r[n];return(0,s.useEffect)((function(){h!==c&&h===y&&(m(c),w.current=c,b(c))}),[c]),(0,s.useEffect)((function(){O&&w.current!==y&&(O(y),w.current=y)}),[y,O]),(0,l.jsx)(e,f(f(f({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))};var h=n(81570);const m={useAutofocus: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,s.useEffect)((function(){if(!t.disabled&&e.current&&!(0,h.i)()){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]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:u,Debouncer:p,useUserActive:function(e){var t=(0,s.useRef)(null),n=(0,s.useState)(null),r=i()(n,2),o=r[0],a=r[1],c=(0,s.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),u=(0,s.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,s.useEffect)((function(){return u(),window.addEventListener("mousemove",c,{once:!0}),window.addEventListener("touchstart",c,{once:!0}),function(){u()}}),[u,c]),[a,u,c]},usePrevious:function(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,s.useRef)(!1);(0,s.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,s.useState)(),t=i()(e,2),n=t[0],r=t[1],o=(0,s.useRef)(),a=(0,s.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),c=(0,s.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,s.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[c,n]}}},37954:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(26396),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=n(66245),c=n.n(s),u=n(44383),l=n.n(u),d=n(14644);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e,t){var n=p(p({},e.allReducers),t),r=(0,d.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n},m=n(63560),g=n.n(m);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const w={singleTransferReducer:function(e,t){return function(n,r){var a=r.payload[e],i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return g()(i,t?t+"."+e:e,a),i}},mappingTransferReducer:function(e,t){return function(n,r){var a=r.payload[e];return i(i({},n),{},o()({},t,a))}},injectReducers:function(e,t){var n=c()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=p(p({},e.allReducers),l()(t,n));h(e,r)}},hotReloadReducers:h,toggleReducer:function(e){return function(t){return b(b({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),s=n(23228),c=n(19383);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(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",c.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t},p=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 h={prepareHeaders:f,prepareUrl:p,executeRequest:function(e){var t=function(e){return l(l(l({},d),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=p(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},8271:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=new AbortController,o=!1;window.addEventListener("beforeunload",(function(e){o?(e.preventDefault(),e.returnValue=""):r.abort()})),window.addEventListener("pagehide",(function(){r.signal.aborted||r.abort()}));var a=n(92207),i=n.n(a),s=n(43786),c=n(73082),u=function(e,t,n){return i().mark((function o(){var a,u,l,d=arguments;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:for(a=d.length,u=new Array(a),l=0;l<a;l++)u[l]=d[l];case 1:return o.prev=2,o.next=5,s.T1.apply(void 0,[e,t].concat(u));case 5:o.next=16;break;case 7:if(o.prev=7,o.t0=o.catch(2),!1!==r.signal.aborted){o.next=16;break}if(!n){o.next=15;break}return o.next=13,(0,s.yJ)(n("client.common.unexpectedError","client.common.unexpectedError",o.t0));case 13:o.next=16;break;case 15:c.A.logError("error",o.t0);case 16:o.next=1;break;case 18:case"end":return o.stop()}}),o,null,[[2,7]])}))};const l={autoRestartSaga:u,createGenerator:function(e){return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.Q7)(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(u(t,null,n)))},abortController:r,deactivatePreventFromLeaving:function(){o=!1},activatePreventFromLeaving:function(){o=!0}}},71508:e=>{function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},2063:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,'@charset "UTF-8";\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, .react-datepicker__navigation-icon::before {\n border-color: #ccc;\n border-style: solid;\n border-width: 3px 3px 0 0;\n content: "";\n display: block;\n height: 9px;\n position: absolute;\n top: 6px;\n width: 9px;\n}\n.react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n}\n\n.react-datepicker {\n font-family: "Helvetica Neue", helvetica, arial, sans-serif;\n font-size: 0.8rem;\n background-color: #fff;\n color: #000;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n line-height: initial;\n}\n\n.react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n}\n.react-datepicker--time-only .react-datepicker__time,\n.react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n\n.react-datepicker-popper {\n z-index: 1;\n line-height: 0;\n}\n.react-datepicker-popper .react-datepicker__triangle {\n stroke: #aeaeae;\n}\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n fill: #f0f0f0;\n color: #f0f0f0;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n fill: #fff;\n color: #fff;\n}\n\n.react-datepicker__header {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #aeaeae;\n border-top-left-radius: 0.3rem;\n padding: 8px 0;\n position: relative;\n}\n.react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n}\n.react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\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 display: inline-block;\n margin: 0 15px;\n}\n\n.react-datepicker__current-month,\n.react-datepicker-time__header,\n.react-datepicker-year-header {\n margin-top: 0;\n color: #000;\n font-weight: bold;\n font-size: 0.944rem;\n}\n\nh2.react-datepicker__current-month {\n padding: 0;\n margin: 0;\n}\n\n.react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n}\n.react-datepicker__navigation--previous {\n left: 2px;\n}\n.react-datepicker__navigation--next {\n right: 2px;\n}\n.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n}\n.react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.react-datepicker__navigation--years-previous {\n top: 4px;\n}\n.react-datepicker__navigation--years-upcoming {\n top: -4px;\n}\n.react-datepicker__navigation:hover *::before {\n border-color: rgb(165.75, 165.75, 165.75);\n}\n\n.react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n}\n.react-datepicker__navigation-icon--next {\n left: -2px;\n}\n.react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n}\n.react-datepicker__navigation-icon--previous {\n right: -2px;\n}\n.react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n}\n\n.react-datepicker__month-container {\n float: left;\n}\n\n.react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n}\n.react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__month {\n margin: 0.4rem;\n text-align: center;\n}\n.react-datepicker__month .react-datepicker__month-text,\n.react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n}\n\n.react-datepicker__input-time-container {\n clear: both;\n width: 100%;\n float: left;\n margin: 5px 0 10px 15px;\n text-align: left;\n}\n.react-datepicker__input-time-container .react-datepicker-time__caption {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container {\n display: inline-block;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n display: inline-block;\n margin-left: 10px;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n}\n.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n margin-left: 5px;\n display: inline-block;\n}\n\n.react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n}\n.react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -87px;\n top: 0;\n}\n.react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + 1.7rem / 2);\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: #f0f0f0;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: #216ba5;\n color: white;\n font-weight: bold;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: #216ba5;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: #ccc;\n}\n.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n}\n\n.react-datepicker__week-number {\n color: #ccc;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n}\n.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,\n.react-datepicker__week-number--keyboard-selected):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\n}\n.react-datepicker__week-number--selected {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__week-number--selected:hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__week-number--keyboard-selected {\n border-radius: 0.3rem;\n background-color: rgb(41.5, 134.5606060606, 207.5);\n color: #fff;\n}\n.react-datepicker__week-number--keyboard-selected:hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n\n.react-datepicker__day-names {\n white-space: nowrap;\n margin-bottom: -8px;\n}\n\n.react-datepicker__week {\n white-space: nowrap;\n}\n\n.react-datepicker__day-name,\n.react-datepicker__day,\n.react-datepicker__time-name {\n color: #000;\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n}\n\n.react-datepicker__day,\n.react-datepicker__month-text,\n.react-datepicker__quarter-text,\n.react-datepicker__year-text {\n cursor: pointer;\n}\n.react-datepicker__day:not([aria-disabled=true]):hover,\n.react-datepicker__month-text:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text:not([aria-disabled=true]):hover,\n.react-datepicker__year-text:not([aria-disabled=true]):hover {\n border-radius: 0.3rem;\n background-color: #f0f0f0;\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 font-weight: bold;\n}\n.react-datepicker__day--highlighted,\n.react-datepicker__month-text--highlighted,\n.react-datepicker__quarter-text--highlighted,\n.react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n}\n.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover {\n background-color: rgb(49.8551020408, 189.6448979592, 62.5632653061);\n}\n.react-datepicker__day--highlighted-custom-1,\n.react-datepicker__month-text--highlighted-custom-1,\n.react-datepicker__quarter-text--highlighted-custom-1,\n.react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n}\n.react-datepicker__day--highlighted-custom-2,\n.react-datepicker__month-text--highlighted-custom-2,\n.react-datepicker__quarter-text--highlighted-custom-2,\n.react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n}\n.react-datepicker__day--holidays,\n.react-datepicker__month-text--holidays,\n.react-datepicker__quarter-text--holidays,\n.react-datepicker__year-text--holidays {\n position: relative;\n border-radius: 0.3rem;\n background-color: #ff6803;\n color: #fff;\n}\n.react-datepicker__day--holidays .overlay,\n.react-datepicker__month-text--holidays .overlay,\n.react-datepicker__quarter-text--holidays .overlay,\n.react-datepicker__year-text--holidays .overlay {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n.react-datepicker__day--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover {\n background-color: rgb(207, 82.9642857143, 0);\n}\n.react-datepicker__day--holidays:hover .overlay,\n.react-datepicker__month-text--holidays:hover .overlay,\n.react-datepicker__quarter-text--holidays:hover .overlay,\n.react-datepicker__year-text--holidays:hover .overlay {\n visibility: visible;\n opacity: 1;\n}\n.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n.react-datepicker__month-text--selected,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--selected,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--selected,\n.react-datepicker__year-text--in-selecting-range,\n.react-datepicker__year-text--in-range {\n border-radius: 0.3rem;\n background-color: #216ba5;\n color: #fff;\n}\n.react-datepicker__day--selected:not([aria-disabled=true]):hover, .react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover, .react-datepicker__day--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--keyboard-selected,\n.react-datepicker__month-text--keyboard-selected,\n.react-datepicker__quarter-text--keyboard-selected,\n.react-datepicker__year-text--keyboard-selected {\n border-radius: 0.3rem;\n background-color: rgb(186.25, 217.0833333333, 241.25);\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,\n.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover {\n background-color: rgb(28.75, 93.2196969697, 143.75);\n}\n.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range),\n.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n.react-datepicker__month-text--in-range,\n.react-datepicker__quarter-text--in-range,\n.react-datepicker__year-text--in-range) {\n background-color: rgba(33, 107, 165, 0.5);\n}\n.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range),\n.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n.react-datepicker__month-text--in-selecting-range,\n.react-datepicker__quarter-text--in-selecting-range,\n.react-datepicker__year-text--in-selecting-range) {\n background-color: #f0f0f0;\n color: #000;\n}\n.react-datepicker__day--disabled,\n.react-datepicker__month-text--disabled,\n.react-datepicker__quarter-text--disabled,\n.react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n}\n.react-datepicker__day--disabled .overlay,\n.react-datepicker__month-text--disabled .overlay,\n.react-datepicker__quarter-text--disabled .overlay,\n.react-datepicker__year-text--disabled .overlay {\n position: absolute;\n bottom: 70%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #333;\n color: #fff;\n padding: 4px;\n border-radius: 4px;\n white-space: nowrap;\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n\n.react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n.react-datepicker__input-container .react-datepicker__calendar-icon {\n position: absolute;\n padding: 0.5rem;\n box-sizing: content-box;\n}\n\n.react-datepicker__view-calendar-icon input {\n padding: 6px 10px 5px 25px;\n}\n\n.react-datepicker__year-read-view,\n.react-datepicker__month-read-view,\n.react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n}\n.react-datepicker__year-read-view:hover,\n.react-datepicker__month-read-view:hover,\n.react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n}\n.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: rgb(178.5, 178.5, 178.5);\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 transform: rotate(135deg);\n right: -16px;\n top: 0;\n}\n\n.react-datepicker__year-dropdown,\n.react-datepicker__month-dropdown,\n.react-datepicker__month-year-dropdown {\n background-color: #f0f0f0;\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n}\n.react-datepicker__year-dropdown:hover,\n.react-datepicker__month-dropdown:hover,\n.react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n}\n.react-datepicker__year-dropdown--scrollable,\n.react-datepicker__month-dropdown--scrollable,\n.react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n}\n\n.react-datepicker__year-option,\n.react-datepicker__month-option,\n.react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\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 border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n}\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 -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n.react-datepicker__year-option:hover,\n.react-datepicker__month-option:hover,\n.react-datepicker__month-year-option:hover {\n background-color: #ccc;\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: rgb(178.5, 178.5, 178.5);\n}\n.react-datepicker__year-option--selected,\n.react-datepicker__month-option--selected,\n.react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n}\n\n.react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n}\n.react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: #216ba5;\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: "×";\n}\n.react-datepicker__close-icon--disabled {\n cursor: default;\n}\n.react-datepicker__close-icon--disabled::after {\n cursor: default;\n background-color: #ccc;\n}\n\n.react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n}\n\n.react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n}\n.react-datepicker__portal .react-datepicker__day-name,\n.react-datepicker__portal .react-datepicker__day,\n.react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n}\n@media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n}\n.react-datepicker__portal .react-datepicker__current-month,\n.react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n}\n\n.react-datepicker__children-container {\n width: 13.8rem;\n margin: 0.4rem;\n padding-right: 0.2rem;\n padding-left: 0.2rem;\n height: auto;\n}\n\n.react-datepicker__aria-live {\n position: absolute;\n clip-path: circle(0);\n border: 0;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n width: 1px;\n white-space: nowrap;\n}\n\n.react-datepicker__calendar-icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.125em;\n}\n',""]);const s=i},27752:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap);"]),i.push([e.id,"\n",""]);const s=i},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},42838:function(e){
7
7
  /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
8
8
  e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:a,seal:i,create:s}=Object,{apply:c,construct:u}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),i||(i=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const l=x(Array.prototype.forEach),d=x(Array.prototype.pop),f=x(Array.prototype.push),p=x(String.prototype.toLowerCase),h=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),w=x(RegExp.prototype.test),O=k(TypeError);function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c(e,t,r)}}function k(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e,n)}}function S(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let a=r.length;for(;a--;){let t=r[a];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function P(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=P(o):n[r]=o);return n}function D(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=r(e)}function n(){return null}return n}const _=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),A=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=a(["#text"]),R=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),N=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),L=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=i(/<%[\w\W]*|[\w\W]*%>/gm),W=i(/\${[\w\W]*}/gm),Y=i(/^data-[\-\w.\u00B7-\uFFFF]/),U=i(/^aria-[\-\w]+$/),z=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=i(/^(?:\w+script|data):/i),q=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=i(/^html$/i),$=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:B,TMPLIT_EXPR:W,DATA_ATTR:Y,ARIA_ATTR:U,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:q,DOCTYPE_NAME:G,CUSTOM_ELEMENT:$});const Q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X=function(){return"undefined"==typeof window?null:window},J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Z(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>Z(e);if(n.version="3.1.7",n.removed=[],!t||!t.document||t.document.nodeType!==Q.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:x,Element:k,NodeFilter:E,NamedNodeMap:H=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:Y}=t,U=k.prototype,V=D(U,"cloneNode"),q=D(U,"remove"),$=D(U,"nextSibling"),ee=D(U,"childNodes"),te=D(U,"parentNode");if("function"==typeof u){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:se}=r,{importNode:ce}=o;let ue={};n.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=K;let{IS_ALLOWED_URI:ye}=K,be=null;const we=S({},[..._,...j,...C,...M,...I]);let Oe=null;const xe=S({},[...R,...N,...L,...F]);let ke=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Ee=null,Pe=!0,De=!0,_e=!1,je=!0,Ce=!1,Te=!0,Me=!1,Ae=!1,Ie=!1,Re=!1,Ne=!1,Le=!1,Fe=!0,He=!1;const Be="user-content-";let We=!0,Ye=!1,Ue={},ze=null;const Ve=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Ge=S({},["audio","video","img","source","image","track"]);let $e=null;const Ke=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Ze=Je,et=!1,tt=null;const nt=S({},[Qe,Xe,Je],h);let rt=null;const ot=["application/xhtml+xml","text/html"],at="text/html";let it=null,st=null;const ct=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=P(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?at:e.PARSER_MEDIA_TYPE,it="application/xhtml+xml"===rt?h:p,be=b(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,it):we,Oe=b(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,it):xe,tt=b(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,h):nt,$e=b(e,"ADD_URI_SAFE_ATTR")?S(P(Ke),e.ADD_URI_SAFE_ATTR,it):Ke,qe=b(e,"ADD_DATA_URI_TAGS")?S(P(Ge),e.ADD_DATA_URI_TAGS,it):Ge,ze=b(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,it):Ve,Se=b(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,it):{},Ee=b(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,it):{},Ue=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ce=e.SAFE_FOR_TEMPLATES||!1,Te=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||z,Ze=e.NAMESPACE||Je,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(De=!1),Ne&&(Re=!0),Ue&&(be=S({},I),Oe=[],!0===Ue.html&&(S(be,_),S(Oe,R)),!0===Ue.svg&&(S(be,j),S(Oe,N),S(Oe,F)),!0===Ue.svgFilters&&(S(be,C),S(Oe,N),S(Oe,F)),!0===Ue.mathMl&&(S(be,M),S(Oe,L),S(Oe,F))),e.ADD_TAGS&&(be===we&&(be=P(be)),S(be,e.ADD_TAGS,it)),e.ADD_ATTR&&(Oe===xe&&(Oe=P(Oe)),S(Oe,e.ADD_ATTR,it)),e.ADD_URI_SAFE_ATTR&&S($e,e.ADD_URI_SAFE_ATTR,it),e.FORBID_CONTENTS&&(ze===Ve&&(ze=P(ze)),S(ze,e.FORBID_CONTENTS,it)),We&&(be["#text"]=!0),Me&&S(be,["html","head","body"]),be.table&&(S(be,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=J(Y,i)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));a&&a(e),st=e}},dt=S({},["mi","mo","mn","ms","mtext"]),ft=S({},["annotation-xml"]),pt=S({},["title","style","font","a","script"]),ht=S({},[...j,...C,...T]),mt=S({},[...M,...A]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ht[n]):e.namespaceURI===Qe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Xe?"math"===n&&ft[r]:Boolean(mt[n]):e.namespaceURI===Je?!(t.namespaceURI===Xe&&!ft[r])&&!(t.namespaceURI===Qe&&!dt[r])&&!mt[n]&&(pt[n]||!ht[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},vt=function(e){f(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){q(e)}},yt=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Re||Ne)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Ie)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Ze===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Ze===Je)try{t=(new W).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ze===Je?se.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},wt=function(e){return ae.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof x&&e instanceof x},kt=function(e,t,r){ue[e]&&l(ue[e],(e=>{e.call(n,t,r,st)}))},St=function(e){let t=null;if(kt("beforeSanitizeElements",e,null),Ot(e))return vt(e),!0;const r=it(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!xt(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Q.progressingInstruction)return vt(e),!0;if(Te&&e.nodeType===Q.comment&&w(/<[/\w]/g,e.data))return vt(e),!0;if(!be[r]||Se[r]){if(!Se[r]&&Pt(r)){if(ke.tagNameCheck instanceof RegExp&&w(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if(We&&!ze[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=V(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,$(e))}}return vt(e),!0}return e instanceof k&&!gt(e)?(vt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ce&&e.nodeType===Q.text&&(t=e.textContent,l([le,de,fe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(vt(e),!0)},Et=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in r||n in ct))return!1;if(De&&!Ee[t]&&w(pe,t));else if(Pe&&w(he,t));else if(!Oe[t]||Ee[t]){if(!(Pt(e)&&(ke.tagNameCheck instanceof RegExp&&w(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&w(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&w(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if($e[t]);else if(w(ye,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(_e&&!w(me,g(n,ge,"")));else if(n)return!1;return!0},Pt=function(e){return"annotation-xml"!==e&&m(e,ve)},Dt=function(e){kt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:c}=a,u=it(i);let f="value"===i?c:y(c);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,kt("uponSanitizeAttribute",e,r),f=r.attrValue,r.forceKeepAttr)continue;if(yt(i,e),!r.keepAttr)continue;if(!je&&w(/\/>/i,f)){yt(i,e);continue}Ce&&l([le,de,fe],(e=>{f=g(f,e," ")}));const p=it(e.nodeName);if(Et(p,u,f))if(!He||"id"!==u&&"name"!==u||(yt(i,e),f=Be+f),Te&&w(/((--!?|])>)|<\/(style|title)/i,f))yt(i,e);else{if(ne&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(s);else switch(Y.getAttributeType(p,u)){case"TrustedHTML":f=ne.createHTML(f);break;case"TrustedScriptURL":f=ne.createScriptURL(f)}try{s?e.setAttributeNS(s,i,f):e.setAttribute(i,f),Ot(e)?vt(e):d(n.removed)}catch(e){}}}kt("afterSanitizeAttributes",e,null)},_t=function e(t){let n=null;const r=wt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof c&&e(n.content),Dt(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ae||lt(t),n.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=it(e.nodeName);if(!be[t]||Se[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)r=bt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===Q.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Re&&!Ce&&!Me&&-1===e.indexOf("<"))return ne&&Le?ne.createHTML(e):e;if(r=bt(e),!r)return Re?null:Le?re:""}r&&Ie&&vt(r.firstChild);const u=wt(Ye?e:r);for(;i=u.nextNode();)St(i)||(i.content instanceof c&&_t(i.content),Dt(i));if(Ye)return e;if(Re){if(Ne)for(s=ie.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(Oe.shadowroot||Oe.shadowrootmode)&&(s=ce.call(o,s,!0)),s}let d=Me?r.outerHTML:r.innerHTML;return Me&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(G,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ce&&l([le,de,fe],(e=>{d=g(d,e," ")})),ne&&Le?ne.createHTML(d):d},n.setConfig=function(){lt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ae=!0},n.clearConfig=function(){st=null,Ae=!1},n.isValidAttribute=function(e,t,n){st||lt({});const r=it(e),o=it(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ue[e]=ue[e]||[],f(ue[e],t))},n.removeHook=function(e){if(ue[e])return d(ue[e])},n.removeHooks=function(e){ue[e]&&(ue[e]=[])},n.removeAllHooks=function(){ue={}},n}return Z()}()},4146:(e,t,n)=>{"use strict";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=l(n);d&&(i=i.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},55580:(e,t,n)=>{var r=n(56110)(n(9325),"DataView");e.exports=r},21549:(e,t,n)=>{var r=n(22032),o=n(63862),a=n(66721),i=n(12749),s=n(35749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},80079:(e,t,n)=>{var r=n(63702),o=n(70080),a=n(24739),i=n(48655),s=n(31175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},68223:(e,t,n)=>{var r=n(56110)(n(9325),"Map");e.exports=r},53661:(e,t,n)=>{var r=n(63040),o=n(17670),a=n(90289),i=n(4509),s=n(72949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},76545:(e,t,n)=>{var r=n(56110)(n(9325),"Set");e.exports=r},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),s=n(29817),c=n(80945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,e.exports=u},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},28303:(e,t,n)=>{var r=n(56110)(n(9325),"WeakMap");e.exports=r},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},63945:e=>{e.exports=function(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}},83729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},79770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},15325:(e,t,n)=>{var r=n(96131);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},29905:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},70695:(e,t,n)=>{var r=n(78096),o=n(72428),a=n(56449),i=n(3656),s=n(30361),c=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),d=!n&&!l&&i(e),f=!n&&!l&&!d&&c(e),p=n||l||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},14528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},14248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},16547:(e,t,n)=>{var r=n(43360),o=n(75288),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},26025:(e,t,n)=>{var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},62429:(e,t,n)=>{var r=n(80909);e.exports=function(e,t,n,o){return r(e,(function(e,r,a){t(o,e,n(e),a)})),o}},74733:(e,t,n)=>{var r=n(21791),o=n(95950);e.exports=function(e,t){return e&&r(t,o(t),e)}},43838:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e,t){return e&&r(t,o(t),e)}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999:(e,t,n)=>{var r=n(37217),o=n(83729),a=n(16547),i=n(74733),s=n(43838),c=n(93290),u=n(23007),l=n(92271),d=n(48948),f=n(50002),p=n(83349),h=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),w=n(87730),O=n(23805),x=n(38440),k=n(95950),S=n(37241),E="[object Arguments]",P="[object Function]",D="[object Object]",_={};_[E]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_[D]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[P]=_["[object WeakMap]"]=!1,e.exports=function e(t,n,j,C,T,M){var A,I=1&n,R=2&n,N=4&n;if(j&&(A=T?j(t,C,T,M):j(t)),void 0!==A)return A;if(!O(t))return t;var L=y(t);if(L){if(A=m(t),!I)return u(t,A)}else{var F=h(t),H=F==P||"[object GeneratorFunction]"==F;if(b(t))return c(t,I);if(F==D||F==E||H&&!T){if(A=R||H?{}:v(t),!I)return R?d(t,s(A,t)):l(t,i(A,t))}else{if(!_[F])return T?t:{};A=g(t,F,I)}}M||(M=new r);var B=M.get(t);if(B)return B;M.set(t,A),x(t)?t.forEach((function(r){A.add(e(r,n,j,r,t,M))})):w(t)&&t.forEach((function(r,o){A.set(o,e(r,n,j,o,t,M))}));var W=L?void 0:(N?R?p:f:R?S:k)(t);return o(W||t,(function(r,o){W&&(r=t[o=r]),a(A,o,e(r,n,j,o,t,M))})),A}},39344:(e,t,n)=>{var r=n(23805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},83915:(e,t,n)=>{var r=n(38859),o=n(15325),a=n(29905),i=n(34932),s=n(27301),c=n(19219);e.exports=function(e,t,n,u){var l=-1,d=o,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=i(t,s(n))),u?(d=a,f=!1):t.length>=200&&(d=c,f=!1,t=new r(t));e:for(;++l<p;){var g=e[l],v=null==n?g:n(g);if(g=u||0!==g?g:0,f&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,u)||h.push(g)}return h}},80909:(e,t,n)=>{var r=n(30641),o=n(38329)(r);e.exports=o},2523:e=>{e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},83120:(e,t,n)=>{var r=n(14528),o=n(45891);e.exports=function e(t,n,a,i,s){var c=-1,u=t.length;for(a||(a=o),s||(s=[]);++c<u;){var l=t[c];n>0&&a(l)?n>1?e(l,n-1,a,i,s):r(s,l):i||(s[s.length]=l)}return s}},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},30641:(e,t,n)=>{var r=n(86649),o=n(95950);e.exports=function(e,t){return e&&r(e,t,o)}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},72552:(e,t,n)=>{var r=n(51873),o=n(659),a=n(59350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),a=n(76959);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},27534:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},60270:(e,t,n)=>{var r=n(87068),o=n(40346);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},87068:(e,t,n)=>{var r=n(37217),o=n(25911),a=n(21986),i=n(50689),s=n(5861),c=n(56449),u=n(3656),l=n(37167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=c(e),b=c(t),w=y?f:s(e),O=b?f:s(t),x=(w=w==d?p:w)==p,k=(O=O==d?p:O)==p,S=w==O;if(S&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(S&&!x)return v||(v=new r),y||l(e)?o(e,t,n,m,g,v):a(e,t,w,n,m,g,v);if(!(1&n)){var E=x&&h.call(e,"__wrapped__"),P=k&&h.call(t,"__wrapped__");if(E||P){var D=E?e.value():e,_=P?t.value():t;return v||(v=new r),g(D,_,n,m,v)}}return!!S&&(v||(v=new r),i(e,t,n,m,g,v))}},29172:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,s=i,c=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=n[i];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=n[i])[0],d=e[l],f=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var p=new r;if(a)var h=a(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,a,p):h))return!1}}return!0}},85463:e=>{e.exports=function(e){return e!=e}},45083:(e,t,n)=>{var r=n(1882),o=n(87296),a=n(23805),i=n(47473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:s).test(i(e))}},16038:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901:(e,t,n)=>{var r=n(72552),o=n(30294),a=n(40346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},15389:(e,t,n)=>{var r=n(93663),o=n(87978),a=n(83488),i=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903:(e,t,n)=>{var r=n(23805),o=n(55527),a=n(90181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},93663:(e,t,n)=>{var r=n(41799),o=n(10776),a=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),a=n(80631),i=n(28586),s=n(30756),c=n(89578),u=n(77797);e.exports=function(e,t){return i(e)&&s(t)?c(u(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},85250:(e,t,n)=>{var r=n(37217),o=n(87805),a=n(86649),i=n(42824),s=n(23805),c=n(37241),u=n(14974);e.exports=function e(t,n,l,d,f){t!==n&&a(n,(function(a,c){if(f||(f=new r),s(a))i(t,n,c,l,e,d,f);else{var p=d?d(u(t,c),a,c+"",t,n,f):void 0;void 0===p&&(p=a),o(t,c,p)}}),c)}},42824:(e,t,n)=>{var r=n(87805),o=n(93290),a=n(71961),i=n(23007),s=n(35529),c=n(72428),u=n(56449),l=n(83693),d=n(3656),f=n(1882),p=n(23805),h=n(11331),m=n(37167),g=n(14974),v=n(69884);e.exports=function(e,t,n,y,b,w,O){var x=g(e,n),k=g(t,n),S=O.get(k);if(S)r(e,n,S);else{var E=w?w(x,k,n+"",e,t,O):void 0,P=void 0===E;if(P){var D=u(k),_=!D&&d(k),j=!D&&!_&&m(k);E=k,D||_||j?u(x)?E=x:l(x)?E=i(x):_?(P=!1,E=o(k,!0)):j?(P=!1,E=a(k,!0)):E=[]:h(k)||c(k)?(E=x,c(x)?E=v(x):p(x)&&!f(x)||(E=s(k))):P=!1}P&&(O.set(k,E),b(E,k,y,w,O),O.delete(k)),r(e,n,E)}}},76001:(e,t,n)=>{var r=n(97420),o=n(80631);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),a=n(31769);e.exports=function(e,t,n){for(var i=-1,s=t.length,c={};++i<s;){var u=t[i],l=r(e,u);n(l,u)&&o(c,a(u,e),l)}return c}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255:(e,t,n)=>{var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,s=n(t((r-e)/(o||1)),0),c=Array(s);s--;)c[a?s:++i]=e,e+=o;return c}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},69302:(e,t,n)=>{var r=n(83488),o=n(56757),a=n(32865);e.exports=function(e,t){return a(o(e,t,r),e+"")}},73170:(e,t,n)=>{var r=n(16547),o=n(31769),a=n(30361),i=n(23805),s=n(77797);e.exports=function(e,t,n,c){if(!i(e))return e;for(var u=-1,l=(t=o(t,e)).length,d=l-1,f=e;null!=f&&++u<l;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var m=f[p];void 0===(h=c?c(m,p,f):void 0)&&(h=i(m)?m:a(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},25160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},55765:(e,t,n)=>{var r=n(38859),o=n(15325),a=n(29905),i=n(19219),s=n(44517),c=n(84247);e.exports=function(e,t,n){var u=-1,l=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,l=a;else if(d>=200){var m=t?null:s(e);if(m)return c(m);f=!1,l=i,h=new r}else h=t?[]:p;e:for(;++u<d;){var g=e[u],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else l(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},19931:(e,t,n)=>{var r=n(31769),o=n(68090),a=n(68969),i=n(77797);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},19219:e=>{e.exports=function(e,t){return e.has(t)}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},49653:(e,t,n)=>{var r=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},76169:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},71961:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},23007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},21791:(e,t,n)=>{var r=n(16547),o=n(43360);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=a?a(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),i?o(n,u,l):r(n,u,l)}return n}},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},48948:(e,t,n)=>{var r=n(21791),o=n(86375);e.exports=function(e,t){return r(e,o(e),t)}},55481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},19619:(e,t,n)=>{var r=n(63945),o=n(62429),a=n(15389),i=n(56449);e.exports=function(e,t){return function(n,s){var c=i(n)?r:o,u=t?t():{};return c(n,e,a(s,2),u)}}},20999:(e,t,n)=>{var r=n(69302),o=n(36800);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,i)}return t}))}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==o(s[i],i,s););return n}}},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var c=i[e?s:++o];if(!1===n(a[c],c,a))break}return t}}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),a=n(17400);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},73893:(e,t,n)=>{var r=n(9325),o=n(61489),a=n(99374),i=n(13222),s=r.isFinite,c=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=a(e),(n=null==n?0:c(o(n),292))&&s(e)){var r=(i(e)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+n));return+((r=(i(u)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),a=n(84247),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},53138:(e,t,n)=>{var r=n(11331);e.exports=function(e){return r(e)?void 0:e}},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},25911:(e,t,n)=>{var r=n(38859),o=n(14248),a=n(19219);e.exports=function(e,t,n,i,s,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var v=e[h],y=t[h];if(i)var b=u?i(y,v,h,t,e,c):i(v,y,h,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!a(g,t)&&(v===e||s(v,e,n,i,c)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,i,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},21986:(e,t,n)=>{var r=n(51873),o=n(37828),a=n(75288),i=n(25911),s=n(20317),c=n(84247),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=i(p(e),p(t),r,u,d,f);return f.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},50689:(e,t,n)=>{var r=n(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var d=l;d--;){var f=u[d];if(!(c?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<l;){var v=e[f=u[d]],y=t[f];if(a)var b=c?a(y,v,f,t,e,s):a(v,y,f,e,t,s);if(!(void 0===b?v===y||i(v,y,n,a,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,O=t.constructor;w==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(m=!1)}return s.delete(e),s.delete(t),m}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),a=n(32865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},50002:(e,t,n)=>{var r=n(82199),o=n(4664),a=n(95950);e.exports=function(e){return r(e,a,o)}},83349:(e,t,n)=>{var r=n(82199),o=n(86375),a=n(37241);e.exports=function(e){return r(e,a,o)}},12651:(e,t,n)=>{var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776:(e,t,n)=>{var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},56110:(e,t,n)=>{var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},28879:(e,t,n)=>{var r=n(74335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(51873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},86375:(e,t,n)=>{var r=n(14528),o=n(28879),a=n(4664),i=n(63345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},5861:(e,t,n)=>{var r=n(55580),o=n(68223),a=n(32804),i=n(76545),s=n(28303),c=n(72552),u=n(47473),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(r),g=u(o),v=u(a),y=u(i),b=u(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||a&&w(a.resolve())!=d||i&&w(new i)!=f||s&&w(new s)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return l;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},49326:(e,t,n)=>{var r=n(31769),o=n(72428),a=n(56449),i=n(30361),s=n(30294),c=n(77797);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,d=!1;++u<l;){var f=c(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&i(f,l)&&(a(e)||o(e))}},22032:(e,t,n)=>{var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},12749:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},76189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},77199:(e,t,n)=>{var r=n(49653),o=n(76169),a=n(73201),i=n(93736),s=n(71961);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),a=n(56449),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),a=n(30361),i=n(23805);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},28586:(e,t,n)=>{var r=n(56449),o=n(44394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296:(e,t,n)=>{var r,o=n(55481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756:(e,t,n)=>{var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},70080:(e,t,n)=>{var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},24739:(e,t,n)=>{var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175:(e,t,n)=>{var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},63040:(e,t,n)=>{var r=n(21549),o=n(80079),a=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},17670:(e,t,n)=>{var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949:(e,t,n)=>{var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89578:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},62224:(e,t,n)=>{var r=n(50104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},81042:(e,t,n)=>{var r=n(56110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(74335)(Object.keys,Object);e.exports=r},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},56757:(e,t,n)=>{var r=n(91033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),c=Array(s);++i<s;)c[i]=a[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=a[i];return u[t]=n(c),r(e,this,u)}}},68969:(e,t,n)=>{var r=n(47422),o=n(25160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},9325:(e,t,n)=>{var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},14974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},32865:e=>{e.exports=function(e){return e}},51420:(e,t,n)=>{var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},80945:(e,t,n)=>{var r=n(80079),o=n(68223),a=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},76959:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},61802:(e,t,n)=>{var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},77797:e=>{e.exports=function(e){return e}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},38221:(e,t,n)=>{var r=n(23805),o=n(10124),a=n(99374),i=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,r=u;return c=u=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=l}function w(){var e=o();if(b(e))return O(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,l-(e-h)):n}(e))}function O(e){return f=void 0,v&&c?y(e):(c=u=void 0,d)}function x(){var e=o(),n=b(e);if(c=arguments,u=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,l=(g="maxWait"in n)?i(a(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=u=f=void 0},x.flush=function(){return void 0===f?d:O(o())},x}},66245:(e,t,n)=>{var r=n(83915),o=n(83120),a=n(69302),i=n(83693),s=a((function(e,t){return i(e)?r(e,o(t,1,i,!0)):[]}));e.exports=s},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},58156:(e,t,n)=>{var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},94394:(e,t,n)=>{var r=n(43360),o=n(19619),a=Object.prototype.hasOwnProperty,i=o((function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=i},80631:(e,t,n)=>{var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},83488:e=>{e.exports=function(e){return e}},72428:(e,t,n)=>{var r=n(27534),o=n(40346),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},56449:e=>{var t=Array.isArray;e.exports=t},64894:(e,t,n)=>{var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},83693:(e,t,n)=>{var r=n(64894),o=n(40346);e.exports=function(e){return o(e)&&r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(89935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},62193:(e,t,n)=>{var r=n(88984),o=n(5861),a=n(72428),i=n(56449),s=n(64894),c=n(3656),u=n(55527),l=n(37167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},2404:(e,t,n)=>{var r=n(60270);e.exports=function(e,t){return r(e,t)}},1882:(e,t,n)=>{var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730:(e,t,n)=>{var r=n(29172),o=n(27301),a=n(86009),i=a&&a.isMap,s=i?o(i):r;e.exports=s},69843:e=>{e.exports=function(e){return null==e}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},11331:(e,t,n)=>{var r=n(72552),o=n(28879),a=n(40346),i=Function.prototype,s=Object.prototype,c=i.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),a=n(86009),i=a&&a.isSet,s=i?o(i):r;e.exports=s},85015:(e,t,n)=>{var r=n(72552),o=n(56449),a=n(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},95950:(e,t,n)=>{var r=n(70695),o=n(88984),a=n(64894);e.exports=function(e){return a(e)?r(e):o(e)}},37241:(e,t,n)=>{var r=n(70695),o=n(72903),a=n(64894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},50104:(e,t,n)=>{var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},55364:(e,t,n)=>{var r=n(85250),o=n(20999)((function(e,t,n){r(e,t,n)}));e.exports=o},6048:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},63950:e=>{e.exports=function(){}},10124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),a=n(19931),i=n(31769),s=n(21791),c=n(53138),u=n(38816),l=n(83349),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=i(t,e),u||(u=t.length>1),t})),s(e,l(e),n),u&&(n=o(n,7,c));for(var d=t.length;d--;)a(n,t[d]);return n}));e.exports=d},42194:(e,t,n)=>{var r=n(15389),o=n(6048),a=n(71086);e.exports=function(e,t){return a(e,o(r(t)))}},44383:(e,t,n)=>{var r=n(76001),o=n(38816)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},71086:(e,t,n)=>{var r=n(34932),o=n(15389),a=n(97420),i=n(83349);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=o(t),a(e,n,(function(e,n){return t(e,n[0])}))}},50583:(e,t,n)=>{var r=n(47237),o=n(17255),a=n(28586),i=n(77797);e.exports=function(e){return a(e)?r(i(e)):o(e)}},23181:(e,t,n)=>{var r=n(85508)();e.exports=r},40860:(e,t,n)=>{var r=n(40882),o=n(80909),a=n(15389),i=n(85558),s=n(56449);e.exports=function(e,t,n){var c=s(e)?r:i,u=arguments.length<3;return c(e,a(t,4),n,u,o)}},36944:(e,t,n)=>{var r=n(73893)("round");e.exports=r},63560:(e,t,n)=>{var r=n(73170);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},63345:e=>{e.exports=function(){return[]}},89935:e=>{e.exports=function(){return!1}},7350:(e,t,n)=>{var r=n(38221),o=n(23805);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},17400:e=>{e.exports=function(e){return e}},61489:e=>{e.exports=function(e){return e}},99374:e=>{e.exports=function(e){return e}},69884:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e){return r(e,o(e))}},13222:e=>{e.exports=function(e){return e}},69752:(e,t,n)=>{var r=n(83729),o=n(39344),a=n(30641),i=n(15389),s=n(28879),c=n(56449),u=n(3656),l=n(1882),d=n(23805),f=n(37167);e.exports=function(e,t,n){var p=c(e),h=p||u(e)||f(e);if(t=i(t,4),null==n){var m=e&&e.constructor;n=h?p?new m:[]:d(e)&&l(m)?o(s(e)):{}}return(h?r:a)(e,(function(e,r,o){return t(n,e,r,o)})),n}},80299:(e,t,n)=>{var r=n(83120),o=n(69302),a=n(55765),i=n(83693),s=o((function(e){return a(r(e,1,i,!0))}));e.exports=s},73357:(e,t,n)=>{var r=n(19931);e.exports=function(e,t){return null==e||r(e,t)}},45228:e=>{"use strict";
9
9
  /*