tocco-widget-showcase 3.14.65 → 3.14.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var c=2*(r+1)-1,s=e[c],l=c+1,u=e[l];if(0>i(s,n))l<o&&0>i(u,s)?(e[r]=u,e[l]=n,r=l):(e[r]=s,e[c]=n,r=c);else{if(!(l<o&&0>i(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,s=c.now();t.unstable_now=function(){return c.now()-s}}var l=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function O(e){if(g=!1,x(e),!h)if(null!==r(l))h=!0,S||(S=!0,k());else{var t=r(u);null!==t&&_(O,t.startTime-e)}}var k,S=!1,A=-1,E=5,j=-1;function P(){return!!y||!(t.unstable_now()-j<E)}function T(){if(y=!1,S){var e=t.unstable_now();j=e;var n=!0;try{e:{h=!1,g&&(g=!1,b(A),A=-1),m=!0;var i=f;try{t:{for(x(e),p=r(l);null!==p&&!(p.expirationTime>e&&P());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var c=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof c){p.callback=c,x(e),n=!0;break t}p===r(l)&&o(l),x(e)}else o(l);p=r(l)}if(null!==p)n=!0;else{var s=r(u);null!==s&&_(O,s.startTime-e),n=!1}}break e}finally{p=null,f=i,m=!1}n=void 0}}finally{n?k():S=!1}}}if("function"==typeof w)k=function(){w(T)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,C=D.port2;D.port1.onmessage=T,k=function(){C.postMessage(null)}}else k=function(){v(T,0)};function _(e,n){A=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(l)&&e===r(u)&&(g?(b(A),A=-1):g=!0,_(O,i-a))):(e.sortIndex=c,n(l,e),h||m||(h=!0,S||(S=!0,k()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},4883:t=>{"use strict";t.exports=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)]}},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>q,AE:()=>Y,C$:()=>z,F1:()=>J,Gw:()=>F,Js:()=>Q,Li:()=>H,MM:()=>L,Ng:()=>$,QF:()=>I,aB:()=>R,fN:()=>U,oY:()=>V,or:()=>C,pR:()=>_,rY:()=>N,rs:()=>B,v8:()=>W,vB:()=>M,vr:()=>G,zG:()=>K});var r,o,i,a,c,s,l,u,d,p,f,m,h,g,y,v,b,w,x,O,k,S=n(72189),A=n.n(S),E=n(51510),j=n(85431),P=n(57488),T=n(33090),D=n(26166),C=E.Ay.b.withConfig({displayName:"StyledB"})(r||(r=A()(["\n && {\n ","\n }\n ","\n"])),(0,j.A)({fontWeight:P.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),_=E.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=A()(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),P.t7.color("backgroundTypographyCode"),P.t7.radii("form"),D.A.space(-4),D.A.space(-2)),N=E.Ay.del.withConfig({displayName:"StyledDel"})(i||(i=A()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),I=E.Ay.em.withConfig({displayName:"StyledEm"})(a||(a=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),R=E.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(c||(c=A()(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-2),D.A.space(-1)),M=E.Ay.i.withConfig({displayName:"StyledI"})(s||(s=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),L=E.Ay.ins.withConfig({displayName:"StyledIns"})(l||(l=A()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),F=E.Ay.label.withConfig({displayName:"StyledLabel"})(u||(u=A()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-1)),H=E.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=A()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),color:P.t7.color("paper")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),P.t7.color("signal.info"),P.t7.radii("form"),D.A.space(-4),D.A.space(-2)),z=E.Ay.p.withConfig({displayName:"StyledP"})(p||(p=A()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-1)),B=E.Ay.pre.withConfig({displayName:"StyledPre"})(f||(f=A()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n display: block;\n margin: 0 0 ",";\n padding: "," ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),P.t7.color("backgroundTypographyCode"),P.t7.radii("form"),P.t7.color("border"),D.A.space(-1),D.A.space(-3),D.A.space(-2)),W=E.Ay.s.withConfig({displayName:"StyledS"})(m||(m=A()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),U=E.Ay.small.withConfig({displayName:"StyledSmall"})(h||(h=A()(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,j.A)(),P.t7.fontSize("factor"),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),V=E.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),q=E.Ay.sub.withConfig({displayName:"StyledSub"})(y||(y=A()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),Y=E.Ay.sup.withConfig({displayName:"StyledSup"})(v||(v=A()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),$=E.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontWeight:P.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),J=E.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=A()(["\n && {\n ","\n ","\n padding: "," 0;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-3)),G=E.Ay.u.withConfig({displayName:"StyledU"})(x||(x=A()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),K=E.Ay.var.withConfig({displayName:"StyledVar"})(O||(O=A()(["\n && {\n ","\n ","\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),Q=E.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=A()(["\n && {\n ","\n ","\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}))},5092:(e,t,n)=>{"use strict";n.d(t,{DK:()=>T,J5:()=>j,L9:()=>D,PJ:()=>A,PZ:()=>O,iN:()=>k,pI:()=>C,ue:()=>E,vv:()=>S,xe:()=>P});var r,o,i,a,c,s,l,u,d,p,f=n(72189),m=n.n(f),h=n(51510),g=n(76242),y=n(5016),v=n(27113),b=n(26166),w=n(57488),x=n(85431),O=h.Ay.section.withConfig({displayName:"StyledSection"})(r||(r=m()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),k=h.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=m()(["\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"])),g.Ay,b.A.space(-2)),S=h.Ay.div.withConfig({displayName:"StyledDropzone"})(i||(i=m()(["\n width: 100%;\n display: flex;\n margin-right: ",";\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),b.A.space(-2),g.Ay,w.t7.color("backgroundItemHover")),A=h.Ay.div.withConfig({displayName:"StyledUploadInput"})(a||(a=m()(["\n ","\n width: 100%;\n cursor: ",";\n background-color: transparent;\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n align-items: center;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,x.A)(),(function(e){return e.immutable?"not-allowed":"pointer"}),(function(e){return e.immutable?v.D.shade2(e):v.D.base(e)}),b.A.space(-2),g.Ay,b.A.space(-3.1),b.A.space(-1.5)),E=h.Ay.div.withConfig({displayName:"StyledUploadProgress"})(c||(c=m()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),b.A.space(-2)),j=(0,h.Ay)(y.oY).withConfig({displayName:"StyledUploadProgressText"})(s||(s=m()(["\n && {\n ","\n }\n"])),(0,x.A)({fontSize:b.A.font(-1)})),P=h.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(l||(l=m()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),b.A.space(-2)),T=h.Ay.div.withConfig({displayName:"StyledView"})(u||(u=m()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),b.A.space(-2)),D=h.Ay.div.withConfig({displayName:"StyledUploadTxt"})(d||(d=m()(["\n width: 100%;\n text-align: center;\n font-style: italic;\n"]))),C=h.Ay.div.withConfig({displayName:"StyledUploadOverlay"})(p||(p=m()(["\n cursor: pointer;\n position: absolute;\n inset: 0;\n background-color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n"])),w.t7.color("backgroundUploadOverlay"))},5287:(e,t,n)=>{var r=n(34932),o=n(27185),i=n(69302),a=n(80741),c=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=c},5305:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(43329);function o(e,...t){const n=r.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}},5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(31247)},5556:(e,t,n)=>{e.exports=n(2694)()},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=n(76545),c=n(28303),s=n(72552),l=n(47473),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=l(r),g=l(o),y=l(i),v=l(a),b=l(c),w=s;(r&&w(new r(new ArrayBuffer(1)))!=m||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||c&&w(new c)!=f)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return m;case g:return u;case y:return d;case v:return p;case b:return f}return t}),e.exports=w},5948:(e,t,n)=>{"use strict";n.d(t,{A:()=>Kd});var r,o,i,a=n(26396),c=n.n(a),s=n(90179),l=n.n(s),u=n(62193),d=n.n(u),p=n(3634),f=n(62243),m=n.n(f),h=n(48268),g=n(44905),y=n(69556),v=n(56375),b=n(40443),w=n(85735),x=n.n(w),O=function(e){return-1*Math.abs(e)},k=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===x()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},S=n(72189),A=n.n(S),E=n(58156),j=n.n(E),P=n(51510),T=n(26166),D=n(57488),C=P.Ay.div.withConfig({displayName:"StyledLocationEdit"})(r||(r=A()(["\n && {\n ","\n position: relative;\n\n & > div {\n &:nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n &:nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\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"])),b.oX,T.A.space(-2),T.A.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?j()(n,"colors.textDisabled"):j()(n,"colors.text")}),b.PG,b.jx,D.t7.color("paper"),D.t7.color("signal.info"),D.t7.color("secondaryLight"),D.t7.color("backgroundItemHover")),_=(0,P.Ay)(C).withConfig({displayName:"StyledAddressEdit"})(o||(o=A()(["\n && {\n & > div:nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n"]))),N=n(74848);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 R(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const M=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,s=e.immutable,l=e.name,u=function(e){return function(t){return t[e]}},d=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},p=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=d(e),c=n?"- ".concat(n):"",s=null!=r&&r.display?"/ ".concat(r.display):"";return(0,N.jsxs)(v.Ay.Span,{children:[a,", ",o," ",i," ",c," ",s]})},f=function(e){var t,o=e.suggestion;!0===(null==o?void 0:o.validationRequired)?null===(t=r.validateLocation)||void 0===t||t.call(r,o,n):n(o||{})},w=function(e){var t,n=e.value,o=r.locationValues.country,i={street:n};null===(t=r.fetchSuggestions)||void 0===t||t.call(r,i,o)},x={id:a,value:o&&o.street?d(o):"",onChange:(t="street",function(e){var r=e.target.value;n(R(R({},o),{},c()({},t,r)))}),disabled:s,name:"address-line1",autocomplete:"street-address"};return(0,N.jsx)(h.A,{children:function(e){var t,n,o,a,c=e.getRef;return(0,N.jsxs)(_,{immutable:s,name:l,ref:c,children:[(0,N.jsx)(m(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:w,getSuggestionValue:u("street"),renderSuggestion:p,onSuggestionsClearRequested:function(){},inputProps:x,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return Boolean(e&&!s)}}),(0,N.jsxs)(b.PG,{children:[r.isLoading&&(i||(i=(0,N.jsx)(y.A,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,N.jsx)(g.A,{href:k(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var L=n(69843),F=n.n(L),H=n(21259),z=n.n(H),B=n(22056),W=n.n(B),U=n(7350),V=n.n(U),q=n(4883),Y=n.t(q,2),$=n.n(q),J=n(47029),G=n(2482),K=n(35412),Q=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var X=n(65166);function Z(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 ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=n(65710);function re(e,t){if(t&&("object"===(0,ne.A)(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 oe(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=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}var ie=n(77987);var ae=n(25134);function ce(e){return function(e){if(Array.isArray(e))return(0,ie.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ae.A)(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 se=n(60355),le=n(3834),ue=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function de(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||ue(r)&&ue(o)))return!1;var r,o;return!0}for(var pe={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"},fe=function(e){return(0,le.Y)("span",(0,X.A)({css:pe},e))},me={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,u=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(u(a,n),".");if("menu"===t&&l){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},he=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,l=e.isAppleDevice,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,f=c.isMulti,m=c.isOptionDisabled,h=c.isSearchable,g=c.menuIsOpen,y=c.options,v=c.screenReaderStatus,b=c.tabSelectsValue,w=c.isLoading,x=c["aria-label"],O=c["aria-live"],k=(0,q.useMemo)((function(){return(0,J.A)((0,J.A)({},me),u||{})}),[u]),S=(0,q.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,i=t.removedValue,c=t.removedValues,s=t.value,l=i||r||(e=s,Array.isArray(e)?null:e),u=l?d(l):"",p=o||c||void 0,f=p?p.map(d):[],h=(0,J.A)({isDisabled:l&&m(l,a),label:u,labels:f},t);n=k.onChange(h)}return n}),[t,k,m,a,d]),A=(0,q.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var c={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=k.onFocus(c)}return e}),[n,r,d,m,k,o,a,l]),E=(0,q.useMemo)((function(){var e="";if(g&&y.length&&!w&&k.onFilter){var t=v({count:o.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,k,y,v,w]),j="initial-input-focus"===(null==t?void 0:t.action),P=(0,q.useMemo)((function(){var e="";if(k.guidance){var t=r?"value":g?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:f,isSearchable:h,tabSelectsValue:b,isInitialFocus:j})}return e}),[x,n,r,f,m,h,g,k,a,b,j]),T=(0,le.Y)(q.Fragment,null,(0,le.Y)("span",{id:"aria-selection"},S),(0,le.Y)("span",{id:"aria-focused"},A),(0,le.Y)("span",{id:"aria-results"},E),(0,le.Y)("span",{id:"aria-guidance"},P));return(0,le.Y)(q.Fragment,null,(0,le.Y)(fe,{id:s},j&&T),(0,le.Y)(fe,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&T))},ge=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ye=new RegExp("["+ge.map((function(e){return e.letters})).join("")+"]","g"),ve={},be=0;be<ge.length;be++)for(var we=ge[be],xe=0;xe<we.letters.length;xe++)ve[we.letters[xe]]=we.base;var Oe=function(e){return e.replace(ye,(function(e){return ve[e]}))},ke=function(e,t){void 0===t&&(t=de);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}(Oe),Se=function(e){return e.replace(/^\s+|\s+$/g,"")},Ae=function(e){return"".concat(e.label," ").concat(e.value)},Ee=["innerRef"];function je(e){var t=e.innerRef,n=(0,K.A)(e,Ee),r=(0,se.r)(n,"onExited","in","enter","exit","appear");return(0,le.Y)("input",(0,X.A)({ref:t},r,{css:(0,le.AH)({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 Pe=["boxSizing","height","overflow","paddingRight","position"],Te={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function De(e){e.cancelable&&e.preventDefault()}function Ce(e){e.stopPropagation()}function _e(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ne(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ie=!("undefined"==typeof window||!window.document||!window.document.createElement),Re=0,Me={capture:!1,passive:!1};var Le=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Fe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function He(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,q.useRef)(!1),c=(0,q.useRef)(!1),s=(0,q.useRef)(0),l=(0,q.useRef)(null),u=(0,q.useCallback)((function(e,t){if(null!==l.current){var s=l.current,u=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=l.current,m=t>0,h=d-p-u,g=!1;h>t&&a.current&&(r&&r(e),a.current=!1),m&&c.current&&(i&&i(e),c.current=!1),m&&t>h?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!m&&-t>u&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),d=(0,q.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,q.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,q.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,q.useCallback)((function(e){if(e){var t=!!se.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),h=(0,q.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,q.useEffect)((function(){if(t){var e=l.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){l.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,q.useRef)({}),i=(0,q.useRef)(null),a=(0,q.useCallback)((function(e){if(Ie){var t=document.body,n=t&&t.style;if(r&&Pe.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Re<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,c=window.innerWidth-a+i||0;Object.keys(Te).forEach((function(e){var t=Te[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Ne()&&(t.addEventListener("touchmove",De,Me),e&&(e.addEventListener("touchstart",_e,Me),e.addEventListener("touchmove",Ce,Me))),Re+=1}}),[r]),c=(0,q.useCallback)((function(e){if(Ie){var t=document.body,n=t&&t.style;Re=Math.max(Re-1,0),r&&Re<1&&Pe.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Ne()&&(t.removeEventListener("touchmove",De,Me),e&&(e.removeEventListener("touchstart",_e,Me),e.removeEventListener("touchmove",Ce,Me)))}}),[r]);return(0,q.useEffect)((function(){if(t){var e=i.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){i.current=e}}({isEnabled:n});return(0,le.Y)(q.Fragment,null,n&&(0,le.Y)("div",{onClick:Le,css:Fe}),t((function(e){o(e),i(e)})))}var ze={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Be=function(e){var t=e.name,n=e.onFocus;return(0,le.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ze,value:"",onChange:function(){}})};function We(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 Ue(){return We(/^Mac/i)}function Ve(){return We(/^iPhone/i)||We(/^iPad/i)||Ue()&&navigator.maxTouchPoints>1}var qe={clearIndicator:se.a,container:se.b,control:se.d,dropdownIndicator:se.e,group:se.g,groupHeading:se.f,indicatorsContainer:se.i,indicatorSeparator:se.h,input:se.j,loadingIndicator:se.l,loadingMessage:se.k,menu:se.m,menuList:se.n,menuPortal:se.o,multiValue:se.p,multiValueLabel:se.q,multiValueRemove:se.t,noOptionsMessage:se.u,option:se.v,placeholder:se.w,singleValue:se.x,valueContainer:se.y};var Ye,$e={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}},Je={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,se.z)(),captureMenuScroll:!(0,se.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,J.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Ae,trim:!0,matchFrom:"any"},Ye),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?Se(t):t,l=a?Se(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=ke(s),l=Oe(l)),"start"===c?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,se.A)(),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 Ge(e,t,n,r){return{type:"option",data:t,isDisabled:rt(e,t,n),isSelected:ot(e,t,n),label:tt(e,t),value:nt(e,t),index:r}}function Ke(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ge(e,n,t,r)})).filter((function(t){return Ze(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ge(e,n,t,r);return Ze(e,i)?i:void 0})).filter(se.K)}function Qe(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ce(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Xe(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ce(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 Ze(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!at(e)||!i)&&it(e,{label:a,value:c,data:o},r)}var et=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},tt=function(e,t){return e.getOptionLabel(t)},nt=function(e,t){return e.getOptionValue(t)};function rt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ot(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nt(e,t);return n.some((function(t){return nt(e,t)===r}))}function it(e,t,n){return!e.filterOption||e.filterOption(t,n)}var at=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ct=1,st=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&&ee(e,t)}(i,e);var t,n,r,o=oe(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:"",isAppleDevice:!1},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.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,c=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(c){var l=t.getOptionValue(e);t.setValue((0,se.B)(a.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,se.C)(e),{action:"select-option",option:e,name:i});o?t.setValue((0,se.B)([].concat(ce(a),[e])),"select-option",e):t.setValue((0,se.C)(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=(0,se.D)(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((0,se.D)(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=(0,se.D)(e,o,o[0]||null);r&&t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return et(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Xe(Ke(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 se.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return tt(t.props,e)},t.getOptionValue=function(e){return nt(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=qe[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(0,se.F)(t.props)},t.buildCategorizedOptions=function(){return Ke(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Qe(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,J.A)({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&&(0,se.G)(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 at(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,c=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(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(h)t.removeValue(h);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):c&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ct),t.state.selectValue=(0,se.H)(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=et(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&&(0,se.I)(this.menuListRef,this.focusedOptionRef),(Ue()||Ve())&&this.setState({isAppleDevice:!0})}},{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&&((0,se.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var c=i.indexOf(r[0]);c>-1&&(a=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($e):(0,J.A)((0,J.A)({},$e),this.props.theme):$e}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,c=this.props,s=c.isMulti,l=c.isRtl,u=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:i,selectProps:c,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return rt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ot(this.props,e,t)}},{key:"filterOption",value:function(e,t){return it(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,c=e.menuIsOpen,s=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),h=(0,J.A)((0,J.A)((0,J.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?q.createElement(l,(0,X.A)({},f,{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},h)):q.createElement(je,(0,X.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:se.J,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,s=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,f=l.inputValue,m=l.placeholder,h=this.state,g=h.selectValue,y=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!u)return f?null:q.createElement(c,(0,X.A)({},s,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(t,a){var c=t===y,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return q.createElement(n,(0,X.A)({},s,{components:{Container:r,Label:o,Remove:i},isFocused:c,isDisabled:d,key:l,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(f)return null;var b=g[0];return q.createElement(a,(0,X.A)({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,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 q.createElement(e,(0,X.A)({},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?q.createElement(e,(0,X.A)({},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 q.createElement(n,(0,X.A)({},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 q.createElement(e,(0,X.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,m=p.inputValue,h=p.isLoading,g=p.loadingMessage,y=p.minMenuHeight,v=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,O=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,A=p.noOptionsMessage,E=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!b)return null;var P,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,c=t.label,s=t.value,p=d===o,f=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(n),g={id:h,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return q.createElement(l,(0,X.A)({},u,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:h,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return q.createElement(n,(0,X.A)({},u,{key:c,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(h){var D=g({inputValue:m});if(null===D)return null;P=q.createElement(c,u,D)}else{var C=A({inputValue:m});if(null===C)return null;P=q.createElement(s,u,C)}var _={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:S},N=q.createElement(se.M,(0,X.A)({},u,_),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return q.createElement(o,(0,X.A)({},u,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:a}),q.createElement(He,{captureEnabled:f,onTopArrive:E,onBottomArrive:j,lockEnabled:k},(function(t){return q.createElement(i,(0,X.A)({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:c,focusedOption:d}),P)})))}));return O||"fixed"===x?q.createElement(a,(0,X.A)({},u,{appendTo:O,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return q.createElement(Be,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return q.createElement("input",{name:i,type:"hidden",value:s})}var l=c.length>0?c.map((function(t,n){return q.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):q.createElement("input",{name:i,type:"hidden",value:""});return q.createElement("div",null,l)}var u=c[0]?this.getOptionValue(c[0]):"";return q.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return q.createElement(he,(0,X.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,c=i.id,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return q.createElement(r,(0,X.A)({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),q.createElement(t,(0,X.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:l}),q.createElement(o,(0,X.A)({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),q.createElement(n,(0,X.A)({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=(0,se.H)(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Qe(Ke(e,t))}(e,m):[],y=d?Xe(Ke(e,m),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:b,focusedOptionId:et(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&c;return a&&!O&&(x={value:(0,se.D)(f,m,m[0]||null),options:m,action:"initial-input-focus"},O=!c),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),(0,J.A)((0,J.A)((0,J.A)({},h),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(q.Component);st.defaultProps=Je;n(22900);var lt=n(81845),ut=n.n(lt),dt=(n(27003),(0,q.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,c=e.inputValue,s=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,m=(0,K.A)(e,Q),h=(0,q.useState)(void 0!==c?c:n),g=(0,G.A)(h,2),y=g[0],v=g[1],b=(0,q.useState)(void 0!==s?s:o),w=(0,G.A)(b,2),x=w[0],O=w[1],k=(0,q.useState)(void 0!==f?f:a),S=(0,G.A)(k,2),A=S[0],E=S[1],j=(0,q.useCallback)((function(e,t){"function"==typeof l&&l(e,t),E(e)}),[l]),P=(0,q.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)}),[u]),T=(0,q.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),D=(0,q.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),C=void 0!==c?c:y,_=void 0!==s?s:x,N=void 0!==f?f:A;return(0,J.A)((0,J.A)({},m),{},{inputValue:C,menuIsOpen:_,onChange:j,onInputChange:P,onMenuClose:D,onMenuOpen:T,value:N})}(e);return q.createElement(st,(0,X.A)({ref:t},n))}))),pt=dt,ft=n(46937),mt=n(38798),ht=n(24076);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 yt(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vt=(0,mt.Ay)((function(e){var t;return(0,N.jsx)("span",yt(yt({},e.innerProps),{},{children:(0,N.jsx)(ht.A,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bt=n(1671);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ot=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,N.jsx)(se.c.DropdownIndicator,xt(xt({},e),{},{children:(0,N.jsx)(bt.Jd,{children:(0,N.jsx)(ht.A,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var kt,St,At;function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Tt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Dt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ct=function(e){e.stopPropagation()};const _t=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,l=t.value,u=t.isMulti,d=t.inputValue,p=u&&(c||a);return(0,N.jsx)(bt.qV,{isTopAligned:p,children:(0,N.jsxs)(se.c.IndicatorsContainer,jt(jt({},e),{},{children:[e.children,n&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Tt(n,l),children:kt||(kt=(0,N.jsx)(ht.A,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Pt(r,d,l),children:St||(St=(0,N.jsx)(ht.A,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Dt(o,l),children:At||(At=(0,N.jsx)(ht.A,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Nt;const It=function(){return Nt||(Nt=(0,N.jsx)("span",{children:(0,N.jsx)(y.A,{size:"1.8rem"})}))};var Rt=n(44518);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 Lt(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ft=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,N.jsx)(bt.Ec,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,N.jsx)("div",{ref:e})},renderElement:function(o){return(0,N.jsx)("div",{ref:o,className:Rt.e,children:(0,N.jsx)(bt.jl,Lt(Lt({},l()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bt=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,N.jsxs)(se.c.MenuList,zt(zt({},e),{},{className:"MenuList",children:[n,r&&(0,N.jsx)(bt.iX,{children:o})]}))};var Wt=n(66779);const Ut=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,c=o.DetailLink,s=j()(i,t.key,null),l=(0,N.jsx)("span",{style:n.css,children:r}),u=c?(0,N.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,N.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,N.jsx)(p.A,{content:s?(0,N.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,N.jsx)("span",{onMouseOver:function(){return a&&!s&&a(t.key)},children:l})})})}):l;return(0,N.jsx)(bt.fp,{children:u})};var Vt=n(85015),qt=n.n(Vt),Yt=n(42194),$t=n.n(Yt),Jt=n(5556),Gt=n.n(Jt),Kt=n(23076);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=["linkComp"],en=function(e,t){var n=Kt.A.difference(e,t),r=$t()(l()(n,Zt),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},tn=(0,q.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&qt()(n)?(0,N.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,N.jsx)(t,{entityKey:n,children:r})}):r}),en);tn.propTypes={children:Gt().node,entityKey:Gt().any,linkComp:Gt().func};const nn=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,c=n.DetailLink,s=j()(i,t.key,null);return(0,N.jsx)(se.c.SingleValue,Xt(Xt({},e),{},{children:(0,N.jsx)(bt.EM,{onMouseOver:function(){return a&&!s&&a(t.key)},isDisabled:r,children:(0,N.jsx)(p.A,{content:s?(0,N.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,N.jsx)(tn,{linkComp:c,entityKey:t.key,children:o})})})}))};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 on=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const an=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,N.jsx)(se.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var l=q.Children.map(r,(function(e){return on(e)?e:null})),u=q.Children.map(r,(function(e){return on(e)?null:e})),d=s&&n;return(0,N.jsxs)(N.Fragment,{children:[!d&&(0,N.jsx)(N.Fragment,{children:l}),(0,N.jsx)(bt.NL,{children:u})]})};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 sn(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){c()(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}const ln=(0,P.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,l=e.noResultsText,u=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,m=e.options,h=e.searchOptions,g=e.theme,y=e.tooltips,v=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,O=(0,q.useRef)(null),k=(0,q.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},A=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},E=(0,q.useState)(S()),j=W()(E,2),P=j[0],T=j[1],D=(0,q.useState)(A()),C=W()(D,2),_=C[0],I=C[1],R=(0,q.useState)(!1),M=W()(R,2),L=M[0],F=M[1],H=(0,q.useState)(""),B=W()(H,2),U=B[0],Y=B[1],$=function(e){t&&t(e)},J=(0,q.useCallback)(h||function(){},[]),G=(0,q.useCallback)(V()(J,800,{trailing:!0}),[]),K=Boolean(f),Q=Boolean(p),X=Boolean(w),Z=Boolean(h)||!ft.A.isPrimaryTouchDevice();return(0,N.jsx)(bt.NR,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){T(S()),I(A())}),0)},children:(0,N.jsx)(bt.wO,{ref:k,children:(0,N.jsx)(pt,sn(sn({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:P,wrapperHeight:_,components:{ClearIndicator:vt,LoadingIndicator:It,DropdownIndicator:Ot,IndicatorsContainer:_t,IndicatorSeparator:null,Menu:Ft,MenuList:Bt,MultiValueLabel:Ut,SingleValue:nn,ValueContainer:an},noOptionsMessage:function(e){return l||("function"==typeof u?(0,N.jsx)(u,sn({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:Z},h?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:v||null,onChange:function(e){d(e),$(e)},onInputChange:function(e,t){var n=t.action;Y(e),h&&e&&G(e,v),""===e&&"input-change"===n&&$(v)},options:z()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),O.current&&null===O.current.focusedOptionRef&&e.preventDefault()),"Backspace"!==e.key||!i||U&&0!==U.length||e.preventDefault()},isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){$(v),F(!0)},onMenuClose:function(){F(!1)},styles:(0,bt.YC)(g),loadTooltip:a,tooltips:y,DetailLink:b,hasDocsTreeSearch:Q,openDocsTreeSearch:p,hasAdvancedSearch:K,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:X,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const un=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,c=e.onChange;return(0,N.jsx)(ln,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:F()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var dn,pn=P.Ay.div.withConfig({displayName:"StyledBoolEdit"})(dn||(dn=A()(["\n margin: 5px 0;\n"])));const fn=function(e){var t=e.onChange,n=e.value,r=void 0!==n&&n,o=e.name,i=e.id,a=e.immutable;return(0,N.jsx)(pn,{children:(0,N.jsx)("input",{type:"checkbox",checked:r,name:o,onChange:function(e){t&&t(e.target.checked)},id:i,disabled:a})})};var mn,hn,gn=n(59182),yn=n(85431),vn=P.Ay.div.withConfig({displayName:"StyledOption"})(mn||(mn=A()(["\n display: flex;\n align-items: baseline;\n gap: ",";\n margin-block: ",";\n\n input {\n margin: 0;\n }\n"])),T.A.space(-1.5),T.A.space(-1)),bn=P.Ay.span.withConfig({displayName:"StyledLabel"})(hn||(hn=A()(["\n ","\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n"])),(0,yn.A)(),T.A.space(-1));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 xn(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){c()(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 On={single:"radio",multiple:"checkbox"},kn={single:{checked:!1},multiple:{}},Sn=function(e,t){return t?(0,N.jsx)(gn.A,{value:e}):e},An=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,c=e.hideCheckbox,s=e.selectionType,l=e.renderHtmlInOptions,u=e.handleChange;return(0,N.jsxs)(vn,{children:[!c&&(0,N.jsx)("input",{name:t,type:On[s||"single"],checked:i||!1,onChange:u,id:n,disabled:a,"data-cy":"choice-answer-option-".concat(n)}),(0,N.jsx)(bn,{children:o||Sn(r||"",l||!1)})]})};const En=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return xn(xn({},t),t.id===e.target.id?{checked:e.target.checked}:kn[r.selectionType||"single"])}));t({options:o})}};return(0,N.jsx)(N.Fragment,{children:n.options.map((function(e){return(0,N.jsx)(An,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};var jn=n(50075);function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Pn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dn=(0,q.lazy)((function(){return Promise.all([n.e(6528),n.e(3722)]).then(n.bind(n,65066))}));const Cn=function(e){return(0,N.jsx)(q.Suspense,{fallback:(t=e.value,(0,N.jsx)("div",{children:(0,N.jsx)("p",{children:t})})),children:(0,N.jsx)(Dn,Tn({},e))});var t};var _n,Nn=P.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(_n||(_n=A()(["\n margin-top: ",";\n"])),T.A.space(-1.5));const In=(0,P.SL)(jn.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,N.jsx)(Nn,{children:(0,N.jsx)(Cn,{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 Rn=n(6442),Mn=n(81792),Ln=n(39892),Fn=n.n(Ln),Hn=n(85072),zn=n.n(Hn),Bn=n(97825),Wn=n.n(Bn),Un=n(77659),Vn=n.n(Un),qn=n(55056),Yn=n.n(qn),$n=n(10540),Jn=n.n($n),Gn=n(41113),Kn=n.n(Gn),Qn=n(2063),Xn={};Xn.styleTagTransform=Kn(),Xn.setAttributes=Yn(),Xn.insert=Vn().bind(null,"head"),Xn.domAPI=Wn(),Xn.insertStyleElement=Jn();zn()(Qn.A,Xn);Qn.A&&Qn.A.locals&&Qn.A.locals;function Zn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function er(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}var tr=n(61501),nr=n(43329),rr=n(29407);function or(e,t){const n=()=>(0,nr.w)(t?.in,NaN),r=t?.additionalDigits??2,o=function(e){const t={},n=e.split(ir.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ir.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ir.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=ir.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let i;if(o.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)}}(o.date,r);i=function(e,t){if(null===t)return new Date(NaN);const n=e.match(ar);if(!n)return new Date(NaN);const r=!!n[4],o=lr(n[1]),i=lr(n[2])-1,a=lr(n[3]),c=lr(n[4]),s=lr(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){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,c,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dr[t]||(pr(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(pr(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(+i))return n();const a=+i;let c,s=0;if(o.time&&(s=function(e){const t=e.match(cr);if(!t)return NaN;const n=ur(t[1]),r=ur(t[2]),o=ur(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*tr.s0+r*tr.Cg+1e3*o}(o.time),isNaN(s)))return n();if(!o.timezone){const e=new Date(a+s),n=(0,rr.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return c=function(e){if("Z"===e)return 0;const t=e.match(sr);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*tr.s0+o*tr.Cg)}(o.timezone),isNaN(c)?n():(0,rr.a)(a+s+c,t?.in)}const ir={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ar=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lr(e){return e?parseInt(e):1}function ur(e){return e&&parseFloat(e.replace(",","."))||0}const dr=[31,null,31,30,31,30,31,31,30,31,30,31];function pr(e){return e%400==0||e%4==0&&e%100!=0}var fr=n(48854),mr=n(32370);function hr(e,t){return+(0,rr.a)(e)<+(0,rr.a)(t)}var gr=n(85577),yr=n(14533),vr=n(74279),br=n(81007),wr=n(72794),xr=n(6463),Or=n(80337);function kr(e,t){const n=(0,rr.a)(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}var Sr=n(70228);function Ar(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function Er(e,t){const n=(0,rr.a)(e,t?.in);return n.setHours(23,59,59,999),n}var jr=n(92516);function Pr(e,t){const n=(0,jr.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,rr.a)(e,t?.in),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Tr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}var Dr=n(5305);function Cr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function _r(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Nr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return+Ar(r)==+Ar(o)}function Ir(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return+(0,xr.o)(r)==+(0,xr.o)(o)}function Rr(e,t){return+(0,rr.a)(e)==+(0,rr.a)(t)}function Mr(e,t,n){const r=+(0,rr.a)(e,n?.in),[o,i]=[+(0,rr.a)(t.start,n?.in),+(0,rr.a)(t.end,n?.in)].sort(((e,t)=>e-t));return r>=o&&r<=i}function Lr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=(0,nr.w)(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function Fr(e,t,n){const r=(0,rr.a)(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=(0,nr.w)(n?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const c=Lr(a);return r.setMonth(t,Math.min(i,c)),r}function Hr(e,t,n){const r=(0,rr.a)(e,n?.in),o=t-(Math.trunc(r.getMonth()/3)+1);return Fr(r,r.getMonth()+3*o)}function zr(e,t){return(0,rr.a)(e,t?.in).getFullYear()}function Br(e,t){return(0,rr.a)(e,t?.in).getMonth()}function Wr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ur(e,t){const n=(0,rr.a)(e,t?.in);return Math.trunc(n.getMonth()/3)+1}var Vr=n(2831),qr=n(40337),Yr=n(4155);function $r(e){return(0,rr.a)(e).getSeconds()}function Jr(e,t,n){const r=(0,rr.a)(e,n?.in);if(isNaN(t))return(0,nr.w)(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=(0,nr.w)(n?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);return o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Gr(e,t,n){return Jr(e,-t,n)}function Kr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Qr(e,t,n){return Jr(e,3*t,n)}function Xr(e,t,n){return Qr(e,-t,n)}function Zr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return 4*(r.getFullYear()-o.getFullYear())+(Ur(r)-Ur(o))}function eo(e,t,n){return Jr(e,12*t,n)}function to(e,t,n){return eo(e,-t,n)}function no(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function ro(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}function oo(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}var io=n(80658);function ao(e,t,n){return(0,nr.w)(n?.in||e,+(0,rr.a)(e)+t)}function co(e,t,n){return ao(e,t*tr.s0,n)}function so(e,t,n){const r=(0,rr.a)(e,n?.in);return r.setTime(r.getTime()+t*tr.Cg),r}function lo(e,t,n){return ao(e,1e3*t,n)}function uo(e,t){return+(0,rr.a)(e)>+(0,rr.a)(t)}function po(e,t){return(0,rr.a)(e,t?.in).getDay()}function fo(e,t){return(0,rr.a)(e,t?.in).getDate()}var mo=n(16172);function ho(e,t,n){return(0,mo.f)(e,7*t,n)}function go(e){return+(0,rr.a)(e)}function yo(e,t,n){const r=(0,rr.a)(e,n?.in);return isNaN(+r)?(0,nr.w)(n?.in||e,NaN):(r.setFullYear(t),r)}function vo(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t),i=bo(r,o),a=Math.abs((0,Vr.m)(r,o));r.setDate(r.getDate()-i*a);const c=i*(a-Number(bo(r,o)===-i));return 0===c?0:c}function bo(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function wo(e,t,n){return ho(e,-t,n)}function xo(e,t,n){return(0,mo.f)(e,-t,n)}function Oo(){return"undefined"!=typeof window}function ko(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function So(e){return!!Oo()&&(e instanceof Element||e instanceof ko(e).Element)}function Ao(e){return ko(e).getComputedStyle(e)}const Eo=Math.min,jo=Math.max,Po=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),To={start:"end",end:"start"};function Do(e,t){return"function"==typeof e?e(t):e}function Co(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function No(e){return"y"===e?"height":"width"}function Io(e){return["top","bottom"].includes(Co(e))?"y":"x"}function Ro(e){return"x"===Io(e)?"y":"x"}function Mo(e){return e.replace(/start|end/g,(e=>To[e]))}function Lo(e){return e.replace(/left|right|bottom|top/g,(e=>Po[e]))}function Fo(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 Ho(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zo(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=Ro(t),c=No(a),s=Co(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(_o(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function Bo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Do(t,e),m=Fo(f),h=c[p?"floating"===d?"reference":"floating":d],g=Ho(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:s})),y="floating"===d?{...a.floating,x:r,y:o}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Ho(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:v,strategy:s}):y);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}const Wo=Math.min,Uo=Math.max,Vo=Math.round,qo=Math.floor,Yo=e=>({x:e,y:e});function $o(e){return Ko(e)?(e.nodeName||"").toLowerCase():"#document"}function Jo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Go(e){var t;return null==(t=(Ko(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ko(e){return e instanceof Node||e instanceof Jo(e).Node}function Qo(e){return e instanceof Element||e instanceof Jo(e).Element}function Xo(e){return e instanceof HTMLElement||e instanceof Jo(e).HTMLElement}function Zo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot)}function ei(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ai(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ti(e){return["table","td","th"].includes($o(e))}function ni(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ri(e){const t=oi(),n=Qo(e)?ai(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 oi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ii(e){return["html","body","#document"].includes($o(e))}function ai(e){return Jo(e).getComputedStyle(e)}function ci(e){return Qo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if("html"===$o(e))return e;const t=e.assignedSlot||e.parentNode||Zo(e)&&e.host||Go(e);return Zo(t)?t.host:t}function li(e){const t=si(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xo(t)&&ei(t)?t:li(t)}function ui(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=li(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Jo(o);return i?t.concat(a,a.visualViewport||[],ei(o)?o:[],a.frameElement&&n?ui(a.frameElement):[]):t.concat(o,ui(o,[],n))}function di(e){const t=ai(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Vo(n)!==i||Vo(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function pi(e){return Qo(e)?e:e.contextElement}function fi(e){const t=pi(e);if(!Xo(t))return Yo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=di(t);let a=(i?Vo(n.width):n.width)/r,c=(i?Vo(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const mi=Yo(0);function hi(e){const t=Jo(e);return oi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mi}function gi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=pi(e);let a=Yo(1);t&&(r?Qo(r)&&(a=fi(r)):a=fi(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Jo(e))&&t}(i,n,r)?hi(i):Yo(0);let s=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Jo(i),t=r&&Qo(r)?Jo(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=fi(o),t=o.getBoundingClientRect(),r=ai(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,u*=e.x,d*=e.y,s+=i,l+=a,n=Jo(o),o=n.frameElement}}return Ho({width:u,height:d,x:s,y:l})}function yi(e){return gi(Go(e)).left+ci(e).scrollLeft}function vi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Jo(e),r=Go(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const e=oi();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=Go(e),n=ci(e),r=e.ownerDocument.body,o=Uo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Uo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yi(e);const c=-n.scrollTop;return"rtl"===ai(r).direction&&(a+=Uo(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(Go(e));else if(Qo(t))r=function(e,t){const n=gi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Xo(e)?fi(e):Yo(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=hi(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ho(r)}function bi(e,t){const n=si(e);return!(n===t||!Qo(n)||ii(n))&&("fixed"===ai(n).position||bi(n,t))}function wi(e,t,n){const r=Xo(t),o=Go(t),i="fixed"===n,a=gi(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const s=Yo(0);if(r||!r&&!i)if(("body"!==$o(t)||ei(o))&&(c=ci(t)),r){const e=gi(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=yi(o));return{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function xi(e){return"static"===ai(e).position}function Oi(e,t){return Xo(e)&&"fixed"!==ai(e).position?t?t(e):e.offsetParent:null}function ki(e,t){const n=Jo(e);if(ni(e))return n;if(!Xo(e)){let t=si(e);for(;t&&!ii(t);){if(Qo(t)&&!xi(t))return t;t=si(t)}return n}let r=Oi(e,t);for(;r&&ti(r)&&xi(r);)r=Oi(r,t);return r&&ii(r)&&xi(r)&&!ri(r)?n:r||function(e){let t=si(e);for(;Xo(t)&&!ii(t);){if(ri(t))return t;if(ni(t))return null;t=si(t)}return null}(e)||n}const Si={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Go(r),c=!!t&&ni(t.floating);if(r===a||c&&i)return n;let s={scrollLeft:0,scrollTop:0},l=Yo(1);const u=Yo(0),d=Xo(r);if((d||!d&&!i)&&(("body"!==$o(r)||ei(a))&&(s=ci(r)),Xo(r))){const e=gi(r);l=fi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+u.x,y:n.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:Go,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ni(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter((e=>Qo(e)&&"body"!==$o(e))),o=null;const i="fixed"===ai(e).position;let a=i?si(e):e;for(;Qo(a)&&!ii(a);){const t=ai(a),n=ri(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ei(a)&&!n&&bi(e,a))?r=r.filter((e=>e!==a)):o=t,a=si(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{const r=vi(t,n,o);return e.top=Uo(r.top,e.top),e.right=Wo(r.right,e.right),e.bottom=Wo(r.bottom,e.bottom),e.left=Uo(r.left,e.left),e}),vi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ki,getElementRects:async function(e){const t=this.getOffsetParent||ki,n=this.getDimensions,r=await n(e.floating);return{reference:wi(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}=di(e);return{width:t,height:n}},getScale:fi,isElement:Qo,isRTL:function(e){return"rtl"===ai(e).direction}};function Ai(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=pi(e),u=o||i?[...l?ui(l):[],...ui(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&c?function(e,t){let n,r=null;const o=Go(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const f={rootMargin:-qo(u)+"px "+-qo(o.clientWidth-(l+d))+"px "+-qo(o.clientHeight-(u+p))+"px "+-qo(l)+"px",threshold:Uo(0,Wo(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),i}(l,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),l&&!s&&m.observe(l),m.observe(t));let h=s?gi(e):null;return s&&function t(){const r=gi(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(p)}}const Ei=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Co(n),c=_o(n),s="y"===Io(n),l=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Do(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof m&&(f="end"===c?-1*m:m),s?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},ji=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Do(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Co(o),v=Co(c)===c,b=await(null==s.isRTL?void 0:s.isRTL(l.floating)),w=p||(v||!h?[Lo(c)]:function(e){const t=Lo(e);return[Mo(e),t,Mo(t)]}(c));p||"none"===m||w.push(...function(e,t,n,r){const o=_o(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[]}}(Co(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Mo)))),i}(c,h,m,b));const x=[c,...w],O=await Bo(t,g),k=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=_o(e),o=Ro(e),i=No(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Lo(a)),[a,Lo(a)]}(o,a,b);k.push(O[e[0]],O[e[1]])}if(S=[...S,{placement:o,overflows:k}],!k.every((e=>e<=0))){var A,E;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(E=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var j;const e=null==(j=S.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:j[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Pi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:s}=t,{element:l,padding:u=0}=Do(e,t)||{};if(null==l)return{};const d=Fo(u),p={x:n,y:r},f=Ro(o),m=No(f),h=await a.getDimensions(l),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-p[f]-i.floating[m],x=p[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let k=O?O[b]:0;k&&await(null==a.isElement?void 0:a.isElement(O))||(k=c.floating[b]||i.floating[m]);const S=w/2-x/2,A=k/2-h[m]/2-1,E=Eo(d[y],A),j=Eo(d[v],A),P=E,T=k-h[m]-j,D=k/2-h[m]/2+S,C=jo(P,Eo(D,T));const _=!s.arrow&&null!=_o(o)&&D!==C&&i.reference[m]/2-(D<P?E:j)-h[m]/2<0,N=_?D<P?D-P:D-T:0;return{[f]:p[f]+N,data:{[f]:C,centerOffset:D-C-N,..._&&{alignmentOffset:N}},reset:_}}}),Ti=(e,t,n)=>{const r=new Map,o={platform:Si,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zo(l,r,s),p=r,f={},m=0;for(let n=0;n<c.length;n++){const{name:i,fn:h}=c[n],{x:g,y,data:v,reset:b}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[i]:{...f[i],...v}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=zo(l,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Di="undefined"!=typeof document?q.useLayoutEffect:q.useEffect;function Ci(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(!Ci(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)&&!Ci(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _i(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ni(e,t){const n=_i(e);return Math.round(t*n)/n}function Ii(e){const t=q.useRef(e);return Di((()=>{t.current=e})),t}const Ri=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?Pi({element:n.current,padding:r}).fn(t):{}:n?Pi({element:n,padding:r}).fn(t):{};var o}}),Mi=(e,t)=>({...Ei(e),options:[e,t]}),Li=(e,t)=>({...ji(e),options:[e,t]}),Fi=(e,t)=>({...Ri(e),options:[e,t]});const Hi={...Y},zi=Hi.useInsertionEffect||(e=>e());function Bi(e){const t=q.useRef((()=>{0}));return zi((()=>{t.current=e})),q.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 Wi="ArrowUp",Ui="ArrowDown",Vi="ArrowLeft",qi="ArrowRight";var Yi="undefined"!=typeof document?q.useLayoutEffect:q.useEffect;const $i=[Vi,qi],Ji=[Wi,Ui];let Gi=!1,Ki=0;const Qi=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ki++;const Xi=Hi.useId||function(){const[e,t]=q.useState((()=>Gi?Qi():void 0));return Yi((()=>{null==e&&t(Qi())}),[]),q.useEffect((()=>{Gi=!0}),[]),e};const Zi=q.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:c=7,tipRadius:s=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...h}=e;const g=Xi(),[y,v]=q.useState(!1);if(Yi((()=>{if(!r)return;"rtl"===Ao(r).direction&&v(!0)}),[r]),!r)return null;const[b,w]=n.split("-"),x="top"===b||"bottom"===b;let O=u;(x&&null!=i&&i.x||!x&&null!=i&&i.y)&&(O=null);const k=2*l,S=k/2,A=a/2*(s/-8+1),E=c/2*s/4,j=!!p,P=O&&"end"===w?"bottom":"top";let T=O&&"end"===w?"right":"left";O&&y&&(T="end"===w?"left":"right");const D=null!=(null==o?void 0:o.x)?O||o.x:"",C=null!=(null==o?void 0:o.y)?O||o.y:"",_=p||"M0,0 H"+a+" L"+(a-A)+","+(c-E)+" Q"+a/2+","+c+" "+A+","+(c-E)+" Z",I={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,N.jsxs)("svg",{...h,"aria-hidden":!0,ref:t,width:j?a:a+k,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[T]:D,[P]:C,[b]:x||j?"100%":"calc(100% - "+k/2+"px)",transform:[I,f].filter((e=>!!e)).join(" "),...m},children:[k>0&&(0,N.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:k+(p?0:1),d:_}),(0,N.jsx)("path",{stroke:k&&!p?h.fill:"none",d:_}),(0,N.jsx)("clipPath",{id:g,children:(0,N.jsx)("rect",{x:-S,y:S*(j?-1:1),width:a+k,height:a})})]})}));function ea(){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 ta=q.createContext(null),na=q.createContext(null),ra=()=>{var e;return(null==(e=q.useContext(ta))?void 0:e.id)||null},oa=()=>q.useContext(na);function ia(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Xi(),i=q.useRef({}),[a]=q.useState((()=>ea())),c=null!=ra(),[s,l]=q.useState(r.reference),u=Bi(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),d=q.useMemo((()=>({setPositionReference:l})),[]),p=q.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return q.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=q.useState(null),[c,s]=q.useState(null),l=(null==o?void 0:o.domReference)||i,u=q.useRef(null),d=oa();Yi((()=>{l&&(u.current=l)}),[l]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:s,open:l}=e,[u,d]=q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=q.useState(r);Ci(p,r)||f(r);const[m,h]=q.useState(null),[g,y]=q.useState(null),v=q.useCallback((e=>{e!==O.current&&(O.current=e,h(e))}),[]),b=q.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=i||m,x=a||g,O=q.useRef(null),k=q.useRef(null),S=q.useRef(u),A=null!=s,E=Ii(s),j=Ii(o),P=Ii(l),T=q.useCallback((()=>{if(!O.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};j.current&&(e.platform=j.current),Ti(O.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};D.current&&!Ci(S.current,t)&&(S.current=t,lt.flushSync((()=>{d(t)})))}))}),[p,t,n,j,P]);Di((()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const D=q.useRef(!1);Di((()=>(D.current=!0,()=>{D.current=!1})),[]),Di((()=>{if(w&&(O.current=w),x&&(k.current=x),w&&x){if(E.current)return E.current(w,x,T);T()}}),[w,x,T,E,A]);const C=q.useMemo((()=>({reference:O,floating:k,setReference:v,setFloating:b})),[v,b]),_=q.useMemo((()=>({reference:w,floating:x})),[w,x]),N=q.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Ni(_.floating,u.x),r=Ni(_.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._i(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,_.floating,u.x,u.y]);return q.useMemo((()=>({...u,update:T,refs:C,elements:_,floatingStyles:N})),[u,T,C,_,N])}({...e,elements:{...o,...c&&{reference:c}}}),f=q.useCallback((e=>{const t=So(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),m=q.useCallback((e=>{(So(e)||null===e)&&(u.current=e,a(e)),(So(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!So(e))&&p.refs.setReference(e)}),[p.refs]),h=q.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=q.useMemo((()=>({...p.elements,domReference:l})),[p.elements,l]),y=q.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return Yi((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),q.useMemo((()=>({...p,context:y,refs:h,elements:g})),[p,h,g,y])}
|
|
10
|
+
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var c=2*(r+1)-1,s=e[c],l=c+1,u=e[l];if(0>i(s,n))l<o&&0>i(u,s)?(e[r]=u,e[l]=n,r=l):(e[r]=s,e[c]=n,r=c);else{if(!(l<o&&0>i(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,s=c.now();t.unstable_now=function(){return c.now()-s}}var l=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function O(e){if(g=!1,x(e),!h)if(null!==r(l))h=!0,S||(S=!0,k());else{var t=r(u);null!==t&&_(O,t.startTime-e)}}var k,S=!1,A=-1,E=5,j=-1;function P(){return!!y||!(t.unstable_now()-j<E)}function T(){if(y=!1,S){var e=t.unstable_now();j=e;var n=!0;try{e:{h=!1,g&&(g=!1,b(A),A=-1),m=!0;var i=f;try{t:{for(x(e),p=r(l);null!==p&&!(p.expirationTime>e&&P());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var c=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof c){p.callback=c,x(e),n=!0;break t}p===r(l)&&o(l),x(e)}else o(l);p=r(l)}if(null!==p)n=!0;else{var s=r(u);null!==s&&_(O,s.startTime-e),n=!1}}break e}finally{p=null,f=i,m=!1}n=void 0}}finally{n?k():S=!1}}}if("function"==typeof w)k=function(){w(T)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,C=D.port2;D.port1.onmessage=T,k=function(){C.postMessage(null)}}else k=function(){v(T,0)};function _(e,n){A=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(l)&&e===r(u)&&(g?(b(A),A=-1):g=!0,_(O,i-a))):(e.sortIndex=c,n(l,e),h||m||(h=!0,S||(S=!0,k()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},4883:t=>{"use strict";t.exports=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)]}},5016:(e,t,n)=>{"use strict";n.d(t,{AB:()=>q,AE:()=>Y,C$:()=>z,F1:()=>J,Gw:()=>F,Js:()=>Q,Li:()=>H,MM:()=>L,Ng:()=>$,QF:()=>I,aB:()=>R,fN:()=>U,oY:()=>V,or:()=>C,pR:()=>_,rY:()=>N,rs:()=>B,v8:()=>W,vB:()=>M,vr:()=>G,zG:()=>K});var r,o,i,a,c,s,l,u,d,p,f,m,h,g,y,v,b,w,x,O,k,S=n(72189),A=n.n(S),E=n(51510),j=n(85431),P=n(57488),T=n(33090),D=n(26166),C=E.Ay.b.withConfig({displayName:"StyledB"})(r||(r=A()(["\n && {\n ","\n }\n ","\n"])),(0,j.A)({fontWeight:P.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),_=E.Ay.code.withConfig({displayName:"StyledCode"})(o||(o=A()(["\n && {\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n white-space: pre;\n overflow-y: auto;\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),P.t7.color("backgroundTypographyCode"),P.t7.radii("form"),D.A.space(-4),D.A.space(-2)),N=E.Ay.del.withConfig({displayName:"StyledDel"})(i||(i=A()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),I=E.Ay.em.withConfig({displayName:"StyledEm"})(a||(a=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),R=E.Ay.figcaption.withConfig({displayName:"StyledFigcaption"})(c||(c=A()(["\n && {\n ","\n ","\n margin: "," 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-2),D.A.space(-1)),M=E.Ay.i.withConfig({displayName:"StyledI"})(s||(s=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontStyle:"italic"}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),L=E.Ay.ins.withConfig({displayName:"StyledIns"})(l||(l=A()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),F=E.Ay.label.withConfig({displayName:"StyledLabel"})(u||(u=A()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-1)),H=E.Ay.mark.withConfig({displayName:"StyledMark"})(d||(d=A()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n padding: "," ",";\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),color:P.t7.color("paper")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),P.t7.color("signal.info"),P.t7.radii("form"),D.A.space(-4),D.A.space(-2)),z=E.Ay.p.withConfig({displayName:"StyledP"})(p||(p=A()(["\n && {\n ","\n ","\n margin: 0 0 ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-1)),B=E.Ay.pre.withConfig({displayName:"StyledPre"})(f||(f=A()(["\n && {\n ","\n ","\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n display: block;\n margin: 0 0 ",";\n padding: "," ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),P.t7.color("backgroundTypographyCode"),P.t7.radii("form"),P.t7.color("border"),D.A.space(-1),D.A.space(-3),D.A.space(-2)),W=E.Ay.s.withConfig({displayName:"StyledS"})(m||(m=A()(["\n && {\n ","\n ","\n text-decoration: line-through;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),U=E.Ay.small.withConfig({displayName:"StyledSmall"})(h||(h=A()(["\n && {\n ","\n font-size: calc(1em / ",");\n ","\n }\n"])),(0,j.A)(),P.t7.fontSize("factor"),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),V=E.Ay.span.withConfig({displayName:"StyledSpan"})(g||(g=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),q=E.Ay.sub.withConfig({displayName:"StyledSub"})(y||(y=A()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n bottom: -0.25em;\n vertical-align: baseline;\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),Y=E.Ay.sup.withConfig({displayName:"StyledSup"})(v||(v=A()(["\n && {\n ","\n ","\n line-height: 0;\n position: relative;\n top: -0.5em;\n vertical-align: baseline;\n }\n"])),(0,j.A)({fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),$=E.Ay.strong.withConfig({displayName:"StyledStrong"})(b||(b=A()(["\n && {\n ","\n ","\n }\n"])),(0,j.A)({fontWeight:P.t7.fontWeight("bold")}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),J=E.Ay.time.withConfig({displayName:"StyledTime"})(w||(w=A()(["\n && {\n ","\n ","\n padding: "," 0;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}),D.A.space(-3)),G=E.Ay.u.withConfig({displayName:"StyledU"})(x||(x=A()(["\n && {\n ","\n ","\n text-decoration: underline;\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),K=E.Ay.var.withConfig({displayName:"StyledVar"})(O||(O=A()(["\n && {\n ","\n ","\n &:after {\n content: ']';\n }\n\n &:before {\n content: '[';\n }\n }\n"])),(0,j.A)({fontFamily:P.t7.fontFamily("monospace"),fontSize:D.A.font(-1)}),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()})),Q=E.Ay.q.withConfig({displayName:"StyledQ"})(k||(k=A()(["\n && {\n ","\n ","\n &:after {\n content: close-quote;\n }\n\n &:before {\n content: open-quote;\n }\n }\n"])),(0,j.A)(),(function(e){return e.breakWords?(0,T.K)():(0,T.s)()}))},5092:(e,t,n)=>{"use strict";n.d(t,{DK:()=>T,J5:()=>j,L9:()=>D,PJ:()=>A,PZ:()=>O,iN:()=>k,pI:()=>C,ue:()=>E,vv:()=>S,xe:()=>P});var r,o,i,a,c,s,l,u,d,p,f=n(72189),m=n.n(f),h=n(51510),g=n(76242),y=n(5016),v=n(27113),b=n(26166),w=n(57488),x=n(85431),O=h.Ay.section.withConfig({displayName:"StyledSection"})(r||(r=m()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),k=h.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=m()(["\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"])),g.Ay,b.A.space(-2)),S=h.Ay.div.withConfig({displayName:"StyledDropzone"})(i||(i=m()(["\n width: 100%;\n display: flex;\n margin-right: ",";\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),b.A.space(-2),g.Ay,w.t7.color("backgroundItemHover")),A=h.Ay.div.withConfig({displayName:"StyledUploadInput"})(a||(a=m()(["\n ","\n width: 100%;\n cursor: ",";\n background-color: transparent;\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n align-items: center;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,x.A)(),(function(e){return e.immutable?"not-allowed":"pointer"}),(function(e){return e.immutable?v.D.shade2(e):v.D.base(e)}),b.A.space(-2),g.Ay,b.A.space(-3.1),b.A.space(-1.5)),E=h.Ay.div.withConfig({displayName:"StyledUploadProgress"})(c||(c=m()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),b.A.space(-2)),j=(0,h.Ay)(y.oY).withConfig({displayName:"StyledUploadProgressText"})(s||(s=m()(["\n && {\n ","\n }\n"])),(0,x.A)({fontSize:b.A.font(-1)})),P=h.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(l||(l=m()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),b.A.space(-2)),T=h.Ay.div.withConfig({displayName:"StyledView"})(u||(u=m()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),b.A.space(-2)),D=h.Ay.div.withConfig({displayName:"StyledUploadTxt"})(d||(d=m()(["\n width: 100%;\n text-align: center;\n font-style: italic;\n"]))),C=h.Ay.div.withConfig({displayName:"StyledUploadOverlay"})(p||(p=m()(["\n cursor: pointer;\n position: absolute;\n inset: 0;\n background-color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n"])),w.t7.color("backgroundUploadOverlay"))},5287:(e,t,n)=>{var r=n(34932),o=n(27185),i=n(69302),a=n(80741),c=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=c},5305:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(43329);function o(e,...t){const n=r.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}},5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(31247)},5556:(e,t,n)=>{e.exports=n(2694)()},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=n(76545),c=n(28303),s=n(72552),l=n(47473),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=l(r),g=l(o),y=l(i),v=l(a),b=l(c),w=s;(r&&w(new r(new ArrayBuffer(1)))!=m||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||c&&w(new c)!=f)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return m;case g:return u;case y:return d;case v:return p;case b:return f}return t}),e.exports=w},5948:(e,t,n)=>{"use strict";n.d(t,{A:()=>Kd});var r,o,i,a=n(26396),c=n.n(a),s=n(90179),l=n.n(s),u=n(62193),d=n.n(u),p=n(3634),f=n(62243),m=n.n(f),h=n(48268),g=n(44905),y=n(69556),v=n(56375),b=n(40443),w=n(85735),x=n.n(w),O=function(e){return-1*Math.abs(e)},k=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===x()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},S=n(72189),A=n.n(S),E=n(58156),j=n.n(E),P=n(51510),T=n(26166),D=n(57488),C=P.Ay.div.withConfig({displayName:"StyledLocationEdit"})(r||(r=A()(["\n && {\n ","\n position: relative;\n\n & > div {\n &:nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n &:nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\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"])),b.oX,T.A.space(-2),T.A.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?j()(n,"colors.textDisabled"):j()(n,"colors.text")}),b.PG,b.jx,D.t7.color("paper"),D.t7.color("signal.info"),D.t7.color("secondaryLight"),D.t7.color("backgroundItemHover")),_=(0,P.Ay)(C).withConfig({displayName:"StyledAddressEdit"})(o||(o=A()(["\n && {\n & > div:nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n"]))),N=n(74848);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 R(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const M=function(e){var t,n=e.onChange,r=e.options,o=e.value,a=e.id,s=e.immutable,l=e.name,u=function(e){return function(t){return t[e]}},d=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},p=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=d(e),c=n?"- ".concat(n):"",s=null!=r&&r.display?"/ ".concat(r.display):"";return(0,N.jsxs)(v.Ay.Span,{children:[a,", ",o," ",i," ",c," ",s]})},f=function(e,t){var o,i=t.suggestion;!0===(null==i?void 0:i.validationRequired)?null===(o=r.validateLocation)||void 0===o||o.call(r,i,n):n(i||{})},w=function(e){var t,n=e.value,o=r.locationValues.country,i={street:n};null===(t=r.fetchSuggestions)||void 0===t||t.call(r,i,o)},x={id:a,value:o&&o.street?d(o):"",onChange:(t="street",function(e,r){var i=r.newValue;n(R(R({},o),{},c()({},t,i)))}),disabled:s,name:"address-line1",autocomplete:"street-address"};return(0,N.jsx)(h.A,{children:function(e){var t,n,o,a,c=e.getRef;return(0,N.jsxs)(_,{immutable:s,name:l,ref:c,children:[(0,N.jsx)(m(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:w,getSuggestionValue:u("street"),renderSuggestion:p,onSuggestionsClearRequested:function(){},inputProps:x,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return Boolean(e&&!s)}}),(0,N.jsxs)(b.PG,{children:[r.isLoading&&(i||(i=(0,N.jsx)(y.A,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,a=t.postcode,Boolean(n&&(o||a))&&(0,N.jsx)(g.A,{href:k(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var L=n(69843),F=n.n(L),H=n(21259),z=n.n(H),B=n(22056),W=n.n(B),U=n(7350),V=n.n(U),q=n(4883),Y=n.t(q,2),$=n.n(q),J=n(47029),G=n(2482),K=n(35412),Q=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var X=n(65166);function Z(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 ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=n(65710);function re(e,t){if(t&&("object"===(0,ne.A)(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 oe(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=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}var ie=n(77987);var ae=n(25134);function ce(e){return function(e){if(Array.isArray(e))return(0,ie.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ae.A)(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 se=n(60355),le=n(3834),ue=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function de(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||ue(r)&&ue(o)))return!1;var r,o;return!0}for(var pe={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"},fe=function(e){return(0,le.Y)("span",(0,X.A)({css:pe},e))},me={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,u=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(u(a,n),".");if("menu"===t&&l){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},he=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,c=e.selectProps,s=e.id,l=e.isAppleDevice,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,f=c.isMulti,m=c.isOptionDisabled,h=c.isSearchable,g=c.menuIsOpen,y=c.options,v=c.screenReaderStatus,b=c.tabSelectsValue,w=c.isLoading,x=c["aria-label"],O=c["aria-live"],k=(0,q.useMemo)((function(){return(0,J.A)((0,J.A)({},me),u||{})}),[u]),S=(0,q.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,i=t.removedValue,c=t.removedValues,s=t.value,l=i||r||(e=s,Array.isArray(e)?null:e),u=l?d(l):"",p=o||c||void 0,f=p?p.map(d):[],h=(0,J.A)({isDisabled:l&&m(l,a),label:u,labels:f},t);n=k.onChange(h)}return n}),[t,k,m,a,d]),A=(0,q.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var c={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=k.onFocus(c)}return e}),[n,r,d,m,k,o,a,l]),E=(0,q.useMemo)((function(){var e="";if(g&&y.length&&!w&&k.onFilter){var t=v({count:o.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,k,y,v,w]),j="initial-input-focus"===(null==t?void 0:t.action),P=(0,q.useMemo)((function(){var e="";if(k.guidance){var t=r?"value":g?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:f,isSearchable:h,tabSelectsValue:b,isInitialFocus:j})}return e}),[x,n,r,f,m,h,g,k,a,b,j]),T=(0,le.Y)(q.Fragment,null,(0,le.Y)("span",{id:"aria-selection"},S),(0,le.Y)("span",{id:"aria-focused"},A),(0,le.Y)("span",{id:"aria-results"},E),(0,le.Y)("span",{id:"aria-guidance"},P));return(0,le.Y)(q.Fragment,null,(0,le.Y)(fe,{id:s},j&&T),(0,le.Y)(fe,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&T))},ge=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ye=new RegExp("["+ge.map((function(e){return e.letters})).join("")+"]","g"),ve={},be=0;be<ge.length;be++)for(var we=ge[be],xe=0;xe<we.letters.length;xe++)ve[we.letters[xe]]=we.base;var Oe=function(e){return e.replace(ye,(function(e){return ve[e]}))},ke=function(e,t){void 0===t&&(t=de);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}(Oe),Se=function(e){return e.replace(/^\s+|\s+$/g,"")},Ae=function(e){return"".concat(e.label," ").concat(e.value)},Ee=["innerRef"];function je(e){var t=e.innerRef,n=(0,K.A)(e,Ee),r=(0,se.r)(n,"onExited","in","enter","exit","appear");return(0,le.Y)("input",(0,X.A)({ref:t},r,{css:(0,le.AH)({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 Pe=["boxSizing","height","overflow","paddingRight","position"],Te={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function De(e){e.cancelable&&e.preventDefault()}function Ce(e){e.stopPropagation()}function _e(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ne(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ie=!("undefined"==typeof window||!window.document||!window.document.createElement),Re=0,Me={capture:!1,passive:!1};var Le=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Fe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function He(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,q.useRef)(!1),c=(0,q.useRef)(!1),s=(0,q.useRef)(0),l=(0,q.useRef)(null),u=(0,q.useCallback)((function(e,t){if(null!==l.current){var s=l.current,u=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=l.current,m=t>0,h=d-p-u,g=!1;h>t&&a.current&&(r&&r(e),a.current=!1),m&&c.current&&(i&&i(e),c.current=!1),m&&t>h?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!m&&-t>u&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),d=(0,q.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,q.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,q.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,q.useCallback)((function(e){if(e){var t=!!se.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),h=(0,q.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,q.useEffect)((function(){if(t){var e=l.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){l.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,q.useRef)({}),i=(0,q.useRef)(null),a=(0,q.useCallback)((function(e){if(Ie){var t=document.body,n=t&&t.style;if(r&&Pe.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Re<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,c=window.innerWidth-a+i||0;Object.keys(Te).forEach((function(e){var t=Te[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Ne()&&(t.addEventListener("touchmove",De,Me),e&&(e.addEventListener("touchstart",_e,Me),e.addEventListener("touchmove",Ce,Me))),Re+=1}}),[r]),c=(0,q.useCallback)((function(e){if(Ie){var t=document.body,n=t&&t.style;Re=Math.max(Re-1,0),r&&Re<1&&Pe.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Ne()&&(t.removeEventListener("touchmove",De,Me),e&&(e.removeEventListener("touchstart",_e,Me),e.removeEventListener("touchmove",Ce,Me)))}}),[r]);return(0,q.useEffect)((function(){if(t){var e=i.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){i.current=e}}({isEnabled:n});return(0,le.Y)(q.Fragment,null,n&&(0,le.Y)("div",{onClick:Le,css:Fe}),t((function(e){o(e),i(e)})))}var ze={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Be=function(e){var t=e.name,n=e.onFocus;return(0,le.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ze,value:"",onChange:function(){}})};function We(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 Ue(){return We(/^Mac/i)}function Ve(){return We(/^iPhone/i)||We(/^iPad/i)||Ue()&&navigator.maxTouchPoints>1}var qe={clearIndicator:se.a,container:se.b,control:se.d,dropdownIndicator:se.e,group:se.g,groupHeading:se.f,indicatorsContainer:se.i,indicatorSeparator:se.h,input:se.j,loadingIndicator:se.l,loadingMessage:se.k,menu:se.m,menuList:se.n,menuPortal:se.o,multiValue:se.p,multiValueLabel:se.q,multiValueRemove:se.t,noOptionsMessage:se.u,option:se.v,placeholder:se.w,singleValue:se.x,valueContainer:se.y};var Ye,$e={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}},Je={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,se.z)(),captureMenuScroll:!(0,se.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,J.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Ae,trim:!0,matchFrom:"any"},Ye),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?Se(t):t,l=a?Se(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=ke(s),l=Oe(l)),"start"===c?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,se.A)(),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 Ge(e,t,n,r){return{type:"option",data:t,isDisabled:rt(e,t,n),isSelected:ot(e,t,n),label:tt(e,t),value:nt(e,t),index:r}}function Ke(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ge(e,n,t,r)})).filter((function(t){return Ze(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ge(e,n,t,r);return Ze(e,i)?i:void 0})).filter(se.K)}function Qe(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ce(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Xe(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ce(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 Ze(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!at(e)||!i)&&it(e,{label:a,value:c,data:o},r)}var et=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},tt=function(e,t){return e.getOptionLabel(t)},nt=function(e,t){return e.getOptionValue(t)};function rt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ot(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nt(e,t);return n.some((function(t){return nt(e,t)===r}))}function it(e,t,n){return!e.filterOption||e.filterOption(t,n)}var at=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ct=1,st=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&&ee(e,t)}(i,e);var t,n,r,o=oe(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:"",isAppleDevice:!1},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.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,c=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(c){var l=t.getOptionValue(e);t.setValue((0,se.B)(a.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,se.C)(e),{action:"select-option",option:e,name:i});o?t.setValue((0,se.B)([].concat(ce(a),[e])),"select-option",e):t.setValue((0,se.C)(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=(0,se.D)(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((0,se.D)(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=(0,se.D)(e,o,o[0]||null);r&&t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return et(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Xe(Ke(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 se.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return tt(t.props,e)},t.getOptionValue=function(e){return nt(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=qe[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(0,se.F)(t.props)},t.buildCategorizedOptions=function(){return Ke(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Qe(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,J.A)({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&&(0,se.G)(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 at(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,c=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(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(h)t.removeValue(h);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):c&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ct),t.state.selectValue=(0,se.H)(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=et(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&&(0,se.I)(this.menuListRef,this.focusedOptionRef),(Ue()||Ve())&&this.setState({isAppleDevice:!0})}},{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&&((0,se.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var c=i.indexOf(r[0]);c>-1&&(a=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($e):(0,J.A)((0,J.A)({},$e),this.props.theme):$e}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,c=this.props,s=c.isMulti,l=c.isRtl,u=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:i,selectProps:c,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return rt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ot(this.props,e,t)}},{key:"filterOption",value:function(e,t){return it(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,c=e.menuIsOpen,s=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),h=(0,J.A)((0,J.A)((0,J.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?q.createElement(l,(0,X.A)({},f,{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},h)):q.createElement(je,(0,X.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:se.J,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,s=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,f=l.inputValue,m=l.placeholder,h=this.state,g=h.selectValue,y=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!u)return f?null:q.createElement(c,(0,X.A)({},s,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(t,a){var c=t===y,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return q.createElement(n,(0,X.A)({},s,{components:{Container:r,Label:o,Remove:i},isFocused:c,isDisabled:d,key:l,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(f)return null;var b=g[0];return q.createElement(a,(0,X.A)({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,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 q.createElement(e,(0,X.A)({},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?q.createElement(e,(0,X.A)({},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 q.createElement(n,(0,X.A)({},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 q.createElement(e,(0,X.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,m=p.inputValue,h=p.isLoading,g=p.loadingMessage,y=p.minMenuHeight,v=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,O=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,A=p.noOptionsMessage,E=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!b)return null;var P,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,c=t.label,s=t.value,p=d===o,f=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(n),g={id:h,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return q.createElement(l,(0,X.A)({},u,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:h,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),s="".concat(c,"-heading");return q.createElement(n,(0,X.A)({},u,{key:c,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(h){var D=g({inputValue:m});if(null===D)return null;P=q.createElement(c,u,D)}else{var C=A({inputValue:m});if(null===C)return null;P=q.createElement(s,u,C)}var _={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:S},N=q.createElement(se.M,(0,X.A)({},u,_),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return q.createElement(o,(0,X.A)({},u,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:a}),q.createElement(He,{captureEnabled:f,onTopArrive:E,onBottomArrive:j,lockEnabled:k},(function(t){return q.createElement(i,(0,X.A)({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:c,focusedOption:d}),P)})))}));return O||"fixed"===x?q.createElement(a,(0,X.A)({},u,{appendTo:O,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return q.createElement(Be,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return q.createElement("input",{name:i,type:"hidden",value:s})}var l=c.length>0?c.map((function(t,n){return q.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):q.createElement("input",{name:i,type:"hidden",value:""});return q.createElement("div",null,l)}var u=c[0]?this.getOptionValue(c[0]):"";return q.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return q.createElement(he,(0,X.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,c=i.id,s=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return q.createElement(r,(0,X.A)({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),q.createElement(t,(0,X.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:l}),q.createElement(o,(0,X.A)({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),q.createElement(n,(0,X.A)({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=(0,se.H)(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Qe(Ke(e,t))}(e,m):[],y=d?Xe(Ke(e,m),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:b,focusedOptionId:et(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,O=a&&c;return a&&!O&&(x={value:(0,se.D)(f,m,m[0]||null),options:m,action:"initial-input-focus"},O=!c),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),(0,J.A)((0,J.A)((0,J.A)({},h),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:O})}}],n&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(q.Component);st.defaultProps=Je;n(22900);var lt=n(81845),ut=n.n(lt),dt=(n(27003),(0,q.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,c=e.inputValue,s=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,m=(0,K.A)(e,Q),h=(0,q.useState)(void 0!==c?c:n),g=(0,G.A)(h,2),y=g[0],v=g[1],b=(0,q.useState)(void 0!==s?s:o),w=(0,G.A)(b,2),x=w[0],O=w[1],k=(0,q.useState)(void 0!==f?f:a),S=(0,G.A)(k,2),A=S[0],E=S[1],j=(0,q.useCallback)((function(e,t){"function"==typeof l&&l(e,t),E(e)}),[l]),P=(0,q.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)}),[u]),T=(0,q.useCallback)((function(){"function"==typeof p&&p(),O(!0)}),[p]),D=(0,q.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),C=void 0!==c?c:y,_=void 0!==s?s:x,N=void 0!==f?f:A;return(0,J.A)((0,J.A)({},m),{},{inputValue:C,menuIsOpen:_,onChange:j,onInputChange:P,onMenuClose:D,onMenuOpen:T,value:N})}(e);return q.createElement(st,(0,X.A)({ref:t},n))}))),pt=dt,ft=n(46937),mt=n(38798),ht=n(24076);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 yt(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vt=(0,mt.Ay)((function(e){var t;return(0,N.jsx)("span",yt(yt({},e.innerProps),{},{children:(0,N.jsx)(ht.A,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bt=n(1671);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ot=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,N.jsx)(se.c.DropdownIndicator,xt(xt({},e),{},{children:(0,N.jsx)(bt.Jd,{children:(0,N.jsx)(ht.A,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var kt,St,At;function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Tt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Dt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ct=function(e){e.stopPropagation()};const _t=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,l=t.value,u=t.isMulti,d=t.inputValue,p=u&&(c||a);return(0,N.jsx)(bt.qV,{isTopAligned:p,children:(0,N.jsxs)(se.c.IndicatorsContainer,jt(jt({},e),{},{children:[e.children,n&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Tt(n,l),children:kt||(kt=(0,N.jsx)(ht.A,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Pt(r,d,l),children:St||(St=(0,N.jsx)(ht.A,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!i&&(0,N.jsx)("span",{onTouchEnd:Ct,onMouseDown:Dt(o,l),children:At||(At=(0,N.jsx)(ht.A,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Nt;const It=function(){return Nt||(Nt=(0,N.jsx)("span",{children:(0,N.jsx)(y.A,{size:"1.8rem"})}))};var Rt=n(44518);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 Lt(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){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ft=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,N.jsx)(bt.Ec,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,N.jsx)("div",{ref:e})},renderElement:function(o){return(0,N.jsx)("div",{ref:o,className:Rt.e,children:(0,N.jsx)(bt.jl,Lt(Lt({},l()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bt=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,N.jsxs)(se.c.MenuList,zt(zt({},e),{},{className:"MenuList",children:[n,r&&(0,N.jsx)(bt.iX,{children:o})]}))};var Wt=n(66779);const Ut=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,c=o.DetailLink,s=j()(i,t.key,null),l=(0,N.jsx)("span",{style:n.css,children:r}),u=c?(0,N.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,N.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,N.jsx)(p.A,{content:s?(0,N.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,N.jsx)("span",{onMouseOver:function(){return a&&!s&&a(t.key)},children:l})})})}):l;return(0,N.jsx)(bt.fp,{children:u})};var Vt=n(85015),qt=n.n(Vt),Yt=n(42194),$t=n.n(Yt),Jt=n(5556),Gt=n.n(Jt),Kt=n(23076);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=["linkComp"],en=function(e,t){var n=Kt.A.difference(e,t),r=$t()(l()(n,Zt),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},tn=(0,q.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&qt()(n)?(0,N.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,N.jsx)(t,{entityKey:n,children:r})}):r}),en);tn.propTypes={children:Gt().node,entityKey:Gt().any,linkComp:Gt().func};const nn=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,c=n.DetailLink,s=j()(i,t.key,null);return(0,N.jsx)(se.c.SingleValue,Xt(Xt({},e),{},{children:(0,N.jsx)(bt.EM,{onMouseOver:function(){return a&&!s&&a(t.key)},isDisabled:r,children:(0,N.jsx)(p.A,{content:s?(0,N.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,N.jsx)(tn,{linkComp:c,entityKey:t.key,children:o})})})}))};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 on=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const an=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,N.jsx)(se.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var l=q.Children.map(r,(function(e){return on(e)?e:null})),u=q.Children.map(r,(function(e){return on(e)?null:e})),d=s&&n;return(0,N.jsxs)(N.Fragment,{children:[!d&&(0,N.jsx)(N.Fragment,{children:l}),(0,N.jsx)(bt.NL,{children:u})]})};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 sn(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){c()(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}const ln=(0,P.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,l=e.noResultsText,u=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,m=e.options,h=e.searchOptions,g=e.theme,y=e.tooltips,v=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,O=(0,q.useRef)(null),k=(0,q.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},A=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},E=(0,q.useState)(S()),j=W()(E,2),P=j[0],T=j[1],D=(0,q.useState)(A()),C=W()(D,2),_=C[0],I=C[1],R=(0,q.useState)(!1),M=W()(R,2),L=M[0],F=M[1],H=(0,q.useState)(""),B=W()(H,2),U=B[0],Y=B[1],$=function(e){t&&t(e)},J=(0,q.useCallback)(h||function(){},[]),G=(0,q.useCallback)(V()(J,800,{trailing:!0}),[]),K=Boolean(f),Q=Boolean(p),X=Boolean(w),Z=Boolean(h)||!ft.A.isPrimaryTouchDevice();return(0,N.jsx)(bt.NR,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){T(S()),I(A())}),0)},children:(0,N.jsx)(bt.wO,{ref:k,children:(0,N.jsx)(pt,sn(sn({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:P,wrapperHeight:_,components:{ClearIndicator:vt,LoadingIndicator:It,DropdownIndicator:Ot,IndicatorsContainer:_t,IndicatorSeparator:null,Menu:Ft,MenuList:Bt,MultiValueLabel:Ut,SingleValue:nn,ValueContainer:an},noOptionsMessage:function(e){return l||("function"==typeof u?(0,N.jsx)(u,sn({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:Z},h?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:v||null,onChange:function(e){d(e),$(e)},onInputChange:function(e,t){var n=t.action;Y(e),h&&e&&G(e,v),""===e&&"input-change"===n&&$(v)},options:z()(m||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),O.current&&null===O.current.focusedOptionRef&&e.preventDefault()),"Backspace"!==e.key||!i||U&&0!==U.length||e.preventDefault()},isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){$(v),F(!0)},onMenuClose:function(){F(!1)},styles:(0,bt.YC)(g),loadTooltip:a,tooltips:y,DetailLink:b,hasDocsTreeSearch:Q,openDocsTreeSearch:p,hasAdvancedSearch:K,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:X,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const un=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,c=e.onChange;return(0,N.jsx)(ln,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:F()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var dn,pn=P.Ay.div.withConfig({displayName:"StyledBoolEdit"})(dn||(dn=A()(["\n margin: 5px 0;\n"])));const fn=function(e){var t=e.onChange,n=e.value,r=void 0!==n&&n,o=e.name,i=e.id,a=e.immutable;return(0,N.jsx)(pn,{children:(0,N.jsx)("input",{type:"checkbox",checked:r,name:o,onChange:function(e){t&&t(e.target.checked)},id:i,disabled:a})})};var mn,hn,gn=n(59182),yn=n(85431),vn=P.Ay.div.withConfig({displayName:"StyledOption"})(mn||(mn=A()(["\n display: flex;\n align-items: baseline;\n gap: ",";\n margin-block: ",";\n\n input {\n margin: 0;\n }\n"])),T.A.space(-1.5),T.A.space(-1)),bn=P.Ay.span.withConfig({displayName:"StyledLabel"})(hn||(hn=A()(["\n ","\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n"])),(0,yn.A)(),T.A.space(-1));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 xn(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){c()(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 On={single:"radio",multiple:"checkbox"},kn={single:{checked:!1},multiple:{}},Sn=function(e,t){return t?(0,N.jsx)(gn.A,{value:e}):e},An=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,c=e.hideCheckbox,s=e.selectionType,l=e.renderHtmlInOptions,u=e.handleChange;return(0,N.jsxs)(vn,{children:[!c&&(0,N.jsx)("input",{name:t,type:On[s||"single"],checked:i||!1,onChange:u,id:n,disabled:a,"data-cy":"choice-answer-option-".concat(n)}),(0,N.jsx)(bn,{children:o||Sn(r||"",l||!1)})]})};const En=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return xn(xn({},t),t.id===e.target.id?{checked:e.target.checked}:kn[r.selectionType||"single"])}));t({options:o})}};return(0,N.jsx)(N.Fragment,{children:n.options.map((function(e){return(0,N.jsx)(An,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};var jn=n(50075);function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Pn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dn=(0,q.lazy)((function(){return Promise.all([n.e(6528),n.e(3722)]).then(n.bind(n,65066))}));const Cn=function(e){return(0,N.jsx)(q.Suspense,{fallback:(t=e.value,(0,N.jsx)("div",{children:(0,N.jsx)("p",{children:t})})),children:(0,N.jsx)(Dn,Tn({},e))});var t};var _n,Nn=P.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(_n||(_n=A()(["\n margin-top: ",";\n"])),T.A.space(-1.5));const In=(0,P.SL)(jn.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,N.jsx)(Nn,{children:(0,N.jsx)(Cn,{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 Rn=n(6442),Mn=n(81792),Ln=n(39892),Fn=n.n(Ln),Hn=n(85072),zn=n.n(Hn),Bn=n(97825),Wn=n.n(Bn),Un=n(77659),Vn=n.n(Un),qn=n(55056),Yn=n.n(qn),$n=n(10540),Jn=n.n($n),Gn=n(41113),Kn=n.n(Gn),Qn=n(2063),Xn={};Xn.styleTagTransform=Kn(),Xn.setAttributes=Yn(),Xn.insert=Vn().bind(null,"head"),Xn.domAPI=Wn(),Xn.insertStyleElement=Jn();zn()(Qn.A,Xn);Qn.A&&Qn.A.locals&&Qn.A.locals;function Zn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function er(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}var tr=n(61501),nr=n(43329),rr=n(29407);function or(e,t){const n=()=>(0,nr.w)(t?.in,NaN),r=t?.additionalDigits??2,o=function(e){const t={},n=e.split(ir.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ir.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ir.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=ir.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let i;if(o.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)}}(o.date,r);i=function(e,t){if(null===t)return new Date(NaN);const n=e.match(ar);if(!n)return new Date(NaN);const r=!!n[4],o=lr(n[1]),i=lr(n[2])-1,a=lr(n[3]),c=lr(n[4]),s=lr(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){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,c,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dr[t]||(pr(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(pr(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(+i))return n();const a=+i;let c,s=0;if(o.time&&(s=function(e){const t=e.match(cr);if(!t)return NaN;const n=ur(t[1]),r=ur(t[2]),o=ur(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*tr.s0+r*tr.Cg+1e3*o}(o.time),isNaN(s)))return n();if(!o.timezone){const e=new Date(a+s),n=(0,rr.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return c=function(e){if("Z"===e)return 0;const t=e.match(sr);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*tr.s0+o*tr.Cg)}(o.timezone),isNaN(c)?n():(0,rr.a)(a+s+c,t?.in)}const ir={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ar=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lr(e){return e?parseInt(e):1}function ur(e){return e&&parseFloat(e.replace(",","."))||0}const dr=[31,null,31,30,31,30,31,31,30,31,30,31];function pr(e){return e%400==0||e%4==0&&e%100!=0}var fr=n(48854),mr=n(32370);function hr(e,t){return+(0,rr.a)(e)<+(0,rr.a)(t)}var gr=n(85577),yr=n(14533),vr=n(74279),br=n(81007),wr=n(72794),xr=n(6463),Or=n(80337);function kr(e,t){const n=(0,rr.a)(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}var Sr=n(70228);function Ar(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function Er(e,t){const n=(0,rr.a)(e,t?.in);return n.setHours(23,59,59,999),n}var jr=n(92516);function Pr(e,t){const n=(0,jr.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,rr.a)(e,t?.in),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Tr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}var Dr=n(5305);function Cr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function _r(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Nr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return+Ar(r)==+Ar(o)}function Ir(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return+(0,xr.o)(r)==+(0,xr.o)(o)}function Rr(e,t){return+(0,rr.a)(e)==+(0,rr.a)(t)}function Mr(e,t,n){const r=+(0,rr.a)(e,n?.in),[o,i]=[+(0,rr.a)(t.start,n?.in),+(0,rr.a)(t.end,n?.in)].sort(((e,t)=>e-t));return r>=o&&r<=i}function Lr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=(0,nr.w)(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function Fr(e,t,n){const r=(0,rr.a)(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=(0,nr.w)(n?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const c=Lr(a);return r.setMonth(t,Math.min(i,c)),r}function Hr(e,t,n){const r=(0,rr.a)(e,n?.in),o=t-(Math.trunc(r.getMonth()/3)+1);return Fr(r,r.getMonth()+3*o)}function zr(e,t){return(0,rr.a)(e,t?.in).getFullYear()}function Br(e,t){return(0,rr.a)(e,t?.in).getMonth()}function Wr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ur(e,t){const n=(0,rr.a)(e,t?.in);return Math.trunc(n.getMonth()/3)+1}var Vr=n(2831),qr=n(40337),Yr=n(4155);function $r(e){return(0,rr.a)(e).getSeconds()}function Jr(e,t,n){const r=(0,rr.a)(e,n?.in);if(isNaN(t))return(0,nr.w)(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=(0,nr.w)(n?.in||e,r.getTime());i.setMonth(r.getMonth()+t+1,0);return o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Gr(e,t,n){return Jr(e,-t,n)}function Kr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Qr(e,t,n){return Jr(e,3*t,n)}function Xr(e,t,n){return Qr(e,-t,n)}function Zr(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return 4*(r.getFullYear()-o.getFullYear())+(Ur(r)-Ur(o))}function eo(e,t,n){return Jr(e,12*t,n)}function to(e,t,n){return eo(e,-t,n)}function no(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function ro(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}function oo(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}var io=n(80658);function ao(e,t,n){return(0,nr.w)(n?.in||e,+(0,rr.a)(e)+t)}function co(e,t,n){return ao(e,t*tr.s0,n)}function so(e,t,n){const r=(0,rr.a)(e,n?.in);return r.setTime(r.getTime()+t*tr.Cg),r}function lo(e,t,n){return ao(e,1e3*t,n)}function uo(e,t){return+(0,rr.a)(e)>+(0,rr.a)(t)}function po(e,t){return(0,rr.a)(e,t?.in).getDay()}function fo(e,t){return(0,rr.a)(e,t?.in).getDate()}var mo=n(16172);function ho(e,t,n){return(0,mo.f)(e,7*t,n)}function go(e){return+(0,rr.a)(e)}function yo(e,t,n){const r=(0,rr.a)(e,n?.in);return isNaN(+r)?(0,nr.w)(n?.in||e,NaN):(r.setFullYear(t),r)}function vo(e,t,n){const[r,o]=(0,Dr.x)(n?.in,e,t),i=bo(r,o),a=Math.abs((0,Vr.m)(r,o));r.setDate(r.getDate()-i*a);const c=i*(a-Number(bo(r,o)===-i));return 0===c?0:c}function bo(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function wo(e,t,n){return ho(e,-t,n)}function xo(e,t,n){return(0,mo.f)(e,-t,n)}function Oo(){return"undefined"!=typeof window}function ko(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function So(e){return!!Oo()&&(e instanceof Element||e instanceof ko(e).Element)}function Ao(e){return ko(e).getComputedStyle(e)}const Eo=Math.min,jo=Math.max,Po=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),To={start:"end",end:"start"};function Do(e,t){return"function"==typeof e?e(t):e}function Co(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function No(e){return"y"===e?"height":"width"}function Io(e){return["top","bottom"].includes(Co(e))?"y":"x"}function Ro(e){return"x"===Io(e)?"y":"x"}function Mo(e){return e.replace(/start|end/g,(e=>To[e]))}function Lo(e){return e.replace(/left|right|bottom|top/g,(e=>Po[e]))}function Fo(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 Ho(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zo(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=Ro(t),c=No(a),s=Co(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(_o(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function Bo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Do(t,e),m=Fo(f),h=c[p?"floating"===d?"reference":"floating":d],g=Ho(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:s})),y="floating"===d?{...a.floating,x:r,y:o}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Ho(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:v,strategy:s}):y);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}const Wo=Math.min,Uo=Math.max,Vo=Math.round,qo=Math.floor,Yo=e=>({x:e,y:e});function $o(e){return Ko(e)?(e.nodeName||"").toLowerCase():"#document"}function Jo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Go(e){var t;return null==(t=(Ko(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ko(e){return e instanceof Node||e instanceof Jo(e).Node}function Qo(e){return e instanceof Element||e instanceof Jo(e).Element}function Xo(e){return e instanceof HTMLElement||e instanceof Jo(e).HTMLElement}function Zo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot)}function ei(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ai(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ti(e){return["table","td","th"].includes($o(e))}function ni(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ri(e){const t=oi(),n=Qo(e)?ai(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 oi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ii(e){return["html","body","#document"].includes($o(e))}function ai(e){return Jo(e).getComputedStyle(e)}function ci(e){return Qo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if("html"===$o(e))return e;const t=e.assignedSlot||e.parentNode||Zo(e)&&e.host||Go(e);return Zo(t)?t.host:t}function li(e){const t=si(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xo(t)&&ei(t)?t:li(t)}function ui(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=li(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Jo(o);return i?t.concat(a,a.visualViewport||[],ei(o)?o:[],a.frameElement&&n?ui(a.frameElement):[]):t.concat(o,ui(o,[],n))}function di(e){const t=ai(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Vo(n)!==i||Vo(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function pi(e){return Qo(e)?e:e.contextElement}function fi(e){const t=pi(e);if(!Xo(t))return Yo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=di(t);let a=(i?Vo(n.width):n.width)/r,c=(i?Vo(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const mi=Yo(0);function hi(e){const t=Jo(e);return oi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mi}function gi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=pi(e);let a=Yo(1);t&&(r?Qo(r)&&(a=fi(r)):a=fi(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Jo(e))&&t}(i,n,r)?hi(i):Yo(0);let s=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Jo(i),t=r&&Qo(r)?Jo(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=fi(o),t=o.getBoundingClientRect(),r=ai(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,u*=e.x,d*=e.y,s+=i,l+=a,n=Jo(o),o=n.frameElement}}return Ho({width:u,height:d,x:s,y:l})}function yi(e){return gi(Go(e)).left+ci(e).scrollLeft}function vi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Jo(e),r=Go(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const e=oi();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=Go(e),n=ci(e),r=e.ownerDocument.body,o=Uo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Uo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yi(e);const c=-n.scrollTop;return"rtl"===ai(r).direction&&(a+=Uo(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(Go(e));else if(Qo(t))r=function(e,t){const n=gi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Xo(e)?fi(e):Yo(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=hi(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ho(r)}function bi(e,t){const n=si(e);return!(n===t||!Qo(n)||ii(n))&&("fixed"===ai(n).position||bi(n,t))}function wi(e,t,n){const r=Xo(t),o=Go(t),i="fixed"===n,a=gi(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const s=Yo(0);if(r||!r&&!i)if(("body"!==$o(t)||ei(o))&&(c=ci(t)),r){const e=gi(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=yi(o));return{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function xi(e){return"static"===ai(e).position}function Oi(e,t){return Xo(e)&&"fixed"!==ai(e).position?t?t(e):e.offsetParent:null}function ki(e,t){const n=Jo(e);if(ni(e))return n;if(!Xo(e)){let t=si(e);for(;t&&!ii(t);){if(Qo(t)&&!xi(t))return t;t=si(t)}return n}let r=Oi(e,t);for(;r&&ti(r)&&xi(r);)r=Oi(r,t);return r&&ii(r)&&xi(r)&&!ri(r)?n:r||function(e){let t=si(e);for(;Xo(t)&&!ii(t);){if(ri(t))return t;if(ni(t))return null;t=si(t)}return null}(e)||n}const Si={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Go(r),c=!!t&&ni(t.floating);if(r===a||c&&i)return n;let s={scrollLeft:0,scrollTop:0},l=Yo(1);const u=Yo(0),d=Xo(r);if((d||!d&&!i)&&(("body"!==$o(r)||ei(a))&&(s=ci(r)),Xo(r))){const e=gi(r);l=fi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+u.x,y:n.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:Go,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ni(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter((e=>Qo(e)&&"body"!==$o(e))),o=null;const i="fixed"===ai(e).position;let a=i?si(e):e;for(;Qo(a)&&!ii(a);){const t=ai(a),n=ri(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ei(a)&&!n&&bi(e,a))?r=r.filter((e=>e!==a)):o=t,a=si(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{const r=vi(t,n,o);return e.top=Uo(r.top,e.top),e.right=Wo(r.right,e.right),e.bottom=Wo(r.bottom,e.bottom),e.left=Uo(r.left,e.left),e}),vi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ki,getElementRects:async function(e){const t=this.getOffsetParent||ki,n=this.getDimensions,r=await n(e.floating);return{reference:wi(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}=di(e);return{width:t,height:n}},getScale:fi,isElement:Qo,isRTL:function(e){return"rtl"===ai(e).direction}};function Ai(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=pi(e),u=o||i?[...l?ui(l):[],...ui(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&c?function(e,t){let n,r=null;const o=Go(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const f={rootMargin:-qo(u)+"px "+-qo(o.clientWidth-(l+d))+"px "+-qo(o.clientHeight-(u+p))+"px "+-qo(l)+"px",threshold:Uo(0,Wo(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),i}(l,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),l&&!s&&m.observe(l),m.observe(t));let h=s?gi(e):null;return s&&function t(){const r=gi(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(p)}}const Ei=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Co(n),c=_o(n),s="y"===Io(n),l=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Do(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof m&&(f="end"===c?-1*m:m),s?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},ji=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Do(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Co(o),v=Co(c)===c,b=await(null==s.isRTL?void 0:s.isRTL(l.floating)),w=p||(v||!h?[Lo(c)]:function(e){const t=Lo(e);return[Mo(e),t,Mo(t)]}(c));p||"none"===m||w.push(...function(e,t,n,r){const o=_o(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[]}}(Co(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Mo)))),i}(c,h,m,b));const x=[c,...w],O=await Bo(t,g),k=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=_o(e),o=Ro(e),i=No(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Lo(a)),[a,Lo(a)]}(o,a,b);k.push(O[e[0]],O[e[1]])}if(S=[...S,{placement:o,overflows:k}],!k.every((e=>e<=0))){var A,E;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(E=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var j;const e=null==(j=S.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:j[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Pi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:s}=t,{element:l,padding:u=0}=Do(e,t)||{};if(null==l)return{};const d=Fo(u),p={x:n,y:r},f=Ro(o),m=No(f),h=await a.getDimensions(l),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-p[f]-i.floating[m],x=p[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let k=O?O[b]:0;k&&await(null==a.isElement?void 0:a.isElement(O))||(k=c.floating[b]||i.floating[m]);const S=w/2-x/2,A=k/2-h[m]/2-1,E=Eo(d[y],A),j=Eo(d[v],A),P=E,T=k-h[m]-j,D=k/2-h[m]/2+S,C=jo(P,Eo(D,T));const _=!s.arrow&&null!=_o(o)&&D!==C&&i.reference[m]/2-(D<P?E:j)-h[m]/2<0,N=_?D<P?D-P:D-T:0;return{[f]:p[f]+N,data:{[f]:C,centerOffset:D-C-N,..._&&{alignmentOffset:N}},reset:_}}}),Ti=(e,t,n)=>{const r=new Map,o={platform:Si,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zo(l,r,s),p=r,f={},m=0;for(let n=0;n<c.length;n++){const{name:i,fn:h}=c[n],{x:g,y,data:v,reset:b}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[i]:{...f[i],...v}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=zo(l,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Di="undefined"!=typeof document?q.useLayoutEffect:q.useEffect;function Ci(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(!Ci(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)&&!Ci(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _i(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ni(e,t){const n=_i(e);return Math.round(t*n)/n}function Ii(e){const t=q.useRef(e);return Di((()=>{t.current=e})),t}const Ri=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?Pi({element:n.current,padding:r}).fn(t):{}:n?Pi({element:n,padding:r}).fn(t):{};var o}}),Mi=(e,t)=>({...Ei(e),options:[e,t]}),Li=(e,t)=>({...ji(e),options:[e,t]}),Fi=(e,t)=>({...Ri(e),options:[e,t]});const Hi={...Y},zi=Hi.useInsertionEffect||(e=>e());function Bi(e){const t=q.useRef((()=>{0}));return zi((()=>{t.current=e})),q.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 Wi="ArrowUp",Ui="ArrowDown",Vi="ArrowLeft",qi="ArrowRight";var Yi="undefined"!=typeof document?q.useLayoutEffect:q.useEffect;const $i=[Vi,qi],Ji=[Wi,Ui];let Gi=!1,Ki=0;const Qi=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ki++;const Xi=Hi.useId||function(){const[e,t]=q.useState((()=>Gi?Qi():void 0));return Yi((()=>{null==e&&t(Qi())}),[]),q.useEffect((()=>{Gi=!0}),[]),e};const Zi=q.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:c=7,tipRadius:s=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...h}=e;const g=Xi(),[y,v]=q.useState(!1);if(Yi((()=>{if(!r)return;"rtl"===Ao(r).direction&&v(!0)}),[r]),!r)return null;const[b,w]=n.split("-"),x="top"===b||"bottom"===b;let O=u;(x&&null!=i&&i.x||!x&&null!=i&&i.y)&&(O=null);const k=2*l,S=k/2,A=a/2*(s/-8+1),E=c/2*s/4,j=!!p,P=O&&"end"===w?"bottom":"top";let T=O&&"end"===w?"right":"left";O&&y&&(T="end"===w?"left":"right");const D=null!=(null==o?void 0:o.x)?O||o.x:"",C=null!=(null==o?void 0:o.y)?O||o.y:"",_=p||"M0,0 H"+a+" L"+(a-A)+","+(c-E)+" Q"+a/2+","+c+" "+A+","+(c-E)+" Z",I={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,N.jsxs)("svg",{...h,"aria-hidden":!0,ref:t,width:j?a:a+k,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[T]:D,[P]:C,[b]:x||j?"100%":"calc(100% - "+k/2+"px)",transform:[I,f].filter((e=>!!e)).join(" "),...m},children:[k>0&&(0,N.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:k+(p?0:1),d:_}),(0,N.jsx)("path",{stroke:k&&!p?h.fill:"none",d:_}),(0,N.jsx)("clipPath",{id:g,children:(0,N.jsx)("rect",{x:-S,y:S*(j?-1:1),width:a+k,height:a})})]})}));function ea(){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 ta=q.createContext(null),na=q.createContext(null),ra=()=>{var e;return(null==(e=q.useContext(ta))?void 0:e.id)||null},oa=()=>q.useContext(na);function ia(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Xi(),i=q.useRef({}),[a]=q.useState((()=>ea())),c=null!=ra(),[s,l]=q.useState(r.reference),u=Bi(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),d=q.useMemo((()=>({setPositionReference:l})),[]),p=q.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return q.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=q.useState(null),[c,s]=q.useState(null),l=(null==o?void 0:o.domReference)||i,u=q.useRef(null),d=oa();Yi((()=>{l&&(u.current=l)}),[l]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:s,open:l}=e,[u,d]=q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=q.useState(r);Ci(p,r)||f(r);const[m,h]=q.useState(null),[g,y]=q.useState(null),v=q.useCallback((e=>{e!==O.current&&(O.current=e,h(e))}),[]),b=q.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=i||m,x=a||g,O=q.useRef(null),k=q.useRef(null),S=q.useRef(u),A=null!=s,E=Ii(s),j=Ii(o),P=Ii(l),T=q.useCallback((()=>{if(!O.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};j.current&&(e.platform=j.current),Ti(O.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};D.current&&!Ci(S.current,t)&&(S.current=t,lt.flushSync((()=>{d(t)})))}))}),[p,t,n,j,P]);Di((()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const D=q.useRef(!1);Di((()=>(D.current=!0,()=>{D.current=!1})),[]),Di((()=>{if(w&&(O.current=w),x&&(k.current=x),w&&x){if(E.current)return E.current(w,x,T);T()}}),[w,x,T,E,A]);const C=q.useMemo((()=>({reference:O,floating:k,setReference:v,setFloating:b})),[v,b]),_=q.useMemo((()=>({reference:w,floating:x})),[w,x]),N=q.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Ni(_.floating,u.x),r=Ni(_.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",..._i(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,_.floating,u.x,u.y]);return q.useMemo((()=>({...u,update:T,refs:C,elements:_,floatingStyles:N})),[u,T,C,_,N])}({...e,elements:{...o,...c&&{reference:c}}}),f=q.useCallback((e=>{const t=So(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),m=q.useCallback((e=>{(So(e)||null===e)&&(u.current=e,a(e)),(So(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!So(e))&&p.refs.setReference(e)}),[p.refs]),h=q.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=q.useMemo((()=>({...p.elements,domReference:l})),[p.elements,l]),y=q.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return Yi((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),q.useMemo((()=>({...p,context:y,refs:h,elements:g})),[p,h,g,y])}
|
|
11
11
|
/*!
|
|
12
12
|
react-datepicker v8.4.0
|
|
13
13
|
https://github.com/Hacker0x01/react-datepicker
|