tocco-legacy-bundle 3.12.3 → 3.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +9 -0
- package/dist/chunk-363.ed8141ff35cb0ec65a2c.js +1 -0
- package/dist/{chunk-770.0e9bdfd9be4cfbd8b8ff.js → chunk-770.720b43cfec36a1a4cdb7.js} +1 -1
- package/dist/chunk-actions.9254adb0cd9d03ebb454.js +1 -0
- package/dist/{chunk-docs-actions.fddae70818fe61e38835.js → chunk-docs-actions.4d656da3a97f88329349.js} +1 -1
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +2 -2
- package/dist/input-edit.js +2 -2
- package/dist/login.js +3 -3
- package/dist/merge.js +3 -3
- package/dist/password-update.js +3 -3
- package/dist/resource-scheduler.js +3 -3
- package/dist/sso-login.js +4 -4
- package/dist/two-factor-connector.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-363.b3241d25e4e5134ee252.js +0 -1
- package/dist/chunk-actions.8e7193aeef0fcee0847a.js +0 -1
package/dist/sso-login.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ReactDOM"),require("React")):"function"==typeof define&&define.amd?define(["ReactDOM","React"],t):"object"==typeof exports?exports["tocco-sso-login"]=t(require("ReactDOM"),require("React")):e["tocco-sso-login"]=t(e.ReactDOM,e.React)}(self,((e,t)=>(()=>{var n,r,o,i,a={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,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,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,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},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,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},83712:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},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),i=n(45051),a=n(66923);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},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),i=n(45051),a=n(33694);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},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)},91907:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(36289),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)-.*))$/,i=(0,r.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},36289:(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:()=>r})},83969:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r={animationIterationCount:1,aspectRatio: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}},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(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},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"}}}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(72189),i=n.n(o),a=n(96346).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=i()([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>p.i,A:()=>f});var r,o=n(26396),i=n.n(o),a=n(4883),s=n.n(a),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){i()(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,a.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)(a.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,{Ay:()=>d});n(5556);var r,o=n(47850),i=n(33181),a=n(72189),s=n.n(a),c=n(96346);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,i.Ed)(),(function(e){return e.breakWords?(0,i.KV)():(0,i.sb)()}),i.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,a=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,x=e.useTitle,O=void 0===x||x,k=v||(r?void 0:y);return(0,l.jsxs)(u,{alt:t,breakWords:r,download:a,href:c,neutral:d,onClick:f,rel:p,tabIndex:h,target:g,title:O?k:void 0,children:[b&&(0,l.jsx)(o.A,{icon:b,position:i.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,i.Ed)(),i.t7.color("secondary"),i.t7.color("text"),i.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?i.t7.color("text"):i.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));(0,c.Ay)(h.N_)(p||(p=s()(["\n ","\n"])),m)},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>U,AE:()=>Y,C$:()=>L,F1:()=>z,Gw:()=>N,Js:()=>K,Li:()=>R,MM:()=>I,Ng:()=>V,QF:()=>j,aB:()=>A,fN:()=>B,oY:()=>W,or:()=>_,pR:()=>C,rY:()=>T,rs:()=>F,v8:()=>H,vB:()=>M,vr:()=>q,zG:()=>G});var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w,x,O,k,S=n(72189),E=n.n(S),P=n(96346),D=n(33181),_=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)()})),C=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)),T=P.Ay.del.withConfig({displayName:"StyledDel"})(i||(i=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)()})),j=P.Ay.em.withConfig({displayName:"StyledEm"})(a||(a=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),A=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)),M=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)()})),N=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)),R=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)()})),U=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)()})),Y=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)()})),V=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)()})),z=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"})(x||(x=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"})(O||(O=E()(["\n && {\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)()})),K=P.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=E()(["\n && {\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,{rd:()=>k,Gw:()=>L.Gw,vx:()=>M,oY:()=>L.oY,dV:()=>R,gv:()=>W,Ay:()=>U});n(5556);var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v=n(33181),y=n(72189),b=n.n(y),w=n(96346),x=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})},O=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 x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),S=w.Ay.h2.withConfig({displayName:"StyledH2"})(i||(i=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),E=w.Ay.h3.withConfig({displayName:"StyledH3"})(a||(a=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),C=n(74848),T=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)()})),j=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)),A=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)()})),M=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)),N=(0,w.Ay)(I).withConfig({displayName:"StyledOl"})(m||(m=b()(["\n list-style-type: decimal;\n"]))),R=(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 U={H1:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H1":r,i=e.children;return(0,C.jsx)(k,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H2:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H2":r,i=e.children;return(0,C.jsx)(S,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H3:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H3":r,i=e.children;return(0,C.jsx)(E,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H4:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H4":r,i=e.children;return(0,C.jsx)(P,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H5:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H5":r,i=e.children;return(0,C.jsx)(D,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H6:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H6":r,i=e.children;return(0,C.jsx)(_,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},Dd:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,C.jsx)(T,{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,C.jsx)(A,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dl:function(e){return(0,C.jsx)(j,{children:e.children})},Li:function(e){var t=e.children;return(0,C.jsx)(M,{children:t})},Ol:function(e){var t=e.children;return(0,C.jsx)(N,{children:t})},Ul:function(e){var t=e.children;return(0,C.jsx)(R,{as:"ul",children:t})},B:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.or,{breakWords:n,title:F(n,o,i),children:i})},Code:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.pR,{title:F(n,o,i),children:i})},Del:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.rY,{breakWords:n,title:F(n,o,i),children:i})},Em:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.QF,{breakWords:n,title:F(n,o,i),children:i})},Figcaption:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.aB,{breakWords:n,title:F(n,o,i),children:i})},I:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.vB,{breakWords:n,title:F(n,o,i),children:i})},Ins:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.MM,{breakWords:n,title:F(n,o,i),children:i})},Label:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.htmlFor;return(0,C.jsx)(L.Gw,{breakWords:n,title:F(n,o,i),htmlFor:a,children:i})},Mark:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Li,{breakWords:n,title:F(n,o,i),children:i})},P:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.id;return(0,C.jsx)(L.C$,{breakWords:n,title:F(n,o,i),id:a,children:i})},Pre:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.rs,{breakWords:n,title:F(n,o,i),children:i})},Q:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Js,{breakWords:n,title:F(n,o,i),children:i})},S:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.v8,{breakWords:n,title:F(n,o,i),children:i})},Small:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.fN,{breakWords:n,title:F(n,o,i),children:i})},Span:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.id;return(0,C.jsx)(L.oY,{breakWords:n,title:F(n,o,i),id:a,children:i})},Strong:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Ng,{breakWords:n,title:F(n,o,i),children:i})},Sub:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.AB,{breakWords:n,title:F(n,o,i),children:i})},Sup:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.AE,{breakWords:n,title:F(n,o,i),children:i})},Time:function(e){var t=e.breakWords,n=void 0!==t&&t,r=e.title,o=e.dateTime,i=e.children;return(0,C.jsx)(L.F1,{breakWords:n,title:r,dateTime:o,children:i})},U:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.vr,{breakWords:n,title:F(n,o,i),children:i})},Var:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.zG,{breakWords:n,title:F(n,o,i),children:i})}}},33181:(e,t,n)=>{"use strict";n.d(t,{KY:()=>a,Db:()=>i,h7:()=>de,Ed:()=>fe,sb:()=>pe,KV:()=>he,xX:()=>Pe,GV:()=>Ie,x5:()=>Le,CN:()=>De,hs:()=>ze,w4:()=>Ue,t7:()=>Ge,LE:()=>qe});var r=n(58156),o=n.n(r),i={base:function(e){var t=e.theme;return o()(t,"colors.text")},shade1:function(e){var t=e.theme;return o()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return o()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return o()(t,"colors.signal.info")}},a={base:function(e){var t=e.theme;return o()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return o()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},s=n(72189),c=n.n(s);function u(){return u=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},u.apply(this,arguments)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t,n){return f=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&&l(o,n.prototype),o},f.apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},p(e)}var h=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,l(t,n),r}(p(Error));function m(e,t){return e.substr(-t.length)===t}var g=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function v(e){return"string"!=typeof e?e:e.match(g)?parseFloat(e):e}var y=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!m(t,"px"))throw new h(69,e,t);r=v(t)}if("string"==typeof n){if(!m(n,"px"))throw new h(70,e,n);o=v(n)}if("string"==typeof r)throw new h(71,t,e);if("string"==typeof o)throw new h(72,n,e);return""+r/o+e}};y("em");y("rem");function b(e){return Math.round(255*e)}function w(e,t,n){return b(e)+","+b(t)+","+b(n)}function x(e,t,n,r){if(void 0===r&&(r=w),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,u=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,u=a):o>=3&&o<4?(c=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var l=n-i/2;return r(s+l,c+l,u+l)}var O={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var k=/^#[a-fA-F0-9]{6}$/,S=/^#[a-fA-F0-9]{8}$/,E=/^#[a-fA-F0-9]{3}$/,P=/^#[a-fA-F0-9]{4}$/,D=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_=/^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 j(e){if("string"!=typeof e)throw new h(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return O[t]?"#"+O[t]:e}(e);if(t.match(k))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(S)){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(E))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(P)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=D.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=_.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=C.exec(t);if(a){var s="rgb("+x(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",c=D.exec(s);if(!c)throw new h(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=D.exec(l);if(!d)throw new h(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 h(5)}function A(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=i-a,u=s>.5?c/(2-i-a):c/(i+a);switch(i){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}}(j(e))}var M=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 I(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function N(e){return I(Math.round(255*e))}function R(e,t,n){return M("#"+N(e)+N(t)+N(n))}function L(e,t,n){return x(e,t,n,R)}function F(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return L(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return L(e.hue,e.saturation,e.lightness);throw new h(1)}function H(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?L(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?L(e.hue,e.saturation,e.lightness):"rgba("+x(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new h(2)}function B(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return M("#"+I(e)+I(t)+I(n));if("object"==typeof e&&void 0===t&&void 0===n)return M("#"+I(e.red)+I(e.green)+I(e.blue));throw new h(6)}function W(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=j(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?B(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?B(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new h(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)},Y=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)},z=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function q(e){if("object"!=typeof e)throw new h(8);if(Y(e))return W(e);if(U(e))return B(e);if(z(e))return H(e);if(V(e))return F(e);throw new h(8)}function G(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):G(e,t,r)}}function K(e){return G(e,e.length,[])}K((function(e,t){if("transparent"===t)return t;var n=A(t);return q(u({},n,{hue:n.hue+parseFloat(e)}))}));function $(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 q(u({},n,{lightness:$(0,1,n.lightness-parseFloat(e))}))}));K((function(e,t){if("transparent"===t)return t;var n=A(t);return q(u({},n,{saturation:$(0,1,n.saturation-parseFloat(e))}))}));function X(e){if("transparent"===e)return 0;var t=j(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Q(e,t){var n=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 q(u({},n,{lightness:$(0,1,n.lightness+parseFloat(e))}))})),J=Z;var ee=K((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=j(t),o=u({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=j(n),a=u({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),s=o.alpha-a.alpha,c=2*parseFloat(e)-1,l=((c*s==-1?c:c+s)/(1+c*s)+1)/2,d=1-l;return W({red:Math.floor(o.red*l+a.red*d),green:Math.floor(o.green*l+a.green*d),blue:Math.floor(o.blue*l+a.blue*d),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),te=ee;K((function(e,t){if("transparent"===t)return t;var n=j(t);return W(u({},n,{alpha:$(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var ne="#000",re="#fff";K((function(e,t){if("transparent"===t)return t;var n=A(t);return q(u({},n,{saturation:$(0,1,n.saturation+parseFloat(e))}))}));K((function(e,t){return"transparent"===t?t:q(u({},A(t),{hue:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:q(u({},A(t),{lightness:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:q(u({},A(t),{saturation:parseFloat(e)}))}));K((function(e,t){return"transparent"===t?t:te(parseFloat(e),"rgb(0, 0, 0)",t)}));var oe=K((function(e,t){return"transparent"===t?t:te(parseFloat(e),"rgb(255, 255, 255)",t)})),ie=oe;var ae=K((function(e,t){if("transparent"===t)return t;var n=j(t);return W(u({},n,{alpha:$(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),se=ae;var ce,ue,le=n(96346),de=function(e){var t=o()(e.theme,"colors.signal.info",Pe.fallbackColors.INFO);return(0,le.AH)(ce||(ce=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,se(.4,t))};const fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,le.AH)(ue||(ue=c()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||Ue.color("text"),e.fontFamily||Ue.fontFamily("regular"),e.fontSize||ze.font(0),e.fontStyle||"normal",e.fontWeight||Ue.fontWeight("regular"),e.lineHeight||Ue.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"},xe={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},Oe=ge().oneOf(Object.values(ve)),ke=ge().oneOf(Object.values(ye)),Se=ge().oneOf(Object.values(we)),Ee=ge().oneOf(Object.values(xe));const Pe={animation:ve,animationPropTypes:Oe,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:xe,positionPropTypes:Ee};var De="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;n(71086);var _e=n(85735),Ce=n.n(_e),Te=n(4883),je=n.n(Te),Ae=function(e){var t="";return je().Children.map(e,(function(e,n){"string"==typeof e||"number"==typeof e?t="".concat(t).concat(e):"object"===Ce()(e)&&e.props.children?t="".concat(t).concat(Ae(e.props.children)):"object"===Ce()(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 Ie=Ae;var Ne,Re=function(e,t){return function(e,t,n,r){void 0===t&&(t=ne),void 0===n&&(n=re),void 0===r&&(r=!0);var o=X(e)>.179,i=o?t:n;return!r||Q(e,i)>=4.5?i:o?ne:re}(e,Ue.color("text")({theme:t}),Ue.color("paper")({theme:t}))};const Le=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?Ue.color("primary")({theme:n}):r?Ue.color("secondary")({theme:n}):Ue.color("paper")({theme:n})}(t,n,r),i=function(e,t,n,r){return"primary"===e&&"raised"!==t?Ue.color("primary")({theme:n}):Re(r,n)}(t,n,r,o),a=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(Ue.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?Ue.color("primaryLight")({theme:n}):Ue.color("secondaryLight")({theme:n}):Ue.color("backgroundItemHover")({theme:n})}(t,n,r),u=function(e,t,n){return"raised"===e?Ue.color("paper")({theme:t}):Re(n,t)}(n,r,o);return(0,le.AH)(Ne||(Ne=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 "])),i,o,a,J(.1,s),"dark"!==r.name?ie(.41,o):"transparent",s,u)};var Fe=n(36944),He=n.n(Fe),Be=n(94200),We=function(e){return 0===Object.keys(e).length?Be.A:e};const Ue={color:function(e){return function(t){var n=t.theme;return o()(We(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(We(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(We(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(We(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(We(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(We(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(We(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(We(n),"specificProperties.".concat(e))}}};var Ye=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(He()(Ve(t,e,n),3)).concat(r)},Ve=function(e,t,n){return Math.pow(n,t)*e};const ze={declareScale:Ye,exponentiate:Ve,font:function(e,t){return function(n){return Ye(e,Ue.fontSize("base")(n),Ue.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ye(e,Ue.space("base")(n),Ue.space("factor")(n),t)}}};n(22056);var qe=function(e){(0,Te.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 Ge=Ue},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)}}},44984:(e,t,n)=>{"use strict";n.d(t,{KC:()=>p,K_:()=>g,M7:()=>h,Sk:()=>b,W2:()=>v,Wb:()=>u,Wi:()=>f,Zn:()=>l,f:()=>m,fG:()=>w,hZ:()=>a,ne:()=>d,w2:()=>i,wE:()=>c,wP:()=>y,wU:()=>o});var r=n(73082),o="__n-u-l-l__",i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},a=Object.values(i),s={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:i.admin,widgetConfigKey:void 0},c=function(){return s.backendUrl||""},u=function(e){s.backendUrl=e},l=function(){return s.businessUnit},d=function(e){s.businessUnit=e},f=function(){return s.ruleProvider},p=function(e){s.ruleProvider=e},h=function(){return s.embedType},m=function(){var e=h();return[i.admin,i.legacyAdmin].includes(e)},g=function(){var e=h();return[i.widget].includes(e)},v=function(e){a.includes(e)?s.embedType=e:r.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(a.join(", ")))},y=function(){return s.widgetConfigKey},b=function(e){s.widgetConfigKey=e},w=function(){return{backendUrl:s.backendUrl,businessUnit:s.businessUnit,appContext:{embedType:s.embedType,widgetConfigKey:s.widgetConfigKey}}}},60115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(26396),o=n.n(r),i=n(73082),a=n(44984),s=n(74848);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=function(e){var t=e.mapping;return t[(0,a.M7)()||a.w2.admin]||t[a.w2.admin]};const l=function(e){var t=e.mapping;e.propTypes;return function(e){var n=u({mapping:t});return n||i.A.logError("Unable to render embed component: No embed component defined."),(0,s.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}};const d={EmbedType:a.w2,isInAdminEmbedded:a.f,isInWidgetEmbedded:a.K_,embedStrategyFactory:l,embedStrategy:u,getBackendUrl:a.wE,setBackendUrl:a.Wb,getBusinessUnit:a.Zn,getRuleProvider:a.Wi,setBusinessUnit:a.ne,setRuleProvider:a.KC,getEmbedType:a.M7,setEmbedType:a.W2,getWidgetConfigKey:a.wP,setWidgetConfigKey:a.Sk,asInputProps:a.fG,NULL_BUSINESS_UNIT:a.wU,ALLOWED_EMBED_TYPES:a.hZ,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&(0,a.Wb)(e.backendUrl),e.businessUnit&&(0,a.ne)(e.businessUnit),e.ruleProvider&&(0,a.KC)(e.ruleProvider),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&(0,a.W2)(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&(0,a.Sk)(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},19383:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(93419),o="_tocco_originId";const i={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(85735),a=n.n(i),s=n(60115),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"===a()(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()}}},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 i=e.length;for(n=0;n<i;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="",i=arguments.length;r<i;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),i=n(76314),a=n.n(i)()(o());a.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: #a6a6a6;\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: #1d5d90;\n}\n.react-datepicker__week-number--keyboard-selected {\n border-radius: 0.3rem;\n background-color: #2a87d0;\n color: #fff;\n}\n.react-datepicker__week-number--keyboard-selected:hover {\n background-color: #1d5d90;\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:hover,\n.react-datepicker__month-text:hover,\n.react-datepicker__quarter-text:hover,\n.react-datepicker__year-text: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:hover,\n.react-datepicker__month-text--highlighted:hover,\n.react-datepicker__quarter-text--highlighted:hover,\n.react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\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:hover,\n.react-datepicker__month-text--holidays:hover,\n.react-datepicker__quarter-text--holidays:hover,\n.react-datepicker__year-text--holidays:hover {\n background-color: #cf5300;\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:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n.react-datepicker__month-text--selected:hover,\n.react-datepicker__month-text--in-selecting-range:hover,\n.react-datepicker__month-text--in-range:hover,\n.react-datepicker__quarter-text--selected:hover,\n.react-datepicker__quarter-text--in-selecting-range:hover,\n.react-datepicker__quarter-text--in-range:hover,\n.react-datepicker__year-text--selected:hover,\n.react-datepicker__year-text--in-selecting-range:hover,\n.react-datepicker__year-text--in-range:hover {\n background-color: #1d5d90;\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: #bad9f1;\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:hover,\n.react-datepicker__month-text--keyboard-selected:hover,\n.react-datepicker__quarter-text--keyboard-selected:hover,\n.react-datepicker__year-text--keyboard-selected:hover {\n background-color: #1d5d90;\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:hover,\n.react-datepicker__month-text--disabled:hover,\n.react-datepicker__quarter-text--disabled:hover,\n.react-datepicker__year-text--disabled:hover {\n background-color: transparent;\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: #b3b3b3;\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: #b3b3b3;\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: #b3b3b3;\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=a},27752:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap);"]),a.push([e.id,"\n",""]);const s=a},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,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),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]}},30454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},42838:function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ReactDOM"),require("React")):"function"==typeof define&&define.amd?define(["ReactDOM","React"],t):"object"==typeof exports?exports["tocco-sso-login"]=t(require("ReactDOM"),require("React")):e["tocco-sso-login"]=t(e.ReactDOM,e.React)}(self,((e,t)=>(()=>{var n,r,o,i,a={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,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,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,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},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,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},83712:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},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),i=n(45051),a=n(66923);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},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),i=n(45051),a=n(33694);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},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)},91907:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(36289),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)-.*))$/,i=(0,r.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},36289:(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:()=>r})},83969:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r={animationIterationCount:1,aspectRatio: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}},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(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},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"}}}},98639:(e,t,n)=>{"use strict";var r=n(5556),o=n.n(r);o().string.isRequired,o().string,o().string.isRequired,o().func.isRequired,o().bool,o().bool,o().shape({minLines:o().number,maxLines:o().number,enableBasicAutocompletion:o().bool,enableLiveAutocompletion:o().bool,enableSnippets:o().bool,readOnly:o().bool}),o().oneOfType([o().string,o().shape({entityModel:o().string,field:o().string,key:o().string})]),o().string},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,o=n(72189),i=n.n(o),a=n(96346).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=i()([""])))},47850:(e,t,n)=>{"use strict";n.d(t,{i:()=>p.i,A:()=>f});var r,o=n(26396),i=n.n(o),a=n(4883),s=n.n(a),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){i()(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,a.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)(a.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,{Ay:()=>d});n(5556);var r,o=n(47850),i=n(19230),a=n(72189),s=n.n(a),c=n(96346);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,i.Ed)(),(function(e){return e.breakWords?(0,i.KV)():(0,i.sb)()}),i.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,a=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,x=e.useTitle,O=void 0===x||x,k=v||(r?void 0:y);return(0,l.jsxs)(u,{alt:t,breakWords:r,download:a,href:c,neutral:d,onClick:f,rel:p,tabIndex:h,target:g,title:O?k:void 0,children:[b&&(0,l.jsx)(o.A,{icon:b,position:i.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,i.Ed)(),i.t7.color("secondary"),i.t7.color("text"),i.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?i.t7.color("text"):i.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));(0,c.Ay)(h.N_)(p||(p=s()(["\n ","\n"])),m)},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>U,AE:()=>Y,C$:()=>L,F1:()=>z,Gw:()=>N,Js:()=>K,Li:()=>R,MM:()=>I,Ng:()=>V,QF:()=>j,aB:()=>A,fN:()=>B,oY:()=>W,or:()=>_,pR:()=>C,rY:()=>T,rs:()=>F,v8:()=>H,vB:()=>M,vr:()=>q,zG:()=>G});var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y,b,w,x,O,k,S=n(72189),E=n.n(S),P=n(96346),D=n(19230),_=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)()})),C=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)),T=P.Ay.del.withConfig({displayName:"StyledDel"})(i||(i=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)()})),j=P.Ay.em.withConfig({displayName:"StyledEm"})(a||(a=E()(["\n && {\n ","\n ","\n }\n"])),(0,D.Ed)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,D.KV)():(0,D.sb)()})),A=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)),M=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)()})),N=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)),R=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)()})),U=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)()})),Y=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)()})),V=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)()})),z=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"})(x||(x=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"})(O||(O=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)()})),K=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,{rd:()=>k,Gw:()=>L.Gw,vx:()=>M,oY:()=>L.oY,dV:()=>R,gv:()=>W,Ay:()=>U});n(5556);var r,o,i,a,s,c,u,l,d,f,p,h,m,g,v=n(19230),y=n(72189),b=n.n(y),w=n(96346),x=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})},O=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 x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),S=w.Ay.h2.withConfig({displayName:"StyledH2"})(i||(i=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),E=w.Ay.h3.withConfig({displayName:"StyledH3"})(a||(a=b()(["\n && {\n ","\n ","\n ","\n }\n"])),(function(e){return x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(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 x(e)}),(function(e){return O()}),(function(e){return e.breakWords?(0,v.KV)():(0,v.sb)()})),C=n(74848),T=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)()})),j=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)),A=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)()})),M=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)),N=(0,w.Ay)(I).withConfig({displayName:"StyledOl"})(m||(m=b()(["\n list-style-type: decimal;\n"]))),R=(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 U={H1:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H1":r,i=e.children;return(0,C.jsx)(k,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H2:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H2":r,i=e.children;return(0,C.jsx)(S,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H3:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H3":r,i=e.children;return(0,C.jsx)(E,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H4:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H4":r,i=e.children;return(0,C.jsx)(P,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H5:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H5":r,i=e.children;return(0,C.jsx)(D,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},H6:function(e){var t=e.breakWords,n=void 0===t||t,r=e.styledLike,o=void 0===r?"H6":r,i=e.children;return(0,C.jsx)(_,{breakWords:n,styledLike:o,title:n?void 0:(0,v.GV)(i),children:i})},Dd:function(e){var t=e.breakWords,n=void 0===t||t,r=e.children;return(0,C.jsx)(T,{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,C.jsx)(A,{breakWords:n,title:n?void 0:(0,v.GV)(r),children:r})},Dl:function(e){return(0,C.jsx)(j,{children:e.children})},Li:function(e){var t=e.children;return(0,C.jsx)(M,{children:t})},Ol:function(e){var t=e.children;return(0,C.jsx)(N,{children:t})},Ul:function(e){var t=e.children;return(0,C.jsx)(R,{as:"ul",children:t})},B:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.or,{breakWords:n,title:F(n,o,i),children:i})},Code:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.pR,{title:F(n,o,i),children:i})},Del:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.rY,{breakWords:n,title:F(n,o,i),children:i})},Em:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.QF,{breakWords:n,title:F(n,o,i),children:i})},Figcaption:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.aB,{breakWords:n,title:F(n,o,i),children:i})},I:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.vB,{breakWords:n,title:F(n,o,i),children:i})},Ins:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.MM,{breakWords:n,title:F(n,o,i),children:i})},Label:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.htmlFor;return(0,C.jsx)(L.Gw,{breakWords:n,title:F(n,o,i),htmlFor:a,children:i})},Mark:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Li,{breakWords:n,title:F(n,o,i),children:i})},P:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.id;return(0,C.jsx)(L.C$,{breakWords:n,title:F(n,o,i),id:a,children:i})},Pre:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.rs,{breakWords:n,title:F(n,o,i),children:i})},Q:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Js,{breakWords:n,title:F(n,o,i),children:i})},S:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.v8,{breakWords:n,title:F(n,o,i),children:i})},Small:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.fN,{breakWords:n,title:F(n,o,i),children:i})},Span:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children,a=e.id;return(0,C.jsx)(L.oY,{breakWords:n,title:F(n,o,i),id:a,children:i})},Strong:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.Ng,{breakWords:n,title:F(n,o,i),children:i})},Sub:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.AB,{breakWords:n,title:F(n,o,i),children:i})},Sup:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.AE,{breakWords:n,title:F(n,o,i),children:i})},Time:function(e){var t=e.breakWords,n=void 0!==t&&t,r=e.title,o=e.dateTime,i=e.children;return(0,C.jsx)(L.F1,{breakWords:n,title:r,dateTime:o,children:i})},U:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.vr,{breakWords:n,title:F(n,o,i),children:i})},Var:function(e){var t=e.breakWords,n=void 0===t||t,r=e.useTitle,o=void 0===r||r,i=e.children;return(0,C.jsx)(L.zG,{breakWords:n,title:F(n,o,i),children:i})}}},19230:(e,t,n)=>{"use strict";n.d(t,{KY:()=>a,Db:()=>i,h7:()=>de,Ed:()=>fe,sb:()=>pe,KV:()=>he,xX:()=>Pe,GV:()=>Ie,x5:()=>Le,CN:()=>De,hs:()=>ze,w4:()=>Ue,t7:()=>Ge,LE:()=>qe});var r=n(58156),o=n.n(r),i={base:function(e){var t=e.theme;return o()(t,"colors.text")},shade1:function(e){var t=e.theme;return o()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return o()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return o()(t,"colors.signal.info")}},a={base:function(e){var t=e.theme;return o()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return o()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return o()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},s=n(72189),c=n.n(s),u=n(96346);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 x(e,t,n){return w(e)+","+w(t)+","+w(n)}function O(e,t,n,r){if(void 0===r&&(r=x),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,u=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,u=a):o>=3&&o<4?(c=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var l=n-i/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,C=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,T=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,j=/^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 A(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 i=C.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=T.exec(t);if(a){var s="rgb("+O(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[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=j.exec(t.substring(0,50));if(u){var l="rgb("+O(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 M(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=i-a,u=s>.5?c/(2-i-a):c/(i+a);switch(i){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}}(A(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 N(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function R(e){return N(Math.round(255*e))}function L(e,t,n){return I("#"+R(e)+R(t)+R(n))}function F(e,t,n){return O(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("+O(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("+O(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("#"+N(e)+N(t)+N(n));if("object"==typeof e&&void 0===t&&void 0===n)return I("#"+N(e.red)+N(e.green)+N(e.blue));throw new m(6)}function U(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=A(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 Y=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},V=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},z=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},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(V(e))return U(e);if(Y(e))return W(e);if(q(e))return B(e);if(z(e))return H(e);throw new m(8)}function K(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):K(e,t,r)}}function $(e){return K(e,e.length,[])}$((function(e,t){if("transparent"===t)return t;var n=M(t);return G(l({},n,{hue:n.hue+parseFloat(e)}))}));function X(e,t,n){return Math.max(e,Math.min(t,n))}$((function(e,t){if("transparent"===t)return t;var n=M(t);return G(l({},n,{lightness:X(0,1,n.lightness-parseFloat(e))}))}));$((function(e,t){if("transparent"===t)return t;var n=M(t);return G(l({},n,{saturation:X(0,1,n.saturation-parseFloat(e))}))}));function Q(e){if("transparent"===e)return 0;var t=A(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Z(e,t){var n=Q(e),r=Q(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}var J=$((function(e,t){if("transparent"===t)return t;var n=M(t);return G(l({},n,{lightness:X(0,1,n.lightness+parseFloat(e))}))})),ee=J;var te=$((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=A(t),o=l({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=A(n),a=l({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),s=o.alpha-a.alpha,c=2*parseFloat(e)-1,u=((c*s==-1?c:c+s)/(1+c*s)+1)/2,d=1-u;return U({red:Math.floor(o.red*u+a.red*d),green:Math.floor(o.green*u+a.green*d),blue:Math.floor(o.blue*u+a.blue*d),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),ne=te;$((function(e,t){if("transparent"===t)return t;var n=A(t);return U(l({},n,{alpha:X(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var re="#000",oe="#fff";$((function(e,t){if("transparent"===t)return t;var n=M(t);return G(l({},n,{saturation:X(0,1,n.saturation+parseFloat(e))}))}));$((function(e,t){return"transparent"===t?t:G(l({},M(t),{hue:parseFloat(e)}))}));$((function(e,t){return"transparent"===t?t:G(l({},M(t),{lightness:parseFloat(e)}))}));$((function(e,t){return"transparent"===t?t:G(l({},M(t),{saturation:parseFloat(e)}))}));$((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(0, 0, 0)",t)}));var ie=$((function(e,t){return"transparent"===t?t:ne(parseFloat(e),"rgb(255, 255, 255)",t)})),ae=ie;var se=$((function(e,t){if("transparent"===t)return t;var n=A(t);return U(l({},n,{alpha:X(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||Ue.color("text"),e.fontFamily||Ue.fontFamily("regular"),e.fontSize||ze.font(0),e.fontStyle||"normal",e.fontWeight||Ue.fontWeight("regular"),e.lineHeight||Ue.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"},xe={APPEND:"append",BETWEEN:"between",PREPEND:"prepend",SOLE:"sole"},Oe=ge().oneOf(Object.values(ve)),ke=ge().oneOf(Object.values(ye)),Se=ge().oneOf(Object.values(we)),Ee=ge().oneOf(Object.values(xe));const Pe={animation:ve,animationPropTypes:Oe,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:xe,positionPropTypes:Ee};var De="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;n(71086);var _e=n(85735),Ce=n.n(_e),Te=n(4883),je=n.n(Te),Ae=function(e){var t="";return je().Children.map(e,(function(e,n){"string"==typeof e||"number"==typeof e?t="".concat(t).concat(e):"object"===Ce()(e)&&e.props.children?t="".concat(t).concat(Ae(e.props.children)):"object"===Ce()(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 Ie=Ae;var Ne,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=Q(e)>.179,i=o?t:n;return!r||Z(e,i)>=4.5?i:o?re:oe}(e,Ue.color("text")({theme:t}),Ue.color("paper")({theme:t}))};const Le=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?Ue.color("primary")({theme:n}):r?Ue.color("secondary")({theme:n}):Ue.color("paper")({theme:n})}(t,n,r),i=function(e,t,n,r){return"primary"===e&&"raised"!==t?Ue.color("primary")({theme:n}):Re(r,n)}(t,n,r,o),a=function(e,t,n){return"primary"!==e&&"raised"===t?"0px 0px 0px 1px ".concat(Ue.color("secondaryLight")({theme:n})," inset;"):"none"}(t,n,r),s=function(e,t,n){return"raised"===t?"primary"===e?Ue.color("primaryLight")({theme:n}):Ue.color("secondaryLight")({theme:n}):Ue.color("backgroundItemHover")({theme:n})}(t,n,r),l=function(e,t,n){return"raised"===e?Ue.color("paper")({theme:t}):Re(n,t)}(n,r,o);return(0,u.AH)(Ne||(Ne=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 "])),i,o,a,ee(.1,s),"dark"!==r.name?ae(.41,o):"transparent",s,l)};var Fe=n(36944),He=n.n(Fe),Be=n(94200),We=function(e){return 0===Object.keys(e).length?Be.A:e};const Ue={color:function(e){return function(t){var n=t.theme;return o()(We(n),"colors.".concat(e))}},fontFamily:function(e){return function(t){var n=t.theme;return o()(We(n),"fontFamily.".concat(e))}},fontSize:function(e){return function(t){var n=t.theme;return o()(We(n),"fontSize.".concat(e))}},fontWeight:function(e){return function(t){var n=t.theme;return o()(We(n),"fontWeights.".concat(e))}},lineHeight:function(e){return function(t){var n=t.theme;return o()(We(n),"lineHeights.".concat(e))}},radii:function(e){return function(t){var n=t.theme;return o()(We(n),"radii.".concat(e))}},space:function(e){return function(t){var n=t.theme;return o()(We(n),"space.".concat(e))}},specificProperty:function(e){return function(t){var n=t.theme;return o()(We(n),"specificProperties.".concat(e))}}};var Ye=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rem";return"".concat(He()(Ve(t,e,n),3)).concat(r)},Ve=function(e,t,n){return Math.pow(n,t)*e};const ze={declareScale:Ye,exponentiate:Ve,font:function(e,t){return function(n){return Ye(e,Ue.fontSize("base")(n),Ue.fontSize("factor")(n),t)}},space:function(e,t){return function(n){return Ye(e,Ue.space("base")(n),Ue.space("factor")(n),t)}}};n(22056);var qe=function(e){(0,Te.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 Ge=Ue},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)}}},44984:(e,t,n)=>{"use strict";n.d(t,{KC:()=>p,K_:()=>g,M7:()=>h,Sk:()=>b,W2:()=>v,Wb:()=>u,Wi:()=>f,Zn:()=>l,f:()=>m,fG:()=>w,hZ:()=>a,ne:()=>d,w2:()=>i,wE:()=>c,wP:()=>y,wU:()=>o});var r=n(73082),o="__n-u-l-l__",i={admin:"admin",legacyAdmin:"legacy-admin",widget:"widget",legacyWidget:"legacy-widget"},a=Object.values(i),s={backendUrl:void 0,businessUnit:void 0,ruleProvider:void 0,embedType:i.admin,widgetConfigKey:void 0},c=function(){return s.backendUrl||""},u=function(e){s.backendUrl=e},l=function(){return s.businessUnit},d=function(e){s.businessUnit=e},f=function(){return s.ruleProvider},p=function(e){s.ruleProvider=e},h=function(){return s.embedType},m=function(){var e=h();return[i.admin,i.legacyAdmin].includes(e)},g=function(){var e=h();return[i.widget].includes(e)},v=function(e){a.includes(e)?s.embedType=e:r.A.logError("'".concat(e,"' as embedType is not allowed. Allowed embedTypes are: ").concat(a.join(", ")))},y=function(){return s.widgetConfigKey},b=function(e){s.widgetConfigKey=e},w=function(){return{backendUrl:s.backendUrl,businessUnit:s.businessUnit,appContext:{embedType:s.embedType,widgetConfigKey:s.widgetConfigKey}}}},60115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(26396),o=n.n(r),i=n(73082),a=n(44984),s=n(74848);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=function(e){var t=e.mapping;return t[(0,a.M7)()||a.w2.admin]||t[a.w2.admin]};const l=function(e){var t=e.mapping;e.propTypes;return function(e){var n=u({mapping:t});return n||i.A.logError("Unable to render embed component: No embed component defined."),(0,s.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}};const d={EmbedType:a.w2,isInAdminEmbedded:a.f,isInWidgetEmbedded:a.K_,embedStrategyFactory:l,embedStrategy:u,getBackendUrl:a.wE,setBackendUrl:a.Wb,getBusinessUnit:a.Zn,getRuleProvider:a.Wi,setBusinessUnit:a.ne,setRuleProvider:a.KC,getEmbedType:a.M7,setEmbedType:a.W2,getWidgetConfigKey:a.wP,setWidgetConfigKey:a.Sk,asInputProps:a.fG,NULL_BUSINESS_UNIT:a.wU,ALLOWED_EMBED_TYPES:a.hZ,setInputEnvs:function(e){var t,n,r,o;(e.backendUrl&&(0,a.Wb)(e.backendUrl),e.businessUnit&&(0,a.ne)(e.businessUnit),e.ruleProvider&&(0,a.KC)(e.ruleProvider),null!==(t=e.appContext)&&void 0!==t&&t.embedType)&&(0,a.W2)(null===(r=e.appContext)||void 0===r?void 0:r.embedType);null!==(n=e.appContext)&&void 0!==n&&n.widgetConfigKey&&(0,a.Sk)(null===(o=e.appContext)||void 0===o?void 0:o.widgetConfigKey)}}},19383:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(93419),o="_tocco_originId";const i={getOriginId:function(){if(sessionStorage.getItem(o))return sessionStorage.getItem(o);var e="".concat("client_","_").concat((0,r.v4)());return sessionStorage.setItem(o,e),e}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(26396),o=n.n(r),i=n(85735),a=n.n(i),s=n(60115),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"===a()(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()}}},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 i=e.length;for(n=0;n<i;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="",i=arguments.length;r<i;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),i=n(76314),a=n.n(i)()(o());a.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: #a6a6a6;\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: #1d5d90;\n}\n.react-datepicker__week-number--keyboard-selected {\n border-radius: 0.3rem;\n background-color: #2a87d0;\n color: #fff;\n}\n.react-datepicker__week-number--keyboard-selected:hover {\n background-color: #1d5d90;\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:hover,\n.react-datepicker__month-text:hover,\n.react-datepicker__quarter-text:hover,\n.react-datepicker__year-text: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:hover,\n.react-datepicker__month-text--highlighted:hover,\n.react-datepicker__quarter-text--highlighted:hover,\n.react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\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:hover,\n.react-datepicker__month-text--holidays:hover,\n.react-datepicker__quarter-text--holidays:hover,\n.react-datepicker__year-text--holidays:hover {\n background-color: #cf5300;\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:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n.react-datepicker__month-text--selected:hover,\n.react-datepicker__month-text--in-selecting-range:hover,\n.react-datepicker__month-text--in-range:hover,\n.react-datepicker__quarter-text--selected:hover,\n.react-datepicker__quarter-text--in-selecting-range:hover,\n.react-datepicker__quarter-text--in-range:hover,\n.react-datepicker__year-text--selected:hover,\n.react-datepicker__year-text--in-selecting-range:hover,\n.react-datepicker__year-text--in-range:hover {\n background-color: #1d5d90;\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: #bad9f1;\n color: rgb(0, 0, 0);\n}\n.react-datepicker__day--keyboard-selected:hover,\n.react-datepicker__month-text--keyboard-selected:hover,\n.react-datepicker__quarter-text--keyboard-selected:hover,\n.react-datepicker__year-text--keyboard-selected:hover {\n background-color: #1d5d90;\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:hover,\n.react-datepicker__month-text--disabled:hover,\n.react-datepicker__quarter-text--disabled:hover,\n.react-datepicker__year-text--disabled:hover {\n background-color: transparent;\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: #b3b3b3;\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: #b3b3b3;\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: #b3b3b3;\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=a},27752:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap);"]),a.push([e.id,"\n",""]);const s=a},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,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),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]}},30454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},42838:function(e){
|
|
2
2
|
/*! @license DOMPurify 3.1.6 | (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.6/LICENSE */
|
|
3
3
|
e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:c,construct:u}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=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=O(Array.prototype.forEach),d=O(Array.prototype.pop),f=O(Array.prototype.push),p=O(String.prototype.toLowerCase),h=O(String.prototype.toString),m=O(String.prototype.match),g=O(String.prototype.replace),v=O(String.prototype.indexOf),y=O(String.prototype.trim),b=O(Object.prototype.hasOwnProperty),w=O(RegExp.prototype.test),x=k(TypeError);function O(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 i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=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 O(n.get);if("function"==typeof n.value)return O(n.value)}e=r(e)}function n(){return null}return n}const _=i(["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"]),C=i(["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"]),T=i(["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"]),j=i(["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"]),A=i(["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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=i(["#text"]),N=i(["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"]),R=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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=i(["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=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),W=a(/\${[\w\W]*}/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),Y=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),K=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var $=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:B,TMPLIT_EXPR:W,DATA_ATTR:U,ARIA_ATTR:Y,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:q,DOCTYPE_NAME:G,CUSTOM_ELEMENT:K});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q=function(){return"undefined"==typeof window?null:window},Z=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 J(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const n=e=>J(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==X.document)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:O,Element:k,NodeFilter:E,NamedNodeMap:H=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:U}=t,Y=k.prototype,z=D(Y,"cloneNode"),q=D(Y,"remove"),K=D(Y,"nextSibling"),ee=D(Y,"childNodes"),te=D(Y,"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:ie,createDocumentFragment:ae,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}=$;let{IS_ALLOWED_URI:ye}=$,be=null;const we=S({},[..._,...C,...T,...A,...I]);let xe=null;const Oe=S({},[...N,...R,...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,Ce=!0,Te=!1,je=!0,Ae=!1,Me=!1,Ie=!1,Ne=!1,Re=!1,Le=!1,Fe=!0,He=!1;const Be="user-content-";let We=!0,Ue=!1,Ye={},Ve=null;const ze=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 Ke=null;const $e=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Je=Ze,et=!1,tt=null;const nt=S({},[Xe,Qe,Ze],h);let rt=null;const ot=["application/xhtml+xml","text/html"],it="text/html";let at=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)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?h:p,be=b(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,at):we,xe=b(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,at):Oe,tt=b(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,h):nt,Ke=b(e,"ADD_URI_SAFE_ATTR")?S(P($e),e.ADD_URI_SAFE_ATTR,at):$e,qe=b(e,"ADD_DATA_URI_TAGS")?S(P(Ge),e.ADD_DATA_URI_TAGS,at):Ge,Ve=b(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,at):ze,Se=b(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,at):{},Ee=b(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,at):{},Ye=!!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,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Te=e.SAFE_FOR_TEMPLATES||!1,je=!1!==e.SAFE_FOR_XML,Ae=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Re=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,Ue=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||V,Je=e.NAMESPACE||Ze,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),Te&&(De=!1),Re&&(Ne=!0),Ye&&(be=S({},I),xe=[],!0===Ye.html&&(S(be,_),S(xe,N)),!0===Ye.svg&&(S(be,C),S(xe,R),S(xe,F)),!0===Ye.svgFilters&&(S(be,T),S(xe,R),S(xe,F)),!0===Ye.mathMl&&(S(be,A),S(xe,L),S(xe,F))),e.ADD_TAGS&&(be===we&&(be=P(be)),S(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(xe===Oe&&(xe=P(xe)),S(xe,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&S(Ke,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ve===ze&&(Ve=P(Ve)),S(Ve,e.FORBID_CONTENTS,at)),We&&(be["#text"]=!0),Ae&&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 x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=Z(U,a)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),st=e}},dt=S({},["mi","mo","mn","ms","mtext"]),ft=S({},["foreignobject","annotation-xml"]),pt=S({},["title","style","font","a","script"]),ht=S({},[...C,...T,...j]),mt=S({},[...A,...M]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ht[n]):e.namespaceURI===Xe?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Qe?"math"===n&&ft[r]:Boolean(mt[n]):e.namespaceURI===Ze?!(t.namespaceURI===Qe&&!ft[r])&&!(t.namespaceURI===Xe&&!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&&!xe[e])if(Ne||Re)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&&Je===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Je===Ze)try{t=(new W).parseFromString(o,rt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?re:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Je===Ze?se.call(t,Ae?"html":"body")[0]:Ae?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},xt=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)},Ot=function(e){return"function"==typeof O&&e instanceof O},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),xt(e))return vt(e),!0;const r=at(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===X.progressingInstruction)return vt(e),!0;if(je&&e.nodeType===X.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&&!Ve[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=z(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(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)?(Te&&e.nodeType===X.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(!xe[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(Ke[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:xe};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:c}=i,u=at(a);let f="value"===a?c:y(c);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,kt("uponSanitizeAttribute",e,r),f=r.attrValue,je&&w(/((--!?|])>)|<\/(style|title)/i,f)){yt(a,e);continue}if(r.forceKeepAttr)continue;if(yt(a,e),!r.keepAttr)continue;if(!Ce&&w(/\/>/i,f)){yt(a,e);continue}Te&&l([le,de,fe],(e=>{f=g(f,e," ")}));const p=at(e.nodeName);if(Et(p,u,f)){if(!He||"id"!==u&&"name"!==u||(yt(a,e),f=Be+f),ne&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(s);else switch(U.getAttributeType(p,u)){case"TrustedHTML":f=ne.createHTML(f);break;case"TrustedScriptURL":f=ne.createScriptURL(f)}try{s?e.setAttributeNS(s,a,f):e.setAttribute(a,f),xt(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,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||lt(t),n.removed=[],"string"==typeof e&&(Ue=!1),Ue){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||Se[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof O)r=bt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===X.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ne&&!Te&&!Ae&&-1===e.indexOf("<"))return ne&&Le?ne.createHTML(e):e;if(r=bt(e),!r)return Ne?null:Le?re:""}r&&Ie&&vt(r.firstChild);const u=wt(Ue?e:r);for(;a=u.nextNode();)St(a)||(a.content instanceof c&&_t(a.content),Dt(a));if(Ue)return e;if(Ne){if(Re)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xe.shadowroot||xe.shadowrootmode)&&(s=ce.call(o,s,!0)),s}let d=Ae?r.outerHTML:r.innerHTML;return Ae&&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),Te&&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]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||lt({});const r=at(e),o=at(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 J()}()},73055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},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},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;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 a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var v=a[g];if(!(i[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),i=n(66721),a=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=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},80079:(e,t,n)=>{var r=n(63702),o=n(70080),i=n(24739),a=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=i,c.prototype.has=a,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),i=n(90289),a=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=i,c.prototype.has=a,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),i=n(51459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},37217:(e,t,n)=>{var r=n(80079),o=n(51420),i=n(90938),a=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=i,u.prototype.get=a,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,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),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,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},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),i=n(56449),a=n(3656),s=n(30361),c=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),d=!n&&!l&&a(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,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)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),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,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,i){t(o,e,n(e),i)})),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),i=n(16547),a=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),x=n(23805),O=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,C,T,j,A){var M,I=1&n,N=2&n,R=4&n;if(C&&(M=j?C(t,T,j,A):C(t)),void 0!==M)return M;if(!x(t))return t;var L=y(t);if(L){if(M=m(t),!I)return u(t,M)}else{var F=h(t),H=F==P||"[object GeneratorFunction]"==F;if(b(t))return c(t,I);if(F==D||F==E||H&&!j){if(M=N||H?{}:v(t),!I)return N?d(t,s(M,t)):l(t,a(M,t))}else{if(!_[F])return j?t:{};M=g(t,F,I)}}A||(A=new r);var B=A.get(t);if(B)return B;A.set(t,M),O(t)?t.forEach((function(r){M.add(e(r,n,C,r,t,A))})):w(t)&&t.forEach((function(r,o){M.set(o,e(r,n,C,o,t,A))}));var W=L?void 0:(R?N?p:f:N?S:k)(t);return o(W||t,(function(r,o){W&&(r=t[o=r]),i(M,o,e(r,n,C,o,t,A))})),M}},39344:(e,t,n)=>{var r=n(23805),o=Object.create,i=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=i},83915:(e,t,n)=>{var r=n(38859),o=n(15325),i=n(29905),a=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=a(t,s(n))),u?(d=i,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,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},83120:(e,t,n)=>{var r=n(14528),o=n(45891);e.exports=function e(t,n,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c<u;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(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,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},72552:(e,t,n)=>{var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(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),i=n(76959);e.exports=function(e,t,n){return t==t?i(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,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=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),x=b?f:s(t),O=(w=w==d?p:w)==p,k=(x=x==d?p:x)==p,S=w==x;if(S&&u(e)){if(!u(t))return!1;y=!0,O=!1}if(S&&!O)return v||(v=new r),y||l(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var E=O&&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),a(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,i){var a=n.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=n[a])[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(i)var h=i(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,i,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),i=n(23805),a=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!(!i(e)||o(e))&&(r(e)?f:s).test(a(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),i=n(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},15389:(e,t,n)=>{var r=n(93663),o=n(87978),i=n(83488),a=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903:(e,t,n)=>{var r=n(23805),o=n(55527),i=n(90181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(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),i=n(80631),a=n(28586),s=n(30756),c=n(89578),u=n(77797);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},85250:(e,t,n)=>{var r=n(37217),o=n(87805),i=n(86649),a=n(42824),s=n(23805),c=n(37241),u=n(14974);e.exports=function e(t,n,l,d,f){t!==n&&i(n,(function(i,c){if(f||(f=new r),s(i))a(t,n,c,l,e,d,f);else{var p=d?d(u(t,c),i,c+"",t,n,f):void 0;void 0===p&&(p=i),o(t,c,p)}}),c)}},42824:(e,t,n)=>{var r=n(87805),o=n(93290),i=n(71961),a=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,x){var O=g(e,n),k=g(t,n),S=x.get(k);if(S)r(e,n,S);else{var E=w?w(O,k,n+"",e,t,x):void 0,P=void 0===E;if(P){var D=u(k),_=!D&&d(k),C=!D&&!_&&m(k);E=k,D||_||C?u(O)?E=O:l(O)?E=a(O):_?(P=!1,E=o(k,!0)):C?(P=!1,E=i(k,!0)):E=[]:h(k)||c(k)?(E=O,c(O)?E=v(O):p(O)&&!f(O)||(E=s(k))):P=!1}P&&(x.set(k,E),b(E,k,y,w,x),x.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),i=n(31769);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var u=t[a],l=r(e,u);n(l,u)&&o(c,i(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,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),c=Array(s);s--;)c[i?s:++a]=e,e+=o;return c}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},69302:(e,t,n)=>{var r=n(83488),o=n(56757),i=n(32865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},73170:(e,t,n)=>{var r=n(16547),o=n(31769),i=n(30361),a=n(23805),s=n(77797);e.exports=function(e,t,n,c){if(!a(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=a(m)?m:i(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 i=Array(o);++r<o;)i[r]=e[r+t];return i}},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},54128:(e,t,n)=>{var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},55765:(e,t,n)=>{var r=n(38859),o=n(15325),i=n(29905),a=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=i;else if(d>=200){var m=t?null:s(e);if(m)return c(m);f=!1,l=a,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),i=n(68969),a=n(77797);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},19219:e=>{e.exports=function(e,t){return e.has(t)}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),i=n(61802),a=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(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,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.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,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.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,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?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},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),i=n(15389),a=n(56449);e.exports=function(e,t){return function(n,s){var c=a(n)?r:o,u=t?t():{};return c(n,e,i(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,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}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 i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),i=n(17400);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},73893:(e,t,n)=>{var r=n(9325),o=n(61489),i=n(99374),a=n(13222),s=r.isFinite,c=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:c(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+n));return+((r=(a(u)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),i=n(84247),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},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),i=n(19219);e.exports=function(e,t,n,a,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(a)var b=u?a(y,v,h,t,e,c):a(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(!i(g,t)&&(v===e||s(v,e,n,a,c)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},21986:(e,t,n)=>{var r=n(51873),o=n(37828),i=n(75288),a=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 i(+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=a(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,i,a,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(i)var b=c?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),i=n(32865);e.exports=function(e){return i(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),i=n(95950);e.exports=function(e){return r(e,i,o)}},83349:(e,t,n)=>{var r=n(82199),o=n(86375),i=n(37241);e.exports=function(e){return r(e,i,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 i=t[n],a=e[i];t[n]=[i,a,r(a)]}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,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},86375:(e,t,n)=>{var r=n(14528),o=n(28879),i=n(4664),a=n(63345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=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(i),y=u(a),b=u(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=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),i=n(56449),a=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)&&a(f,l)&&(i(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),i=n(73201),a=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 i(e);case"[object Symbol]":return a(e)}}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),i=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),i=n(56449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},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),i=n(30361),a=n(23805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},28586:(e,t,n)=>{var r=n(56449),o=n(44394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||(a.test(e)||!i.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),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i 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),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||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,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.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 i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];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,i=r||o||Function("return this")();e.exports=i},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),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}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,i=/\\(\\)?/g,a=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(i,"$1"):n||e)})),t}));e.exports=a},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""}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},38221:(e,t,n)=>{var r=n(23805),o=n(10124),i=n(99374),a=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 x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,l-(e-h)):n}(e))}function x(e){return f=void 0,v&&c?y(e):(c=u=void 0,d)}function O(){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=i(t)||0,r(n)&&(m=!!n.leading,l=(g="maxWait"in n)?a(i(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=u=f=void 0},O.flush=function(){return void 0===f?d:x(o())},O}},66245:(e,t,n)=>{var r=n(83915),o=n(83120),i=n(69302),a=n(83693),s=i((function(e,t){return a(e)?r(e,o(t,1,a,!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(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},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),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.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),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?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),i=n(72428),a=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)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(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),i=n(86009),a=i&&i.isMap,s=a?o(a):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),i=n(40346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(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),i=n(86009),a=i&&i.isSet,s=a?o(a):r;e.exports=s},85015:(e,t,n)=>{var r=n(72552),o=n(56449),i=n(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(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),i=n(86009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},37241:(e,t,n)=>{var r=n(70695),o=n(72903),i=n(64894);e.exports=function(e){return i(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}},73916:(e,t,n)=>{var r=n(43360),o=n(30641),i=n(15389);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},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],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};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),i=n(19931),a=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=a(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--;)i(n,t[d]);return n}));e.exports=d},42194:(e,t,n)=>{var r=n(15389),o=n(6048),i=n(71086);e.exports=function(e,t){return i(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),i=n(97420),a=n(83349);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},50583:(e,t,n)=>{var r=n(47237),o=n(17255),i=n(28586),a=n(77797);e.exports=function(e){return i(e)?r(a(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),i=n(15389),a=n(85558),s=n(56449);e.exports=function(e,t,n){var c=s(e)?r:a,u=arguments.length<3;return c(e,i(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 i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},17400:e=>{e.exports=function(e){return e}},61489:e=>{e.exports=function(e){return e}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+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),i=n(30641),a=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=a(t,4),null==n){var m=e&&e.constructor;n=h?p?new m:[]:d(e)&&l(m)?o(s(e)):{}}return(h?r:i)(e,(function(e,r,o){return t(n,e,r,o)})),n}},80299:(e,t,n)=>{var r=n(83120),o=n(69302),i=n(55765),a=n(83693),s=o((function(e){return i(r(e,1,a,!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";
|
|
4
4
|
/*
|
|
@@ -75,11 +75,11 @@ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hre
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},93419:(e,t,n)=>{"use strict";n.d(t,{v4:()=>O});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const o=function(e){return"string"==typeof e&&r.test(e)};const i=function(e){if(!o(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};for(var a=[],s=0;s<256;++s)a.push((s+256).toString(16).slice(1));function c(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}var u,l=new Uint8Array(16);function d(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(l)}function f(e,t,n){function r(e,r,o,a){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=i(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){a=a||0;for(var l=0;l<16;++l)o[a+l]=u[l];return o}return c(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,o,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function g(e,t,n,r,o,i,a){return m(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return m(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return m(t^n^r,e,t,o,i,a)}function b(e,t,n,r,o,i,a){return m(n^(t|~r),e,t,o,i,a)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=o,l=i;n=g(n,r,o,i,e[a],7,-680876936),i=g(i,n,r,o,e[a+1],12,-389564586),o=g(o,i,n,r,e[a+2],17,606105819),r=g(r,o,i,n,e[a+3],22,-1044525330),n=g(n,r,o,i,e[a+4],7,-176418897),i=g(i,n,r,o,e[a+5],12,1200080426),o=g(o,i,n,r,e[a+6],17,-1473231341),r=g(r,o,i,n,e[a+7],22,-45705983),n=g(n,r,o,i,e[a+8],7,1770035416),i=g(i,n,r,o,e[a+9],12,-1958414417),o=g(o,i,n,r,e[a+10],17,-42063),r=g(r,o,i,n,e[a+11],22,-1990404162),n=g(n,r,o,i,e[a+12],7,1804603682),i=g(i,n,r,o,e[a+13],12,-40341101),o=g(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=g(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=b(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=b(i,n,r,o,e[a+7],10,1126891415),o=b(o,i,n,r,e[a+14],15,-1416354905),r=b(r,o,i,n,e[a+5],21,-57434055),n=b(n,r,o,i,e[a+12],6,1700485571),i=b(i,n,r,o,e[a+3],10,-1894986606),o=b(o,i,n,r,e[a+10],15,-1051523),r=b(r,o,i,n,e[a+1],21,-2054922799),n=b(n,r,o,i,e[a+8],6,1873313359),i=b(i,n,r,o,e[a+15],10,-30611744),o=b(o,i,n,r,e[a+6],15,-1560198380),r=b(r,o,i,n,e[a+13],21,1309151649),n=b(n,r,o,i,e[a+4],6,-145523070),i=b(i,n,r,o,e[a+11],10,-1120210379),o=b(o,i,n,r,e[a+2],15,718787259),r=b(r,o,i,n,e[a+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),i=h(i,l)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(p(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};f("v3",48,w);const x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const O=function(e,t,n){if(x.randomUUID&&!t&&!e)return x.randomUUID();var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)};function k(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function S(e,t){return e<<t|e>>>32-t}const E=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=S(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),O=S(m,5)+k(x,g,v,y)+b+t[x]+f[w]>>>0;b=y,y=v,v=S(g,30)>>>0,g=m,m=O}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};f("v5",80,E)},4883:e=>{"use strict";e.exports=t},81845:t=>{"use strict";t.exports=e},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>y,batch:()=>Se,connect:()=>ye,createDispatchHook:()=>Oe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>xe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var x=w(),O=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),D=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),A=Symbol.for("react.context"),M=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),B=L;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case P:{let n=e.type;switch(n){case _:case T:case C:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case A:case I:case F:case L:case j:return e;default:return t}}}}case D:return t}}}(e)===L}function U(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function Y(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function V(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function z(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=V(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=V(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function X(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var Q=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=Q||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return W(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?z(e):q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?z(e):q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return U(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return me;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(i),x=m.useRef(void 0),O=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,O,i,x,v]);try{E=he(D,P,f?()=>p(f(),i):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,x.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},_):_),[a,_,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function we(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var xe=we();function Oe(e=y){let t=e===y?xe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=Oe(),Se=K;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},95361:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r.B1,BN:()=>g,ER:()=>v,Ej:()=>y,RK:()=>c,UE:()=>s,UU:()=>u,__:()=>a,cY:()=>m,jD:()=>f,mG:()=>h,rD:()=>i});var r=n(97193);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),c=(0,r.sq)(s),u=(0,r.C0)(t),l="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let h;switch(u){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1)}return h}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(l,r,u),p=r,h={},m=0;for(let n=0;n<c.length;n++){const{name:a,fn:g}=c[n],{x:v,y,data:b,reset:w}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[a]:{...h[a],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:f}=o(l,p,u))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=c[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:d=0}=(0,r._3)(e,t)||{};if(null==l)return{};const f=(0,r.nI)(d),p={x:n,y:o},h=(0,r.Dz)(i),m=(0,r.sq)(h),g=await s.getDimensions(l),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[h]-p[h]-a.floating[m],O=p[h]-a.reference[h],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let S=k?k[w]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=c.floating[w]||a.floating[m]);const E=x/2-O/2,P=S/2-g[m]/2-1,D=(0,r.jk)(f[y],P),_=(0,r.jk)(f[b],P),C=D,T=S-g[m]-_,j=S/2-g[m]/2+E,A=(0,r.qE)(C,j,T),M=!u.arrow&&null!=(0,r.Sg)(i)&&j!==A&&a.reference[m]/2-(j<C?D:_)-g[m]/2<0,I=M?j<C?j-C:j-T:0;return{[h]:p[h]+I,data:{[h]:A,centerOffset:j-A-I,...M&&{alignmentOffset:I}},reset:M}}});const c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:s,middlewareData:c,placement:u,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:p,allowedPlacements:h=r.DD,autoAlignment:m=!0,...g}=(0,r._3)(e,t),v=void 0!==p||h===r.DD?function(e,t,n){return(e?[...n.filter((t=>(0,r.Sg)(t)===e)),...n.filter((t=>(0,r.Sg)(t)!==e))]:n.filter((e=>(0,r.C0)(e)===e))).filter((n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n))}(p||null,m,h):h,y=await a(t,g),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=v[b];if(null==w)return{};const x=(0,r.w7)(w,s,await(null==l.isRTL?void 0:l.isRTL(d.floating)));if(u!==w)return{reset:{placement:v[0]}};const O=[y[(0,r.C0)(w)],y[x[0]],y[x[1]]],k=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:O}],S=v[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};const E=k.map((e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(i=E.filter((e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return P!==u?{data:{index:b+1,overflows:k},reset:{placement:P}}:{}}}},u=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(i),w=(0,r.C0)(u)===u,x=await(null==l.isRTL?void 0:l.isRTL(d.floating)),O=h||(w||!v?[(0,r.bV)(u)]:(0,r.WJ)(u));h||"none"===g||O.push(...(0,r.lP)(u,v,g,x));const k=[u,...O],S=await a(t,y),E=[];let P=(null==(o=s.flip)?void 0:o.overflows)||[];if(f&&E.push(S[b]),p){const e=(0,r.w7)(i,c,x);E.push(S[e[0]],S[e[1]])}if(P=[...P,{placement:i,overflows:E}],!E.every((e=>e<=0))){var D,_;const e=((null==(D=s.flip)?void 0:D.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(_=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var C;const e=null==(C=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=u}if(i!==n)return{reset:{placement:n}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return r.r_.some((t=>e[t]>=0))}const f=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r._3)(e,t);switch(o){case"referenceHidden":{const e=l(await a(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:d(e)}}}case"escaped":{const e=l(await a(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:d(e)}}}default:return{}}}}};function p(e){const t=(0,r.jk)(...e.map((e=>e.left))),n=(0,r.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.T9)(...e.map((e=>e.right)))-t,height:(0,r.T9)(...e.map((e=>e.bottom)))-n}}const h=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:a,strategy:s}=t,{padding:c=2,x:u,y:l}=(0,r._3)(e,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>(0,r.B1)(p(e))))}(d),h=(0,r.B1)(p(d)),m=(0,r.nI)(c);const g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=u&&null!=l)return f.find((e=>u>e.left-m.left&&u<e.right+m.right&&l>e.top-m.top&&l<e.bottom+m.bottom))||h;if(f.length>=2){if("y"===(0,r.TV)(n)){const e=f[0],t=f[f.length-1],o="top"===(0,r.C0)(n),i=e.top,a=t.bottom,s=o?e.left:t.left,c=o?e.right:t.right;return{top:i,bottom:a,left:s,right:c,width:c-s,height:a-i,x:s,y:i}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...f.map((e=>e.right))),o=(0,r.jk)(...f.map((e=>e.left))),i=f.filter((n=>e?n.left===o:n.right===t)),a=i[0].top,s=i[i.length-1].bottom;return{top:a,bottom:s,left:o,right:t,width:t-o,height:s-a,x:o,y:a}}return h}},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};const m=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:c}=t,u=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),l=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,r._3)(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),u?{x:h*d,y:p*l}:{x:p*l,y:h*d}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},g=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=(0,r._3)(e,t),d={x:n,y:o},f=await a(t,l),p=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(p);let m=d[h],g=d[p];if(s){const e="y"===h?"bottom":"right",t=m+f["y"===h?"top":"left"],n=m-f[e];m=(0,r.qE)(t,m,n)}if(c){const e="y"===p?"bottom":"right",t=g+f["y"===p?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=(0,r._3)(e,t),d={x:n,y:o},f=(0,r.TV)(i),p=(0,r.PG)(f);let h=d[p],m=d[f];const g=(0,r._3)(c,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(l){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes((0,r.C0)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:h,[f]:m}}}},y=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:c=(()=>{}),...u}=(0,r._3)(e,t),l=await a(t,u),d=(0,r.C0)(n),f=(0,r.Sg)(n),p="y"===(0,r.TV)(n),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-l[g],b=h-l[v],w=!t.middlewareData.shift;let x=y,O=b;if(p){const e=h-l.left-l.right;O=f||w?(0,r.jk)(b,e):e}else{const e=m-l.top-l.bottom;x=f||w?(0,r.jk)(y,e):e}if(w&&!f){const e=(0,r.T9)(l.left,0),t=(0,r.T9)(l.right,0),n=(0,r.T9)(l.top,0),o=(0,r.T9)(l.bottom,0);p?O=h-2*(0!==e||0!==t?e+t:(0,r.T9)(l.left,l.right)):x=m-2*(0!==n||0!==o?n+o:(0,r.T9)(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:x});const k=await i.getDimensions(s.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}}},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>D,C0:()=>m,DD:()=>i,Dz:()=>w,Jx:()=>l,LI:()=>c,PG:()=>v,RI:()=>u,Sg:()=>g,T9:()=>s,TV:()=>b,WJ:()=>O,_3:()=>h,aD:()=>k,bV:()=>E,jk:()=>a,lP:()=>S,nI:()=>P,qE:()=>p,r_:()=>r,sq:()=>y,w7:()=>x});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,s=Math.max,c=Math.round,u=Math.floor,l=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function w(e){return v(b(e))}function x(e,t,n){void 0===n&&(n=!1);const r=g(e),o=w(e),i=y(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function O(e){const t=E(e);return[k(e),t,k(t)]}function k(e){return e.replace(/start|end/g,(e=>f[e]))}function S(e,t,n,r){const o=g(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}function E(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function D(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"dae07594d6ecc557045e",222:"09ba36517028c8cc2b15",262:"9e407a51e11e02873320",264:"ad29d69c35ceb788d507",310:"72c23e27d9e2f49a3814",672:"e6ffa6e7fb3d26ee06fb",722:"ff4db6f56b773db48894",770:"0e9bdfd9be4cfbd8b8ff",916:"d77899cf4be7c1f786f1"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={976:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>JB});var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),i=c.n(o),a=c(5338),s=c(73082),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},f=c(11843),p=c(4883),h=c.t(p,2),m=c.n(p),g=c(78418),v=p,y=Symbol.for("react-redux-context"),b="undefined"!=typeof globalThis?globalThis:{};function w(){if(!v.createContext)return{};const e=b[y]??(b[y]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var x=w(),O=()=>{throw new Error("uSES not initialized!")};var k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),R=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),j),L=I;function F(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case k:{const n=e.type;switch(n){case E:case D:case P:case A:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case T:case C:case j:case N:case I:case _:return e;default:return t}}}}case S:return t}}}function H(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function B(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function W(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function U(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=W(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=W(o),o=r(t,n)),o},r}}function Y(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function V(e,t,n){return{...n,...e,...t}}function z(e){e()}var q={notify(){},get:()=>[]};function G(e,t){let n,r=q,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=q)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var K=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$="undefined"!=typeof navigator&&"ReactNative"===navigator.product,X=K||$?v.useLayoutEffect:v.useEffect;function Q(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Z(e,t){if(Q(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Q(e[n[r]],t[n[r]]))return!1;return!0}var J={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ne={[R]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[L]:te};function re(e){return function(e){return F(e)===I}(e)?te:ne[e.$$typeof]||J}var oe=Object.defineProperty,ie=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ce=Object.getPrototypeOf,ue=Object.prototype;function le(e,t){if("string"!=typeof t){if(ue){const n=ce(t);n&&n!==ue&&le(e,n)}let n=ie(t);ae&&(n=n.concat(ae(t)));const r=re(e),o=re(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(ee[a]||o&&o[a]||r&&r[a])){const n=se(t,a);try{oe(e,a,n)}catch(e){}}}}return e}var de=O,fe=[null,null];function pe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function he(e,t){return e===t}var me=function(e,t,n,{pure:r,areStatesEqual:o=he,areOwnPropsEqual:i=Z,areStatePropsEqual:a=Z,areMergedPropsEqual:s=Z,forwardRef:c=!1,context:u=x}={}){const l=u,d=function(e){return e?"function"==typeof e?U(e):Y(e,"mapStateToProps"):B((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?B((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?U(e):Y(e,"mapDispatchToProps"):B((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Y(e,"mergeProps"):()=>V}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=v.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=v.useMemo((()=>l),[n,l]),s=v.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=v.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return H(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=v.useMemo((()=>{if(!h)return fe;const e=G(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=v.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=v.useRef(void 0),w=v.useRef(i),x=v.useRef(void 0),O=v.useRef(!1),k=v.useRef(!1),S=v.useRef(void 0);X((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=v.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),P=v.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,w,b,O,k,x,g,e):()=>{}),[m]);var D,_,C;let T;D=pe,_=[w,b,O,i,x,g],X((()=>D(..._)),C);try{T=de(P,E,f?()=>p(f(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,x.current=void 0,b.current=T}));const j=v.useMemo((()=>v.createElement(e,{...T,ref:o})),[o,e,T]);return v.useMemo((()=>h?v.createElement(a.Provider,{value:y},j):j),[a,j,y])}const m=v.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=v.forwardRef((function(e,t){return v.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,le(t,e)}return le(m,e)}};var ge=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=v.useMemo((()=>{const t=G(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=v.useMemo((()=>e.getState()),[e]);X((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||x;return v.createElement(c.Provider,{value:a},n)};var ve;ve=g.useSyncExternalStoreWithSelector,(e=>{de=e})(p.useSyncExternalStore);var ye=c(82274),be=c.n(ye),we=c(65044),xe=c.n(we),Oe=c(65611),ke=c.n(Oe),Se=c(18337),Ee=c.n(Se),Pe=c(56994),De=c.n(Pe),_e=c(5556),Ce=c.n(_e),Te=c(72189),je=c.n(Te),Ae=c(92648),Me=c(96346),Ie=c(91907);const Ne=function(e){return(0,Ie.A)(e)};const Re={shouldForwardProp:function(e,t){return"string"!=typeof t||Ne(e)},isPropValid:Ne};var Le,Fe,He=c(33181),Be=(0,Me.AH)(Le||(Le=je()(["\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,He.Ed)(),He.w4.color("text"),He.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 We=(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid})(Fe||(Fe=je()(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),He.t7.color("text"),Be);var Ue,Ye=c(26396),Ve=c.n(Ye),ze=c(39892),qe=c.n(ze),Ge=c(47850),Ke=c(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 Xe(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){Ve()(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 Qe=(0,p.lazy)((function(){return c.e(770).then(c.bind(c,68389))}));const Ze=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:Ue||(Ue=(0,Ke.jsx)(m().Fragment,{})),children:(0,Ke.jsx)(Qe,Xe({},e))})};var Je=c(22056),et=c.n(Je);function tt(e,t){var n=(0,p.useState)(e),r=et()(n,2),o=r[0],i=r[1];return(0,p.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ot=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 m().forwardRef((function(r,o){var i=r.value,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1],l=tt(c,t),d=et()(l,2),f=d[0],h=d[1],m=(0,p.useRef)(i),g=r[n];return(0,p.useEffect)((function(){c!==i&&c===f&&(u(i),m.current=i,h(i))}),[i]),(0,p.useEffect)((function(){g&&m.current!==f&&(g(f),m.current=f)}),[f,g]),(0,Ke.jsx)(e,rt(rt(rt({},r),{},{value:c},Ve()({},n,u)),{},{ref:o}))}))};const it=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,p.useEffect)((function(){if(!t.disabled&&e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const at=function(){var e=(0,p.useState)(),t=et()(e,2),n=t[0],r=t[1],o=(0,p.useRef)(),i=(0,p.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,p.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,p.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const st={useAutofocus:it,useDebounce:tt,Debouncer:ot,useUserActive:function(e){var t=(0,p.useRef)(null),n=(0,p.useState)(null),r=et()(n,2),o=r[0],i=r[1],a=(0,p.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,p.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,p.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},usePrevious:function(e){var t=(0,p.useRef)();return(0,p.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.useRef)(!1);(0,p.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:at};var ct="hidden",ut="responsive",lt={labelVisibility:ut},dt=m().createContext(lt);var ft,pt,ht,mt,gt,vt,yt,bt=(0,Me.AH)(mt||(mt=je()(["\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"])),He.w4.radii("button"),He.hs.space(-1.38),He.hs.space(-2.1),He.hs.space(0),(0,He.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(ht||(ht=je()(["\n background: transparent;\n"]))):(0,He.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ft||(ft=je()(["\n line-height: ",";\n padding: "," ",";\n "])),He.w4.lineHeight("dense")({theme:n}),He.hs.space(-3.5)({theme:n}),He.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(pt||(pt=je()(["\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===He.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(wt," {\n display: none;\n }\n ");return t&&n===ct?r:t&&n===ut&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),wt=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(gt||(gt=je()([""]))),xt=Me.Ay.button.withConfig({displayName:"StyledButton"})(vt||(vt=je()(["\n ","\n"])),bt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(yt||(yt=je()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n\n ",":last-child {\n margin-right: 0;\n }\n"])),He.hs.space(0),He.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),xt);const Ot=xt;function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Et=m().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?He.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?He.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,p.useContext)(dt).labelVisibility;return(0,Ke.jsxs)(Ot,St(St(St({ref:t},n),e),{},{ink:r||He.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:f,children:[i&&!a&&(0,Ke.jsx)(Ge.A,{icon:i}),a&&(0,Ke.jsx)(Ze,{ink:r||He.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ke.jsx)(wt,{children:o}):m||""]}))}));var Pt;(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Pt||(Pt=je()(["\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"])),He.t7.color("text"),bt);var Dt,_t;const Ct=Me.Ay.button.withConfig({displayName:"StyledButton"})(_t||(_t=je()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,He.Ed)(),He.x5,(function(){return(0,Me.AH)(Dt||(Dt=je()(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),He.hs.space(-3),He.w4.fontSize("base"),He.w4.lineHeight("regular"),He.hs.space(-3))}));function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=m().forwardRef((function(e,t){return(0,Ke.jsx)(Ct,jt(jt({ref:t,type:"button"},e),{},{children:(0,Ke.jsx)(Ge.A,{icon:e.icon})}))}));At.propTypes={disabled:Ce().bool,icon:Ce().string.isRequired,ink:He.xX.inkPropTypes,look:Ce().oneOf([He.xX.look.FLAT,He.xX.look.RAISED]),onClick:Ce().func,title:Ce().string,tabIndex:Ce().number,"data-cy":Ce().string};const Mt=At;var It,Nt,Rt,Lt,Ft=c(21259),Ht=c.n(Ft),Bt=c(49859),Wt=c.n(Bt),Ut=c(52098),Yt=c.n(Ut),Vt=c(30115),zt=c.n(Vt),qt=c(45228),Gt=c.n(qt),Kt="bodyAttributes",$t="htmlAttributes",Xt="titleAttributes",Qt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Zt=(Object.keys(Qt).map((function(e){return Qt[e]})),"charset"),Jt="cssText",en="href",tn="http-equiv",nn="innerHTML",rn="itemprop",on="name",an="property",sn="rel",cn="src",un="target",ln={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dn="defaultTitle",fn="defer",pn="encodeSpecialCharacters",hn="onChangeClientState",mn="titleTemplate",gn=Object.keys(ln).reduce((function(e,t){return e[ln[t]]=t,e}),{}),vn=[Qt.NOSCRIPT,Qt.SCRIPT,Qt.STYLE],yn="data-react-helmet",bn="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},wn=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}}(),xn=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},On=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},kn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Sn=function(e){var t=Cn(e,Qt.TITLE),n=Cn(e,mn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Cn(e,dn);return t||r||void 0},En=function(e){return Cn(e,hn)||function(){}},Pn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return xn({},e,t)}),{})},Dn=function(e,t){return t.filter((function(e){return void 0!==e[Qt.BASE]})).map((function(e){return e[Qt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},_n=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&In("Helmet: "+e+' should be of type "Array". Instead found type "'+bn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===sn&&"canonical"===e[n].toLowerCase()||c===sn&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==nn&&s!==Jt&&s!==rn||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Gt()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Cn=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},Tn=(It=Date.now(),function(e){var t=Date.now();t-It>16?(It=t,e(t)):setTimeout((function(){Tn(e)}),0)}),jn=function(e){return clearTimeout(e)},An="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Tn:c.g.requestAnimationFrame||Tn,Mn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||jn:c.g.cancelAnimationFrame||jn,In=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Nn=null,Rn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Hn(Qt.BODY,r),Hn(Qt.HTML,o),Fn(d,f);var p={baseTag:Bn(Qt.BASE,n),linkTags:Bn(Qt.LINK,i),metaTags:Bn(Qt.META,a),noscriptTags:Bn(Qt.NOSCRIPT,s),scriptTags:Bn(Qt.SCRIPT,u),styleTags:Bn(Qt.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)},Ln=function(e){return Array.isArray(e)?e.join(""):e},Fn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Ln(e)),Hn(Qt.TITLE,t)},Hn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(yn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(yn):n.getAttribute(yn)!==a.join(",")&&n.setAttribute(yn,a.join(","))}},Bn=function(e,t){var n=document.head||document.querySelector(Qt.HEAD),r=n.querySelectorAll(e+"["+yn+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===nn)n.innerHTML=t.innerHTML;else if(r===Jt)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(yn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},Wn=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}),"")},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ln[n]||n]=e[n],t}),t)},Yn=function(e,t,n){switch(e){case Qt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[yn]=!0,o=Un(n,r),[m().createElement(Qt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Wn(n),i=Ln(t);return o?"<"+e+" "+yn+'="true" '+o+">"+kn(i,r)+"</"+e+">":"<"+e+" "+yn+'="true">'+kn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Kt:case $t:return{toComponent:function(){return Un(t)},toString:function(){return Wn(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[yn]=!0,r);return Object.keys(t).forEach((function(e){var n=ln[e]||e;if(n===nn||n===Jt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),m().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===nn||e===Jt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+kn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===vn.indexOf(e);return t+"<"+e+" "+yn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Vn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Yn(Qt.BASE,t,r),bodyAttributes:Yn(Kt,n,r),htmlAttributes:Yn($t,o,r),link:Yn(Qt.LINK,i,r),meta:Yn(Qt.META,a,r),noscript:Yn(Qt.NOSCRIPT,s,r),script:Yn(Qt.SCRIPT,c,r),style:Yn(Qt.STYLE,u,r),title:Yn(Qt.TITLE,{title:d,titleAttributes:f},r)}},zn=Yt()((function(e){return{baseTag:Dn([en,un],e),bodyAttributes:Pn(Kt,e),defer:Cn(e,fn),encode:Cn(e,pn),htmlAttributes:Pn($t,e),linkTags:_n(Qt.LINK,[sn,en],e),metaTags:_n(Qt.META,[on,Zt,tn,an,rn],e),noscriptTags:_n(Qt.NOSCRIPT,[nn],e),onChangeClientState:En(e),scriptTags:_n(Qt.SCRIPT,[cn,nn],e),styleTags:_n(Qt.STYLE,[Jt],e),title:Sn(e),titleAttributes:Pn(Xt,e)}}),(function(e){Nn&&Mn(Nn),e.defer?Nn=An((function(){Rn(e,(function(){Nn=null}))})):(Rn(e),Nn=null)}),Vn)((function(){return null})),qn=(Nt=zn,Lt=Rt=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!zt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Qt.SCRIPT:case Qt.NOSCRIPT:return{innerHTML:t};case Qt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return xn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[xn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Qt.TITLE:return xn({},o,((t={})[r.type]=a,t.titleAttributes=xn({},i),t));case Qt.BODY:return xn({},o,{bodyAttributes:xn({},i)});case Qt.HTML:return xn({},o,{htmlAttributes:xn({},i)})}return xn({},o,((n={})[r.type]=xn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=xn({},t);return Object.keys(e).forEach((function(t){var r;n=xn({},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 m().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[gn[n]||n]=e[n],t}),t)}(On(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Qt.LINK:case Qt.META:case Qt.NOSCRIPT:case Qt.SCRIPT:case Qt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=On(e,["children"]),r=xn({},n);return t&&(r=this.mapChildrenToProps(t,r)),m().createElement(Nt,r)},wn(t,null,[{key:"canUseDOM",set:function(e){Nt.canUseDOM=e}}]),t}(m().Component),Rt.propTypes={base:Wt().object,bodyAttributes:Wt().object,children:Wt().oneOfType([Wt().arrayOf(Wt().node),Wt().node]),defaultTitle:Wt().string,defer:Wt().bool,encodeSpecialCharacters:Wt().bool,htmlAttributes:Wt().object,link:Wt().arrayOf(Wt().object),meta:Wt().arrayOf(Wt().object),noscript:Wt().arrayOf(Wt().object),onChangeClientState:Wt().func,script:Wt().arrayOf(Wt().object),style:Wt().arrayOf(Wt().object),title:Wt().string,titleAttributes:Wt().object,titleTemplate:Wt().string},Rt.defaultProps={defer:!0,encodeSpecialCharacters:!0},Rt.peek=Nt.peek,Rt.rewind=function(){var e=Nt.rewind();return e||(e=Vn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Lt);qn.renderStatic=qn.rewind;var Gn=c(42838),Kn=c.n(Gn),$n=["border","border-spacing","padding","margin","text-align","width"];Kn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return $n.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Xn=function(e){return e?Kn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Qn={sanitizeHtml:Xn};var Zn=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Jn=c(85735),er=c.n(Jn),tr=c(2404),nr=c.n(tr),rr=c(69752),or=c.n(rr),ir=function(e){return"object"===er()(e)&&null!==e},ar=function(e,t){return or()(e,(function(e,n,r){nr()(n,t[r])||(e[r]=ir(n)&&ir(t[r])?ar(n,t[r]):n)}))};const sr={difference:ar,getOrFirst:function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:Zn,copyToClipboard:function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},isDefined:function(e){return null!=e}};var cr=c(60284),ur={error:"exclamation-circle",home:"house-blank"},lr=function(e){return ur[e]||e};const dr=function(e){var t=e.type;return t&&"record"!==t?(0,Ke.jsx)(Ge.A,{icon:lr(t)}):null};var fr,pr,hr,mr,gr,vr,yr=["component"],br=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(fr||(fr=je()(["\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||He.w4.color("backgroundBreadcrumbs")(e)}),He.hs.space(-.7),He.hs.space(.39)),wr=(0,Me.Ay)((function(e){var t=e.component,n=qe()(e,yr);return m().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(pr||(pr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("secondaryLight"),He.w4.color("breadcrumbsActive")),xr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(hr||(hr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("breadcrumbsActive")),Or=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(mr||(mr=je()(["\n margin-left: ",";\n margin-right: ",";\n"])),He.hs.space(-2),He.hs.space(-2)),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(gr||(gr=je()(["\n "," {\n margin-right: ",";\n }\n"])),Ge.i,He.hs.space(-1));const Sr=function(){return vr||(vr=(0,Ke.jsx)(Or,{breakWords:!0,children:(0,Ke.jsx)(Ge.A,{icon:"chevron-right"})}))};var Er;function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=function(e){return e.title||e.display},Cr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(_r(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(_r).join(" - ");break;default:r=_r(n)}return sr.adjustedHTMLString(r)};const Tr=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat(Ht()(a),Ht()(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?xr:wr,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path)}:{},d=l?t||(t=(0,Ke.jsx)(l,{})):Er||(Er=(0,Ke.jsx)(We,{}));return(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(kr,{children:(0,Ke.jsxs)(a,Dr(Dr(Dr({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,Ke.jsx)(dr,{type:e.type}),(0,Ke.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Sr,{},"icon".concat(n)),t]}));return(0,Ke.jsxs)(br,{backgroundColor:c,children:[d?(0,Ke.jsx)(qn,{defer:!1,children:(0,Ke.jsx)("title",{children:Cr(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ke.jsx)(Ke.Fragment,{children:h})]})};(0,f.injectIntl)(Tr);var jr,Ar,Mr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(jr||(jr=je()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,He.Ed)(),(function(e){return e.theme.colors.signal.danger}),He.t7.color("paper"),He.hs.space(-.5));const Ir=function(){return Ar||(Ar=(0,Ke.jsx)(Mr,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Nr;const Rr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Nr||(Nr=je()(["\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"])),Ot);var Lr=m().forwardRef((function(e,t){return(0,Ke.jsx)(Rr,{ref:t,children:e.children})}));Lr.propTypes={children:Ce().node};const Fr=Lr;var Hr=c(90179),Br=c.n(Hr),Wr=c(62193),Ur=c.n(Wr),Yr=(c(62243),c(36193)),Vr=c.n(Yr),zr=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},qr=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},Gr={outline:"none"},Kr=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=qr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=m().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)},qr(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?m().cloneElement(e({focused:t,getRef:this.ref}),n):m().createElement("div",zr({ref:this.ref,style:Gr},n),e)},t}(m().Component);Kr.propTypes={children:Vr().oneOfType([Vr().node,Vr().func]).isRequired,onBlur:Vr().func,onFocus:Vr().func},Kr.defaultProps={onBlur:function(){},onFocus:function(){}};const $r=Kr;var Xr,Qr,Zr,Jr,eo,to,no,ro,oo=c(88357),io=(0,Me.AH)(Xr||(Xr=je()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),ao=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Qr||(Qr=je()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),io),so=(0,Me.AH)(Zr||(Zr=je()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,He.Ed)({color:He.t7.color("text")})}),He.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),co=(0,Me.AH)(Jr||(Jr=je()(["\n display: flex;\n align-items: center;\n"]))),uo=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(eo||(eo=je()(["\n &&& {\n ","\n }\n"])),co),lo=(Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(to||(to=je()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: 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"])),He.t7.color("signal.danger")),c(58156)),fo=c.n(lo),po=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(no||(no=je()(["\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"])),io,He.hs.space(-2),He.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?fo()(n,"colors.textDisabled"):fo()(n,"colors.text")}),so,He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("secondaryLight"),He.t7.color("backgroundItemHover"));(0,Me.Ay)(po).withConfig({displayName:"StyledAddressEdit"})(ro||(ro=je()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));c(69843);var ho=c(7350),mo=c.n(ho);function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(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 wo(e,t){if(e){if("string"==typeof e)return bo(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)?bo(e,t):void 0}}function xo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||wo(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 Oo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ko=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function So(){return So=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},So.apply(this,arguments)}function Eo(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 Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function Do(e){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Do(e)}function _o(e){return _o="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},_o(e)}function Co(e,t){if(t&&("object"===_o(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 To(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=Do(e);if(t){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Co(this,n)}}function jo(e){return function(e){if(Array.isArray(e))return bo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wo(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 Ao=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}(),Mo="-ms-",Io="-moz-",No="-webkit-",Ro="comm",Lo="rule",Fo="decl",Ho="@keyframes",Bo=Math.abs,Wo=String.fromCharCode,Uo=Object.assign;function Yo(e){return e.trim()}function Vo(e,t,n){return e.replace(t,n)}function zo(e,t){return e.indexOf(t)}function qo(e,t){return 0|e.charCodeAt(t)}function Go(e,t,n){return e.slice(t,n)}function Ko(e){return e.length}function $o(e){return e.length}function Xo(e,t){return t.push(e),e}var Qo=1,Zo=1,Jo=0,ei=0,ti=0,ni="";function ri(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qo,column:Zo,length:a,return:""}}function oi(e,t){return Uo(ri("",null,null,"",null,null,0),e,{length:-e.length},t)}function ii(){return ti=ei>0?qo(ni,--ei):0,Zo--,10===ti&&(Zo=1,Qo--),ti}function ai(){return ti=ei<Jo?qo(ni,ei++):0,Zo++,10===ti&&(Zo=1,Qo++),ti}function si(){return qo(ni,ei)}function ci(){return ei}function ui(e,t){return Go(ni,e,t)}function li(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 di(e){return Qo=Zo=1,Jo=Ko(ni=e),ei=0,[]}function fi(e){return ni="",e}function pi(e){return Yo(ui(ei-1,gi(91===e?e+2:40===e?e+1:e)))}function hi(e){for(;(ti=si())&&ti<33;)ai();return li(e)>2||li(ti)>3?"":" "}function mi(e,t){for(;--t&&ai()&&!(ti<48||ti>102||ti>57&&ti<65||ti>70&&ti<97););return ui(e,ci()+(t<6&&32==si()&&32==ai()))}function gi(e){for(;ai();)switch(ti){case e:return ei;case 34:case 39:34!==e&&39!==e&&gi(ti);break;case 40:41===e&&gi(e);break;case 92:ai()}return ei}function vi(e,t){for(;ai()&&e+ti!==57&&(e+ti!==84||47!==si()););return"/*"+ui(t,ei-1)+"*"+Wo(47===e?e:ai())}function yi(e){for(;!li(si());)ai();return ui(e,ei)}function bi(e){return fi(wi("",null,null,null,[""],e=di(e),0,[0],e))}function wi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,k=b;g;)switch(h=y,y=ai()){case 40:if(108!=h&&58==qo(k,d-1)){-1!=zo(k+=Vo(pi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=pi(y);break;case 9:case 10:case 13:case 32:k+=hi(h);break;case 92:k+=mi(ci()-1,7);continue;case 47:switch(si()){case 42:case 47:Xo(Oi(vi(ai(),ci()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Ko(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Ko(k)-d&&Xo(p>32?ki(k+";",r,n,d-1):ki(Vo(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Xo(O=xi(k,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)wi(k,t,O,O,w,i,d,s,x);else switch(99===f&&110===qo(k,3)?100:f){case 100:case 109:case 115:wi(e,O,O,r&&Xo(xi(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:wi(k,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Ko(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ii())continue;switch(k+=Wo(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ko(k)-1)*v,v=1;break;case 64:45===si()&&(k+=pi(ai())),f=si(),l=d=Ko(b=k+=yi(ci())),y++;break;case 45:45===h&&2==Ko(k)&&(m=0)}}return i}function xi(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=$o(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Go(e,d+1,d=Bo(m=a[h])),b=e;v<p;++v)(b=Yo(m>0?f[v]+" "+y:Vo(y,/&\f/g,f[v])))&&(c[g++]=b);return ri(e,t,n,0===o?Lo:s,c,u,l)}function Oi(e,t,n){return ri(e,t,n,Ro,Wo(ti),Go(e,2,-2),0)}function ki(e,t,n,r){return ri(e,t,n,Fo,Go(e,0,r),Go(e,r+1,-1),r)}function Si(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ei(e,t,n,r){switch(e.type){case"@import":case Fo:return e.return=e.return||e.value;case Ro:return"";case Ho:return e.return=e.value+"{"+Si(e.children,r)+"}";case Lo:e.value=e.props.join(",")}return Ko(n=Si(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pi=function(e,t,n){for(var r=0,o=0;r=o,o=si(),38===r&&12===o&&(t[n]=1),!li(o);)ai();return ui(e,ei)},Di=function(e,t){return fi(function(e,t){var n=-1,r=44;do{switch(li(r)){case 0:38===r&&12===si()&&(t[n]=1),e[n]+=Pi(ei-1,t,n);break;case 2:e[n]+=pi(r);break;case 4:if(44===r){e[++n]=58===si()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wo(r)}}while(r=ai());return e}(di(e),t))},_i=new WeakMap,Ci=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)||_i.get(n))&&!r){_i.set(e,!0);for(var o=[],i=Di(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ti=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ji(e,t){switch(function(e,t){return 45^qo(e,0)?(((t<<2^qo(e,0))<<2^qo(e,1))<<2^qo(e,2))<<2^qo(e,3):0}(e,t)){case 5103:return No+"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 No+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return No+e+Io+e+Mo+e+e;case 6828:case 4268:return No+e+Mo+e+e;case 6165:return No+e+Mo+"flex-"+e+e;case 5187:return No+e+Vo(e,/(\w+).+(:[^]+)/,No+"box-$1$2"+Mo+"flex-$1$2")+e;case 5443:return No+e+Mo+"flex-item-"+Vo(e,/flex-|-self/,"")+e;case 4675:return No+e+Mo+"flex-line-pack"+Vo(e,/align-content|flex-|-self/,"")+e;case 5548:return No+e+Mo+Vo(e,"shrink","negative")+e;case 5292:return No+e+Mo+Vo(e,"basis","preferred-size")+e;case 6060:return No+"box-"+Vo(e,"-grow","")+No+e+Mo+Vo(e,"grow","positive")+e;case 4554:return No+Vo(e,/([^-])(transform)/g,"$1"+No+"$2")+e;case 6187:return Vo(Vo(Vo(e,/(zoom-|grab)/,No+"$1"),/(image-set)/,No+"$1"),e,"")+e;case 5495:case 3959:return Vo(e,/(image-set\([^]*)/,No+"$1$`$1");case 4968:return Vo(Vo(e,/(.+:)(flex-)?(.*)/,No+"box-pack:$3"+Mo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+No+e+e;case 4095:case 3583:case 4068:case 2532:return Vo(e,/(.+)-inline(.+)/,No+"$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(Ko(e)-1-t>6)switch(qo(e,t+1)){case 109:if(45!==qo(e,t+4))break;case 102:return Vo(e,/(.+:)(.+)-([^]+)/,"$1"+No+"$2-$3$1"+Io+(108==qo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zo(e,"stretch")?ji(Vo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qo(e,t+1))break;case 6444:switch(qo(e,Ko(e)-3-(~zo(e,"!important")&&10))){case 107:return Vo(e,":",":"+No)+e;case 101:return Vo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+No+(45===qo(e,14)?"inline-":"")+"box$3$1"+No+"$2$3$1"+Mo+"$2box$3")+e}break;case 5936:switch(qo(e,t+11)){case 114:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return No+e+Mo+e+e}return e}var Ai=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=ji(e.value,e.length);break;case Ho:return Si([oi(e,{value:Vo(e.value,"@","@"+No)})],r);case Lo: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 Si([oi(e,{props:[Vo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Si([oi(e,{props:[Vo(t,/:(plac\w+)/,":"+No+"input-$1")]}),oi(e,{props:[Vo(t,/:(plac\w+)/,":-moz-$1")]}),oi(e,{props:[Vo(t,/:(plac\w+)/,Mo+"input-$1")]})],r)}return""}))}}];const Mi=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||Ai;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[Ei,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ci,Ti].concat(r,f),l=$o(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){Si(bi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ao({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};c(4146);var Ii=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Ni=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 Ri={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};const Li=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Fi=/[A-Z]|^ms/g,Hi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bi=function(e){return 45===e.charCodeAt(1)},Wi=function(e){return null!=e&&"boolean"!=typeof e},Ui=Li((function(e){return Bi(e)?e:e.replace(Fi,"-$&").toLowerCase()})),Yi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Hi,(function(e,t,n){return zi={name:t,styles:n,next:zi},t}))}return 1===Ri[e]||Bi(e)||"number"!=typeof t||0===t?t:t+"px"};function Vi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Vi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Wi(a)&&(r+=Ui(i)+":"+Yi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Vi(e,t,a);switch(i){case"animation":case"animationName":r+=Ui(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Wi(a[c])&&(r+=Ui(i)+":"+Yi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=zi,i=n(e);return zi=o,Vi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var zi,qi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Gi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";zi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Vi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Vi(n,t,e[a]),r&&(o+=i[a]);qi.lastIndex=0;for(var s,c="";null!==(s=qi.exec(o));)c+="-"+s[1];return{name:Ni(o)+c,styles:o,next:zi}},Ki=!!p.useInsertionEffect&&p.useInsertionEffect,$i=Ki||function(e){return e()},Xi={}.hasOwnProperty,Qi=(0,p.createContext)("undefined"!=typeof HTMLElement?Mi({key:"css"}):null);Qi.Provider;var Zi=function(e){return(0,p.forwardRef)((function(t,n){var r=(0,p.useContext)(Qi);return e(t,r,n)}))},Ji=(0,p.createContext)({});var ea="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ta=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);$i((function(){return function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},na=Zi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ea],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Gi(i,void 0,(0,p.useContext)(Ji));a+=t.key+"-"+s.name;var c={};for(var u in e)Xi.call(e,u)&&"css"!==u&&u!==ea&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,p.createElement)(p.Fragment,null,(0,p.createElement)(ta,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,p.createElement)(o,c))}));var ra=function(e,t){var n=arguments;if(null==t||!Xi.call(t,"css"))return p.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=na,o[1]=function(e,t){var n={};for(var r in t)Xi.call(t,r)&&(n[r]=t[r]);return n[ea]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return p.createElement.apply(null,o)};function oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Gi(t)}var ia=c(81845),aa=c.n(ia);Math.min,Math.max;const sa=["top","right","bottom","left"];sa.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ca(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ua(e){if(null==e)return window;if(!ca(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function la(e){return ua(e).getComputedStyle(e)}function da(e){return ca(e)?"":e?(e.nodeName||"").toLowerCase():""}function fa(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function pa(e){return e instanceof ua(e).HTMLElement}function ha(e){return e instanceof ua(e).Element}function ma(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ua(e).ShadowRoot||e instanceof ShadowRoot)}function ga(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=la(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function va(){return!/^((?!chrome|android).)*safari/i.test(fa())}function ya(e){return["html","body","#document"].includes(da(e))}Math.min,Math.max;const ba=Math.round;function wa(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&pa(e)&&(c=e.offsetWidth>0&&ba(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ba(s.height)/e.offsetHeight||1);const l=ha(e)?ua(e):window,d=!va()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function xa(e){return(t=e,(t instanceof ua(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Oa(e){if("html"===da(e))return e;const t=e.assignedSlot||e.parentNode||(ma(e)?e.host:null)||xa(e);return ma(t)?t.host:t}function ka(e){const t=Oa(e);return ya(t)?e.ownerDocument.body:pa(t)&&ga(t)?t:ka(t)}function Sa(e,t){var n;void 0===t&&(t=[]);const r=ka(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ua(r),a=o?[i].concat(i.visualViewport||[],ga(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Sa(a))}const Ea=p.useLayoutEffect;var Pa=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Da=function(){};function _a(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ca(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(_a(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ta=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===_o(e)&&null!==e?[e]:[];var t},ja=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,yo({},Oo(e,Pa))},Aa=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Ma(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ia(e){return Ma(e)?window.pageYOffset:e.scrollTop}function Na(e,t){Ma(e)?window.scrollTo(0,t):e.scrollTop=t}function Ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Da,o=Ia(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Na(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function La(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Na(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Na(e,Math.max(t.offsetTop-o,0))}function Fa(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ha=!1,Ba={get passive(){return Ha=!0}},Wa="undefined"!=typeof window?window:{};Wa.addEventListener&&Wa.removeEventListener&&(Wa.addEventListener("p",Da,Ba),Wa.removeEventListener("p",Da,!1));var Ua=Ha;function Ya(e){return null!=e}function Va(e,t,n){return e?t:n}var za=["children","innerProps"],qa=["children","innerProps"];function Ga(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:Ma(l=c)?window.innerHeight:l.clientHeight,y=Ia(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,k=x+y,S=d-y-m,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Ra(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&Ra(c,E,D),{placement:"bottom",maxHeight:a?O-b:S-b};if("auto"===o||a){var _=t,C=a?x:k;return C>=r&&(_=Math.min(C-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&Na(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Ra(c,P,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-w:k-w),i&&Ra(c,P,D),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Ka,$a=function(e){return"auto"===e?"bottom":e},Xa=(0,p.createContext)(null),Qa=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,p.useContext)(Xa)||{}).setPortalPlacement,u=(0,p.useRef)(null),l=xo((0,p.useState)(r),2),d=l[0],f=l[1],h=xo((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return Ea((function(){var e=u.current;if(e){var t="fixed"===i,s=Ga({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,v]),t({ref:u,placerProps:yo(yo({},e),{},{placement:m||$a(o),maxHeight:d})})},Za=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ra("div",So({},Aa(e,"menu",{menu:!0}),{ref:n},r),t)},Ja=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return yo({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},es=Ja,ts=Ja,ns=["size"],rs=["innerProps","isRtl","size"];var os,is,as={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ss=function(e){var t=e.size,n=Oo(e,ns);return ra("svg",So({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:as},n))},cs=function(e){return ra(ss,So({size:20},e),ra("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"}))},us=function(e){return ra(ss,So({size:20},e),ra("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"}))},ls=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yo({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ds=ls,fs=ls,ps=function(){var e=oa.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_"}}}(Ka||(os=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],is||(is=os.slice(0)),Ka=Object.freeze(Object.defineProperties(os,{raw:{value:Object.freeze(is)}})))),hs=function(e){var t=e.delay,n=e.offset;return ra("span",{css:oa({animation:"".concat(ps," 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"},"","")})},ms=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ra("div",So({ref:o},Aa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},gs=["data"],vs=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ra("div",So({},Aa(e,"group",{group:!0}),s),ra(i,So({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ra("div",null,t))},ys=["innerRef","isDisabled","isHidden","inputClassName"],bs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ws={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bs)},xs=function(e){return yo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},bs)},Os=function(e){var t=e.cx,n=e.value,r=ja(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=Oo(r,ys);return ra("div",So({},Aa(e,"input",{"input-container":!0}),{"data-value":n||""}),ra("input",So({className:t({input:!0},s),ref:o,style:xs(a),disabled:i},c)))},ks=function(e){var t=e.children,n=e.innerProps;return ra("div",n,t)};var Ss=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ra(c,{data:r,innerProps:yo(yo({},Aa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ra(u,{data:r,innerProps:yo({},Aa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ra(l,{data:r,innerProps:yo(yo({},Aa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Es=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ra("div",So({},Aa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Ps=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ra("div",So({},Aa(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Ds={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ra(cs,null))},Control:ms,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ra(us,null))},DownChevron:us,CrossIcon:cs,Group:vs,GroupHeading:function(e){var t=ja(e);t.data;var n=Oo(t,gs);return ra("div",So({},Aa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ra("span",So({},t,Aa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Os,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Oo(e,rs);return ra("div",So({},Aa(yo(yo({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ra(hs,{delay:0,offset:n}),ra(hs,{delay:160,offset:!0}),ra(hs,{delay:320,offset:!n}))},Menu:Za,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ra("div",So({},Aa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),c=(0,p.useRef)(null),u=xo((0,p.useState)($a(i)),2),l=u[0],d=u[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=xo((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Ea((function(){v()}),[v]);var y=(0,p.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ha(e)?Sa(e):e.contextElement?Sa(e.contextElement):[],...Sa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ha(e)&&!s&&d.observe(e),ha(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?wa(e):null;return s&&function t(){const r=wa(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Ea((function(){y()}),[y]);var b=(0,p.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=ra("div",So({ref:b},Aa(yo(yo({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ra(Xa.Provider,{value:f},t?(0,ia.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Oo(e,qa);return ra("div",So({},Aa(yo(yo({},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=Oo(e,za);return ra("div",So({},Aa(yo(yo({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ss,MultiValueContainer:ks,MultiValueLabel:ks,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ra("div",So({role:"button"},n),t||ra(cs,{size:14}))},Option:Es,Placeholder:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ra("div",So({},Aa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Ps,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ra("div",So({},Aa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},_s=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Cs(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||_s(r)&&_s(o)))return!1;var r,o;return!0}for(var Ts={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"},js=function(e){return ra("span",So({css:Ts},e))},As={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ms=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],k=s["aria-live"],S=(0,p.useMemo)((function(){return yo(yo({},As),l||{})}),[l]),E=(0,p.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=yo({isDisabled:u&&m(u,a),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),P=(0,p.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,a,u]),D=(0,p.useMemo)((function(){var e="";if(v&&y.length&&!x&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,y,b,x]),_="initial-input-focus"===(null==t?void 0:t.action),C=(0,p.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[O,n,r,h,m,g,v,S,a,w,_]),T=ra(p.Fragment,null,ra("span",{id:"aria-selection"},E),ra("span",{id:"aria-focused"},P),ra("span",{id:"aria-results"},D),ra("span",{id:"aria-guidance"},C));return ra(p.Fragment,null,ra(js,{id:c},_&&T),ra(js,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&T))},Is=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ns=new RegExp("["+Is.map((function(e){return e.letters})).join("")+"]","g"),Rs={},Ls=0;Ls<Is.length;Ls++)for(var Fs=Is[Ls],Hs=0;Hs<Fs.letters.length;Hs++)Rs[Fs.letters[Hs]]=Fs.base;var Bs=function(e){return e.replace(Ns,(function(e){return Rs[e]}))},Ws=function(e,t){void 0===t&&(t=Cs);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Bs),Us=function(e){return e.replace(/^\s+|\s+$/g,"")},Ys=function(e){return"".concat(e.label," ").concat(e.value)},Vs=["innerRef"];function zs(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=xo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=xo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Oo(e,Vs),"onExited","in","enter","exit","appear");return ra("input",So({ref:t},n,{css:oa({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 qs=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Gs=["boxSizing","height","overflow","paddingRight","position"],Ks={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $s(e){e.preventDefault()}function Xs(e){e.stopPropagation()}function Qs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Js=!("undefined"==typeof window||!window.document||!window.document.createElement),ec=0,tc={capture:!1,passive:!1};var nc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},rc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oc(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&qs(e)}}),[n,r,o,i]),d=(0,p.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,p.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,p.useCallback)((function(e){if(e){var t=!!Ua&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(Js){var t=document.body,n=t&&t.style;if(r&&Gs.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&ec<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Ks).forEach((function(e){var t=Ks[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Zs()&&(t.addEventListener("touchmove",$s,tc),e&&(e.addEventListener("touchstart",Qs,tc),e.addEventListener("touchmove",Xs,tc))),ec+=1}}),[r]),s=(0,p.useCallback)((function(e){if(Js){var t=document.body,n=t&&t.style;ec=Math.max(ec-1,0),r&&ec<1&&Gs.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Zs()&&(t.removeEventListener("touchmove",$s,tc),e&&(e.removeEventListener("touchstart",Qs,tc),e.removeEventListener("touchmove",Xs,tc)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ra(p.Fragment,null,n&&ra("div",{onClick:nc,css:rc}),t((function(e){o(e),i(e)})))}var ic={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ac=function(e){var t=e.name,n=e.onFocus;return ra("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ic,value:"",onChange:function(){}})};function sc(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 cc(){return sc(/^Mac/i)}function uc(){return sc(/^iPhone/i)||sc(/^iPad/i)||cc()&&navigator.maxTouchPoints>1}var lc={clearIndicator:fs,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return yo({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ds,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 yo({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yo({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return yo(yo({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ws),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return yo({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:ts,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return yo((go(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),go(n,"position","absolute"),go(n,"width","100%"),go(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return yo({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return yo({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return yo({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return yo({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:es,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return yo({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return yo({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return yo({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return yo({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var dc,fc={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}},pc={"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=yo({ignoreCase:!0,ignoreAccents:!0,stringify:Ys,trim:!0,matchFrom:"any"},dc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Us(t):t,u=a?Us(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Ws(c),u=Bs(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 hc(e,t,n,r){return{type:"option",data:t,isDisabled:Oc(e,t,n),isSelected:kc(e,t,n),label:wc(e,t),value:xc(e,t),index:r}}function mc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return hc(e,n,t,r)})).filter((function(t){return yc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=hc(e,n,t,r);return yc(e,i)?i:void 0})).filter(Ya)}function gc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,jo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,jo(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 yc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Ec(e)||!i)&&Sc(e,{label:a,value:s,data:o},r)}var bc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},wc=function(e,t){return e.getOptionLabel(t)},xc=function(e,t){return e.getOptionValue(t)};function Oc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function kc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=xc(e,t);return n.some((function(t){return xc(e,t)===r}))}function Sc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ec=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Pc=1,Dc=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&&Po(e,t)}(i,e);var t,n,r,o=To(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=cc()||uc(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(jo(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Va(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Va(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Va(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return bc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return vc(mc(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ca.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return wc(t.props,e)},t.getOptionValue=function(e){return xc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=lc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,yo(yo({},Ds),e.components);var e},t.buildCategorizedOptions=function(){return mc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return gc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:yo({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&&Ma(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Ec(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Pc),t.state.selectValue=Ta(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=bc(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&La(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&&(La(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fc):yo(yo({},fc),this.props.theme):fc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Oc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return kc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Sc(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=yo(yo(yo({"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?p.createElement(u,So({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):p.createElement(zs,So({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Da,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:p.createElement(s,So({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,So({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return p.createElement(a,So({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,So({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?p.createElement(e,So({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,So({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,So({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var C,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(u,So({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return p.createElement(n,So({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(g){var j=v({inputValue:m});if(null===j)return null;C=p.createElement(s,l,j)}else{var A=P({inputValue:m});if(null===A)return null;C=p.createElement(c,l,A)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:E},I=p.createElement(Qa,So({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return p.createElement(o,So({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(oc,{captureEnabled:h,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return p.createElement(i,So({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),C)})))}));return k||"fixed"===O?p.createElement(a,So({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return p.createElement(ac,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(Ms,So({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(r,So({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),p.createElement(t,So({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),p.createElement(o,So({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,So({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Ta(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return gc(mc(e,t))}(e,h):[],v=d?vc(mc(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:bc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:Va(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),yo(yo(yo({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Eo(t.prototype,n),r&&Eo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(p.Component);Dc.defaultProps=pc;var _c=(0,p.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=Oo(e,ko),g=xo((0,p.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=xo((0,p.useState)(void 0!==c?c:o),2),w=b[0],x=b[1],O=xo((0,p.useState)(void 0!==h?h:a),2),k=O[0],S=O[1],E=(0,p.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,p.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,p.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),_=(0,p.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),C=void 0!==s?s:v,T=void 0!==c?c:w,j=void 0!==h?h:k;return yo(yo({},m),{},{inputValue:C,menuIsOpen:T,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:j})}(e);return p.createElement(Dc,So({ref:t},n))})),Cc=_c;function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ac=(0,f.injectIntl)((function(e){var t;return(0,Ke.jsx)("span",jc(jc({},e.innerProps),{},{children:(0,Ke.jsx)(Mt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Mc=c(2418);function Ic(){return Ic=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},Ic.apply(this,arguments)}const Nc=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Rc extends p.Component{constructor(...e){super(...e),this._targetNode=p.createRef(),this._elementNode=p.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,p.isValidElement)(e)||(e=null),(0,p.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Mc(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Nc),i=Ic({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?p.createElement(p.Fragment,null,e,t&&this._elementParentNode&&ia.createPortal(t,this._elementParentNode)):null}}var Lc,Fc,Hc,Bc,Wc,Uc,Yc,Vc,zc,qc,Gc,Kc,$c;function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zc=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Lc||(Lc=je()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Jc=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Fc||(Fc=je()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),eu=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Hc||(Hc=je()(["\n outline-style: none;\n"]))),tu=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Bc||(Bc=je()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),He.t7.color("paper"),He.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(Wc||(Wc=je()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),nu=(0,Me.Ay)(Rc).withConfig({displayName:"StyledTether"})(Uc||(Uc=je()(["\n && {\n z-index: 1;\n }\n"]))),ru=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(Yc||(Yc=je()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),He.hs.space(1.5)),(0,Me.Ay)(Ds.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Vc||(Vc=je()(["\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}))),ou=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(zc||(zc=je()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,He.Ed)({color:He.t7.color("signal.info"),lineHeight:"normal"}),He.hs.space(-.5),He.hs.space(-.2)),iu=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(qc||(qc=je()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?He.t7.color("text"):"inherit"})),au=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Gc||(Gc=je()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),su=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Kc||(Kc=je()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),cu=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})($c||($c=je()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),uu=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c=He.hs.space(-1)({theme:e}),u=He.hs.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return Qc(Qc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Qc(Qc(Qc({},e),l),{},{outline:0})},control:function(e,t){return Qc(Qc({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Qc(Qc({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Qc(Qc({},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),Qc(Qc(Qc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Qc(Qc(Qc({},t),l),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Qc(Qc({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Qc(Qc({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Qc(Qc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Qc(Qc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Qc(Qc({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Qc(Qc({},e),{},{padding:0,margin:0})}}};function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fu=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ke.jsx)(Ds.DropdownIndicator,du(du({},e),{},{children:(0,Ke.jsx)(au,{children:(0,Ke.jsx)(Mt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Ce().shape({key:Ce().any.isRequired,display:Ce().string});var pu,hu,mu;function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},bu=function(e,t){return function(n){n.stopPropagation(),e(t)}},wu=function(e,t){return function(n){n.stopPropagation(),e(t)}},xu=function(e){e.stopPropagation()};const Ou=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ke.jsx)(tu,{isTopAligned:f,children:(0,Ke.jsxs)(Ds.IndicatorsContainer,vu(vu({},e),{},{children:[e.children,n&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:bu(n,u),children:pu||(pu=(0,Ke.jsx)(Mt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:yu(r,d,u),children:hu||(hu=(0,Ke.jsx)(Mt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:wu(o,u),children:mu||(mu=(0,Ke.jsx)(Mt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var ku;const Su=function(){return ku||(ku=(0,Ke.jsx)("span",{children:(0,Ke.jsx)(Ze,{size:"1.8rem"})}))};var Eu="tocco-app",Pu=c(85072),Du=c.n(Pu),_u=c(97825),Cu=c.n(_u),Tu=c(77659),ju=c.n(Tu),Au=c(55056),Mu=c.n(Au),Iu=c(10540),Nu=c.n(Iu),Ru=c(41113),Lu=c.n(Ru),Fu=c(2063),Hu={};Hu.styleTagTransform=Lu(),Hu.setAttributes=Mu(),Hu.insert=ju().bind(null,"head"),Hu.domAPI=Cu(),Hu.insertStyleElement=Nu();Du()(Fu.A,Hu);Fu.A&&Fu.A.locals&&Fu.A.locals;var Bu,Wu=c(59386),Uu=c.n(Wu),Yu=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(Bu||(Bu=je()(["\n cursor: pointer;\n user-select: none;\n"]))),Vu=m().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ke.jsx)(Yu,{onClick:r,ref:t,children:n})}));Vu.propTypes={children:Ce().any,onOpen:Ce().func};const zu=Vu;function qu(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Gu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ku(e,t){const n=qu(e);return isNaN(t)?Gu(e,NaN):t?(n.setDate(n.getDate()+t),n):n}Math.pow(10,8);const $u=6048e5,Xu=864e5,Qu=6e4,Zu=36e5;let Ju={};function el(){return Ju}function tl(e,t){const n=el(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=qu(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function nl(e){return tl(e,{weekStartsOn:1})}function rl(e){const t=qu(e),n=t.getFullYear(),r=Gu(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=nl(r),i=Gu(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=nl(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ol(e){const t=qu(e);return t.setHours(0,0,0,0),t}function il(e){const t=qu(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function al(e,t){const n=ol(e),r=ol(t),o=+n-il(n),i=+r-il(r);return Math.round((o-i)/Xu)}function sl(e){const t=rl(e),n=Gu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nl(n)}function cl(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function ul(e){if(!cl(e)&&"number"!=typeof e)return!1;const t=qu(e);return!isNaN(Number(t))}function ll(e){const t=qu(e),n=Gu(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const dl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function fl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const pl={date:fl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:fl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},hl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ml(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const gl={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ml({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ml({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ml({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ml({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ml({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function vl(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}function yl(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}const bl={ordinalNumber:yl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:vl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:vl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},wl={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=dl[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:pl,formatRelative:(e,t,n,r)=>hl[e],localize:gl,match:bl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xl(e){const t=qu(e);return al(t,ll(t))+1}function Ol(e){const t=qu(e),n=+nl(t)-+sl(t);return Math.round(n/$u)+1}function kl(e,t){const n=qu(e),r=n.getFullYear(),o=el(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Gu(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=tl(a,t),c=Gu(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=tl(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Sl(e,t){const n=el(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=kl(e,t),i=Gu(e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return tl(i,t)}function El(e,t){const n=qu(e),r=+tl(n,t)-+Sl(n,t);return Math.round(r/$u)+1}function Pl(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Dl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pl("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Pl(n+1,2)},d:(e,t)=>Pl(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Pl(e.getHours()%12||12,t.length),H:(e,t)=>Pl(e.getHours(),t.length),m:(e,t)=>Pl(e.getMinutes(),t.length),s:(e,t)=>Pl(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Pl(Math.trunc(r*Math.pow(10,n-3)),t.length)}},_l="midnight",Cl="noon",Tl="morning",jl="afternoon",Al="evening",Ml="night",Il={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Dl.y(e,t)},Y:function(e,t,n,r){const o=kl(e,r),i=o>0?o:1-o;if("YY"===t){return Pl(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Pl(i,t.length)},R:function(e,t){return Pl(rl(e),t.length)},u:function(e,t){return Pl(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pl(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pl(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Dl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pl(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=El(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Pl(o,t.length)},I:function(e,t,n){const r=Ol(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Pl(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Dl.d(e,t)},D:function(e,t,n){const r=xl(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Pl(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Pl(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Pl(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Pl(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?Cl:0===r?_l:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?Al:r>=12?jl:r>=4?Tl:Ml,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Dl.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Dl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Pl(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Pl(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Dl.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Dl.s(e,t)},S:function(e,t){return Dl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Rl(r);case"XXXX":case"XX":return Ll(r);default:return Ll(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Rl(r);case"xxxx":case"xx":return Ll(r);default:return Ll(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nl(r,":");default:return"GMT"+Ll(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nl(r,":");default:return"GMT"+Ll(r,":")}},t:function(e,t,n){return Pl(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Pl(e.getTime(),t.length)}};function Nl(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+Pl(i,2)}function Rl(e,t){if(e%60==0){return(e>0?"-":"+")+Pl(Math.abs(e)/60,2)}return Ll(e,t)}function Ll(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Pl(Math.trunc(r/60),2)+t+Pl(r%60,2)}const Fl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Hl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Bl={p:Hl,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Fl(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Fl(r,t)).replace("{{time}}",Hl(o,t))}},Wl=/^D+$/,Ul=/^Y+$/,Yl=["D","DD","YY","YYYY"];function Vl(e){return Wl.test(e)}function zl(e){return Ul.test(e)}function ql(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Yl.includes(e))throw new RangeError(r)}const Gl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$l=/^'([^]*?)'?$/,Xl=/''/g,Ql=/[a-zA-Z]/;function Zl(e,t,n){const r=el(),o=n?.locale??r.locale??wl,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=qu(e);if(!ul(s))throw new RangeError("Invalid time value");let c=t.match(Kl).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Bl[t])(e,o.formatLong)}return e})).join("").match(Gl).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Jl(e)};if(Il[t])return{isToken:!0,value:e};if(t.match(Ql))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&zl(i)||!n?.useAdditionalDayOfYearTokens&&Vl(i))&&ql(i,t,String(e));return(0,Il[i[0]])(s,i,o.localize,u)})).join("")}function Jl(e){const t=e.match($l);return t?t[1].replace(Xl,"'"):e}function ed(){return Object.assign({},el())}function td(e){return qu(e).getHours()}function nd(e){let t=qu(e).getDay();return 0===t&&(t=7),t}function rd(e){return qu(e).getMinutes()}function od(e){return qu(e).getSeconds()}function id(e,t){const n=t instanceof Date?Gu(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class ad{subPriority=0;validate(e,t){return!0}}class sd extends ad{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class cd extends ad{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Gu(e,id(e,Date))}}class ud{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new sd(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const ld=/^(1[0-2]|0?\d)/,dd=/^(3[0-1]|[0-2]?\d)/,fd=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,pd=/^(5[0-3]|[0-4]?\d)/,hd=/^(2[0-3]|[0-1]?\d)/,md=/^(2[0-4]|[0-1]?\d)/,gd=/^(1[0-1]|0?\d)/,vd=/^(1[0-2]|0?\d)/,yd=/^[0-5]?\d/,bd=/^[0-5]?\d/,wd=/^\d/,xd=/^\d{1,2}/,Od=/^\d{1,3}/,kd=/^\d{1,4}/,Sd=/^-?\d+/,Ed=/^-?\d/,Pd=/^-?\d{1,2}/,Dd=/^-?\d{1,3}/,_d=/^-?\d{1,4}/,Cd=/^([+-])(\d{2})(\d{2})?|Z/,Td=/^([+-])(\d{2})(\d{2})|Z/,jd=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ad=/^([+-])(\d{2}):(\d{2})|Z/,Md=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Id(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Nd(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Rd(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*Zu+i*Qu+1e3*a),rest:t.slice(n[0].length)}}function Ld(e){return Nd(Sd,e)}function Fd(e,t){switch(e){case 1:return Nd(wd,t);case 2:return Nd(xd,t);case 3:return Nd(Od,t);case 4:return Nd(kd,t);default:return Nd(new RegExp("^\\d{1,"+e+"}"),t)}}function Hd(e,t){switch(e){case 1:return Nd(Ed,t);case 2:return Nd(Pd,t);case 3:return Nd(Dd,t);case 4:return Nd(_d,t);default:return Nd(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Bd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Wd(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function Ud(e){return e%400==0||e%4==0&&e%100!=0}function Yd(e,t,n){const r=qu(e),o=El(r,n)-t;return r.setDate(r.getDate()-7*o),r}function Vd(e,t){const n=qu(e),r=Ol(n)-t;return n.setDate(n.getDate()-7*r),n}const zd=[31,28,31,30,31,30,31,31,30,31,30,31],qd=[31,29,31,30,31,30,31,31,30,31,30,31];function Gd(e,t,n){const r=el(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=qu(e),a=i.getDay(),s=7-o;return Ku(i,t<0||t>6?t-(a+s)%7:((t%7+7)%7+s)%7-(a+s)%7)}function Kd(e,t){const n=qu(e);return Ku(n,t-nd(n))}const $d={G:new class extends ud{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends ud{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Id(Fd(4,e),r);case"yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Fd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Wd(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends ud{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Id(Fd(4,e),r);case"Yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Fd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=kl(e,r);if(n.isTwoDigitYear){const t=Wd(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),tl(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),tl(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends ud{priority=130;parse(e,t){return Hd("R"===t?4:t.length,e)}set(e,t,n){const r=Gu(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),nl(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends ud{priority=130;parse(e,t){return Hd("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends ud{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Fd(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends ud{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Fd(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends ud{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Id(Nd(ld,e),r);case"MM":return Id(Fd(2,e),r);case"Mo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends ud{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Id(Nd(ld,e),r);case"LL":return Id(Fd(2,e),r);case"Lo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends ud{priority=100;parse(e,t,n){switch(t){case"w":return Nd(pd,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return tl(Yd(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends ud{priority=100;parse(e,t,n){switch(t){case"I":return Nd(pd,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return nl(Vd(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends ud{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Nd(dd,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Fd(t.length,e)}}validate(e,t){const n=Ud(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=qd[r]:t>=1&&t<=zd[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends ud{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Nd(fd,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Fd(t.length,e)}}validate(e,t){return Ud(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends ud{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends ud{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Id(Fd(t.length,e),o);case"eo":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends ud{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Id(Fd(t.length,e),o);case"co":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends ud{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return Fd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Id(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Id(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Id(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Id(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=Kd(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends ud{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends ud{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends ud{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends ud{priority=70;parse(e,t,n){switch(t){case"h":return Nd(vd,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends ud{priority=70;parse(e,t,n){switch(t){case"H":return Nd(hd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends ud{priority=70;parse(e,t,n){switch(t){case"K":return Nd(gd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends ud{priority=70;parse(e,t,n){switch(t){case"k":return Nd(md,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends ud{priority=60;parse(e,t,n){switch(t){case"m":return Nd(yd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends ud{priority=50;parse(e,t,n){switch(t){case"s":return Nd(bd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends ud{priority=30;parse(e,t){return Id(Fd(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends ud{priority=10;parse(e,t){switch(t){case"X":return Rd(Cd,e);case"XX":return Rd(Td,e);case"XXXX":return Rd(jd,e);case"XXXXX":return Rd(Md,e);default:return Rd(Ad,e)}}set(e,t,n){return t.timestampIsSet?e:Gu(e,e.getTime()-il(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends ud{priority=10;parse(e,t){switch(t){case"x":return Rd(Cd,e);case"xx":return Rd(Td,e);case"xxxx":return Rd(jd,e);case"xxxxx":return Rd(Md,e);default:return Rd(Ad,e)}}set(e,t,n){return t.timestampIsSet?e:Gu(e,e.getTime()-il(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends ud{priority=40;parse(e){return Ld(e)}set(e,t,n){return[Gu(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends ud{priority=20;parse(e){return Ld(e)}set(e,t,n){return[Gu(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Xd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zd=/^'([^]*?)'?$/,Jd=/''/g,ef=/\S/,tf=/[a-zA-Z]/;function nf(e,t,n,r){const o=ed(),i=r?.locale??o.locale??wl,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(""===t)return""===e?qu(n):Gu(n,NaN);const c={firstWeekContainsDate:a,weekStartsOn:s,locale:i},u=[new cd],l=t.match(Qd).map((e=>{const t=e[0];if(t in Bl){return(0,Bl[t])(e,i.formatLong)}return e})).join("").match(Xd),d=[];for(let o of l){!r?.useAdditionalWeekYearTokens&&zl(o)&&ql(o,t,e),!r?.useAdditionalDayOfYearTokens&&Vl(o)&&ql(o,t,e);const a=o[0],s=$d[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${o}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${o}\` and any other token at the same time`);d.push({token:a,fullToken:o});const r=s.run(e,o,i.match,c);if(!r)return Gu(n,NaN);u.push(r.setter),e=r.rest}else{if(a.match(tf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===o?o="'":"'"===a&&(o=o.match(Zd)[1].replace(Jd,"'")),0!==e.indexOf(o))return Gu(n,NaN);e=e.slice(o.length)}}if(e.length>0&&ef.test(e))return Gu(n,NaN);const f=u.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>u.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let p=qu(n);if(isNaN(p.getTime()))return Gu(n,NaN);const h={};for(const e of f){if(!e.validate(p,c))return Gu(n,NaN);const t=e.set(p,h,c);Array.isArray(t)?(p=t[0],Object.assign(h,t[1])):p=t}return Gu(n,p)}function rf(e,t,n){return ul(nf(e,t,new Date,n))}function of(e,t,n){return+tl(e,n)==+tl(t,n)}function af(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(sf.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],sf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(sf.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=sf.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(cf);if(!n)return new Date(NaN);const r=!!n[4],o=df(n[1]),i=df(n[2])-1,a=df(n[3]),s=df(n[4]),c=df(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(pf[t]||(hf(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(hf(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(uf);if(!t)return NaN;const n=ff(t[1]),r=ff(t[2]),o=ff(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*Zu+r*Qu+1e3*o}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(i+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(lf);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*Zu+o*Qu)}(r.timezone),isNaN(a)?new Date(NaN):new Date(i+s+a)}const sf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function df(e){return e?parseInt(e):1}function ff(e){return e&&parseFloat(e.replace(",","."))||0}const pf=[31,null,31,30,31,30,31,31,30,31,30,31];function hf(e){return e%400==0||e%4==0&&e%100!=0}function mf(e,t){const n=qu(e);return n.setHours(t),n}function gf(e,t){const n=qu(e);return n.setMilliseconds(t),n}function vf(e,t){const n=qu(e);return n.setMinutes(t),n}function yf(e,t){const n=qu(e);return n.setSeconds(t),n}const bf={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"}}},wf={date:fl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},xf={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Of={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"]},kf={narrow:Of.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Of.wide},Sf={ordinalNumber:e=>Number(e)+".",era:ml({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:ml({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:ml({values:Of,formattingValues:kf,defaultWidth:"wide"}),day:ml({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:ml({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"})},Ef={ordinalNumber:yl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},Pf={code:"de",formatDistance:(e,t,n)=>{let r;const o=n?.addSuffix?bf[e].withPreposition:bf[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:wf,formatRelative:(e,t,n,r)=>xf[e],localize:Sf,match:Ef,options:{weekStartsOn:1,firstWeekContainsDate:4}},Df={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"}},_f=["MMM","MMMM"],Cf={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&_f.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:ml({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:ml({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:ml({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:ml({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:ml({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"})},Tf={ordinalNumber:yl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},jf={date:fl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Af={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"},Mf={code:"fr-CH",formatDistance:(e,t,n)=>{let r;const o=Df[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:jf,formatRelative:(e,t,n,r)=>Af[e],localize:Cf,match:Tf,options:{weekStartsOn:1,firstWeekContainsDate:4}},If={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"}},Nf={date:fl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Rf=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Lf(e){return"'"+Rf[e]+" alle' p"}const Ff={lastWeek:(e,t,n)=>{const r=e.getDay();return of(e,t,n)?Lf(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Rf[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 of(e,t,n)?Lf(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Rf[e]+" prossimo alle' p"}(r)},other:"P"},Hf={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:ml({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:ml({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:ml({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:ml({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:ml({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"})},Bf={ordinalNumber:yl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},Wf={code:"it",formatDistance:(e,t,n)=>{let r;const o=If[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:Nf,formatRelative:(e,t,n,r)=>{const o=Ff[e];return"function"==typeof o?o(t,n,r):o},localize:Hf,match:Bf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Uf=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=Zn(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}},Yf=function(e){switch(e){case"fr":return Mf;case"en":return wl;case"it":return Wf;default:return Pf}},Vf=function(e){return Yf(e).formatLong.date({width:"short"})},zf=function(e){return Vf(e).replace(/[/.]/g,"")};const qf=function(e){var t=Uf(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},Gf=Yf,Kf=Vf,$f=function(e){return"".concat(Vf(e)," HH:mm")},Xf=zf,Qf=function(e){return"".concat(zf(e)," HHmm")},Zf=function(e){return e.replace(/y+/,"yy")},Jf=function(e){var t=new Date,n=new Date(e);return n=gf(n=yf(n=vf(n=mf(n,td(t)),rd(t)),0),0)},ep=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var tp=function(){(0,Wu.registerLocale)("en",Gf("en")),(0,Wu.registerLocale)("en-US",Gf("en")),(0,Wu.registerLocale)("de-CH",Gf("de-CH")),(0,Wu.registerLocale)("de-DE",Gf("de-DE")),(0,Wu.registerLocale)("de",Gf("de")),(0,Wu.registerLocale)("fr",Gf("fr")),(0,Wu.registerLocale)("fr-CH",Gf("fr")),(0,Wu.registerLocale)("it",Gf("it")),(0,Wu.registerLocale)("it-CH",Gf("it")),(0,Wu.setDefaultLocale)("de")};tp();(0,Me.SL)((0,f.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,p.useRef)(null),c=(0,p.useState)(!1),u=et()(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,Ke.jsx)(Uu(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ke.jsx)(zu,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var np,rp,op,ip,ap=He.t7.color("secondaryLight"),sp=He.t7.color("paper"),cp=He.t7.color("text"),up=He.t7.color("secondary"),lp=He.t7.radii("form"),dp=(0,Me.DU)(np||(np=je()(["\n .react-datepicker-popper {\n && {\n // higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; // static in all themes\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),Ge.i,cp,He.t7.radii("form"),lp,ap,sp,(0,He.Ed)(),(0,He.Ed)(),ap,lp,lp,He.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",sp,He.hs.font(1),He.t7.fontWeight("bold"),(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),sp,He.hs.font(-2),He.hs.space(-1.8),up,up,up,ap,ap,ap,up,(0,He.Ed)(),sp,He.hs.space(-.5),He.t7.color("backgroundItemHover"),lp,He.hs.space(-.5),sp,He.t7.color("border"),He.t7.radii("form"),He.hs.space(-1),He.hs.space(-1),He.hs.font(1),sp,He.t7.fontWeight("bold"),He.hs.space(-1),sp,He.hs.font(0),cp,ap,ap,He.t7.radii("form"),sp,ap,up,cp,cp,sp,ap,He.t7.color("backgroundItemHover"),He.t7.color("textDisabled"),He.t7.color("border"),He.t7.radii("form")),fp=(0,Me.DU)(rp||(rp=je()(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),He.t7.color("signal.success"),He.t7.color("signal.info"),He.t7.color("signal.warning"),He.t7.color("signal.danger"),He.t7.color("textDisabled")),pp=(0,Me.DU)(op||(op=je()(["\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"])),He.t7.color("backgroundScrollbar"),He.t7.color("backgroundScrollbarHover"),He.t7.color("backgroundScrollbar"));const hp=function(){return ip||(ip=(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(fp,{}),(0,Ke.jsx)(dp,{}),(0,Ke.jsx)(pp,{})]}))};function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ke.jsx)(nu,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ke.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ke.jsx)("div",{ref:o,className:Eu,children:(0,Ke.jsx)(ru,gp(gp({},Br()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wp=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ke.jsxs)(Ds.MenuList,bp(bp({},e),{},{className:"MenuList",children:[n,r&&(0,Ke.jsx)(ou,{children:o})]}))};function xp(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Op(e){return e instanceof Element||e instanceof xp(e).Element}function kp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof xp(e).ShadowRoot)}function Sp(e){return xp(e).getComputedStyle(e)}function Ep(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&kp(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Pp(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Dp(e){return(null==e?void 0:e.ownerDocument)||document}Math.min,Math.max,Math.round,Math.floor;var _p=c(49054),Cp=c(95361);const Tp=Math.min,jp=Math.max,Ap=Math.round,Mp=(Math.floor,e=>({x:e,y:e}));function Ip(e){return Lp(e)?(e.nodeName||"").toLowerCase():"#document"}function Np(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rp(e){var t;return null==(t=(Lp(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Lp(e){return e instanceof Node||e instanceof Np(e).Node}function Fp(e){return e instanceof Element||e instanceof Np(e).Element}function Hp(e){return e instanceof HTMLElement||e instanceof Np(e).HTMLElement}function Bp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Np(e).ShadowRoot)}function Wp(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Up(e){return["table","td","th"].includes(Ip(e))}function Yp(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Vp(e){const t=zp(),n=Fp(e)?Gp(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function zp(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qp(e){return["html","body","#document"].includes(Ip(e))}function Gp(e){return Np(e).getComputedStyle(e)}function Kp(e){return Fp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $p(e){if("html"===Ip(e))return e;const t=e.assignedSlot||e.parentNode||Bp(e)&&e.host||Rp(e);return Bp(t)?t.host:t}function Xp(e){const t=$p(e);return qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hp(t)&&Wp(t)?t:Xp(t)}function Qp(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Xp(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Np(o);return i?t.concat(a,a.visualViewport||[],Wp(o)?o:[],a.frameElement&&n?Qp(a.frameElement):[]):t.concat(o,Qp(o,[],n))}function Zp(e){const t=Gp(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Hp(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ap(n)!==i||Ap(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Jp(e){return Fp(e)?e:e.contextElement}function eh(e){const t=Jp(e);if(!Hp(t))return Mp(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Zp(t);let a=(i?Ap(n.width):n.width)/r,s=(i?Ap(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const th=Mp(0);function nh(e){const t=Np(e);return zp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:th}function rh(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Jp(e);let a=Mp(1);t&&(r?Fp(r)&&(a=eh(r)):a=eh(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Np(e))&&t}(i,n,r)?nh(i):Mp(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Np(i),t=r&&Fp(r)?Np(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=eh(o),t=o.getBoundingClientRect(),r=Gp(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=Np(o),o=n.frameElement}}return(0,Cp.B1)({width:l,height:d,x:c,y:u})}function oh(e){return rh(Rp(e)).left+Kp(e).scrollLeft}function ih(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Np(e),r=Rp(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=zp();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Rp(e),n=Kp(e),r=e.ownerDocument.body,o=jp(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jp(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oh(e);const s=-n.scrollTop;return"rtl"===Gp(r).direction&&(a+=jp(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rp(e));else if(Fp(t))r=function(e,t){const n=rh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hp(e)?eh(e):Mp(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=nh(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,Cp.B1)(r)}function ah(e,t){const n=$p(e);return!(n===t||!Fp(n)||qp(n))&&("fixed"===Gp(n).position||ah(n,t))}function sh(e,t,n){const r=Hp(t),o=Rp(t),i="fixed"===n,a=rh(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Mp(0);if(r||!r&&!i)if(("body"!==Ip(t)||Wp(o))&&(s=Kp(t)),r){const e=rh(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=oh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ch(e){return"static"===Gp(e).position}function uh(e,t){return Hp(e)&&"fixed"!==Gp(e).position?t?t(e):e.offsetParent:null}function lh(e,t){const n=Np(e);if(Yp(e))return n;if(!Hp(e)){let t=$p(e);for(;t&&!qp(t);){if(Fp(t)&&!ch(t))return t;t=$p(t)}return n}let r=uh(e,t);for(;r&&Up(r)&&ch(r);)r=uh(r,t);return r&&qp(r)&&ch(r)&&!Vp(r)?n:r||function(e){let t=$p(e);for(;Hp(t)&&!qp(t);){if(Vp(t))return t;if(Yp(t))return null;t=$p(t)}return null}(e)||n}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Rp(r),s=!!t&&Yp(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Mp(1);const l=Mp(0),d=Hp(r);if((d||!d&&!i)&&(("body"!==Ip(r)||Wp(a))&&(c=Kp(r)),Hp(r))){const e=rh(r);u=eh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:Rp,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Yp(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qp(e,[],!1).filter((e=>Fp(e)&&"body"!==Ip(e))),o=null;const i="fixed"===Gp(e).position;let a=i?$p(e):e;for(;Fp(a)&&!qp(a);){const t=Gp(a),n=Vp(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Wp(a)&&!n&&ah(e,a))?r=r.filter((e=>e!==a)):o=t,a=$p(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=ih(t,n,o);return e.top=jp(r.top,e.top),e.right=Tp(r.right,e.right),e.bottom=Tp(r.bottom,e.bottom),e.left=jp(r.left,e.left),e}),ih(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lh,getElementRects:async function(e){const t=this.getOffsetParent||lh,n=this.getDimensions,r=await n(e.floating);return{reference:sh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Zp(e);return{width:t,height:n}},getScale:eh,isElement:Fp,isRTL:function(e){return"rtl"===Gp(e).direction}};const fh=Cp.cY,ph=Cp.BN,hh=Cp.UU,mh=Cp.UE,gh=(e,t,n)=>{const r=new Map,o={platform:dh,...n},i={...o.platform,_c:r};return(0,Cp.rD)(e,t,{...o,platform:i})};var vh="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function yh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!yh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!yh(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function bh(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wh(e,t){const n=bh(e);return Math.round(t*n)/n}function xh(e){const t=p.useRef(e);return vh((()=>{t.current=e})),t}const Oh=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?mh({element:n.current,padding:r}).fn(t):{}:n?mh({element:n,padding:r}).fn(t):{};var o}}),kh=(e,t)=>({...fh(e),options:[e,t]}),Sh=(e,t)=>({...ph(e),options:[e,t]}),Eh=(e,t)=>({...hh(e),options:[e,t]}),Ph=(e,t)=>({...Oh(e),options:[e,t]});const Dh={...h},_h=Dh.useInsertionEffect||(e=>e());function Ch(e){const t=p.useRef((()=>{0}));return _h((()=>{t.current=e})),p.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 Th="ArrowUp",jh="ArrowDown",Ah="ArrowLeft",Mh="ArrowRight";var Ih="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;const Nh=[Ah,Mh],Rh=[Th,jh];function Lh(){return Lh=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},Lh.apply(this,arguments)}let Fh=!1,Hh=0;const Bh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Hh++;const Wh=Dh.useId||function(){const[e,t]=p.useState((()=>Fh?Bh():void 0));return Ih((()=>{null==e&&t(Bh())}),[]),p.useEffect((()=>{Fh=!0}),[]),e};const Uh=p.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...h}={},...m}=e;const g=Wh(),[v,y]=p.useState(!1);if(Ih((()=>{if(!r)return;"rtl"===Sp(r).direction&&y(!0)}),[r]),!r)return null;const b=2*c,w=b/2,x=i/2*(s/-8+1),O=a/2*s/4,[k,S]=n.split("-"),E=!!d,P="top"===k||"bottom"===k,D=u&&"end"===S?"bottom":"top";let _=u&&"end"===S?"right":"left";u&&v&&(_="end"===S?"left":"right");const C=null!=(null==o?void 0:o.x)?u||o.x:"",T=null!=(null==o?void 0:o.y)?u||o.y:"",j=d||"M0,0 H"+i+" L"+(i-x)+","+(a-O)+" Q"+i/2+","+a+" "+x+","+(a-O)+" Z",A={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[k];return p.createElement("svg",Lh({},m,{"aria-hidden":!0,ref:t,width:E?i:i+b,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[_]:C,[D]:T,[k]:P||E?"100%":"calc(100% - "+b/2+"px)",transform:""+A+(null!=f?f:""),...h}}),b>0&&p.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:l,strokeWidth:b+(d?0:1),d:j}),p.createElement("path",{stroke:b&&!d?m.fill:"none",d:j}),p.createElement("clipPath",{id:g},p.createElement("rect",{x:-w,y:w*(E?-1:1),width:i+b,height:i})))}));function Yh(){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 Vh=p.createContext(null),zh=p.createContext(null),qh=()=>{var e;return(null==(e=p.useContext(Vh))?void 0:e.id)||null},Gh=()=>p.useContext(zh);function Kh(e){return"data-floating-ui-"+e}function $h(e){const t=(0,p.useRef)(e);return Ih((()=>{t.current=e})),t}const Xh=Kh("safe-polygon");function Qh(e,t,n){return n&&!Pp(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const Zh=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Jh(e,t){const n=(0,_p.Kr)(e,Zh());"prev"===t&&n.reverse();const r=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}(Dp(e)));return n.slice(r+1)[0]}function em(){return Jh(document.body,"next")}function tm(){return Jh(document.body,"prev")}function nm(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ep(n,r)}function rm(e){(0,_p.Kr)(e,Zh()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function om(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 im={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 am(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const sm=p.forwardRef((function(e,t){const[n,r]=p.useState();Ih((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",am),()=>{document.removeEventListener("keydown",am)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Kh("focus-guard")]:"",style:im};return p.createElement("span",Lh({},e,o))})),cm=p.createContext(null),um=Kh("portal");function lm(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Wh(),o=dm(),[i,a]=p.useState(null),s=p.useRef(null);return Ih((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Ih((()=>{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(um,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Ih((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Op(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(um,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=p.useState(null),c=p.useRef(null),u=p.useRef(null),l=p.useRef(null),d=p.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return p.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&nm(e)){("focusin"===e.type?om:rm)(i)}}}),[i,o,null==a?void 0:a.modal]),p.createElement(cm.Provider,{value:p.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&p.createElement(sm,{"data-type":"outside",ref:c,onFocus:e=>{if(nm(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=tm()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&p.createElement("span",{"aria-owns":i.id,style:im}),i&&ia.createPortal(t,i),f&&i&&p.createElement(sm,{"data-type":"outside",ref:u,onFocus:e=>{if(nm(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=em()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const dm=()=>p.useContext(cm);function fm(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Wh(),i=p.useRef({}),[a]=p.useState((()=>Yh())),s=null!=qh(),[c,u]=p.useState(r.reference),l=Ch(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=p.useMemo((()=>({setPositionReference:u})),[]),f=p.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return p.useMemo((()=>({dataRef:i,open:t,onOpenChange:l,elements:f,events:a,floatingId:o,refs:d})),[t,l,f,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[s,c]=p.useState(null),u=(null==o?void 0:o.reference)||i,l=p.useRef(null),d=Gh();Ih((()=>{u&&(l.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(r);yh(f,r)||h(r);const[m,g]=p.useState(null),[v,y]=p.useState(null),b=p.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=p.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||m,O=a||v,k=p.useRef(null),S=p.useRef(null),E=p.useRef(l),P=null!=c,D=xh(c),_=xh(o),C=p.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),gh(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!yh(E.current,t)&&(E.current=t,ia.flushSync((()=>{d(t)})))}))}),[f,t,n,_]);vh((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=p.useRef(!1);vh((()=>(T.current=!0,()=>{T.current=!1})),[]),vh((()=>{if(x&&(k.current=x),O&&(S.current=O),x&&O){if(D.current)return D.current(x,O,C);C()}}),[x,O,C,D,P]);const j=p.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),A=p.useMemo((()=>({reference:x,floating:O})),[x,O]),M=p.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=wh(A.floating,l.x),r=wh(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...bh(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return p.useMemo((()=>({...l,update:C,refs:j,elements:A,floatingStyles:M})),[l,C,j,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),h=p.useCallback((e=>{const t=Op(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),m=p.useCallback((e=>{(Op(e)||null===e)&&(l.current=e,a(e)),(Op(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Op(e))&&f.refs.setReference(e)}),[f.refs]),g=p.useMemo((()=>({...f.refs,setReference:m,setPositionReference:h,domReference:l})),[f.refs,m,h]),v=p.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=p.useMemo((()=>({...f,...r,refs:g,elements:v,nodeId:t})),[f,g,v,t,r]);return Ih((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),p.useMemo((()=>({...f,context:y,refs:g,elements:v})),[f,g,v,y])}const pm="active",hm="selected";function mm(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[pm]:t,[hm]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[pm,hm].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}var gm,vm,ym,bm,wm,xm=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(gm||(gm=je()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),He.t7.color("text"),He.hs.font(1),He.hs.space(-1)),Om=(0,Me.AH)(vm||(vm=je()(["\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"])),He.t7.color("text"),He.t7.lineHeight("regular"),He.t7.fontWeight("regular"),He.hs.space(-3),He.hs.space(-1.5),He.t7.radii("statusLabel")),km=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledHtmlFormatter"})(ym||(ym=je()(["\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,cr.gv)(e,"html")}),He.hs.space(-1),He.hs.space(-1.5),Om,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.color("signal.infoLight"),He.t7.color("textLabel"),He.t7.color("signal.warningLight"),He.t7.color("textLabel"),He.t7.color("signal.successLight"),He.t7.color("textLabel"),Om,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.radii("statusLabel"),He.hs.space(-2.1),He.hs.space(0),He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("signal.warningLight"),He.hs.space(-1.5),He.hs.space(.5)),Sm=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(bm||(bm=je()(["\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"])),He.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":He.hs.space(0)}),He.t7.color("textPopover"),He.t7.color("backgroundPopover")),Em=Me.Ay.div.withConfig({displayName:"StyledBox"})(wm||(wm=je()(["\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,cr.gv)(e,"html")}),km,He.t7.color("textPopover"));function Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _m=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,p.useState)(!1),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useRef)(null),f=fm({open:u,onOpenChange:l,middleware:[Eh(),Sh({padding:20}),Ph({element:d}),kh(5)]}),h=f.refs,m=f.floatingStyles,g=f.context,v=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,h=Gh(),m=qh(),g=$h(u),v=$h(c),y=$h(n),b=p.useRef(),w=p.useRef(-1),x=p.useRef(),O=p.useRef(-1),k=p.useRef(!0),S=p.useRef(!1),E=p.useRef((()=>{})),P=p.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]);p.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),k.current=!0)}}),[s,i]),p.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){P()&&r(!1,e,"hover")}const t=Dp(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,g,P]);const D=p.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Qh(v.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),_=Ch((()=>{E.current(),x.current=void 0})),C=Ch((()=>{if(S.current){const e=Dp(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Xh),S.current=!1}}));p.useEffect((()=>{if(s&&Op(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=a.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=a.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,l&&!Pp(b.current)||d>0&&!Qh(v.current,"open"))return;const t=Qh(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=Dp(a.floating);if(clearTimeout(O.current),g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!Ep(a.floating,e.relatedTarget))&&D(e)}function u(e){t()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e)}})(e))}}),[a,s,e,l,d,f,D,_,C,r,n,y,h,v,g,o]),Ih((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){const e=Dp(a.floating).body;e.setAttribute(Xh,""),e.style.pointerEvents="none",S.current=!0;const n=a.floating;if(Op(a.domReference)&&n){var t;const e=a.domReference,r=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[s,n,m,a,h,g,P]),Ih((()=>{n||(b.current=void 0,_(),C())}),[n,_,C]),p.useEffect((()=>()=>{_(),clearTimeout(w.current),clearTimeout(O.current),C()}),[s,a.domReference,_,C]);const T=p.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}l&&!Pp(b.current)||n||0===d||(clearTimeout(O.current),"touch"===b.current?o():O.current=window.setTimeout(o,d))}}}),[l,r,n,y,d]),j=p.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}})),[D]);return p.useMemo((()=>s?{reference:T,floating:j}:{}),[s,T,j])}(g,{delay:{open:500,close:0}}),y=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=p.useCallback((t=>mm(t,e,"reference")),t),i=p.useCallback((t=>mm(t,e,"floating")),n),a=p.useCallback((t=>mm(t,e,"item")),r);return p.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([v]),b=y.getReferenceProps,w=y.getFloatingProps;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("span",Dm(Dm({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ke.jsx)(lm,{children:(0,Ke.jsxs)(Sm,Dm(Dm({ref:h.setFloating,style:m,rimless:a},w()),{},{className:Eu,children:[(0,Ke.jsx)(Uh,{ref:d,context:g}),(0,Ke.jsx)(Em,{isPlainHtml:o,children:n})]}))})]})},Cm=_m;const Tm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=fo()(i,t.key,null),u=(0,Ke.jsx)("span",{style:n.css,children:r}),l=s?(0,Ke.jsx)(Zc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ke.jsx)(Cm,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ke.jsx)(cu,{children:l})};var jm=c(85015),Am=c.n(jm),Mm=c(42194),Im=c.n(Mm);function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach((function(t){Ve()(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 Lm=["linkComp"],Fm=function(e,t){var n=sr.difference(e,t),r=Im()(Br()(n,Lm),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Hm=(0,p.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Am()(n)?(0,Ke.jsx)(Zc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(t,{entityKey:n,children:r})}):r}),Fm);Hm.propTypes={children:Ce().node,entityKey:Ce().any,linkComp:Ce().func};const Bm=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=fo()(i,t.key,null);return(0,Ke.jsx)(Ds.SingleValue,Rm(Rm({},e),{},{children:(0,Ke.jsx)(iu,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ke.jsx)(Cm,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)(Hm,{linkComp:s,entityKey:t.key,children:o})})})}))};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}var Um=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Ym=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ke.jsx)(Ds.ValueContainer,function(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){Ve()(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}({},e));var c=p.Children.map(r,(function(e){return Um(e)?e:null})),u=p.Children.map(r,(function(e){return Um(e)?null:e})),l=s&&n;return(0,Ke.jsxs)(Ke.Fragment,{children:[!l&&(0,Ke.jsx)(Ke.Fragment,{children:c}),(0,Ke.jsx)(su,{children:u})]})};function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,k=(0,p.useRef)(null),S=(0,p.useRef)(null),E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},D=(0,p.useState)(E()),_=et()(D,2),C=_[0],T=_[1],j=(0,p.useState)(P()),A=et()(j,2),M=A[0],I=A[1],N=(0,p.useState)(!1),R=et()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},B=(0,p.useCallback)(g||function(){},[]),W=(0,p.useCallback)(mo()(B,800,{trailing:!0}),[]),U=Boolean(h),Y=Boolean(f),V=Boolean(x);return(0,Ke.jsx)(Jc,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(E()),I(P())}),0)},children:(0,Ke.jsx)(eu,{ref:S,children:(0,Ke.jsx)(Cc,zm(zm({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:Ac,LoadingIndicator:Su,DropdownIndicator:fu,IndicatorsContainer:Ou,IndicatorSeparator:null,Menu:vp,MenuList:wp,MultiValueLabel:Tm,SingleValue:Bm,ValueContainer:Ym},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ke.jsx)(l,zm({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},g?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&W(e,b),""===e&&"input-change"===n&&H(b)},options:Ht()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:uu(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:Y,openDocsTreeSearch:f,hasAdvancedSearch:U,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var qm;Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(qm||(qm=je()(["\n margin: 5px 0;\n"])));var Gm,Km,$m=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ke.jsx)(km,{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(t)},breakWords:n,className:r})};Me.Ay.div.withConfig({displayName:"StyledOption"})(Gm||(Gm=je()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),He.hs.space(-1),He.hs.space(-1.5)),Me.Ay.span.withConfig({displayName:"StyledLabel"})(Km||(Km=je()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,He.Ed)(),He.hs.space(-1.5));c(98639);function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Xm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zm=(0,p.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Jm=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:(t=e.value,(0,Ke.jsx)("div",{children:(0,Ke.jsx)("p",{children:t})})),children:(0,Ke.jsx)(Zm,Qm({},e))});var t};var eg,tg=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(eg||(eg=je()(["\n margin-top: ",";\n"])),He.hs.space(-1.5));(0,Me.SL)(st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ke.jsx)(tg,{children:(0,Ke.jsx)(Jm,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var ng,rg,og,ig=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ng||(ng=je()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),ag=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(rg||(rg=je()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),io,so,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),sg=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(og||(og=je()(["\n &&&& {\n ","\n }\n"])),so),cg="react-datepicker-time__input",ug="react-datepicker__day",lg="react-datepicker__input",dg=function(e){return e.classList.contains(ug)},fg=function(e){return e.classList.contains(cg)},pg=function(e){return e.classList.contains(lg)},hg=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ug,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},mg=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Ht()(n).indexOf(e);if(r>=0)gg(n[r+(t?2:3)])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},gg=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},vg=function(e){if(!e)return null;var t=af(e.toString());return isNaN(t)?null:t},yg=function(e){return e?e.toISOString():null};const bg=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?vg:u,d=n.dateToValue,f=void 0===d?yg:d,h=(0,p.useRef)(null),m=(0,p.useState)(!1),g=et()(m,2),v=g[0],y=g[1],b=l(e),w=i?l(i):void 0,x=a?l(a):void 0;(0,p.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(v)}),[v]);var O=function(){return y(!1)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(h.current&&"function"==typeof h.current.getPreSelection){var t,n=e?h.current.getPreSelection():null;return(null===(t=h.current.state)||void 0===t?void 0:t.preSelection)||n}return null},S=function(e){h.current&&"function"==typeof h.current.setPreSelection&&h.current.setPreSelection(e)},E=function(){t(null),S(null)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=k(!1);if(n){var r=b||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return mf(vf(yf(e,void 0===a?0:a),i),r)}(n,{hour:td(r),minute:rd(r),second:od(r)}):n;D(o,e)}},D=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return rf(s,e)})),l=ol(n),d=td(n)!==td(l)||rd(n)!==rd(l);(a&&!d||u)&&c&&(n=Jf(n)),t(f(n))}else E();var p;c||"click"!==(null==r?void 0:r.type)||(O(),gg(null===(p=h.current)||void 0===p?void 0:p.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(pg(t.target))O();else if(fg(t.target)){var i;S(b||k(!0)),hg(null===(i=h.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(dg(t.target)){var a;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=Ht()(t).indexOf(e);n>=1&&gg(t[n-1])}else s.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===(a=h.current)||void 0===a?void 0:a.input)}}else if(pg(t.target)&&v)P(t),O(),mg(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(fg(t.target)){var u;O(),mg(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(dg(t.target)){var l,d;if(c)P(t,!0),S(null),r=null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l?void 0:l.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(cg));e&&e.focus({preventScroll:!0})}}),0);else P(t),O(),mg(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;gg(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(v){if(v&&null===k(!1)){var f;S(b||k(!0)),hg(null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f?void 0:f.componentNode)}}else y(!0),t.key="Handled".concat(t.key)},C=function(){var e;y((function(e){return!e})),S(null),gg(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:C,onKeyDown:_,onChange:D,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:v,selected:b,showTimeInput:c,minDate:w,maxDate:x,ref:h,className:lg},timeInputProps:{onKeyDown:_,className:cg},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:C,className:v?"react-datepicker-ignore-onclickoutside":""}}};var wg="HH:mm:ss",xg="HH:mm",Og=function(e){return rf(e,xg)},kg=function(e){var t=function(e){return e?rf(e,wg)?nf(e,wg,new Date):rf(e,xg)?nf(e,xg,new Date):rf(e,"HH:")?nf(e,"HH:",new Date):rf(e,"H")?nf(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return Zl(e,xg)}(t):""};const Sg=function(e,t){var n=kg(e),r=(0,p.useState)(n),o=et()(r,2),i=o[0],a=o[1],s=(0,p.useRef)(i),c=st.usePrevious(n);(0,p.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=kg(n);p&&!Og(p)||t(p)}},onBlur:function(){if(i!==n){var e=kg(i);e&&Og(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Eg=["value","onChange","onKeyDown"];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 Dg(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){Ve()(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}tp();var _g=function(e){var t=e.onChange,n=e.label;return(0,Ke.jsx)(Et,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Cg=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=qe()(e,Eg),i=Sg(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ke.jsx)(sg,Dg(Dg(Dg({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Tg={strategy:"fixed"};const jg=(0,Me.SL)((0,f.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,h=void 0===f?[]:f,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,p.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,p.useRef)(null),O=Boolean(r),k=!t&&O,S=function(e){y.current=e,c(e)},E=bg(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,D=E.timeInputProps,_=E.clearButtonProps,C=E.calendarButtonProps;return(0,Ke.jsx)(ig,{immutable:t,id:n,tabIndex:"-1",children:(0,Ke.jsxs)(ag,{immutable:t,ref:x,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},"data-ignore-arrow-navigation":!0,children:[(0,Ke.jsx)(Uu(),Dg(Dg({id:n?"".concat(n,"-datepicker"):null,popperClassName:Eu},P),{},{disabled:t,dateFormat:[].concat(Ht()(g),Ht()(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ke.jsx)(Cg,Dg({},D)),showTimeSelect:d,timeIntervals:15,popperProps:Tg,portalId:"react-datepicker",todayButton:(0,Ke.jsx)(_g,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ke.jsx)(Mt,Dg({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ke.jsx)(Mt,Dg({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,f.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,f.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat($f(a.locale)),u="".concat(Kf(a.locale)),l=Qf(a.locale),d=[c,l,Zf(c),Zf(l)],p=Xf(a.locale),h=[u,p,Zf(u),Zf(p)];return(0,Ke.jsx)(jg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:i},s))}));var Mg,Ig,Ng,Rg,Lg,Fg,Hg,Bg,Wg=Me.Ay.section.withConfig({displayName:"StyledSection"})(Mg||(Mg=je()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ug=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(Ig||(Ig=je()(["\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"])),Ot,He.hs.space(-2)),Yg=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Ng||(Ng=je()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Ot,He.t7.color("backgroundItemHover")),Vg=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Rg||(Rg=je()(["\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,He.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),He.t7.color("paper"),(function(e){return e.immutable?He.Db.shade2(e):He.Db.base(e)}),He.hs.space(-2),Ot,He.hs.space(-3.1),He.hs.space(-1.5)),zg=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Lg||(Lg=je()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),He.hs.space(-2)),qg=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledUploadProgressText"})(Fg||(Fg=je()(["\n && {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),Gg=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Hg||(Hg=je()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),He.hs.space(-2)),Kg=Me.Ay.div.withConfig({displayName:"StyledView"})(Bg||(Bg=je()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),He.hs.space(-2));function $g(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Xg(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Qg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Zg(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Jg=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 ev(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Jg.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 tv=[".DS_Store","Thumbs.db"];function nv(e){return"object"==typeof e&&null!==e}function rv(e){return sv(e.target.files).map((function(e){return ev(e)}))}function ov(e){return $g(this,void 0,void 0,(function(){return Xg(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 ev(e)}))]}}))}))}function iv(e,t){return $g(this,void 0,void 0,(function(){var n;return Xg(this,(function(r){switch(r.label){case 0:return e.items?(n=sv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(cv))]):[3,2];case 1:return[2,av(uv(r.sent()))];case 2:return[2,av(sv(e.files).map((function(e){return ev(e)})))]}}))}))}function av(e){return e.filter((function(e){return-1===tv.indexOf(e.name)}))}function sv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function cv(e){if("function"!=typeof e.webkitGetAsEntry)return lv(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?fv(t):lv(e)}function uv(e){return e.reduce((function(e,t){return Zg(Zg([],Qg(e),!1),Qg(Array.isArray(t)?uv(t):[t]),!1)}),[])}function lv(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ev(t);return Promise.resolve(n)}function dv(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return[2,e.isDirectory?fv(e):pv(e)]}))}))}function fv(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return $g(i,void 0,void 0,(function(){var i,a,s;return Xg(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(dv)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function pv(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ev(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var hv=c(9455);function mv(e){return function(e){if(Array.isArray(e))return xv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wv(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 gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(n),!0).forEach((function(t){yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||wv(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 wv(e,t){if(e){if("string"==typeof e)return xv(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)?xv(e,t):void 0}}function xv(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 Ov="file-invalid-type",kv="file-too-large",Sv="file-too-small",Ev="too-many-files",Pv=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:Ov,message:"File type must be ".concat(t)}},Dv=function(e){return{code:kv,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},_v=function(e){return{code:Sv,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Cv={code:Ev,message:"Too many files"};function Tv(e,t){var n="application/x-moz-file"===e.type||(0,hv.A)(e,t);return[n,n?null:Pv(t)]}function jv(e,t,n){if(Av(e.size))if(Av(t)&&Av(n)){if(e.size>n)return[!1,Dv(n)];if(e.size<t)return[!1,_v(t)]}else{if(Av(t)&&e.size<t)return[!1,_v(t)];if(Av(n)&&e.size>n)return[!1,Dv(n)]}return[!0,null]}function Av(e){return null!=e}function Mv(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Iv(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 Nv(e){e.preventDefault()}function Rv(){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!Mv(e)&&t&&t.apply(void 0,[e].concat(r)),Mv(e)}))}}function Lv(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Fv(e){return/^.*\.[\w]+$/.test(e)}var Hv=["children"],Bv=["open"],Wv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Uv=["refKey","onChange","onClick"];function Yv(e){return function(e){if(Array.isArray(e))return qv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zv(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 Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||zv(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 zv(e,t){if(e){if("string"==typeof e)return qv(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)?qv(e,t):void 0}}function qv(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 Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gv(Object(n),!0).forEach((function(t){$v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qv=(0,p.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Kv(Kv({},Zv),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,p.useMemo)((function(){return function(e){if(Av(e))return Object.entries(e).reduce((function(e,t){var n=bv(t,2),r=n[0],o=n[1];return[].concat(mv(e),[r],mv(o))}),[]).filter((function(e){return Lv(e)||Fv(e)})).join(",")}(n)}),[n]),_=(0,p.useMemo)((function(){return function(e){if(Av(e)){var t=Object.entries(e).filter((function(e){var t=bv(e,2),n=t[0],r=t[1],o=!0;return Lv(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(Fv)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=bv(t,2),r=n[0],o=n[1];return vv(vv({},e),{},yv({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),C=(0,p.useMemo)((function(){return"function"==typeof v?v:ry}),[v]),T=(0,p.useMemo)((function(){return"function"==typeof g?g:ry}),[g]),j=(0,p.useRef)(null),A=(0,p.useRef)(null),M=Vv((0,p.useReducer)(ny,ty),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,p.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),T()))}),300)};(0,p.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,L,T,F]);var B=(0,p.useRef)([]),W=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,p.useEffect)((function(){return w&&(document.addEventListener("dragover",Nv,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Nv),document.removeEventListener("drop",W))}}),[j,w]),(0,p.useEffect)((function(){return!r&&b&&j.current&&j.current.focus(),function(){}}),[j,b,r]);var U=(0,p.useCallback)((function(e){E?E(e):console.error(e)}),[E]),Y=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Yv(B.current),[e.target]),Iv(e)&&Promise.resolve(o(e)).then((function(t){if(!Mv(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=bv(Tv(e,n),1)[0],i=bv(jv(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,D,a,i,s,c,P]),V=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Iv(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),z=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Iv(e)&&l&&l(e))}),[j,l,S]),q=(0,p.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Vv(Tv(e,D),2),o=t[0],s=t[1],c=Vv(jv(e,a,i),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:[Cv]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,D,a,i,c,f,h,m,P]),G=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],Iv(e)&&Promise.resolve(o(e)).then((function(t){Mv(e)&&!S||q(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,q,U,S]),K=(0,p.useCallback)((function(){if(F.current){N({type:"openDialog"}),C();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(F.current=!1,A.current?(A.current.value=null,A.current.click()):U(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."))):(T(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),C(),A.current.value=null,A.current.click())}),[N,C,T,y,q,U,_,s]),$=(0,p.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[j,K]),X=(0,p.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,p.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,p.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[x,K]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,p.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Xv(e,Wv);return Kv(Kv($v({onKeyDown:ee(Rv(i,$)),onFocus:ee(Rv(a,X)),onBlur:ee(Rv(s,Q)),onClick:J(Rv(c,Z)),onDragEnter:te(Rv(u,Y)),onDragOver:te(Rv(l,V)),onDragLeave:te(Rv(d,z)),onDrop:te(Rv(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),p)}}),[j,$,X,Q,Z,Y,V,z,G,O,k,r]),oe=(0,p.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,p.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Xv(e,Uv);return Kv(Kv({},$v({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Rv(r,G)),onClick:J(Rv(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Kv(Kv({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:j,inputRef:A,open:J(K)})}(Xv(e,Hv)),o=r.open,i=Xv(r,Bv);return(0,p.useImperativeHandle)(t,(function(){return{open:o}}),[o]),m().createElement(p.Fragment,null,n(Kv(Kv({},i),{},{open:o})))}));Qv.displayName="Dropzone";var Zv={disabled:!1,getFilesFromEvent:function(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return nv(e)&&nv(e.dataTransfer)?[2,iv(e.dataTransfer,e.type)]:function(e){return nv(e)&&nv(e.target)}(e)?[2,rv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,ov(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};Qv.defaultProps=Zv,Qv.propTypes={children:Ce().func,accept:Ce().objectOf(Ce().arrayOf(Ce().string)),multiple:Ce().bool,preventDropOnDocument:Ce().bool,noClick:Ce().bool,noKeyboard:Ce().bool,noDrag:Ce().bool,noDragEventsBubbling:Ce().bool,minSize:Ce().number,maxSize:Ce().number,maxFiles:Ce().number,disabled:Ce().bool,getFilesFromEvent:Ce().func,onFileDialogCancel:Ce().func,onFileDialogOpen:Ce().func,useFsAccessApi:Ce().bool,autoFocus:Ce().bool,onDragEnter:Ce().func,onDragLeave:Ce().func,onDragOver:Ce().func,onDrop:Ce().func,onDropAccepted:Ce().func,onDropRejected:Ce().func,onError:Ce().func,validator:Ce().func};const Jv=Qv;var ey,ty={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ny(e,t){switch(t.type){case"focus":return Kv(Kv({},e),{},{isFocused:!0});case"blur":return Kv(Kv({},e),{},{isFocused:!1});case"openDialog":return Kv(Kv({},ty),{},{isFileDialogActive:!0});case"closeDialog":return Kv(Kv({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Kv(Kv({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Kv(Kv({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Kv({},ty);default:return e}}function ry(){}function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oy(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ay=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ke.jsxs)(Vg,{immutable:n,children:[(0,Ke.jsx)(Jv,{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,Ke.jsx)(Wg,{children:(0,Ke.jsxs)(Yg,iy(iy({},t()),{},{children:[(0,Ke.jsx)("input",iy({},n())),ey||(ey=(0,Ke.jsx)(Et,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ke.jsx)(Et,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var sy,cy=Me.Ay.figure.withConfig({displayName:"StyledPreview"})(sy||(sy=je()(["\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"])),He.hs.space(-2.2),He.t7.color("border"),He.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const uy=cy;var ly;const dy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ke.jsx)("img",{alt:n,title:n,src:t}):(0,Ke.jsx)("div",{title:n,children:ly||(ly=(0,Ke.jsx)(Ge.A,{icon:"file-alt"}))});return(0,Ke.jsxs)(uy,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ke.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ke.jsx)(cr.Ay.Figcaption,{children:o})]})};var fy=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 py=function(e){var t=e.file,n=e.text;return(0,Ke.jsxs)(zg,{children:[(0,Ke.jsx)(dy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ke.jsxs)(Gg,{children:[(0,Ke.jsx)(Ze,{position:He.xX.position.PREPEND}),(0,Ke.jsxs)(qg,{children:[n||"uploading"," (",fy(t.size),")"]})]})]})};var hy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const my={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 hy(e,"download",!0)},addParameterToURL:hy};function gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vy(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){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yy=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ke.jsxs)(Kg,{className:"StyledView",children:[(0,Ke.jsx)(dy,vy(vy({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ke.jsxs)(Ug,{children:[!o&&(0,Ke.jsx)(Et,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ke.jsx)(Et,{children:(0,Ke.jsx)(oo.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:my.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function by(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xy=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,p.useRef)(t),s=(0,p.useState)({isUploading:!1,previewFile:null}),c=et()(s,2),u=c[0],l=c[1];return(0,p.useEffect)((function(){nr()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ke.jsx)(yy,wy(wy({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ke.jsx)(py,wy({file:u.previewFile,text:r.uploading},e)):(0,Ke.jsx)(ay,wy(wy({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};var Oy,ky;Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Oy||(Oy=je()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),so,(function(e){return e.width})),Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(ky||(ky=je()(["\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"])),He.hs.space(1),(function(e){return e.immutable?He.t7.color("textDisabled"):He.t7.color("text")}),(function(e){return e.immutable&&"text"}));var Sy;const Ey=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Sy||(Sy=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsxs)(ao,{immutable:e.immutable,children:[(0,Ke.jsx)(Ey,{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,Ke.jsx)(uo,{children:(0,Ke.jsx)(oo.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));c(67197);var Py=c(44383),Dy=c.n(Py);var _y;function Cy(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 Ty(){}function jy(e){return!!(e||"").match(/\d/)}function Ay(e){return null==e}function My(e){return Ay(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Iy(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ny(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 Ry(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Ly(e,t){return Array(t+1).join(e)}function Fy(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Ly("0",Math.abs(a))+o:a>=s?o+=Ly("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Hy(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Ny(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Ry(u[1]||"",t,n)}function By(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"}(_y||(_y={}));var Wy,Uy,Yy,Vy=(Wy=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Yy=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Uy&&e.length===Uy.length&&e.every((function(e,t){return e===Uy[t]}))?Yy:(Uy=e,Yy=Wy.apply(void 0,e))}),zy=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function qy(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gy(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ky(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function $y(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 Xy(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(jy(e[n])||jy(e[n-1]));return t}function Qy(e,t,n,r,o,i){void 0===i&&(i=Ty);var a=function(e){var t=(0,p.useRef)(e);t.current=e;var n=(0,p.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return My(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Fy(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,p.useState)((function(){return a(Ay(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Ay(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,p.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Zy(e){return e.replace(/[^0-9]/g,"")}function Jy(e){return e}function eb(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Jy);var s=e.removeFormatting;void 0===s&&(s=Zy);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Ty);var h=e.onKeyDown;void 0===h&&(h=Ty);var g=e.onMouseUp;void 0===g&&(g=Ty);var v=e.onFocus;void 0===v&&(v=Ty);var y=e.onBlur;void 0===y&&(y=Ty);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=Xy);var x=e.isValidInputCharacter;void 0===x&&(x=jy);var O=e.isCharacterSame,k=Cy(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Qy(b,c,Boolean(u),a,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],C=(0,p.useRef)(),T=(0,p.useRef)({formattedValue:P,numAsString:D}),j=function(e,t){T.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},A=(0,p.useState)(!1),M=A[0],I=A[1],N=(0,p.useRef)(null),R=(0,p.useRef)({setCaretTimeout:null,focusTimeout:null});(0,p.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=a,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||(By(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&By(e,t)}),0))},B=function(e,t,n){return $y(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Ky);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,x,O);return o=$y(t,o,r)};(0,p.useEffect)((function(){var e=T.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||j(F(P,D),{event:void 0,source:_y.props})}),[P,D]);var U=N.current?qy(N.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var e=N.current;if(P!==T.current.formattedValue&&e){var t=W(T.current.formattedValue,P,U);e.value=P,H(e,t,P)}}),[P]);var Y=function(e,t,n){var r=t.target,o=C.current?zy(C.current,r.selectionEnd):Vy(P,e),i=Object.assign(Object.assign({},o),{lastValue:P}),a=s(e,i),c=L(a);if(a=s(c,void 0),d&&!d(F(c,a))){var u=t.target,l=qy(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,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=qy(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&j(F(t,a),{event:i,source:o})}({formattedValue:c,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},V=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;C.current={selectionStart:n,selectionEnd:r+t}},z=!M||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:z},k,{type:t,value:P,onChange:function(e){var t=e.target.value;Y(t,e,_y.event)&&f(e),C.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===i&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!c)return h(e),void V(n,s);var u=t;c?(u=B(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(u=B(a,t,"left")):u=B(a,t,"right");u!==t&&H(n,u,a),h(e),V(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()})),g(e),V(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,R.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=B(i,r);a===r||0===r&&o===i.length||H(t,a,i),v(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),y(e)}});if("text"===n)return o?m().createElement(m().Fragment,null,o(P,k)||null):m().createElement("span",Object.assign({},k,{ref:i}),P);if(r){var G=r;return m().createElement(G,Object.assign({},q,{ref:i}))}return m().createElement("input",Object.assign({},q,{ref:i}))}function tb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=nb(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Ny(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Ry(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function nb(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 rb(e,t,n){var r;void 0===t&&(t=Gy(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=nb(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(jy(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-a.length||O<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?P=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Iy(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Iy(h),"g"),(function(e,t){return t===_?".":""}));var C=Ny(e,o),T=C.beforeDecimal,j=C.afterDecimal,A=C.addNegation;return u.end-u.start<c.end-c.start&&""===T&&m&&!parseFloat(j)&&(e=A?"-":""),e}function ob(e){e=function(e){var t=nb(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Ty);var i=e.onBlur;void 0===i&&(i=Ty);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Cy(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=nb(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return tb(t,e)},b=function(t,n){return rb(t,n,e)},w=Ay(d)?l:d,x=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Ay(d)?Ay(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return My(e)?e:("number"==typeof e&&(e=Fy(e)),x&&"number"==typeof s?Hy(e,s,Boolean(c)):e)},k=Qy(O(d),O(l),Boolean(x),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||jy(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Vy(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:D,format:y,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&By(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(By(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&By(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&By(t,i-1),"Delete"===r&&d[i]===f&&By(t,i+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=Hy(n,s,c)),n!==E){var o=tb(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:_y.event})}i(t)}})}function ib(e){var t=ob(e);return m().createElement(eb,Object.assign({},t))}var ab,sb=["immutable"];function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ub=(0,Me.Ay)((function(e){e.immutable;var t=qe()(e,sb);return(0,Ke.jsx)(ib,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ab||(ab=je()(["\n &&&& {\n ","\n }\n"])),so);const lb=ub;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){Ve()(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=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},hb=function(e){return null!=e&&!isNaN(parseFloat(e))},mb=function(e,t,n){return!hb(n)||!(hb(t)&&n>t)&&!(hb(e)&&n<e)},gb=function(e,t){return function(n){var r=n.floatValue;return pb(r)<pb(e)||mb(e,t,r)}};(0,f.injectIntl)(st.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,s,u),g=fb(fb({isAllowed:gb(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(lb,fb(fb({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&mb(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&&!mb(c,m,r)&&(t.target.value=null)}}))})}),800));st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ke.jsx)(ao,{immutable:o,children:(0,Ke.jsx)(lb,{isAllowed:gb(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),mb(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var vb,yb,bb;Me.Ay.div.withConfig({displayName:"StyledWrapper"})(vb||(vb=je()(["\n display: flex;\n justify-content: stretch;\n"]))),Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(yb||(yb=je()(["\n flex-grow: 1;\n"]))),Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(bb||(bb=je()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),He.t7.color("border"),He.hs.space(-.8),He.hs.space(.5));var wb;Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(wb||(wb=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(Ey,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var xb,Ob,kb,Sb,Eb,Pb=c(60115),Db=(Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(xb||(xb=je()(["\n margin: "," 0;\n display: flex;\n"])),He.hs.space(-1.4)),Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(Ob||(Ob=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),(0,Me.AH)(kb||(kb=je()(["\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"])),He.t7.color("secondary"),He.t7.color("secondaryLight"),He.t7.color("secondary")));Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(Sb||(Sb=je()(["\n ","\n"])),Db),(0,Me.Ay)($m).withConfig({displayName:"StyledHtmlFormatter"})(Eb||(Eb=je()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Db);const _b=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Cb,Tb,jb,Ab=(0,Me.AH)(Cb||(Cb=je()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),so),Mb=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(Tb||(Tb=je()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),Ab),Ib=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(jb||(jb=je()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Ab,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?He.hs.space(-1.2):"0"}));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 Rb(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){Ve()(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}const Lb=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,p.useState)(t),c=et()(s,2),u=c[0],l=c[1],d=!_b(),f=_b(),h=(0,p.useCallback)(mo()(l,500,{trailing:!0}),[]);return(0,p.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ke.jsx)(Mb,Rb(Rb({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ke.jsx)(Ib,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};st.Debouncer((function(e){return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(Lb,{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 Fb;Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Fb||(Fb=je()(["\n &&&& {\n ","\n }\n"])),so);var Hb;const Bb=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Hb||(Hb=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsxs)(ao,{immutable:e.immutable,children:[(0,Ke.jsx)(Bb,{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,Ke.jsx)(uo,{children:(0,Ke.jsx)(oo.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Wb=(0,Me.SL)((function(e){return(0,Ke.jsx)(Ge.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Ub=function(e){var t=(0,f.useIntl)();return(0,Ke.jsx)(cr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ke.jsx)(f.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var Yb;const Vb=(0,f.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),Yb||(Yb=(0,Ke.jsx)(cr.Ay.Span,{}));var o=Zl(r,"HH:mm");return(0,Ke.jsxs)(cr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ke.jsx)(f.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var zb;function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kb=function(e){var t=e.options||{},n=(0,Ke.jsxs)(Ke.Fragment,{children:[t.title&&(0,Ke.jsx)(cr.Ay.H5,{children:t.title}),(0,Ke.jsx)($m,Gb({},e))]});return"text"===t.mode?n:(0,Ke.jsx)(Cm,{content:n,isPlainHtml:!0,children:zb||(zb=(0,Ke.jsx)(xm,{children:(0,Ke.jsx)(Ge.A,{icon:"question-circle"})}))})};const $b=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=fo()(r,t.resourceKey,null);return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Cm,{content:i?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(i)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ke.jsx)(oo.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ke.jsx)(oo.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:my.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Xb=function(e){return(0,Ke.jsx)(xy,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Qb=function(e){var t=e.value,n=parseInt(t),r=qf(n);return(0,Ke.jsx)(cr.Ay.Time,{dateTime:r,title:r,children:r})};const Zb=function(e){return(0,Ke.jsx)(oo.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 Jb=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nw=function(){return"; "};const rw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(a.DetailLink,tw(tw({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(nw,{},"sep".concat(n)),t]})):null;return(0,Ke.jsx)(cr.Ay.Span,{breakWords:r,useTitle:o,children:c})};const ow=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const iw=function(e){var t;return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cw=(0,p.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const uw=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:"",children:(0,Ke.jsx)(cw,sw({},e))})};function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=fo()(a,t.key,null);t=sr.getOrFirst(t);var d=(0,Ke.jsx)(cr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(c.DetailLink,dw(dw({},u),{},{entityKey:t.key,children:(0,Ke.jsx)(Cm,{content:l?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(l)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const pw=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const hw=function(e){return e.breakWords?(0,Ke.jsx)(cr.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,Ke.jsx)("br",{},t)]:e})))}):(0,Ke.jsx)(cr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var mw=function(e,t){return parseInt(e.split(":")[t])||0};const gw=(0,f.injectIntl)((function(e){var t=e.value,n=(e.intl,mw(t,0)),r=mw(t,1),o=mw(t,2),i=mw(t,3),a=new Date(2e3,1,1,n,r,o,i),s=Zl(a,"HH:mm:ss.SSS"),c=Zl(a,"HH:mm");return(0,Ke.jsx)(cr.Ay.Time,{dateTime:s,title:c,children:c})}));const vw=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ke.jsx)(oo.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var yw,bw={boolean:Wb,date:Ub,datetime:Vb,document:Xb,"document-compact":$b,duration:Qb,email:Zb,html:$m,integer:Jb,"multi-remote":rw,"multi-select":rw,number:ow,percent:iw,phone:uw,remote:fw,"single-select":fw,string:pw,text:hw,time:gw,url:vw,description:Kb};const ww=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(bw[t]){var u=bw[t];return(0,Ke.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),yw||(yw=(0,Ke.jsx)("div",{}))};var xw;const Ow=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?xw||(xw=(0,Ke.jsx)("span",{})):(0,Ke.jsx)(ww,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},kw=Ow;var Sw;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Sw||(Sw=je()(["\n height: fit-content;\n margin-bottom: ",";\n"])),He.hs.space(.25));var Ew;Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Ew||(Ew=je()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),He.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(He.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));var Pw,Dw,_w,Cw,Tw=c(5016),jw=(0,Me.i7)(Pw||(Pw=je()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Aw=(0,Me.AH)(Dw||(Dw=je()(["\n animation: "," 400ms ease-in-out both;\n"])),jw),Mw=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(_w||(_w=je()(["\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"])),He.hs.space(-1),Aw,Tw.oY,He.hs.space(-1));const Iw=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(Cw||(Cw=je()(["\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 Nw;const Rw=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,p.useState)(!1),s=et()(a,2),c=s[0],u=s[1],l=(0,p.useState)(!0),d=et()(l,2),f=d[0],h=d[1];(0,p.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ke.jsx)(Iw,{className:i,children:m?r:(0,Ke.jsxs)(Mw,{children:[Nw||(Nw=(0,Ke.jsx)(Ze,{size:"30px"},"loading-spinner")),o&&(0,Ke.jsx)(cr.Ay.Span,{children:o},"loadingText")]})})};var Lw,Fw=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Lw||(Lw=je()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const Hw=Fw;var Bw=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Ww=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=qe()(e,Bw),d=(0,p.useState)(a),f=et()(d,2),h=f[0],g=f[1],v="boolean"==typeof o,y=function(){c&&(v?"function"==typeof u&&u(!o):g(!h))};return(0,Ke.jsx)(Hw,{isFramed:r,"data-cy":l["data-cy"],children:m().Children.map(t,(function(e){return m().cloneElement(e,{isFramed:r,isOpen:v?o:h,isToggleable:c,toggleOpenState:y})}))})};var Uw,Yw=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Uw||(Uw=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?He.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Vw=Yw;var zw=["children","isFramed","isOpen"];const qw=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=qe()(e,zw);return(0,Ke.jsx)(Vw,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ke.jsx)("div",{children:t})})};const Gw=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,p.useState)(t),o=et()(r,2),i=o[0],a=o[1];return(0,Ke.jsx)(Ke.Fragment,{children:m().Children.map(n,(function(e,t){return m().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Kw;const $w=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Kw||(Kw=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),Hw,He.hs.space(-1));function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zw=function(e){return(0,Ke.jsx)($w,{children:(0,Ke.jsx)(Gw,Qw({},e))})};var Jw,ex,tx,nx,rx,ox,ix,ax="1px",sx=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jw||(Jw=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!He.CN&&(0,Me.AH)(ex||(ex=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight"))),cx=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(tx||(tx=je()(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),He.t7.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,Me.AH)(nx||(nx=je()(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),He.t7.radii("form"),ax,He.t7.radii("form"),ax):(0,Me.AH)(rx||(rx=je()(["\n calc("," - ",")\n "])),He.t7.radii("form"),ax)}),(function(e){return e.isFramed?(0,Me.AH)(ox||(ox=je()(["\n "," ","\n "])),He.hs.space(-1.7),He.hs.space(-.375)):0}),!He.CN&&(0,Me.AH)(ix||(ix=je()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),sx),(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(ax,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ax,";\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(ax,";\n }\n ")}(e)}));const ux=cx;var lx=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const dx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=qe()(e,lx);return(0,Ke.jsxs)(ux,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(sx,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},fx={Body:qw,Group:Zw,Header:dx,Wrapper:Ww};var px,hx=Me.Ay.div.withConfig({displayName:"StyledPanel"})(px||(px=je()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const mx=hx;const gx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1];return(0,Ke.jsx)(mx,{isFramed:r,children:m().Children.map(t,(function(e){return m().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var vx,yx,bx=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(vx||(vx=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(yx||(yx=je()(["\n "," "," "," ","\n "])),He.hs.space(-1),He.hs.space(.2),He.hs.space(.2),He.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const wx=bx;const xx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ke.jsx)(wx,{isFramed:n,isOpen:r,children:(0,Ke.jsx)("div",{children:t})})};var Ox;const kx=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Ox||(Ox=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),mx,He.hs.space(-1));function Sx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sx(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Px=function(e){return(0,Ke.jsx)(kx,{children:(0,Ke.jsx)(Gw,Ex({},e))})};var Dx,_x,Cx,Tx="1px",jx=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Dx||(Dx=je()(["\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"])),He.t7.color("paper"),He.t7.radii("form"),Tx,He.t7.radii("form"),Tx,(function(e){return e.isFramed?He.hs.space(.2):0}),He.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(Tx,";\n }\n ")}(e)})),Ax=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(_x||(_x=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!He.CN&&(0,Me.AH)(Cx||(Cx=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight")));const Mx=jx;const Ix=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ke.jsxs)(Mx,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(Ax,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Nx={Body:xx,Group:Px,Header:Ix,Wrapper:gx};var Rx={Body:Ve()(Ve()({},Pb.A.EmbedType.admin,fx.Body),Pb.A.EmbedType.widget,Nx.Body),Group:Ve()(Ve()({},Pb.A.EmbedType.admin,fx.Group),Pb.A.EmbedType.widget,Nx.Group),Header:Ve()(Ve()({},Pb.A.EmbedType.admin,fx.Header),Pb.A.EmbedType.widget,Nx.Header),Wrapper:Ve()(Ve()({},Pb.A.EmbedType.admin,fx.Wrapper),Pb.A.EmbedType.widget,Nx.Wrapper)};Pb.A.embedStrategyFactory({mapping:Rx.Body}),Pb.A.embedStrategyFactory({mapping:Rx.Group}),Pb.A.embedStrategyFactory({mapping:Rx.Header}),Pb.A.embedStrategyFactory({mapping:Rx.Wrapper});var Lx;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Lx||(Lx=je()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),He.hs.space(0),He.t7.color("paper"));var Fx=new AbortController,Hx=!1;window.addEventListener("beforeunload",(function(e){Hx?(e.preventDefault(),e.returnValue=""):Fx.abort()})),window.addEventListener("pagehide",(function(){Fx.signal.aborted||Fx.abort()}));var Bx=function(e){return"@@redux-saga/"+e},Wx=Bx("CANCEL_PROMISE"),Ux=Bx("CHANNEL_END"),Yx=Bx("IO"),Vx=Bx("MATCH"),zx=Bx("MULTICAST"),qx=Bx("SAGA_ACTION"),Gx=Bx("SELF_CANCELLATION"),Kx=Bx("TASK"),$x=Bx("TASK_CANCEL"),Xx=Bx("TERMINATE"),Qx=Bx("LOCATION");function Zx(){return Zx=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},Zx.apply(this,arguments)}var Jx=function(e){return null==e},eO=function(e){return null!=e},tO=function(e){return"function"==typeof e},nO=function(e){return"string"==typeof e},rO=Array.isArray,oO=function(e){return e&&tO(e.then)},iO=function(e){return e&&tO(e.next)&&tO(e.throw)},aO=function e(t){return t&&(nO(t)||uO(t)||tO(t)||rO(t)&&t.every(e))},sO=function(e){return e&&tO(e.take)&&tO(e.close)},cO=function(e){return tO(e)&&e.hasOwnProperty("toString")},uO=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},lO=function(e){return sO(e)&&e[zx]};var dO=function(e){return function(){return e}},fO=dO(!0),pO=function(){};var hO=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var mO=function(e,t){Zx(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function gO(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function vO(e){var t=!1;return function(){t||(t=!0,e())}}var yO=function(e){throw e},bO=function(e){return{value:e,done:!0}};function wO(e,t,n){void 0===t&&(t=yO),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:bO,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function xO(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var OO=function(e){return Array.apply(null,new Array(e))},kO=function(e){return function(t){return e(Object.defineProperty(t,qx,{value:!0}))}},SO=function(e){return e===Xx},EO=function(e){return e===$x},PO=function(e){return SO(e)||EO(e)};function DO(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=rO(e)?OO(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||PO(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=pO,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function _O(e){return{name:e.name||"anonymous",location:CO(e)}}function CO(e){return e[Qx]}function TO(){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 jO={isEmpty:fO,put:pO,take:pO};function AO(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var MO=function(){return jO},IO=function(e){return AO(e,4)},NO="TAKE",RO="PUT",LO="ALL",FO="RACE",HO="CALL",BO="CPS",WO="FORK",UO="JOIN",YO="CANCEL",VO="SELECT",zO="ACTION_CHANNEL",qO="CANCELLED",GO="FLUSH",KO="GET_CONTEXT",$O="SET_CONTEXT",XO=function(e,t){var n;return(n={})[Yx]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function QO(e,t){return void 0===e&&(e="*"),aO(e)?(eO(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),XO(NO,{pattern:e})):lO(e)&&eO(t)&&aO(t)?XO(NO,{channel:e,pattern:t}):sO(e)?(eO(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),XO(NO,{channel:e})):void 0}function ZO(e,t){return Jx(t)&&(t=e,e=void 0),XO(RO,{channel:e,action:t})}function JO(e){var t=XO(LO,e);return t.combinator=!0,t}function ek(e,t){var n,r=null;return tO(e)?n=e:(rO(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&nO(n)&&tO(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function tk(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 XO(HO,ek(e,n))}function nk(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 XO(WO,ek(e,n))}function rk(e){void 0===e&&(e=hO);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return XO(VO,{selector:e,args:n})}var ok=function(e){return{done:!0,value:e}},ik={};function ak(e){return sO(e)?"channel":cO(e)?String(e):tO(e)?e.name:String(e)}function sk(e,t,n){var r,o,i,a=t;function s(t,n){if(a===ik)return ok(t);if(n&&!o)throw a=ik,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===ik?ok(t):i}return wO(s,(function(e){return s(null,e)}),n)}function ck(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:QO(e)},s=function(e){return i=e};return sk({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:nk.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+ak(e)+", "+t.name+")")}function uk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:QO(e)},c=function(e){return{done:!1,value:nk.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=Gx),XO(YO,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return sk({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+ak(e)+", "+t.name+")")}function lk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return nk.apply(void 0,[ck,e,t].concat(r))}function dk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return nk.apply(void 0,[uk,e,t].concat(r))}var fk=function(e,t,n){return r().mark((function o(){var i,a,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),c=0;c<i;c++)a[c]=u[c];case 1:return r.prev=2,r.next=5,tk.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Fx.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,ZO(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:s.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const pk={autoRestartSaga:fk,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,JO(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(fk(t,null,n)))},abortController:Fx,deactivatePreventFromLeaving:function(){Hx=!1},activatePreventFromLeaving:function(){Hx=!0}};Ce().node,Ce().bool,Ce().string,Ce().bool,Ce().objectOf(Ce().arrayOf(Ce().oneOfType([Ce().node,Ce().string]))),Ce().bool,Ce().bool,Ce().string,Ce().string,Ce().oneOf(["inside","outside-responsive","outside"]),Ce().bool,Ce().string,Ce().bool,Ce().string,Ce().bool;var hk,mk,gk,vk=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,He.t7.color("text")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),yk=(0,Me.Ay)(cr.dV).withConfig({displayName:"StyledSignalList"})(hk||(hk=je()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),bk=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(mk||(mk=je()(["\n margin-left: -1px;\n margin-right: ",";\n"])),He.hs.space(-2)),wk=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledSignalListItem"})(gk||(gk=je()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return vk[t]}(e)}));const xk=function(e){return(0,Ke.jsx)(yk,{as:"ul",children:m().Children.map(e.children,(function(e){return m().cloneElement(e)}))})};var Ok,kk=["condition","label","children"],Sk=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,!1),He.xX.condition.DANGER,"times"),He.xX.condition.SUCCESS,"check"),He.xX.condition.WARNING,"exclamation-triangle"),He.xX.condition.INFO,"info"),Ek=function(e){var t=Sk[e];return t?(0,Ke.jsx)(Ge.A,{icon:t,position:He.xX.position.SOLE,hasFixedWidth:!1}):Ok||(Ok=(0,Ke.jsx)("i",{children:"•"}))};const Pk=function(e){var t=e.condition,n=void 0===t?He.xX.condition.BASE:t,r=e.label,o=e.children,i=qe()(e,kk);return(0,Ke.jsxs)(wk,{condition:n,"data-cy":i["data-cy"],children:[(0,Ke.jsx)(bk,{children:Ek(n)}),r,m().Children.map(o,(function(e){return m().cloneElement(e)}))]})},Dk={List:xk,Item:Pk};const _k=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Ht()(e.error[n]))})),(0,Ke.jsx)(Dk.List,{children:t.map((function(e,t){return(0,Ke.jsx)(Dk.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var Ck,Tk,jk,Ak,Mk,Ik,Nk,Rk,Lk,Fk,Hk,Bk,Wk,Uk,Yk="1.1px",Vk=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},zk=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(Ck||(Ck=je()(["\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,He.Ed)({lineHeight:He.t7.lineHeight("dense")}),He.t7.color("paper"),(function(e){return Vk(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Tk||(Tk=je()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),He.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(jk||(jk=je()(["\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 "])),He.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":He.hs.space(-1.8)}))}),(function(e){return e.styles})),qk=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(Ak||(Ak=je()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Mk||(Mk=je()(["\n width: auto;\n "])))})),Gk=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Ik||(Ik=je()(["\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"])),Yk,(function(e){return He.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)}),He.t7.radii("form"),He.hs.space(-2.5),He.hs.space(-1.5),(function(e){return!e.immutable&&(0,He.h7)(e)}),(function(e){return Vk(e)}),(0,He.Ed)(),km,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Nk||(Nk=je()(["\n padding: "," "," "," ",";\n "])),He.hs.space(-1),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1))}),(function(e){return e.styles})),Kk=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Rk||(Rk=je()(["\n &&& {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),$k=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(Lk||(Lk=je()([""]))),Xk=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Fk||(Fk=je()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),He.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Hk||(Hk=je()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),He.hs.space(-1.5))})),Qk=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Bk||(Bk=je()(["\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"])),He.hs.space(-1.5),Gk,Kk,$k,He.hs.space(-2),Kk,He.hs.space(-1),Yk,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Wk||(Wk=je()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Uk||(Uk=je()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zk(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const eS=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(sr.adjustedHTMLString(d)).concat(w),O=g||function(e,t,n,r){return t?He.xX.condition.DANGER:e?He.xX.condition.INFO:n&&!r?He.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(Qn.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ke.jsx)($r,{children:function(e){var f=e.getRef;return(0,Ke.jsx)(Xk,{labelPosition:v,children:(0,Ke.jsxs)(Qk,{labelPosition:v,ref:f,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ke.jsx)(zk,Jk(Jk({},S),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ke.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ke.jsxs)(qk,{labelPosition:v,children:[(0,Ke.jsx)(Gk,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(0,Ke.jsx)($k,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ke.jsx)(_k,{error:c}))}),i&&(r||(r=(0,Ke.jsx)(Kk,{children:i})))]})]})})}})};var tS,nS,rS=function(e){return(0,Me.AH)(tS||(tS=je()(["\n color: ",";\n font-weight: ",";\n"])),He.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?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}))},oS=function(){return(0,Me.AH)(nS||(nS=je()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},iS=["labelPosition"];function aS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 sS=function(e){var t=e.labelPosition,n=qe()(e,iS);return(0,Ke.jsx)(eS,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aS(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:rS,valueStyles:oS},labelPosition:t||"outside-responsive"},n))};var cS,uS,lS,dS,fS,pS,hS=function(e){return e.signal?"signal":"shade2"},mS=function(){return(0,Me.AH)(cS||(cS=je()(["\n align-items: flex-start;\n"])))},gS=function(e){return(0,Me.AH)(uS||(uS=je()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(lS||(lS=je()(["\n ","\n "])),He.hs.space(-1.8)):(0,Me.AH)(dS||(dS=je()(["\n ","\n "])),He.hs.space(.1))}),He.Db[hS(e)](e))},vS=function(){return(0,Me.AH)(fS||(fS=je()(["\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,Me.AH)(pS||(pS=je()(["\n ","\n "])),He.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},yS=["labelPosition"];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}const wS=function(e){var t=e.labelPosition,n=qe()(e,yS);return(0,Ke.jsx)(eS,function(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){Ve()(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}({styles:{innerWrapperStyles:mS,labelStyles:gS,valueStyles:vS},labelPosition:t||"outside-responsive"},n))};var xS=Ve()(Ve()({},Pb.A.EmbedType.admin,sS),Pb.A.EmbedType.widget,wS);const OS=Pb.A.embedStrategyFactory({mapping:xS});var kS,SS,ES,PS,DS=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(kS||(kS=je()(["\n margin-right: ",";\n color: ",";\n"])),He.hs.space(-.8),He.t7.color("text")),_S=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(SS||(SS=je()(["\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"]))),CS=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(ES||(ES=je()(["\n &&&& {\n ","\n }\n"])),so),TS=m().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,p.useState)(n||"")),c=et()(s,2),u=c[0],l=c[1];return(0,Ke.jsx)(_S,{children:(0,Ke.jsx)(OS,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ke.jsxs)(ao,{children:[PS||(PS=(0,Ke.jsx)(DS,{children:(0,Ke.jsx)(Ge.A,{icon:"search"})})),(0,Ke.jsx)(CS,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t)},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,Ke.jsx)(Mt,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const jS=st.Debouncer(TS,100,"onSearch");var AS,MS=[He.xX.condition.BASE,He.xX.condition.INFO,He.xX.condition.DANGER,He.xX.condition.SUCCESS,He.xX.condition.WARNING],IS=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,He.t7.color("signal.neutral")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),NS=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(AS||(AS=je()(["\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 IS[e.condition]||IS[He.xX.condition.INFO]}(e)}),He.hs.space(-1),He.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));NS.propTypes={condition:He.xX.oneOfPropTypeAndCompletelyMapped(MS,IS)};function RS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var FS={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},HS={Left:"Left",Right:"Right"},BS={Top:"Top",Bottom:"Bottom"},WS=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?HS.Right:HS.Left,vertical:o?BS.Bottom:BS.Top}};const US=function(e){var t=(0,p.useState)(FS),n=et()(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,p.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return LS(LS({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(FS),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!nr()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=WS(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return LS(LS({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&nr()(a,t)){var n=WS(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return LS(LS({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(FS),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,p.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},YS=HS;var VS,zS,qS,GS,KS,$S,XS,QS=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(VS||(VS=je()(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),ZS=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(zS||(zS=je()(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),He.hs.space(.7)),JS=Me.Ay.ul.withConfig({displayName:"StyledUl"})(qS||(qS=je()(["\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"])),He.hs.space(-.5),cr.Gw),eE=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(GS||(GS=je()(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),He.hs.space(-1)),tE=Me.Ay.span.withConfig({displayName:"StyledId"})(KS||(KS=je()(["\n color: ",";\n font-style: italic;\n"])),He.t7.color("text")),nE=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledItem"})($S||($S=je()(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n // when border appears, the content moves over by the width of the border, so we move the content back the same width\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),He.hs.space(-2),He.hs.space(-2),He.hs.space(-2),(function(e){return e.dropPosition===YS.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===YS.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===YS.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 ")})),rE=Me.Ay.span.withConfig({displayName:"StyledNumber"})(XS||(XS=je()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),He.hs.space(-1),He.t7.color("text"),He.hs.font(0));function oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oE(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},sE=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const cE=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=aE(r),s=(0,p.useState)(null),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===YS.Left)return[].concat(Ht()(e),[o,t]);if(a===YS.Right)return[].concat(Ht()(e),[t,o])}return[].concat(Ht()(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=US(d),h=f.dndEvents,m=f.dndState,g=(0,p.useMemo)((function(){return sE(a,u)}),[a,u]),v=g.some((function(e){return e.hidden})),y=(0,p.useMemo)((function(){return g.map((function(e,n){var r=m.currentlyDragOver===e.id&&m.currentlyDragging!==e.id;return(0,Ke.jsxs)(nE,iE(iE({draggable:t,dropPosition:r&&m.horizontalDropPosition},t&&iE({},h(e.id))),{},{children:[(0,Ke.jsx)(eE,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return aE(n.map((function(n){return n.id===e.id?iE(iE({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ke.jsxs)(cr.Ay.Label,{for:e.id,children:[(0,Ke.jsxs)(rE,{children:[n+1,"."]}),e.label?(0,Ke.jsx)("span",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(e.label)}}):(0,Ke.jsx)(tE,{children:e.id})]})]}),e.id)}))}),[m,t,h,g,o]);return(0,Ke.jsxs)(QS,{children:[(0,Ke.jsx)(jS,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ke.jsxs)(ZS,{children:[(0,Ke.jsx)(eE,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=sE(e,u);return aE(Ht()(e.map((function(e){return iE(iE({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!v}),(0,Ke.jsx)(cr.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ke.jsx)(JS,{children:y})]})};(0,f.injectIntl)(cE);var uE,lE,dE,fE;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(uE||(uE=je()(["\n font-size: ",";\n color: ",";\n"])),He.hs.font(-2.7),He.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(lE||(lE=je()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(dE||(dE=je()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(Mt).withConfig({displayName:"StyledBall"})(fE||(fE=je()(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));var pE,hE,mE,gE,vE,yE=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(pE||(pE=je()(["\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"])),He.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(hE||(hE=je()(["\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,f.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ke.jsxs)(yE,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[mE||(mE=(0,Ke.jsx)("span",{})),gE||(gE=(0,Ke.jsx)("span",{})),vE||(vE=(0,Ke.jsx)("span",{}))]})}));var bE,wE,xE=Me.Ay.div.withConfig({displayName:"StyledPagination"})(bE||(bE=je()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),He.hs.space(-1),He.hs.space(-1.4)),OE=(0,Me.Ay)(Et).withConfig({displayName:"StyledPaginationButton"})(wE||(wE=je()(["\n padding: "," ",";\n"])),He.hs.space(-2),He.hs.space(-.5));const kE=(0,f.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},p=function(e){o(e),a.current.scrollTop=0};return(0,Ke.jsxs)(xE,{children:[(0,Ke.jsxs)(Fr,{children:[(0,Ke.jsx)(OE,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ke.jsx)(OE,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ke.jsx)(OE,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ke.jsx)(OE,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),SE=kE;var EE;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(EE||(EE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(EE||(EE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(EE||(EE={}));var PE=EE;
|
|
78
|
+
*/var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},93419:(e,t,n)=>{"use strict";n.d(t,{v4:()=>O});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const o=function(e){return"string"==typeof e&&r.test(e)};const i=function(e){if(!o(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};for(var a=[],s=0;s<256;++s)a.push((s+256).toString(16).slice(1));function c(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}var u,l=new Uint8Array(16);function d(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(l)}function f(e,t,n){function r(e,r,o,a){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=i(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){a=a||0;for(var l=0;l<16;++l)o[a+l]=u[l];return o}return c(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,o,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function g(e,t,n,r,o,i,a){return m(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return m(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return m(t^n^r,e,t,o,i,a)}function b(e,t,n,r,o,i,a){return m(n^(t|~r),e,t,o,i,a)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=o,l=i;n=g(n,r,o,i,e[a],7,-680876936),i=g(i,n,r,o,e[a+1],12,-389564586),o=g(o,i,n,r,e[a+2],17,606105819),r=g(r,o,i,n,e[a+3],22,-1044525330),n=g(n,r,o,i,e[a+4],7,-176418897),i=g(i,n,r,o,e[a+5],12,1200080426),o=g(o,i,n,r,e[a+6],17,-1473231341),r=g(r,o,i,n,e[a+7],22,-45705983),n=g(n,r,o,i,e[a+8],7,1770035416),i=g(i,n,r,o,e[a+9],12,-1958414417),o=g(o,i,n,r,e[a+10],17,-42063),r=g(r,o,i,n,e[a+11],22,-1990404162),n=g(n,r,o,i,e[a+12],7,1804603682),i=g(i,n,r,o,e[a+13],12,-40341101),o=g(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=g(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=b(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=b(i,n,r,o,e[a+7],10,1126891415),o=b(o,i,n,r,e[a+14],15,-1416354905),r=b(r,o,i,n,e[a+5],21,-57434055),n=b(n,r,o,i,e[a+12],6,1700485571),i=b(i,n,r,o,e[a+3],10,-1894986606),o=b(o,i,n,r,e[a+10],15,-1051523),r=b(r,o,i,n,e[a+1],21,-2054922799),n=b(n,r,o,i,e[a+8],6,1873313359),i=b(i,n,r,o,e[a+15],10,-30611744),o=b(o,i,n,r,e[a+6],15,-1560198380),r=b(r,o,i,n,e[a+13],21,1309151649),n=b(n,r,o,i,e[a+4],6,-145523070),i=b(i,n,r,o,e[a+11],10,-1120210379),o=b(o,i,n,r,e[a+2],15,718787259),r=b(r,o,i,n,e[a+9],21,-343485551),n=h(n,s),r=h(r,c),o=h(o,u),i=h(i,l)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(p(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};f("v3",48,w);const x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const O=function(e,t,n){if(x.randomUUID&&!t&&!e)return x.randomUUID();var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)};function k(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function S(e,t){return e<<t|e>>>32-t}const E=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=S(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),O=S(m,5)+k(x,g,v,y)+b+t[x]+f[w]>>>0;b=y,y=v,v=S(g,30)>>>0,g=m,m=O}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};f("v5",80,E)},4883:e=>{"use strict";e.exports=t},81845:t=>{"use strict";t.exports=e},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>y,batch:()=>Se,connect:()=>ye,createDispatchHook:()=>Oe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>xe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),v=typeof globalThis<"u"?globalThis:{};var y=function(){if(!m.createContext)return{};let e=v[g]??(v[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=y){return function(){return m.useContext(e)}}var x=w(),O=b,k=(e,t)=>e===t;function S(e=y){let t=e===y?x:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=O(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),P=Symbol.for("react.element"),D=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),A=Symbol.for("react.context"),M=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),B=L;function W(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case P:{let n=e.type;switch(n){case _:case T:case C:case N:case R:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case A:case I:case F:case L:case j:return e;default:return t}}}}case D:return t}}}(e)===L}function U(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function Y(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function V(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function z(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=V(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=V(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function X(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var Q=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=Q||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B]:oe};function ae(e){return W(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ve(e,t){return e===t}var ye=function(e,t,n,{pure:r,areStatesEqual:o=ve,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=y}={}){let l=u,d=function(e){return e?"function"==typeof e?z(e):q(e,"mapStateToProps"):Y((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Y((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?z(e):q(e,"mapDispatchToProps"):Y((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return U(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,v]=m.useMemo((()=>{if(!h)return me;let e=X(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(void 0),w=m.useRef(i),x=m.useRef(void 0),O=m.useRef(!1),k=m.useRef(!1),S=m.useRef(void 0);J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,P=m.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,O,i,x,v]);try{E=he(D,P,f?()=>p(f(),i):P)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,x.current=void 0,b.current=E}));let _=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:y},_):_),[a,_,y])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=X(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||y).Provider,{value:a},n)};function we(e=y){let t=e===y?x:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var xe=we();function Oe(e=y){let t=e===y?xe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=Oe(),Se=K;(e=>{O=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},95361:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r.B1,BN:()=>g,ER:()=>v,Ej:()=>y,RK:()=>c,UE:()=>s,UU:()=>u,__:()=>a,cY:()=>m,jD:()=>f,mG:()=>h,rD:()=>i});var r=n(97193);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),c=(0,r.sq)(s),u=(0,r.C0)(t),l="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let h;switch(u){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1)}return h}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(l,r,u),p=r,h={},m=0;for(let n=0;n<c.length;n++){const{name:a,fn:g}=c[n],{x:v,y,data:b,reset:w}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,h={...h,[a]:{...h[a],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:d,y:f}=o(l,p,u))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=c[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y="floating"===f?{...s.floating,x:o,y:i}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:d=0}=(0,r._3)(e,t)||{};if(null==l)return{};const f=(0,r.nI)(d),p={x:n,y:o},h=(0,r.Dz)(i),m=(0,r.sq)(h),g=await s.getDimensions(l),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[h]-p[h]-a.floating[m],O=p[h]-a.reference[h],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let S=k?k[w]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=c.floating[w]||a.floating[m]);const E=x/2-O/2,P=S/2-g[m]/2-1,D=(0,r.jk)(f[y],P),_=(0,r.jk)(f[b],P),C=D,T=S-g[m]-_,j=S/2-g[m]/2+E,A=(0,r.qE)(C,j,T),M=!u.arrow&&null!=(0,r.Sg)(i)&&j!==A&&a.reference[m]/2-(j<C?D:_)-g[m]/2<0,I=M?j<C?j-C:j-T:0;return{[h]:p[h]+I,data:{[h]:A,centerOffset:j-A-I,...M&&{alignmentOffset:I}},reset:M}}});const c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:s,middlewareData:c,placement:u,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:p,allowedPlacements:h=r.DD,autoAlignment:m=!0,...g}=(0,r._3)(e,t),v=void 0!==p||h===r.DD?function(e,t,n){return(e?[...n.filter((t=>(0,r.Sg)(t)===e)),...n.filter((t=>(0,r.Sg)(t)!==e))]:n.filter((e=>(0,r.C0)(e)===e))).filter((n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n))}(p||null,m,h):h,y=await a(t,g),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=v[b];if(null==w)return{};const x=(0,r.w7)(w,s,await(null==l.isRTL?void 0:l.isRTL(d.floating)));if(u!==w)return{reset:{placement:v[0]}};const O=[y[(0,r.C0)(w)],y[x[0]],y[x[1]]],k=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:O}],S=v[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};const E=k.map((e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(i=E.filter((e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return P!==u?{data:{index:b+1,overflows:k},reset:{placement:P}}:{}}}},u=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const b=(0,r.C0)(i),w=(0,r.C0)(u)===u,x=await(null==l.isRTL?void 0:l.isRTL(d.floating)),O=h||(w||!v?[(0,r.bV)(u)]:(0,r.WJ)(u));h||"none"===g||O.push(...(0,r.lP)(u,v,g,x));const k=[u,...O],S=await a(t,y),E=[];let P=(null==(o=s.flip)?void 0:o.overflows)||[];if(f&&E.push(S[b]),p){const e=(0,r.w7)(i,c,x);E.push(S[e[0]],S[e[1]])}if(P=[...P,{placement:i,overflows:E}],!E.every((e=>e<=0))){var D,_;const e=((null==(D=s.flip)?void 0:D.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(_=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var C;const e=null==(C=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=u}if(i!==n)return{reset:{placement:n}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return r.r_.some((t=>e[t]>=0))}const f=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r._3)(e,t);switch(o){case"referenceHidden":{const e=l(await a(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:d(e)}}}case"escaped":{const e=l(await a(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:d(e)}}}default:return{}}}}};function p(e){const t=(0,r.jk)(...e.map((e=>e.left))),n=(0,r.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.T9)(...e.map((e=>e.right)))-t,height:(0,r.T9)(...e.map((e=>e.bottom)))-n}}const h=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:a,strategy:s}=t,{padding:c=2,x:u,y:l}=(0,r._3)(e,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>(0,r.B1)(p(e))))}(d),h=(0,r.B1)(p(d)),m=(0,r.nI)(c);const g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=u&&null!=l)return f.find((e=>u>e.left-m.left&&u<e.right+m.right&&l>e.top-m.top&&l<e.bottom+m.bottom))||h;if(f.length>=2){if("y"===(0,r.TV)(n)){const e=f[0],t=f[f.length-1],o="top"===(0,r.C0)(n),i=e.top,a=t.bottom,s=o?e.left:t.left,c=o?e.right:t.right;return{top:i,bottom:a,left:s,right:c,width:c-s,height:a-i,x:s,y:i}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...f.map((e=>e.right))),o=(0,r.jk)(...f.map((e=>e.left))),i=f.filter((n=>e?n.left===o:n.right===t)),a=i[0].top,s=i[i.length-1].bottom;return{top:a,bottom:s,left:o,right:t,width:t-o,height:s-a,x:o,y:a}}return h}},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};const m=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:c}=t,u=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),l=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,r._3)(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),u?{x:h*d,y:p*l}:{x:p*l,y:h*d}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},g=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=(0,r._3)(e,t),d={x:n,y:o},f=await a(t,l),p=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(p);let m=d[h],g=d[p];if(s){const e="y"===h?"bottom":"right",t=m+f["y"===h?"top":"left"],n=m-f[e];m=(0,r.qE)(t,m,n)}if(c){const e="y"===p?"bottom":"right",t=g+f["y"===p?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=(0,r._3)(e,t),d={x:n,y:o},f=(0,r.TV)(i),p=(0,r.PG)(f);let h=d[p],m=d[f];const g=(0,r._3)(c,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(l){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes((0,r.C0)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:h,[f]:m}}}},y=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:c=(()=>{}),...u}=(0,r._3)(e,t),l=await a(t,u),d=(0,r.C0)(n),f=(0,r.Sg)(n),p="y"===(0,r.TV)(n),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-l[g],b=h-l[v],w=!t.middlewareData.shift;let x=y,O=b;if(p){const e=h-l.left-l.right;O=f||w?(0,r.jk)(b,e):e}else{const e=m-l.top-l.bottom;x=f||w?(0,r.jk)(y,e):e}if(w&&!f){const e=(0,r.T9)(l.left,0),t=(0,r.T9)(l.right,0),n=(0,r.T9)(l.top,0),o=(0,r.T9)(l.bottom,0);p?O=h-2*(0!==e||0!==t?e+t:(0,r.T9)(l.left,l.right)):x=m-2*(0!==n||0!==o?n+o:(0,r.T9)(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:x});const k=await i.getDimensions(s.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}}},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>D,C0:()=>m,DD:()=>i,Dz:()=>w,Jx:()=>l,LI:()=>c,PG:()=>v,RI:()=>u,Sg:()=>g,T9:()=>s,TV:()=>b,WJ:()=>O,_3:()=>h,aD:()=>k,bV:()=>E,jk:()=>a,lP:()=>S,nI:()=>P,qE:()=>p,r_:()=>r,sq:()=>y,w7:()=>x});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,s=Math.max,c=Math.round,u=Math.floor,l=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function w(e){return v(b(e))}function x(e,t,n){void 0===n&&(n=!1);const r=g(e),o=w(e),i=y(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function O(e){const t=E(e);return[k(e),t,k(t)]}function k(e){return e.replace(/start|end/g,(e=>f[e]))}function S(e,t,n,r){const o=g(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}function E(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function D(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"dae07594d6ecc557045e",222:"09ba36517028c8cc2b15",262:"9e407a51e11e02873320",264:"ad29d69c35ceb788d507",310:"72c23e27d9e2f49a3814",672:"e6ffa6e7fb3d26ee06fb",722:"ff4db6f56b773db48894",770:"720b43cfec36a1a4cdb7",916:"d77899cf4be7c1f786f1"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={976:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>ZB});var e=c(79092),t=c.n(e),n=c(92207),r=c.n(n),o=c(80299),i=c.n(o),a=c(5338),s=c(73082),l="tocco-util/LOG_ERROR",d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:l,payload:{title:e,description:t,error:n,dateTime:r}}},f=c(11843),p=c(4883),h=c.t(p,2),m=c.n(p),g=c(78418),v=p,y=Symbol.for("react-redux-context"),b="undefined"!=typeof globalThis?globalThis:{};function w(){if(!v.createContext)return{};const e=b[y]??(b[y]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var x=w(),O=()=>{throw new Error("uSES not initialized!")};var k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),T=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),R=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),j),L=I;function F(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case k:{const n=e.type;switch(n){case E:case D:case P:case A:case M:return n;default:{const e=n&&n.$$typeof;switch(e){case T:case C:case j:case N:case I:case _:return e;default:return t}}}}case S:return t}}}function H(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function B(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function W(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function U(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=W(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=W(o),o=r(t,n)),o},r}}function Y(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function V(e,t,n){return{...n,...e,...t}}function z(e){e()}var q={notify(){},get:()=>[]};function G(e,t){let n,r=q,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=q)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var K=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$="undefined"!=typeof navigator&&"ReactNative"===navigator.product,X=K||$?v.useLayoutEffect:v.useEffect;function Q(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Z(e,t){if(Q(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Q(e[n[r]],t[n[r]]))return!1;return!0}var J={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ne={[R]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[L]:te};function re(e){return function(e){return F(e)===I}(e)?te:ne[e.$$typeof]||J}var oe=Object.defineProperty,ie=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,se=Object.getOwnPropertyDescriptor,ce=Object.getPrototypeOf,ue=Object.prototype;function le(e,t){if("string"!=typeof t){if(ue){const n=ce(t);n&&n!==ue&&le(e,n)}let n=ie(t);ae&&(n=n.concat(ae(t)));const r=re(e),o=re(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(ee[a]||o&&o[a]||r&&r[a])){const n=se(t,a);try{oe(e,a,n)}catch(e){}}}}return e}var de=O,fe=[null,null];function pe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function he(e,t){return e===t}var me=function(e,t,n,{pure:r,areStatesEqual:o=he,areOwnPropsEqual:i=Z,areStatePropsEqual:a=Z,areMergedPropsEqual:s=Z,forwardRef:c=!1,context:u=x}={}){const l=u,d=function(e){return e?"function"==typeof e?U(e):Y(e,"mapStateToProps"):B((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?B((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?U(e):Y(e,"mapDispatchToProps"):B((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Y(e,"mergeProps"):()=>V}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=v.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=v.useMemo((()=>l),[n,l]),s=v.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=v.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return H(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=v.useMemo((()=>{if(!h)return fe;const e=G(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=v.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),b=v.useRef(void 0),w=v.useRef(i),x=v.useRef(void 0),O=v.useRef(!1),k=v.useRef(!1),S=v.useRef(void 0);X((()=>(k.current=!0,()=>{k.current=!1})),[]);const E=v.useMemo((()=>()=>x.current&&i===w.current?x.current:p(d.getState(),i)),[d,i]),P=v.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,w,b,O,k,x,g,e):()=>{}),[m]);var D,_,C;let T;D=pe,_=[w,b,O,i,x,g],X((()=>D(..._)),C);try{T=de(P,E,f?()=>p(f(),i):E)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}X((()=>{S.current=void 0,x.current=void 0,b.current=T}));const j=v.useMemo((()=>v.createElement(e,{...T,ref:o})),[o,e,T]);return v.useMemo((()=>h?v.createElement(a.Provider,{value:y},j):j),[a,j,y])}const m=v.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=v.forwardRef((function(e,t){return v.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,le(t,e)}return le(m,e)}};var ge=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=v.useMemo((()=>{const t=G(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=v.useMemo((()=>e.getState()),[e]);X((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||x;return v.createElement(c.Provider,{value:a},n)};var ve;ve=g.useSyncExternalStoreWithSelector,(e=>{de=e})(p.useSyncExternalStore);var ye=c(82274),be=c.n(ye),we=c(65044),xe=c.n(we),Oe=c(65611),ke=c.n(Oe),Se=c(18337),Ee=c.n(Se),Pe=c(56994),De=c.n(Pe),_e=c(5556),Ce=c.n(_e),Te=c(72189),je=c.n(Te),Ae=c(92648),Me=c(96346),Ie=c(91907);const Ne=function(e){return(0,Ie.A)(e)};const Re={shouldForwardProp:function(e,t){return"string"!=typeof t||Ne(e)},isPropValid:Ne};var Le,Fe,He=c(19230),Be=(0,Me.AH)(Le||(Le=je()(["\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,He.Ed)(),He.w4.color("text"),He.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 We=(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid})(Fe||(Fe=je()(["\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n ","\n"])),He.t7.color("text"),Be);var Ue,Ye=c(26396),Ve=c.n(Ye),ze=c(39892),qe=c.n(ze),Ge=c(47850),Ke=c(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 Xe(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){Ve()(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 Qe=(0,p.lazy)((function(){return c.e(770).then(c.bind(c,68389))}));const Ze=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:Ue||(Ue=(0,Ke.jsx)(m().Fragment,{})),children:(0,Ke.jsx)(Qe,Xe({},e))})};var Je=c(22056),et=c.n(Je);function tt(e,t){var n=(0,p.useState)(e),r=et()(n,2),o=r[0],i=r[1];return(0,p.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ot=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 m().forwardRef((function(r,o){var i=r.value,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1],l=tt(c,t),d=et()(l,2),f=d[0],h=d[1],m=(0,p.useRef)(i),g=r[n];return(0,p.useEffect)((function(){c!==i&&c===f&&(u(i),m.current=i,h(i))}),[i]),(0,p.useEffect)((function(){g&&m.current!==f&&(g(f),m.current=f)}),[f,g]),(0,Ke.jsx)(e,rt(rt(rt({},r),{},{value:c},Ve()({},n,u)),{},{ref:o}))}))};const it=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,p.useEffect)((function(){if(!t.disabled&&e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const at=function(){var e=(0,p.useState)(),t=et()(e,2),n=t[0],r=t[1],o=(0,p.useRef)(),i=(0,p.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,p.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,p.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const st={useAutofocus:it,useDebounce:tt,Debouncer:ot,useUserActive:function(e){var t=(0,p.useRef)(null),n=(0,p.useState)(null),r=et()(n,2),o=r[0],i=r[1],a=(0,p.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,p.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,p.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},usePrevious:function(e){var t=(0,p.useRef)();return(0,p.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.useRef)(!1);(0,p.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:at};var ct="hidden",ut="responsive",lt={labelVisibility:ut},dt=m().createContext(lt);var ft,pt,ht,mt,gt,vt,yt,bt=(0,Me.AH)(mt||(mt=je()(["\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"])),He.w4.radii("button"),He.hs.space(-1.38),He.hs.space(-2.1),He.hs.space(0),(0,He.Ed)(),(function(e){return e.withoutBackground?(0,Me.AH)(ht||(ht=je()(["\n background: transparent;\n"]))):(0,He.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,Me.AH)(ft||(ft=je()(["\n line-height: ",";\n padding: "," ",";\n "])),He.w4.lineHeight("dense")({theme:n}),He.hs.space(-3.5)({theme:n}),He.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,Me.AH)(pt||(pt=je()(["\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===He.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(wt," {\n display: none;\n }\n ");return t&&n===ct?r:t&&n===ut&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),wt=Me.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(gt||(gt=je()([""]))),xt=Me.Ay.button.withConfig({displayName:"StyledButton"})(vt||(vt=je()(["\n ","\n"])),bt);Me.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(yt||(yt=je()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n\n ",":last-child {\n margin-right: 0;\n }\n"])),He.hs.space(0),He.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),xt);const Ot=xt;function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Et=m().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?He.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?He.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,h=e.iconOnly,m=e.children,g=(0,p.useContext)(dt).labelVisibility;return(0,Ke.jsxs)(Ot,St(St(St({ref:t},n),e),{},{ink:r||He.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:g,type:f,children:[i&&!a&&(0,Ke.jsx)(Ge.A,{icon:i}),a&&(0,Ke.jsx)(Ze,{ink:r||He.xX.ink.BASE,look:c,position:l,size:"1em"}),!h&&o?(0,Ke.jsx)(wt,{children:o}):m||""]}))}));var Pt;(0,Me.Ay)(Ae.N_).withConfig({shouldForwardProp:Re.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Pt||(Pt=je()(["\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"])),He.t7.color("text"),bt);var Dt,_t;const Ct=Me.Ay.button.withConfig({displayName:"StyledButton"})(_t||(_t=je()(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,He.Ed)(),He.x5,(function(){return(0,Me.AH)(Dt||(Dt=je()(["\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"])),He.hs.space(-3),He.w4.fontSize("base"),He.w4.lineHeight("regular"),He.hs.space(-3))}));function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=m().forwardRef((function(e,t){return(0,Ke.jsx)(Ct,jt(jt({ref:t,type:"button"},e),{},{children:(0,Ke.jsx)(Ge.A,{icon:e.icon})}))}));At.propTypes={disabled:Ce().bool,icon:Ce().string.isRequired,ink:He.xX.inkPropTypes,look:Ce().oneOf([He.xX.look.FLAT,He.xX.look.RAISED]),onClick:Ce().func,title:Ce().string,tabIndex:Ce().number,"data-cy":Ce().string};const Mt=At;var It,Nt,Rt,Lt,Ft=c(21259),Ht=c.n(Ft),Bt=c(49859),Wt=c.n(Bt),Ut=c(52098),Yt=c.n(Ut),Vt=c(30115),zt=c.n(Vt),qt=c(45228),Gt=c.n(qt),Kt="bodyAttributes",$t="htmlAttributes",Xt="titleAttributes",Qt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Zt=(Object.keys(Qt).map((function(e){return Qt[e]})),"charset"),Jt="cssText",en="href",tn="http-equiv",nn="innerHTML",rn="itemprop",on="name",an="property",sn="rel",cn="src",un="target",ln={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dn="defaultTitle",fn="defer",pn="encodeSpecialCharacters",hn="onChangeClientState",mn="titleTemplate",gn=Object.keys(ln).reduce((function(e,t){return e[ln[t]]=t,e}),{}),vn=[Qt.NOSCRIPT,Qt.SCRIPT,Qt.STYLE],yn="data-react-helmet",bn="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},wn=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}}(),xn=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},On=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},kn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Sn=function(e){var t=Cn(e,Qt.TITLE),n=Cn(e,mn);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Cn(e,dn);return t||r||void 0},En=function(e){return Cn(e,hn)||function(){}},Pn=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return xn({},e,t)}),{})},Dn=function(e,t){return t.filter((function(e){return void 0!==e[Qt.BASE]})).map((function(e){return e[Qt.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},_n=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&In("Helmet: "+e+' should be of type "Array". Instead found type "'+bn(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===sn&&"canonical"===e[n].toLowerCase()||c===sn&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==nn&&s!==Jt&&s!==rn||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=Gt()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},Cn=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},Tn=(It=Date.now(),function(e){var t=Date.now();t-It>16?(It=t,e(t)):setTimeout((function(){Tn(e)}),0)}),jn=function(e){return clearTimeout(e)},An="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Tn:c.g.requestAnimationFrame||Tn,Mn="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||jn:c.g.cancelAnimationFrame||jn,In=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Nn=null,Rn=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;Hn(Qt.BODY,r),Hn(Qt.HTML,o),Fn(d,f);var p={baseTag:Bn(Qt.BASE,n),linkTags:Bn(Qt.LINK,i),metaTags:Bn(Qt.META,a),noscriptTags:Bn(Qt.NOSCRIPT,s),scriptTags:Bn(Qt.SCRIPT,u),styleTags:Bn(Qt.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)},Ln=function(e){return Array.isArray(e)?e.join(""):e},Fn=function(e,t){void 0!==e&&document.title!==e&&(document.title=Ln(e)),Hn(Qt.TITLE,t)},Hn=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(yn),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(yn):n.getAttribute(yn)!==a.join(",")&&n.setAttribute(yn,a.join(","))}},Bn=function(e,t){var n=document.head||document.querySelector(Qt.HEAD),r=n.querySelectorAll(e+"["+yn+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===nn)n.innerHTML=t.innerHTML;else if(r===Jt)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(yn,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},Wn=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}),"")},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ln[n]||n]=e[n],t}),t)},Yn=function(e,t,n){switch(e){case Qt.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[yn]=!0,o=Un(n,r),[m().createElement(Qt.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Wn(n),i=Ln(t);return o?"<"+e+" "+yn+'="true" '+o+">"+kn(i,r)+"</"+e+">":"<"+e+" "+yn+'="true">'+kn(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Kt:case $t:return{toComponent:function(){return Un(t)},toString:function(){return Wn(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[yn]=!0,r);return Object.keys(t).forEach((function(e){var n=ln[e]||e;if(n===nn||n===Jt){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),m().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===nn||e===Jt)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+kn(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===vn.indexOf(e);return t+"<"+e+" "+yn+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Vn=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:Yn(Qt.BASE,t,r),bodyAttributes:Yn(Kt,n,r),htmlAttributes:Yn($t,o,r),link:Yn(Qt.LINK,i,r),meta:Yn(Qt.META,a,r),noscript:Yn(Qt.NOSCRIPT,s,r),script:Yn(Qt.SCRIPT,c,r),style:Yn(Qt.STYLE,u,r),title:Yn(Qt.TITLE,{title:d,titleAttributes:f},r)}},zn=Yt()((function(e){return{baseTag:Dn([en,un],e),bodyAttributes:Pn(Kt,e),defer:Cn(e,fn),encode:Cn(e,pn),htmlAttributes:Pn($t,e),linkTags:_n(Qt.LINK,[sn,en],e),metaTags:_n(Qt.META,[on,Zt,tn,an,rn],e),noscriptTags:_n(Qt.NOSCRIPT,[nn],e),onChangeClientState:En(e),scriptTags:_n(Qt.SCRIPT,[cn,nn],e),styleTags:_n(Qt.STYLE,[Jt],e),title:Sn(e),titleAttributes:Pn(Xt,e)}}),(function(e){Nn&&Mn(Nn),e.defer?Nn=An((function(){Rn(e,(function(){Nn=null}))})):(Rn(e),Nn=null)}),Vn)((function(){return null})),qn=(Nt=zn,Lt=Rt=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!zt()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Qt.SCRIPT:case Qt.NOSCRIPT:return{innerHTML:t};case Qt.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return xn({},r,((t={})[n.type]=[].concat(r[n.type]||[],[xn({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Qt.TITLE:return xn({},o,((t={})[r.type]=a,t.titleAttributes=xn({},i),t));case Qt.BODY:return xn({},o,{bodyAttributes:xn({},i)});case Qt.HTML:return xn({},o,{htmlAttributes:xn({},i)})}return xn({},o,((n={})[r.type]=xn({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=xn({},t);return Object.keys(e).forEach((function(t){var r;n=xn({},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 m().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[gn[n]||n]=e[n],t}),t)}(On(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Qt.LINK:case Qt.META:case Qt.NOSCRIPT:case Qt.SCRIPT:case Qt.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=On(e,["children"]),r=xn({},n);return t&&(r=this.mapChildrenToProps(t,r)),m().createElement(Nt,r)},wn(t,null,[{key:"canUseDOM",set:function(e){Nt.canUseDOM=e}}]),t}(m().Component),Rt.propTypes={base:Wt().object,bodyAttributes:Wt().object,children:Wt().oneOfType([Wt().arrayOf(Wt().node),Wt().node]),defaultTitle:Wt().string,defer:Wt().bool,encodeSpecialCharacters:Wt().bool,htmlAttributes:Wt().object,link:Wt().arrayOf(Wt().object),meta:Wt().arrayOf(Wt().object),noscript:Wt().arrayOf(Wt().object),onChangeClientState:Wt().func,script:Wt().arrayOf(Wt().object),style:Wt().arrayOf(Wt().object),title:Wt().string,titleAttributes:Wt().object,titleTemplate:Wt().string},Rt.defaultProps={defer:!0,encodeSpecialCharacters:!0},Rt.peek=Nt.peek,Rt.rewind=function(){var e=Nt.rewind();return e||(e=Vn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Lt);qn.renderStatic=qn.rewind;var Gn=c(42838),Kn=c.n(Gn),$n=["border","border-spacing","padding","margin","text-align","width"];Kn().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return $n.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Xn=function(e){return e?Kn().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},Qn={sanitizeHtml:Xn};var Zn=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},Jn=c(85735),er=c.n(Jn),tr=c(2404),nr=c.n(tr),rr=c(69752),or=c.n(rr),ir=function(e){return"object"===er()(e)&&null!==e},ar=function(e,t){return or()(e,(function(e,n,r){nr()(n,t[r])||(e[r]=ir(n)&&ir(t[r])?ar(n,t[r]):n)}))};const sr={difference:ar,getOrFirst:function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:Zn,copyToClipboard:function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},isDefined:function(e){return null!=e}};var cr=c(60284),ur={error:"exclamation-circle",home:"house-blank"},lr=function(e){return ur[e]||e};const dr=function(e){var t=e.type;return t&&"record"!==t?(0,Ke.jsx)(Ge.A,{icon:lr(t)}):null};var fr,pr,hr,mr,gr,vr,yr=["component"],br=Me.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(fr||(fr=je()(["\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||He.w4.color("backgroundBreadcrumbs")(e)}),He.hs.space(-.7),He.hs.space(.39)),wr=(0,Me.Ay)((function(e){var t=e.component,n=qe()(e,yr);return m().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(pr||(pr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("secondaryLight"),He.w4.color("breadcrumbsActive")),xr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(hr||(hr=je()(["\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"])),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.fontWeight("bold"),(function(e){return e.active&&He.w4.color("breadcrumbsActive")}),He.w4.color("breadcrumbsActive")),Or=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(mr||(mr=je()(["\n margin-left: ",";\n margin-right: ",";\n"])),He.hs.space(-2),He.hs.space(-2)),kr=Me.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(gr||(gr=je()(["\n "," {\n margin-right: ",";\n }\n"])),Ge.i,He.hs.space(-1));const Sr=function(){return vr||(vr=(0,Ke.jsx)(Or,{breakWords:!0,children:(0,Ke.jsx)(Ge.A,{icon:"chevron-right"})}))};var Er;function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=function(e){return e.title||e.display},Cr=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(_r(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(_r).join(" - ");break;default:r=_r(n)}return sr.adjustedHTMLString(r)};const Tr=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat(Ht()(a),Ht()(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?xr:wr,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path)}:{},d=l?t||(t=(0,Ke.jsx)(l,{})):Er||(Er=(0,Ke.jsx)(We,{}));return(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(kr,{children:(0,Ke.jsxs)(a,Dr(Dr(Dr({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,Ke.jsx)(dr,{type:e.type}),(0,Ke.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(Sr,{},"icon".concat(n)),t]}));return(0,Ke.jsxs)(br,{backgroundColor:c,children:[d?(0,Ke.jsx)(qn,{defer:!1,children:(0,Ke.jsx)("title",{children:Cr(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,Ke.jsx)(Ke.Fragment,{children:h})]})};(0,f.injectIntl)(Tr);var jr,Ar,Mr=Me.Ay.div.withConfig({displayName:"StyledWrapper"})(jr||(jr=je()(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,He.Ed)(),(function(e){return e.theme.colors.signal.danger}),He.t7.color("paper"),He.hs.space(-.5));const Ir=function(){return Ar||(Ar=(0,Ke.jsx)(Mr,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var Nr;const Rr=Me.Ay.div.withConfig({displayName:"StyledButtonGroup"})(Nr||(Nr=je()(["\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"])),Ot);var Lr=m().forwardRef((function(e,t){return(0,Ke.jsx)(Rr,{ref:t,children:e.children})}));Lr.propTypes={children:Ce().node};const Fr=Lr;var Hr=c(90179),Br=c.n(Hr),Wr=c(62193),Ur=c.n(Wr),Yr=(c(62243),c(36193)),Vr=c.n(Yr),zr=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},qr=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},Gr={outline:"none"},Kr=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=qr(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=m().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)},qr(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?m().cloneElement(e({focused:t,getRef:this.ref}),n):m().createElement("div",zr({ref:this.ref,style:Gr},n),e)},t}(m().Component);Kr.propTypes={children:Vr().oneOfType([Vr().node,Vr().func]).isRequired,onBlur:Vr().func,onFocus:Vr().func},Kr.defaultProps={onBlur:function(){},onFocus:function(){}};const $r=Kr;var Xr,Qr,Zr,Jr,eo,to,no,ro,oo=c(88357),io=(0,Me.AH)(Xr||(Xr=je()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),ao=Me.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(Qr||(Qr=je()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),io),so=(0,Me.AH)(Zr||(Zr=je()(["\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,He.Ed)({color:He.t7.color("text")})}),He.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),co=(0,Me.AH)(Jr||(Jr=je()(["\n display: flex;\n align-items: center;\n"]))),uo=Me.Ay.div.withConfig({displayName:"StyledEditableControl"})(eo||(eo=je()(["\n &&& {\n ","\n }\n"])),co),lo=(Me.Ay.span.withConfig({displayName:"StyledEditableValue"})(to||(to=je()(["\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"])),He.t7.color("signal.danger")),c(58156)),fo=c.n(lo),po=Me.Ay.div.withConfig({displayName:"StyledLocationEdit"})(no||(no=je()(["\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"])),io,He.hs.space(-2),He.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?fo()(n,"colors.textDisabled"):fo()(n,"colors.text")}),so,He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("secondaryLight"),He.t7.color("backgroundItemHover"));(0,Me.Ay)(po).withConfig({displayName:"StyledAddressEdit"})(ro||(ro=je()(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));c(69843);var ho=c(7350),mo=c.n(ho);function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(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 wo(e,t){if(e){if("string"==typeof e)return bo(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)?bo(e,t):void 0}}function xo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||wo(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 Oo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ko=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function So(){return So=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},So.apply(this,arguments)}function Eo(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 Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function Do(e){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Do(e)}function _o(e){return _o="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},_o(e)}function Co(e,t){if(t&&("object"===_o(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 To(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=Do(e);if(t){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Co(this,n)}}function jo(e){return function(e){if(Array.isArray(e))return bo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wo(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 Ao=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}(),Mo="-ms-",Io="-moz-",No="-webkit-",Ro="comm",Lo="rule",Fo="decl",Ho="@keyframes",Bo=Math.abs,Wo=String.fromCharCode,Uo=Object.assign;function Yo(e){return e.trim()}function Vo(e,t,n){return e.replace(t,n)}function zo(e,t){return e.indexOf(t)}function qo(e,t){return 0|e.charCodeAt(t)}function Go(e,t,n){return e.slice(t,n)}function Ko(e){return e.length}function $o(e){return e.length}function Xo(e,t){return t.push(e),e}var Qo=1,Zo=1,Jo=0,ei=0,ti=0,ni="";function ri(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qo,column:Zo,length:a,return:""}}function oi(e,t){return Uo(ri("",null,null,"",null,null,0),e,{length:-e.length},t)}function ii(){return ti=ei>0?qo(ni,--ei):0,Zo--,10===ti&&(Zo=1,Qo--),ti}function ai(){return ti=ei<Jo?qo(ni,ei++):0,Zo++,10===ti&&(Zo=1,Qo++),ti}function si(){return qo(ni,ei)}function ci(){return ei}function ui(e,t){return Go(ni,e,t)}function li(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 di(e){return Qo=Zo=1,Jo=Ko(ni=e),ei=0,[]}function fi(e){return ni="",e}function pi(e){return Yo(ui(ei-1,gi(91===e?e+2:40===e?e+1:e)))}function hi(e){for(;(ti=si())&&ti<33;)ai();return li(e)>2||li(ti)>3?"":" "}function mi(e,t){for(;--t&&ai()&&!(ti<48||ti>102||ti>57&&ti<65||ti>70&&ti<97););return ui(e,ci()+(t<6&&32==si()&&32==ai()))}function gi(e){for(;ai();)switch(ti){case e:return ei;case 34:case 39:34!==e&&39!==e&&gi(ti);break;case 40:41===e&&gi(e);break;case 92:ai()}return ei}function vi(e,t){for(;ai()&&e+ti!==57&&(e+ti!==84||47!==si()););return"/*"+ui(t,ei-1)+"*"+Wo(47===e?e:ai())}function yi(e){for(;!li(si());)ai();return ui(e,ei)}function bi(e){return fi(wi("",null,null,null,[""],e=di(e),0,[0],e))}function wi(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,O=r,k=b;g;)switch(h=y,y=ai()){case 40:if(108!=h&&58==qo(k,d-1)){-1!=zo(k+=Vo(pi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=pi(y);break;case 9:case 10:case 13:case 32:k+=hi(h);break;case 92:k+=mi(ci()-1,7);continue;case 47:switch(si()){case 42:case 47:Xo(Oi(vi(ai(),ci()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Ko(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:p>0&&Ko(k)-d&&Xo(p>32?ki(k+";",r,n,d-1):ki(Vo(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Xo(O=xi(k,t,n,u,l,o,s,b,w=[],x=[],d),i),123===y)if(0===l)wi(k,t,O,O,w,i,d,s,x);else switch(99===f&&110===qo(k,3)?100:f){case 100:case 109:case 115:wi(e,O,O,r&&Xo(xi(e,O,O,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:wi(k,O,O,O,[""],x,0,s,x)}}u=l=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Ko(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ii())continue;switch(k+=Wo(y),y*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ko(k)-1)*v,v=1;break;case 64:45===si()&&(k+=pi(ai())),f=si(),l=d=Ko(b=k+=yi(ci())),y++;break;case 45:45===h&&2==Ko(k)&&(m=0)}}return i}function xi(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=$o(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Go(e,d+1,d=Bo(m=a[h])),b=e;v<p;++v)(b=Yo(m>0?f[v]+" "+y:Vo(y,/&\f/g,f[v])))&&(c[g++]=b);return ri(e,t,n,0===o?Lo:s,c,u,l)}function Oi(e,t,n){return ri(e,t,n,Ro,Wo(ti),Go(e,2,-2),0)}function ki(e,t,n,r){return ri(e,t,n,Fo,Go(e,0,r),Go(e,r+1,-1),r)}function Si(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ei(e,t,n,r){switch(e.type){case"@import":case Fo:return e.return=e.return||e.value;case Ro:return"";case Ho:return e.return=e.value+"{"+Si(e.children,r)+"}";case Lo:e.value=e.props.join(",")}return Ko(n=Si(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pi=function(e,t,n){for(var r=0,o=0;r=o,o=si(),38===r&&12===o&&(t[n]=1),!li(o);)ai();return ui(e,ei)},Di=function(e,t){return fi(function(e,t){var n=-1,r=44;do{switch(li(r)){case 0:38===r&&12===si()&&(t[n]=1),e[n]+=Pi(ei-1,t,n);break;case 2:e[n]+=pi(r);break;case 4:if(44===r){e[++n]=58===si()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wo(r)}}while(r=ai());return e}(di(e),t))},_i=new WeakMap,Ci=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)||_i.get(n))&&!r){_i.set(e,!0);for(var o=[],i=Di(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Ti=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ji(e,t){switch(function(e,t){return 45^qo(e,0)?(((t<<2^qo(e,0))<<2^qo(e,1))<<2^qo(e,2))<<2^qo(e,3):0}(e,t)){case 5103:return No+"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 No+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return No+e+Io+e+Mo+e+e;case 6828:case 4268:return No+e+Mo+e+e;case 6165:return No+e+Mo+"flex-"+e+e;case 5187:return No+e+Vo(e,/(\w+).+(:[^]+)/,No+"box-$1$2"+Mo+"flex-$1$2")+e;case 5443:return No+e+Mo+"flex-item-"+Vo(e,/flex-|-self/,"")+e;case 4675:return No+e+Mo+"flex-line-pack"+Vo(e,/align-content|flex-|-self/,"")+e;case 5548:return No+e+Mo+Vo(e,"shrink","negative")+e;case 5292:return No+e+Mo+Vo(e,"basis","preferred-size")+e;case 6060:return No+"box-"+Vo(e,"-grow","")+No+e+Mo+Vo(e,"grow","positive")+e;case 4554:return No+Vo(e,/([^-])(transform)/g,"$1"+No+"$2")+e;case 6187:return Vo(Vo(Vo(e,/(zoom-|grab)/,No+"$1"),/(image-set)/,No+"$1"),e,"")+e;case 5495:case 3959:return Vo(e,/(image-set\([^]*)/,No+"$1$`$1");case 4968:return Vo(Vo(e,/(.+:)(flex-)?(.*)/,No+"box-pack:$3"+Mo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+No+e+e;case 4095:case 3583:case 4068:case 2532:return Vo(e,/(.+)-inline(.+)/,No+"$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(Ko(e)-1-t>6)switch(qo(e,t+1)){case 109:if(45!==qo(e,t+4))break;case 102:return Vo(e,/(.+:)(.+)-([^]+)/,"$1"+No+"$2-$3$1"+Io+(108==qo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zo(e,"stretch")?ji(Vo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qo(e,t+1))break;case 6444:switch(qo(e,Ko(e)-3-(~zo(e,"!important")&&10))){case 107:return Vo(e,":",":"+No)+e;case 101:return Vo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+No+(45===qo(e,14)?"inline-":"")+"box$3$1"+No+"$2$3$1"+Mo+"$2box$3")+e}break;case 5936:switch(qo(e,t+11)){case 114:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return No+e+Mo+Vo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return No+e+Mo+e+e}return e}var Ai=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=ji(e.value,e.length);break;case Ho:return Si([oi(e,{value:Vo(e.value,"@","@"+No)})],r);case Lo: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 Si([oi(e,{props:[Vo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Si([oi(e,{props:[Vo(t,/:(plac\w+)/,":"+No+"input-$1")]}),oi(e,{props:[Vo(t,/:(plac\w+)/,":-moz-$1")]}),oi(e,{props:[Vo(t,/:(plac\w+)/,Mo+"input-$1")]})],r)}return""}))}}];const Mi=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||Ai;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[Ei,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ci,Ti].concat(r,f),l=$o(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){Si(bi(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ao({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};c(4146);var Ii=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Ni=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 Ri={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};const Li=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Fi=/[A-Z]|^ms/g,Hi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bi=function(e){return 45===e.charCodeAt(1)},Wi=function(e){return null!=e&&"boolean"!=typeof e},Ui=Li((function(e){return Bi(e)?e:e.replace(Fi,"-$&").toLowerCase()})),Yi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Hi,(function(e,t,n){return zi={name:t,styles:n,next:zi},t}))}return 1===Ri[e]||Bi(e)||"number"!=typeof t||0===t?t:t+"px"};function Vi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Vi(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Wi(a)&&(r+=Ui(i)+":"+Yi(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Vi(e,t,a);switch(i){case"animation":case"animationName":r+=Ui(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Wi(a[c])&&(r+=Ui(i)+":"+Yi(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=zi,i=n(e);return zi=o,Vi(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var zi,qi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Gi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";zi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Vi(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Vi(n,t,e[a]),r&&(o+=i[a]);qi.lastIndex=0;for(var s,c="";null!==(s=qi.exec(o));)c+="-"+s[1];return{name:Ni(o)+c,styles:o,next:zi}},Ki=!!p.useInsertionEffect&&p.useInsertionEffect,$i=Ki||function(e){return e()},Xi={}.hasOwnProperty,Qi=(0,p.createContext)("undefined"!=typeof HTMLElement?Mi({key:"css"}):null);Qi.Provider;var Zi=function(e){return(0,p.forwardRef)((function(t,n){var r=(0,p.useContext)(Qi);return e(t,r,n)}))},Ji=(0,p.createContext)({});var ea="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ta=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);$i((function(){return function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},na=Zi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ea],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Gi(i,void 0,(0,p.useContext)(Ji));a+=t.key+"-"+s.name;var c={};for(var u in e)Xi.call(e,u)&&"css"!==u&&u!==ea&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,p.createElement)(p.Fragment,null,(0,p.createElement)(ta,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,p.createElement)(o,c))}));var ra=function(e,t){var n=arguments;if(null==t||!Xi.call(t,"css"))return p.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=na,o[1]=function(e,t){var n={};for(var r in t)Xi.call(t,r)&&(n[r]=t[r]);return n[ea]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return p.createElement.apply(null,o)};function oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Gi(t)}var ia=c(81845),aa=c.n(ia);Math.min,Math.max;const sa=["top","right","bottom","left"];sa.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ca(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ua(e){if(null==e)return window;if(!ca(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function la(e){return ua(e).getComputedStyle(e)}function da(e){return ca(e)?"":e?(e.nodeName||"").toLowerCase():""}function fa(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function pa(e){return e instanceof ua(e).HTMLElement}function ha(e){return e instanceof ua(e).Element}function ma(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ua(e).ShadowRoot||e instanceof ShadowRoot)}function ga(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=la(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function va(){return!/^((?!chrome|android).)*safari/i.test(fa())}function ya(e){return["html","body","#document"].includes(da(e))}Math.min,Math.max;const ba=Math.round;function wa(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&pa(e)&&(c=e.offsetWidth>0&&ba(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ba(s.height)/e.offsetHeight||1);const l=ha(e)?ua(e):window,d=!va()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function xa(e){return(t=e,(t instanceof ua(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Oa(e){if("html"===da(e))return e;const t=e.assignedSlot||e.parentNode||(ma(e)?e.host:null)||xa(e);return ma(t)?t.host:t}function ka(e){const t=Oa(e);return ya(t)?e.ownerDocument.body:pa(t)&&ga(t)?t:ka(t)}function Sa(e,t){var n;void 0===t&&(t=[]);const r=ka(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ua(r),a=o?[i].concat(i.visualViewport||[],ga(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Sa(a))}const Ea=p.useLayoutEffect;var Pa=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Da=function(){};function _a(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ca(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(_a(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ta=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===_o(e)&&null!==e?[e]:[];var t},ja=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,yo({},Oo(e,Pa))},Aa=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Ma(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ia(e){return Ma(e)?window.pageYOffset:e.scrollTop}function Na(e,t){Ma(e)?window.scrollTo(0,t):e.scrollTop=t}function Ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Da,o=Ia(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Na(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function La(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Na(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Na(e,Math.max(t.offsetTop-o,0))}function Fa(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ha=!1,Ba={get passive(){return Ha=!0}},Wa="undefined"!=typeof window?window:{};Wa.addEventListener&&Wa.removeEventListener&&(Wa.addEventListener("p",Da,Ba),Wa.removeEventListener("p",Da,!1));var Ua=Ha;function Ya(e){return null!=e}function Va(e,t,n){return e?t:n}var za=["children","innerProps"],qa=["children","innerProps"];function Ga(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:Ma(l=c)?window.innerHeight:l.clientHeight,y=Ia(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,O=v-m,k=x+y,S=d-y-m,E=p-v+y+b,P=y+m-w,D=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Ra(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&Ra(c,E,D),{placement:"bottom",maxHeight:a?O-b:S-b};if("auto"===o||a){var _=t,C=a?x:k;return C>=r&&(_=Math.min(C-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&Na(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&Ra(c,P,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var T=t;return(!a&&k>=r||a&&x>=r)&&(T=a?x-w:k-w),i&&Ra(c,P,D),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Ka,$a=function(e){return"auto"===e?"bottom":e},Xa=(0,p.createContext)(null),Qa=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,p.useContext)(Xa)||{}).setPortalPlacement,u=(0,p.useRef)(null),l=xo((0,p.useState)(r),2),d=l[0],f=l[1],h=xo((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return Ea((function(){var e=u.current;if(e){var t="fixed"===i,s=Ga({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,v]),t({ref:u,placerProps:yo(yo({},e),{},{placement:m||$a(o),maxHeight:d})})},Za=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ra("div",So({},Aa(e,"menu",{menu:!0}),{ref:n},r),t)},Ja=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return yo({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},es=Ja,ts=Ja,ns=["size"],rs=["innerProps","isRtl","size"];var os,is,as={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ss=function(e){var t=e.size,n=Oo(e,ns);return ra("svg",So({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:as},n))},cs=function(e){return ra(ss,So({size:20},e),ra("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"}))},us=function(e){return ra(ss,So({size:20},e),ra("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"}))},ls=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yo({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ds=ls,fs=ls,ps=function(){var e=oa.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_"}}}(Ka||(os=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],is||(is=os.slice(0)),Ka=Object.freeze(Object.defineProperties(os,{raw:{value:Object.freeze(is)}})))),hs=function(e){var t=e.delay,n=e.offset;return ra("span",{css:oa({animation:"".concat(ps," 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"},"","")})},ms=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ra("div",So({ref:o},Aa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},gs=["data"],vs=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return ra("div",So({},Aa(e,"group",{group:!0}),s),ra(i,So({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),ra("div",null,t))},ys=["innerRef","isDisabled","isHidden","inputClassName"],bs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ws={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yo({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bs)},xs=function(e){return yo({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},bs)},Os=function(e){var t=e.cx,n=e.value,r=ja(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=Oo(r,ys);return ra("div",So({},Aa(e,"input",{"input-container":!0}),{"data-value":n||""}),ra("input",So({className:t({input:!0},s),ref:o,style:xs(a),disabled:i},c)))},ks=function(e){var t=e.children,n=e.innerProps;return ra("div",n,t)};var Ss=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ra(c,{data:r,innerProps:yo(yo({},Aa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ra(u,{data:r,innerProps:yo({},Aa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ra(l,{data:r,innerProps:yo(yo({},Aa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Es=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ra("div",So({},Aa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Ps=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ra("div",So({},Aa(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Ds={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ra(cs,null))},Control:ms,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ra(us,null))},DownChevron:us,CrossIcon:cs,Group:vs,GroupHeading:function(e){var t=ja(e);t.data;var n=Oo(t,gs);return ra("div",So({},Aa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ra("span",So({},t,Aa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Os,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Oo(e,rs);return ra("div",So({},Aa(yo(yo({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ra(hs,{delay:0,offset:n}),ra(hs,{delay:160,offset:!0}),ra(hs,{delay:320,offset:!n}))},Menu:Za,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ra("div",So({},Aa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),c=(0,p.useRef)(null),u=xo((0,p.useState)($a(i)),2),l=u[0],d=u[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=xo((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[r,a,l,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Ea((function(){v()}),[v]);var y=(0,p.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ha(e)?Sa(e):e.contextElement?Sa(e.contextElement):[],...Sa(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ha(e)&&!s&&d.observe(e),ha(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?wa(e):null;return s&&function t(){const r=wa(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Ea((function(){y()}),[y]);var b=(0,p.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!m)return null;var w=ra("div",So({ref:b},Aa(yo(yo({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ra(Xa.Provider,{value:f},t?(0,ia.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Oo(e,qa);return ra("div",So({},Aa(yo(yo({},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=Oo(e,za);return ra("div",So({},Aa(yo(yo({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ss,MultiValueContainer:ks,MultiValueLabel:ks,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ra("div",So({role:"button"},n),t||ra(cs,{size:14}))},Option:Es,Placeholder:function(e){var t=e.children,n=e.innerProps;return ra("div",So({},Aa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ra("div",So({},Aa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Ps,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ra("div",So({},Aa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},_s=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Cs(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||_s(r)&&_s(o)))return!1;var r,o;return!0}for(var Ts={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"},js=function(e){return ra("span",So({css:Ts},e))},As={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ms=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,x=s.isLoading,O=s["aria-label"],k=s["aria-live"],S=(0,p.useMemo)((function(){return yo(yo({},As),l||{})}),[l]),E=(0,p.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],h=yo({isDisabled:u&&m(u,a),label:l,labels:p},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),P=(0,p.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e}),[n,r,d,m,S,o,a,u]),D=(0,p.useMemo)((function(){var e="";if(v&&y.length&&!x&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,y,b,x]),_="initial-input-focus"===(null==t?void 0:t.action),C=(0,p.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:_})}return e}),[O,n,r,h,m,g,v,S,a,w,_]),T=ra(p.Fragment,null,ra("span",{id:"aria-selection"},E),ra("span",{id:"aria-focused"},P),ra("span",{id:"aria-results"},D),ra("span",{id:"aria-guidance"},C));return ra(p.Fragment,null,ra(js,{id:c},_&&T),ra(js,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&T))},Is=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ns=new RegExp("["+Is.map((function(e){return e.letters})).join("")+"]","g"),Rs={},Ls=0;Ls<Is.length;Ls++)for(var Fs=Is[Ls],Hs=0;Hs<Fs.letters.length;Hs++)Rs[Fs.letters[Hs]]=Fs.base;var Bs=function(e){return e.replace(Ns,(function(e){return Rs[e]}))},Ws=function(e,t){void 0===t&&(t=Cs);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Bs),Us=function(e){return e.replace(/^\s+|\s+$/g,"")},Ys=function(e){return"".concat(e.label," ").concat(e.value)},Vs=["innerRef"];function zs(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=xo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=xo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Oo(e,Vs),"onExited","in","enter","exit","appear");return ra("input",So({ref:t},n,{css:oa({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 qs=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Gs=["boxSizing","height","overflow","paddingRight","position"],Ks={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $s(e){e.preventDefault()}function Xs(e){e.stopPropagation()}function Qs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Js=!("undefined"==typeof window||!window.document||!window.document.createElement),ec=0,tc={capture:!1,passive:!1};var nc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},rc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oc(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),u=(0,p.useRef)(null),l=(0,p.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&qs(e)}}),[n,r,o,i]),d=(0,p.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,p.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),m=(0,p.useCallback)((function(e){if(e){var t=!!Ua&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(Js){var t=document.body,n=t&&t.style;if(r&&Gs.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&ec<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Ks).forEach((function(e){var t=Ks[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Zs()&&(t.addEventListener("touchmove",$s,tc),e&&(e.addEventListener("touchstart",Qs,tc),e.addEventListener("touchmove",Xs,tc))),ec+=1}}),[r]),s=(0,p.useCallback)((function(e){if(Js){var t=document.body,n=t&&t.style;ec=Math.max(ec-1,0),r&&ec<1&&Gs.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Zs()&&(t.removeEventListener("touchmove",$s,tc),e&&(e.removeEventListener("touchstart",Qs,tc),e.removeEventListener("touchmove",Xs,tc)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return ra(p.Fragment,null,n&&ra("div",{onClick:nc,css:rc}),t((function(e){o(e),i(e)})))}var ic={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ac=function(e){var t=e.name,n=e.onFocus;return ra("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ic,value:"",onChange:function(){}})};function sc(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 cc(){return sc(/^Mac/i)}function uc(){return sc(/^iPhone/i)||sc(/^iPad/i)||cc()&&navigator.maxTouchPoints>1}var lc={clearIndicator:fs,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return yo({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ds,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 yo({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yo({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return yo(yo({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ws),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return yo({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:ts,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return yo((go(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),go(n,"position","absolute"),go(n,"width","100%"),go(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return yo({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return yo({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return yo({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return yo({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:es,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return yo({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return yo({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return yo({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return yo({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var dc,fc={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}},pc={"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=yo({ignoreCase:!0,ignoreAccents:!0,stringify:Ys,trim:!0,matchFrom:"any"},dc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Us(t):t,u=a?Us(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Ws(c),u=Bs(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 hc(e,t,n,r){return{type:"option",data:t,isDisabled:Oc(e,t,n),isSelected:kc(e,t,n),label:wc(e,t),value:xc(e,t),index:r}}function mc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return hc(e,n,t,r)})).filter((function(t){return yc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=hc(e,n,t,r);return yc(e,i)?i:void 0})).filter(Ya)}function gc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,jo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vc(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,jo(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 yc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Ec(e)||!i)&&Sc(e,{label:a,value:s,data:o},r)}var bc=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},wc=function(e,t){return e.getOptionLabel(t)},xc=function(e,t){return e.getOptionValue(t)};function Oc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function kc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=xc(e,t);return n.some((function(t){return xc(e,t)===r}))}function Sc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ec=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Pc=1,Dc=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&&Po(e,t)}(i,e);var t,n,r,o=To(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=cc()||uc(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(jo(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Va(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Va(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Va(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return bc(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return vc(mc(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ca.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return wc(t.props,e)},t.getOptionValue=function(e){return xc(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=lc[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,yo(yo({},Ds),e.components);var e},t.buildCategorizedOptions=function(){return mc(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return gc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:yo({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&&Ma(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Ec(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Pc),t.state.selectValue=Ta(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=bc(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&La(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&&(La(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fc):yo(yo({},fc),this.props.theme):fc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Oc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return kc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Sc(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=yo(yo(yo({"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?p.createElement(u,So({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):p.createElement(zs,So({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Da,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!l)return h?null:p.createElement(s,So({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,So({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return p.createElement(a,So({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,So({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?p.createElement(e,So({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,So({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,So({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,P=f.noOptionsMessage,D=f.onMenuScrollToTop,_=f.onMenuScrollToBottom;if(!w)return null;var C,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(u,So({},l,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return p.createElement(n,So({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(g){var j=v({inputValue:m});if(null===j)return null;C=p.createElement(s,l,j)}else{var A=P({inputValue:m});if(null===A)return null;C=p.createElement(c,l,A)}var M={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:E},I=p.createElement(Qa,So({},l,M),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return p.createElement(o,So({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(oc,{captureEnabled:h,onTopArrive:D,onBottomArrive:_,lockEnabled:S},(function(t){return p.createElement(i,So({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),C)})))}));return k||"fixed"===O?p.createElement(a,So({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return p.createElement(ac,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(Ms,So({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(r,So({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),p.createElement(t,So({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),p.createElement(o,So({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,So({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Ta(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return gc(mc(e,t))}(e,h):[],v=d?vc(mc(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:bc(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&s;return a&&!O&&(x={value:Va(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),yo(yo(yo({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Eo(t.prototype,n),r&&Eo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(p.Component);Dc.defaultProps=pc;var _c=(0,p.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=Oo(e,ko),g=xo((0,p.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=xo((0,p.useState)(void 0!==c?c:o),2),w=b[0],x=b[1],O=xo((0,p.useState)(void 0!==h?h:a),2),k=O[0],S=O[1],E=(0,p.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),P=(0,p.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),D=(0,p.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),_=(0,p.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),C=void 0!==s?s:v,T=void 0!==c?c:w,j=void 0!==h?h:k;return yo(yo({},m),{},{inputValue:C,menuIsOpen:T,onChange:E,onInputChange:P,onMenuClose:_,onMenuOpen:D,value:j})}(e);return p.createElement(Dc,So({ref:t},n))})),Cc=_c;function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ac=(0,f.injectIntl)((function(e){var t;return(0,Ke.jsx)("span",jc(jc({},e.innerProps),{},{children:(0,Ke.jsx)(Mt,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var Mc=c(2418);function Ic(){return Ic=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},Ic.apply(this,arguments)}const Nc=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class Rc extends p.Component{constructor(...e){super(...e),this._targetNode=p.createRef(),this._elementNode=p.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,p.isValidElement)(e)||(e=null),(0,p.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new Mc(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,Nc),i=Ic({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?p.createElement(p.Fragment,null,e,t&&this._elementParentNode&&ia.createPortal(t,this._elementParentNode)):null}}var Lc,Fc,Hc,Bc,Wc,Uc,Yc,Vc,zc,qc,Gc,Kc,$c;function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zc=Me.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(Lc||(Lc=je()(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Jc=Me.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Fc||(Fc=je()(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),eu=Me.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(Hc||(Hc=je()(["\n outline-style: none;\n"]))),tu=Me.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(Bc||(Bc=je()(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),He.t7.color("paper"),He.t7.radii("form"),(function(e){return e.isTopAligned&&(0,Me.AH)(Wc||(Wc=je()(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),nu=(0,Me.Ay)(Rc).withConfig({displayName:"StyledTether"})(Uc||(Uc=je()(["\n && {\n z-index: 1;\n }\n"]))),ru=(Me.Ay.div.withConfig({displayName:"StyledNonTether"})(Yc||(Yc=je()(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; /* higher than StyledTether and StyledIndicatorsContainerWrapper */\n"])),He.hs.space(1.5)),(0,Me.Ay)(Ds.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Vc||(Vc=je()(["\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}))),ou=Me.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(zc||(zc=je()(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,He.Ed)({color:He.t7.color("signal.info"),lineHeight:"normal"}),He.hs.space(-.5),He.hs.space(-.2)),iu=Me.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(qc||(qc=je()(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?He.t7.color("text"):"inherit"})),au=Me.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Gc||(Gc=je()(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),su=Me.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Kc||(Kc=je()(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),cu=Me.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})($c||($c=je()(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),uu=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c=He.hs.space(-1)({theme:e}),u=He.hs.space(-2)({theme:e}),l={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},d=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},f=function(t){return Qc(Qc({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Qc(Qc(Qc({},e),l),{},{outline:0})},control:function(e,t){return Qc(Qc({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:d(t)?"block":e.display})},noOptionsMessage:f,loadingMessage:f,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Qc(Qc({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Qc(Qc({},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),Qc(Qc(Qc({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},d(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Qc(Qc(Qc({},t),l),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Qc(Qc({},t),{},{borderRadius:s,margin:"".concat(c," ").concat(u," 0 0"),backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},d(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Qc(Qc({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Qc(Qc({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Qc(Qc({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Qc(Qc({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(e,t){return Qc(Qc({},e),{},{padding:0,margin:0})}}};function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fu=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,Ke.jsx)(Ds.DropdownIndicator,du(du({},e),{},{children:(0,Ke.jsx)(au,{children:(0,Ke.jsx)(Mt,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};Ce().shape({key:Ce().any.isRequired,display:Ce().string});var pu,hu,mu;function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yu=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},bu=function(e,t){return function(n){n.stopPropagation(),e(t)}},wu=function(e,t){return function(n){n.stopPropagation(),e(t)}},xu=function(e){e.stopPropagation()};const Ou=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,Ke.jsx)(tu,{isTopAligned:f,children:(0,Ke.jsxs)(Ds.IndicatorsContainer,vu(vu({},e),{},{children:[e.children,n&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:bu(n,u),children:pu||(pu=(0,Ke.jsx)(Mt,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:yu(r,d,u),children:hu||(hu=(0,Ke.jsx)(Mt,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,Ke.jsx)("span",{onTouchEnd:xu,onMouseDown:wu(o,u),children:mu||(mu=(0,Ke.jsx)(Mt,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var ku;const Su=function(){return ku||(ku=(0,Ke.jsx)("span",{children:(0,Ke.jsx)(Ze,{size:"1.8rem"})}))};var Eu="tocco-app",Pu=c(85072),Du=c.n(Pu),_u=c(97825),Cu=c.n(_u),Tu=c(77659),ju=c.n(Tu),Au=c(55056),Mu=c.n(Au),Iu=c(10540),Nu=c.n(Iu),Ru=c(41113),Lu=c.n(Ru),Fu=c(2063),Hu={};Hu.styleTagTransform=Lu(),Hu.setAttributes=Mu(),Hu.insert=ju().bind(null,"head"),Hu.domAPI=Cu(),Hu.insertStyleElement=Nu();Du()(Fu.A,Hu);Fu.A&&Fu.A.locals&&Fu.A.locals;var Bu,Wu=c(59386),Uu=c.n(Wu),Yu=Me.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(Bu||(Bu=je()(["\n cursor: pointer;\n user-select: none;\n"]))),Vu=m().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,Ke.jsx)(Yu,{onClick:r,ref:t,children:n})}));Vu.propTypes={children:Ce().any,onOpen:Ce().func};const zu=Vu;function qu(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Gu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ku(e,t){const n=qu(e);return isNaN(t)?Gu(e,NaN):t?(n.setDate(n.getDate()+t),n):n}Math.pow(10,8);const $u=6048e5,Xu=864e5,Qu=6e4,Zu=36e5;let Ju={};function el(){return Ju}function tl(e,t){const n=el(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=qu(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function nl(e){return tl(e,{weekStartsOn:1})}function rl(e){const t=qu(e),n=t.getFullYear(),r=Gu(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=nl(r),i=Gu(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=nl(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ol(e){const t=qu(e);return t.setHours(0,0,0,0),t}function il(e){const t=qu(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function al(e,t){const n=ol(e),r=ol(t),o=+n-il(n),i=+r-il(r);return Math.round((o-i)/Xu)}function sl(e){const t=rl(e),n=Gu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nl(n)}function cl(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function ul(e){if(!cl(e)&&"number"!=typeof e)return!1;const t=qu(e);return!isNaN(Number(t))}function ll(e){const t=qu(e),n=Gu(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const dl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function fl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const pl={date:fl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:fl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},hl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ml(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const gl={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ml({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ml({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ml({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ml({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ml({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function vl(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}function yl(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}const bl={ordinalNumber:yl({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:vl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:vl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},wl={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=dl[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:pl,formatRelative:(e,t,n,r)=>hl[e],localize:gl,match:bl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xl(e){const t=qu(e);return al(t,ll(t))+1}function Ol(e){const t=qu(e),n=+nl(t)-+sl(t);return Math.round(n/$u)+1}function kl(e,t){const n=qu(e),r=n.getFullYear(),o=el(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Gu(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=tl(a,t),c=Gu(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=tl(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Sl(e,t){const n=el(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=kl(e,t),i=Gu(e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return tl(i,t)}function El(e,t){const n=qu(e),r=+tl(n,t)-+Sl(n,t);return Math.round(r/$u)+1}function Pl(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Dl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pl("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Pl(n+1,2)},d:(e,t)=>Pl(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Pl(e.getHours()%12||12,t.length),H:(e,t)=>Pl(e.getHours(),t.length),m:(e,t)=>Pl(e.getMinutes(),t.length),s:(e,t)=>Pl(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Pl(Math.trunc(r*Math.pow(10,n-3)),t.length)}},_l="midnight",Cl="noon",Tl="morning",jl="afternoon",Al="evening",Ml="night",Il={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Dl.y(e,t)},Y:function(e,t,n,r){const o=kl(e,r),i=o>0?o:1-o;if("YY"===t){return Pl(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Pl(i,t.length)},R:function(e,t){return Pl(rl(e),t.length)},u:function(e,t){return Pl(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pl(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pl(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Dl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pl(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=El(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Pl(o,t.length)},I:function(e,t,n){const r=Ol(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Pl(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Dl.d(e,t)},D:function(e,t,n){const r=xl(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Pl(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Pl(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Pl(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Pl(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?Cl:0===r?_l:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?Al:r>=12?jl:r>=4?Tl:Ml,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Dl.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Dl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Pl(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Pl(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Dl.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Dl.s(e,t)},S:function(e,t){return Dl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Rl(r);case"XXXX":case"XX":return Ll(r);default:return Ll(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Rl(r);case"xxxx":case"xx":return Ll(r);default:return Ll(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nl(r,":");default:return"GMT"+Ll(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nl(r,":");default:return"GMT"+Ll(r,":")}},t:function(e,t,n){return Pl(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Pl(e.getTime(),t.length)}};function Nl(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+Pl(i,2)}function Rl(e,t){if(e%60==0){return(e>0?"-":"+")+Pl(Math.abs(e)/60,2)}return Ll(e,t)}function Ll(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Pl(Math.trunc(r/60),2)+t+Pl(r%60,2)}const Fl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Hl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Bl={p:Hl,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Fl(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Fl(r,t)).replace("{{time}}",Hl(o,t))}},Wl=/^D+$/,Ul=/^Y+$/,Yl=["D","DD","YY","YYYY"];function Vl(e){return Wl.test(e)}function zl(e){return Ul.test(e)}function ql(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Yl.includes(e))throw new RangeError(r)}const Gl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$l=/^'([^]*?)'?$/,Xl=/''/g,Ql=/[a-zA-Z]/;function Zl(e,t,n){const r=el(),o=n?.locale??r.locale??wl,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=qu(e);if(!ul(s))throw new RangeError("Invalid time value");let c=t.match(Kl).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Bl[t])(e,o.formatLong)}return e})).join("").match(Gl).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Jl(e)};if(Il[t])return{isToken:!0,value:e};if(t.match(Ql))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&zl(i)||!n?.useAdditionalDayOfYearTokens&&Vl(i))&&ql(i,t,String(e));return(0,Il[i[0]])(s,i,o.localize,u)})).join("")}function Jl(e){const t=e.match($l);return t?t[1].replace(Xl,"'"):e}function ed(){return Object.assign({},el())}function td(e){return qu(e).getHours()}function nd(e){let t=qu(e).getDay();return 0===t&&(t=7),t}function rd(e){return qu(e).getMinutes()}function od(e){return qu(e).getSeconds()}function id(e,t){const n=t instanceof Date?Gu(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class ad{subPriority=0;validate(e,t){return!0}}class sd extends ad{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class cd extends ad{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Gu(e,id(e,Date))}}class ud{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new sd(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const ld=/^(1[0-2]|0?\d)/,dd=/^(3[0-1]|[0-2]?\d)/,fd=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,pd=/^(5[0-3]|[0-4]?\d)/,hd=/^(2[0-3]|[0-1]?\d)/,md=/^(2[0-4]|[0-1]?\d)/,gd=/^(1[0-1]|0?\d)/,vd=/^(1[0-2]|0?\d)/,yd=/^[0-5]?\d/,bd=/^[0-5]?\d/,wd=/^\d/,xd=/^\d{1,2}/,Od=/^\d{1,3}/,kd=/^\d{1,4}/,Sd=/^-?\d+/,Ed=/^-?\d/,Pd=/^-?\d{1,2}/,Dd=/^-?\d{1,3}/,_d=/^-?\d{1,4}/,Cd=/^([+-])(\d{2})(\d{2})?|Z/,Td=/^([+-])(\d{2})(\d{2})|Z/,jd=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ad=/^([+-])(\d{2}):(\d{2})|Z/,Md=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Id(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Nd(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Rd(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*Zu+i*Qu+1e3*a),rest:t.slice(n[0].length)}}function Ld(e){return Nd(Sd,e)}function Fd(e,t){switch(e){case 1:return Nd(wd,t);case 2:return Nd(xd,t);case 3:return Nd(Od,t);case 4:return Nd(kd,t);default:return Nd(new RegExp("^\\d{1,"+e+"}"),t)}}function Hd(e,t){switch(e){case 1:return Nd(Ed,t);case 2:return Nd(Pd,t);case 3:return Nd(Dd,t);case 4:return Nd(_d,t);default:return Nd(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Bd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Wd(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function Ud(e){return e%400==0||e%4==0&&e%100!=0}function Yd(e,t,n){const r=qu(e),o=El(r,n)-t;return r.setDate(r.getDate()-7*o),r}function Vd(e,t){const n=qu(e),r=Ol(n)-t;return n.setDate(n.getDate()-7*r),n}const zd=[31,28,31,30,31,30,31,31,30,31,30,31],qd=[31,29,31,30,31,30,31,31,30,31,30,31];function Gd(e,t,n){const r=el(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=qu(e),a=i.getDay(),s=7-o;return Ku(i,t<0||t>6?t-(a+s)%7:((t%7+7)%7+s)%7-(a+s)%7)}function Kd(e,t){const n=qu(e);return Ku(n,t-nd(n))}const $d={G:new class extends ud{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends ud{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Id(Fd(4,e),r);case"yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Fd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Wd(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends ud{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Id(Fd(4,e),r);case"Yo":return Id(n.ordinalNumber(e,{unit:"year"}),r);default:return Id(Fd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=kl(e,r);if(n.isTwoDigitYear){const t=Wd(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),tl(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),tl(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends ud{priority=130;parse(e,t){return Hd("R"===t?4:t.length,e)}set(e,t,n){const r=Gu(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),nl(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends ud{priority=130;parse(e,t){return Hd("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends ud{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Fd(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends ud{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Fd(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends ud{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Id(Nd(ld,e),r);case"MM":return Id(Fd(2,e),r);case"Mo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends ud{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Id(Nd(ld,e),r);case"LL":return Id(Fd(2,e),r);case"Lo":return Id(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends ud{priority=100;parse(e,t,n){switch(t){case"w":return Nd(pd,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return tl(Yd(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends ud{priority=100;parse(e,t,n){switch(t){case"I":return Nd(pd,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return nl(Vd(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends ud{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Nd(dd,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Fd(t.length,e)}}validate(e,t){const n=Ud(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=qd[r]:t>=1&&t<=zd[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends ud{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Nd(fd,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Fd(t.length,e)}}validate(e,t){return Ud(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends ud{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends ud{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Id(Fd(t.length,e),o);case"eo":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends ud{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Id(Fd(t.length,e),o);case"co":return Id(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Gd(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends ud{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return Fd(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Id(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Id(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Id(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Id(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=Kd(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends ud{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends ud{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends ud{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Bd(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends ud{priority=70;parse(e,t,n){switch(t){case"h":return Nd(vd,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends ud{priority=70;parse(e,t,n){switch(t){case"H":return Nd(hd,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends ud{priority=70;parse(e,t,n){switch(t){case"K":return Nd(gd,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends ud{priority=70;parse(e,t,n){switch(t){case"k":return Nd(md,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Fd(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends ud{priority=60;parse(e,t,n){switch(t){case"m":return Nd(yd,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends ud{priority=50;parse(e,t,n){switch(t){case"s":return Nd(bd,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Fd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends ud{priority=30;parse(e,t){return Id(Fd(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends ud{priority=10;parse(e,t){switch(t){case"X":return Rd(Cd,e);case"XX":return Rd(Td,e);case"XXXX":return Rd(jd,e);case"XXXXX":return Rd(Md,e);default:return Rd(Ad,e)}}set(e,t,n){return t.timestampIsSet?e:Gu(e,e.getTime()-il(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends ud{priority=10;parse(e,t){switch(t){case"x":return Rd(Cd,e);case"xx":return Rd(Td,e);case"xxxx":return Rd(jd,e);case"xxxxx":return Rd(Md,e);default:return Rd(Ad,e)}}set(e,t,n){return t.timestampIsSet?e:Gu(e,e.getTime()-il(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends ud{priority=40;parse(e){return Ld(e)}set(e,t,n){return[Gu(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends ud{priority=20;parse(e){return Ld(e)}set(e,t,n){return[Gu(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},Xd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zd=/^'([^]*?)'?$/,Jd=/''/g,ef=/\S/,tf=/[a-zA-Z]/;function nf(e,t,n,r){const o=ed(),i=r?.locale??o.locale??wl,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(""===t)return""===e?qu(n):Gu(n,NaN);const c={firstWeekContainsDate:a,weekStartsOn:s,locale:i},u=[new cd],l=t.match(Qd).map((e=>{const t=e[0];if(t in Bl){return(0,Bl[t])(e,i.formatLong)}return e})).join("").match(Xd),d=[];for(let o of l){!r?.useAdditionalWeekYearTokens&&zl(o)&&ql(o,t,e),!r?.useAdditionalDayOfYearTokens&&Vl(o)&&ql(o,t,e);const a=o[0],s=$d[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${o}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${o}\` and any other token at the same time`);d.push({token:a,fullToken:o});const r=s.run(e,o,i.match,c);if(!r)return Gu(n,NaN);u.push(r.setter),e=r.rest}else{if(a.match(tf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===o?o="'":"'"===a&&(o=o.match(Zd)[1].replace(Jd,"'")),0!==e.indexOf(o))return Gu(n,NaN);e=e.slice(o.length)}}if(e.length>0&&ef.test(e))return Gu(n,NaN);const f=u.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>u.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let p=qu(n);if(isNaN(p.getTime()))return Gu(n,NaN);const h={};for(const e of f){if(!e.validate(p,c))return Gu(n,NaN);const t=e.set(p,h,c);Array.isArray(t)?(p=t[0],Object.assign(h,t[1])):p=t}return Gu(n,p)}function rf(e,t,n){return ul(nf(e,t,new Date,n))}function of(e,t,n){return+tl(e,n)==+tl(t,n)}function af(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(sf.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],sf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(sf.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=sf.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(cf);if(!n)return new Date(NaN);const r=!!n[4],o=df(n[1]),i=df(n[2])-1,a=df(n[3]),s=df(n[4]),c=df(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(pf[t]||(hf(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(hf(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(uf);if(!t)return NaN;const n=ff(t[1]),r=ff(t[2]),o=ff(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*Zu+r*Qu+1e3*o}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(i+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(lf);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*Zu+o*Qu)}(r.timezone),isNaN(a)?new Date(NaN):new Date(i+s+a)}const sf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function df(e){return e?parseInt(e):1}function ff(e){return e&&parseFloat(e.replace(",","."))||0}const pf=[31,null,31,30,31,30,31,31,30,31,30,31];function hf(e){return e%400==0||e%4==0&&e%100!=0}function mf(e,t){const n=qu(e);return n.setHours(t),n}function gf(e,t){const n=qu(e);return n.setMilliseconds(t),n}function vf(e,t){const n=qu(e);return n.setMinutes(t),n}function yf(e,t){const n=qu(e);return n.setSeconds(t),n}const bf={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"}}},wf={date:fl({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},xf={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Of={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"]},kf={narrow:Of.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Of.wide},Sf={ordinalNumber:e=>Number(e)+".",era:ml({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:ml({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:ml({values:Of,formattingValues:kf,defaultWidth:"wide"}),day:ml({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:ml({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"})},Ef={ordinalNumber:yl({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},Pf={code:"de",formatDistance:(e,t,n)=>{let r;const o=n?.addSuffix?bf[e].withPreposition:bf[e].standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},formatLong:wf,formatRelative:(e,t,n,r)=>xf[e],localize:Sf,match:Ef,options:{weekStartsOn:1,firstWeekContainsDate:4}},Df={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"}},_f=["MMM","MMMM"],Cf={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&_f.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:ml({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:ml({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:ml({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:ml({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:ml({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"})},Tf={ordinalNumber:yl({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},jf={date:fl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Af={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"},Mf={code:"fr-CH",formatDistance:(e,t,n)=>{let r;const o=Df[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:jf,formatRelative:(e,t,n,r)=>Af[e],localize:Cf,match:Tf,options:{weekStartsOn:1,firstWeekContainsDate:4}},If={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"}},Nf={date:fl({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:fl({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:fl({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Rf=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Lf(e){return"'"+Rf[e]+" alle' p"}const Ff={lastWeek:(e,t,n)=>{const r=e.getDay();return of(e,t,n)?Lf(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Rf[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 of(e,t,n)?Lf(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Rf[e]+" prossimo alle' p"}(r)},other:"P"},Hf={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:ml({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:ml({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:ml({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:ml({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:ml({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"})},Bf={ordinalNumber:yl({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:vl({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:vl({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:vl({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:vl({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:vl({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"})},Wf={code:"it",formatDistance:(e,t,n)=>{let r;const o=If[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:Nf,formatRelative:(e,t,n,r)=>{const o=Ff[e];return"function"==typeof o?o(t,n,r):o},localize:Hf,match:Bf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Uf=function(e){if(!e&&0!==e)return{hours:"",minutes:"",seconds:""};var t=Zn(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}},Yf=function(e){switch(e){case"fr":return Mf;case"en":return wl;case"it":return Wf;default:return Pf}},Vf=function(e){return Yf(e).formatLong.date({width:"short"})},zf=function(e){return Vf(e).replace(/[/.]/g,"")};const qf=function(e){var t=Uf(e),n=t.hours,r=t.minutes,o=t.seconds,i="".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")),a="".concat(i,":").concat(o.toFixed(3).padStart(6,"0"));return o?a:i},Gf=Yf,Kf=Vf,$f=function(e){return"".concat(Vf(e)," HH:mm")},Xf=zf,Qf=function(e){return"".concat(zf(e)," HHmm")},Zf=function(e){return e.replace(/y+/,"yy")},Jf=function(e){var t=new Date,n=new Date(e);return n=gf(n=yf(n=vf(n=mf(n,td(t)),rd(t)),0),0)},ep=function(e){var t=864e5,n=e-(new Date).getTime();if(n>-864e5){var r=Math.round(n/1e3);return r>-60?{diffValue:r,unit:"second"}:r>-3600?{diffValue:Math.ceil(r/60),unit:"minute"}:{diffValue:Math.ceil(r/3600),unit:"hour"}}var o=Math.round(n/t);return o>-30?{diffValue:o,unit:"day"}:o>-365?{diffValue:Math.ceil(o/30),unit:"month"}:{diffValue:Math.ceil(o/365),unit:"year"}};var tp=function(){(0,Wu.registerLocale)("en",Gf("en")),(0,Wu.registerLocale)("en-US",Gf("en")),(0,Wu.registerLocale)("de-CH",Gf("de-CH")),(0,Wu.registerLocale)("de-DE",Gf("de-DE")),(0,Wu.registerLocale)("de",Gf("de")),(0,Wu.registerLocale)("fr",Gf("fr")),(0,Wu.registerLocale)("fr-CH",Gf("fr")),(0,Wu.registerLocale)("it",Gf("it")),(0,Wu.registerLocale)("it-CH",Gf("it")),(0,Wu.setDefaultLocale)("de")};tp();(0,Me.SL)((0,f.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,p.useRef)(null),c=(0,p.useState)(!1),u=et()(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,Ke.jsx)(Uu(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Ke.jsx)(zu,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var np,rp,op,ip,ap=He.t7.color("secondaryLight"),sp=He.t7.color("paper"),cp=He.t7.color("text"),up=He.t7.color("secondary"),lp=He.t7.radii("form"),dp=(0,Me.DU)(np||(np=je()(["\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"])),Ge.i,cp,He.t7.radii("form"),lp,ap,sp,(0,He.Ed)(),(0,He.Ed)(),ap,lp,lp,He.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",sp,He.hs.font(1),He.t7.fontWeight("bold"),(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),sp,He.hs.font(-2),He.hs.space(-1.8),up,up,up,ap,ap,ap,up,(0,He.Ed)(),sp,He.hs.space(-.5),He.t7.color("backgroundItemHover"),lp,He.hs.space(-.5),sp,He.t7.color("border"),He.t7.radii("form"),He.hs.space(-1),He.hs.space(-1),He.hs.font(1),sp,He.t7.fontWeight("bold"),He.hs.space(-1),sp,He.hs.font(0),cp,ap,ap,He.t7.radii("form"),sp,ap,up,cp,cp,sp,ap,He.t7.color("backgroundItemHover"),He.t7.color("textDisabled"),He.t7.color("border"),He.t7.radii("form")),fp=(0,Me.DU)(rp||(rp=je()(["\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"])),He.t7.color("signal.success"),He.t7.color("signal.info"),He.t7.color("signal.warning"),He.t7.color("signal.danger"),He.t7.color("textDisabled")),pp=(0,Me.DU)(op||(op=je()(["\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"])),He.t7.color("backgroundScrollbar"),He.t7.color("backgroundScrollbarHover"),He.t7.color("backgroundScrollbar"));const hp=function(){return ip||(ip=(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(fp,{}),(0,Ke.jsx)(dp,{}),(0,Ke.jsx)(pp,{})]}))};function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vp=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,Ke.jsx)(nu,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,Ke.jsx)("div",{ref:e})},renderElement:function(o){return(0,Ke.jsx)("div",{ref:o,className:Eu,children:(0,Ke.jsx)(ru,gp(gp({},Br()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wp=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,Ke.jsxs)(Ds.MenuList,bp(bp({},e),{},{className:"MenuList",children:[n,r&&(0,Ke.jsx)(ou,{children:o})]}))};function xp(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Op(e){return e instanceof Element||e instanceof xp(e).Element}function kp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof xp(e).ShadowRoot)}function Sp(e){return xp(e).getComputedStyle(e)}function Ep(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&kp(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Pp(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Dp(e){return(null==e?void 0:e.ownerDocument)||document}Math.min,Math.max,Math.round,Math.floor;var _p=c(49054),Cp=c(95361);const Tp=Math.min,jp=Math.max,Ap=Math.round,Mp=(Math.floor,e=>({x:e,y:e}));function Ip(e){return Lp(e)?(e.nodeName||"").toLowerCase():"#document"}function Np(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rp(e){var t;return null==(t=(Lp(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Lp(e){return e instanceof Node||e instanceof Np(e).Node}function Fp(e){return e instanceof Element||e instanceof Np(e).Element}function Hp(e){return e instanceof HTMLElement||e instanceof Np(e).HTMLElement}function Bp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Np(e).ShadowRoot)}function Wp(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Up(e){return["table","td","th"].includes(Ip(e))}function Yp(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Vp(e){const t=zp(),n=Fp(e)?Gp(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function zp(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qp(e){return["html","body","#document"].includes(Ip(e))}function Gp(e){return Np(e).getComputedStyle(e)}function Kp(e){return Fp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $p(e){if("html"===Ip(e))return e;const t=e.assignedSlot||e.parentNode||Bp(e)&&e.host||Rp(e);return Bp(t)?t.host:t}function Xp(e){const t=$p(e);return qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hp(t)&&Wp(t)?t:Xp(t)}function Qp(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Xp(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Np(o);return i?t.concat(a,a.visualViewport||[],Wp(o)?o:[],a.frameElement&&n?Qp(a.frameElement):[]):t.concat(o,Qp(o,[],n))}function Zp(e){const t=Gp(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Hp(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ap(n)!==i||Ap(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Jp(e){return Fp(e)?e:e.contextElement}function eh(e){const t=Jp(e);if(!Hp(t))return Mp(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Zp(t);let a=(i?Ap(n.width):n.width)/r,s=(i?Ap(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const th=Mp(0);function nh(e){const t=Np(e);return zp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:th}function rh(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Jp(e);let a=Mp(1);t&&(r?Fp(r)&&(a=eh(r)):a=eh(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Np(e))&&t}(i,n,r)?nh(i):Mp(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Np(i),t=r&&Fp(r)?Np(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=eh(o),t=o.getBoundingClientRect(),r=Gp(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=Np(o),o=n.frameElement}}return(0,Cp.B1)({width:l,height:d,x:c,y:u})}function oh(e){return rh(Rp(e)).left+Kp(e).scrollLeft}function ih(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Np(e),r=Rp(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=zp();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Rp(e),n=Kp(e),r=e.ownerDocument.body,o=jp(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jp(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oh(e);const s=-n.scrollTop;return"rtl"===Gp(r).direction&&(a+=jp(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rp(e));else if(Fp(t))r=function(e,t){const n=rh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hp(e)?eh(e):Mp(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=nh(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,Cp.B1)(r)}function ah(e,t){const n=$p(e);return!(n===t||!Fp(n)||qp(n))&&("fixed"===Gp(n).position||ah(n,t))}function sh(e,t,n){const r=Hp(t),o=Rp(t),i="fixed"===n,a=rh(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Mp(0);if(r||!r&&!i)if(("body"!==Ip(t)||Wp(o))&&(s=Kp(t)),r){const e=rh(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=oh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ch(e){return"static"===Gp(e).position}function uh(e,t){return Hp(e)&&"fixed"!==Gp(e).position?t?t(e):e.offsetParent:null}function lh(e,t){const n=Np(e);if(Yp(e))return n;if(!Hp(e)){let t=$p(e);for(;t&&!qp(t);){if(Fp(t)&&!ch(t))return t;t=$p(t)}return n}let r=uh(e,t);for(;r&&Up(r)&&ch(r);)r=uh(r,t);return r&&qp(r)&&ch(r)&&!Vp(r)?n:r||function(e){let t=$p(e);for(;Hp(t)&&!qp(t);){if(Vp(t))return t;if(Yp(t))return null;t=$p(t)}return null}(e)||n}const dh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Rp(r),s=!!t&&Yp(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Mp(1);const l=Mp(0),d=Hp(r);if((d||!d&&!i)&&(("body"!==Ip(r)||Wp(a))&&(c=Kp(r)),Hp(r))){const e=rh(r);u=eh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:Rp,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Yp(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qp(e,[],!1).filter((e=>Fp(e)&&"body"!==Ip(e))),o=null;const i="fixed"===Gp(e).position;let a=i?$p(e):e;for(;Fp(a)&&!qp(a);){const t=Gp(a),n=Vp(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Wp(a)&&!n&&ah(e,a))?r=r.filter((e=>e!==a)):o=t,a=$p(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=ih(t,n,o);return e.top=jp(r.top,e.top),e.right=Tp(r.right,e.right),e.bottom=Tp(r.bottom,e.bottom),e.left=jp(r.left,e.left),e}),ih(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lh,getElementRects:async function(e){const t=this.getOffsetParent||lh,n=this.getDimensions,r=await n(e.floating);return{reference:sh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Zp(e);return{width:t,height:n}},getScale:eh,isElement:Fp,isRTL:function(e){return"rtl"===Gp(e).direction}};const fh=Cp.cY,ph=Cp.BN,hh=Cp.UU,mh=Cp.UE,gh=(e,t,n)=>{const r=new Map,o={platform:dh,...n},i={...o.platform,_c:r};return(0,Cp.rD)(e,t,{...o,platform:i})};var vh="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function yh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!yh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!yh(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function bh(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wh(e,t){const n=bh(e);return Math.round(t*n)/n}function xh(e){const t=p.useRef(e);return vh((()=>{t.current=e})),t}const Oh=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?mh({element:n.current,padding:r}).fn(t):{}:n?mh({element:n,padding:r}).fn(t):{};var o}}),kh=(e,t)=>({...fh(e),options:[e,t]}),Sh=(e,t)=>({...ph(e),options:[e,t]}),Eh=(e,t)=>({...hh(e),options:[e,t]}),Ph=(e,t)=>({...Oh(e),options:[e,t]});const Dh={...h},_h=Dh.useInsertionEffect||(e=>e());function Ch(e){const t=p.useRef((()=>{0}));return _h((()=>{t.current=e})),p.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 Th="ArrowUp",jh="ArrowDown",Ah="ArrowLeft",Mh="ArrowRight";var Ih="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;const Nh=[Ah,Mh],Rh=[Th,jh];function Lh(){return Lh=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},Lh.apply(this,arguments)}let Fh=!1,Hh=0;const Bh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Hh++;const Wh=Dh.useId||function(){const[e,t]=p.useState((()=>Fh?Bh():void 0));return Ih((()=>{null==e&&t(Bh())}),[]),p.useEffect((()=>{Fh=!0}),[]),e};const Uh=p.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...h}={},...m}=e;const g=Wh(),[v,y]=p.useState(!1);if(Ih((()=>{if(!r)return;"rtl"===Sp(r).direction&&y(!0)}),[r]),!r)return null;const b=2*c,w=b/2,x=i/2*(s/-8+1),O=a/2*s/4,[k,S]=n.split("-"),E=!!d,P="top"===k||"bottom"===k,D=u&&"end"===S?"bottom":"top";let _=u&&"end"===S?"right":"left";u&&v&&(_="end"===S?"left":"right");const C=null!=(null==o?void 0:o.x)?u||o.x:"",T=null!=(null==o?void 0:o.y)?u||o.y:"",j=d||"M0,0 H"+i+" L"+(i-x)+","+(a-O)+" Q"+i/2+","+a+" "+x+","+(a-O)+" Z",A={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[k];return p.createElement("svg",Lh({},m,{"aria-hidden":!0,ref:t,width:E?i:i+b,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[_]:C,[D]:T,[k]:P||E?"100%":"calc(100% - "+b/2+"px)",transform:""+A+(null!=f?f:""),...h}}),b>0&&p.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:l,strokeWidth:b+(d?0:1),d:j}),p.createElement("path",{stroke:b&&!d?m.fill:"none",d:j}),p.createElement("clipPath",{id:g},p.createElement("rect",{x:-w,y:w*(E?-1:1),width:i+b,height:i})))}));function Yh(){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 Vh=p.createContext(null),zh=p.createContext(null),qh=()=>{var e;return(null==(e=p.useContext(Vh))?void 0:e.id)||null},Gh=()=>p.useContext(zh);function Kh(e){return"data-floating-ui-"+e}function $h(e){const t=(0,p.useRef)(e);return Ih((()=>{t.current=e})),t}const Xh=Kh("safe-polygon");function Qh(e,t,n){return n&&!Pp(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const Zh=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Jh(e,t){const n=(0,_p.Kr)(e,Zh());"prev"===t&&n.reverse();const r=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}(Dp(e)));return n.slice(r+1)[0]}function em(){return Jh(document.body,"next")}function tm(){return Jh(document.body,"prev")}function nm(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ep(n,r)}function rm(e){(0,_p.Kr)(e,Zh()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function om(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 im={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 am(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const sm=p.forwardRef((function(e,t){const[n,r]=p.useState();Ih((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",am),()=>{document.removeEventListener("keydown",am)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Kh("focus-guard")]:"",style:im};return p.createElement("span",Lh({},e,o))})),cm=p.createContext(null),um=Kh("portal");function lm(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Wh(),o=dm(),[i,a]=p.useState(null),s=p.useRef(null);return Ih((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Ih((()=>{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(um,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Ih((()=>{if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Op(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(um,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=p.useState(null),c=p.useRef(null),u=p.useRef(null),l=p.useRef(null),d=p.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return p.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&nm(e)){("focusin"===e.type?om:rm)(i)}}}),[i,o,null==a?void 0:a.modal]),p.createElement(cm.Provider,{value:p.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&p.createElement(sm,{"data-type":"outside",ref:c,onFocus:e=>{if(nm(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=tm()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&p.createElement("span",{"aria-owns":i.id,style:im}),i&&ia.createPortal(t,i),f&&i&&p.createElement(sm,{"data-type":"outside",ref:u,onFocus:e=>{if(nm(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=em()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const dm=()=>p.useContext(cm);function fm(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Wh(),i=p.useRef({}),[a]=p.useState((()=>Yh())),s=null!=qh(),[c,u]=p.useState(r.reference),l=Ch(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=p.useMemo((()=>({setPositionReference:u})),[]),f=p.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return p.useMemo((()=>({dataRef:i,open:t,onOpenChange:l,elements:f,events:a,floatingId:o,refs:d})),[t,l,f,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=p.useState(null),[s,c]=p.useState(null),u=(null==o?void 0:o.reference)||i,l=p.useRef(null),d=Gh();Ih((()=>{u&&(l.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(r);yh(f,r)||h(r);const[m,g]=p.useState(null),[v,y]=p.useState(null),b=p.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=p.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=i||m,O=a||v,k=p.useRef(null),S=p.useRef(null),E=p.useRef(l),P=null!=c,D=xh(c),_=xh(o),C=p.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),gh(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!yh(E.current,t)&&(E.current=t,ia.flushSync((()=>{d(t)})))}))}),[f,t,n,_]);vh((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=p.useRef(!1);vh((()=>(T.current=!0,()=>{T.current=!1})),[]),vh((()=>{if(x&&(k.current=x),O&&(S.current=O),x&&O){if(D.current)return D.current(x,O,C);C()}}),[x,O,C,D,P]);const j=p.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:w})),[b,w]),A=p.useMemo((()=>({reference:x,floating:O})),[x,O]),M=p.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=wh(A.floating,l.x),r=wh(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...bh(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return p.useMemo((()=>({...l,update:C,refs:j,elements:A,floatingStyles:M})),[l,C,j,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),h=p.useCallback((e=>{const t=Op(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),m=p.useCallback((e=>{(Op(e)||null===e)&&(l.current=e,a(e)),(Op(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Op(e))&&f.refs.setReference(e)}),[f.refs]),g=p.useMemo((()=>({...f.refs,setReference:m,setPositionReference:h,domReference:l})),[f.refs,m,h]),v=p.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=p.useMemo((()=>({...f,...r,refs:g,elements:v,nodeId:t})),[f,g,v,t,r]);return Ih((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),p.useMemo((()=>({...f,context:y,refs:g,elements:v})),[f,g,v,y])}const pm="active",hm="selected";function mm(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[pm]:t,[hm]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[pm,hm].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}var gm,vm,ym,bm,wm,xm=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(gm||(gm=je()(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),He.t7.color("text"),He.hs.font(1),He.hs.space(-1)),Om=(0,Me.AH)(vm||(vm=je()(["\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"])),He.t7.color("text"),He.t7.lineHeight("regular"),He.t7.fontWeight("regular"),He.hs.space(-3),He.hs.space(-1.5),He.t7.radii("statusLabel")),km=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledHtmlFormatter"})(ym||(ym=je()(["\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,cr.gv)(e,"html")}),He.hs.space(-1),He.hs.space(-1.5),Om,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.color("signal.infoLight"),He.t7.color("textLabel"),He.t7.color("signal.warningLight"),He.t7.color("textLabel"),He.t7.color("signal.successLight"),He.t7.color("textLabel"),Om,He.t7.color("signal.dangerLight"),He.t7.color("textLabel"),He.t7.radii("statusLabel"),He.hs.space(-2.1),He.hs.space(0),He.t7.color("paper"),He.t7.color("signal.info"),He.t7.color("signal.warningLight"),He.hs.space(-1.5),He.hs.space(.5)),Sm=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(bm||(bm=je()(["\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"])),He.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":He.hs.space(0)}),He.t7.color("textPopover"),He.t7.color("backgroundPopover")),Em=Me.Ay.div.withConfig({displayName:"StyledBox"})(wm||(wm=je()(["\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,cr.gv)(e,"html")}),km,He.t7.color("textPopover"));function Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _m=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,p.useState)(!1),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useRef)(null),f=fm({open:u,onOpenChange:l,middleware:[Eh(),Sh({padding:20}),Ph({element:d}),kh(5)]}),h=f.refs,m=f.floatingStyles,g=f.context,v=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:l=!1,restMs:d=0,move:f=!0}=t,h=Gh(),m=qh(),g=$h(u),v=$h(c),y=$h(n),b=p.useRef(),w=p.useRef(-1),x=p.useRef(),O=p.useRef(-1),k=p.useRef(!0),S=p.useRef(!1),E=p.useRef((()=>{})),P=p.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]);p.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),k.current=!0)}}),[s,i]),p.useEffect((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){P()&&r(!1,e,"hover")}const t=Dp(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,g,P]);const D=p.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Qh(v.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),_=Ch((()=>{E.current(),x.current=void 0})),C=Ch((()=>{if(S.current){const e=Dp(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Xh),S.current=!1}}));p.useEffect((()=>{if(s&&Op(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",u),null==(e=a.floating)||e.addEventListener("mouseleave",u),f&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",u),null==(e=a.floating)||e.removeEventListener("mouseleave",u),f&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,l&&!Pp(b.current)||d>0&&!Qh(v.current,"open"))return;const t=Qh(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(e){if(t())return;E.current();const r=Dp(a.floating);if(clearTimeout(O.current),g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!Ep(a.floating,e.relatedTarget))&&D(e)}function u(e){t()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){C(),_(),D(e)}})(e))}}),[a,s,e,l,d,f,D,_,C,r,n,y,h,v,g,o]),Ih((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){const e=Dp(a.floating).body;e.setAttribute(Xh,""),e.style.pointerEvents="none",S.current=!0;const n=a.floating;if(Op(a.domReference)&&n){var t;const e=a.domReference,r=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[s,n,m,a,h,g,P]),Ih((()=>{n||(b.current=void 0,_(),C())}),[n,_,C]),p.useEffect((()=>()=>{_(),clearTimeout(w.current),clearTimeout(O.current),C()}),[s,a.domReference,_,C]);const T=p.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}l&&!Pp(b.current)||n||0===d||(clearTimeout(O.current),"touch"===b.current?o():O.current=window.setTimeout(o,d))}}}),[l,r,n,y,d]),j=p.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}})),[D]);return p.useMemo((()=>s?{reference:T,floating:j}:{}),[s,T,j])}(g,{delay:{open:500,close:0}}),y=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=p.useCallback((t=>mm(t,e,"reference")),t),i=p.useCallback((t=>mm(t,e,"floating")),n),a=p.useCallback((t=>mm(t,e,"item")),r);return p.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([v]),b=y.getReferenceProps,w=y.getFloatingProps;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("span",Dm(Dm({ref:h.setReference},b()),{},{children:t})),u&&n&&(0,Ke.jsx)(lm,{children:(0,Ke.jsxs)(Sm,Dm(Dm({ref:h.setFloating,style:m,rimless:a},w()),{},{className:Eu,children:[(0,Ke.jsx)(Uh,{ref:d,context:g}),(0,Ke.jsx)(Em,{isPlainHtml:o,children:n})]}))})]})},Cm=_m;const Tm=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=fo()(i,t.key,null),u=(0,Ke.jsx)("span",{style:n.css,children:r}),l=s?(0,Ke.jsx)(Zc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,Ke.jsx)(Cm,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,Ke.jsx)(cu,{children:l})};var jm=c(85015),Am=c.n(jm),Mm=c(42194),Im=c.n(Mm);function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach((function(t){Ve()(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 Lm=["linkComp"],Fm=function(e,t){var n=sr.difference(e,t),r=Im()(Br()(n,Lm),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Hm=(0,p.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Am()(n)?(0,Ke.jsx)(Zc,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,Ke.jsx)(t,{entityKey:n,children:r})}):r}),Fm);Hm.propTypes={children:Ce().node,entityKey:Ce().any,linkComp:Ce().func};const Bm=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=fo()(i,t.key,null);return(0,Ke.jsx)(Ds.SingleValue,Rm(Rm({},e),{},{children:(0,Ke.jsx)(iu,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,Ke.jsx)(Cm,{content:c?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(c)}}):null,children:(0,Ke.jsx)(Hm,{linkComp:s,entityKey:t.key,children:o})})})}))};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}var Um=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Ym=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,Ke.jsx)(Ds.ValueContainer,function(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){Ve()(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}({},e));var c=p.Children.map(r,(function(e){return Um(e)?e:null})),u=p.Children.map(r,(function(e){return Um(e)?null:e})),l=s&&n;return(0,Ke.jsxs)(Ke.Fragment,{children:[!l&&(0,Ke.jsx)(Ke.Fragment,{children:c}),(0,Ke.jsx)(su,{children:u})]})};function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Me.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,h=e.openAdvancedSearch,m=e.options,g=e.searchOptions,v=e.theme,y=e.tooltips,b=e.value,w=e.DetailLink,x=e.createPermission,O=e.openRemoteCreate,k=(0,p.useRef)(null),S=(0,p.useRef)(null),E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},D=(0,p.useState)(E()),_=et()(D,2),C=_[0],T=_[1],j=(0,p.useState)(P()),A=et()(j,2),M=A[0],I=A[1],N=(0,p.useState)(!1),R=et()(N,2),L=R[0],F=R[1],H=function(e){t&&t(e)},B=(0,p.useCallback)(g||function(){},[]),W=(0,p.useCallback)(mo()(B,800,{trailing:!0}),[]),U=Boolean(h),Y=Boolean(f),V=Boolean(x);return(0,Ke.jsx)(Jc,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(E()),I(P())}),0)},children:(0,Ke.jsx)(eu,{ref:S,children:(0,Ke.jsx)(Cc,zm(zm({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:Ac,LoadingIndicator:Su,DropdownIndicator:fu,IndicatorsContainer:Ou,IndicatorSeparator:null,Menu:vp,MenuList:wp,MultiValueLabel:Tm,SingleValue:Bm,ValueContainer:Ym},noOptionsMessage:function(e){return u||("function"==typeof l?(0,Ke.jsx)(l,zm({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},g?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:b||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;g&&e&&W(e,b),""===e&&"input-change"===n&&H(b)},options:Ht()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(b),F(!0)},onMenuClose:function(){F(!1)},styles:uu(v),loadTooltip:a,tooltips:y,DetailLink:w,hasDocsTreeSearch:Y,openDocsTreeSearch:f,hasAdvancedSearch:U,openAdvancedSearch:h,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:x,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));var qm;Me.Ay.div.withConfig({displayName:"StyledBoolEdit"})(qm||(qm=je()(["\n margin: 5px 0;\n"])));var Gm,Km,$m=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,Ke.jsx)(km,{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(t)},breakWords:n,className:r})};Me.Ay.div.withConfig({displayName:"StyledOption"})(Gm||(Gm=je()(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),He.hs.space(-1),He.hs.space(-1.5)),Me.Ay.span.withConfig({displayName:"StyledLabel"})(Km||(Km=je()(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,He.Ed)(),He.hs.space(-1.5));c(98639);function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Xm(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zm=(0,p.lazy)((function(){return Promise.all([c.e(264),c.e(722)]).then(c.bind(c,65066))}));const Jm=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:(t=e.value,(0,Ke.jsx)("div",{children:(0,Ke.jsx)("p",{children:t})})),children:(0,Ke.jsx)(Zm,Qm({},e))});var t};var eg,tg=Me.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(eg||(eg=je()(["\n margin-top: ",";\n"])),He.hs.space(-1.5));(0,Me.SL)(st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,Ke.jsx)(tg,{children:(0,Ke.jsx)(Jm,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var ng,rg,og,ig=Me.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ng||(ng=je()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),ag=Me.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(rg||(rg=je()(["\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"])),io,so,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),sg=Me.Ay.input.withConfig({displayName:"StyledTimeInput"})(og||(og=je()(["\n &&&& {\n ","\n }\n"])),so),cg="react-datepicker-time__input",ug="react-datepicker__day",lg="react-datepicker__input",dg=function(e){return e.classList.contains(ug)},fg=function(e){return e.classList.contains(cg)},pg=function(e){return e.classList.contains(lg)},hg=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ug,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},mg=function(e,t){var n=null==e?void 0:e.form;if(n){var r=Ht()(n).indexOf(e);if(r>=0)gg(n[r+(t?2:3)])}else s.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},gg=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},vg=function(e){if(!e)return null;var t=af(e.toString());return isNaN(t)?null:t},yg=function(e){return e?e.toISOString():null};const bg=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,c=n.hasTime,u=n.valueToDate,l=void 0===u?vg:u,d=n.dateToValue,f=void 0===d?yg:d,h=(0,p.useRef)(null),m=(0,p.useState)(!1),g=et()(m,2),v=g[0],y=g[1],b=l(e),w=i?l(i):void 0,x=a?l(a):void 0;(0,p.useEffect)((function(){h.current&&"function"==typeof h.current.setOpen&&h.current.setOpen(v)}),[v]);var O=function(){return y(!1)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(h.current&&"function"==typeof h.current.getPreSelection){var t,n=e?h.current.getPreSelection():null;return(null===(t=h.current.state)||void 0===t?void 0:t.preSelection)||n}return null},S=function(e){h.current&&"function"==typeof h.current.setPreSelection&&h.current.setPreSelection(e)},E=function(){t(null),S(null)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=k(!1);if(n){var r=b||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second;return mf(vf(yf(e,void 0===a?0:a),i),r)}(n,{hour:td(r),minute:rd(r),second:od(r)}):n;D(o,e)}},D=function(n,r){if(n){var i,a=!e&&Boolean(n),s=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!s&&o.some((function(e){return rf(s,e)})),l=ol(n),d=td(n)!==td(l)||rd(n)!==rd(l);(a&&!d||u)&&c&&(n=Jf(n)),t(f(n))}else E();var p;c||"click"!==(null==r?void 0:r.type)||(O(),gg(null===(p=h.current)||void 0===p?void 0:p.input))},_=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(pg(t.target))O();else if(fg(t.target)){var i;S(b||k(!0)),hg(null===(i=h.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(dg(t.target)){var a;O(),function(e){var t=null==e?void 0:e.form;if(t){var n=Ht()(t).indexOf(e);n>=1&&gg(t[n-1])}else s.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===(a=h.current)||void 0===a?void 0:a.input)}}else if(pg(t.target)&&v)P(t),O(),mg(null===(n=h.current)||void 0===n?void 0:n.input,o);else if(fg(t.target)){var u;O(),mg(null===(u=h.current)||void 0===u?void 0:u.input,o)}else if(dg(t.target)){var l,d;if(c)P(t,!0),S(null),r=null===(l=h.current)||void 0===l||null===(l=l.calendar)||void 0===l?void 0:l.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(cg));e&&e.focus({preventScroll:!0})}}),0);else P(t),O(),mg(null===(d=h.current)||void 0===d?void 0:d.input,o)}if("Enter"===t.key&&(O(),setTimeout((function(){var e;gg(null===(e=h.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(v){if(v&&null===k(!1)){var f;S(b||k(!0)),hg(null===(f=h.current)||void 0===f||null===(f=f.calendar)||void 0===f?void 0:f.componentNode)}}else y(!0),t.key="Handled".concat(t.key)},C=function(){var e;y((function(e){return!e})),S(null),gg(null===(e=h.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:O,onInputClick:C,onKeyDown:_,onChange:D,onCalendarOpen:function(){S(null)},onBlur:function(){h.current&&h.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:v,selected:b,showTimeInput:c,minDate:w,maxDate:x,ref:h,className:lg},timeInputProps:{onKeyDown:_,className:cg},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:C,className:v?"react-datepicker-ignore-onclickoutside":""}}};var wg="HH:mm:ss",xg="HH:mm",Og=function(e){return rf(e,xg)},kg=function(e){var t=function(e){return e?rf(e,wg)?nf(e,wg,new Date):rf(e,xg)?nf(e,xg,new Date):rf(e,"HH:")?nf(e,"HH:",new Date):rf(e,"H")?nf(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return Zl(e,xg)}(t):""};const Sg=function(e,t){var n=kg(e),r=(0,p.useState)(n),o=et()(r,2),i=o[0],a=o[1],s=(0,p.useRef)(i),c=st.usePrevious(n);(0,p.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=kg(n);p&&!Og(p)||t(p)}},onBlur:function(){if(i!==n){var e=kg(i);e&&Og(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Eg=["value","onChange","onKeyDown"];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 Dg(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){Ve()(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}tp();var _g=function(e){var t=e.onChange,n=e.label;return(0,Ke.jsx)(Et,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Cg=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=qe()(e,Eg),i=Sg(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,Ke.jsx)(sg,Dg(Dg(Dg({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Tg={strategy:"fixed"};const jg=(0,Me.SL)((0,f.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,h=void 0===f?[]:f,m=e.dateTimeFormats,g=void 0===m?[]:m,v=e.events,y=(0,p.useRef)(void 0),b=u.locale,w=function(e){return u.formatMessage({id:e})},x=(0,p.useRef)(null),O=Boolean(r),k=!t&&O,S=function(e){y.current=e,c(e)},E=bg(r,S,{dateFormats:h,dateTimeFormats:g,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),P=E.reactDatePickerProps,D=E.timeInputProps,_=E.clearButtonProps,C=E.calendarButtonProps;return(0,Ke.jsx)(ig,{immutable:t,id:n,tabIndex:"-1",children:(0,Ke.jsxs)(ag,{immutable:t,ref:x,hasTime:d,onBlur:function(e){if("function"==typeof(null==v?void 0:v.onBlur)){var t=void 0!==y.current?y.current:r;v.onBlur(t)}e.stopPropagation()},"data-ignore-arrow-navigation":!0,children:[(0,Ke.jsx)(Uu(),Dg(Dg({id:n?"".concat(n,"-datepicker"):null,popperClassName:Eu},P),{},{disabled:t,dateFormat:[].concat(Ht()(g),Ht()(h)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:b,timeInputLabel:w("client.component.datePicker.timeLabel"),customTimeInput:(0,Ke.jsx)(Cg,Dg({},D)),showTimeSelect:d,timeIntervals:15,popperProps:Tg,portalId:"react-datepicker",todayButton:(0,Ke.jsx)(_g,{onChange:S,label:w("client.component.datePicker.todayLabel")})})),k&&(0,Ke.jsx)(Mt,Dg({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":w("client.component.datePicker.clearDateLabel")},_)),!t&&(0,Ke.jsx)(Mt,Dg({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},C))]})})})));function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,f.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,f.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat($f(a.locale)),u="".concat(Kf(a.locale)),l=Qf(a.locale),d=[c,l,Zf(c),Zf(l)],p=Xf(a.locale),h=[u,p,Zf(u),Zf(p)];return(0,Ke.jsx)(jg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:h,hasTime:!0,immutable:o,placeholder:i},s))}));var Mg,Ig,Ng,Rg,Lg,Fg,Hg,Bg,Wg=Me.Ay.section.withConfig({displayName:"StyledSection"})(Mg||(Mg=je()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ug=Me.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(Ig||(Ig=je()(["\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"])),Ot,He.hs.space(-2)),Yg=Me.Ay.div.withConfig({displayName:"StyledDropzone"})(Ng||(Ng=je()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Ot,He.t7.color("backgroundItemHover")),Vg=Me.Ay.div.withConfig({displayName:"StyledUploadInput"})(Rg||(Rg=je()(["\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,He.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),He.t7.color("paper"),(function(e){return e.immutable?He.Db.shade2(e):He.Db.base(e)}),He.hs.space(-2),Ot,He.hs.space(-3.1),He.hs.space(-1.5)),zg=Me.Ay.div.withConfig({displayName:"StyledUploadProgress"})(Lg||(Lg=je()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),He.hs.space(-2)),qg=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledUploadProgressText"})(Fg||(Fg=je()(["\n && {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),Gg=Me.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Hg||(Hg=je()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),He.hs.space(-2)),Kg=Me.Ay.div.withConfig({displayName:"StyledView"})(Bg||(Bg=je()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),He.hs.space(-2));function $g(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Xg(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function Qg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Zg(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Jg=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 ev(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Jg.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 tv=[".DS_Store","Thumbs.db"];function nv(e){return"object"==typeof e&&null!==e}function rv(e){return sv(e.target.files).map((function(e){return ev(e)}))}function ov(e){return $g(this,void 0,void 0,(function(){return Xg(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 ev(e)}))]}}))}))}function iv(e,t){return $g(this,void 0,void 0,(function(){var n;return Xg(this,(function(r){switch(r.label){case 0:return e.items?(n=sv(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(cv))]):[3,2];case 1:return[2,av(uv(r.sent()))];case 2:return[2,av(sv(e.files).map((function(e){return ev(e)})))]}}))}))}function av(e){return e.filter((function(e){return-1===tv.indexOf(e.name)}))}function sv(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function cv(e){if("function"!=typeof e.webkitGetAsEntry)return lv(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?fv(t):lv(e)}function uv(e){return e.reduce((function(e,t){return Zg(Zg([],Qg(e),!1),Qg(Array.isArray(t)?uv(t):[t]),!1)}),[])}function lv(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ev(t);return Promise.resolve(n)}function dv(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return[2,e.isDirectory?fv(e):pv(e)]}))}))}function fv(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return $g(i,void 0,void 0,(function(){var i,a,s;return Xg(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(dv)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function pv(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ev(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var hv=c(9455);function mv(e){return function(e){if(Array.isArray(e))return xv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wv(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 gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(n),!0).forEach((function(t){yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||wv(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 wv(e,t){if(e){if("string"==typeof e)return xv(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)?xv(e,t):void 0}}function xv(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 Ov="file-invalid-type",kv="file-too-large",Sv="file-too-small",Ev="too-many-files",Pv=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:Ov,message:"File type must be ".concat(t)}},Dv=function(e){return{code:kv,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},_v=function(e){return{code:Sv,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Cv={code:Ev,message:"Too many files"};function Tv(e,t){var n="application/x-moz-file"===e.type||(0,hv.A)(e,t);return[n,n?null:Pv(t)]}function jv(e,t,n){if(Av(e.size))if(Av(t)&&Av(n)){if(e.size>n)return[!1,Dv(n)];if(e.size<t)return[!1,_v(t)]}else{if(Av(t)&&e.size<t)return[!1,_v(t)];if(Av(n)&&e.size>n)return[!1,Dv(n)]}return[!0,null]}function Av(e){return null!=e}function Mv(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Iv(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 Nv(e){e.preventDefault()}function Rv(){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!Mv(e)&&t&&t.apply(void 0,[e].concat(r)),Mv(e)}))}}function Lv(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Fv(e){return/^.*\.[\w]+$/.test(e)}var Hv=["children"],Bv=["open"],Wv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Uv=["refKey","onChange","onClick"];function Yv(e){return function(e){if(Array.isArray(e))return qv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zv(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 Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||zv(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 zv(e,t){if(e){if("string"==typeof e)return qv(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)?qv(e,t):void 0}}function qv(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 Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gv(Object(n),!0).forEach((function(t){$v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qv=(0,p.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Kv(Kv({},Zv),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,O=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,P=t.validator,D=(0,p.useMemo)((function(){return function(e){if(Av(e))return Object.entries(e).reduce((function(e,t){var n=bv(t,2),r=n[0],o=n[1];return[].concat(mv(e),[r],mv(o))}),[]).filter((function(e){return Lv(e)||Fv(e)})).join(",")}(n)}),[n]),_=(0,p.useMemo)((function(){return function(e){if(Av(e)){var t=Object.entries(e).filter((function(e){var t=bv(e,2),n=t[0],r=t[1],o=!0;return Lv(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(Fv)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=bv(t,2),r=n[0],o=n[1];return vv(vv({},e),{},yv({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),C=(0,p.useMemo)((function(){return"function"==typeof v?v:ry}),[v]),T=(0,p.useMemo)((function(){return"function"==typeof g?g:ry}),[g]),j=(0,p.useRef)(null),A=(0,p.useRef)(null),M=Vv((0,p.useReducer)(ny,ty),2),I=M[0],N=M[1],R=I.isFocused,L=I.isFileDialogActive,F=(0,p.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),H=function(){!F.current&&L&&setTimeout((function(){A.current&&(A.current.files.length||(N({type:"closeDialog"}),T()))}),300)};(0,p.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[A,L,T,F]);var B=(0,p.useRef)([]),W=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,p.useEffect)((function(){return w&&(document.addEventListener("dragover",Nv,!1),document.addEventListener("drop",W,!1)),function(){w&&(document.removeEventListener("dragover",Nv),document.removeEventListener("drop",W))}}),[j,w]),(0,p.useEffect)((function(){return!r&&b&&j.current&&j.current.focus(),function(){}}),[j,b,r]);var U=(0,p.useCallback)((function(e){E?E(e):console.error(e)}),[E]),Y=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Yv(B.current),[e.target]),Iv(e)&&Promise.resolve(o(e)).then((function(t){if(!Mv(e)||S){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=bv(Tv(e,n),1)[0],i=bv(jv(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:P});N({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,S,D,a,i,s,c,P]),V=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Iv(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,S]),z=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Iv(e)&&l&&l(e))}),[j,l,S]),q=(0,p.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Vv(Tv(e,D),2),o=t[0],s=t[1],c=Vv(jv(e,a,i),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:[Cv]})})),n.splice(0)),N({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[N,s,D,a,i,c,f,h,m,P]),G=(0,p.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],Iv(e)&&Promise.resolve(o(e)).then((function(t){Mv(e)&&!S||q(t,e)})).catch((function(e){return U(e)})),N({type:"reset"})}),[o,q,U,S]),K=(0,p.useCallback)((function(){if(F.current){N({type:"openDialog"}),C();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),N({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?U(e):(F.current=!1,A.current?(A.current.value=null,A.current.click()):U(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."))):(T(e),N({type:"closeDialog"}))}))}else A.current&&(N({type:"openDialog"}),C(),A.current.value=null,A.current.click())}),[N,C,T,y,q,U,_,s]),$=(0,p.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[j,K]),X=(0,p.useCallback)((function(){N({type:"focus"})}),[]),Q=(0,p.useCallback)((function(){N({type:"blur"})}),[]),Z=(0,p.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?K():setTimeout(K,0))}),[x,K]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,p.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Xv(e,Wv);return Kv(Kv($v({onKeyDown:ee(Rv(i,$)),onFocus:ee(Rv(a,X)),onBlur:ee(Rv(s,Q)),onClick:J(Rv(c,Z)),onDragEnter:te(Rv(u,Y)),onDragOver:te(Rv(l,V)),onDragLeave:te(Rv(d,z)),onDrop:te(Rv(f,G)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),p)}}),[j,$,X,Q,Z,Y,V,z,G,O,k,r]),oe=(0,p.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,p.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Xv(e,Uv);return Kv(Kv({},$v({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:J(Rv(r,G)),onClick:J(Rv(o,oe)),tabIndex:-1},n,A)),i)}}),[A,n,s,G,r]);return Kv(Kv({},I),{},{isFocused:R&&!r,getRootProps:re,getInputProps:ie,rootRef:j,inputRef:A,open:J(K)})}(Xv(e,Hv)),o=r.open,i=Xv(r,Bv);return(0,p.useImperativeHandle)(t,(function(){return{open:o}}),[o]),m().createElement(p.Fragment,null,n(Kv(Kv({},i),{},{open:o})))}));Qv.displayName="Dropzone";var Zv={disabled:!1,getFilesFromEvent:function(e){return $g(this,void 0,void 0,(function(){return Xg(this,(function(t){return nv(e)&&nv(e.dataTransfer)?[2,iv(e.dataTransfer,e.type)]:function(e){return nv(e)&&nv(e.target)}(e)?[2,rv(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,ov(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};Qv.defaultProps=Zv,Qv.propTypes={children:Ce().func,accept:Ce().objectOf(Ce().arrayOf(Ce().string)),multiple:Ce().bool,preventDropOnDocument:Ce().bool,noClick:Ce().bool,noKeyboard:Ce().bool,noDrag:Ce().bool,noDragEventsBubbling:Ce().bool,minSize:Ce().number,maxSize:Ce().number,maxFiles:Ce().number,disabled:Ce().bool,getFilesFromEvent:Ce().func,onFileDialogCancel:Ce().func,onFileDialogOpen:Ce().func,useFsAccessApi:Ce().bool,autoFocus:Ce().bool,onDragEnter:Ce().func,onDragLeave:Ce().func,onDragOver:Ce().func,onDrop:Ce().func,onDropAccepted:Ce().func,onDropRejected:Ce().func,onError:Ce().func,validator:Ce().func};const Jv=Qv;var ey,ty={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ny(e,t){switch(t.type){case"focus":return Kv(Kv({},e),{},{isFocused:!0});case"blur":return Kv(Kv({},e),{},{isFocused:!1});case"openDialog":return Kv(Kv({},ty),{},{isFileDialogActive:!0});case"closeDialog":return Kv(Kv({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Kv(Kv({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Kv(Kv({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Kv({},ty);default:return e}}function ry(){}function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oy(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ay=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,Ke.jsxs)(Vg,{immutable:n,children:[(0,Ke.jsx)(Jv,{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,Ke.jsx)(Wg,{children:(0,Ke.jsxs)(Yg,iy(iy({},t()),{},{children:[(0,Ke.jsx)("input",iy({},n())),ey||(ey=(0,Ke.jsx)(Et,{icon:"arrow-to-top"}))]}))})}}),o&&(0,Ke.jsx)(Et,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var sy,cy=Me.Ay.figure.withConfig({displayName:"StyledPreview"})(sy||(sy=je()(["\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"])),He.hs.space(-2.2),He.t7.color("border"),He.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const uy=cy;var ly;const dy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,Ke.jsx)("img",{alt:n,title:n,src:t}):(0,Ke.jsx)("div",{title:n,children:ly||(ly=(0,Ke.jsx)(Ge.A,{icon:"file-alt"}))});return(0,Ke.jsxs)(uy,{maxDimensionX:i,maxDimensionY:a,children:[(0,Ke.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,Ke.jsx)(cr.Ay.Figcaption,{children:o})]})};var fy=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 py=function(e){var t=e.file,n=e.text;return(0,Ke.jsxs)(zg,{children:[(0,Ke.jsx)(dy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,Ke.jsxs)(Gg,{children:[(0,Ke.jsx)(Ze,{position:He.xX.position.PREPEND}),(0,Ke.jsxs)(qg,{children:[n||"uploading"," (",fy(t.size),")"]})]})]})};var hy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const my={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 hy(e,"download",!0)},addParameterToURL:hy};function gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vy(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){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yy=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,Ke.jsxs)(Kg,{className:"StyledView",children:[(0,Ke.jsx)(dy,vy(vy({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,Ke.jsxs)(Ug,{children:[!o&&(0,Ke.jsx)(Et,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,Ke.jsx)(Et,{children:(0,Ke.jsx)(oo.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:my.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function by(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xy=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,p.useRef)(t),s=(0,p.useState)({isUploading:!1,previewFile:null}),c=et()(s,2),u=c[0],l=c[1];return(0,p.useEffect)((function(){nr()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,Ke.jsx)(yy,wy(wy({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,Ke.jsx)(py,wy({file:u.previewFile,text:r.uploading},e)):(0,Ke.jsx)(ay,wy(wy({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};var Oy,ky;Me.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Oy||(Oy=je()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),so,(function(e){return e.width})),Me.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(ky||(ky=je()(["\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"])),He.hs.space(1),(function(e){return e.immutable?He.t7.color("textDisabled"):He.t7.color("text")}),(function(e){return e.immutable&&"text"}));var Sy;const Ey=Me.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Sy||(Sy=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsxs)(ao,{immutable:e.immutable,children:[(0,Ke.jsx)(Ey,{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,Ke.jsx)(uo,{children:(0,Ke.jsx)(oo.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));c(67197);var Py=c(44383),Dy=c.n(Py);var _y;function Cy(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 Ty(){}function jy(e){return!!(e||"").match(/\d/)}function Ay(e){return null==e}function My(e){return Ay(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Iy(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ny(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 Ry(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Ly(e,t){return Array(t+1).join(e)}function Fy(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Ly("0",Math.abs(a))+o:a>=s?o+=Ly("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Hy(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Ny(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Ry(u[1]||"",t,n)}function By(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"}(_y||(_y={}));var Wy,Uy,Yy,Vy=(Wy=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Yy=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Uy&&e.length===Uy.length&&e.every((function(e,t){return e===Uy[t]}))?Yy:(Uy=e,Yy=Wy.apply(void 0,e))}),zy=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function qy(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gy(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ky(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function $y(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 Xy(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(jy(e[n])||jy(e[n-1]));return t}function Qy(e,t,n,r,o,i){void 0===i&&(i=Ty);var a=function(e){var t=(0,p.useRef)(e);t.current=e;var n=(0,p.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return My(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?Fy(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,p.useState)((function(){return a(Ay(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;Ay(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,p.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Zy(e){return e.replace(/[^0-9]/g,"")}function Jy(e){return e}function eb(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Jy);var s=e.removeFormatting;void 0===s&&(s=Zy);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=Ty);var h=e.onKeyDown;void 0===h&&(h=Ty);var g=e.onMouseUp;void 0===g&&(g=Ty);var v=e.onFocus;void 0===v&&(v=Ty);var y=e.onBlur;void 0===y&&(y=Ty);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=Xy);var x=e.isValidInputCharacter;void 0===x&&(x=jy);var O=e.isCharacterSame,k=Cy(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=Qy(b,c,Boolean(u),a,s,l),E=S[0],P=E.formattedValue,D=E.numAsString,_=S[1],C=(0,p.useRef)(),T=(0,p.useRef)({formattedValue:P,numAsString:D}),j=function(e,t){T.current={formattedValue:e.formattedValue,numAsString:e.value},_(e,t)},A=(0,p.useState)(!1),M=A[0],I=A[1],N=(0,p.useRef)(null),R=(0,p.useRef)({setCaretTimeout:null,focusTimeout:null});(0,p.useEffect)((function(){return I(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}}),[]);var L=a,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||(By(e,t),R.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&By(e,t)}),0))},B=function(e,t,n){return $y(e,t,w(e),n)},W=function(e,t,n){var r=w(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Ky);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var v=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>v?v:r-y<v-r?y:v}(t,P,e,n,r,x,O);return o=$y(t,o,r)};(0,p.useEffect)((function(){var e=T.current,t=e.formattedValue,n=e.numAsString;P===t&&D===n||j(F(P,D),{event:void 0,source:_y.props})}),[P,D]);var U=N.current?qy(N.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var e=N.current;if(P!==T.current.formattedValue&&e){var t=W(T.current.formattedValue,P,U);e.value=P,H(e,t,P)}}),[P]);var Y=function(e,t,n){var r=t.target,o=C.current?zy(C.current,r.selectionEnd):Vy(P,e),i=Object.assign(Object.assign({},o),{lastValue:P}),a=s(e,i),c=L(a);if(a=s(c,void 0),d&&!d(F(c,a))){var u=t.target,l=qy(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,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=qy(r);r.value=t,void 0!==(n=W(s,t,c))&&H(r,n,t)}t!==P&&j(F(t,a),{event:i,source:o})}({formattedValue:c,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},V=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;C.current={selectionStart:n,selectionEnd:r+t}},z=!M||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",q=Object.assign({inputMode:z},k,{type:t,value:P,onChange:function(e){var t=e.target.value;Y(t,e,_y.event)&&f(e),C.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var s=0;"Delete"===r&&o===i&&(s=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!c)return h(e),void V(n,s);var u=t;c?(u=B(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||x(a[t])?"Backspace"!==r||x(a[t])||(u=B(a,t,"left")):u=B(a,t,"right");u!==t&&H(n,u,a),h(e),V(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()})),g(e),V(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,R.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=B(i,r);a===r||0===r&&o===i.length||H(t,a,i),v(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),y(e)}});if("text"===n)return o?m().createElement(m().Fragment,null,o(P,k)||null):m().createElement("span",Object.assign({},k,{ref:i}),P);if(r){var G=r;return m().createElement(G,Object.assign({},q,{ref:i}))}return m().createElement("input",Object.assign({},q,{ref:i}))}function tb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=nb(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=Ny(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Ry(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function nb(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 rb(e,t,n){var r;void 0===t&&(t=Gy(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=nb(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(jy(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,d),b=y.hasNegation;e=(r=y).value,l=r.start,d=r.end;var w=v(t.lastValue,c.start,c.end),x=w.start,O=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(x>k.length-a.length||O<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var P=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?P=D:(d>D||d>e.length-a.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),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+Iy(e),t?"g":void 0)}(h,!0))||[]).join("");var _=e.indexOf(h);e=e.replace(new RegExp(Iy(h),"g"),(function(e,t){return t===_?".":""}));var C=Ny(e,o),T=C.beforeDecimal,j=C.afterDecimal,A=C.addNegation;return u.end-u.start<c.end-c.start&&""===T&&m&&!parseFloat(j)&&(e=A?"-":""),e}function ob(e){e=function(e){var t=nb(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Ty);var i=e.onBlur;void 0===i&&(i=Ty);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=Cy(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=nb(e),g=m.decimalSeparator,v=m.allowedDecimalSeparators,y=function(t){return tb(t,e)},b=function(t,n){return rb(t,n,e)},w=Ay(d)?l:d,x=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);Ay(d)?Ay(l)||(x=x||"number"==typeof l):x=x||"number"==typeof d;var O=function(e){return My(e)?e:("number"==typeof e&&(e=Fy(e)),x&&"number"==typeof s?Hy(e,s,Boolean(c)):e)},k=Qy(O(d),O(l),Boolean(x),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||jy(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Vy(n,t).to;return!!(o>=c.start&&o<c.end&&v&&v.includes(a)&&s===g)||a===s},onValueChange:D,format:y,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),("Backspace"===r||"Delete"===r)&&l<u.length)e.preventDefault();else if(i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&By(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(By(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==v?void 0:v.includes(r))&&d[i]===g&&By(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&By(t,i-1),"Delete"===r&&d[i]===f&&By(t,i+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=Hy(n,s,c)),n!==E){var o=tb(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:_y.event})}i(t)}})}function ib(e){var t=ob(e);return m().createElement(eb,Object.assign({},t))}var ab,sb=["immutable"];function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ub=(0,Me.Ay)((function(e){e.immutable;var t=qe()(e,sb);return(0,Ke.jsx)(ib,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(ab||(ab=je()(["\n &&&& {\n ","\n }\n"])),so);const lb=ub;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){Ve()(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=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},hb=function(e){return null!=e&&!isNaN(parseFloat(e))},mb=function(e,t,n){return!hb(n)||!(hb(t)&&n>t)&&!(hb(e)&&n<e)},gb=function(e,t){return function(n){var r=n.floatValue;return pb(r)<pb(e)||mb(e,t,r)}};(0,f.injectIntl)(st.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,s,u),g=fb(fb({isAllowed:gb(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),v=void 0===e.value||null===e.value?"":e.value;return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(lb,fb(fb({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&mb(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&&!mb(c,m,r)&&(t.target.value=null)}}))})}),800));st.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,Ke.jsx)(ao,{immutable:o,children:(0,Ke.jsx)(lb,{isAllowed:gb(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),mb(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var vb,yb,bb;Me.Ay.div.withConfig({displayName:"StyledWrapper"})(vb||(vb=je()(["\n display: flex;\n justify-content: stretch;\n"]))),Me.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(yb||(yb=je()(["\n flex-grow: 1;\n"]))),Me.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(bb||(bb=je()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),He.t7.color("border"),He.hs.space(-.8),He.hs.space(.5));var wb;Me.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(wb||(wb=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(Ey,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var xb,Ob,kb,Sb,Eb,Pb=c(60115),Db=(Me.Ay.div.withConfig({displayName:"StyledTermsEdit"})(xb||(xb=je()(["\n margin: "," 0;\n display: flex;\n"])),He.hs.space(-1.4)),Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(Ob||(Ob=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),(0,Me.AH)(kb||(kb=je()(["\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"])),He.t7.color("secondary"),He.t7.color("secondaryLight"),He.t7.color("secondary")));Me.Ay.a.withConfig({displayName:"StyledTermsLink"})(Sb||(Sb=je()(["\n ","\n"])),Db),(0,Me.Ay)($m).withConfig({displayName:"StyledHtmlFormatter"})(Eb||(Eb=je()(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Db);const _b=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Cb,Tb,jb,Ab=(0,Me.AH)(Cb||(Cb=je()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),so),Mb=Me.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(Tb||(Tb=je()(["\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"])),Ab),Ib=Me.Ay.textarea.withConfig({displayName:"StyledTextarea"})(jb||(jb=je()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n top: ",";\n }\n"])),Ab,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}),(function(e){return e.disabled?He.hs.space(-1.2):"0"}));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 Rb(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){Ve()(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}const Lb=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,p.useState)(t),c=et()(s,2),u=c[0],l=c[1],d=!_b(),f=_b(),h=(0,p.useCallback)(mo()(l,500,{trailing:!0}),[]);return(0,p.useEffect)((function(){d&&h(t)}),[t,d,h]),(0,Ke.jsx)(Mb,Rb(Rb({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,Ke.jsx)(Ib,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};st.Debouncer((function(e){return(0,Ke.jsx)(ao,{immutable:e.immutable,children:(0,Ke.jsx)(Lb,{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 Fb;Me.Ay.input.withConfig({displayName:"StyledTimeEdit"})(Fb||(Fb=je()(["\n &&&& {\n ","\n }\n"])),so);var Hb;const Bb=Me.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Hb||(Hb=je()(["\n &&&& {\n ","\n }\n"])),so);st.Debouncer((function(e){return(0,Ke.jsxs)(ao,{immutable:e.immutable,children:[(0,Ke.jsx)(Bb,{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,Ke.jsx)(uo,{children:(0,Ke.jsx)(oo.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));const Wb=(0,Me.SL)((function(e){return(0,Ke.jsx)(Ge.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Ub=function(e){var t=(0,f.useIntl)();return(0,Ke.jsx)(cr.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,Ke.jsx)(f.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var Yb;const Vb=(0,f.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),Yb||(Yb=(0,Ke.jsx)(cr.Ay.Span,{}));var o=Zl(r,"HH:mm");return(0,Ke.jsxs)(cr.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,Ke.jsx)(f.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var zb;function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kb=function(e){var t=e.options||{},n=(0,Ke.jsxs)(Ke.Fragment,{children:[t.title&&(0,Ke.jsx)(cr.Ay.H5,{children:t.title}),(0,Ke.jsx)($m,Gb({},e))]});return"text"===t.mode?n:(0,Ke.jsx)(Cm,{content:n,isPlainHtml:!0,children:zb||(zb=(0,Ke.jsx)(xm,{children:(0,Ke.jsx)(Ge.A,{icon:"question-circle"})}))})};const $b=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=fo()(r,t.resourceKey,null);return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Cm,{content:i?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(i)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,Ke.jsx)(oo.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,Ke.jsx)(oo.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:my.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Xb=function(e){return(0,Ke.jsx)(xy,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Qb=function(e){var t=e.value,n=parseInt(t),r=qf(n);return(0,Ke.jsx)(cr.Ay.Time,{dateTime:r,title:r,children:r})};const Zb=function(e){return(0,Ke.jsx)(oo.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 Jb=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nw=function(){return"; "};const rw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(a.DetailLink,tw(tw({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,Ke.jsx)(nw,{},"sep".concat(n)),t]})):null;return(0,Ke.jsx)(cr.Ay.Span,{breakWords:r,useTitle:o,children:c})};const ow=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const iw=function(e){var t;return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,Ke.jsx)(f.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cw=(0,p.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const uw=function(e){return(0,Ke.jsx)(p.Suspense,{fallback:"",children:(0,Ke.jsx)(cw,sw({},e))})};function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=fo()(a,t.key,null);t=sr.getOrFirst(t);var d=(0,Ke.jsx)(cr.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,Ke.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,Ke.jsx)(c.DetailLink,dw(dw({},u),{},{entityKey:t.key,children:(0,Ke.jsx)(Cm,{content:l?(0,Ke.jsx)("div",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(l)}}):null,children:(0,Ke.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const pw=function(e){return(0,Ke.jsx)(cr.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const hw=function(e){return e.breakWords?(0,Ke.jsx)(cr.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,Ke.jsx)("br",{},t)]:e})))}):(0,Ke.jsx)(cr.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var mw=function(e,t){return parseInt(e.split(":")[t])||0};const gw=(0,f.injectIntl)((function(e){var t=e.value,n=(e.intl,mw(t,0)),r=mw(t,1),o=mw(t,2),i=mw(t,3),a=new Date(2e3,1,1,n,r,o,i),s=Zl(a,"HH:mm:ss.SSS"),c=Zl(a,"HH:mm");return(0,Ke.jsx)(cr.Ay.Time,{dateTime:s,title:c,children:c})}));const vw=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,Ke.jsx)(oo.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var yw,bw={boolean:Wb,date:Ub,datetime:Vb,document:Xb,"document-compact":$b,duration:Qb,email:Zb,html:$m,integer:Jb,"multi-remote":rw,"multi-select":rw,number:ow,percent:iw,phone:uw,remote:fw,"single-select":fw,string:pw,text:hw,time:gw,url:vw,description:Kb};const ww=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(bw[t]){var u=bw[t];return(0,Ke.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),yw||(yw=(0,Ke.jsx)("div",{}))};var xw;const Ow=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?xw||(xw=(0,Ke.jsx)("span",{})):(0,Ke.jsx)(ww,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},kw=Ow;var Sw;Me.Ay.div.withConfig({displayName:"StyledLayoutBox"})(Sw||(Sw=je()(["\n height: fit-content;\n margin-bottom: ",";\n"])),He.hs.space(.25));var Ew;Me.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Ew||(Ew=je()(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),He.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(He.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));var Pw,Dw,_w,Cw,Tw=c(5016),jw=(0,Me.i7)(Pw||(Pw=je()(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Aw=(0,Me.AH)(Dw||(Dw=je()(["\n animation: "," 400ms ease-in-out both;\n"])),jw),Mw=Me.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(_w||(_w=je()(["\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"])),He.hs.space(-1),Aw,Tw.oY,He.hs.space(-1));const Iw=Me.Ay.div.withConfig({displayName:"StyledLoadMask"})(Cw||(Cw=je()(["\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 Nw;const Rw=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,p.useState)(!1),s=et()(a,2),c=s[0],u=s[1],l=(0,p.useState)(!0),d=et()(l,2),f=d[0],h=d[1];(0,p.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){h(!1)}}),[]);var m=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,Ke.jsx)(Iw,{className:i,children:m?r:(0,Ke.jsxs)(Mw,{children:[Nw||(Nw=(0,Ke.jsx)(Ze,{size:"30px"},"loading-spinner")),o&&(0,Ke.jsx)(cr.Ay.Span,{children:o},"loadingText")]})})};var Lw,Fw=Me.Ay.div.withConfig({displayName:"StyledPanel"})(Lw||(Lw=je()(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const Hw=Fw;var Bw=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const Ww=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=qe()(e,Bw),d=(0,p.useState)(a),f=et()(d,2),h=f[0],g=f[1],v="boolean"==typeof o,y=function(){c&&(v?"function"==typeof u&&u(!o):g(!h))};return(0,Ke.jsx)(Hw,{isFramed:r,"data-cy":l["data-cy"],children:m().Children.map(t,(function(e){return m().cloneElement(e,{isFramed:r,isOpen:v?o:h,isToggleable:c,toggleOpenState:y})}))})};var Uw,Yw=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(Uw||(Uw=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?He.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const Vw=Yw;var zw=["children","isFramed","isOpen"];const qw=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=qe()(e,zw);return(0,Ke.jsx)(Vw,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,Ke.jsx)("div",{children:t})})};const Gw=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,p.useState)(t),o=et()(r,2),i=o[0],a=o[1];return(0,Ke.jsx)(Ke.Fragment,{children:m().Children.map(n,(function(e,t){return m().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var Kw;const $w=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(Kw||(Kw=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),Hw,He.hs.space(-1));function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zw=function(e){return(0,Ke.jsx)($w,{children:(0,Ke.jsx)(Gw,Qw({},e))})};var Jw,ex,tx,nx,rx,ox,ix="1px",ax=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jw||(Jw=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!He.CN&&(0,Me.AH)(ex||(ex=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight"))),sx=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(tx||(tx=je()(["\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"])),He.t7.color("backgroundPanelHeaderFooter"),He.t7.radii("form"),ix,He.t7.radii("form"),ix,He.t7.radii("form"),ix,He.t7.radii("form"),ix,(function(e){return e.isOpen&&(0,Me.AH)(nx||(nx=je()(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "])))}),(function(e){return e.isFramed?(0,Me.AH)(rx||(rx=je()(["\n "," ","\n "])),He.hs.space(-1.7),He.hs.space(-.375)):0}),!He.CN&&(0,Me.AH)(ox||(ox=je()(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ax),(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(ix,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ix,";\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(ix,";\n }\n ")}(e)}));const cx=sx;var ux=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const lx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=qe()(e,ux);return(0,Ke.jsxs)(cx,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(ax,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},dx={Body:qw,Group:Zw,Header:lx,Wrapper:Ww};var fx,px=Me.Ay.div.withConfig({displayName:"StyledPanel"})(fx||(fx=je()(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),He.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),He.t7.color("borderLight"),He.t7.radii("form"));const hx=px;const mx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,p.useState)(i),s=et()(a,2),c=s[0],u=s[1];return(0,Ke.jsx)(hx,{isFramed:r,children:m().Children.map(t,(function(e){return m().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var gx,vx,yx=Me.Ay.div.withConfig({displayName:"StyledPanelBody"})(gx||(gx=je()(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,Me.AH)(vx||(vx=je()(["\n "," "," "," ","\n "])),He.hs.space(-1),He.hs.space(.2),He.hs.space(.2),He.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const bx=yx;const wx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,Ke.jsx)(bx,{isFramed:n,isOpen:r,children:(0,Ke.jsx)("div",{children:t})})};var xx;const Ox=Me.Ay.div.withConfig({displayName:"StyledPanelGroup"})(xx||(xx=je()(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),He.hs.space(0),hx,He.hs.space(-1));function kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kx(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ex=function(e){return(0,Ke.jsx)(Ox,{children:(0,Ke.jsx)(Gw,Sx({},e))})};var Px,Dx,_x,Cx="1px",Tx=Me.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Px||(Px=je()(["\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"])),He.t7.color("paper"),He.t7.radii("form"),Cx,He.t7.radii("form"),Cx,(function(e){return e.isFramed?He.hs.space(.2):0}),He.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(Cx,";\n }\n ")}(e)})),jx=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Dx||(Dx=je()(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),He.hs.font(1),He.t7.color("text"),!He.CN&&(0,Me.AH)(_x||(_x=je()(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),He.t7.color("secondaryLight")));const Ax=Tx;const Mx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,Ke.jsxs)(Ax,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,Ke.jsx)("div",{children:m().Children.map(t,(function(e){return m().cloneElement(e)}))}),o&&a&&(0,Ke.jsx)(jx,{children:(0,Ke.jsx)(Ge.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Ix={Body:wx,Group:Ex,Header:Mx,Wrapper:mx};var Nx={Body:Ve()(Ve()({},Pb.A.EmbedType.admin,dx.Body),Pb.A.EmbedType.widget,Ix.Body),Group:Ve()(Ve()({},Pb.A.EmbedType.admin,dx.Group),Pb.A.EmbedType.widget,Ix.Group),Header:Ve()(Ve()({},Pb.A.EmbedType.admin,dx.Header),Pb.A.EmbedType.widget,Ix.Header),Wrapper:Ve()(Ve()({},Pb.A.EmbedType.admin,dx.Wrapper),Pb.A.EmbedType.widget,Ix.Wrapper)};Pb.A.embedStrategyFactory({mapping:Nx.Body}),Pb.A.embedStrategyFactory({mapping:Nx.Group}),Pb.A.embedStrategyFactory({mapping:Nx.Header}),Pb.A.embedStrategyFactory({mapping:Nx.Wrapper});var Rx;Me.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Rx||(Rx=je()(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),He.hs.space(0),He.t7.color("paper"));var Lx=new AbortController,Fx=!1;window.addEventListener("beforeunload",(function(e){Fx?(e.preventDefault(),e.returnValue=""):Lx.abort()})),window.addEventListener("pagehide",(function(){Lx.signal.aborted||Lx.abort()}));var Hx=function(e){return"@@redux-saga/"+e},Bx=Hx("CANCEL_PROMISE"),Wx=Hx("CHANNEL_END"),Ux=Hx("IO"),Yx=Hx("MATCH"),Vx=Hx("MULTICAST"),zx=Hx("SAGA_ACTION"),qx=Hx("SELF_CANCELLATION"),Gx=Hx("TASK"),Kx=Hx("TASK_CANCEL"),$x=Hx("TERMINATE"),Xx=Hx("LOCATION");function Qx(){return Qx=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},Qx.apply(this,arguments)}var Zx=function(e){return null==e},Jx=function(e){return null!=e},eO=function(e){return"function"==typeof e},tO=function(e){return"string"==typeof e},nO=Array.isArray,rO=function(e){return e&&eO(e.then)},oO=function(e){return e&&eO(e.next)&&eO(e.throw)},iO=function e(t){return t&&(tO(t)||cO(t)||eO(t)||nO(t)&&t.every(e))},aO=function(e){return e&&eO(e.take)&&eO(e.close)},sO=function(e){return eO(e)&&e.hasOwnProperty("toString")},cO=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},uO=function(e){return aO(e)&&e[Vx]};var lO=function(e){return function(){return e}},dO=lO(!0),fO=function(){};var pO=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var hO=function(e,t){Qx(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function mO(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function gO(e){var t=!1;return function(){t||(t=!0,e())}}var vO=function(e){throw e},yO=function(e){return{value:e,done:!0}};function bO(e,t,n){void 0===t&&(t=vO),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:yO,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function wO(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var xO=function(e){return Array.apply(null,new Array(e))},OO=function(e){return function(t){return e(Object.defineProperty(t,zx,{value:!0}))}},kO=function(e){return e===$x},SO=function(e){return e===Kx},EO=function(e){return kO(e)||SO(e)};function PO(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=nO(e)?xO(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||EO(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=fO,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function DO(e){return{name:e.name||"anonymous",location:_O(e)}}function _O(e){return e[Xx]}function CO(){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 TO={isEmpty:dO,put:fO,take:fO};function jO(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var AO=function(){return TO},MO=function(e){return jO(e,4)},IO="TAKE",NO="PUT",RO="ALL",LO="RACE",FO="CALL",HO="CPS",BO="FORK",WO="JOIN",UO="CANCEL",YO="SELECT",VO="ACTION_CHANNEL",zO="CANCELLED",qO="FLUSH",GO="GET_CONTEXT",KO="SET_CONTEXT",$O=function(e,t){var n;return(n={})[Ux]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function XO(e,t){return void 0===e&&(e="*"),iO(e)?(Jx(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),$O(IO,{pattern:e})):uO(e)&&Jx(t)&&iO(t)?$O(IO,{channel:e,pattern:t}):aO(e)?(Jx(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),$O(IO,{channel:e})):void 0}function QO(e,t){return Zx(t)&&(t=e,e=void 0),$O(NO,{channel:e,action:t})}function ZO(e){var t=$O(RO,e);return t.combinator=!0,t}function JO(e,t){var n,r=null;return eO(e)?n=e:(nO(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&tO(n)&&eO(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function ek(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 $O(FO,JO(e,n))}function tk(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 $O(BO,JO(e,n))}function nk(e){void 0===e&&(e=pO);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $O(YO,{selector:e,args:n})}var rk=function(e){return{done:!0,value:e}},ok={};function ik(e){return aO(e)?"channel":sO(e)?String(e):eO(e)?e.name:String(e)}function ak(e,t,n){var r,o,i,a=t;function s(t,n){if(a===ok)return rk(t);if(n&&!o)throw a=ok,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===ok?rk(t):i}return bO(s,(function(e){return s(null,e)}),n)}function sk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:XO(e)},s=function(e){return i=e};return ak({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:tk.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+ik(e)+", "+t.name+")")}function ck(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:XO(e)},c=function(e){return{done:!1,value:tk.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=qx),$O(UO,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return ak({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+ik(e)+", "+t.name+")")}function uk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return tk.apply(void 0,[sk,e,t].concat(r))}function lk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return tk.apply(void 0,[ck,e,t].concat(r))}var dk=function(e,t,n){return r().mark((function o(){var i,a,c,u=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(i=u.length,a=new Array(i),c=0;c<i;c++)a[c]=u[c];case 1:return r.prev=2,r.next=5,ek.apply(void 0,[e,t].concat(a));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Lx.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,QO(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:s.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),o,null,[[2,7]])}))};const fk={autoRestartSaga:dk,createGenerator:function(e){return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(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(dk(t,null,n)))},abortController:Lx,deactivatePreventFromLeaving:function(){Fx=!1},activatePreventFromLeaving:function(){Fx=!0}};Ce().node,Ce().bool,Ce().string,Ce().bool,Ce().objectOf(Ce().arrayOf(Ce().oneOfType([Ce().node,Ce().string]))),Ce().bool,Ce().bool,Ce().string,Ce().string,Ce().oneOf(["inside","outside-responsive","outside"]),Ce().bool,Ce().string,Ce().bool,Ce().string,Ce().bool;var pk,hk,mk,gk=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,He.t7.color("text")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),vk=(0,Me.Ay)(cr.dV).withConfig({displayName:"StyledSignalList"})(pk||(pk=je()(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),yk=Me.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(hk||(hk=je()(["\n margin-left: -1px;\n margin-right: ",";\n"])),He.hs.space(-2)),bk=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledSignalListItem"})(mk||(mk=je()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return gk[t]}(e)}));const wk=function(e){return(0,Ke.jsx)(vk,{as:"ul",children:m().Children.map(e.children,(function(e){return m().cloneElement(e)}))})};var xk,Ok=["condition","label","children"],kk=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,!1),He.xX.condition.DANGER,"times"),He.xX.condition.SUCCESS,"check"),He.xX.condition.WARNING,"exclamation-triangle"),He.xX.condition.INFO,"info"),Sk=function(e){var t=kk[e];return t?(0,Ke.jsx)(Ge.A,{icon:t,position:He.xX.position.SOLE,hasFixedWidth:!1}):xk||(xk=(0,Ke.jsx)("i",{children:"•"}))};const Ek=function(e){var t=e.condition,n=void 0===t?He.xX.condition.BASE:t,r=e.label,o=e.children,i=qe()(e,Ok);return(0,Ke.jsxs)(bk,{condition:n,"data-cy":i["data-cy"],children:[(0,Ke.jsx)(yk,{children:Sk(n)}),r,m().Children.map(o,(function(e){return m().cloneElement(e)}))]})},Pk={List:wk,Item:Ek};const Dk=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Ht()(e.error[n]))})),(0,Ke.jsx)(Pk.List,{children:t.map((function(e,t){return(0,Ke.jsx)(Pk.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var _k,Ck,Tk,jk,Ak,Mk,Ik,Nk,Rk,Lk,Fk,Hk,Bk,Wk,Uk="1.1px",Yk=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},Vk=Me.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(_k||(_k=je()(["\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,He.Ed)({lineHeight:He.t7.lineHeight("dense")}),He.t7.color("paper"),(function(e){return Yk(e)}),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Ck||(Ck=je()(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),He.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Tk||(Tk=je()(["\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 "])),He.hs.space(-2),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":He.hs.space(-1.8)}))}),(function(e){return e.styles})),zk=Me.Ay.div.withConfig({displayName:"StyledInputArea"})(jk||(jk=je()(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Ak||(Ak=je()(["\n width: auto;\n "])))})),qk=Me.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(Mk||(Mk=je()(["\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"])),Uk,(function(e){return He.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)}),He.t7.radii("form"),He.hs.space(-2.5),He.hs.space(-1.5),(function(e){return!e.immutable&&(0,He.h7)(e)}),(function(e){return Yk(e)}),(0,He.Ed)(),km,(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Ik||(Ik=je()(["\n padding: "," "," "," ",";\n "])),He.hs.space(-1),He.hs.space(-1.7),He.hs.space(-2),He.hs.space(-1))}),(function(e){return e.styles})),Gk=Me.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(Nk||(Nk=je()(["\n &&& {\n ","\n }\n"])),(0,He.Ed)({fontSize:He.hs.font(-1)})),Kk=Me.Ay.div.withConfig({displayName:"StyledStatedValueError"})(Rk||(Rk=je()([""]))),$k=Me.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(Lk||(Lk=je()(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),He.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Fk||(Fk=je()(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),He.hs.space(-1.5))})),Xk=Me.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(Hk||(Hk=je()(["\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"])),He.hs.space(-1.5),qk,Gk,Kk,He.hs.space(-2),Gk,He.hs.space(-1),Uk,(function(e){return"outside"===e.labelPosition&&(0,Me.AH)(Bk||(Bk=je()(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,Me.AH)(Wk||(Wk=je()(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qk(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jk=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=e.labelPosition,y=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",x="".concat(sr.adjustedHTMLString(d)).concat(w),O=g||function(e,t,n,r){return t?He.xX.condition.DANGER:e?He.xX.condition.INFO:n&&!r?He.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(Qn.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,Ke.jsx)($r,{children:function(e){var f=e.getRef;return(0,Ke.jsx)($k,{labelPosition:v,children:(0,Ke.jsxs)(Xk,{labelPosition:v,ref:f,label:d,styles:null==y?void 0:y.innerWrapperStyles,children:[d&&(0,Ke.jsx)(Vk,Zk(Zk({},S),{},{hasValue:u,dirty:a,title:x,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.labelStyles,children:t||(t=(0,Ke.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,Ke.jsxs)(zk,{labelPosition:v,children:[(0,Ke.jsx)(qk,{hasValue:u,immutable:h,isDisplay:s,signal:O,labelPosition:v,styles:null==y?void 0:y.valueStyles,children:o}),b&&(0,Ke.jsx)(Kk,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,Ke.jsx)(Dk,{error:c}))}),i&&(r||(r=(0,Ke.jsx)(Gk,{children:i})))]})]})})}})};var eS,tS,nS=function(e){return(0,Me.AH)(eS||(eS=je()(["\n color: ",";\n font-weight: ",";\n"])),He.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?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}))},rS=function(){return(0,Me.AH)(tS||(tS=je()(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},oS=["labelPosition"];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}const aS=function(e){var t=e.labelPosition,n=qe()(e,oS);return(0,Ke.jsx)(Jk,function(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){Ve()(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}({styles:{labelStyles:nS,valueStyles:rS},labelPosition:t||"outside-responsive"},n))};var sS,cS,uS,lS,dS,fS,pS=function(e){return e.signal?"signal":"shade2"},hS=function(){return(0,Me.AH)(sS||(sS=je()(["\n align-items: flex-start;\n"])))},mS=function(e){return(0,Me.AH)(cS||(cS=je()(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,Me.AH)(uS||(uS=je()(["\n ","\n "])),He.hs.space(-1.8)):(0,Me.AH)(lS||(lS=je()(["\n ","\n "])),He.hs.space(.1))}),He.Db[pS(e)](e))},gS=function(){return(0,Me.AH)(dS||(dS=je()(["\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,Me.AH)(fS||(fS=je()(["\n ","\n "])),He.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},vS=["labelPosition"];function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 bS=function(e){var t=e.labelPosition,n=qe()(e,vS);return(0,Ke.jsx)(Jk,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:hS,labelStyles:mS,valueStyles:gS},labelPosition:t||"outside-responsive"},n))};var wS=Ve()(Ve()({},Pb.A.EmbedType.admin,aS),Pb.A.EmbedType.widget,bS);const xS=Pb.A.embedStrategyFactory({mapping:wS});var OS,kS,SS,ES,PS=Me.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(OS||(OS=je()(["\n margin-right: ",";\n color: ",";\n"])),He.hs.space(-.8),He.t7.color("text")),DS=Me.Ay.div.withConfig({displayName:"StyledSearchBox"})(kS||(kS=je()(["\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"]))),_S=Me.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(SS||(SS=je()(["\n &&&& {\n ","\n }\n"])),so),CS=m().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,p.useState)(n||"")),c=et()(s,2),u=c[0],l=c[1];return(0,Ke.jsx)(DS,{children:(0,Ke.jsx)(xS,{hasValue:Boolean(u),labelPosition:"inside",children:(0,Ke.jsxs)(ao,{children:[ES||(ES=(0,Ke.jsx)(PS,{children:(0,Ke.jsx)(Ge.A,{icon:"search"})})),(0,Ke.jsx)(_S,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t.trim())},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,Ke.jsx)(Mt,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const TS=st.Debouncer(CS,100,"onSearch");var jS,AS=[He.xX.condition.BASE,He.xX.condition.INFO,He.xX.condition.DANGER,He.xX.condition.SUCCESS,He.xX.condition.WARNING],MS=Ve()(Ve()(Ve()(Ve()(Ve()({},He.xX.condition.BASE,He.t7.color("signal.neutral")),He.xX.condition.DANGER,He.t7.color("signal.danger")),He.xX.condition.SUCCESS,He.t7.color("signal.success")),He.xX.condition.WARNING,He.t7.color("signal.warning")),He.xX.condition.INFO,He.t7.color("signal.info")),IS=Me.Ay.div.withConfig({displayName:"StyledSignalBox"})(jS||(jS=je()(["\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 MS[e.condition]||MS[He.xX.condition.INFO]}(e)}),He.hs.space(-1),He.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));IS.propTypes={condition:He.xX.oneOfPropTypeAndCompletelyMapped(AS,MS)};function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NS(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LS={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},FS={Left:"Left",Right:"Right"},HS={Top:"Top",Bottom:"Bottom"},BS=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?FS.Right:FS.Left,vertical:o?HS.Bottom:HS.Top}};const WS=function(e){var t=(0,p.useState)(LS),n=et()(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,p.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return RS(RS({},e),{},{currentlyDragging:t})}));var n=e.target,r=function(e){o(LS),e.stopPropagation(),n&&n.removeEventListener("dragend",r)};n&&n.addEventListener("dragend",r,!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!nr()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=BS(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return RS(RS({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&nr()(a,t)){var n=BS(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return RS(RS({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(LS),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,p.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},US=FS;var YS,VS,zS,qS,GS,KS,$S,XS=Me.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(YS||(YS=je()(["\n padding-right: 3px; /* make sure drop indicator does not overlap outer elements on the right most side */\n"]))),QS=Me.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(VS||(VS=je()(["\n margin-left: 3px; /* rest of checkboxes are moved 3px to the right to make room for drop indicator */\n margin-top: ",";\n"])),He.hs.space(.7)),ZS=Me.Ay.ul.withConfig({displayName:"StyledUl"})(zS||(zS=je()(["\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"])),He.hs.space(-.5),cr.Gw),JS=Me.Ay.input.withConfig({displayName:"StyledCheckbox"})(qS||(qS=je()(["\n vertical-align: top;\n margin-right: "," !important; /* Nice2 Reset */\n\n &:hover {\n cursor: pointer;\n }\n"])),He.hs.space(-1)),eE=Me.Ay.span.withConfig({displayName:"StyledId"})(GS||(GS=je()(["\n color: ",";\n font-style: italic;\n"])),He.t7.color("text")),tE=(0,Me.Ay)(cr.vx).withConfig({displayName:"StyledItem"})(KS||(KS=je()(["\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"])),He.hs.space(-2),He.hs.space(-2),He.hs.space(-2),(function(e){return e.dropPosition===US.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===US.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===US.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 ")})),nE=Me.Ay.span.withConfig({displayName:"StyledNumber"})($S||($S=je()(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),He.hs.space(-1),He.t7.color("text"),He.hs.font(0));function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rE(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},aE=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const sE=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=iE(r),s=(0,p.useState)(null),c=et()(s,2),u=c[0],l=c[1],d=(0,p.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===US.Left)return[].concat(Ht()(e),[o,t]);if(a===US.Right)return[].concat(Ht()(e),[t,o])}return[].concat(Ht()(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=WS(d),h=f.dndEvents,m=f.dndState,g=(0,p.useMemo)((function(){return aE(a,u)}),[a,u]),v=g.some((function(e){return e.hidden})),y=(0,p.useMemo)((function(){return g.map((function(e,n){var r=m.currentlyDragOver===e.id&&m.currentlyDragging!==e.id;return(0,Ke.jsxs)(tE,oE(oE({draggable:t,dropPosition:r&&m.horizontalDropPosition},t&&oE({},h(e.id))),{},{children:[(0,Ke.jsx)(JS,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return iE(n.map((function(n){return n.id===e.id?oE(oE({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,Ke.jsxs)(cr.Ay.Label,{for:e.id,children:[(0,Ke.jsxs)(nE,{children:[n+1,"."]}),e.label?(0,Ke.jsx)("span",{dangerouslySetInnerHTML:{__html:Qn.sanitizeHtml(e.label)}}):(0,Ke.jsx)(eE,{children:e.id})]})]}),e.id)}))}),[m,t,h,g,o]);return(0,Ke.jsxs)(XS,{children:[(0,Ke.jsx)(TS,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,Ke.jsxs)(QS,{children:[(0,Ke.jsx)(JS,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=aE(e,u);return iE(Ht()(e.map((function(e){return oE(oE({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!v}),(0,Ke.jsx)(cr.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,Ke.jsx)(ZS,{children:y})]})};(0,f.injectIntl)(sE);var cE,uE,lE,dE;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(cE||(cE=je()(["\n font-size: ",";\n color: ",";\n"])),He.hs.font(-2.7),He.t7.color("text")),Me.Ay.div.withConfig({displayName:"StyledRange"})(uE||(uE=je()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),Me.Ay.div.withConfig({displayName:"StyledInput"})(lE||(lE=je()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),(0,Me.Ay)(Mt).withConfig({displayName:"StyledBall"})(dE||(dE=je()(["\n position: relative;\n top: 0.5px; /* offset false vertical alignment */\n"])));var fE,pE,hE,mE,gE,vE=Me.Ay.div.withConfig({displayName:"StyledBurgerButton"})(fE||(fE=je()(["\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"])),He.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,Me.AH)(pE||(pE=je()(["\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,f.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,Ke.jsxs)(vE,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[hE||(hE=(0,Ke.jsx)("span",{})),mE||(mE=(0,Ke.jsx)("span",{})),gE||(gE=(0,Ke.jsx)("span",{}))]})}));var yE,bE,wE=Me.Ay.div.withConfig({displayName:"StyledPagination"})(yE||(yE=je()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),He.hs.space(-1),He.hs.space(-1.4)),xE=(0,Me.Ay)(Et).withConfig({displayName:"StyledPaginationButton"})(bE||(bE=je()(["\n padding: "," ",";\n"])),He.hs.space(-2),He.hs.space(-.5));const OE=(0,f.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},p=function(e){o(e),a.current.scrollTop=0};return(0,Ke.jsxs)(wE,{children:[(0,Ke.jsxs)(Fr,{children:[(0,Ke.jsx)(xE,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,Ke.jsx)(xE,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,Ke.jsx)(xE,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,Ke.jsx)(xE,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(c)}})]}),t>0&&(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),kE=OE;var SE;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(SE||(SE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(SE||(SE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(SE||(SE={}));var EE=SE;
|
|
79
79
|
/**
|
|
80
80
|
* @license qrcode.react
|
|
81
81
|
* Copyright (c) Paul O'Shannessy
|
|
82
82
|
* SPDX-License-Identifier: ISC
|
|
83
|
-
*/PE.QrCode.Ecc.LOW,PE.QrCode.Ecc.MEDIUM,PE.QrCode.Ecc.QUARTILE,PE.QrCode.Ecc.HIGH;!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var DE,_E,CE,TE,jE,AE,ME,IE,NE,RE,LE,FE,HE,BE,WE,UE,YE,VE,zE,qE,GE,KE,$E=Ce().oneOfType([Ce().string,Ce().number]),XE=Ce().shape({__key:$E}),QE=(Ce().arrayOf(XE),Ce().shape({id:Ce().string.isRequired,label:Ce().string,sorting:Ce().shape({sortable:Ce().bool,sortRank:Ce().number,order:Ce().oneOf(["asc","desc"])}),resizable:Ce().bool,width:Ce().number,HeaderRenderer:Ce().elementType,CellRenderer:Ce().elementType,rightAligned:Ce().bool})),ZE={SINGLE:"single",MULTI:"multi",NONE:"none"},JE=(Ce().oneOf(Object.keys(ZE).map((function(e){return ZE[e]}))),{INLINE:"inline",NONE:"none"}),eP=function(e){var t=e.theme;return fo()(t,"colors.border")},tP=He.hs.space(-1.5),nP=Me.Ay.div.withConfig({displayName:"StyledTableFooter"})(DE||(DE=je()(["\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"])),He.hs.space(-.5),He.hs.space(-1),eP,Ct,He.hs.space(-1)),rP=(0,Me.Ay)(Mt).withConfig({displayName:"StyledReloadButton"})(_E||(_E=je()(["\n height: 25px;\n width: 25px;\n"]))),oP=Me.Ay.td.withConfig({displayName:"StyledTableCell"})(CE||(CE=je()(["\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"])),tP,He.t7.color("paper"),(function(e){return e.alignment}),Ge.i,He.t7.color("text"),He.hs.space(-2)),iP=(Me.Ay.div.withConfig({displayName:"StyledDnD"})(TE||(TE=je()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),tP,(function(e){return e.isDragged?.2:1})),Me.Ay.span.withConfig({displayName:"StyledResizeHandle"})(jE||(jE=je()(["\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}))),aP=(Me.Ay.th.withConfig({displayName:"StyledTableHeaderCell"})(AE||(AE=je()(["\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 border-right: ",";\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n overflow: hidden;\n ",";\n ","\n ","\n ","\n }\n"])),He.t7.color("paper"),(function(e){return e.alignment}),eP,(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(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(iP," {\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(iP," {\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,Me.AH)(ME||(ME=je()(["\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;"}),oP,(function(e){return e.theme.colors.backgroundItemSelected}),oP,(function(e){return e.theme.colors.backgroundItemLastOpened}),oP,(function(e){return e.theme.colors.backgroundItemHover}))),sP=Me.Ay.span.withConfig({displayName:"StyledSortingSpan"})(IE||(IE=je()(["\n height: 100%;\n margin-right: 2px;\n"]))),cP=Me.Ay.span.withConfig({displayName:"StyledSortingRank"})(NE||(NE=je()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),He.t7.fontWeight("regular"));Me.Ay.td.withConfig({displayName:"StyledFullRowProgress"})(RE||(RE=je()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),tP),Me.Ay.td.withConfig({displayName:"StyledFullRow"})(LE||(LE=je()(["\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"])),tP,(0,He.Ed)()),Me.Ay.thead.withConfig({displayName:"StyledTableHead"})(FE||(FE=je()(["\n ","\n"])),aP),Me.Ay.tr.withConfig({displayName:"StyledTableRow"})(HE||(HE=je()(["\n ","\n\n && > td {\n ",";\n }\n"])),aP,(function(e){var t=e.even,n=e.theme;return t&&"background-color: ".concat(n.colors.backgroundTableEvenRow)})),Me.Ay.tbody.withConfig({displayName:"StyledTableBody"})(BE||(BE=je()(["\n ","\n"])),aP),Me.Ay.table.withConfig({displayName:"StyledTable"})(WE||(WE=je()(["\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===JE.INLINE&&(0,Me.AH)(UE||(UE=je()(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n "])))})),Me.Ay.div.withConfig({displayName:"StretchingTableContainer"})(YE||(YE=je()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),Me.Ay.div.withConfig({displayName:"StyledTableWrapper"})(VE||(VE=je()(["\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"])),He.t7.color("paper")),Me.Ay.div.withConfig({displayName:"StyledDraggable"})(zE||(zE=je()(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),Me.Ay.span.withConfig({displayName:"StyledHeaderContentWrapper"})(qE||(qE=je()(["\n display: flex;\n"]))),Me.Ay.div.withConfig({displayName:"StyledHeaderContent"})(GE||(GE=je()(["\n width: 100%;\n"]))),Ce().oneOf(Object.keys(JE).map((function(e){return JE[e]}))),(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledNumbering"})(KE||(KE=je()(["\n text-align: right;\n width: 100%;\n"])));(0,f.injectIntl)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,i=e.intl,a=e.tableEl,s=Boolean(o),c="function"==typeof r;return s||c?(0,Ke.jsx)(nP,{children:s&&(0,Ke.jsx)(SE,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:a,children:c&&(0,Ke.jsx)(rP,{type:"button",title:(t="client.component.table.refreshTitle",i.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));(0,f.injectIntl)((function(e){var t,n,r,o=e.column,i=e.intl,a=o.sorting&&o.sorting.sortRank&&o.sorting.order,s=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,Ke.jsx)(cP,{children:o.sorting.sortRank}),c="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return a?(0,Ke.jsxs)(sP,{title:(r="client.component.table.sortingTitle",i.formatMessage({id:r})),children:[(0,Ke.jsx)(Ge.A,{icon:c}),s]}):null}));var uP=m().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx,o=e.style;return(0,Ke.jsx)(oP,{"data-cy":"tbl-cell-".concat(t.id),alignment:t.alignment,style:o,children:t.CellRenderer?(0,Ke.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,Ke.jsx)(cr.Ay.Span,{children:n[t.id]})})}));uP.propTypes={rowData:XE.isRequired,column:QE.isRequired,rowIdx:Ce().number,style:Ce().object};let lP;lP="undefined"!=typeof window?window:"undefined"!=typeof self?self:c.g;let dP=null,fP=null;const pP=lP.clearTimeout,hP=lP.setTimeout,mP=lP.cancelAnimationFrame||lP.mozCancelAnimationFrame||lP.webkitCancelAnimationFrame,gP=lP.requestAnimationFrame||lP.mozRequestAnimationFrame||lP.webkitRequestAnimationFrame;null==mP||null==gP?(dP=pP,fP=function(e){return hP(e,20)}):(dP=function([e,t]){mP(e),pP(t)},fP=function(e){const t=gP((function(){pP(n),e()})),n=hP((function(){mP(t),e()}),20);return[t,n]});p.Component;Number.isNaN;"object"==typeof performance&&performance.now;Ke.Fragment;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(vP||(vP=je()(["\n margin-left: ",";\n margin-right: -",";\n"])),He.hs.space(-1.7),He.hs.space(-2.1)),(0,Me.Ay)(Et).withConfig({displayName:"StyledIconButtonWrapper"})(yP||(yP=je()(["\n padding-left: ",";\n padding-right: ",";\n"])),He.hs.space(-.5),He.hs.space(-.5));var vP,yP,bP,wP,xP,OP,kP,SP,EP=Me.Ay.div.withConfig({displayName:"StyledFloatingUiWrapper"})(bP||(bP=je()(["\n position: absolute;\n"]))),PP=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(wP||(wP=je()(["\n max-height: ","; // add 15px for small padding\n min-height: calc(2 * "," + ","); // min-height of 1 entry\n width: max-content;\n overflow-y: auto;\n overflow-x: hidden;\n background: ",";\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);\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)")}),He.hs.space(-1.4),He.hs.font(0),He.t7.color("paper"),He.t7.color("secondaryLight"),He.t7.radii("menu")),DP=Me.Ay.div.withConfig({displayName:"StyledMenuItem"})(xP||(xP=je()(["\n min-width: 200px;\n max-width: 300px;\n"]))),_P=Me.Ay.div.withConfig({displayName:"StyledItemLabel"})(OP||(OP=je()(["\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,He.Ed)(),(function(e){return e.hasOnClick?(0,He.x5)(e):""}),He.CN?(0,Me.AH)(kP||(kP=je()(["\n ","\n ","\n ","\n "])),He.hs.space(-1.4),He.hs.space(-.5),He.hs.space(-1.4)):(0,Me.AH)(SP||(SP=je()(["\n ","\n ","\n ","\n "])),He.hs.space(-2),He.hs.space(-.5),He.hs.space(-2)),He.hs.space(-.5),(function(e){return 10*(e.level||0)+"px"}),(function(e){return e.isGroup?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}),He.t7.color("textDisabled"));function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CP(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jP=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,i=e.onClose,a=e.children;return o?(0,Ke.jsx)(EP,{children:a&&o&&(0,Ke.jsx)(lm,{children:(0,Ke.jsx)(PP,TP(TP({ref:r.setFloating,style:t},n()),{},{className:Eu,children:m().Children.map(a,(function(e){return e&&m().cloneElement(e,{onClose:i})}))}))})}):null};var AP=["children","onClick","onClose","disabled","closeOnClick","title","level"];function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MP(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NP=function(e){var t=e.children,n=e.onClick,r=e.onClose,o=e.disabled,i=e.closeOnClick,a=void 0===i||i,s=e.title,c=e.level,u=qe()(e,AP),l=m().Children.toArray(t).filter(Boolean),d=l.length>1,f=Boolean(n),p=l.map((function(e,t){var n,i=c?c++:1;return"MenuItem"===(null===(n=e.type)||void 0===n?void 0:n.displayName)?m().cloneElement(e,IP(IP({},e.props),{},{onClose:r,closeOnClick:a,level:i,key:"menu-item-".concat(t,"-").concat(i)})):(0,Ke.jsx)(_P,{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(i))}));return(0,Ke.jsx)(DP,{onClick:function(e){f&&!o&&(n(),a&&r&&r()),e.stopPropagation()},level:c,children:p})};NP.displayName="MenuItem";var RP,LP,FP,HP,BP,WP,UP,YP,VP,zP,qP=Me.Ay.div.withConfig({displayName:"TopPositioning"})(RP||(RP=je()(["\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"]))),GP=(Me.Ay.div.withConfig({displayName:"LeftPositioning"})(LP||(LP=je()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\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"})),Me.Ay.div.withConfig({displayName:"StyledSidepanel"})(FP||(FP=je()(["\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;"}),qP,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),Me.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(HP||(HP=je()(["\n grid-area: content;\n display: flex;\n"]))),Me.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(BP||(BP=je()(["\n display: flex; // enables StyledSidepanelCollapsed to take full height\n flex-direction: column;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ",";\n"])),He.w4.color("paper")),Me.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(WP||(WP=je()([""]))),Me.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(UP||(UP=je()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),Me.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(YP||(YP=je()(["\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"}),He.w4.color("paper"),He.hs.space(-.5),He.hs.space(-2.5)));(0,Me.Ay)(Mt).withConfig({displayName:"StyledToggleCollapseButton"})(VP||(VP=je()(["\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"])),He.hs.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),GP,He.w4.color("secondaryLight")),Me.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(zP||(zP=je()(["\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"])),He.w4.color("paper"),He.w4.color("backgroundBody"),He.hs.space(-.53),jP);var KP,$P,XP,QP,ZP,JP,eD,tD=(0,Me.Ay)(Et).withConfig({displayName:"StyledAddRemoveButton"})(KP||(KP=je()(["\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"])),He.hs.space(-2.5),(function(e){return e.active?He.t7.color("paper"):He.t7.color("hoverInteractiveIcon")})),nD=Me.Ay.div.withConfig({displayName:"StyledMenuWrapper"})($P||($P=je()(["\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"])),He.hs.space(-1),(function(e){return e.active?He.t7.color("paper"):He.t7.color("hoverInteractiveIcon")})),rD=(Me.Ay.div.withConfig({displayName:"StyleButtonWrapper"})(XP||(XP=je()(["\n display: flex;\n "," button,\n "," * {\n color: transparent;\n }\n"])),nD,tD),(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledButtonLabel"})(QP||(QP=je()(["\n flex-grow: 1;\n"]))));Me.Ay.div.withConfig({displayName:"StyledSidepanelHorizontalButton"})(ZP||(ZP=je()(["\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 /* allow hover styles only on non-touch devices */\n ","\n /* apply font color only on touch devices to always show them */\n ","\n"])),He.t7.radii("button"),(function(e){return e.active&&He.t7.color("secondary")}),_P,(function(e){return e.active&&He.t7.color("paper")}),!He.CN&&(0,Me.AH)(JP||(JP=je()(["\n &:hover {\n ",",\n "," button,\n "," * {\n color: ",";\n }\n background-color: ",";\n cursor: pointer;\n }\n "])),rD,nD,tD,He.t7.color("paper"),(function(e){return!e.active&&He.t7.color("secondaryLight")})),He.CN&&(0,Me.AH)(eD||(eD=je()(["\n ",",\n "," button,\n "," * {\n color: ",";\n }\n "])),rD,nD,tD,He.t7.color("secondary")));var oD;function iD(e,t,n){return t=Ee()(t),ke()(e,aD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function aD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aD=function(){return!!e})()}var sD=function(e){function t(e){var n;return be()(this,t),(n=iD(this,t,[e])).state={hasError:!1,error:null},n}return De()(t,e),xe()(t,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?oD||(oD=(0,Ke.jsx)(Ir,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(p.Component);const cD=sD;me(null,{logError:d})((0,f.injectIntl)(cD));var uD=c(66245),lD=c.n(uD);function dD(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fD=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),pD=()=>Math.random().toString(36).substring(7).split("").join("."),hD={INIT:`@@redux/INIT${pD()}`,REPLACE:`@@redux/REPLACE${pD()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pD()}`};function mD(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function gD(e,t,n){if("function"!=typeof e)throw new Error(dD(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(dD(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(dD(1));return n(gD)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,c=!1;function u(){a===i&&(a=new Map,i.forEach(((e,t)=>{a.set(t,e)})))}function l(){if(c)throw new Error(dD(3));return o}function d(e){if("function"!=typeof e)throw new Error(dD(4));if(c)throw new Error(dD(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(c)throw new Error(dD(6));t=!1,u(),a.delete(n),i=null}}}function f(e){if(!mD(e))throw new Error(dD(7));if(void 0===e.type)throw new Error(dD(8));if("string"!=typeof e.type)throw new Error(dD(17));if(c)throw new Error(dD(9));try{c=!0,o=r(o,e)}finally{c=!1}return(i=a).forEach((e=>{e()})),e}f({type:hD.INIT});return{dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(dD(10));r=e,f({type:hD.REPLACE})},[fD]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(dD(11));function n(){const e=t;e.next&&e.next(l())}n();return{unsubscribe:e(n)}},[fD](){return this}}}}}function vD(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:hD.INIT}))throw new Error(dD(12));if(void 0===n(void 0,{type:hD.PROBE_UNKNOWN_ACTION()}))throw new Error(dD(13))}))}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],c=n[s],u=e[s],l=c(u,t);if(void 0===l){t&&t.type;throw new Error(dD(14))}a[s]=l,i=i||l!==u}return i=i||r.length!==Object.keys(e).length,i?a:e}}function yD(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bD(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xD=function(e,t){var n=wD(wD({},e.allReducers),t),r=vD(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n},OD=c(63560),kD=c.n(OD);function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ED=function(e,t){return function(n,r){var o=r.payload[e],i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SD(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return kD()(i,t?t+"."+e:e,o),i}},PD=function(e,t){var n=lD()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=wD(wD({},e.allReducers),Dy()(t,n));xD(e,r)}},DD=xD;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 CD(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){Ve()(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}Ve()({},l,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return CD(CD({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(Ht()(e.messages)).slice(0,100)})}));var TD="EMIT_ACTION",jD="DISPATCH_EMITTED_ACTION",AD=r().mark(MD);function MD(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,JO([lk(TD,ID,e),lk(jD,ND)]);case 2:case"end":return t.stop()}}),AD)}function ID(e,t){var n=t.payload;return r().mark((function t(){var o,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.action,t.next=3,rk(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,tk(i,o);case 7:case"end":return t.stop()}}),t)}))()}function ND(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,ZO(n);case 3:case"end":return e.stop()}}),e)}))()}const RD={emitAction:function(e){return{type:TD,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:jD,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(MD,t)}};function LD(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}var FD=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=LD(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),LD(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));const HD=FD;function BD(e,t,n){return t=Ee()(t),ke()(e,WD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function WD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WD=function(){return!!e})()}const UD=function(e){function t(){return be()(this,t),BD(this,t,arguments)}return De()(t,e),xe()(t)}(HD);function YD(e,t,n){return t=Ee()(t),ke()(e,VD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function VD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VD=function(){return!!e})()}const zD=function(e){function t(){return be()(this,t),YD(this,t,arguments)}return De()(t,e),xe()(t)}(HD);var qD=c(23805),GD=c.n(qD),KD=c(23181),$D=c.n(KD),XD=c(40860),QD=c.n(XD),ZD=c(73357),JD=c.n(ZD),e_=c(1882),t_=c.n(e_);const n_=function(){return window.app&&t_()(window.app.getRunEnv)?window.app.getRunEnv():"PRODUCTION"};var r_="meta",o_="tocco.cache",i_=function(e,t){return"".concat(o_,".").concat(e,".").concat(t)},a_={},s_=function(e,t){a_[e]=t},c_=function(e,t,n){return l_(e,t,n,s_)},u_=function(e,t,n){return l_(e,t,n,(r=localStorage,function(e,t){return r.setItem(e,JSON.stringify(t))}));var r},l_=function(e,t,n,r){return"PRODUCTION"!==n_()?null:r(i_(e,t),n)},d_=function(e,t){return a_[i_(e,t)]},f_=function(e,t){return p_(e,t,localStorage)},p_=function(e,t,n){var r=n.getItem(i_(e,t));if(r)return JSON.parse(r)},h_=function(e,t,n){return n.removeItem(i_(e,t))},m_=function(){s.A.log("cache - object cache invalidated"),Object.keys(a_).forEach((function(e){return JD()(a_,e)}))},g_=function(){s.A.log("cache - long term cache invalidated"),v_(localStorage)},v_=function(e){Object.keys(e).filter((function(e){return e.startsWith(o_)&&!function(e){return e.startsWith("".concat(o_,".").concat(r_))}(e)})).forEach((function(t){return e.removeItem(t)}))};const y_={addObjectCache:c_,addLongTerm:u_,getObjectCache:d_,getLongTerm:f_,removeObjectCache:function(e,t){return JD()(a_,i_(e,t))},removeLongTerm:function(e,t){return h_(e,t,localStorage)},clearObjectCache:m_,clearLongTerm:g_,getLongTermMetaInfo:function(){return{revision:f_(r_,"revision")}},setLongTermMetaInfo:function(e){var t=e.revision;u_(r_,"revision",t||"")},getObjectCacheMetaInfo:function(){return{locale:d_(r_,"locale"),businessUnitId:d_(r_,"businessUnitId"),username:d_(r_,"username")}},setObjectCacheMetaInfo:function(e){var t=e.locale,n=e.businessUnitId,r=e.username;c_(r_,"locale",t||""),c_(r_,"businessUnitId",n||""),c_(r_,"username",r||"")}};var b_=c(60991),w_=c(99208);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 O_(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){Ve()(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 k_=["de","fr","en","it"],S_=function(){var e=t()(r().mark((function e(t,n,o){var i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=o){e.next=5;break}return e.next=4,P_();case 4:i=e.sent;case 5:return e.next=7,E_(n,i);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)}}(),E_=function(){var e=t()(r().mark((function e(t,n){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,__(n,t);case 2:return o=e.sent,e.abrupt("return",(0,b_.D6)({locale:n.replace("_","-"),messages:o}));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),P_=function(){var e=t()(r().mark((function e(){var t,n,o,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y_.getObjectCacheMetaInfo(),!(n=t.locale)){e.next=3;break}return e.abrupt("return",n);case 3:return e.next=5,D_();case 5:return o=e.sent,i=o.locale,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D_=function(){var e=t()(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w_.A.executeRequest("username").then(w_.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=k_.includes(o)?o:"en"),e.abrupt("return",O_(O_({},t),{},{locale:n}));case 6:case"end":return e.stop()}var r,o}),e)})));return function(){return e.apply(this,arguments)}}(),__=function(){var e=t()(r().mark((function e(t,n){var o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},i=[],n.forEach((function(e){var n=y_.getLongTerm("textResource","".concat(t,".").concat(e));n?o=O_(O_({},o),n):i.push(e)})),!(i.length>0)){e.next=8;break}return e.next=6,C_(t,i);case 6:a=e.sent,i.forEach((function(e){var n=Object.keys(a).filter((function(t){return t.match(new RegExp("^client\\."+e+".*","g"))})).reduce((function(e,t){return O_(O_({},e),{},Ve()({},t,a[t]))}),{});y_.addLongTerm("textResource","".concat(t,".").concat(e),n),o=O_(O_({},o),n)}));case 8:return e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),C_=function(e,t){var n="".concat(t.join(",")),r=n?"&module=".concat(n):"",o="textresource?locale=".concat(e).concat(r);return w_.A.executeRequest(o).then(w_.A.extractBody)};const T_={initIntl:S_,getChangeLocaleAction:E_,localeSelector:function(e){return e.intl.locale},loadUserWithLocale:D_,getUserLocale:P_};var j_=c(93419);function A_(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const M_=A_;var I_=[],N_=0;function R_(e){try{H_(),e()}finally{B_()}}function L_(e){I_.push(e),N_||(H_(),W_())}function F_(e){try{return H_(),e()}finally{W_()}}function H_(){N_++}function B_(){N_--}function W_(){var e;for(B_();!N_&&void 0!==(e=I_.shift());)R_(e)}var U_=function(e){return function(t){return e.some((function(e){return G_(e)(t)}))}},Y_=function(e){return function(t){return e(t)}},V_=function(e){return function(t){return t.type===String(e)}},z_=function(e){return function(t){return t.type===e}},q_=function(){return fO};function G_(e){var t="*"===e?q_:nO(e)?V_:rO(e)?U_:cO(e)?V_:tO(e)?Y_:uO(e)?z_:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var K_={type:Ux},$_=function(e){return e&&e.type===Ux};function X_(e){void 0===e&&(e=IO());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(K_):e.isEmpty()?(n.push(r),r.cancel=function(){gO(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(K_):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(K_)}}}}}function Q_(){var e=function(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(K_)}))};return(e={})[zx]=!0,e.put=function(e){if(!t)if($_(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var c=o[a];c[Vx](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=q_),t?e(K_):(e[Vx]=n,o(),r.push(e),e.cancel=vO((function(){o(),gO(r,e)})))},e.close=i,e}(),t=e.put;return e.put=function(e){e[qx]?t(e):L_((function(){t(e)}))},e}var Z_=0,J_=1,eC=2,tC=3;function nC(e,t){var n=e[Wx];tO(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var rC,oC=0,iC=function(){return++oC};function aC(e){e.isRunning()&&e.cancel()}var sC=((rC={})[NO]=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!$_(e)||a?n(e):n(Xx)};try{o.take(s,eO(i)?G_(i):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},rC[RO]=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;L_((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}i&&oO(t)?nC(t,n):n(t)}))},rC[LO]=function(e,t,n,r){var o=r.digestEffect,i=oC,a=Object.keys(t);if(0!==a.length){var s=DO(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n(rO(t)?[]:{})},rC[FO]=function(e,t,n,r){var o=r.digestEffect,i=oC,a=Object.keys(t),s=rO(t)?OO(a.length):{},c={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||PO(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,s[e]=t,n(s)))};t.cancel=pO,c[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return c[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,c[e],e)}))},rC[HO]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var c=i.apply(o,a);if(oO(c))return void nC(c,n);if(iO(c))return void yC(e,c,s.context,oC,_O(i),!1,n);n(c)}catch(e){n(e,!0)}},rC[BO]=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){Jx(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},rC[WO]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,c=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(iO(o))return o;var i=!1;return wO((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!oO(o)})}))}catch(e){return wO((function(){throw e}))}}({context:o,fn:i,args:a}),l=function(e,t){return e.isSagaIterator?{name:e.meta.name}:_O(t)}(u,i);F_((function(){var t=yC(e,u,c.context,oC,l,s,void 0);s?n(t):t.isRunning()?(c.queue.addTask(t),n(t)):t.isAborted()?c.queue.abort(t.error()):n(t)}))},rC[UO]=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&gO(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(rO(t)){if(0===t.length)return void n([]);var a=DO(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},rC[YO]=function(e,t,n,r){var o=r.task;t===Gx?aC(o):rO(t)?t.forEach(aC):aC(t),n()},rC[VO]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},rC[zO]=function(e,t,n){var r=t.pattern,o=X_(t.buffer),i=G_(r),a=function t(n){$_(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},rC[qO]=function(e,t,n,r){n(r.task.isCancelled())},rC[GO]=function(e,t,n){t.flush(n)},rC[KO]=function(e,t,n,r){n(r.task.context[t])},rC[$O]=function(e,t,n,r){var o=r.task;mO(o.context,t),n()},rC);function cC(e,t){return e+"?"+t}function uC(e){var t=e.name,n=e.location;return n?t+" "+cC(n.fileName,n.lineNumber):t}function lC(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var dC=null,fC=[],pC=function(e){e.crashedEffect=dC,fC.push(e)},hC=function(){dC=null,fC.length=0},mC=function(e){dC=e},gC=function(){var e=fC[0],t=fC.slice(1),n=e.crashedEffect?function(e){var t=CO(e);return t?t.code+" "+cC(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+uC(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+uC(e.meta)})),[lC(fC)]).join("\n")};function vC(e,t,n,r,o,i,a){var s;void 0===a&&(a=pO);var c,u,l=Z_,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),c(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,c){i||(gO(o,t),t.cont=pO,c?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function c(){i||(i=!0,o.forEach((function(e){e.cont=pO,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:c,abort:a,getTasks:function(){return o}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(l=eC,pC({meta:o,cancelledTasks:f}),g.isRoot){var r=gC();hC(),e.onError(t,{sagaStack:r})}u=t,d&&d.reject(t)}else t===$x?l=J_:l!==J_&&(l=tC),c=t,d&&d.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[Kx]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){l===Z_&&(l=J_,h.cancelAll(),m($x,!1))},s.cont=a,s.end=m,s.setContext=function(e){mO(p,e)},s.toPromise=function(){return d||(d=M_(),l===eC?d.reject(u):l!==Z_&&d.resolve(c)),d.promise},s.isRunning=function(){return l===Z_},s.isCancelled=function(){return l===J_||l===Z_&&t.status===J_},s.isAborted=function(){return l===eC},s.result=function(){return c},s.error=function(){return u},s);return g}function yC(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){if(oO(t))nC(t,r);else if(iO(t))yC(e,t,u.context,n,o,!1,r);else if(t&&t[Yx]){(0,sC[t.type])(e,t.payload,r,l)}else r(t)}));d.cancel=pO;var c={meta:o,cancel:function(){c.status===Z_&&(c.status=J_,d($x))},status:Z_},u=vC(e,c,n,r,o,i,a),l={task:u,digestEffect:f};return a&&(a.cancel=u.cancel),d(),u;function d(e,n){try{var o;n?(o=t.throw(e),hC()):EO(e)?(c.status=J_,d.cancel(),o=tO(t.return)?t.return($x):{done:!0,value:$x}):o=SO(e)?tO(t.return)?t.return():{done:!0}:t.next(e),o.done?(c.status!==J_&&(c.status=tC),c.cont(o.value)):f(o.value,r,d)}catch(e){if(c.status===J_)throw e;c.status=eC,c.cont(e,!0)}}function f(t,n,r,o){void 0===o&&(o="");var i,a=iC();function c(n,o){i||(i=!0,r.cancel=pO,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&mC(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),c.cancel=pO,r.cancel=function(){i||(i=!0,c.cancel(),c.cancel=pO,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,c)}}function bC(e,t){var n=e.channel,r=void 0===n?Q_():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,c=e.sagaMonitor,u=e.effectMiddlewares,l=e.onError,d=void 0===l?xO:l;for(var f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var m=t.apply(void 0,p);var g,v=iC();if(c&&(c.rootSagaStarted=c.rootSagaStarted||pO,c.effectTriggered=c.effectTriggered||pO,c.effectResolved=c.effectResolved||pO,c.effectRejected=c.effectRejected||pO,c.effectCancelled=c.effectCancelled||pO,c.actionDispatched=c.actionDispatched||pO,c.rootSagaStarted({effectId:v,saga:t,args:p})),u){var y=TO.apply(void 0,u);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=hO;var b={channel:r,dispatch:kO(o),getState:i,sagaMonitor:c,onError:d,finalizeRunEffect:g};return F_((function(){var e=yC(b,m,s,v,_O(t),!0,void 0);return c&&c.effectResolved(v,e),e}))}const wC=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?Q_():i,s=n.sagaMonitor,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=bC.bind(null,Zx({},c,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){mO(o,e)},u},xC=wC;function OC(e,t,n){return t=Ee()(t),ke()(e,kC()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function kC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kC=function(){return!!e})()}var SC=function(e){function t(e){var n;return be()(this,t),(n=OC(this,t)).message=e,n}return De()(t,e),xe()(t)}(HD);const EC=SC;function PC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PC(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _C=412,CC=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 EC(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},TC=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,i={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?DC(DC({},i),{},{body:null}):t(e).then((function(e){return DC(DC({},i),{},{body:e})})).catch((function(e){return DC(DC({},i),{},{body:null})}))},jC=function(e){return TC(e,(function(e){return e.blob()}))},AC=function(e){return DC(DC({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:pk.abortController.signal})};function MC(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(_C),fetch(e,AC(t)).then((function(e){return TC(e)})).then((function(e){return CC(e,n,r)}))}function IC(e,t,n,r){return fetch(e,AC(t)).then((function(e){return jC(e)})).then((function(e){return CC(e,n,r)}))}var NC=r().mark(BC),RC=r().mark(UC),LC=r().mark(YC),FC={ConfirmQuestionHandler:UC,YesNoQuestionHandler:YC};function HC(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.addBlockingInfoAction,a=o.removeBlockingInfoAction;return r().mark((function o(){var s,c;return r().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:s={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,tk(BC,e.body.clientQuestion);case 6:if(null!=(c=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new UD("Client question cancelled by user");case 13:if(s[e.body.clientQuestion.id]=c.answer,t.options.body=JSON.stringify({clientAnswers:s,payload:n.body}),!i){r.next=18;break}return r.next=18,ZO(i);case 18:return r.next=20,tk(MC,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,ZO(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),o)}))()}function BC(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=FC[e.handler])){n.next=5;break}return n.next=4,tk(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()}}),NC)}var WC=function(e){return{answer:e}};function UC(e){var t,n,o,i,a,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(X_);case 2:return t=r.sent,n=function(){return t.put(WC(!0))},o=function(){return t.put(WC(null))},i=e.header,a=e.message,s=e.okText,c=e.cancelText,r.next=8,ZO(bR.confirm(i,a,s,c,n,o));case 8:return r.next=10,QO(t);case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}}),RC)}function YC(e){var t,n,o,i,a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(X_);case 2:return t=r.sent,n=function(){return t.put(WC(!0))},o=function(){return t.put(WC(!1))},i=function(){return t.put(WC(null))},a=e.header,s=e.message,c=e.yesText,u=e.noText,r.next=9,ZO(bR.yesNoQuestion(a,s,c,u,n,o,i));case 9:return r.next=11,QO(t);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),LC)}function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VC(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qC=r().mark($C),GC=r().mark(QC),KC=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 $C(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof EC)){t.next=5;break}return t.next=3,ZO(bR.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()}}),qC)}function XC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().mark((function n(){var o,i,a,s,c;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(QC,t);case 2:return n.next=4,tk(ZC,e,t);case 4:return o=n.sent,n.next=7,tk(JC,t);case 7:if(i=n.sent,a=i.addBlockingInfoAction,s=i.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,ZO(a);case 13:return n.next=15,tk(MC,o.url,o.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(c=n.sent,!s){n.next=19;break}return n.next=19,ZO(s);case 19:return n.next=21,tk(HC,c,o,t,i);case 21:return c=n.sent,n.abrupt("return",c);case 25:if(n.prev=25,n.t0=n.catch(9),!s){n.next=30;break}return n.next=30,ZO(s);case 30:return n.next=32,$C(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function QC(e){var t,n;return r().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,rk(T_.localeSelector);case 3:n=r.sent,e.queryParams=zC(zC({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),GC)}function ZC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,i=void 0===o?"GET":o,a=t.backendUrl,s=void 0===a?Pb.A.getBackendUrl():a,c=w_.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=zC({method:i,headers:c,credentials:"include"},u?{body:u}:{}),d=KC(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?w_.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function JC(e){var t=e.blockingInfoTitle;return r().mark((function e(){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,tk(j_.v4);case 3:return n=e.sent,o=t,i=bR.blockingInfo(n,o),a=bR.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:i,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var eT=r().mark(rT),tT=r().mark(oT),nT=r().mark(iT);function rT(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(XC,"client/settings");case 2:return e=n.sent,t=Br()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),eT)}function oT(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(XC,"client/settings");case 2:return e=n.sent,t=Br()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),tT)}function iT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=y_.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,tk(rT);case 7:return t=r.sent,n=t.maxLimit,y_.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),nT)}var aT=r().mark(bT),sT=r().mark(wT),cT=r().mark(xT),uT=r().mark(_T),lT=r().mark(RT),dT=r().mark(LT),fT=r().mark(FT),pT=r().mark(HT),hT=r().mark(BT),mT=r().mark(WT);function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gT(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yT="nice2.web.core.useSelectorsByDefault";function bT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=y_.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,tk(XC,"client/property",{method:"POST",body:{propertyNames:[yT]}});case 7:return t=r.sent,n=t.body.loadedProperties[yT],y_.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),aT)}function wT(e,t){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,tk(XC,"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()}}),sT,null,[[1,7]])}function xT(e,t,n,o,i){var a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",queryParams:{_paths:o.join(",")},body:{entityName:i,type:"ID",ids:n}},r.next=3,tk(XC,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return s=r.sent,r.abrupt("return",s.body.displayExpressions.reduce((function(e,t){return vT(vT({},e),{},Ve()({},t.key,t.displayExpressions))}),{}));case 5:case"end":return r.stop()}}),cT)}var OT=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function kT(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r().mark((function o(){var i,a;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object.entries(e).map((function(e){var n=et()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===y_.getObjectCache("display",OT(r,e,t))})),displays:o.map((function(e){return{key:e,display:y_.getObjectCache("display",OT(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,ET(i,t,n);case 3:return a=r.sent,r.abrupt("return",i.reduce((function(e,t){var n=t.model,r=t.displays;return vT(vT({},e),{},Ve()({},n,vT(vT({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return vT(vT({},e),{},Ve()({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),o)}))()}function ST(e,t){Object.entries(e).forEach((function(e){var n=et()(e,2),r=n[0];n[1].forEach((function(e){return y_.removeObjectCache("display",OT(r,e,t))}))}))}function ET(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r().mark((function o(){var i,a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((i=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:i},queryParams:{_ignoreFallback:n}},s=t?"/".concat(t):"",r.next=6,tk(XC,"entities/2.0/displays".concat(s),a);case 6:return c=r.sent,u=c.body.data.reduce((function(e,t){var n=t.model,r=t.values;return vT(vT({},e),{},Ve()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return vT(vT({},e),{},Ve()({},n,r))}),{})))}),{}),Object.entries(u).forEach((function(e){var n=et()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=et()(e,2),o=n[0],i=n[1];y_.addObjectCache("display",OT(r,o,t),i)}))})),r.abrupt("return",u);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),o)}))()}function PT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r().mark((function o(){var i,a,s,c,u,l,d;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n.method,a=void 0===i?"POST":i,s=n.endpoint,r.next=3,tk(AT,t);case 3:return c=r.sent,u=(s||"entities/2.0/".concat(e))+"/count",l=vT({method:a},"GET"===a?{queryParams:IT(c)}:{body:c}),r.next=8,tk(XC,u,l);case 8:return d=r.sent,r.abrupt("return",d.body.count);case 10:case"end":return r.stop()}}),o)}))()}function DT(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:jT;return r().mark((function a(){var s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=vT({method:e,queryParams:vT({_omitLinks:!0,_allKeys:t},"GET"===e&&IT(n))},"POST"===e&&{body:n}),r.next=3,tk(XC,o,s);case 3:return c=r.sent,r.next=6,tk(i,c.body);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),a)}))()}function _T(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(XC,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),uT)}var CT=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]=vT({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=vT({type:"relation"},e)})),t},TT=function(e){return e.form},jT=function(e){return e.data},AT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,i=e.search,a=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return vT(vT(vT(vT(vT(vT(vT(vT(vT(vT(vT(vT(vT({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),i?{search:i}:{}),a?{sort:MT(a)}:{}),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}:{})},MT=function(e){return e.map((function(e){return"".concat(e.field," ").concat(e.order)})).join(", ")},IT=function(e){return QD()(e,(function(e,t,n){var r={};return"conditions"===n?r=NT(t):r["_"+n]=Array.isArray(t)?t.join(","):t,vT(vT({},e),r)}),{})},NT=function(e){return QD()(e,(function(e,t,n){return vT(vT({},e),{},Ve()({},n,GD()(t)&&t.value?t.value:t))}),{})};function RT(){var e,t,n,o,i;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(XC,"principals");case 2:return e=r.sent,t=e.body,n=t.username,o=t.businessUnit,i={username:n,currentBusinessUnit:o},r.abrupt("return",i);case 6:case"end":return r.stop()}}),lT)}function LT(e){var t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,tk(XC,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),dT)}function FT(e,t){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET"},r.next=3,tk(XC,"client/markings/".concat(e,"/").concat(t),n);case 3:return o=r.sent,r.abrupt("return",o.body.marked);case 5:case"end":return r.stop()}}),fT)}function HT(e,t,n){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={method:"PATCH",body:{marked:n}},r.next=3,tk(XC,"client/markings/".concat(e,"/").concat(t),o);case 3:case"end":return r.stop()}}),pT)}function BT(e,t){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},r.next=3,tk(XC,"client/markings",n);case 3:return o=r.sent,r.abrupt("return",o.body.markings);case 5:case"end":return r.stop()}}),hT)}function WT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=y_.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,tk(XC,"locales");case 5:return t=r.sent,n=t.body.locales,y_.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),mT)}var UT=r().mark(zT),YT=r().mark(qT),VT=r().mark(GT);function zT(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(XC,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),UT)}function qT(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tk(XC,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),YT)}function GT(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(XC,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),VT)}const KT={requestSaga:XC,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().mark((function n(){var o;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(QC,t);case 2:return n.next=4,tk(ZC,e,t);case 4:return o=n.sent,n.prev=5,n.next=8,tk(IC,o.url,o.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,$C(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=ZC(e,t);return MC(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:UD,ForbiddenException:zD,InformationError:EC,fetchEntity:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return r().mark((function a(){var s,c,u,l,d,f,p,h;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(bT);case 2:return s=r.sent,c=o.method,u=void 0===c?"POST":c,l=o.useSelectors,d=void 0===l?s:l,r.next=6,tk(AT,n);case 6:return f=r.sent,p=vT({method:u,queryParams:vT({_omitLinks:!0,_useSelectors:d},"GET"===u&&vT(vT({},IT(f)),{},{_permissions:!0}))},"POST"===u&&{body:vT(vT({},f),{},{permissions:!0})}),r.next=10,tk(XC,"entities/2.0/".concat(e,"/").concat(t),p);case 10:return h=r.sent,r.next=13,tk(i,h.body);case 13:return r.abrupt("return",r.sent);case 14:case"end":return r.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jT;return r().mark((function i(){var a,s,c,u,l,d,f,p,h,m;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(iT);case 2:return a=r.sent,s=n.method,c=void 0===s?"POST":s,u=n.endpoint,l=n.allKeys,r.next=6,tk(PT,e,t,n);case 6:return d=r.sent,f=l?1:Math.ceil(d/a),p=u||"entities/2.0/".concat(e).concat("POST"===c?"/search":""),h=$D()(f).map((function(e){return e+1})).map((function(e){return vT(vT({},t),{},{page:e,limit:a})})).map(AT).map((function(e){return tk(DT,c,l,e,p,o)})),r.next=12,JO(h);case 12:return m=r.sent,r.abrupt("return",m.reduce((function(e,t){return[].concat(Ht()(e),Ht()(t))}),[]));case 14:case"end":return r.stop()}}),i)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jT;return r().mark((function i(){var a,s,c,u,l,d;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.method,s=void 0===a?"POST":a,c=n.endpoint,u=n.allKeys,r.next=3,tk(AT,t);case 3:return l=r.sent,d=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),r.next=7,tk(DT,s,u,l,d,o);case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),i)}))()},fetchDisplay:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r().mark((function i(){return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=fo(),r.next=3,kT(Ve()({},e,[t]),n,o);case 3:return r.t1=r.sent,r.t2="".concat(e,".").concat(t),r.abrupt("return",(0,r.t0)(r.t1,r.t2,null));case 6:case"end":return r.stop()}}),i)}))()},invalidateDisplay:function(e,t,n){ST(Ve()({},e,[t]),n)},fetchDisplays:kT,invalidateDisplays:ST,fetchDisplayExpressions:xT,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return r().mark((function i(){var a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===o&&(o="create"===t),a="".concat(e,"/").concat(t),void 0===y_.getObjectCache("forms",a)||o){r.next=4;break}return r.abrupt("return",y_.getObjectCache("forms",a));case 4:return s=vT(vT({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),r.next=7,tk(XC,"forms/".concat(a),s);case 7:if(c=r.sent,!n||404!==c.status){r.next=11;break}return y_.addObjectCache("forms",a,null),r.abrupt("return",null);case 11:return r.next=13,tk(TT,c.body);case 13:return u=r.sent,y_.addObjectCache("forms",a,u),r.abrupt("return",u);case 16:case"end":return r.stop()}}),i)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:CT;return r().mark((function n(){var o,i,a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(o=y_.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",o);case 3:return n.next=5,tk(XC,"entities/".concat(e,"/model"));case 5:return i=n.sent,n.next=8,tk(t,i.body);case 8:return a=n.sent,y_.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:CT,fetchEntityCount:PT,fetchSearchFilters:_T,buildRequestQuery:AT,requestQueryToUrlParams:IT,fetchPrincipal:RT,fetchUserPreferences:zT,deleteUserPreferences:qT,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(XC,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:GT,fetchServerSettings:rT,fetchServerRevision:oT,fetchServerMaxLimit:iT,createSortingString:MT,fetchMarkings:LT,fetchMarked:FT,setMarked:HT,setSelectionMarked:BT,entityExists:wT,fetchLocales:WT};var $T={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},XT={outputjob:"OUTPUTJOB",entities:"ENTITIES"},QT=Ve()(Ve()(Ve()(Ve()(Ve()({},$T.neutral,null),$T.error,"times-circle"),$T.warning,"exclamation-circle"),$T.success,"check-circle"),$T.info,"info-circle"),ZT=(Ce().shape({key:Ce().string.isRequired,message:Ce().string,read:Ce().bool,timestamp:Ce().string,originId:Ce().string,type:Ce().string,taskProgress:Ce().shape({taskExecutionKey:Ce().string.isRequired,status:Ce().string,message:Ce().string,percentage:Ce().number,done:Ce().number,total:Ce().number,supportsCancellation:Ce().bool,isRunning:Ce().bool})}),r().mark(sj)),JT=r().mark(cj);function ej(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nj={failed:"error",info:"info",warning:"warning",success:"success"},rj="running_infinite",oj="running_absolute",ij="pending",aj=function(e){return e.status&&(e.status===ij||e.status===oj||e.status===rj)};function sj(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=tj(tj({},e),{},{type:nj[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?tj(tj({},e.taskProgress),{},{isRunning:aj(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,tk(cj,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),ZT)}function cj(e){var t,n,o,i,a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||e.type!==XT.outputjob){r.next=14;break}return t=null,r.prev=2,n=e.content[0].key,r.next=6,tk(KT.fetchEntity,"Output_job",n,{paths:["document"]});case 6:o=r.sent,i=o.paths.document.value,a=i.fileName,s=i.binaryLink,t={name:a,link:s,description:e.content[0].display},r.next=13;break;case 11:r.prev=11,r.t0=r.catch(2);case 13:return r.abrupt("return",tj(tj({},e),{},{file:t}));case 14:return r.abrupt("return",e);case 15:case"end":return r.stop()}}),JT,null,[[2,11]])}var uj="notification/MODAL",lj="notification/REMOVE_MODAL",dj=function(e,t,n,r){return{type:uj,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(){}}}},fj=function(e){return{type:lj,payload:{id:e}}};const pj={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};Ce().shape({id:Ce().string.isRequired,title:Ce().string,body:Ce().oneOfType([Ce().string,Ce().element]),type:Ce().oneOf(Object.values(pj))}),Ce().shape({id:Ce().oneOfType([Ce().string,Ce().number]).isRequired,title:Ce().oneOfType([Ce().string,Ce().node]),message:Ce().oneOfType([Ce().string,Ce().node]),component:Ce().func,cancelable:Ce().bool,cancelCallback:Ce().func,type:Ce().oneOf(Object.values(pj))});var hj,mj,gj=Me.Ay.div.withConfig({displayName:"StyledPageOverlay"})(hj||(hj=je()(["\n background-color: rgba(50, 50, 50, 0.7);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),vj=Me.Ay.div.withConfig({displayName:"StyledHolder"})(mj||(mj=je()(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n // higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n // lower than ext-js legacy actions\n z-index: 9000;\n"])));const yj=function(e){var t=e.children;return Am()(t)?function(e){return e&&/<\/?[a-zA-Z0-9]*\/?>/.test(e)}(t)?(0,Ke.jsx)(kw,{type:"html",value:t}):function(e){return e&&e.startsWith("client.")}(t)?(0,Ke.jsx)(f.FormattedMessage,{id:t}):(0,Ke.jsx)("span",{children:t}):t},bj=yj;var wj,xj;const Oj={blockingDiplayStyles:(0,Me.AH)(wj||(wj=je()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),He.t7.color("signal.info"),He.t7.color("paper")),titleWrapperStyles:(0,Me.AH)(xj||(xj=je()(["\n color: ",";\n"])),He.t7.color("paper"))};var kj,Sj;const Ej={blockingDiplayStyles:(0,Me.AH)(kj||(kj=je()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),He.t7.color("paper"),He.t7.color("border"),He.t7.radii("toaster"),He.t7.color("text")),titleWrapperStyles:(0,Me.AH)(Sj||(Sj=je()(["\n color: ",";\n"])),He.t7.color("signal.info"))};var Pj,Dj,_j=Ve()(Ve()({},Pb.A.EmbedType.admin,Oj),Pb.A.EmbedType.widget,Ej),Cj=Me.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(Pj||(Pj=je()(["\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}),He.hs.space(-.5),(function(e){return e.styles})),Tj=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Dj||(Dj=je()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),He.hs.font(1.5),He.t7.fontWeight("regular"),(function(e){return e.styles}));const jj=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,i=Pb.A.embedStrategy({mapping:_j});return(0,Ke.jsxs)(Cj,{styles:i.blockingDiplayStyles,isLatest:o,children:[n&&(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)(Tj,{styles:i.titleWrapperStyles,children:(0,Ke.jsx)(bj,{children:n})})}),r&&(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(bj,{children:r})})]})};const Aj=function(e){var t=e.blocker,n=e.isLatest;return(0,Ke.jsx)(jj,{blocker:t,isLatest:n})};var Mj,Ij,Nj,Rj,Lj,Fj,Hj,Bj,Wj,Uj,Yj,Vj=He.hs.space(.5),zj=Me.Ay.div.withConfig({displayName:"StyledModalContent"})(Mj||(Mj=je()(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);\n max-height: 80%;\n min-width: 350px;\n max-width: 700px;\n margin: auto;\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),He.t7.color("paper"),He.t7.radii("modal"),Vj,Iw),qj=Me.Ay.button.withConfig({displayName:"StyledCloseButton"})(Ij||(Ij=je()(["\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"])),He.t7.color("text")),Gj=Me.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Nj||(Nj=je()(["\n width: 100%;\n height: 100%;\n position: absolute;\n // only latest modal should be above mask\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),Kj=Me.Ay.div.withConfig({displayName:"StyledModalHeader"})(Rj||(Rj=je()(["\n grid-row-start: header;\n display: flex;\n"]))),$j=Me.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(Lj||(Lj=je()(["\n padding-bottom: ",";\n"])),He.hs.space(.5)),Xj=Me.Ay.div.withConfig({displayName:"StyledModalBody"})(Fj||(Fj=je()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),Qj=Me.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(Hj||(Hj=je()(["\n padding-bottom: ",";\n"])),He.hs.space(0)),Zj=(0,Me.Ay)(Et).withConfig({displayName:"StyledModalButton"})(Bj||(Bj=je()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),He.hs.space(0)),Jj=Me.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(Wj||(Wj=je()(["\n display: flex;\n justify-content: flex-end;\n"]))),eA=(0,Me.DU)(Uj||(Uj=je()(["\n "," {\n && {\n z-index: 9999999; // higher than StyledModalHolder\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),nu);const tA=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,i=n.title,a=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,p.useRef)(null),f=(0,p.useCallback)((function(){c(a)}),[c,a]),h=(0,p.useCallback)((function(){u(a)}),[u,a]);(0,p.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&h()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[h,r]),(0,p.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var m=(0,p.useMemo)((function(){return t||(t=(0,Ke.jsx)(s,{close:f}))}),[s,f]);return(0,Ke.jsxs)(Ke.Fragment,{children:[Yj||(Yj=(0,Ke.jsx)(eA,{})),(0,Ke.jsx)(Gj,{isLatest:l,children:(0,Ke.jsxs)(zj,{ref:d,"data-cy":"modal-content",children:[(0,Ke.jsxs)(Kj,{children:[i&&(0,Ke.jsx)($j,{children:(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)(bj,{children:i})})}),r&&(0,Ke.jsx)(qj,{onClick:h,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,Ke.jsxs)(Xj,{children:[o&&(0,Ke.jsx)(Qj,{children:(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(bj,{children:o})})}),m]})]})})]})};const nA=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,Ke.jsx)(tA,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};const rA=me((function(){return{}}),{closeModal:fj})(nA);var oA;const iA=function(e){var t=e.overlays;return t.length>0&&aa().createPortal((0,Ke.jsxs)(vj,{className:Eu,children:[t.map((function(e,n){return function(e,t,n){return e.type===pj.MODAL?(0,Ke.jsx)(rA,{idx:t,modal:e,isLatest:n},t):e.type===pj.BLOCKER?(0,Ke.jsx)(Aj,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),oA||(oA=(0,Ke.jsx)(gj,{}))]}),document.body)};const aA=me((function(e){return{overlays:e.notification.overlay.overlays}}),{closeModal:fj})(iA);var sA="notification/SET_UNREAD_NOTIFICATION_KEYS",cA="notification/UPDATE_UNREAD_NOTIFICATION",uA="notification/LOAD_NOTIFICATIONS",lA="notification/SET_NOTIFICATION",dA="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",fA="notification/UPDATE_NOTIFICATION",pA="notification/IS_LOADING_MORE_NOTIFICATIONS",hA="notification/MARK_AS_READ",mA="notification/CANCEL_TASK",gA=function(e){return{type:sA,payload:{unreadNotificationKeys:e}}},vA=function(e,t){return{type:cA,payload:{notificationKey:e,read:t}}},yA=function(e){return{type:lA,payload:{notifications:e}}},bA=function(e){return{type:dA,payload:{moreNotificationsAvailable:e}}},wA=function(e){return{type:fA,payload:{notification:e}}},xA=function(){return{type:pA,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},OA=function(e){return{type:hA,payload:{notificationKey:e}}},kA=function(e){return{type:mA,payload:{taskExecutionKey:e}}},SA="notification/TOASTER",EA="notification/REMOVE_TOASTER",PA="notification/REMOVE_TOASTER_FROM_STORE",DA=function(e){return{type:SA,payload:{toaster:e}}},_A=function(e,t){return{type:EA,payload:{key:e,manually:t}}},CA=function(e){return{type:PA,payload:{key:e}}};function TA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TA(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var AA,MA,IA,NA,RA,LA,FA,HA,BA=function(e,t){return Number.isInteger(e)?e:function(e){return e===$T.error||e===$T.warning}(t)?-1:5e3},WA=(Ce().shape({type:Ce().oneOf(Object.values($T)).isRequired,title:Ce().oneOfType([Ce().string,Ce().func]),message:Ce().oneOfType([Ce().string,Ce().func]),body:Ce().oneOfType([Ce().string,Ce().func]),onClose:Ce().func,icons:Ce().string,duration:Ce().number,time:Ce().instanceOf(Date)}),c(72637)),UA=c.n(WA),YA=c(16193),VA=c.n(YA),zA=(Ce().func.isRequired,Ce().func.isRequired,Ce().object,(0,Me.i7)(AA||(AA=je()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),qA=Me.Ay.div.withConfig({displayName:"StyledToaster"})(MA||(MA=je()(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgba(0, 0, 0, 0.7);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),He.hs.space(-.5),He.hs.space(0),zA),GA=(0,Me.Ay)(Mt).withConfig({displayName:"StyledCloseButton"})(IA||(IA=je()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &:hover {\n background-color: transparent;\n cursor: pointer;\n }\n ","\n"])),He.hs.font(3),He.t7.color("backgroundBody"),(function(e){return e.styles})),KA=Me.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(NA||(NA=je()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),He.hs.space(0),He.hs.space(0),cr.rd,(function(e){return e.styles})),$A=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(RA||(RA=je()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),He.hs.font(1.5),He.t7.fontWeight("regular")),XA=Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(LA||(LA=je()(["\n font-size: ",";\n"])),He.hs.font(7)),QA=Me.Ay.div.withConfig({displayName:"StyledContentWrapper"})(FA||(FA=je()(["\n padding-top: ",";\n color: ",";\n"])),He.hs.space(-1),He.t7.color("textToaster")),ZA=Me.Ay.div.withConfig({displayName:"StyledToasterBox"})(HA||(HA=je()(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); // subtract height of header plus some additional padding\n min-width: 310px;\n max-width: 400px;\n top: 40px; // height of Header to prevent coverage\n right: 55px;\n // lower than StyledModalHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); // subtract height of header\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,He.Ed)());const JA=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,i=e.styles,a=(0,p.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=st.useUserActive(a),c=et()(s,3),u=c[0],l=c[1],d=c[2];(0,p.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,Ke.jsxs)(qA,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==i?void 0:i.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,Ke.jsx)(GA,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==i?void 0:i.closeButtonStyles}),(0,Ke.jsxs)(KA,{type:t.type,styles:null==i?void 0:i.iconTitleWrapperStyles,children:[t.icon&&(0,Ke.jsx)(XA,{children:(0,Ke.jsx)(Ge.A,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)($A,{"data-cy":"toaster-title",children:(0,Ke.jsx)(bj,{children:t.title})})})]}),t.body&&(0,Ke.jsx)(QA,{"data-cy":"toaster-content",children:(0,Ke.jsx)(bj,{children:"function"==typeof t.body?(0,Ke.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var eM,tM,nM={info:"info",success:"success",error:"danger",warning:"warning"},rM=function(){return(0,Me.AH)(eM||(eM=je()(["\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 nM[e]?t.colors.signal[nM[e]]:"#ccc"}(e.type,e.theme)}),He.t7.color("textToaster"))},oM=function(){return(0,Me.AH)(tM||(tM=je()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),He.t7.color("textToaster"))};function iM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const aM=function(e){var t=VA()({},(UA()(e),e));return(0,Ke.jsx)(JA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iM(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:rM,closeButtonStyles:oM}},t))};var sM,cM,uM={info:"info",success:"success",error:"danger",warning:"warning"},lM=function(){return(0,Me.AH)(sM||(sM=je()(["\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"])),He.t7.color("paper"),He.t7.radii("statusLabel"),He.t7.color("border"),He.t7.color("text"))},dM=function(){return(0,Me.AH)(cM||(cM=je()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return uM[e]?t.colors.signal[uM[e]]:"#ccc"}(e.type,e.theme)}))};function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 pM=function(e){var t=VA()({},(UA()(e),e));return(0,Ke.jsx)(JA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fM(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:lM,iconTitleWrapperStyles:dM}},t))};var hM=Ve()(Ve()({},Pb.A.EmbedType.admin,aM),Pb.A.EmbedType.widget,pM);const mM=Pb.A.embedStrategyFactory({mapping:hM});const gM=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,i=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,Ke.jsx)(mM,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,Ke.jsx)(Ke.Fragment,{children:t&&aa().createPortal((0,Ke.jsx)(ZA,{className:Eu,children:i}),document.body)})};const vM=me((function(e){return{toasters:e.notification.toaster.toasters}}),{removeToaster:_A,cancelTask:kA})(gM);var yM;const bM=function(e){var t=e.navigationStrategy;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(vM,{navigationStrategy:t}),yM||(yM=(0,Ke.jsx)(aA,{}))]})},wM=bM;var xM,OM,kM,SM,EM,PM,DM,_M,CM,TM,jM="notification/BLOCKING_INFO",AM="notification/REMOVE_BLOCKING_INFO",MM=Me.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(xM||(xM=je()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),He.hs.space(-1.5)),IM=Me.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(OM||(OM=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),NM=Me.Ay.div.withConfig({displayName:"StyledProgressOuter"})(kM||(kM=je()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),He.t7.color("paper")),RM=Me.Ay.div.withConfig({displayName:"StyledProgressInner"})(SM||(SM=je()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),He.t7.color("paper"),(function(e){return e.percentage})),LM=Me.Ay.span.withConfig({displayName:"StyledMessage"})(EM||(EM=je()(["\n margin-right: ",";\n"])),He.hs.space(-2)),FM=Me.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(PM||(PM=je()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),He.hs.space(-2),He.hs.space(-2),He.hs.font(-1)),HM=Me.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(DM||(DM=je()(["\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"])),He.t7.color("text"),He.t7.color("text")),BM=Me.Ay.div.withConfig({displayName:"StyledFileDescription"})(_M||(_M=je()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),He.hs.space(0)),WM=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(CM||(CM=je()(["\n padding-right: ",";\n"])),He.hs.space(-1.5)),UM=Me.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(TM||(TM=je()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),He.t7.color("text"));const YM=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,Ke.jsx)(LM,{children:(0,Ke.jsx)(bj,{children:t})}):null};var VM,zM=c(94394),qM=c.n(zM),GM=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,Ke.jsx)(Cm,{content:(0,Ke.jsx)(cr.Ay.P,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const KM=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,Ke.jsx)(Ke.Fragment,{children:Object.entries(qM()(r,(function(e){return e.model}))).map((function(e){var t=et()(e,2),r=t[0],o=t[1];return(0,Ke.jsx)(FM,{children:n&&n.ListOrDetailLink&&(0,Ke.jsx)(GM,{hasTooManyEntities:o.length>100,children:(0,Ke.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[VM||(VM=(0,Ke.jsx)(Ge.A,{icon:"arrow-right"}))," ",(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var $M,XM,QM,ZM,JM,eI;const tI=(0,f.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,i=t.content,a=function(e){return r.formatMessage({id:e})},s=a("client.common.notification.outputJobFileLink"),c=a("client.common.notification.outputJobFileDownload");return o?(0,Ke.jsxs)(HM,{children:[(0,Ke.jsx)(BM,{children:(0,Ke.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[$M||($M=(0,Ke.jsx)(WM,{children:(0,Ke.jsx)(Ge.A,{icon:"eye"})})),XM||(XM=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),my.downloadSupportedByBrowser()&&(0,Ke.jsxs)("a",{href:my.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[QM||(QM=(0,Ke.jsx)(WM,{children:(0,Ke.jsx)(Ge.A,{icon:"arrow-to-bottom"})})),ZM||(ZM=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,Ke.jsx)(FM,{children:n&&n.DetailLink&&(0,Ke.jsxs)(n.DetailLink,{entityName:i[0].model,entityKey:i[0].key,children:[JM||(JM=(0,Ke.jsx)(Ge.A,{icon:"arrow-right"}))," ",eI||(eI=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var nI=Ve()(Ve()({},XT.outputjob,tI),XT.entities,KM);const rI=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(nI[r]){var o=nI[r];return(0,Ke.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var oI,iI,aI,sI,cI;const uI=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,i=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,a=t.type===$T.info&&o.isRunning&&o.supportsCancellation;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(MM,{children:[(0,Ke.jsx)(IM,{children:o.isRunning&&(oI||(oI=(0,Ke.jsx)(Ze,{})))}),(0,Ke.jsx)(YM,{notification:t})]}),"running_absolute"===o.status&&(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)(NM,{children:(0,Ke.jsx)(RM,{percentage:o.percentage})})}),(0,Ke.jsx)(FM,{children:i&&(0,Ke.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[iI||(iI=(0,Ke.jsx)(WM,{children:(0,Ke.jsx)(Ge.A,{icon:"arrow-right"})})),aI||(aI=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),a&&(0,Ke.jsxs)(UM,{onClick:function(){return n(o.taskExecutionKey)},children:[sI||(sI=(0,Ke.jsx)(WM,{children:(0,Ke.jsx)(Ge.A,{icon:"times"})})),cI||(cI=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const lI=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,i=t.taskProgress;return o?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(YM,{notification:t}),(0,Ke.jsx)(rI,{notification:t,navigationStrategy:r})]}):i?(0,Ke.jsx)(uI,{notification:t,navigationStrategy:r,cancelTask:n}):(0,Ke.jsx)(YM,{notification:t})},dI=lI;var fI,pI,hI,mI,gI,vI,yI,bI,wI={warning:He.t7.color("signal.warning"),error:He.t7.color("signal.danger"),success:He.t7.color("signal.success"),info:He.t7.color("signal.info")},xI=Me.Ay.article.withConfig({displayName:"StyledNotification"})(fI||(fI=je()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),He.hs.space(0),He.hs.space(-1),(function(e){return!e.read&&(0,Me.AH)(pI||(pI=je()(["\n background-color: ",";\n "])),He.t7.color("backgroundBody"))})),OI=Me.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(hI||(hI=je()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),He.hs.space(-1),(function(e){var t=e.notificationType;return wI[t]})),kI=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(mI||(mI=je()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),He.hs.space(-1.5),He.hs.font(5)),SI=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(gI||(gI=je()(["\n * {\n font-weight: "," !important;\n }\n"])),He.t7.fontWeight("regular")),EI=Me.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(vI||(vI=je()(["\n ","\n margin-bottom: ",";\n"])),(0,He.Ed)({fontSize:He.hs.font(2.9),fontWeight:He.t7.fontWeight("bold"),color:He.t7.color("secondary")}),He.hs.space(-.5)),PI=Me.Ay.div.withConfig({displayName:"StyledTimeStamp"})(yI||(yI=je()(["\n font-size: ",";\n"])),He.hs.font(-2)),DI=Me.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(bI||(bI=je()(["\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"])),He.hs.space(-.5),He.t7.color("paper"),He.t7.color("secondaryLight"),He.t7.radii("menu"),NM,He.t7.color("text"),RM,He.t7.color("textLighter"),(0,He.Ed)());var _I={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const CI=function(e){var t,n,r,o=e.notification,i=e.markAsRead,a=e.cancelTask,s=e.navigationStrategy,c=(0,p.useRef)(null),u=ep(new Date(o.timestamp)),l=(0,p.useState)((function(){return o.read})),d=et()(l,1)[0];return t=c,n=function(){o.read||i(o.key)},r=new IntersectionObserver((function(e){et()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,p.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,Ke.jsxs)(xI,{ref:c,read:d,"data-cy":"notification-item",children:[(0,Ke.jsxs)(OI,{notificationType:o.type,children:[(0,Ke.jsx)(kI,{children:(0,Ke.jsx)(Ge.A,{icon:_I[o.type]})}),(0,Ke.jsx)(SI,{children:(0,Ke.jsx)(cr.Ay.H5,{children:o.title})})]}),(0,Ke.jsx)(dI,{notification:o,navigationStrategy:s,cancelTask:a}),(0,Ke.jsx)(PI,{children:(0,Ke.jsx)(f.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var TI,jI,AI,MI;const II=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,i=e.markAsRead,a=e.cancelTask,s=e.navigationStrategy,c=(0,p.useRef)(null);(0,p.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==XT.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,Ke.jsx)(CI,{markAsRead:i,cancelTask:a,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,Ke.jsxs)(DI,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[TI||(TI=(0,Ke.jsx)(EI,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(jI||(jI=(0,Ke.jsx)(Ze,{}))),u.length>0&&!r&&(AI||(AI=(0,Ke.jsx)(cr.Ay.I,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(MI||(MI=(0,Ke.jsx)(cr.Ay.I,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};const NI=me((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),{loadNotifications:function(){return{type:uA,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:OA,cancelTask:kA})(II);var RI="notification/CONFIRM",LI="notification/YES_NO_QUESTION",FI="notification/INFO",HI="notification/CONNECT_SOCKET",BI="notification/CLOSE_SOCKET",WI="notification/SOCKET_MESSAGE_RECEIVED",UI="notification/ADD_IGNORE_TOASTER",YI=function(e){return{type:WI,payload:{data:e}}},VI=function(e){return{type:UI,payload:{key:e}}};const zI={SYNC_ACTION:"sync-action"};var qI=r().mark(KI),GI=r().mark($I);function KI(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,JO([lk(jM,$I),lk(AM,$I)]);case 3:case"end":return t.stop()}}),qI)}function $I(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(RD.emitAction(e));case 2:case"end":return t.stop()}}),GI)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XI(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZI=Ve()(Ve()(Ve()(Ve()(Ve()(Ve()({},lA,(function(e,t){var n=t.payload.notifications;return QI(QI({},e),{},{notifications:QI(QI({},e.notifications),n),isLoadingMoreNotifications:!1})})),dA,ED("moreNotificationsAvailable")),fA,(function(e,t){var n=t.payload.notification;return QI(QI({},e),{},{notifications:QI(QI({},e.notifications),{},Ve()({},n.key,n))})})),sA,ED("unreadNotificationKeys")),cA,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):i()(e.unreadNotificationKeys,[o]),QI(QI({},e),{},{unreadNotificationKeys:n})})),pA,ED("isLoadingMoreNotifications")),JI={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function eN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JI,t=arguments.length>1?arguments[1]:void 0,n=ZI[t.type];return n?n(e,t):e}function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rN=r().mark(aN),oN=r().mark(sN),iN=10;function aN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,JO([tk(sN),lk(uA,cN),lk(hA,uN),lk(mA,lN)]);case 3:case"end":return t.stop()}}),rN)}function sN(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,tk(KT.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,ZO(gA(n));case 7:case"end":return r.stop()}}),oN)}function cN(e){var t=e.payload.offset;return r().mark((function e(){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ZO(xA());case 2:return n={_limit:iN,_offset:t},e.next=5,tk(KT.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return o=e.sent,e.next=8,JO(o.body.data.map((function(e){return tk(sj,e)})));case 8:if(i=e.sent,a=i.reduce((function(e,t){return nN(nN({},e),{},Ve()({},t.key,t))}),{}),!(Object.keys(a).length<iN)){e.next=13;break}return e.next=13,ZO(bA(!1));case 13:return e.next=15,ZO(yA(a));case 15:case"end":return e.stop()}}),e)}))()}function uN(e){var t=e.payload.notificationKey;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,tk(KT.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function lN(e){var t=e.payload.taskExecutionKey;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(KT.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var dN=["primary","callback","label"];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 pN(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){Ve()(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 hN=function(e){var t=e.buttons;return(0,Ke.jsx)(Jj,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,i=qe()(e,dN);return(0,p.createElement)(Zj,pN(pN({},n?{ink:He.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},i),o)}))})};function mN(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,i=e.onOk,a=e.onCancel,s=e.defaultAction,c=void 0===s?"submit":s,u=(0,j_.v4)();return dj(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===c?i():"cancel"===c&&a(),t()):"Escape"===e.key&&(a(),t())};(0,p.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(){i(),t()}},{label:o,primary:"cancel"===c,look:"cancel"===c?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){a(),t()}}];return(0,Ke.jsx)(hN,{buttons:s})}),!0,a)}function gN(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,i=e.onYes,a=e.onNo,s=e.onCancel,c=(0,j_.v4)();return dj(c,t,n,(function(e){var t=e.close,n=function(){a(),t()};(0,He.LE)(n);var s=[{label:r,callback:function(){i(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,Ke.jsx)(hN,{buttons:s})}),!0,s)}function vN(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,i=(0,j_.v4)();return dj(i,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,p.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var i=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,Ke.jsx)(hN,{buttons:i})}),!1)}var yN=r().mark(wN),bN=r().mark(SN);function wN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,JO([lk(RI,xN),lk(LI,ON),lk(FI,kN)]);case 3:t.next=7;break;case 5:return t.next=7,JO([lk(RI,SN),lk(LI,SN),lk(FI,SN)]);case 7:case"end":return t.stop()}}),yN)}function xN(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(mN,t);case 2:return n=e.sent,e.next=5,ZO(n);case 5:case"end":return e.stop()}}),e)}))()}function ON(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(gN,t);case 2:return n=e.sent,e.next=5,ZO(n);case 5:case"end":return e.stop()}}),e)}))()}function kN(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(vN,t);case 2:return n=e.sent,e.next=5,ZO(n);case 5:case"end":return e.stop()}}),e)}))()}function SN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(RD.emitAction(e));case 2:case"end":return t.stop()}}),bN)}var EN=r().mark(DN),PN=r().mark(_N);function DN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,JO([lk(uj,_N),lk(lj,_N)]);case 3:case"end":return t.stop()}}),EN)}function _N(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(RD.emitAction(e));case 2:case"end":return t.stop()}}),PN)}function CN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jN={overlays:[]},AN=function(e){return function(t,n){var r=n.payload.id;return TN(TN({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},MN=Ve()(Ve()(Ve()(Ve()({},uj,(function(e,t){var n=t.payload,r=n.id,o=n.title,i=n.message,a=n.component,s=n.cancelable,c=n.cancelCallback;return TN(TN({},e),{},{overlays:[].concat(Ht()(e.overlays),[{id:r,title:o,message:i,component:a,cancelable:s,cancelCallback:c,type:pj.MODAL}])})})),lj,AN(pj.MODAL)),jM,(function(e,t){var n=t.payload,r=n.id,o=n.title,i=n.body;return TN(TN({},e),{},{overlays:[].concat(Ht()(e.overlays),[{id:r,title:o,body:i,type:pj.BLOCKER}])})})),AM,AN(pj.BLOCKER));function IN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jN,t=arguments.length>1?arguments[1]:void 0,n=MN[t.type];return n?n(e,t):e}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LN=Ve()({},UI,(function(e,t){var n=t.payload.key;return RN(RN({},e),{},{ignoredToasters:Ht()(new Set([].concat(Ht()(e.ignoredToasters),[n])))})})),FN={ignoredToasters:[]};function HN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:FN,t=arguments.length>1?arguments[1]:void 0,n=LN[t.type];return n?n(e,t):e}var BN=c(19383),WN=r().mark(zN);function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var VN={};function zN(e){var t,n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tk(GN,e.name,e.originId);case 2:return t=r.sent,r.next=5,tk(qN,YN(YN({},e),{},{url:t}));case 5:n=r.sent;case 6:return r.next=9,QO(n);case 9:return o=r.sent,r.next=12,ZO(o);case 12:r.next=6;break;case 14:case"end":return r.stop()}}),WN)}var qN=function(e){return function(e,t){void 0===t&&(t=MO());var n,r=!1,o=X_(t),i=function(){r||(r=!0,tO(n)&&n(),o.close())};return n=vO(n=e((function(e){$_(e)?i():o.put(e)}))),r&&n(),{take:o.take,flush:o.flush,close:i}}((function(t){var n=function(){var r=e.url,o=e.messageReceivedAction,i=e.name;VN[i]=new WebSocket(r),VN[i].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},VN[i].onclose=function(e){1e3!==e.code&&n()},VN[i].onerror=function(e){s.A.log("socket error",e)}};return n(),function(){}}))},GN=function(e,t){var n=(Pb.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const KN={connectSocket:zN,closeSocket:function(e){VN[e].close(1e3)}};function $N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 XN="socket-msg-",QN=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$N(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(XN).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,Ke.jsx)(dI,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return Pb.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===XT.outputjob}(e)?{duration:-1}:{})},ZN=r().mark(rR),JN=r().mark(oR),eR=r().mark(iR),tR=function(e){return e.notification.socket},nR=function(e){return e.notification.toaster.toasters};function rR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,JO([lk(WI,aR),lk(EA,sR),lk(HI,oR),lk(BI,iR)]);case 3:case"end":return t.stop()}}),ZN)}function oR(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tk(BN.A.getOriginId);case 2:return e=t.sent,t.next=5,tk(KN.connectSocket,{name:"notification",messageReceivedAction:YI,originId:e});case 5:case"end":return t.stop()}}),JN)}function iR(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(KN.closeSocket,"notification");case 2:case"end":return e.stop()}}),eR)}function aR(e){var t=e.payload.data;return r().mark((function e(){var n,o,i,a,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(sj,t);case 2:return n=e.sent,e.next=5,rk(tR);case 5:if(o=e.sent,i=o.ignoredToasters,a=!1,n.originId!==BN.A.getOriginId()){e.next=16;break}return e.next=11,tk(QN,n);case 11:if(s=e.sent,i.includes(s.key)||n.read){e.next=16;break}return e.next=15,ZO(DA(s));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,ZO(vA(n.key,n.read));case 19:return e.next=21,ZO(wA(n));case 21:case"end":return e.stop()}}),e)}))()}function sR(e){var t=e.payload,n=t.key,o=t.manually;return r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(XN)){e.next=11;break}if(!o){e.next=4;break}return e.next=4,ZO(VI(n));case 4:return e.next=6,rk(nR);case 6:if("success"!==e.sent[n].type&&!o){e.next=11;break}return t=n.replace(XN,""),e.next=11,ZO(OA(t));case 11:case"end":return e.stop()}}),e)}))()}function cR(e){var t=function(e,t){if("object"!=er()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=er()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==er()(t)?t:t+""}function uR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dR=Ve()(Ve()({},SA,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys($T).includes(e.type)?e.type:$T.neutral;return jA(jA(jA(jA(jA({type:t,key:e.key||(0,j_.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||QT[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:BA(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!==zI.SYNC_ACTION}(r)?lR(lR({},e),{},{toasters:lR(lR({},e.toasters),{},Ve()({},n.key,n))}):e})),PA,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],qe()(r,[n].map(cR)));return lR(lR({},e),{},{toasters:lR({},o)})})),fR={toasters:{}};function pR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fR,t=arguments.length>1?arguments[1]:void 0,n=dR[t.type];return n?n(e,t):e}var hR=r().mark(gR),mR=r().mark(vR);function gR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,JO([lk(EA,yR)]);case 3:t.next=7;break;case 5:return t.next=7,JO([lk(SA,vR),lk(EA,vR)]);case 7:case"end":return t.stop()}}),hR)}function vR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(RD.emitAction(e));case 2:case"end":return t.stop()}}),mR)}function yR(e){var t=e.payload,n=t.key;t.manually;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ZO(CA(n));case 2:case"end":return e.stop()}}),e)}))()}const bR={transformNotificationResult:cj,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&PD(e,{notification:vD({socket:HN,toaster:pR,center:eN,overlay:IN})}),e.sagaMiddleware.run(KI,t),e.sagaMiddleware.run(wN,t),e.sagaMiddleware.run(DN,t),e.sagaMiddleware.run(rR,t),e.sagaMiddleware.run(gR,t),t&&r&&e.sagaMiddleware.run(aN)},Notifications:wM,NotificationCenter:NI,confirm:function(e,t,n,r,o,i,a){return{type:RI,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:i,defaultAction:a}}},yesNoQuestion:function(e,t,n,r,o,i,a){return{type:LI,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:i,onCancel:a}}},info:function(e,t,n,r){return{type:FI,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:jM,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:AM,payload:{id:e}}},modal:dj,removeModal:fj,toaster:DA,removeToaster:_A,connectSocket:function(){return{type:HI}},closeSocket:function(){return{type:BI}},toasterSources:zI};var wR="error",xR=function(){var e=t()(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),s.A.logError(n),e.next=4,kR(wR,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),OR=function(){var e=t()(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.A.logError(t),e.next=3,kR(wR,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),kR=function(){var e=t()(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w_.A.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const SR={logError:OR,logException:xR};const ER=d;var PR="keyDown/SET_CONFIG",DR="keyDown/KEY_DOWN",_R=function(e){return{type:PR,payload:{config:e}}},CR=function(e){return{type:DR,payload:{config:e}}},TR=Ve()({},PR,ED("config")),jR={config:[]};function AR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jR,t=arguments.length>1?arguments[1]:void 0,n=TR[t.type];return n?n(e,t):e}var MR=r().mark(NR),IR=r().mark(RR);function NR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,JO([tk(RR,e),lk(DR,LR)]);case 2:case"end":return t.stop()}}),MR)}function RR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO(_R(e));case 2:case"end":return t.stop()}}),IR)}function LR(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.config)){e.next=4;break}return e.next=4,JO(n.actions.map((function(e){return ZO(e)})));case 4:case"end":return e.stop()}}),e)}))()}var FR,HR=["config","children","keyDownHandler"];function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BR(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UR=Me.Ay.div.withConfig({displayName:"StyledDiv"})(FR||(FR=je()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const YR=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=qe()(e,HR),i=(0,p.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,p.useCallback)((function(e){return i(e,!0)}),[i]);return(0,p.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,Ke.jsx)(UR,WR(WR({tabIndex:"0",onKeyDown:function(e){return i(e)}},o),{},{children:n}))};const VR={keyDown:CR,addToStore:function(e,t){PD(e,{keyDown:AR}),e.sagaMiddleware.run(NR,t)},KeyDownWatcher:me((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),{keyDownHandler:CR})(YR)};const zR=function(e){var t=e.children,n=e.intlInitialised,r=e.cacheInitialised;return(0,Ke.jsx)(Rw,{required:[r,n],children:t})};const qR=me((function(e){return{intlInitialised:!e.app||e.app.intlInitialised,cacheInitialised:!e.app||e.app.cacheInitialised}}))(zR);var GR,KR=Me.Ay.div.withConfig({displayName:"StyledApp"})(GR||(GR=je()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),$R="theme/INIT_THEMETYPE",XR="theme/SET_THEMETYPE",QR=function(){return{type:$R}},ZR=function(e){return{type:XR,payload:{themeType:e}}},JR=c(55364),eL=c.n(JR),tL=c(94200);const nL={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",primaryLight:"#424242",secondary:"#333",secondaryLight:"#7c7c7c",secondaryLighter:"#bababa",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",backgroundItemHover:"#E6E6E6",backgroundItemSelected:"#CCC",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundMultiValue:"#e6e6e6",loadingSpinner:"#000",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:"inherit",regular:"inherit"},fontSize:{base:1,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"2px",buttonLarge:"4px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0},space:{base:1,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{}};var rL;const oL=(0,Me.SL)((function(e){var t=e.themeType,n=e.customTheme,r=e.children,o=e.theme,i=function(e){return Pb.A.getEmbedType()===Pb.A.EmbedType.widget?nL:"light"===e?tL.A.defaultTheme:tL.A.darkTheme}(t),a=(0,p.useMemo)((function(){return eL()({},i,n)}),[i,n]);return(0,Ke.jsx)(Me.NP,{theme:o||a,children:(0,Ke.jsxs)(Me.ID,{shouldForwardProp:Re.shouldForwardProp,children:[rL||(rL=(0,Ke.jsx)(hp,{})),r]})})}));const iL=me((function(e){return{themeType:e.theme.themeType}}),{setThemeType:ZR})(oL);var aL=c(27752),sL={};sL.styleTagTransform=Lu(),sL.setAttributes=Mu(),sL.insert=ju().bind(null,"head"),sL.domAPI=Cu(),sL.insertStyleElement=Nu();Du()(aL.A,sL);aL.A&&aL.A.locals&&aL.A.locals;const cL=function(e){var t=e.store,n=e.content,r=e.theme,o=(0,p.useCallback)((function(e){e&&c.e(310).then(c.bind(c,37107)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]);return(0,Ke.jsx)(ge,{store:t,children:(0,Ke.jsx)(iL,{customTheme:r,children:(0,Ke.jsx)(VR.KeyDownWatcher,{className:Eu,children:(0,Ke.jsx)(qR,{children:(0,Ke.jsx)(b_.Dk,{children:(0,Ke.jsx)(KR,{ref:o,children:n})})})})})})};var uL="app/SETUP_INTL",lL="app/CHANGE_LOCALE",dL="app/SET_TEXT_RESOURCE_MODULES",fL="app/SET_INTL_INITIALISED",pL="app/INITIALISE_CACHE",hL="app/SET_CACHE_INITIALISED",mL=function(e){return{type:uL,payload:{locale:e}}},gL=function(e){return{type:lL,payload:{locale:e}}},vL=function(e){return{type:fL,payload:{intlInitialised:e}}},yL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldSetupIntl,n=void 0!==t&&t,r=e.forceInvalidation,o=void 0!==r&&r,i=e.locale;return{type:pL,payload:{shouldSetupIntl:n,forceInvalidation:o,locale:i}}},bL=function(e){return{type:hL,payload:{cacheInitialised:e}}},wL=Ve()(Ve()(Ve()({},dL,ED("textResourceModules")),fL,ED("intlInitialised")),hL,ED("cacheInitialised")),xL={textResourceModules:[],intlInitialised:!1,cacheInitialised:!1};function OL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OL(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var SL={};const EL={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;SL=kL(kL({},SL),{},Ve()({},e,{level:n,info:kL(kL({},fo()(SL,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return fo()(SL,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;SL=kL({},Object.keys(SL).reduce((function(t,n){var r=SL[n];return kL(kL({},t),r.level<e&&Ve()({},n,r))}),{}))}};var PL=r().mark(CL),DL=r().mark(TL);function _L(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return r().mark((function t(){var n,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tk(KT.fetchServerRevision);case 2:return n=t.sent,t.next=5,tk(T_.loadUserWithLocale);case 5:return o=t.sent,i=o.locale,a=o.username,s=o.businessUnitId,c=e||i,u=y_.getObjectCacheMetaInfo(),l=u.locale,d=u.businessUnitId,f=u.username,p=y_.getLongTermMetaInfo(),h=p.revision,m=!l||l!==c,g=d!==s,v=f!==a,y=h!==n,t.abrupt("return",{invalidObjectCache:m||g||v,invalidLongTermCache:y,cache:{locale:c,businessUnitId:s,username:a,revision:n}});case 15:case"end":return t.stop()}}),t)}))()}function CL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(y_.clearLongTerm);case 2:case"end":return e.stop()}}),PL)}function TL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(y_.clearObjectCache);case 2:case"end":return e.stop()}}),DL)}function jL(e){var t=e.revision;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(y_.setLongTermMetaInfo,{revision:t});case 2:case"end":return e.stop()}}),e)}))()}function AL(e){var t=e.locale,n=e.businessUnitId,o=e.username;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(y_.setObjectCacheMetaInfo,{locale:t,businessUnitId:n,username:o});case 2:case"end":return e.stop()}}),e)}))()}var ML=r().mark(HL),IL=r().mark(BL),NL=r().mark(zL),RL=function(e){return e.app},LL=!1,FL=function(){LL=!1};function HL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,JO([dk(uL,WL),dk(lL,UL),dk(pL,YL)]);case 2:case"end":return e.stop()}}),ML)}function BL(e){var t,n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,rk(RL);case 2:return t=r.sent,n=t.textResourceModules,r.next=6,tk(T_.getChangeLocaleAction,n,e);case 6:return o=r.sent,r.next=9,ZO(o);case 9:case"end":return r.stop()}}),IL)}function WL(e){var t=e.payload.locale;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t){e.next=5;break}return e.next=4,tk(T_.getUserLocale);case 4:n=e.sent;case 5:return e.next=7,tk(BL,n);case 7:return e.next=9,ZO(vL(!0));case 9:case"end":return e.stop()}}),e)}))()}function UL(e){var t=e.payload.locale;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(VL,{locale:t});case 2:return e.next=4,tk(BL,t);case 4:case"end":return e.stop()}}),e)}))()}function YL(e){var t=e.payload,n=t.shouldSetupIntl,o=t.forceInvalidation,i=t.locale;return r().mark((function e(){var t,a,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!LL){e.next=7;break}return e.next=3,ZO(bL(!0));case 3:if(!n){e.next=6;break}return e.next=6,ZO(mL(i));case 6:return e.abrupt("return");case 7:return e.next=9,tk(_L,{locale:i});case 9:if(t=e.sent,a=t.invalidObjectCache,s=t.invalidLongTermCache,c=t.cache,!s&&!o){e.next=18;break}return e.next=16,tk(CL);case 16:return e.next=18,tk(jL,c);case 18:if(!a&&!o){e.next=25;break}return e.next=21,tk(TL);case 21:return e.next=23,tk(AL,c);case 23:return e.next=25,tk(EL.clearPersistedViews);case 25:return LL=!0,e.next=28,ZO(bL(!0));case 28:if(!n){e.next=31;break}return e.next=31,ZO(mL(i));case 31:case"end":return e.stop()}}),e)}))()}function VL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tk(FL);case 2:return t.next=4,ZO(yL({shouldSetupIntl:!1,locale:e}));case 4:return t.next=6,QO(hL);case 6:case"end":return t.stop()}}),t)}))()}function zL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tk(FL);case 2:return e.next=4,ZO(yL({shouldSetupIntl:!1,forceInvalidation:!0}));case 4:return e.next=6,QO(hL);case 6:case"end":return e.stop()}}),NL)}const qL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xL,t=arguments.length>1?arguments[1]:void 0,n=wL[t.type];return n?n(e,t):e};var GL="input/SET_INPUT",KL="input/INPUT_CHANGED",$L="input/INPUT_INITIALIZED",XL=function(e,t){return{type:GL,payload:Ve()({},e,t)}},QL=function(e,t){return{type:KL,payload:{input:e,prevInput:t}}};function ZL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZL(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eF=Ve()({},GL,(function(e,t){var n=t.payload;return JL(JL({},e),n)})),tF={};const nF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tF,t=arguments.length>1?arguments[1]:void 0,n=eF[t.type];return n?n(e,t):e};var rF=Ve()({},XR,ED("themeType")),oF={themeType:"light"};var iF=r().mark(sF),aF=r().mark(cF);function sF(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,JO([dk($R,cF)]);case 2:case"end":return e.stop()}}),iF)}function cF(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tk(y_.getLongTerm,"admin","theme");case 2:return e=n.sent,t=e||"light",n.next=6,ZO(ZR(t));case 6:case"end":return n.stop()}}),aF)}const uF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oF,t=arguments.length>1?arguments[1]:void 0,n=rF[t.type];return n?n(e,t):e};var lF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,a.H)(n).render(e)},dF=function(e,t){e.forEach((function(e){t.dispatch(e)}))},fF=function(e){c.p=e},pF=Symbol.for("immer-nothing"),hF=Symbol.for("immer-draftable"),mF=Symbol.for("immer-state");function gF(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vF=Object.getPrototypeOf;function yF(e){return!!e&&!!e[mF]}function bF(e){return!!e&&(xF(e)||Array.isArray(e)||!!e[hF]||!!e.constructor?.[hF]||PF(e)||DF(e))}var wF=Object.prototype.constructor.toString();function xF(e){if(!e||"object"!=typeof e)return!1;const t=vF(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===wF}function OF(e,t){0===kF(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function kF(e){const t=e[mF];return t?t.type_:Array.isArray(e)?1:PF(e)?2:DF(e)?3:0}function SF(e,t){return 2===kF(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function EF(e,t,n){const r=kF(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function PF(e){return e instanceof Map}function DF(e){return e instanceof Set}function _F(e){return e.copy_||e.base_}function CF(e,t){if(PF(e))return new Map(e);if(DF(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&xF(e)){if(!vF(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[mF];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(vF(e),n)}function TF(e,t=!1){return AF(e)||yF(e)||!bF(e)||(kF(e)>1&&(e.set=e.add=e.clear=e.delete=jF),Object.freeze(e),t&&OF(e,((e,t)=>TF(t,!0)))),e}function jF(){gF(2)}function AF(e){return Object.isFrozen(e)}var MF,IF={};function NF(e){const t=IF[e];return t||gF(0),t}function RF(){return MF}function LF(e,t){t&&(NF("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function FF(e){HF(e),e.drafts_.forEach(WF),e.drafts_=null}function HF(e){e===MF&&(MF=e.parent_)}function BF(e){return MF={drafts_:[],parent_:MF,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function WF(e){const t=e[mF];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function UF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[mF].modified_&&(FF(t),gF(4)),bF(e)&&(e=YF(t,e),t.parent_||zF(t,e)),t.patches_&&NF("Patches").generateReplacementPatches_(n[mF].base_,e,t.patches_,t.inversePatches_)):e=YF(t,n,[]),FF(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pF?e:void 0}function YF(e,t,n){if(AF(t))return t;const r=t[mF];if(!r)return OF(t,((o,i)=>VF(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return zF(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),OF(o,((o,a)=>VF(e,r,t,o,a,n,i))),zF(e,t,!1),n&&e.patches_&&NF("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function VF(e,t,n,r,o,i,a){if(yF(o)){const a=YF(e,o,i&&t&&3!==t.type_&&!SF(t.assigned_,r)?i.concat(r):void 0);if(EF(n,r,a),!yF(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(bF(o)&&!AF(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;YF(e,o),t&&t.scope_.parent_||zF(e,o)}}function zF(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&TF(t,n)}var qF={get(e,t){if(t===mF)return e;const n=_F(e);if(!SF(n,t))return function(e,t,n){const r=$F(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!bF(r)?r:r===KF(e.base_,t)?(QF(e),e.copy_[t]=ZF(r,e)):r},has:(e,t)=>t in _F(e),ownKeys:e=>Reflect.ownKeys(_F(e)),set(e,t,n){const r=$F(_F(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=KF(_F(e),t),o=r?.[mF];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||SF(e.base_,t)))return!0;QF(e),XF(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==KF(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,QF(e),XF(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=_F(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){gF(11)},getPrototypeOf:e=>vF(e.base_),setPrototypeOf(){gF(12)}},GF={};function KF(e,t){const n=e[mF];return(n?_F(n):e)[t]}function $F(e,t){if(!(t in e))return;let n=vF(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=vF(n)}}function XF(e){e.modified_||(e.modified_=!0,e.parent_&&XF(e.parent_))}function QF(e){e.copy_||(e.copy_=CF(e.base_,e.scope_.immer_.useStrictShallowCopy_))}OF(qF,((e,t)=>{GF[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),GF.deleteProperty=function(e,t){return GF.set.call(this,e,t,void 0)},GF.set=function(e,t,n){return qF.set.call(this,e[0],t,n,e[0])};function ZF(e,t){const n=PF(e)?NF("MapSet").proxyMap_(e,t):DF(e)?NF("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:RF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=qF;n&&(o=[r],i=GF);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:RF()).drafts_.push(n),n}function JF(e){if(!bF(e)||AF(e))return e;const t=e[mF];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=CF(e,t.scope_.immer_.useStrictShallowCopy_)}else n=CF(e,!0);return OF(n,((e,t)=>{EF(n,e,JF(t))})),t&&(t.finalized_=!1),n}var eH=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&gF(6),void 0!==n&&"function"!=typeof n&&gF(7),bF(e)){const o=BF(this),i=ZF(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?FF(o):HF(o)}return LF(o,n),UF(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===pF&&(r=void 0),this.autoFreeze_&&TF(r,!0),n){const t=[],o=[];NF("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}gF(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;const o=this.produce(e,t,((e,t)=>{n=e,r=t}));return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){bF(e)||gF(8),yF(e)&&(e=function(e){yF(e)||gF(10);return JF(e)}(e));const t=BF(this),n=ZF(e,void 0);return n[mF].isManual_=!0,HF(t),n}finishDraft(e,t){const n=e&&e[mF];n&&n.isManual_||gF(9);const{scope_:r}=n;return LF(r,t),UF(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=NF("Patches").applyPatches_;return yF(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};eH.produce,eH.produceWithPatches.bind(eH),eH.setAutoFreeze.bind(eH),eH.setUseStrictShallowCopy.bind(eH),eH.applyPatches.bind(eH),eH.createDraft.bind(eH),eH.finishDraft.bind(eH);function tH(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var nH=e=>Array.isArray(e)?e:[e];function rH(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var oH="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},iH=0,aH=1;function sH(){return{s:iH,v:void 0,o:null,p:null}}function cH(e,t={}){let n=sH();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=sH(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=sH(),e.set(n,t)):t=r}}const s=t;let c;if(t.s===aH)c=t.v;else if(c=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==i&&i--);o="object"==typeof c&&null!==c||"function"==typeof c?new oH(c):c}return s.s=aH,s.v=c,c}return a.clearCache=()=>{n=sH(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function uH(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),tH(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:c,memoizeOptions:u=[],argsMemoize:l=cH,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=nH(u),h=nH(d),m=rH(e),g=c((function(){return r++,a.apply(null,arguments)}),...p);const v=l((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(v,{resultFunc:a,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var lH=uH(cH),dH=Object.assign(((e,t=lH)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})));return r}),{withTypes:()=>dH});function fH(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var pH=fH(),hH=fH,mH="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yD:yD.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var gH=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};var vH="RTK_autoBatch",yH=e=>t=>{setTimeout(t,e)},bH="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:yH(10),wH=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new gH(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?bH:"callback"===e.type?e.queueNotification:yH(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[vH],i=!o,i&&(a||(a=!0,c(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function xH(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new gH;return t&&(function(e){return"boolean"==typeof e}(t)?i.push(pH):i.push(hH(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,c;if("function"==typeof n)s=n;else{if(!mD(n))throw new Error(kH(1));s=vD(n)}c="function"==typeof r?r(t):t();let u=yD;o&&(u=mH({trace:!1,..."object"==typeof o&&o}));const l=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(dD(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(a)));return i=yD(...s)(o.dispatch),{...o,dispatch:i}}}(...c),d=wH(l);return gD(s,i,u(..."function"==typeof a?a(d):d()))}var{assign:OH}=Object;Symbol.for("rtk-state-proxy-original");function kH(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function SH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SH(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var PH=c(71086),DH=c.n(PH);function _H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var TH=function(e,t){return e.reduce((function(e,n){return CH(CH({},e),t[n]?Ve()({},n,t[n]):{})}),{})};const jH=function(e){var t,n=e.initApp,r=e.props,o=e.packageName,i=e.externalEvents,a=void 0===i?[]:i,s=(0,p.useState)(null),c=et()(s,2),u=c[0],l=c[1],d=null==u?void 0:u.store,f=u?u.component:null,h=(null==d||null===(t=d.getState())||void 0===t?void 0:t.input)||{};return(0,p.useEffect)((function(){l(n(o,r,TH(a,r)))}),[]),st.useDidUpdate((function(){var e,t,n,o=DH()(r,(function(e,t){return!nr()(e,h[t])})),i=DH()(h,(function(e,t){return Object.keys(o).includes(t)}));!Ur()(o)&&d&&(e=o,t=i,n=Object.keys(e).map((function(t){return XL(t,e[t])})),n.length>0&&n.push(QL(e,t)),n).forEach((function(e){d.dispatch(e)}))}),[r,h]),{component:f,setApp:l,store:d}},AH={renderApp:lF,reloadApp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,a.H)(n).unmount(),lF(e,t)},createApp:function(e,n,o,a){var c=a.input,u=void 0===c?{}:c,l=a.actions,d=void 0===l?void 0:l,f=a.publicPath,p=void 0===f?void 0:f,h=a.textResourceModules,m=void 0===h?[]:h;try{var g=u.customTheme;p&&fF(p),d&&dF(d,o),o.dispatch({type:$L});var v=u?u.locale:null,y=i()([e],m);o.dispatch(function(e){return{type:dL,payload:{textResourceModules:e}}}(y)),o.dispatch(yL({shouldSetupIntl:!0,locale:v})),o.dispatch(QR());var b=function(){var e=t()(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.dispatch(gL(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,Ke.jsx)(cL,{store:o,content:n,theme:g}),store:o,methods:{setLocale:b}}}catch(e){try{o.dispatch(ER("Error","Error creating react application: ",e))}catch(t){s.A.logError("Error creating react application: ",e),s.A.logError("Unable to log error: ",t)}}},createStore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=xC(),o=EH(EH({},e),{},{input:nF,app:qL,intl:b_.oi,theme:uF}),i=xH({reducer:e=vD(o),devTools:undefined,preloadedState:n,middleware:function(e){return[r]}}),a=[HL,sF].concat(Ht()(t||[]));if(i.allReducers=o,i.sagas=a,i.sagaMiddleware=r,i.hotReloadReducers=DD,a&&a.length>0){var s=pk.createGenerator(a.map((function(e){return nk(e)})));r.run(pk.autoRestartSaga(s,null,ER))}return i},registerAppInRegistry:function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)},createBundleableApp:function(e,t,n){return{name:e,init:t,App:n,setWebpacksPublicPath:fF}},useApp:jH,getEvents:TH,setInput:XL,inputChanged:QL,initThemeType:QR,setThemeType:ZR,INPUT_CHANGED:KL,INPUT_INITIALIZED:$L,reinitialiseCache:VL,forceCacheInvalidation:zL};var MH="externalEvents/FIRE_EXTERNAL_EVENT",IH="externalEvents/FIRE_VISIBILITY_STATUS_CHANGE_EVENT",NH=function(e,t){return{type:MH,payload:{name:e,payload:t}}},RH=r().mark(BH),LH=r().mark(WH),FH=r().mark(UH),HH=r().mark(VH);function BH(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,JO([lk(MH,UH,e),lk(MH,VH,e),lk(IH,zH)]);case 2:case"end":return t.stop()}}),RH)}function WH(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,rk(e);case 2:if(!(t=n.sent)){n.next=5;break}return n.abrupt("return","object"===er()(null==t?void 0:t.events)?t:{events:t});case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}}),LH)}function UH(e,t){var n,o,i,a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.payload,o=n.name,i=n.payload,r.next=3,tk(WH,e);case 3:return a=r.sent,s=a.events,r.next=7,tk(qH,s,o,i);case 7:case"end":return r.stop()}}),FH)}function YH(e,t){return"string"==typeof e?{name:e,payload:t}:"function"==typeof e?e(t):e}function VH(e,t){var n,o,i,a,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.payload,o=n.name,i=n.payload,r.next=3,tk(WH,e);case 3:if(a=r.sent,s=a.eventMap,!(s&&["string","function","object"].includes(er()(s[o])))){r.next=10;break}return c=YH(s[o],i),r.next=10,ZO(NH(c.name,c.payload));case 10:case"end":return r.stop()}}),HH)}function zH(e){var t=e.payload;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Pb.A.isInWidgetEmbedded()){e.next=3;break}return e.next=3,ZO(NH("onVisibilityStatusChange",t));case 3:case"end":return e.stop()}}),e)}))()}var qH=function(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];e&&e[t]&&e[t].apply(e,r)};function GH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GH(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $H={fireExternalEvent:NH,fireVisibilityStatusChangeEvent:function(e){return{type:IH,payload:{status:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}};e.sagaMiddleware.run(BH,t)},createPropTypes:function(e){return e.reduce((function(e,t){return KH(KH({},e),{},Ve()({},t,Ce().func))}),{})}};var XH=c(44984);const QH={propTypes:Ce().shape({embedType:Ce().oneOf(XH.hZ),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};
|
|
83
|
+
*/EE.QrCode.Ecc.LOW,EE.QrCode.Ecc.MEDIUM,EE.QrCode.Ecc.QUARTILE,EE.QrCode.Ecc.HIGH;!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var PE,DE,_E,CE,TE,jE,AE,ME,IE,NE,RE,LE,FE,HE,BE,WE,UE,YE,VE,zE,qE,GE,KE=Ce().oneOfType([Ce().string,Ce().number]),$E=Ce().shape({__key:KE}),XE=(Ce().arrayOf($E),Ce().shape({id:Ce().string.isRequired,label:Ce().string,sorting:Ce().shape({sortable:Ce().bool,sortRank:Ce().number,order:Ce().oneOf(["asc","desc"])}),resizable:Ce().bool,width:Ce().number,HeaderRenderer:Ce().elementType,CellRenderer:Ce().elementType,rightAligned:Ce().bool})),QE={SINGLE:"single",MULTI:"multi",NONE:"none"},ZE=(Ce().oneOf(Object.keys(QE).map((function(e){return QE[e]}))),{INLINE:"inline",NONE:"none"}),JE=function(e){var t=e.theme;return fo()(t,"colors.border")},eP=He.hs.space(-1.5),tP=Me.Ay.div.withConfig({displayName:"StyledTableFooter"})(PE||(PE=je()(["\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"])),He.hs.space(-.5),He.hs.space(-1),JE,Ct,He.hs.space(-1)),nP=(0,Me.Ay)(Mt).withConfig({displayName:"StyledReloadButton"})(DE||(DE=je()(["\n height: 25px;\n width: 25px;\n"]))),rP=Me.Ay.td.withConfig({displayName:"StyledTableCell"})(_E||(_E=je()(["\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"])),eP,He.t7.color("paper"),(function(e){return e.alignment}),Ge.i,He.t7.color("text"),He.hs.space(-2)),oP=(Me.Ay.div.withConfig({displayName:"StyledDnD"})(CE||(CE=je()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),eP,(function(e){return e.isDragged?.2:1})),Me.Ay.span.withConfig({displayName:"StyledResizeHandle"})(TE||(TE=je()(["\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}))),iP=(Me.Ay.th.withConfig({displayName:"StyledTableHeaderCell"})(jE||(jE=je()(["\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 border-right: ",";\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n overflow: hidden;\n ",";\n ","\n ","\n ","\n }\n"])),He.t7.color("paper"),(function(e){return e.alignment}),JE,(0,He.Ed)({fontWeight:He.t7.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(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(oP," {\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(oP," {\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,Me.AH)(AE||(AE=je()(["\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;"}),rP,(function(e){return e.theme.colors.backgroundItemSelected}),rP,(function(e){return e.theme.colors.backgroundItemLastOpened}),rP,(function(e){return e.theme.colors.backgroundItemHover}))),aP=Me.Ay.span.withConfig({displayName:"StyledSortingSpan"})(ME||(ME=je()(["\n height: 100%;\n margin-right: 2px;\n"]))),sP=Me.Ay.span.withConfig({displayName:"StyledSortingRank"})(IE||(IE=je()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),He.t7.fontWeight("regular"));Me.Ay.td.withConfig({displayName:"StyledFullRowProgress"})(NE||(NE=je()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),eP),Me.Ay.td.withConfig({displayName:"StyledFullRow"})(RE||(RE=je()(["\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"])),eP,(0,He.Ed)()),Me.Ay.thead.withConfig({displayName:"StyledTableHead"})(LE||(LE=je()(["\n ","\n"])),iP),Me.Ay.tr.withConfig({displayName:"StyledTableRow"})(FE||(FE=je()(["\n ","\n\n && > td {\n ",";\n }\n"])),iP,(function(e){var t=e.even,n=e.theme;return t&&"background-color: ".concat(n.colors.backgroundTableEvenRow)})),Me.Ay.tbody.withConfig({displayName:"StyledTableBody"})(HE||(HE=je()(["\n ","\n"])),iP),Me.Ay.table.withConfig({displayName:"StyledTable"})(BE||(BE=je()(["\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===ZE.INLINE&&(0,Me.AH)(WE||(WE=je()(["\n position: absolute;\n inset: 0;\n "])))})),Me.Ay.div.withConfig({displayName:"StretchingTableContainer"})(UE||(UE=je()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),Me.Ay.div.withConfig({displayName:"StyledTableWrapper"})(YE||(YE=je()(["\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"])),He.t7.color("paper")),Me.Ay.div.withConfig({displayName:"StyledDraggable"})(VE||(VE=je()(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),Me.Ay.span.withConfig({displayName:"StyledHeaderContentWrapper"})(zE||(zE=je()(["\n display: flex;\n"]))),Me.Ay.div.withConfig({displayName:"StyledHeaderContent"})(qE||(qE=je()(["\n width: 100%;\n"]))),Ce().oneOf(Object.keys(ZE).map((function(e){return ZE[e]}))),(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledNumbering"})(GE||(GE=je()(["\n text-align: right;\n width: 100%;\n"])));(0,f.injectIntl)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,i=e.intl,a=e.tableEl,s=Boolean(o),c="function"==typeof r;return s||c?(0,Ke.jsx)(tP,{children:s&&(0,Ke.jsx)(kE,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:a,children:c&&(0,Ke.jsx)(nP,{type:"button",title:(t="client.component.table.refreshTitle",i.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));(0,f.injectIntl)((function(e){var t,n,r,o=e.column,i=e.intl,a=o.sorting&&o.sorting.sortRank&&o.sorting.order,s=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,Ke.jsx)(sP,{children:o.sorting.sortRank}),c="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return a?(0,Ke.jsxs)(aP,{title:(r="client.component.table.sortingTitle",i.formatMessage({id:r})),children:[(0,Ke.jsx)(Ge.A,{icon:c}),s]}):null}));var cP=m().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx,o=e.style;return(0,Ke.jsx)(rP,{"data-cy":"tbl-cell-".concat(t.id),alignment:t.alignment,style:o,children:t.CellRenderer?(0,Ke.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,Ke.jsx)(cr.Ay.Span,{children:n[t.id]})})}));cP.propTypes={rowData:$E.isRequired,column:XE.isRequired,rowIdx:Ce().number,style:Ce().object};let uP;uP="undefined"!=typeof window?window:"undefined"!=typeof self?self:c.g;let lP=null,dP=null;const fP=uP.clearTimeout,pP=uP.setTimeout,hP=uP.cancelAnimationFrame||uP.mozCancelAnimationFrame||uP.webkitCancelAnimationFrame,mP=uP.requestAnimationFrame||uP.mozRequestAnimationFrame||uP.webkitRequestAnimationFrame;null==hP||null==mP?(lP=fP,dP=function(e){return pP(e,20)}):(lP=function([e,t]){hP(e),fP(t)},dP=function(e){const t=mP((function(){fP(n),e()})),n=pP((function(){hP(t),e()}),20);return[t,n]});p.Component;Number.isNaN;"object"==typeof performance&&performance.now;Ke.Fragment;Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(gP||(gP=je()(["\n margin-left: ",";\n margin-right: -",";\n"])),He.hs.space(-1.7),He.hs.space(-2.1)),(0,Me.Ay)(Et).withConfig({displayName:"StyledIconButtonWrapper"})(vP||(vP=je()(["\n padding-left: ",";\n padding-right: ",";\n"])),He.hs.space(-.5),He.hs.space(-.5));var gP,vP,yP,bP,wP,xP,OP,kP,SP=Me.Ay.div.withConfig({displayName:"StyledFloatingUiWrapper"})(yP||(yP=je()(["\n position: absolute;\n"]))),EP=Me.Ay.div.withConfig({displayName:"StyledFloatingUi"})(bP||(bP=je()(["\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)")}),He.hs.space(-1.4),He.hs.font(0),He.t7.color("paper"),He.t7.color("secondaryLight"),He.t7.radii("menu")),PP=Me.Ay.div.withConfig({displayName:"StyledMenuItem"})(wP||(wP=je()(["\n min-width: 200px;\n max-width: 300px;\n"]))),DP=Me.Ay.div.withConfig({displayName:"StyledItemLabel"})(xP||(xP=je()(["\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,He.Ed)(),(function(e){return e.hasOnClick?(0,He.x5)(e):""}),He.CN?(0,Me.AH)(OP||(OP=je()(["\n ","\n ","\n ","\n "])),He.hs.space(-1.4),He.hs.space(-.5),He.hs.space(-1.4)):(0,Me.AH)(kP||(kP=je()(["\n ","\n ","\n ","\n "])),He.hs.space(-2),He.hs.space(-.5),He.hs.space(-2)),He.hs.space(-.5),(function(e){return 10*(e.level||0)+"px"}),(function(e){return e.isGroup?He.t7.fontWeight("bold"):He.t7.fontWeight("regular")}),He.t7.color("textDisabled"));function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_P(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const TP=function(e){var t=e.floatingStyles,n=e.getFloatingProps,r=e.refs,o=e.isOpen,i=e.onClose,a=e.children;return o?(0,Ke.jsx)(SP,{children:a&&o&&(0,Ke.jsx)(lm,{children:(0,Ke.jsx)(EP,CP(CP({ref:r.setFloating,style:t},n()),{},{className:Eu,children:m().Children.map(a,(function(e){return e&&m().cloneElement(e,{onClose:i})}))}))})}):null};var jP=["children","onClick","onClose","disabled","closeOnClick","title","level"];function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AP(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var IP=function(e){var t=e.children,n=e.onClick,r=e.onClose,o=e.disabled,i=e.closeOnClick,a=void 0===i||i,s=e.title,c=e.level,u=qe()(e,jP),l=m().Children.toArray(t).filter(Boolean),d=l.length>1,f=Boolean(n),p=l.map((function(e,t){var n,i=c?c++:1;return"MenuItem"===(null===(n=e.type)||void 0===n?void 0:n.displayName)?m().cloneElement(e,MP(MP({},e.props),{},{onClose:r,closeOnClick:a,level:i,key:"menu-item-".concat(t,"-").concat(i)})):(0,Ke.jsx)(DP,{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(i))}));return(0,Ke.jsx)(PP,{onClick:function(e){f&&!o&&(n(),a&&r&&r()),e.stopPropagation()},level:c,children:p})};IP.displayName="MenuItem";var NP,RP,LP,FP,HP,BP,WP,UP,YP,VP,zP=Me.Ay.div.withConfig({displayName:"TopPositioning"})(NP||(NP=je()(["\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"]))),qP=(Me.Ay.div.withConfig({displayName:"LeftPositioning"})(RP||(RP=je()(["\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"})),Me.Ay.div.withConfig({displayName:"StyledSidepanel"})(LP||(LP=je()(["\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;"}),zP,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),Me.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(FP||(FP=je()(["\n grid-area: content;\n display: flex;\n"]))),Me.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(HP||(HP=je()(["\n display: flex; /* enables StyledSidepanelCollapsed to take full height */\n flex-direction: column;\n height: 100%;\n overflow: hidden auto;\n background-color: ",";\n"])),He.w4.color("paper")),Me.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(BP||(BP=je()([""]))),Me.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(WP||(WP=je()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),Me.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(UP||(UP=je()(["\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"}),He.w4.color("paper"),He.hs.space(-.5),He.hs.space(-2.5)));(0,Me.Ay)(Mt).withConfig({displayName:"StyledToggleCollapseButton"})(YP||(YP=je()(["\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"])),He.hs.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),qP,He.w4.color("secondaryLight")),Me.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(VP||(VP=je()(["\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"])),He.w4.color("paper"),He.w4.color("backgroundBody"),He.hs.space(-.53),TP);var GP,KP,$P,XP,QP,ZP,JP,eD=(0,Me.Ay)(Et).withConfig({displayName:"StyledAddRemoveButton"})(GP||(GP=je()(["\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"])),He.hs.space(-2.5),(function(e){return e.active?He.t7.color("paper"):He.t7.color("hoverInteractiveIcon")})),tD=Me.Ay.div.withConfig({displayName:"StyledMenuWrapper"})(KP||(KP=je()(["\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"])),He.hs.space(-1),(function(e){return e.active?He.t7.color("paper"):He.t7.color("hoverInteractiveIcon")})),nD=(Me.Ay.div.withConfig({displayName:"StyleButtonWrapper"})($P||($P=je()(["\n display: flex;\n "," button,\n "," * {\n color: transparent;\n }\n"])),tD,eD),(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledButtonLabel"})(XP||(XP=je()(["\n flex-grow: 1;\n"]))));Me.Ay.div.withConfig({displayName:"StyledSidepanelHorizontalButton"})(QP||(QP=je()(["\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"])),He.t7.radii("button"),(function(e){return e.active&&He.t7.color("secondary")}),DP,(function(e){return e.active&&He.t7.color("paper")}),!He.CN&&(0,Me.AH)(ZP||(ZP=je()(["\n &:hover {\n ",",\n "," button,\n "," * {\n color: ",";\n }\n background-color: ",";\n cursor: pointer;\n }\n "])),nD,tD,eD,He.t7.color("paper"),(function(e){return!e.active&&He.t7.color("secondaryLight")})),He.CN&&(0,Me.AH)(JP||(JP=je()(["\n ",",\n "," button,\n "," * {\n color: ",";\n }\n "])),nD,tD,eD,He.t7.color("secondary")));var rD;function oD(e,t,n){return t=Ee()(t),ke()(e,iD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function iD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iD=function(){return!!e})()}var aD=function(e){function t(e){var n;return be()(this,t),(n=oD(this,t,[e])).state={hasError:!1,error:null},n}return De()(t,e),xe()(t,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?rD||(rD=(0,Ke.jsx)(Ir,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(p.Component);const sD=aD;me(null,{logError:d})((0,f.injectIntl)(sD));var cD=c(66245),uD=c.n(cD);function lD(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var dD=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),fD=()=>Math.random().toString(36).substring(7).split("").join("."),pD={INIT:`@@redux/INIT${fD()}`,REPLACE:`@@redux/REPLACE${fD()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fD()}`};function hD(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function mD(e,t,n){if("function"!=typeof e)throw new Error(lD(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(lD(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(lD(1));return n(mD)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,c=!1;function u(){a===i&&(a=new Map,i.forEach(((e,t)=>{a.set(t,e)})))}function l(){if(c)throw new Error(lD(3));return o}function d(e){if("function"!=typeof e)throw new Error(lD(4));if(c)throw new Error(lD(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(c)throw new Error(lD(6));t=!1,u(),a.delete(n),i=null}}}function f(e){if(!hD(e))throw new Error(lD(7));if(void 0===e.type)throw new Error(lD(8));if("string"!=typeof e.type)throw new Error(lD(17));if(c)throw new Error(lD(9));try{c=!0,o=r(o,e)}finally{c=!1}return(i=a).forEach((e=>{e()})),e}f({type:pD.INIT});return{dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(lD(10));r=e,f({type:pD.REPLACE})},[dD]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(lD(11));function n(){const e=t;e.next&&e.next(l())}n();return{unsubscribe:e(n)}},[dD](){return this}}}}}function gD(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:pD.INIT}))throw new Error(lD(12));if(void 0===n(void 0,{type:pD.PROBE_UNKNOWN_ACTION()}))throw new Error(lD(13))}))}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],c=n[s],u=e[s],l=c(u,t);if(void 0===l){t&&t.type;throw new Error(lD(14))}a[s]=l,i=i||l!==u}return i=i||r.length!==Object.keys(e).length,i?a:e}}function vD(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yD(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wD=function(e,t){var n=bD(bD({},e.allReducers),t),r=gD(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n},xD=c(63560),OD=c.n(xD);function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const SD=function(e,t){return function(n,r){var o=r.payload[e],i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kD(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return OD()(i,t?t+"."+e:e,o),i}},ED=function(e,t){var n=uD()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=bD(bD({},e.allReducers),Dy()(t,n));wD(e,r)}},PD=wD;function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DD(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ve()({},l,(function(e,t){var n=t.payload,r=n.title,o=n.description,i=n.error,a=n.dateTime;return _D(_D({},e),{},{messages:[{title:r,description:o,error:i,dateTime:a}].concat(Ht()(e.messages)).slice(0,100)})}));var CD="EMIT_ACTION",TD="DISPATCH_EMITTED_ACTION",jD=r().mark(AD);function AD(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO([uk(CD,MD,e),uk(TD,ID)]);case 2:case"end":return t.stop()}}),jD)}function MD(e,t){var n=t.payload;return r().mark((function t(){var o,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.action,t.next=3,nk(e);case 3:if(!(i=t.sent)){t.next=7;break}return t.next=7,ek(i,o);case 7:case"end":return t.stop()}}),t)}))()}function ID(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,QO(n);case 3:case"end":return e.stop()}}),e)}))()}const ND={emitAction:function(e){return{type:CD,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:TD,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run(AD,t)}};function RD(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}var LD=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=RD(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),RD(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));const FD=LD;function HD(e,t,n){return t=Ee()(t),ke()(e,BD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function BD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BD=function(){return!!e})()}const WD=function(e){function t(){return be()(this,t),HD(this,t,arguments)}return De()(t,e),xe()(t)}(FD);function UD(e,t,n){return t=Ee()(t),ke()(e,YD()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function YD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YD=function(){return!!e})()}const VD=function(e){function t(){return be()(this,t),UD(this,t,arguments)}return De()(t,e),xe()(t)}(FD);var zD=c(23805),qD=c.n(zD),GD=c(23181),KD=c.n(GD),$D=c(40860),XD=c.n($D),QD=c(73357),ZD=c.n(QD),JD=c(1882),e_=c.n(JD);const t_=function(){return window.app&&e_()(window.app.getRunEnv)?window.app.getRunEnv():"PRODUCTION"};var n_="meta",r_="tocco.cache",o_=function(e,t){return"".concat(r_,".").concat(e,".").concat(t)},i_={},a_=function(e,t){i_[e]=t},s_=function(e,t,n){return u_(e,t,n,a_)},c_=function(e,t,n){return u_(e,t,n,(r=localStorage,function(e,t){return r.setItem(e,JSON.stringify(t))}));var r},u_=function(e,t,n,r){return"PRODUCTION"!==t_()?null:r(o_(e,t),n)},l_=function(e,t){return i_[o_(e,t)]},d_=function(e,t){return f_(e,t,localStorage)},f_=function(e,t,n){var r=n.getItem(o_(e,t));if(r)return JSON.parse(r)},p_=function(e,t,n){return n.removeItem(o_(e,t))},h_=function(){s.A.log("cache - object cache invalidated"),Object.keys(i_).forEach((function(e){return ZD()(i_,e)}))},m_=function(){s.A.log("cache - long term cache invalidated"),g_(localStorage)},g_=function(e){Object.keys(e).filter((function(e){return e.startsWith(r_)&&!function(e){return e.startsWith("".concat(r_,".").concat(n_))}(e)})).forEach((function(t){return e.removeItem(t)}))};const v_={addObjectCache:s_,addLongTerm:c_,getObjectCache:l_,getLongTerm:d_,removeObjectCache:function(e,t){return ZD()(i_,o_(e,t))},removeLongTerm:function(e,t){return p_(e,t,localStorage)},clearObjectCache:h_,clearLongTerm:m_,getLongTermMetaInfo:function(){return{revision:d_(n_,"revision")}},setLongTermMetaInfo:function(e){var t=e.revision;c_(n_,"revision",t||"")},getObjectCacheMetaInfo:function(){return{locale:l_(n_,"locale"),businessUnitId:l_(n_,"businessUnitId"),username:l_(n_,"username")}},setObjectCacheMetaInfo:function(e){var t=e.locale,n=e.businessUnitId,r=e.username;s_(n_,"locale",t||""),s_(n_,"businessUnitId",n||""),s_(n_,"username",r||"")}};var y_=c(60991),b_=c(99208);function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w_(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O_=["de","fr","en","it"],k_=function(){var e=t()(r().mark((function e(t,n,o){var i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=o){e.next=5;break}return e.next=4,E_();case 4:i=e.sent;case 5:return e.next=7,S_(n,i);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)}}(),S_=function(){var e=t()(r().mark((function e(t,n){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D_(n,t);case 2:return o=e.sent,e.abrupt("return",(0,y_.D6)({locale:n.replace("_","-"),messages:o}));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E_=function(){var e=t()(r().mark((function e(){var t,n,o,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=v_.getObjectCacheMetaInfo(),!(n=t.locale)){e.next=3;break}return e.abrupt("return",n);case 3:return e.next=5,P_();case 5:return o=e.sent,i=o.locale,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P_=function(){var e=t()(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b_.A.executeRequest("username").then(b_.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=O_.includes(o)?o:"en"),e.abrupt("return",x_(x_({},t),{},{locale:n}));case 6:case"end":return e.stop()}var r,o}),e)})));return function(){return e.apply(this,arguments)}}(),D_=function(){var e=t()(r().mark((function e(t,n){var o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},i=[],n.forEach((function(e){var n=v_.getLongTerm("textResource","".concat(t,".").concat(e));n?o=x_(x_({},o),n):i.push(e)})),!(i.length>0)){e.next=8;break}return e.next=6,__(t,i);case 6:a=e.sent,i.forEach((function(e){var n=Object.keys(a).filter((function(t){return t.match(new RegExp("^client\\."+e+".*","g"))})).reduce((function(e,t){return x_(x_({},e),{},Ve()({},t,a[t]))}),{});v_.addLongTerm("textResource","".concat(t,".").concat(e),n),o=x_(x_({},o),n)}));case 8:return e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),__=function(e,t){var n="".concat(t.join(",")),r=n?"&module=".concat(n):"",o="textresource?locale=".concat(e).concat(r);return b_.A.executeRequest(o).then(b_.A.extractBody)};const C_={initIntl:k_,getChangeLocaleAction:S_,localeSelector:function(e){return e.intl.locale},loadUserWithLocale:P_,getUserLocale:E_};var T_=c(93419);function j_(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const A_=j_;var M_=[],I_=0;function N_(e){try{F_(),e()}finally{H_()}}function R_(e){M_.push(e),I_||(F_(),B_())}function L_(e){try{return F_(),e()}finally{B_()}}function F_(){I_++}function H_(){I_--}function B_(){var e;for(H_();!I_&&void 0!==(e=M_.shift());)N_(e)}var W_=function(e){return function(t){return e.some((function(e){return q_(e)(t)}))}},U_=function(e){return function(t){return e(t)}},Y_=function(e){return function(t){return t.type===String(e)}},V_=function(e){return function(t){return t.type===e}},z_=function(){return dO};function q_(e){var t="*"===e?z_:tO(e)?Y_:nO(e)?W_:sO(e)?Y_:eO(e)?U_:cO(e)?V_:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var G_={type:Wx},K_=function(e){return e&&e.type===Wx};function $_(e){void 0===e&&(e=MO());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(G_):e.isEmpty()?(n.push(r),r.cancel=function(){mO(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(G_):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(G_)}}}}}function X_(){var e=function(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(G_)}))};return(e={})[Vx]=!0,e.put=function(e){if(!t)if(K_(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var c=o[a];c[Yx](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=z_),t?e(G_):(e[Yx]=n,o(),r.push(e),e.cancel=gO((function(){o(),mO(r,e)})))},e.close=i,e}(),t=e.put;return e.put=function(e){e[zx]?t(e):R_((function(){t(e)}))},e}var Q_=0,Z_=1,J_=2,eC=3;function tC(e,t){var n=e[Bx];eO(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var nC,rC=0,oC=function(){return++rC};function iC(e){e.isRunning()&&e.cancel()}var aC=((nC={})[IO]=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!K_(e)||a?n(e):n($x)};try{o.take(s,Jx(i)?q_(i):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},nC[NO]=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;R_((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}i&&rO(t)?tC(t,n):n(t)}))},nC[RO]=function(e,t,n,r){var o=r.digestEffect,i=rC,a=Object.keys(t);if(0!==a.length){var s=PO(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n(nO(t)?[]:{})},nC[LO]=function(e,t,n,r){var o=r.digestEffect,i=rC,a=Object.keys(t),s=nO(t)?xO(a.length):{},c={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||EO(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,s[e]=t,n(s)))};t.cancel=fO,c[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return c[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,c[e],e)}))},nC[FO]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var c=i.apply(o,a);if(rO(c))return void tC(c,n);if(oO(c))return void vC(e,c,s.context,rC,DO(i),!1,n);n(c)}catch(e){n(e,!0)}},nC[HO]=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){Zx(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},nC[BO]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,c=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(oO(o))return o;var i=!1;return bO((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!rO(o)})}))}catch(e){return bO((function(){throw e}))}}({context:o,fn:i,args:a}),l=function(e,t){return e.isSagaIterator?{name:e.meta.name}:DO(t)}(u,i);L_((function(){var t=vC(e,u,c.context,rC,l,s,void 0);s?n(t):t.isRunning()?(c.queue.addTask(t),n(t)):t.isAborted()?c.queue.abort(t.error()):n(t)}))},nC[WO]=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&mO(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(nO(t)){if(0===t.length)return void n([]);var a=PO(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},nC[UO]=function(e,t,n,r){var o=r.task;t===qx?iC(o):nO(t)?t.forEach(iC):iC(t),n()},nC[YO]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},nC[VO]=function(e,t,n){var r=t.pattern,o=$_(t.buffer),i=q_(r),a=function t(n){K_(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},nC[zO]=function(e,t,n,r){n(r.task.isCancelled())},nC[qO]=function(e,t,n){t.flush(n)},nC[GO]=function(e,t,n,r){n(r.task.context[t])},nC[KO]=function(e,t,n,r){var o=r.task;hO(o.context,t),n()},nC);function sC(e,t){return e+"?"+t}function cC(e){var t=e.name,n=e.location;return n?t+" "+sC(n.fileName,n.lineNumber):t}function uC(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var lC=null,dC=[],fC=function(e){e.crashedEffect=lC,dC.push(e)},pC=function(){lC=null,dC.length=0},hC=function(e){lC=e},mC=function(){var e=dC[0],t=dC.slice(1),n=e.crashedEffect?function(e){var t=_O(e);return t?t.code+" "+sC(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+cC(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+cC(e.meta)})),[uC(dC)]).join("\n")};function gC(e,t,n,r,o,i,a){var s;void 0===a&&(a=fO);var c,u,l=Q_,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),c(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,c){i||(mO(o,t),t.cont=fO,c?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function c(){i||(i=!0,o.forEach((function(e){e.cont=fO,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:c,abort:a,getTasks:function(){return o}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(l=J_,fC({meta:o,cancelledTasks:f}),g.isRoot){var r=mC();pC(),e.onError(t,{sagaStack:r})}u=t,d&&d.reject(t)}else t===Kx?l=Z_:l!==Z_&&(l=eC),c=t,d&&d.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[Gx]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){l===Q_&&(l=Z_,h.cancelAll(),m(Kx,!1))},s.cont=a,s.end=m,s.setContext=function(e){hO(p,e)},s.toPromise=function(){return d||(d=A_(),l===J_?d.reject(u):l!==Q_&&d.resolve(c)),d.promise},s.isRunning=function(){return l===Q_},s.isCancelled=function(){return l===Z_||l===Q_&&t.status===Z_},s.isAborted=function(){return l===J_},s.result=function(){return c},s.error=function(){return u},s);return g}function vC(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){if(rO(t))tC(t,r);else if(oO(t))vC(e,t,u.context,n,o,!1,r);else if(t&&t[Ux]){(0,aC[t.type])(e,t.payload,r,l)}else r(t)}));d.cancel=fO;var c={meta:o,cancel:function(){c.status===Q_&&(c.status=Z_,d(Kx))},status:Q_},u=gC(e,c,n,r,o,i,a),l={task:u,digestEffect:f};return a&&(a.cancel=u.cancel),d(),u;function d(e,n){try{var o;n?(o=t.throw(e),pC()):SO(e)?(c.status=Z_,d.cancel(),o=eO(t.return)?t.return(Kx):{done:!0,value:Kx}):o=kO(e)?eO(t.return)?t.return():{done:!0}:t.next(e),o.done?(c.status!==Z_&&(c.status=eC),c.cont(o.value)):f(o.value,r,d)}catch(e){if(c.status===Z_)throw e;c.status=J_,c.cont(e,!0)}}function f(t,n,r,o){void 0===o&&(o="");var i,a=oC();function c(n,o){i||(i=!0,r.cancel=fO,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&hC(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),c.cancel=fO,r.cancel=function(){i||(i=!0,c.cancel(),c.cancel=fO,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,c)}}function yC(e,t){var n=e.channel,r=void 0===n?X_():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,c=e.sagaMonitor,u=e.effectMiddlewares,l=e.onError,d=void 0===l?wO:l;for(var f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var m=t.apply(void 0,p);var g,v=oC();if(c&&(c.rootSagaStarted=c.rootSagaStarted||fO,c.effectTriggered=c.effectTriggered||fO,c.effectResolved=c.effectResolved||fO,c.effectRejected=c.effectRejected||fO,c.effectCancelled=c.effectCancelled||fO,c.actionDispatched=c.actionDispatched||fO,c.rootSagaStarted({effectId:v,saga:t,args:p})),u){var y=CO.apply(void 0,u);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=pO;var b={channel:r,dispatch:OO(o),getState:i,sagaMonitor:c,onError:d,finalizeRunEffect:g};return L_((function(){var e=vC(b,m,s,v,DO(t),!0,void 0);return c&&c.effectResolved(v,e),e}))}const bC=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?X_():i,s=n.sagaMonitor,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=yC.bind(null,Qx({},c,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){hO(o,e)},u},wC=bC;function xC(e,t,n){return t=Ee()(t),ke()(e,OC()?Reflect.construct(t,n||[],Ee()(e).constructor):t.apply(e,n))}function OC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OC=function(){return!!e})()}var kC=function(e){function t(e){var n;return be()(this,t),(n=xC(this,t)).message=e,n}return De()(t,e),xe()(t)}(FD);const SC=kC;function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EC(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var DC=412,_C=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 SC(e.body.information);var r="".concat(e.statusText," ").concat(e.body?e.body.message:"");throw new Error(r)}return e},CC=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,i={ok:n,headers:r,status:o,statusText:e.statusText};return 204===o?PC(PC({},i),{},{body:null}):t(e).then((function(e){return PC(PC({},i),{},{body:e})})).catch((function(e){return PC(PC({},i),{},{body:null})}))},TC=function(e){return CC(e,(function(e){return e.blob()}))},jC=function(e){return PC(PC({},e),{},{referrerPolicy:"no-referrer-when-downgrade",signal:fk.abortController.signal})};function AC(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(DC),fetch(e,jC(t)).then((function(e){return CC(e)})).then((function(e){return _C(e,n,r)}))}function MC(e,t,n,r){return fetch(e,jC(t)).then((function(e){return TC(e)})).then((function(e){return _C(e,n,r)}))}var IC=r().mark(HC),NC=r().mark(WC),RC=r().mark(UC),LC={ConfirmQuestionHandler:WC,YesNoQuestionHandler:UC};function FC(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.addBlockingInfoAction,a=o.removeBlockingInfoAction;return r().mark((function o(){var s,c;return r().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:s={};case 3:if(!e.body||!e.body.clientQuestion){r.next=26;break}return r.next=6,ek(HC,e.body.clientQuestion);case 6:if(null!=(c=r.sent).answer){r.next=13;break}if(!n.returnCancelledClientQuestion){r.next=12;break}return r.abrupt("return",e);case 12:throw new WD("Client question cancelled by user");case 13:if(s[e.body.clientQuestion.id]=c.answer,t.options.body=JSON.stringify({clientAnswers:s,payload:n.body}),!i){r.next=18;break}return r.next=18,QO(i);case 18:return r.next=20,ek(AC,t.url,t.options,n.acceptedErrorCodes,n.acceptedStatusCodes);case 20:if(e=r.sent,!a){r.next=24;break}return r.next=24,QO(a);case 24:r.next=3;break;case 26:return r.abrupt("return",e);case 27:case"end":return r.stop()}}),o)}))()}function HC(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t=LC[e.handler])){n.next=5;break}return n.next=4,ek(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()}}),IC)}var BC=function(e){return{answer:e}};function WC(e){var t,n,o,i,a,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek($_);case 2:return t=r.sent,n=function(){return t.put(BC(!0))},o=function(){return t.put(BC(null))},i=e.header,a=e.message,s=e.okText,c=e.cancelText,r.next=8,QO(yR.confirm(i,a,s,c,n,o));case 8:return r.next=10,XO(t);case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}}),NC)}function UC(e){var t,n,o,i,a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek($_);case 2:return t=r.sent,n=function(){return t.put(BC(!0))},o=function(){return t.put(BC(!1))},i=function(){return t.put(BC(null))},a=e.header,s=e.message,c=e.yesText,u=e.noText,r.next=9,QO(yR.yesNoQuestion(a,s,c,u,n,o,i));case 9:return r.next=11,XO(t);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),RC)}function YC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YC(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zC=r().mark(KC),qC=r().mark(XC),GC=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 KC(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof SC)){t.next=5;break}return t.next=3,QO(yR.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()}}),zC)}function $C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().mark((function n(){var o,i,a,s,c;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek(XC,t);case 2:return n.next=4,ek(QC,e,t);case 4:return o=n.sent,n.next=7,ek(ZC,t);case 7:if(i=n.sent,a=i.addBlockingInfoAction,s=i.removeBlockingInfoAction,n.prev=9,!a){n.next=13;break}return n.next=13,QO(a);case 13:return n.next=15,ek(AC,o.url,o.options,t.acceptedErrorCodes,t.acceptedStatusCodes);case 15:if(c=n.sent,!s){n.next=19;break}return n.next=19,QO(s);case 19:return n.next=21,ek(FC,c,o,t,i);case 21:return c=n.sent,n.abrupt("return",c);case 25:if(n.prev=25,n.t0=n.catch(9),!s){n.next=30;break}return n.next=30,QO(s);case 30:return n.next=32,KC(n.t0);case 32:return n.abrupt("return",{});case 33:case"end":return n.stop()}}),n,null,[[9,25]])}))()}function XC(e){var t,n;return r().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,nk(C_.localeSelector);case 3:n=r.sent,e.queryParams=VC(VC({},e.queryParams),{},{locale:n});case 5:return r.abrupt("return",e);case 6:case"end":return r.stop()}}),qC)}function QC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.queryParams,r=void 0===n?{}:n,o=t.method,i=void 0===o?"GET":o,a=t.backendUrl,s=void 0===a?Pb.A.getBackendUrl():a,c=b_.A.prepareHeaders(t),u=t.body;!u||u instanceof FormData||"string"==typeof u||(u=JSON.stringify(u));var l=VC({method:i,headers:c,credentials:"include"},u?{body:u}:{}),d=GC(r),f=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")||t.startsWith("nice2")?b_.A.prepareUrl(e,t):"".concat(e,"/nice2/rest/").concat(t)}(s,e);return{url:"".concat(f).concat(d),options:l}}function ZC(e){var t=e.blockingInfoTitle;return r().mark((function e(){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}return e.next=3,ek(T_.v4);case 3:return n=e.sent,o=t,i=yR.blockingInfo(n,o),a=yR.removeBlockingInfo(n),e.abrupt("return",{addBlockingInfoAction:i,removeBlockingInfoAction:a});case 10:return e.abrupt("return",{});case 11:case"end":return e.stop()}}),e)}))()}var JC=r().mark(nT),eT=r().mark(rT),tT=r().mark(oT);function nT(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek($C,"client/settings");case 2:return e=n.sent,t=Br()(e.body,["_links"]),n.abrupt("return",t);case 5:case"end":return n.stop()}}),JC)}function rT(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek($C,"client/settings");case 2:return e=n.sent,t=Br()(e.body,["_links"]),n.abrupt("return",t.niceRevision);case 5:case"end":return n.stop()}}),eT)}function oT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=v_.getObjectCache("server","maxLimit"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,ek(nT);case 7:return t=r.sent,n=t.maxLimit,v_.addObjectCache("server","maxLimit",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),tT)}var iT=r().mark(yT),aT=r().mark(bT),sT=r().mark(wT),cT=r().mark(DT),uT=r().mark(NT),lT=r().mark(RT),dT=r().mark(LT),fT=r().mark(FT),pT=r().mark(HT),hT=r().mark(BT);function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mT(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vT="nice2.web.core.useSelectorsByDefault";function yT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=v_.getLongTerm("server","useSelectorsByDefault"))){r.next=5;break}return r.abrupt("return",e);case 5:return r.next=7,ek($C,"client/property",{method:"POST",body:{propertyNames:[vT]}});case 7:return t=r.sent,n=t.body.loadedProperties[vT],v_.addLongTerm("server","useSelectorsByDefault",n),r.abrupt("return",n);case 11:case"end":return r.stop()}}),iT)}function bT(e,t){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET",queryParams:{_omitLinks:!0}},r.prev=1,r.next=4,ek($C,"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()}}),aT,null,[[1,7]])}function wT(e,t,n,o,i){var a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",queryParams:{_paths:o.join(",")},body:{entityName:i,type:"ID",ids:n}},r.next=3,ek($C,"forms/".concat(e,"_").concat(t,"/display-expressions"),a);case 3:return s=r.sent,r.abrupt("return",s.body.displayExpressions.reduce((function(e,t){return gT(gT({},e),{},Ve()({},t.key,t.displayExpressions))}),{}));case 5:case"end":return r.stop()}}),sT)}var xT=function(e,t,n){var r=n?".".concat(n):"";return"".concat(e,".").concat(t).concat(r)};function OT(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r().mark((function o(){var i,a;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object.entries(e).map((function(e){var n=et()(e,2),r=n[0],o=n[1];return{model:r,keys:o.filter((function(e){return void 0===v_.getObjectCache("display",xT(r,e,t))})),displays:o.map((function(e){return{key:e,display:v_.getObjectCache("display",xT(r,e,t))}})).filter((function(e){return void 0!==e.display}))}})),r.next=3,ST(i,t,n);case 3:return a=r.sent,r.abrupt("return",i.reduce((function(e,t){var n=t.model,r=t.displays;return gT(gT({},e),{},Ve()({},n,gT(gT({},e[n]),r.reduce((function(e,t){var n=t.key,r=t.display;return gT(gT({},e),{},Ve()({},n,r))}),{}))))}),a));case 5:case"end":return r.stop()}}),o)}))()}function kT(e,t){Object.entries(e).forEach((function(e){var n=et()(e,2),r=n[0];n[1].forEach((function(e){return v_.removeObjectCache("display",xT(r,e,t))}))}))}function ST(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r().mark((function o(){var i,a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((i=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:i},queryParams:{_ignoreFallback:n}},s=t?"/".concat(t):"",r.next=6,ek($C,"entities/2.0/displays".concat(s),a);case 6:return c=r.sent,u=c.body.data.reduce((function(e,t){var n=t.model,r=t.values;return gT(gT({},e),{},Ve()({},n,r.reduce((function(e,t){var n=t.key,r=t.display;return gT(gT({},e),{},Ve()({},n,r))}),{})))}),{}),Object.entries(u).forEach((function(e){var n=et()(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=et()(e,2),o=n[0],i=n[1];v_.addObjectCache("display",xT(r,o,t),i)}))})),r.abrupt("return",u);case 12:return r.abrupt("return",{});case 13:case"end":return r.stop()}}),o)}))()}function ET(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r().mark((function o(){var i,a,s,c,u,l,d;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n.method,a=void 0===i?"POST":i,s=n.endpoint,r.next=3,ek(jT,t);case 3:return c=r.sent,u=(s||"entities/2.0/".concat(e))+"/count",l=gT({method:a},"GET"===a?{queryParams:MT(c)}:{body:c}),r.next=8,ek($C,u,l);case 8:return d=r.sent,r.abrupt("return",d.body.count);case 10:case"end":return r.stop()}}),o)}))()}function PT(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:TT;return r().mark((function a(){var s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=gT({method:e,queryParams:gT({_omitLinks:!0,_allKeys:t},"GET"===e&&MT(n))},"POST"===e&&{body:n}),r.next=3,ek($C,o,s);case 3:return c=r.sent,r.next=6,ek(i,c.body);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),a)}))()}function DT(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek($C,"client/searchfilters/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.filters);case 4:case"end":return n.stop()}}),cT)}var _T=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]=gT({},e)})),e.relations.forEach((function(e){t.paths[e.relationName]=gT({type:"relation"},e)})),t},CT=function(e){return e.form},TT=function(e){return e.data},jT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.conditions,n=e.fields,r=e.form,o=e.limit,i=e.search,a=e.sorting,s=e.page,c=e.paths,u=e.where,l=e.relations,d=e.filter,f=e.keys,p=e.constriction;return gT(gT(gT(gT(gT(gT(gT(gT(gT(gT(gT(gT(gT({},t?{conditions:t}:{}),Array.isArray(n)?{fields:0===n.length?"!":n}:{}),r?{form:r}:{}),o?{limit:o}:{}),i?{search:i}:{}),a?{sort:AT(a)}:{}),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(", ")},MT=function(e){return XD()(e,(function(e,t,n){var r={};return"conditions"===n?r=IT(t):r["_"+n]=Array.isArray(t)?t.join(","):t,gT(gT({},e),r)}),{})},IT=function(e){return XD()(e,(function(e,t,n){return gT(gT({},e),{},Ve()({},n,qD()(t)&&t.value?t.value:t))}),{})};function NT(){var e,t,n,o,i;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek($C,"principals");case 2:return e=r.sent,t=e.body,n=t.username,o=t.businessUnit,i={username:n,currentBusinessUnit:o},r.abrupt("return",i);case 6:case"end":return r.stop()}}),uT)}function RT(e){var t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:{selection:e}},r.next=3,ek($C,"client/markings",t);case 3:return n=r.sent,r.abrupt("return",n.body.markings);case 5:case"end":return r.stop()}}),lT)}function LT(e,t){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"GET"},r.next=3,ek($C,"client/markings/".concat(e,"/").concat(t),n);case 3:return o=r.sent,r.abrupt("return",o.body.marked);case 5:case"end":return r.stop()}}),dT)}function FT(e,t,n){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={method:"PATCH",body:{marked:n}},r.next=3,ek($C,"client/markings/".concat(e,"/").concat(t),o);case 3:case"end":return r.stop()}}),fT)}function HT(e,t){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={method:"POST",body:{selection:e,marked:t}},r.next=3,ek($C,"client/markings",n);case 3:return o=r.sent,r.abrupt("return",o.body.markings);case 5:case"end":return r.stop()}}),pT)}function BT(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e=v_.getLongTerm("server","locales"))){r.next=3;break}return r.abrupt("return",e);case 3:return r.next=5,ek($C,"locales");case 5:return t=r.sent,n=t.body.locales,v_.addLongTerm("server","locales",n),r.abrupt("return",n);case 9:case"end":return r.stop()}}),hT)}var WT=r().mark(VT),UT=r().mark(zT),YT=r().mark(qT);function VT(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek($C,"client/preferences".concat(e?"/"+e:""));case 2:return t=n.sent,n.abrupt("return",t.body.preferences);case 4:case"end":return n.stop()}}),WT)}function zT(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ek($C,"client/preferences/".concat(e),{method:"DELETE"});case 2:case"end":return t.stop()}}),UT)}function qT(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek($C,"client/settings/reset",{method:"POST"});case 2:case"end":return e.stop()}}),YT)}const GT={requestSaga:$C,requestBytesSaga:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().mark((function n(){var o;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek(XC,t);case 2:return n.next=4,ek(QC,e,t);case 4:return o=n.sent,n.prev=5,n.next=8,ek(MC,o.url,o.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,KC(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=QC(e,t);return AC(n.url,n.options,t.acceptedErrorCodes,t.acceptedStatusCodes)},ClientQuestionCancelledException:WD,ForbiddenException:VD,InformationError:SC,fetchEntity:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e};return r().mark((function a(){var s,c,u,l,d,f,p,h;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek(yT);case 2:return s=r.sent,c=o.method,u=void 0===c?"POST":c,l=o.useSelectors,d=void 0===l?s:l,r.next=6,ek(jT,n);case 6:return f=r.sent,p=gT({method:u,queryParams:gT({_omitLinks:!0,_useSelectors:d},"GET"===u&&gT(gT({},MT(f)),{},{_permissions:!0}))},"POST"===u&&{body:gT(gT({},f),{},{permissions:!0})}),r.next=10,ek($C,"entities/2.0/".concat(e,"/").concat(t),p);case 10:return h=r.sent,r.next=13,ek(i,h.body);case 13:return r.abrupt("return",r.sent);case 14:case"end":return r.stop()}}),a)}))()},fetchAllEntities:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:TT;return r().mark((function i(){var a,s,c,u,l,d,f,p,h,m;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek(oT);case 2:return a=r.sent,s=n.method,c=void 0===s?"POST":s,u=n.endpoint,l=n.allKeys,r.next=6,ek(ET,e,t,n);case 6:return d=r.sent,f=l?1:Math.ceil(d/a),p=u||"entities/2.0/".concat(e).concat("POST"===c?"/search":""),h=KD()(f).map((function(e){return e+1})).map((function(e){return gT(gT({},t),{},{page:e,limit:a})})).map(jT).map((function(e){return ek(PT,c,l,e,p,o)})),r.next=12,ZO(h);case 12:return m=r.sent,r.abrupt("return",m.reduce((function(e,t){return[].concat(Ht()(e),Ht()(t))}),[]));case 14:case"end":return r.stop()}}),i)}))()},fetchEntitiesPage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:TT;return r().mark((function i(){var a,s,c,u,l,d;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.method,s=void 0===a?"POST":a,c=n.endpoint,u=n.allKeys,r.next=3,ek(jT,t);case 3:return l=r.sent,d=c||"entities/2.0/".concat(e).concat("POST"===s?"/search":""),r.next=7,ek(PT,s,u,l,d,o);case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),i)}))()},fetchDisplay:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r().mark((function i(){return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=fo(),r.next=3,OT(Ve()({},e,[t]),n,o);case 3:return r.t1=r.sent,r.t2="".concat(e,".").concat(t),r.abrupt("return",(0,r.t0)(r.t1,r.t2,null));case 6:case"end":return r.stop()}}),i)}))()},invalidateDisplay:function(e,t,n){kT(Ve()({},e,[t]),n)},fetchDisplays:OT,invalidateDisplays:kT,fetchDisplayExpressions:wT,fetchForm:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return r().mark((function i(){var a,s,c,u;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===o&&(o="create"===t),a="".concat(e,"/").concat(t),void 0===v_.getObjectCache("forms",a)||o){r.next=4;break}return r.abrupt("return",v_.getObjectCache("forms",a));case 4:return s=gT(gT({},["create","search"].includes(t)?{queryParams:{_display:!0}}:{}),n&&{acceptedStatusCodes:[404]}),r.next=7,ek($C,"forms/".concat(a),s);case 7:if(c=r.sent,!n||404!==c.status){r.next=11;break}return v_.addObjectCache("forms",a,null),r.abrupt("return",null);case 11:return r.next=13,ek(CT,c.body);case 13:return u=r.sent,v_.addObjectCache("forms",a,u),r.abrupt("return",u);case 16:case"end":return r.stop()}}),i)}))()},fetchModel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_T;return r().mark((function n(){var o,i,a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(o=v_.getObjectCache("model",e))){n.next=3;break}return n.abrupt("return",o);case 3:return n.next=5,ek($C,"entities/".concat(e,"/model"));case 5:return i=n.sent,n.next=8,ek(t,i.body);case 8:return a=n.sent,v_.addObjectCache("model",e,a),n.abrupt("return",a);case 11:case"end":return n.stop()}}),n)}))()},defaultModelTransformer:_T,fetchEntityCount:ET,fetchSearchFilters:DT,buildRequestQuery:jT,requestQueryToUrlParams:MT,fetchPrincipal:NT,fetchUserPreferences:VT,deleteUserPreferences:zT,savePreferences:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/nice2/ui/settings";return r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek($C,"client/preferences",{method:"PATCH",body:{path:t,values:e}});case 2:case"end":return n.stop()}}),n)}))()},resetAllPreferences:qT,fetchServerSettings:nT,fetchServerRevision:rT,fetchServerMaxLimit:oT,createSortingString:AT,fetchMarkings:RT,fetchMarked:LT,setMarked:FT,setSelectionMarked:HT,entityExists:bT,fetchLocales:BT};var KT={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},$T={outputjob:"OUTPUTJOB",entities:"ENTITIES"},XT=Ve()(Ve()(Ve()(Ve()(Ve()({},KT.neutral,null),KT.error,"times-circle"),KT.warning,"exclamation-circle"),KT.success,"check-circle"),KT.info,"info-circle"),QT=(Ce().shape({key:Ce().string.isRequired,message:Ce().string,read:Ce().bool,timestamp:Ce().string,originId:Ce().string,type:Ce().string,taskProgress:Ce().shape({taskExecutionKey:Ce().string.isRequired,status:Ce().string,message:Ce().string,percentage:Ce().number,done:Ce().number,total:Ce().number,supportsCancellation:Ce().bool,isRunning:Ce().bool})}),r().mark(aj)),ZT=r().mark(sj);function JT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JT(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tj={failed:"error",info:"info",warning:"warning",success:"success"},nj="running_infinite",rj="running_absolute",oj="pending",ij=function(e){return e.status&&(e.status===oj||e.status===rj||e.status===nj)};function aj(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=ej(ej({},e),{},{type:tj[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?ej(ej({},e.taskProgress),{},{isRunning:ij(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,ek(sj,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),QT)}function sj(e){var t,n,o,i,a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||e.type!==$T.outputjob){r.next=14;break}return t=null,r.prev=2,n=e.content[0].key,r.next=6,ek(GT.fetchEntity,"Output_job",n,{paths:["document"]});case 6:o=r.sent,i=o.paths.document.value,a=i.fileName,s=i.binaryLink,t={name:a,link:s,description:e.content[0].display},r.next=13;break;case 11:r.prev=11,r.t0=r.catch(2);case 13:return r.abrupt("return",ej(ej({},e),{},{file:t}));case 14:return r.abrupt("return",e);case 15:case"end":return r.stop()}}),ZT,null,[[2,11]])}var cj="notification/MODAL",uj="notification/REMOVE_MODAL",lj=function(e,t,n,r){return{type:cj,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(){}}}},dj=function(e){return{type:uj,payload:{id:e}}};const fj={MODAL:"MODAL",BLOCKER:"BLOCKING_INFO"};Ce().shape({id:Ce().string.isRequired,title:Ce().string,body:Ce().oneOfType([Ce().string,Ce().element]),type:Ce().oneOf(Object.values(fj))}),Ce().shape({id:Ce().oneOfType([Ce().string,Ce().number]).isRequired,title:Ce().oneOfType([Ce().string,Ce().node]),message:Ce().oneOfType([Ce().string,Ce().node]),component:Ce().func,cancelable:Ce().bool,cancelCallback:Ce().func,type:Ce().oneOf(Object.values(fj))});var pj,hj,mj=Me.Ay.div.withConfig({displayName:"StyledPageOverlay"})(pj||(pj=je()(["\n background-color: rgba(50 50 50 / 70%);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),gj=Me.Ay.div.withConfig({displayName:"StyledHolder"})(hj||(hj=je()(["\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"])));const vj=function(e){var t=e.children;return Am()(t)?function(e){return e&&/<\/?[a-zA-Z0-9]*\/?>/.test(e)}(t)?(0,Ke.jsx)(kw,{type:"html",value:t}):function(e){return e&&e.startsWith("client.")}(t)?(0,Ke.jsx)(f.FormattedMessage,{id:t}):(0,Ke.jsx)("span",{children:t}):t},yj=vj;var bj,wj;const xj={blockingDiplayStyles:(0,Me.AH)(bj||(bj=je()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),He.t7.color("signal.info"),He.t7.color("paper")),titleWrapperStyles:(0,Me.AH)(wj||(wj=je()(["\n color: ",";\n"])),He.t7.color("paper"))};var Oj,kj;const Sj={blockingDiplayStyles:(0,Me.AH)(Oj||(Oj=je()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),He.t7.color("paper"),He.t7.color("border"),He.t7.radii("toaster"),He.t7.color("text")),titleWrapperStyles:(0,Me.AH)(kj||(kj=je()(["\n color: ",";\n"])),He.t7.color("signal.info"))};var Ej,Pj,Dj=Ve()(Ve()({},Pb.A.EmbedType.admin,xj),Pb.A.EmbedType.widget,Sj),_j=Me.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(Ej||(Ej=je()(["\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}),He.hs.space(-.5),(function(e){return e.styles})),Cj=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Pj||(Pj=je()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),He.hs.font(1.5),He.t7.fontWeight("regular"),(function(e){return e.styles}));const Tj=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,i=Pb.A.embedStrategy({mapping:Dj});return(0,Ke.jsxs)(_j,{styles:i.blockingDiplayStyles,isLatest:o,children:[n&&(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)(Cj,{styles:i.titleWrapperStyles,children:(0,Ke.jsx)(yj,{children:n})})}),r&&(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(yj,{children:r})})]})};const jj=function(e){var t=e.blocker,n=e.isLatest;return(0,Ke.jsx)(Tj,{blocker:t,isLatest:n})};var Aj,Mj,Ij,Nj,Rj,Lj,Fj,Hj,Bj,Wj,Uj,Yj=He.hs.space(.5),Vj=Me.Ay.div.withConfig({displayName:"StyledModalContent"})(Aj||(Aj=je()(["\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"])),He.t7.color("paper"),He.t7.radii("modal"),Yj,Iw),zj=Me.Ay.button.withConfig({displayName:"StyledCloseButton"})(Mj||(Mj=je()(["\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"])),He.t7.color("text")),qj=Me.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Ij||(Ij=je()(["\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})),Gj=Me.Ay.div.withConfig({displayName:"StyledModalHeader"})(Nj||(Nj=je()(["\n grid-row-start: header;\n display: flex;\n"]))),Kj=Me.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(Rj||(Rj=je()(["\n padding-bottom: ",";\n"])),He.hs.space(.5)),$j=Me.Ay.div.withConfig({displayName:"StyledModalBody"})(Lj||(Lj=je()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),Xj=Me.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(Fj||(Fj=je()(["\n padding-bottom: ",";\n"])),He.hs.space(0)),Qj=(0,Me.Ay)(Et).withConfig({displayName:"StyledModalButton"})(Hj||(Hj=je()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),He.hs.space(0)),Zj=Me.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(Bj||(Bj=je()(["\n display: flex;\n justify-content: flex-end;\n"]))),Jj=(0,Me.DU)(Wj||(Wj=je()(["\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"])),nu);const eA=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,i=n.title,a=n.id,s=n.component,c=e.onClose,u=e.onCancel,l=e.isLatest,d=(0,p.useRef)(null),f=(0,p.useCallback)((function(){c(a)}),[c,a]),h=(0,p.useCallback)((function(){u(a)}),[u,a]);(0,p.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&h()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[h,r]),(0,p.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var m=(0,p.useMemo)((function(){return t||(t=(0,Ke.jsx)(s,{close:f}))}),[s,f]);return(0,Ke.jsxs)(Ke.Fragment,{children:[Uj||(Uj=(0,Ke.jsx)(Jj,{})),(0,Ke.jsx)(qj,{isLatest:l,children:(0,Ke.jsxs)(Vj,{ref:d,"data-cy":"modal-content",children:[(0,Ke.jsxs)(Gj,{children:[i&&(0,Ke.jsx)(Kj,{children:(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)(yj,{children:i})})}),r&&(0,Ke.jsx)(zj,{onClick:h,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,Ke.jsxs)($j,{children:[o&&(0,Ke.jsx)(Xj,{children:(0,Ke.jsx)(cr.Ay.Span,{children:(0,Ke.jsx)(yj,{children:o})})}),m]})]})})]})};const tA=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,Ke.jsx)(eA,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};const nA=me((function(){return{}}),{closeModal:dj})(tA);var rA;const oA=function(e){var t=e.overlays;return t.length>0&&aa().createPortal((0,Ke.jsxs)(gj,{className:Eu,children:[t.map((function(e,n){return function(e,t,n){return e.type===fj.MODAL?(0,Ke.jsx)(nA,{idx:t,modal:e,isLatest:n},t):e.type===fj.BLOCKER?(0,Ke.jsx)(jj,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),rA||(rA=(0,Ke.jsx)(mj,{}))]}),document.body)};const iA=me((function(e){return{overlays:e.notification.overlay.overlays}}),{closeModal:dj})(oA);var aA="notification/SET_UNREAD_NOTIFICATION_KEYS",sA="notification/UPDATE_UNREAD_NOTIFICATION",cA="notification/LOAD_NOTIFICATIONS",uA="notification/SET_NOTIFICATION",lA="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",dA="notification/UPDATE_NOTIFICATION",fA="notification/IS_LOADING_MORE_NOTIFICATIONS",pA="notification/MARK_AS_READ",hA="notification/CANCEL_TASK",mA=function(e){return{type:aA,payload:{unreadNotificationKeys:e}}},gA=function(e,t){return{type:sA,payload:{notificationKey:e,read:t}}},vA=function(e){return{type:uA,payload:{notifications:e}}},yA=function(e){return{type:lA,payload:{moreNotificationsAvailable:e}}},bA=function(e){return{type:dA,payload:{notification:e}}},wA=function(){return{type:fA,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},xA=function(e){return{type:pA,payload:{notificationKey:e}}},OA=function(e){return{type:hA,payload:{taskExecutionKey:e}}},kA="notification/TOASTER",SA="notification/REMOVE_TOASTER",EA="notification/REMOVE_TOASTER_FROM_STORE",PA=function(e){return{type:kA,payload:{toaster:e}}},DA=function(e,t){return{type:SA,payload:{key:e,manually:t}}},_A=function(e){return{type:EA,payload:{key:e}}};function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jA,AA,MA,IA,NA,RA,LA,FA,HA=function(e,t){return Number.isInteger(e)?e:function(e){return e===KT.error||e===KT.warning}(t)?-1:5e3},BA=(Ce().shape({type:Ce().oneOf(Object.values(KT)).isRequired,title:Ce().oneOfType([Ce().string,Ce().func]),message:Ce().oneOfType([Ce().string,Ce().func]),body:Ce().oneOfType([Ce().string,Ce().func]),onClose:Ce().func,icons:Ce().string,duration:Ce().number,time:Ce().instanceOf(Date)}),c(72637)),WA=c.n(BA),UA=c(16193),YA=c.n(UA),VA=(Ce().func.isRequired,Ce().func.isRequired,Ce().object,(0,Me.i7)(jA||(jA=je()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),zA=Me.Ay.div.withConfig({displayName:"StyledToaster"})(AA||(AA=je()(["\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}),He.hs.space(-.5),He.hs.space(0),VA),qA=(0,Me.Ay)(Mt).withConfig({displayName:"StyledCloseButton"})(MA||(MA=je()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &:hover {\n background-color: transparent;\n cursor: pointer;\n }\n ","\n"])),He.hs.font(3),He.t7.color("backgroundBody"),(function(e){return e.styles})),GA=Me.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(IA||(IA=je()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),He.hs.space(0),He.hs.space(0),cr.rd,(function(e){return e.styles})),KA=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(NA||(NA=je()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),He.hs.font(1.5),He.t7.fontWeight("regular")),$A=Me.Ay.div.withConfig({displayName:"StyledIconWrapper"})(RA||(RA=je()(["\n font-size: ",";\n"])),He.hs.font(7)),XA=Me.Ay.div.withConfig({displayName:"StyledContentWrapper"})(LA||(LA=je()(["\n padding-top: ",";\n color: ",";\n"])),He.hs.space(-1),He.t7.color("textToaster")),QA=Me.Ay.div.withConfig({displayName:"StyledToasterBox"})(FA||(FA=je()(["\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,He.Ed)());const ZA=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,i=e.styles,a=(0,p.useCallback)((function(){n(t.key,!1)}),[t.key,n]),s=st.useUserActive(a),c=et()(s,3),u=c[0],l=c[1],d=c[2];(0,p.useEffect)((function(){u(t.duration)}),[t.duration,u]);return(0,Ke.jsxs)(zA,{onMouseOver:function(){l()},onMouseLeave:function(){d()},type:t.type,styles:null==i?void 0:i.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,Ke.jsx)(qA,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==i?void 0:i.closeButtonStyles}),(0,Ke.jsxs)(GA,{type:t.type,styles:null==i?void 0:i.iconTitleWrapperStyles,children:[t.icon&&(0,Ke.jsx)($A,{children:(0,Ke.jsx)(Ge.A,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,Ke.jsx)(cr.Ay.H1,{children:(0,Ke.jsx)(KA,{"data-cy":"toaster-title",children:(0,Ke.jsx)(yj,{children:t.title})})})]}),t.body&&(0,Ke.jsx)(XA,{"data-cy":"toaster-content",children:(0,Ke.jsx)(yj,{children:"function"==typeof t.body?(0,Ke.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var JA,eM,tM={info:"info",success:"success",error:"danger",warning:"warning"},nM=function(){return(0,Me.AH)(JA||(JA=je()(["\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 tM[e]?t.colors.signal[tM[e]]:"#ccc"}(e.type,e.theme)}),He.t7.color("textToaster"))},rM=function(){return(0,Me.AH)(eM||(eM=je()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),He.t7.color("textToaster"))};function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 iM=function(e){var t=YA()({},(WA()(e),e));return(0,Ke.jsx)(ZA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oM(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:nM,closeButtonStyles:rM}},t))};var aM,sM,cM={info:"info",success:"success",error:"danger",warning:"warning"},uM=function(){return(0,Me.AH)(aM||(aM=je()(["\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"])),He.t7.color("paper"),He.t7.radii("statusLabel"),He.t7.color("border"),He.t7.color("text"))},lM=function(){return(0,Me.AH)(sM||(sM=je()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return cM[e]?t.colors.signal[cM[e]]:"#ccc"}(e.type,e.theme)}))};function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const fM=function(e){var t=YA()({},(WA()(e),e));return(0,Ke.jsx)(ZA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dM(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:uM,iconTitleWrapperStyles:lM}},t))};var pM=Ve()(Ve()({},Pb.A.EmbedType.admin,iM),Pb.A.EmbedType.widget,fM);const hM=Pb.A.embedStrategyFactory({mapping:pM});const mM=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,i=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,Ke.jsx)(hM,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,Ke.jsx)(Ke.Fragment,{children:t&&aa().createPortal((0,Ke.jsx)(QA,{className:Eu,children:i}),document.body)})};const gM=me((function(e){return{toasters:e.notification.toaster.toasters}}),{removeToaster:DA,cancelTask:OA})(mM);var vM;const yM=function(e){var t=e.navigationStrategy;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(gM,{navigationStrategy:t}),vM||(vM=(0,Ke.jsx)(iA,{}))]})},bM=yM;var wM,xM,OM,kM,SM,EM,PM,DM,_M,CM,TM="notification/BLOCKING_INFO",jM="notification/REMOVE_BLOCKING_INFO",AM=Me.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(wM||(wM=je()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),He.hs.space(-1.5)),MM=Me.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(xM||(xM=je()(["\n margin-right: ",";\n"])),He.hs.space(-1.5)),IM=Me.Ay.div.withConfig({displayName:"StyledProgressOuter"})(OM||(OM=je()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),He.t7.color("paper")),NM=Me.Ay.div.withConfig({displayName:"StyledProgressInner"})(kM||(kM=je()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),He.t7.color("paper"),(function(e){return e.percentage})),RM=Me.Ay.span.withConfig({displayName:"StyledMessage"})(SM||(SM=je()(["\n margin-right: ",";\n"])),He.hs.space(-2)),LM=Me.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(EM||(EM=je()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),He.hs.space(-2),He.hs.space(-2),He.hs.font(-1)),FM=Me.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(PM||(PM=je()(["\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"])),He.t7.color("text"),He.t7.color("text")),HM=Me.Ay.div.withConfig({displayName:"StyledFileDescription"})(DM||(DM=je()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),He.hs.space(0)),BM=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(_M||(_M=je()(["\n padding-right: ",";\n"])),He.hs.space(-1.5)),WM=Me.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(CM||(CM=je()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),He.t7.color("text"));const UM=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,Ke.jsx)(RM,{children:(0,Ke.jsx)(yj,{children:t})}):null};var YM,VM=c(94394),zM=c.n(VM),qM=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,Ke.jsx)(Cm,{content:(0,Ke.jsx)(cr.Ay.P,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const GM=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,Ke.jsx)(Ke.Fragment,{children:Object.entries(zM()(r,(function(e){return e.model}))).map((function(e){var t=et()(e,2),r=t[0],o=t[1];return(0,Ke.jsx)(LM,{children:n&&n.ListOrDetailLink&&(0,Ke.jsx)(qM,{hasTooManyEntities:o.length>100,children:(0,Ke.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[YM||(YM=(0,Ke.jsx)(Ge.A,{icon:"arrow-right"}))," ",(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var KM,$M,XM,QM,ZM,JM;const eI=(0,f.injectIntl)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,i=t.content,a=function(e){return r.formatMessage({id:e})},s=a("client.common.notification.outputJobFileLink"),c=a("client.common.notification.outputJobFileDownload");return o?(0,Ke.jsxs)(FM,{children:[(0,Ke.jsx)(HM,{children:(0,Ke.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:o.description})}),(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:s,children:[KM||(KM=(0,Ke.jsx)(BM,{children:(0,Ke.jsx)(Ge.A,{icon:"eye"})})),$M||($M=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobFileLink"}))]})}),my.downloadSupportedByBrowser()&&(0,Ke.jsxs)("a",{href:my.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:c,children:[XM||(XM=(0,Ke.jsx)(BM,{children:(0,Ke.jsx)(Ge.A,{icon:"arrow-to-bottom"})})),QM||(QM=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,Ke.jsx)(LM,{children:n&&n.DetailLink&&(0,Ke.jsxs)(n.DetailLink,{entityName:i[0].model,entityKey:i[0].key,children:[ZM||(ZM=(0,Ke.jsx)(Ge.A,{icon:"arrow-right"}))," ",JM||(JM=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var tI=Ve()(Ve()({},$T.outputjob,eI),$T.entities,GM);const nI=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(tI[r]){var o=tI[r];return(0,Ke.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var rI,oI,iI,aI,sI;const cI=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,i=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,a=t.type===KT.info&&o.isRunning&&o.supportsCancellation;return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(AM,{children:[(0,Ke.jsx)(MM,{children:o.isRunning&&(rI||(rI=(0,Ke.jsx)(Ze,{})))}),(0,Ke.jsx)(UM,{notification:t})]}),"running_absolute"===o.status&&(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)(IM,{children:(0,Ke.jsx)(NM,{percentage:o.percentage})})}),(0,Ke.jsx)(LM,{children:i&&(0,Ke.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[oI||(oI=(0,Ke.jsx)(BM,{children:(0,Ke.jsx)(Ge.A,{icon:"arrow-right"})})),iI||(iI=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.outputJobShowTask"}))]})}),a&&(0,Ke.jsxs)(WM,{onClick:function(){return n(o.taskExecutionKey)},children:[aI||(aI=(0,Ke.jsx)(BM,{children:(0,Ke.jsx)(Ge.A,{icon:"times"})})),sI||(sI=(0,Ke.jsx)(f.FormattedMessage,{id:"client.common.notification.cancelTask"}))]})]})};const uI=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,i=t.taskProgress;return o?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(UM,{notification:t}),(0,Ke.jsx)(nI,{notification:t,navigationStrategy:r})]}):i?(0,Ke.jsx)(cI,{notification:t,navigationStrategy:r,cancelTask:n}):(0,Ke.jsx)(UM,{notification:t})},lI=uI;var dI,fI,pI,hI,mI,gI,vI,yI,bI={warning:He.t7.color("signal.warning"),error:He.t7.color("signal.danger"),success:He.t7.color("signal.success"),info:He.t7.color("signal.info")},wI=Me.Ay.article.withConfig({displayName:"StyledNotification"})(dI||(dI=je()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),He.hs.space(0),He.hs.space(-1),(function(e){return!e.read&&(0,Me.AH)(fI||(fI=je()(["\n background-color: ",";\n "])),He.t7.color("backgroundBody"))})),xI=Me.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(pI||(pI=je()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),He.hs.space(-1),(function(e){var t=e.notificationType;return bI[t]})),OI=Me.Ay.span.withConfig({displayName:"StyledIconWrapper"})(hI||(hI=je()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),He.hs.space(-1.5),He.hs.font(5)),kI=Me.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(mI||(mI=je()(["\n * {\n font-weight: "," !important;\n }\n"])),He.t7.fontWeight("regular")),SI=Me.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(gI||(gI=je()(["\n ","\n margin-bottom: ",";\n"])),(0,He.Ed)({fontSize:He.hs.font(2.9),fontWeight:He.t7.fontWeight("bold"),color:He.t7.color("secondary")}),He.hs.space(-.5)),EI=Me.Ay.div.withConfig({displayName:"StyledTimeStamp"})(vI||(vI=je()(["\n font-size: ",";\n"])),He.hs.font(-2)),PI=Me.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(yI||(yI=je()(["\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"])),He.hs.space(-.5),He.t7.color("paper"),He.t7.color("secondaryLight"),He.t7.radii("menu"),IM,He.t7.color("text"),NM,He.t7.color("textLighter"),(0,He.Ed)());var DI={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const _I=function(e){var t,n,r,o=e.notification,i=e.markAsRead,a=e.cancelTask,s=e.navigationStrategy,c=(0,p.useRef)(null),u=ep(new Date(o.timestamp)),l=(0,p.useState)((function(){return o.read})),d=et()(l,1)[0];return t=c,n=function(){o.read||i(o.key)},r=new IntersectionObserver((function(e){et()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,p.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,Ke.jsxs)(wI,{ref:c,read:d,"data-cy":"notification-item",children:[(0,Ke.jsxs)(xI,{notificationType:o.type,children:[(0,Ke.jsx)(OI,{children:(0,Ke.jsx)(Ge.A,{icon:DI[o.type]})}),(0,Ke.jsx)(kI,{children:(0,Ke.jsx)(cr.Ay.H5,{children:o.title})})]}),(0,Ke.jsx)(lI,{notification:o,navigationStrategy:s,cancelTask:a}),(0,Ke.jsx)(EI,{children:(0,Ke.jsx)(f.FormattedRelativeTime,{value:u.diffValue,unit:u.unit})})]})};var CI,TI,jI,AI;const MI=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,i=e.markAsRead,a=e.cancelTask,s=e.navigationStrategy,c=(0,p.useRef)(null);(0,p.useEffect)((function(){t()}),[t]);var u=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==$T.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,Ke.jsx)(_I,{markAsRead:i,cancelTask:a,notification:e,navigationStrategy:s},"notification-".concat(e.key))}));return(0,Ke.jsxs)(PI,{ref:c,onScroll:function(){var e=Object.keys(n).length;c.current.scrollTop+c.current.offsetHeight>=c.current.scrollHeight&&(!o&&r)&&t(e)},children:[CI||(CI=(0,Ke.jsx)(SI,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.title"})})),u,o&&(TI||(TI=(0,Ke.jsx)(Ze,{}))),u.length>0&&!r&&(jI||(jI=(0,Ke.jsx)(cr.Ay.I,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.noMoreNotifications"})}))),0===u.length&&!o&&(AI||(AI=(0,Ke.jsx)(cr.Ay.I,{children:(0,Ke.jsx)(f.FormattedMessage,{id:"client.admin.notification.noNotification"})})))]})};const II=me((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),{loadNotifications:function(){return{type:cA,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:xA,cancelTask:OA})(MI);var NI="notification/CONFIRM",RI="notification/YES_NO_QUESTION",LI="notification/INFO",FI="notification/CONNECT_SOCKET",HI="notification/CLOSE_SOCKET",BI="notification/SOCKET_MESSAGE_RECEIVED",WI="notification/ADD_IGNORE_TOASTER",UI=function(e){return{type:BI,payload:{data:e}}},YI=function(e){return{type:WI,payload:{key:e}}};const VI={SYNC_ACTION:"sync-action"};var zI=r().mark(GI),qI=r().mark(KI);function GI(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,ZO([uk(TM,KI),uk(jM,KI)]);case 3:case"end":return t.stop()}}),zI)}function KI(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,QO(ND.emitAction(e));case 2:case"end":return t.stop()}}),qI)}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$I(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var QI=Ve()(Ve()(Ve()(Ve()(Ve()(Ve()({},uA,(function(e,t){var n=t.payload.notifications;return XI(XI({},e),{},{notifications:XI(XI({},e.notifications),n),isLoadingMoreNotifications:!1})})),lA,SD("moreNotificationsAvailable")),dA,(function(e,t){var n=t.payload.notification;return XI(XI({},e),{},{notifications:XI(XI({},e.notifications),{},Ve()({},n.key,n))})})),aA,SD("unreadNotificationKeys")),sA,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):i()(e.unreadNotificationKeys,[o]),XI(XI({},e),{},{unreadNotificationKeys:n})})),fA,SD("isLoadingMoreNotifications")),ZI={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function JI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ZI,t=arguments.length>1?arguments[1]:void 0,n=QI[t.type];return n?n(e,t):e}function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nN=r().mark(iN),rN=r().mark(aN),oN=10;function iN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,ZO([ek(aN),uk(cA,sN),uk(pA,cN),uk(hA,uN)]);case 3:case"end":return t.stop()}}),nN)}function aN(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,ek(GT.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,QO(mA(n));case 7:case"end":return r.stop()}}),rN)}function sN(e){var t=e.payload.offset;return r().mark((function e(){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QO(wA());case 2:return n={_limit:oN,_offset:t},e.next=5,ek(GT.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return o=e.sent,e.next=8,ZO(o.body.data.map((function(e){return ek(aj,e)})));case 8:if(i=e.sent,a=i.reduce((function(e,t){return tN(tN({},e),{},Ve()({},t.key,t))}),{}),!(Object.keys(a).length<oN)){e.next=13;break}return e.next=13,QO(yA(!1));case 13:return e.next=15,QO(vA(a));case 15:case"end":return e.stop()}}),e)}))()}function cN(e){var t=e.payload.notificationKey;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,ek(GT.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function uN(e){var t=e.payload.taskExecutionKey;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(GT.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var lN=["primary","callback","label"];function dN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pN=function(e){var t=e.buttons;return(0,Ke.jsx)(Zj,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,i=qe()(e,lN);return(0,p.createElement)(Qj,fN(fN({},n?{ink:He.xX.ink.PRIMARY}:{}),{},{key:t,onClick:r},i),o)}))})};function hN(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,i=e.onOk,a=e.onCancel,s=e.defaultAction,c=void 0===s?"submit":s,u=(0,T_.v4)();return lj(u,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===c?i():"cancel"===c&&a(),t()):"Escape"===e.key&&(a(),t())};(0,p.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(){i(),t()}},{label:o,primary:"cancel"===c,look:"cancel"===c?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){a(),t()}}];return(0,Ke.jsx)(pN,{buttons:s})}),!0,a)}function mN(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,i=e.onYes,a=e.onNo,s=e.onCancel,c=(0,T_.v4)();return lj(c,t,n,(function(e){var t=e.close,n=function(){a(),t()};(0,He.LE)(n);var s=[{label:r,callback:function(){i(),t()}},{label:o,primary:!0,look:"raised",callback:n}];return(0,Ke.jsx)(pN,{buttons:s})}),!0,s)}function gN(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,i=(0,T_.v4)();return lj(i,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,p.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var i=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,Ke.jsx)(pN,{buttons:i})}),!1)}var vN=r().mark(bN),yN=r().mark(kN);function bN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,ZO([uk(NI,wN),uk(RI,xN),uk(LI,ON)]);case 3:t.next=7;break;case 5:return t.next=7,ZO([uk(NI,kN),uk(RI,kN),uk(LI,kN)]);case 7:case"end":return t.stop()}}),vN)}function wN(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(hN,t);case 2:return n=e.sent,e.next=5,QO(n);case 5:case"end":return e.stop()}}),e)}))()}function xN(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(mN,t);case 2:return n=e.sent,e.next=5,QO(n);case 5:case"end":return e.stop()}}),e)}))()}function ON(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(gN,t);case 2:return n=e.sent,e.next=5,QO(n);case 5:case"end":return e.stop()}}),e)}))()}function kN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,QO(ND.emitAction(e));case 2:case"end":return t.stop()}}),yN)}var SN=r().mark(PN),EN=r().mark(DN);function PN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,ZO([uk(cj,DN),uk(uj,DN)]);case 3:case"end":return t.stop()}}),SN)}function DN(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,QO(ND.emitAction(e));case 2:case"end":return t.stop()}}),EN)}function _N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_N(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var TN={overlays:[]},jN=function(e){return function(t,n){var r=n.payload.id;return CN(CN({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},AN=Ve()(Ve()(Ve()(Ve()({},cj,(function(e,t){var n=t.payload,r=n.id,o=n.title,i=n.message,a=n.component,s=n.cancelable,c=n.cancelCallback;return CN(CN({},e),{},{overlays:[].concat(Ht()(e.overlays),[{id:r,title:o,message:i,component:a,cancelable:s,cancelCallback:c,type:fj.MODAL}])})})),uj,jN(fj.MODAL)),TM,(function(e,t){var n=t.payload,r=n.id,o=n.title,i=n.body;return CN(CN({},e),{},{overlays:[].concat(Ht()(e.overlays),[{id:r,title:o,body:i,type:fj.BLOCKER}])})})),jM,jN(fj.BLOCKER));function MN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TN,t=arguments.length>1?arguments[1]:void 0,n=AN[t.type];return n?n(e,t):e}function IN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RN=Ve()({},WI,(function(e,t){var n=t.payload.key;return NN(NN({},e),{},{ignoredToasters:Ht()(new Set([].concat(Ht()(e.ignoredToasters),[n])))})})),LN={ignoredToasters:[]};function FN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LN,t=arguments.length>1?arguments[1]:void 0,n=RN[t.type];return n?n(e,t):e}var HN=c(19383),BN=r().mark(VN);function WN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var YN={};function VN(e){var t,n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek(qN,e.name,e.originId);case 2:return t=r.sent,r.next=5,ek(zN,UN(UN({},e),{},{url:t}));case 5:n=r.sent;case 6:return r.next=9,XO(n);case 9:return o=r.sent,r.next=12,QO(o);case 12:r.next=6;break;case 14:case"end":return r.stop()}}),BN)}var zN=function(e){return function(e,t){void 0===t&&(t=AO());var n,r=!1,o=$_(t),i=function(){r||(r=!0,eO(n)&&n(),o.close())};return n=gO(n=e((function(e){K_(e)?i():o.put(e)}))),r&&n(),{take:o.take,flush:o.flush,close:i}}((function(t){var n=function(){var r=e.url,o=e.messageReceivedAction,i=e.name;YN[i]=new WebSocket(r),YN[i].onmessage=function(e){var n=JSON.parse(e.data);t(o(n))},YN[i].onclose=function(e){1e3!==e.code&&n()},YN[i].onerror=function(e){s.A.log("socket error",e)}};return n(),function(){}}))},qN=function(e,t){var n=(Pb.A.getBackendUrl()||window.location.origin).replace("http://","ws://").replace("https://","wss://");return"".concat(n,"/nice2/websocket/").concat(e,"?X-Origin-Id=").concat(t)};const GN={connectSocket:VN,closeSocket:function(e){YN[e].close(1e3)}};function KN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 $N="socket-msg-",XN=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KN(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat($N).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,Ke.jsx)(lI,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return Pb.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===$T.outputjob}(e)?{duration:-1}:{})},QN=r().mark(nR),ZN=r().mark(rR),JN=r().mark(oR),eR=function(e){return e.notification.socket},tR=function(e){return e.notification.toaster.toasters};function nR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,ZO([uk(BI,iR),uk(SA,aR),uk(FI,rR),uk(HI,oR)]);case 3:case"end":return t.stop()}}),QN)}function rR(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ek(HN.A.getOriginId);case 2:return e=t.sent,t.next=5,ek(GN.connectSocket,{name:"notification",messageReceivedAction:UI,originId:e});case 5:case"end":return t.stop()}}),ZN)}function oR(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(GN.closeSocket,"notification");case 2:case"end":return e.stop()}}),JN)}function iR(e){var t=e.payload.data;return r().mark((function e(){var n,o,i,a,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(aj,t);case 2:return n=e.sent,e.next=5,nk(eR);case 5:if(o=e.sent,i=o.ignoredToasters,a=!1,n.originId!==HN.A.getOriginId()){e.next=16;break}return e.next=11,ek(XN,n);case 11:if(s=e.sent,i.includes(s.key)||n.read){e.next=16;break}return e.next=15,QO(PA(s));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,QO(gA(n.key,n.read));case 19:return e.next=21,QO(bA(n));case 21:case"end":return e.stop()}}),e)}))()}function aR(e){var t=e.payload,n=t.key,o=t.manually;return r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith($N)){e.next=11;break}if(!o){e.next=4;break}return e.next=4,QO(YI(n));case 4:return e.next=6,nk(tR);case 6:if("success"!==e.sent[n].type&&!o){e.next=11;break}return t=n.replace($N,""),e.next=11,QO(xA(t));case 11:case"end":return e.stop()}}),e)}))()}function sR(e){var t=function(e,t){if("object"!=er()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=er()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==er()(t)?t:t+""}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lR=Ve()(Ve()({},kA,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(KT).includes(e.type)?e.type:KT.neutral;return TA(TA(TA(TA(TA({type:t,key:e.key||(0,T_.v4)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||XT[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:HA(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!==VI.SYNC_ACTION}(r)?uR(uR({},e),{},{toasters:uR(uR({},e.toasters),{},Ve()({},n.key,n))}):e})),EA,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],qe()(r,[n].map(sR)));return uR(uR({},e),{},{toasters:uR({},o)})})),dR={toasters:{}};function fR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dR,t=arguments.length>1?arguments[1]:void 0,n=lR[t.type];return n?n(e,t):e}var pR=r().mark(mR),hR=r().mark(gR);function mR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,ZO([uk(SA,vR)]);case 3:t.next=7;break;case 5:return t.next=7,ZO([uk(kA,gR),uk(SA,gR)]);case 7:case"end":return t.stop()}}),pR)}function gR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,QO(ND.emitAction(e));case 2:case"end":return t.stop()}}),hR)}function vR(e){var t=e.payload,n=t.key;t.manually;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QO(_A(n));case 2:case"end":return e.stop()}}),e)}))()}const yR={transformNotificationResult:sj,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&ED(e,{notification:gD({socket:FN,toaster:fR,center:JI,overlay:MN})}),e.sagaMiddleware.run(GI,t),e.sagaMiddleware.run(bN,t),e.sagaMiddleware.run(PN,t),e.sagaMiddleware.run(nR,t),e.sagaMiddleware.run(mR,t),t&&r&&e.sagaMiddleware.run(iN)},Notifications:bM,NotificationCenter:II,confirm:function(e,t,n,r,o,i,a){return{type:NI,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:i,defaultAction:a}}},yesNoQuestion:function(e,t,n,r,o,i,a){return{type:RI,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:i,onCancel:a}}},info:function(e,t,n,r){return{type:LI,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:TM,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:jM,payload:{id:e}}},modal:lj,removeModal:dj,toaster:PA,removeToaster:DA,connectSocket:function(){return{type:FI}},closeSocket:function(){return{type:HI}},toasterSources:VI};var bR="error",wR=function(){var e=t()(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),s.A.logError(n),e.next=4,OR(bR,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xR=function(){var e=t()(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.A.logError(t),e.next=3,OR(bR,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),OR=function(){var e=t()(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b_.A.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const kR={logError:xR,logException:wR};const SR=d;var ER="keyDown/SET_CONFIG",PR="keyDown/KEY_DOWN",DR=function(e){return{type:ER,payload:{config:e}}},_R=function(e){return{type:PR,payload:{config:e}}},CR=Ve()({},ER,SD("config")),TR={config:[]};function jR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TR,t=arguments.length>1?arguments[1]:void 0,n=CR[t.type];return n?n(e,t):e}var AR=r().mark(IR),MR=r().mark(NR);function IR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO([ek(NR,e),uk(PR,RR)]);case 2:case"end":return t.stop()}}),AR)}function NR(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,QO(DR(e));case 2:case"end":return t.stop()}}),MR)}function RR(e){var t=e.payload;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.config)){e.next=4;break}return e.next=4,ZO(n.actions.map((function(e){return QO(e)})));case 4:case"end":return e.stop()}}),e)}))()}var LR,FR=["config","children","keyDownHandler"];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){Ve()(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=Me.Ay.div.withConfig({displayName:"StyledDiv"})(LR||(LR=je()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const UR=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=qe()(e,FR),i=(0,p.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,p.useCallback)((function(e){return i(e,!0)}),[i]);return(0,p.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,Ke.jsx)(WR,BR(BR({tabIndex:"0",onKeyDown:function(e){return i(e)}},o),{},{children:n}))};const YR={keyDown:_R,addToStore:function(e,t){ED(e,{keyDown:jR}),e.sagaMiddleware.run(IR,t)},KeyDownWatcher:me((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),{keyDownHandler:_R})(UR)};const VR=function(e){var t=e.children,n=e.intlInitialised,r=e.cacheInitialised;return(0,Ke.jsx)(Rw,{required:[r,n],children:t})};const zR=me((function(e){return{intlInitialised:!e.app||e.app.intlInitialised,cacheInitialised:!e.app||e.app.cacheInitialised}}))(VR);var qR,GR=Me.Ay.div.withConfig({displayName:"StyledApp"})(qR||(qR=je()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),KR="theme/INIT_THEMETYPE",$R="theme/SET_THEMETYPE",XR=function(){return{type:KR}},QR=function(e){return{type:$R,payload:{themeType:e}}},ZR=c(55364),JR=c.n(ZR),eL=c(94200);const tL={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",primaryLight:"#424242",secondary:"#333",secondaryLight:"#7c7c7c",secondaryLighter:"#bababa",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",backgroundItemHover:"#E6E6E6",backgroundItemSelected:"#CCC",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundMultiValue:"#e6e6e6",loadingSpinner:"#000",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:"inherit",regular:"inherit"},fontSize:{base:1,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"2px",buttonLarge:"4px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0},space:{base:1,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{}};var nL;const rL=(0,Me.SL)((function(e){var t=e.themeType,n=e.customTheme,r=e.children,o=e.theme,i=function(e){return Pb.A.getEmbedType()===Pb.A.EmbedType.widget?tL:"light"===e?eL.A.defaultTheme:eL.A.darkTheme}(t),a=(0,p.useMemo)((function(){return JR()({},i,n)}),[i,n]);return(0,Ke.jsx)(Me.NP,{theme:o||a,children:(0,Ke.jsxs)(Me.ID,{shouldForwardProp:Re.shouldForwardProp,children:[nL||(nL=(0,Ke.jsx)(hp,{})),r]})})}));const oL=me((function(e){return{themeType:e.theme.themeType}}),{setThemeType:QR})(rL);var iL=c(27752),aL={};aL.styleTagTransform=Lu(),aL.setAttributes=Mu(),aL.insert=ju().bind(null,"head"),aL.domAPI=Cu(),aL.insertStyleElement=Nu();Du()(iL.A,aL);iL.A&&iL.A.locals&&iL.A.locals;const sL=function(e){var t=e.store,n=e.content,r=e.theme,o=(0,p.useCallback)((function(e){e&&c.e(310).then(c.bind(c,37107)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]);return(0,Ke.jsx)(ge,{store:t,children:(0,Ke.jsx)(oL,{customTheme:r,children:(0,Ke.jsx)(YR.KeyDownWatcher,{className:Eu,children:(0,Ke.jsx)(zR,{children:(0,Ke.jsx)(y_.Dk,{children:(0,Ke.jsx)(GR,{ref:o,children:n})})})})})})};var cL="app/SETUP_INTL",uL="app/CHANGE_LOCALE",lL="app/SET_TEXT_RESOURCE_MODULES",dL="app/SET_INTL_INITIALISED",fL="app/INITIALISE_CACHE",pL="app/SET_CACHE_INITIALISED",hL=function(e){return{type:cL,payload:{locale:e}}},mL=function(e){return{type:uL,payload:{locale:e}}},gL=function(e){return{type:dL,payload:{intlInitialised:e}}},vL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldSetupIntl,n=void 0!==t&&t,r=e.forceInvalidation,o=void 0!==r&&r,i=e.locale;return{type:fL,payload:{shouldSetupIntl:n,forceInvalidation:o,locale:i}}},yL=function(e){return{type:pL,payload:{cacheInitialised:e}}},bL=Ve()(Ve()(Ve()({},lL,SD("textResourceModules")),dL,SD("intlInitialised")),pL,SD("cacheInitialised")),wL={textResourceModules:[],intlInitialised:!1,cacheInitialised:!1};function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?xL(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kL={};const SL={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;kL=OL(OL({},kL),{},Ve()({},e,{level:n,info:OL(OL({},fo()(kL,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return fo()(kL,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;kL=OL({},Object.keys(kL).reduce((function(t,n){var r=kL[n];return OL(OL({},t),r.level<e&&Ve()({},n,r))}),{}))}};var EL=r().mark(_L),PL=r().mark(CL);function DL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return r().mark((function t(){var n,o,i,a,s,c,u,l,d,f,p,h,m,g,v,y;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ek(GT.fetchServerRevision);case 2:return n=t.sent,t.next=5,ek(C_.loadUserWithLocale);case 5:return o=t.sent,i=o.locale,a=o.username,s=o.businessUnitId,c=e||i,u=v_.getObjectCacheMetaInfo(),l=u.locale,d=u.businessUnitId,f=u.username,p=v_.getLongTermMetaInfo(),h=p.revision,m=!l||l!==c,g=d!==s,v=f!==a,y=h!==n,t.abrupt("return",{invalidObjectCache:m||g||v,invalidLongTermCache:y,cache:{locale:c,businessUnitId:s,username:a,revision:n}});case 15:case"end":return t.stop()}}),t)}))()}function _L(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(v_.clearLongTerm);case 2:case"end":return e.stop()}}),EL)}function CL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(v_.clearObjectCache);case 2:case"end":return e.stop()}}),PL)}function TL(e){var t=e.revision;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(v_.setLongTermMetaInfo,{revision:t});case 2:case"end":return e.stop()}}),e)}))()}function jL(e){var t=e.locale,n=e.businessUnitId,o=e.username;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(v_.setObjectCacheMetaInfo,{locale:t,businessUnitId:n,username:o});case 2:case"end":return e.stop()}}),e)}))()}var AL=r().mark(FL),ML=r().mark(HL),IL=r().mark(VL),NL=function(e){return e.app},RL=!1,LL=function(){RL=!1};function FL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ZO([lk(cL,BL),lk(uL,WL),lk(fL,UL)]);case 2:case"end":return e.stop()}}),AL)}function HL(e){var t,n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,nk(NL);case 2:return t=r.sent,n=t.textResourceModules,r.next=6,ek(C_.getChangeLocaleAction,n,e);case 6:return o=r.sent,r.next=9,QO(o);case 9:case"end":return r.stop()}}),ML)}function BL(e){var t=e.payload.locale;return r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t){e.next=5;break}return e.next=4,ek(C_.getUserLocale);case 4:n=e.sent;case 5:return e.next=7,ek(HL,n);case 7:return e.next=9,QO(gL(!0));case 9:case"end":return e.stop()}}),e)}))()}function WL(e){var t=e.payload.locale;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(YL,{locale:t});case 2:return e.next=4,ek(HL,t);case 4:case"end":return e.stop()}}),e)}))()}function UL(e){var t=e.payload,n=t.shouldSetupIntl,o=t.forceInvalidation,i=t.locale;return r().mark((function e(){var t,a,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!RL){e.next=7;break}return e.next=3,QO(yL(!0));case 3:if(!n){e.next=6;break}return e.next=6,QO(hL(i));case 6:return e.abrupt("return");case 7:return e.next=9,ek(DL,{locale:i});case 9:if(t=e.sent,a=t.invalidObjectCache,s=t.invalidLongTermCache,c=t.cache,!s&&!o){e.next=18;break}return e.next=16,ek(_L);case 16:return e.next=18,ek(TL,c);case 18:if(!a&&!o){e.next=25;break}return e.next=21,ek(CL);case 21:return e.next=23,ek(jL,c);case 23:return e.next=25,ek(SL.clearPersistedViews);case 25:return RL=!0,e.next=28,QO(yL(!0));case 28:if(!n){e.next=31;break}return e.next=31,QO(hL(i));case 31:case"end":return e.stop()}}),e)}))()}function YL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale;return r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ek(LL);case 2:return t.next=4,QO(vL({shouldSetupIntl:!1,locale:e}));case 4:return t.next=6,XO(pL);case 6:case"end":return t.stop()}}),t)}))()}function VL(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ek(LL);case 2:return e.next=4,QO(vL({shouldSetupIntl:!1,forceInvalidation:!0}));case 4:return e.next=6,XO(pL);case 6:case"end":return e.stop()}}),IL)}const zL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wL,t=arguments.length>1?arguments[1]:void 0,n=bL[t.type];return n?n(e,t):e};var qL="input/SET_INPUT",GL="input/INPUT_CHANGED",KL="input/INPUT_INITIALIZED",$L=function(e,t){return{type:qL,payload:Ve()({},e,t)}},XL=function(e,t){return{type:GL,payload:{input:e,prevInput:t}}};function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QL(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JL=Ve()({},qL,(function(e,t){var n=t.payload;return ZL(ZL({},e),n)})),eF={};const tF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eF,t=arguments.length>1?arguments[1]:void 0,n=JL[t.type];return n?n(e,t):e};var nF=Ve()({},$R,SD("themeType")),rF={themeType:"light"};var oF=r().mark(aF),iF=r().mark(sF);function aF(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ZO([lk(KR,sF)]);case 2:case"end":return e.stop()}}),oF)}function sF(){var e,t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ek(v_.getLongTerm,"admin","theme");case 2:return e=n.sent,t=e||"light",n.next=6,QO(QR(t));case 6:case"end":return n.stop()}}),iF)}const cF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rF,t=arguments.length>1?arguments[1]:void 0,n=nF[t.type];return n?n(e,t):e};var uF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,a.H)(n).render(e)},lF=function(e,t){e.forEach((function(e){t.dispatch(e)}))},dF=function(e){c.p=e},fF=Symbol.for("immer-nothing"),pF=Symbol.for("immer-draftable"),hF=Symbol.for("immer-state");function mF(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gF=Object.getPrototypeOf;function vF(e){return!!e&&!!e[hF]}function yF(e){return!!e&&(wF(e)||Array.isArray(e)||!!e[pF]||!!e.constructor?.[pF]||EF(e)||PF(e))}var bF=Object.prototype.constructor.toString();function wF(e){if(!e||"object"!=typeof e)return!1;const t=gF(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===bF}function xF(e,t){0===OF(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function OF(e){const t=e[hF];return t?t.type_:Array.isArray(e)?1:EF(e)?2:PF(e)?3:0}function kF(e,t){return 2===OF(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function SF(e,t,n){const r=OF(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function EF(e){return e instanceof Map}function PF(e){return e instanceof Set}function DF(e){return e.copy_||e.base_}function _F(e,t){if(EF(e))return new Map(e);if(PF(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&wF(e)){if(!gF(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[hF];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(gF(e),n)}function CF(e,t=!1){return jF(e)||vF(e)||!yF(e)||(OF(e)>1&&(e.set=e.add=e.clear=e.delete=TF),Object.freeze(e),t&&xF(e,((e,t)=>CF(t,!0)))),e}function TF(){mF(2)}function jF(e){return Object.isFrozen(e)}var AF,MF={};function IF(e){const t=MF[e];return t||mF(0),t}function NF(){return AF}function RF(e,t){t&&(IF("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function LF(e){FF(e),e.drafts_.forEach(BF),e.drafts_=null}function FF(e){e===AF&&(AF=e.parent_)}function HF(e){return AF={drafts_:[],parent_:AF,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function BF(e){const t=e[hF];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function WF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[hF].modified_&&(LF(t),mF(4)),yF(e)&&(e=UF(t,e),t.parent_||VF(t,e)),t.patches_&&IF("Patches").generateReplacementPatches_(n[hF].base_,e,t.patches_,t.inversePatches_)):e=UF(t,n,[]),LF(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fF?e:void 0}function UF(e,t,n){if(jF(t))return t;const r=t[hF];if(!r)return xF(t,((o,i)=>YF(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return VF(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),xF(o,((o,a)=>YF(e,r,t,o,a,n,i))),VF(e,t,!1),n&&e.patches_&&IF("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function YF(e,t,n,r,o,i,a){if(vF(o)){const a=UF(e,o,i&&t&&3!==t.type_&&!kF(t.assigned_,r)?i.concat(r):void 0);if(SF(n,r,a),!vF(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(yF(o)&&!jF(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;UF(e,o),t&&t.scope_.parent_||VF(e,o)}}function VF(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&CF(t,n)}var zF={get(e,t){if(t===hF)return e;const n=DF(e);if(!kF(n,t))return function(e,t,n){const r=KF(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!yF(r)?r:r===GF(e.base_,t)?(XF(e),e.copy_[t]=QF(r,e)):r},has:(e,t)=>t in DF(e),ownKeys:e=>Reflect.ownKeys(DF(e)),set(e,t,n){const r=KF(DF(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=GF(DF(e),t),o=r?.[hF];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||kF(e.base_,t)))return!0;XF(e),$F(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==GF(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,XF(e),$F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=DF(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){mF(11)},getPrototypeOf:e=>gF(e.base_),setPrototypeOf(){mF(12)}},qF={};function GF(e,t){const n=e[hF];return(n?DF(n):e)[t]}function KF(e,t){if(!(t in e))return;let n=gF(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=gF(n)}}function $F(e){e.modified_||(e.modified_=!0,e.parent_&&$F(e.parent_))}function XF(e){e.copy_||(e.copy_=_F(e.base_,e.scope_.immer_.useStrictShallowCopy_))}xF(zF,((e,t)=>{qF[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),qF.deleteProperty=function(e,t){return qF.set.call(this,e,t,void 0)},qF.set=function(e,t,n){return zF.set.call(this,e[0],t,n,e[0])};function QF(e,t){const n=EF(e)?IF("MapSet").proxyMap_(e,t):PF(e)?IF("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:NF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=zF;n&&(o=[r],i=qF);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:NF()).drafts_.push(n),n}function ZF(e){if(!yF(e)||jF(e))return e;const t=e[hF];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_F(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_F(e,!0);return xF(n,((e,t)=>{SF(n,e,ZF(t))})),t&&(t.finalized_=!1),n}var JF=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&mF(6),void 0!==n&&"function"!=typeof n&&mF(7),yF(e)){const o=HF(this),i=QF(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?LF(o):FF(o)}return RF(o,n),WF(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===fF&&(r=void 0),this.autoFreeze_&&CF(r,!0),n){const t=[],o=[];IF("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}mF(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;const o=this.produce(e,t,((e,t)=>{n=e,r=t}));return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){yF(e)||mF(8),vF(e)&&(e=function(e){vF(e)||mF(10);return ZF(e)}(e));const t=HF(this),n=QF(e,void 0);return n[hF].isManual_=!0,FF(t),n}finishDraft(e,t){const n=e&&e[hF];n&&n.isManual_||mF(9);const{scope_:r}=n;return RF(r,t),WF(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=IF("Patches").applyPatches_;return vF(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};JF.produce,JF.produceWithPatches.bind(JF),JF.setAutoFreeze.bind(JF),JF.setUseStrictShallowCopy.bind(JF),JF.applyPatches.bind(JF),JF.createDraft.bind(JF),JF.finishDraft.bind(JF);function eH(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var tH=e=>Array.isArray(e)?e:[e];function nH(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var rH="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},oH=0,iH=1;function aH(){return{s:oH,v:void 0,o:null,p:null}}function sH(e,t={}){let n=aH();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=aH(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=aH(),e.set(n,t)):t=r}}const s=t;let c;if(t.s===iH)c=t.v;else if(c=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==i&&i--);o="object"==typeof c&&null!==c||"function"==typeof c?new rH(c):c}return s.s=iH,s.v=c,c}return a.clearCache=()=>{n=aH(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function cH(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),eH(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:c,memoizeOptions:u=[],argsMemoize:l=sH,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=tH(u),h=tH(d),m=nH(e),g=c((function(){return r++,a.apply(null,arguments)}),...p);const v=l((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(v,{resultFunc:a,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var uH=cH(sH),lH=Object.assign(((e,t=uH)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})));return r}),{withTypes:()=>lH});function dH(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var fH=dH(),pH=dH,hH="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?vD:vD.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var mH=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};var gH="RTK_autoBatch",vH=e=>t=>{setTimeout(t,e)},yH="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:vH(10),bH=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new mH(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?yH:"callback"===e.type?e.queueNotification:vH(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[gH],i=!o,i&&(a||(a=!0,c(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function wH(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new mH;return t&&(function(e){return"boolean"==typeof e}(t)?i.push(fH):i.push(pH(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,c;if("function"==typeof n)s=n;else{if(!hD(n))throw new Error(OH(1));s=gD(n)}c="function"==typeof r?r(t):t();let u=vD;o&&(u=hH({trace:!1,..."object"==typeof o&&o}));const l=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(lD(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(a)));return i=vD(...s)(o.dispatch),{...o,dispatch:i}}}(...c),d=bH(l);return mD(s,i,u(..."function"==typeof a?a(d):d()))}var{assign:xH}=Object;Symbol.for("rtk-state-proxy-original");function OH(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function kH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kH(Object(n),!0).forEach((function(t){Ve()(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 EH=c(71086),PH=c.n(EH);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){Ve()(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}var CH=function(e,t){return e.reduce((function(e,n){return _H(_H({},e),t[n]?Ve()({},n,t[n]):{})}),{})};const TH=function(e){var t,n=e.initApp,r=e.props,o=e.packageName,i=e.externalEvents,a=void 0===i?[]:i,s=(0,p.useState)(null),c=et()(s,2),u=c[0],l=c[1],d=null==u?void 0:u.store,f=u?u.component:null,h=(null==d||null===(t=d.getState())||void 0===t?void 0:t.input)||{};return(0,p.useEffect)((function(){l(n(o,r,CH(a,r)))}),[]),st.useDidUpdate((function(){var e,t,n,o=PH()(r,(function(e,t){return!nr()(e,h[t])})),i=PH()(h,(function(e,t){return Object.keys(o).includes(t)}));!Ur()(o)&&d&&(e=o,t=i,n=Object.keys(e).map((function(t){return $L(t,e[t])})),n.length>0&&n.push(XL(e,t)),n).forEach((function(e){d.dispatch(e)}))}),[r,h]),{component:f,setApp:l,store:d}},jH={renderApp:uF,reloadApp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=document.getElementById(t);(0,a.H)(n).unmount(),uF(e,t)},createApp:function(e,n,o,a){var c=a.input,u=void 0===c?{}:c,l=a.actions,d=void 0===l?void 0:l,f=a.publicPath,p=void 0===f?void 0:f,h=a.textResourceModules,m=void 0===h?[]:h;try{var g=u.customTheme;p&&dF(p),d&&lF(d,o),o.dispatch({type:KL});var v=u?u.locale:null,y=i()([e],m);o.dispatch(function(e){return{type:lL,payload:{textResourceModules:e}}}(y)),o.dispatch(vL({shouldSetupIntl:!0,locale:v})),o.dispatch(XR());var b=function(){var e=t()(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.dispatch(mL(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,Ke.jsx)(sL,{store:o,content:n,theme:g}),store:o,methods:{setLocale:b}}}catch(e){try{o.dispatch(SR("Error","Error creating react application: ",e))}catch(t){s.A.logError("Error creating react application: ",e),s.A.logError("Unable to log error: ",t)}}},createStore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=wC(),o=SH(SH({},e),{},{input:tF,app:zL,intl:y_.oi,theme:cF}),i=wH({reducer:e=gD(o),devTools:undefined,preloadedState:n,middleware:function(e){return[r]}}),a=[FL,aF].concat(Ht()(t||[]));if(i.allReducers=o,i.sagas=a,i.sagaMiddleware=r,i.hotReloadReducers=PD,a&&a.length>0){var s=fk.createGenerator(a.map((function(e){return tk(e)})));r.run(fk.autoRestartSaga(s,null,SR))}return i},registerAppInRegistry:function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)},createBundleableApp:function(e,t,n){return{name:e,init:t,App:n,setWebpacksPublicPath:dF}},useApp:TH,getEvents:CH,setInput:$L,inputChanged:XL,initThemeType:XR,setThemeType:QR,INPUT_CHANGED:GL,INPUT_INITIALIZED:KL,reinitialiseCache:YL,forceCacheInvalidation:VL};var AH="externalEvents/FIRE_EXTERNAL_EVENT",MH="externalEvents/FIRE_VISIBILITY_STATUS_CHANGE_EVENT",IH=function(e,t){return{type:AH,payload:{name:e,payload:t}}},NH=r().mark(HH),RH=r().mark(BH),LH=r().mark(WH),FH=r().mark(YH);function HH(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ZO([uk(AH,WH,e),uk(AH,YH,e),uk(MH,VH)]);case 2:case"end":return t.stop()}}),NH)}function BH(e){var t;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,nk(e);case 2:if(!(t=n.sent)){n.next=5;break}return n.abrupt("return","object"===er()(null==t?void 0:t.events)?t:{events:t});case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}}),RH)}function WH(e,t){var n,o,i,a,s;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.payload,o=n.name,i=n.payload,r.next=3,ek(BH,e);case 3:return a=r.sent,s=a.events,r.next=7,ek(zH,s,o,i);case 7:case"end":return r.stop()}}),LH)}function UH(e,t){return"string"==typeof e?{name:e,payload:t}:"function"==typeof e?e(t):e}function YH(e,t){var n,o,i,a,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.payload,o=n.name,i=n.payload,r.next=3,ek(BH,e);case 3:if(a=r.sent,s=a.eventMap,!(s&&["string","function","object"].includes(er()(s[o])))){r.next=10;break}return c=UH(s[o],i),r.next=10,QO(IH(c.name,c.payload));case 10:case"end":return r.stop()}}),FH)}function VH(e){var t=e.payload;return r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Pb.A.isInWidgetEmbedded()){e.next=3;break}return e.next=3,QO(IH("onVisibilityStatusChange",t));case 3:case"end":return e.stop()}}),e)}))()}var zH=function(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];e&&e[t]&&e[t].apply(e,r)};function qH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qH(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const KH={fireExternalEvent:IH,fireVisibilityStatusChangeEvent:function(e){return{type:MH,payload:{status:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}};e.sagaMiddleware.run(HH,t)},createPropTypes:function(e){return e.reduce((function(e,t){return GH(GH({},e),{},Ve()({},t,Ce().func))}),{})}};var $H=c(44984);const XH={propTypes:Ce().shape({embedType:Ce().oneOf($H.hZ),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};
|
|
84
84
|
/*! js-cookie v3.0.5 | MIT */
|
|
85
|
-
function
|
|
85
|
+
function QH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ZH=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=QH({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",QH({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,QH({},this.attributes,t))},withConverter:function(t){return e(QH({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),JH=function(e,t,n){var r=Pb.A.getBackendUrl(),o=encodeURIComponent("".concat(r,"/nice2/sso-callback")),i=encodeURIComponent(window.location.href),a=n||encodeURIComponent(window.location.href),s="provider=".concat(t.unique_id),c="&sourceUri=".concat(i),u="&targetUri=".concat(a),l=Pb.A.isInWidgetEmbedded()?"&redirectUri=".concat(o):"",d="".concat(r).concat(e,"?").concat(s).concat(c).concat(u).concat(l);window.location.href=d};const eB=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.redirectUrl,i=ZH.get("sso-autologin"),a=st.usePrevious(n);(0,p.useEffect)((function(){if(t&&i&&(!a||0===a.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===i}));e&&JH(r,e,o)}}),[t,a,n,i,r,o])};var tB=c(73916),nB=c.n(tB),rB=c(86663),oB=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const iB={fromQueryString:function(e){var t=rB.parse(e);return nB()(t,(function(e){return oB(e)?JSON.parse(e):e}))},toQueryString:function(e){var t=nB()(e,(function(e){return qD()(e)?JSON.stringify(e):e}));return rB.stringify(t)}};var aB="openidStatus",sB="openidProvider",cB=function(){var e=new URL(window.location.href);e.searchParams.delete(aB),e.searchParams.delete(sB),window.history.replaceState(null,"",e.href)},uB=function(e){if(e)try{return new URL(e,window.location.href).href}catch(e){return}},lB=function(e,t){var n=iB.fromQueryString(window.location.search)._redirect_url,r=uB(n)||uB(e)||window.location.href;return encodeURIComponent(t?function(e,t){var n=new URL(e);return n.searchParams.append(aB,"successful"),n.searchParams.append(sB,t),n.href}(r,t):function(e){var t=new URL(e);return t.searchParams.append(aB,"successful"),t.href}(r))};var dB="sso-login/INIT",fB="sso-login/LOAD_PROVIDERS",pB="sso-login/SET_PROVIDERS",hB="sso-login/SET_SHOW_ERROR",mB=function(e){return{type:pB,payload:{providers:e}}},gB=function(e){return{type:hB,payload:{showError:e}}},vB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=yB(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:t},yB=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},bB=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t};const wB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000",r=vB(e);return r&&function(e){return.2126*bB(e.r)+.7152*bB(e.g)+.0722*bB(e.b)}(r)>.25?n:t};var xB;const OB=(0,Me.Ay)(Ot)(xB||(xB=je()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n\n span {\n margin-left: ",";\n padding: "," 0;\n }\n }\n"])),He.hs.font(1.3),He.w4.radii("buttonLarge"),(function(e){return e.primaryColor}),(function(e){var t=e.secondaryColor;return wB(t)}),He.hs.space(-.8),He.hs.space(-.55));const kB=function(e){var t=e.provider,n=e.loginEndpoint,r=e.redirectUrl;return(0,Ke.jsxs)(OB,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){JH(n,t,r)},children:[t.button_icon&&(0,Ke.jsx)(Ge.A,{position:"prepend",icon:t.button_icon}),(0,Ke.jsx)("span",{children:t.button_label})]})};var SB,EB,PB,DB=Me.Ay.div.withConfig({displayName:"StyledButtonContainer"})(SB||(SB=je()(["\n width: 100%;\n margin-top: ",";\n display: grid;\n grid-gap: ",";\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: ",";\n }\n"])),He.hs.space(1.2),He.hs.space(-.4),He.hs.space(.2)),_B=(0,Me.Ay)(cr.oY).withConfig({displayName:"StyledSsoError"})(EB||(EB=je()(["\n && {\n display: inline-block;\n margin-top: ",";\n margin-bottom: ",";\n text-align: center;\n width: 100%;\n color: ",";\n }\n"])),He.hs.space(-.5),He.hs.space(-.5),He.t7.color("signal.danger"));const CB=function(e){var t=e.init,n=e.loadProviders,r=e.autoLogin,o=e.providers,i=void 0===o?[]:o,a=e.loginEndpoint,s=e.redirectUrl,c=e.showError;(0,p.useEffect)((function(){t()}),[t]),(0,p.useEffect)((function(){n()}),[n]),eB({autoLogin:r,providers:i,loginEndpoint:a,redirectUrl:lB(s)});var u=i.map((function(e){return(0,Ke.jsx)(kB,{provider:e,loginEndpoint:a,redirectUrl:lB(s,r?e.unique_id:void 0)},e.unique_id)}));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(DB,{children:u}),c&&(PB||(PB=(0,Ke.jsxs)(_B,{breakWords:!0,children:[(0,Ke.jsx)(Ge.A,{icon:"times"}),(0,Ke.jsx)(f.FormattedMessage,{id:"client.sso-login.error"})]})))]})};const TB=me((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin,redirectUrl:e.input.redirectUrl,showError:e.ssoLogin.showError}}),{init:function(){return{type:dB}},loadProviders:function(){return{type:fB}}})(CB);var jB=Ve()(Ve()({},pB,SD("providers")),hB,SD("showError")),AB={providers:[],showError:!1};function MB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MB(Object(n),!0).forEach((function(t){Ve()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NB=function(e){return e.data.map((function(e){return XD()(e.paths,(function(e,t,n){return IB(IB({},e),{},Ve()({},n,t.value))}),{})}))},RB={loginFailed:"login_failed",registrationStarted:"registration_started"},LB=r().mark(UB),FB=r().mark(YB),HB=r().mark(VB),BB="Openid_provider",WB=function(e){return e.intl};function UB(){var e,t,n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,nk(WB);case 2:return e=r.sent,t={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,ek(GT.fetchAllEntities,BB,t,{method:"GET"},NB);case 6:return n=r.sent,r.next=9,QO(mB(n));case 9:case"end":return r.stop()}}),LB)}function YB(){var e,t,n,o,i;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ek(iB.fromQueryString,window.location.search);case 2:return e=r.sent,t=e.openidStatus,r.next=6,ek(cB);case 6:if("failed"!==t){r.next=14;break}if(!Pb.A.isInWidgetEmbedded()){r.next=10;break}return r.next=10,QO(KH.fireVisibilityStatusChangeEvent([RB.loginFailed]));case 10:return r.next=12,QO(gB(!0));case 12:r.next=34;break;case 14:if(!t){r.next=34;break}return r.prev=15,r.next=18,ek(GT.requestSaga,"client/openid/claims",{method:"GET"});case 18:if(n=r.sent,o=n.body,i={provider:o.provider,sub:o.sub,registration:"registration"===t,successful:"successful"===t},"registration"!==t){r.next=25;break}if(!Pb.A.isInWidgetEmbedded()){r.next=25;break}return r.next=25,QO(KH.fireVisibilityStatusChangeEvent([RB.registrationStarted]));case 25:return r.next=27,QO(KH.fireExternalEvent("loginCompleted",i));case 27:r.next=34;break;case 29:return r.prev=29,r.t0=r.catch(15),r.next=33,QO(gB(!0));case 33:kR.logError("Claims could not be fetched after sso login.");case 34:case"end":return r.stop()}}),FB,null,[[15,29]])}function VB(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ZO([lk(dB,YB),lk(fB,UB)]);case 2:case"end":return e.stop()}}),HB)}const zB={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AB,t=arguments.length>1?arguments[1]:void 0,n=jB[t.type];return n?n(e,t):e}};var qB,GB=[VB],KB="sso-login",$B=["loginCompleted","onVisibilityStatusChange"],XB=function(e,t,n,r){Pb.A.setInputEnvs(t);var o=qB||(qB=(0,Ke.jsx)(TB,{})),i=jH.createStore(zB,GB,t,KB);return KH.addToStore(i,(function(e){return jH.getEvents($B,e.input)})),jH.createApp(KB,o,i,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",KB]})},QB=function(e){return jH.useApp({initApp:XB,props:e,packageName:KB,externalEvents:$B}).component};QB.propTypes={ssoLoginEndpoint:Ce().string.isRequired,locale:Ce().string,autoLogin:Ce().bool,appContext:XH.propTypes,businessUnit:Ce().string,redirectUrl:Ce().string};var ZB=jH.createBundleableApp(KB,XB,QB);jH.registerAppInRegistry(ZB.name,ZB.init)})(),u})()));
|