@omnic/widget-locations 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/widget.es.js +6 -6
- package/dist/lib/widget.umd.js +1 -1
- package/package.json +1 -1
package/dist/lib/widget.es.js
CHANGED
|
@@ -7880,18 +7880,18 @@ const dc = un(window.OMNIC_WIDGET_LOCATIONS_CONFIG), Gt = () => De(dc), fc = un(
|
|
|
7880
7880
|
] })
|
|
7881
7881
|
] })
|
|
7882
7882
|
), e1 = ({ className: t }) => {
|
|
7883
|
-
const { t: e } = ot(), { country: n } = Gt(), { setCity: o } = zt(), i = Dt((
|
|
7884
|
-
i($o), o(
|
|
7885
|
-
}, { ref:
|
|
7883
|
+
const { t: e } = ot(), { country: n } = Gt(), { setCity: o } = zt(), i = Dt((u) => u.setZoom), r = [], s = n ? { componentRestrictions: { country: n }, types: r } : { types: r }, a = (u) => {
|
|
7884
|
+
i($o), o(u);
|
|
7885
|
+
}, { ref: l } = cc.usePlacesWidget({
|
|
7886
7886
|
libraries: ["places"],
|
|
7887
|
-
options:
|
|
7888
|
-
onPlaceSelected:
|
|
7887
|
+
options: s,
|
|
7888
|
+
onPlaceSelected: a,
|
|
7889
7889
|
apiKey: "AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"
|
|
7890
7890
|
});
|
|
7891
7891
|
return /* @__PURE__ */ x(
|
|
7892
7892
|
pc,
|
|
7893
7893
|
{
|
|
7894
|
-
ref:
|
|
7894
|
+
ref: l,
|
|
7895
7895
|
className: t,
|
|
7896
7896
|
endAdornment: /* @__PURE__ */ x(Hl, {}),
|
|
7897
7897
|
placeholder: e("location_selector.placeholder")
|
package/dist/lib/widget.umd.js
CHANGED
|
@@ -32,7 +32,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32
32
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(t,e){return Mh(t)||Ph(t,e)||Us(t,e)||Ih()}function kh(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function dt(t,e){if(t==null)return{};var n=kh(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Dh(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Bh(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function ft(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function aa(t){return ft(t).getComputedStyle(t)}function la(t){return t instanceof ft(t).Node}function ua(t){return la(t)?(t.nodeName||"").toLowerCase():""}function Zr(t){return t instanceof ft(t).HTMLElement}function Ot(t){return t instanceof ft(t).Element}function ca(t){return typeof ShadowRoot>"u"?!1:t instanceof ft(t).ShadowRoot||t instanceof ShadowRoot}function da(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=aa(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Th(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Nh(t){return["html","body","#document"].includes(ua(t))}const Eo=Math.round;function Fh(t){const e=aa(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Zr(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=Eo(n)!==i||Eo(o)!==s;return a&&(n=i,o=s),{width:n,height:o,fallback:a}}function fa(t){return Ot(t)?t:t.contextElement}const pa={x:1,y:1};function Xr(t){const e=fa(t);if(!Zr(e))return pa;const n=e.getBoundingClientRect(),{width:o,height:r,fallback:i}=Fh(e);let s=(i?Eo(n.width):n.width)/o,a=(i?Eo(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ha={x:0,y:0};function jh(t,e,n){var o,r;if(e===void 0&&(e=!0),!Th())return ha;const i=t?ft(t):window;return!n||e&&n!==i?ha:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((r=i.visualViewport)==null?void 0:r.offsetTop)||0}}function ga(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=fa(t);let s=pa;e&&(o?Ot(o)&&(s=Xr(o)):s=Xr(t));const a=jh(i,n,o);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const p=ft(i),g=o&&Ot(o)?ft(o):o;let h=p.frameElement;for(;h&&o&&g!==p;){const m=Xr(h),y=h.getBoundingClientRect(),S=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(S.paddingLeft))*m.x,y.y+=(h.clientTop+parseFloat(S.paddingTop))*m.y,l*=m.x,u*=m.y,d*=m.x,f*=m.y,l+=y.x,u+=y.y,h=ft(h).frameElement}}return Bh({width:d,height:f,x:l,y:u})}function Uh(t){return((la(t)?t.ownerDocument:t.document)||window.document).documentElement}function Hh(t){if(ua(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ca(t)&&t.host||Uh(t);return ca(e)?e.host:e}function ma(t){const e=Hh(t);return Nh(e)?e.ownerDocument.body:Zr(e)&&da(e)?e:ma(e)}function So(t,e){var n;e===void 0&&(e=[]);const o=ma(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=ft(o);return r?e.concat(i,i.visualViewport||[],da(o)?o:[]):e.concat(o,So(o))}function Vh(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:a=!1}=o,l=r||i?[...Ot(t)?So(t):t.contextElement?So(t.contextElement):[],...So(e)]:[];l.forEach(p=>{const g=!Ot(p)&&p.toString().includes("V");!r||a&&!g||p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});let u,d=null;s&&(d=new ResizeObserver(()=>{n()}),Ot(t)&&!a&&d.observe(t),Ot(t)||!t.contextElement||a||d.observe(t.contextElement),d.observe(e));let f=a?ga(t):null;return a&&function p(){const g=ga(t);!f||g.x===f.x&&g.y===f.y&&g.width===f.width&&g.height===f.height||n(),f=g,u=requestAnimationFrame(p)}(),n(),()=>{var p;l.forEach(g=>{r&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),(p=d)==null||p.disconnect(),d=null,a&&cancelAnimationFrame(u)}}var _r=c.useLayoutEffect,zh=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Lo=function(){};function Qh(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Gh(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(e&&t)for(var s in e)e.hasOwnProperty(s)&&e[s]&&i.push("".concat(Qh(t,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var va=function(e){return $h(e)?e.filter(Boolean):At(e)==="object"&&e!==null?[e]:[]},ya=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=dt(e,zh);return q({},n)},xe=function(e,n,o){var r=e.cx,i=e.getStyles,s=e.getClassNames,a=e.className;return{css:i(n,e),className:r(o??{},s(n,e),a)}};function Yh(t,e,n){if(n){var o=n(t,e);if(typeof o=="string")return o}return t}function wo(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Wh(t){return wo(t)?window.innerHeight:t.clientHeight}function ba(t){return wo(t)?window.pageYOffset:t.scrollTop}function Ao(t,e){if(wo(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Rh(t){var e=getComputedStyle(t),n=e.position==="absolute",o=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var r=t;r=r.parentElement;)if(e=getComputedStyle(r),!(n&&e.position==="static")&&o.test(e.overflow+e.overflowY+e.overflowX))return r;return document.documentElement}function Kh(t,e,n,o){return n*((t=t/o-1)*t*t+1)+e}function Oo(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Lo,r=ba(t),i=e-r,s=10,a=0;function l(){a+=s;var u=Kh(a,r,i,n);Ao(t,u),a<n?window.requestAnimationFrame(l):o(t)}l()}function Ca(t,e){var n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),r=e.offsetHeight/3;o.bottom+r>n.bottom?Ao(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+r,t.scrollHeight)):o.top-r<n.top&&Ao(t,Math.max(e.offsetTop-r,0))}function Jh(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Ea(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function qh(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Sa=!1,Zh={get passive(){return Sa=!0}},xo=typeof window<"u"?window:{};xo.addEventListener&&xo.removeEventListener&&(xo.addEventListener("p",Lo,Zh),xo.removeEventListener("p",Lo,!1));var Xh=Sa;function _h(t){return t!=null}function $h(t){return Array.isArray(t)}function Mo(t,e,n){return t?e:n}function eb(t){return t}function tb(t){return t}var eg=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var i=Object.entries(e).filter(function(s){var a=Te(s,1),l=a[0];return!o.includes(l)});return i.reduce(function(s,a){var l=Te(a,2),u=l[0],d=l[1];return s[u]=d,s},{})},tg=["children","innerProps"],ng=["children","innerProps"];function og(t){var e=t.maxHeight,n=t.menuEl,o=t.minHeight,r=t.placement,i=t.shouldScroll,s=t.isFixedPosition,a=t.controlHeight,l=Rh(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var d=l.getBoundingClientRect(),f=d.height,p=n.getBoundingClientRect(),g=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect(),S=y.top,E=s?window.innerHeight:Wh(l),C=ba(l),w=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),v=S-b,O=E-m,A=v+C,j=f-C-m,M=g-E+C+w,H=C+m-b,V=160;switch(r){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:e};if(j>=h&&!s)return i&&Oo(l,M,V),{placement:"bottom",maxHeight:e};if(!s&&j>=o||s&&O>=o){i&&Oo(l,M,V);var Q=s?O-w:j-w;return{placement:"bottom",maxHeight:Q}}if(r==="auto"||s){var U=e,z=s?v:A;return z>=o&&(U=Math.min(z-w-a,e)),{placement:"top",maxHeight:U}}if(r==="bottom")return i&&Ao(l,M),{placement:"bottom",maxHeight:e};break;case"top":if(v>=h)return{placement:"top",maxHeight:e};if(A>=h&&!s)return i&&Oo(l,H,V),{placement:"top",maxHeight:e};if(!s&&A>=o||s&&v>=o){var K=e;return(!s&&A>=o||s&&v>=o)&&(K=s?v-b:A-b),i&&Oo(l,H,V),{placement:"top",maxHeight:K}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function rg(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var La=function(e){return e==="auto"?"bottom":e},ig=function(e,n){var o,r=e.placement,i=e.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return q((o={label:"menu"},Rt(o,rg(r),"100%"),Rt(o,"position","absolute"),Rt(o,"width","100%"),Rt(o,"zIndex",1),o),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},wa=c.createContext(null),sg=function(e){var n=e.children,o=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=c.useContext(wa)||{},d=u.setPortalPlacement,f=c.useRef(null),p=c.useState(r),g=Te(p,2),h=g[0],m=g[1],y=c.useState(null),S=Te(y,2),E=S[0],C=S[1],w=l.spacing.controlHeight;return _r(function(){var b=f.current;if(b){var v=s==="fixed",O=a&&!v,A=og({maxHeight:r,menuEl:b,minHeight:o,placement:i,shouldScroll:O,isFixedPosition:v,controlHeight:w});m(A.maxHeight),C(A.placement),d==null||d(A.placement)}},[r,i,s,a,o,d,w]),n({ref:f,placerProps:q(q({},e),{},{placement:E||La(i),maxHeight:h})})},ag=function(e){var n=e.children,o=e.innerRef,r=e.innerProps;return te("div",oe({},xe(e,"menu",{menu:!0}),{ref:o},r),n)},lg=ag,ug=function(e,n){var o=e.maxHeight,r=e.theme.spacing.baseUnit;return q({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},cg=function(e){var n=e.children,o=e.innerProps,r=e.innerRef,i=e.isMulti;return te("div",oe({},xe(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},o),n)},Aa=function(e,n){var o=e.theme,r=o.spacing.baseUnit,i=o.colors;return q({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},dg=Aa,fg=Aa,pg=function(e){var n=e.children,o=n===void 0?"No options":n,r=e.innerProps,i=dt(e,tg);return te("div",oe({},xe(q(q({},i),{},{children:o,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),o)},hg=function(e){var n=e.children,o=n===void 0?"Loading...":n,r=e.innerProps,i=dt(e,ng);return te("div",oe({},xe(q(q({},i),{},{children:o,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),o)},gg=function(e){var n=e.rect,o=e.offset,r=e.position;return{left:n.left,position:r,top:o,width:n.width,zIndex:1}},mg=function(e){var n=e.appendTo,o=e.children,r=e.controlElement,i=e.innerProps,s=e.menuPlacement,a=e.menuPosition,l=c.useRef(null),u=c.useRef(null),d=c.useState(La(s)),f=Te(d,2),p=f[0],g=f[1],h=c.useMemo(function(){return{setPortalPlacement:g}},[]),m=c.useState(null),y=Te(m,2),S=y[0],E=y[1],C=c.useCallback(function(){if(r){var O=Jh(r),A=a==="fixed"?0:window.pageYOffset,j=O[p]+A;(j!==(S==null?void 0:S.offset)||O.left!==(S==null?void 0:S.rect.left)||O.width!==(S==null?void 0:S.rect.width))&&E({offset:j,rect:O})}},[r,a,p,S==null?void 0:S.offset,S==null?void 0:S.rect.left,S==null?void 0:S.rect.width]);_r(function(){C()},[C]);var w=c.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&l.current&&(u.current=Vh(r,l.current,C,{elementResize:"ResizeObserver"in window}))},[r,C]);_r(function(){w()},[w]);var b=c.useCallback(function(O){l.current=O,w()},[w]);if(!n&&a!=="fixed"||!S)return null;var v=te("div",oe({ref:b},xe(q(q({},e),{},{offset:S.offset,position:a,rect:S.rect}),"menuPortal",{"menu-portal":!0}),i),o);return te(wa.Provider,{value:h},n?Ut.createPortal(v,n):v)},vg=function(e){var n=e.isDisabled,o=e.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},yg=function(e){var n=e.children,o=e.innerProps,r=e.isDisabled,i=e.isRtl;return te("div",oe({},xe(e,"container",{"--is-disabled":r,"--is-rtl":i}),o),n)},bg=function(e,n){var o=e.theme.spacing,r=e.isMulti,i=e.hasValue,s=e.selectProps.controlShouldRenderValue;return q({alignItems:"center",display:r&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},Cg=function(e){var n=e.children,o=e.innerProps,r=e.isMulti,i=e.hasValue;return te("div",oe({},xe(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),o),n)},Eg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Sg=function(e){var n=e.children,o=e.innerProps;return te("div",oe({},xe(e,"indicatorsContainer",{indicators:!0}),o),n)},Oa,Lg=["size"],wg=["innerProps","isRtl","size"],Ag={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},xa=function(e){var n=e.size,o=dt(e,Lg);return te("svg",oe({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ag},o))},$r=function(e){return te(xa,oe({size:20},e),te("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ma=function(e){return te(xa,oe({size:20},e),te("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Pa=function(e,n){var o=e.isFocused,r=e.theme,i=r.spacing.baseUnit,s=r.colors;return q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:o?s.neutral60:s.neutral20,padding:i*2,":hover":{color:o?s.neutral80:s.neutral40}})},Og=Pa,xg=function(e){var n=e.children,o=e.innerProps;return te("div",oe({},xe(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),n||te(Ma,null))},Mg=Pa,Pg=function(e){var n=e.children,o=e.innerProps;return te("div",oe({},xe(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),n||te($r,null))},Ig=function(e,n){var o=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,s=r.colors;return q({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:o?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},kg=function(e){var n=e.innerProps;return te("span",oe({},n,xe(e,"indicatorSeparator",{"indicator-separator":!0})))},Dg=xh(Oa||(Oa=Dh([`
|
|
33
33
|
0%, 80%, 100% { opacity: 0; }
|
|
34
34
|
40% { opacity: 1; }
|
|
35
|
-
`]))),Bg=function(e,n){var o=e.isFocused,r=e.size,i=e.theme,s=i.colors,a=i.spacing.baseUnit;return q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:o?s.neutral60:s.neutral20,padding:a*2})},ei=function(e){var n=e.delay,o=e.offset;return te("span",{css:qr({animation:"".concat(Dg," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Tg=function(e){var n=e.innerProps,o=e.isRtl,r=e.size,i=r===void 0?4:r,s=dt(e,wg);return te("div",oe({},xe(q(q({},s),{},{innerProps:n,isRtl:o,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),te(ei,{delay:0,offset:o}),te(ei,{delay:160,offset:!0}),te(ei,{delay:320,offset:!o}))},Ng=function(e,n){var o=e.isDisabled,r=e.isFocused,i=e.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:o?s.neutral5:s.neutral0,borderColor:o?s.neutral10:r?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},Fg=function(e){var n=e.children,o=e.isDisabled,r=e.isFocused,i=e.innerRef,s=e.innerProps,a=e.menuIsOpen;return te("div",oe({ref:i},xe(e,"control",{control:!0,"control--is-disabled":o,"control--is-focused":r,"control--menu-is-open":a}),s),n)},jg=Fg,Ug=["data"],Hg=function(e,n){var o=e.theme.spacing;return n?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},Vg=function(e){var n=e.children,o=e.cx,r=e.getStyles,i=e.getClassNames,s=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,f=e.selectProps;return te("div",oe({},xe(e,"group",{group:!0}),l),te(s,oe({},a,{selectProps:f,theme:d,getStyles:r,getClassNames:i,cx:o}),u),te("div",null,n))},zg=function(e,n){var o=e.theme,r=o.colors,i=o.spacing;return q({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Qg=function(e){var n=ya(e);n.data;var o=dt(n,Ug);return te("div",oe({},xe(e,"groupHeading",{"group-heading":!0}),o))},Gg=Vg,Yg=["innerRef","isDisabled","isHidden","inputClassName"],Wg=function(e,n){var o=e.isDisabled,r=e.value,i=e.theme,s=i.spacing,a=i.colors;return q(q({visibility:o?"hidden":"visible",transform:r?"translateZ(0)":""},Rg),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},Ia={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ia)},Kg=function(e){return q({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ia)},Jg=function(e){var n=e.cx,o=e.value,r=ya(e),i=r.innerRef,s=r.isDisabled,a=r.isHidden,l=r.inputClassName,u=dt(r,Yg);return te("div",oe({},xe(e,"input",{"input-container":!0}),{"data-value":o||""}),te("input",oe({className:n({input:!0},l),ref:i,style:Kg(a),disabled:s},u)))},qg=Jg,Zg=function(e,n){var o=e.theme,r=o.spacing,i=o.borderRadius,s=o.colors;return q({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},Xg=function(e,n){var o=e.theme,r=o.borderRadius,i=o.colors,s=e.cropWithEllipsis;return q({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},_g=function(e,n){var o=e.theme,r=o.spacing,i=o.borderRadius,s=o.colors,a=e.isFocused;return q({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},ka=function(e){var n=e.children,o=e.innerProps;return te("div",o,n)},$g=ka,em=ka;function tm(t){var e=t.children,n=t.innerProps;return te("div",oe({role:"button"},n),e||te($r,{size:14}))}var nm=function(e){var n=e.children,o=e.components,r=e.data,i=e.innerProps,s=e.isDisabled,a=e.removeProps,l=e.selectProps,u=o.Container,d=o.Label,f=o.Remove;return te(u,{data:r,innerProps:q(q({},xe(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},te(d,{data:r,innerProps:q({},xe(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),te(f,{data:r,innerProps:q(q({},xe(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},om=nm,rm=function(e,n){var o=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.theme,a=s.spacing,l=s.colors;return q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:o?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:i?l.primary:l.primary50}})},im=function(e){var n=e.children,o=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.innerRef,a=e.innerProps;return te("div",oe({},xe(e,"option",{option:!0,"option--is-disabled":o,"option--is-focused":r,"option--is-selected":i}),{ref:s,"aria-disabled":o},a),n)},sm=im,am=function(e,n){var o=e.theme,r=o.spacing,i=o.colors;return q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},lm=function(e){var n=e.children,o=e.innerProps;return te("div",oe({},xe(e,"placeholder",{placeholder:!0}),o),n)},um=lm,cm=function(e,n){var o=e.isDisabled,r=e.theme,i=r.spacing,s=r.colors;return q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:o?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},dm=function(e){var n=e.children,o=e.isDisabled,r=e.innerProps;return te("div",oe({},xe(e,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),r),n)},fm=dm,pm={ClearIndicator:Pg,Control:jg,DropdownIndicator:xg,DownChevron:Ma,CrossIcon:$r,Group:Gg,GroupHeading:Qg,IndicatorsContainer:Sg,IndicatorSeparator:kg,Input:qg,LoadingIndicator:Tg,Menu:lg,MenuList:cg,MenuPortal:mg,LoadingMessage:hg,NoOptionsMessage:pg,MultiValue:om,MultiValueContainer:$g,MultiValueLabel:em,MultiValueRemove:tm,Option:sm,Placeholder:um,SelectContainer:yg,SingleValue:fm,ValueContainer:Cg},hm=function(e){return q(q({},pm),e.components)},Da=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function gm(t,e){return!!(t===e||Da(t)&&Da(e))}function mm(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!gm(t[n],e[n]))return!1;return!0}function vm(t,e){e===void 0&&(e=mm);var n=null;function o(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&e(r,n.lastArgs))return n.lastResult;var s=t.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return o.clear=function(){n=null},o}for(var ym={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"},bm=function(e){return te("span",oe({css:ym},e))},Ba=bm,Cm={guidance:function(e){var n=e.isSearchable,o=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue,s=e.context;switch(s){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" 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 n=e.action,o=e.label,r=o===void 0?"":o,i=e.labels,s=e.isDisabled;switch(n){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(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var n=e.context,o=e.focused,r=e.options,i=e.label,s=i===void 0?"":i,a=e.selectValue,l=e.isDisabled,u=e.isSelected,d=function(h,m){return h&&h.length?"".concat(h.indexOf(m)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(d(a,o),".");if(n==="menu"){var f=l?" disabled":"",p="".concat(u?"selected":"focused").concat(f);return"option ".concat(s," ").concat(p,", ").concat(d(r,o),".")}return""},onFilter:function(e){var n=e.inputValue,o=e.resultsMessage;return"".concat(o).concat(n?" for search term "+n:"",".")}},Em=function(e){var n=e.ariaSelection,o=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,m=l.isSearchable,y=l.menuIsOpen,S=l.options,E=l.screenReaderStatus,C=l.tabSelectsValue,w=l["aria-label"],b=l["aria-live"],v=c.useMemo(function(){return q(q({},Cm),d||{})},[d]),O=c.useMemo(function(){var U="";if(n&&v.onChange){var z=n.option,K=n.options,T=n.removedValue,R=n.removedValues,k=n.value,x=function(X){return Array.isArray(X)?null:X},I=T||z||x(k),F=I?f(I):"",N=K||R||void 0,Y=N?N.map(f):[],$=q({isDisabled:I&&h(I,a),label:F,labels:Y},n);U=v.onChange($)}return U},[n,v,h,a,f]),A=c.useMemo(function(){var U="",z=o||r,K=!!(o&&a&&a.includes(o));if(z&&v.onFocus){var T={focused:z,label:f(z),isDisabled:h(z,a),isSelected:K,options:i,context:z===o?"menu":"value",selectValue:a};U=v.onFocus(T)}return U},[o,r,f,h,v,i,a]),j=c.useMemo(function(){var U="";if(y&&S.length&&v.onFilter){var z=E({count:i.length});U=v.onFilter({inputValue:p,resultsMessage:z})}return U},[i,p,y,v,S,E]),M=c.useMemo(function(){var U="";if(v.guidance){var z=r?"value":y?"menu":"input";U=v.guidance({"aria-label":w,context:z,isDisabled:o&&h(o,a),isMulti:g,isSearchable:m,tabSelectsValue:C})}return U},[w,o,r,g,h,m,y,v,a,C]),H="".concat(A," ").concat(j," ").concat(M),V=te(c.Fragment,null,te("span",{id:"aria-selection"},O),te("span",{id:"aria-context"},H)),Q=(n==null?void 0:n.action)==="initial-input-focus";return te(c.Fragment,null,te(Ba,{id:u},Q&&V),te(Ba,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text"},s&&!Q&&V))},Sm=Em,ti=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Lm=new RegExp("["+ti.map(function(t){return t.letters}).join("")+"]","g"),Ta={},ni=0;ni<ti.length;ni++)for(var oi=ti[ni],ri=0;ri<oi.letters.length;ri++)Ta[oi.letters[ri]]=oi.base;var Na=function(e){return e.replace(Lm,function(n){return Ta[n]})},wm=vm(Na),Fa=function(e){return e.replace(/^\s+|\s+$/g,"")},Am=function(e){return"".concat(e.label," ").concat(e.value)},Om=function(e){return function(n,o){if(n.data.__isNew__)return!0;var r=q({ignoreCase:!0,ignoreAccents:!0,stringify:Am,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,s=r.ignoreAccents,a=r.stringify,l=r.trim,u=r.matchFrom,d=l?Fa(o):o,f=l?Fa(a(n)):a(n);return i&&(d=d.toLowerCase(),f=f.toLowerCase()),s&&(d=wm(d),f=Na(f)),u==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},xm=["innerRef"];function Mm(t){var e=t.innerRef,n=dt(t,xm),o=eg(n,"onExited","in","enter","exit","appear");return te("input",oe({ref:e},o,{css:qr({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 Pm=function(e){e.preventDefault(),e.stopPropagation()};function Im(t){var e=t.isEnabled,n=t.onBottomArrive,o=t.onBottomLeave,r=t.onTopArrive,i=t.onTopLeave,s=c.useRef(!1),a=c.useRef(!1),l=c.useRef(0),u=c.useRef(null),d=c.useCallback(function(y,S){if(u.current!==null){var E=u.current,C=E.scrollTop,w=E.scrollHeight,b=E.clientHeight,v=u.current,O=S>0,A=w-b-C,j=!1;A>S&&s.current&&(o&&o(y),s.current=!1),O&&a.current&&(i&&i(y),a.current=!1),O&&S>A?(n&&!s.current&&n(y),v.scrollTop=w,j=!0,s.current=!0):!O&&-S>C&&(r&&!a.current&&r(y),v.scrollTop=0,j=!0,a.current=!0),j&&Pm(y)}},[n,o,r,i]),f=c.useCallback(function(y){d(y,y.deltaY)},[d]),p=c.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),g=c.useCallback(function(y){var S=l.current-y.changedTouches[0].clientY;d(y,S)},[d]),h=c.useCallback(function(y){if(y){var S=Xh?{passive:!1}:!1;y.addEventListener("wheel",f,S),y.addEventListener("touchstart",p,S),y.addEventListener("touchmove",g,S)}},[g,p,f]),m=c.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",p,!1),y.removeEventListener("touchmove",g,!1))},[g,p,f]);return c.useEffect(function(){if(e){var y=u.current;return h(y),function(){m(y)}}},[e,h,m]),function(y){u.current=y}}var ja=["boxSizing","height","overflow","paddingRight","position"],Ua={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ha(t){t.preventDefault()}function Va(t){t.stopPropagation()}function za(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function Qa(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ga=!!(typeof window<"u"&&window.document&&window.document.createElement),gn=0,Zt={capture:!1,passive:!1};function km(t){var e=t.isEnabled,n=t.accountForScrollbars,o=n===void 0?!0:n,r=c.useRef({}),i=c.useRef(null),s=c.useCallback(function(l){if(Ga){var u=document.body,d=u&&u.style;if(o&&ja.forEach(function(h){var m=d&&d[h];r.current[h]=m}),o&&gn<1){var f=parseInt(r.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,g=window.innerWidth-p+f||0;Object.keys(Ua).forEach(function(h){var m=Ua[h];d&&(d[h]=m)}),d&&(d.paddingRight="".concat(g,"px"))}u&&Qa()&&(u.addEventListener("touchmove",Ha,Zt),l&&(l.addEventListener("touchstart",za,Zt),l.addEventListener("touchmove",Va,Zt))),gn+=1}},[o]),a=c.useCallback(function(l){if(Ga){var u=document.body,d=u&&u.style;gn=Math.max(gn-1,0),o&&gn<1&&ja.forEach(function(f){var p=r.current[f];d&&(d[f]=p)}),u&&Qa()&&(u.removeEventListener("touchmove",Ha,Zt),l&&(l.removeEventListener("touchstart",za,Zt),l.removeEventListener("touchmove",Va,Zt)))}},[o]);return c.useEffect(function(){if(e){var l=i.current;return s(l),function(){a(l)}}},[e,s,a]),function(l){i.current=l}}var Dm=function(){return document.activeElement&&document.activeElement.blur()},Bm={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tm(t){var e=t.children,n=t.lockEnabled,o=t.captureEnabled,r=o===void 0?!0:o,i=t.onBottomArrive,s=t.onBottomLeave,a=t.onTopArrive,l=t.onTopLeave,u=Im({isEnabled:r,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),d=km({isEnabled:n}),f=function(g){u(g),d(g)};return te(c.Fragment,null,n&&te("div",{onClick:Dm,css:Bm}),e(f))}var Nm={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Fm=function(e){var n=e.name,o=e.onFocus;return te("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:Nm,value:"",onChange:function(){}})},jm=Fm,Um=function(e){return e.label},Hm=function(e){return e.label},Vm=function(e){return e.value},zm=function(e){return!!e.isDisabled},Qm={clearIndicator:Mg,container:vg,control:Ng,dropdownIndicator:Og,group:Hg,groupHeading:zg,indicatorsContainer:Eg,indicatorSeparator:Ig,input:Wg,loadingIndicator:Bg,loadingMessage:fg,menu:ig,menuList:ug,menuPortal:gg,multiValue:Zg,multiValueLabel:Xg,multiValueRemove:_g,noOptionsMessage:dg,option:rm,placeholder:am,singleValue:cm,valueContainer:bg},Gm={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%)"},Ym=4,Ya=4,Wm=38,Rm=Ya*2,Km={baseUnit:Ya,controlHeight:Wm,menuGutter:Rm},ii={borderRadius:Ym,colors:Gm,spacing:Km},Jm={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ea(),captureMenuScroll:!Ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Om(),formatGroupLabel:Um,getOptionLabel:Hm,getOptionValue:Vm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:zm,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!qh(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Wa(t,e,n,o){var r=Za(t,e,n),i=Xa(t,e,n),s=qa(t,e),a=Po(t,e);return{type:"option",data:e,isDisabled:r,isSelected:i,label:s,value:a,index:o}}function Ra(t,e){return t.options.map(function(n,o){if("options"in n){var r=n.options.map(function(s,a){return Wa(t,s,e,a)}).filter(function(s){return Ja(t,s)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Wa(t,n,e,o);return Ja(t,i)?i:void 0}).filter(_h)}function Ka(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,Hs(n.options.map(function(o){return o.data}))):e.push(n.data),e},[])}function qm(t,e){return Ka(Ra(t,e))}function Ja(t,e){var n=t.inputValue,o=n===void 0?"":n,r=e.data,i=e.isSelected,s=e.label,a=e.value;return(!$a(t)||!i)&&_a(t,{label:s,value:a,data:r},o)}function Zm(t,e){var n=t.focusedValue,o=t.selectValue,r=o.indexOf(n);if(r>-1){var i=e.indexOf(n);if(i>-1)return n;if(r<e.length)return e[r]}return null}function Xm(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var qa=function(e,n){return e.getOptionLabel(n)},Po=function(e,n){return e.getOptionValue(n)};function Za(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function Xa(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var o=Po(t,e);return n.some(function(r){return Po(t,r)===o})}function _a(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var $a=function(e){var n=e.hideSelectedOptions,o=e.isMulti;return n===void 0?o:n},_m=1,el=function(t){yp(n,t);var e=Sp(n);function n(o){var r;if(mp(this,n),r=e.call(this,o),r.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,l){var u=r.props,d=u.onChange,f=u.name;l.name=f,r.ariaOnChange(a,l),d(a,l)},r.setValue=function(a,l,u){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,g=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:l,option:u})},r.selectOption=function(a){var l=r.props,u=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=r.state.selectValue,g=d&&r.isOptionSelected(a,p),h=r.isOptionDisabled(a,p);if(g){var m=r.getOptionValue(a);r.setValue(p.filter(function(y){return r.getOptionValue(y)!==m}),"deselect-option",a)}else if(!h)d?r.setValue([].concat(Hs(p),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:f});return}u&&r.blurInput()},r.removeValue=function(a){var l=r.props.isMulti,u=r.state.selectValue,d=r.getOptionValue(a),f=u.filter(function(g){return r.getOptionValue(g)!==d}),p=Mo(l,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(Mo(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,l=r.state.selectValue,u=l[l.length-1],d=l.slice(0,l.length-1),f=Mo(a,d,d[0]||null);r.onChange(f,{action:"pop-value",removedValue:u})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return Gh.apply(void 0,[r.props.classNamePrefix].concat(l))},r.getOptionLabel=function(a){return qa(r.props,a)},r.getOptionValue=function(a){return Po(r.props,a)},r.getStyles=function(a,l){var u=r.props.unstyled,d=Qm[a](l,u);d.boxSizing="border-box";var f=r.props.styles[a];return f?f(d,l):d},r.getClassNames=function(a,l){var u,d;return(u=(d=r.props.classNames)[a])===null||u===void 0?void 0:u.call(d,l)},r.getElementId=function(a){return"".concat(r.instancePrefix,"-").concat(a)},r.getComponents=function(){return hm(r.props)},r.buildCategorizedOptions=function(){return Ra(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Ka(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,l){r.setState({ariaSelection:q({value:a},l)})},r.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(a){r.blockOptionHover=!1},r.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&r.onMenuClose():l&&r.openMenu("first"):(l&&(r.openAfterFocus=!0),r.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},r.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!r.props.isDisabled){var l=r.props,u=l.isMulti,d=l.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),a.preventDefault()}},r.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(r.clearValue(),a.preventDefault(),r.openAfterFocus=!1,a.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(a){typeof r.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&wo(a.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(a)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(a){var l=a.touches,u=l&&l.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(a){var l=a.touches,u=l&&l.item(0);if(u){var d=Math.abs(u.clientX-r.initialTouchX),f=Math.abs(u.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var l=r.props.inputValue,u=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:l}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var l=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:l}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){r.blockOptionHover||r.state.focusedOption===a||r.setState({focusedOption:a})},r.shouldHideSelectedOptions=function(){return $a(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var l=r.props,u=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,g=l.isClearable,h=l.isDisabled,m=l.menuIsOpen,y=l.onKeyDown,S=l.tabSelectsValue,E=l.openMenuOnFocus,C=r.state,w=C.focusedOption,b=C.focusedValue,v=C.selectValue;if(!h&&!(typeof y=="function"&&(y(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!u||p)return;r.focusValue("previous");break;case"ArrowRight":if(!u||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(b)r.removeValue(b);else{if(!d)return;u?r.popValue():g&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!m||!S||!w||E&&r.isOptionSelected(w,v))return;r.selectOption(w);break;case"Enter":if(a.keyCode===229)break;if(m){if(!w||r.isComposing)return;r.selectOption(w);break}return;case"Escape":m?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):g&&f&&r.clearValue();break;case" ":if(p)return;if(!m){r.openMenu("first");break}if(!w)return;r.selectOption(w);break;case"ArrowUp":m?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":m?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!m)return;r.focusOption("pageup");break;case"PageDown":if(!m)return;r.focusOption("pagedown");break;case"Home":if(!m)return;r.focusOption("first");break;case"End":if(!m)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++_m),r.state.selectValue=va(o.value),o.menuIsOpen&&r.state.selectValue.length){var i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusedOption=i[s]}return r}return vp(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&&Ca(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ca(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(r,i){this.props.onInputChange(r,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),d=r==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d]},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(r){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,d=-1;if(s.length){switch(r){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:s[d]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),r==="up"?l=u>0?u-1:a.length-1:r==="down"?l=(u+1)%a.length:r==="pageup"?(l=u-i,l<0&&(l=0)):r==="pagedown"?(l=u+i,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(ii):q(q({},ii),this.props.theme):ii}},{key:"getCommonProps",value:function(){var r=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,f=this.props,p=f.isMulti,g=f.isRtl,h=f.options,m=this.hasValue();return{clearValue:r,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:m,isMulti:p,isRtl:g,options:h,selectOption:u,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,i=r.isClearable,s=r.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(r,i){return Za(this.props,r,i)}},{key:"isOptionSelected",value:function(r,i){return Xa(this.props,r,i)}},{key:"filterOption",value:function(r,i){return _a(this.props,r,i)}},{key:"formatOptionLabel",value:function(r,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{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 r=this.props,i=r.isDisabled,s=r.isSearchable,a=r.inputId,l=r.inputValue,u=r.tabIndex,d=r.form,f=r.menuIsOpen,p=r.required,g=this.getComponents(),h=g.Input,m=this.state,y=m.inputIsHidden,S=m.ariaSelection,E=this.commonProps,C=a||this.getElementId("input"),w=q(q(q({"aria-autocomplete":"list","aria-expanded":f,"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":p,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(S==null?void 0:S.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?W.createElement(h,oe({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},w)):W.createElement(Mm,oe({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Lo,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:d,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,d=i.SingleValue,f=i.Placeholder,p=this.commonProps,g=this.props,h=g.controlShouldRenderValue,m=g.isDisabled,y=g.isMulti,S=g.inputValue,E=g.placeholder,C=this.state,w=C.selectValue,b=C.focusedValue,v=C.isFocused;if(!this.hasValue()||!h)return S?null:W.createElement(f,oe({},p,{key:"placeholder",isDisabled:m,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(y)return w.map(function(A,j){var M=A===b,H="".concat(r.getOptionLabel(A),"-").concat(r.getOptionValue(A));return W.createElement(s,oe({},p,{components:{Container:a,Label:l,Remove:u},isFocused:M,isDisabled:m,key:H,index:j,removeProps:{onClick:function(){return r.removeValue(A)},onTouchEnd:function(){return r.removeValue(A)},onMouseDown:function(Q){Q.preventDefault()}},data:A}),r.formatOptionLabel(A,"value"))});if(S)return null;var O=w[0];return W.createElement(d,oe({},p,{data:O,isDisabled:m}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),i=r.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,d=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),i=r.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,d=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:f,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator,s=r.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(s,oe({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,u=i.MenuList,d=i.MenuPortal,f=i.LoadingMessage,p=i.NoOptionsMessage,g=i.Option,h=this.commonProps,m=this.state.focusedOption,y=this.props,S=y.captureMenuScroll,E=y.inputValue,C=y.isLoading,w=y.loadingMessage,b=y.minMenuHeight,v=y.maxMenuHeight,O=y.menuIsOpen,A=y.menuPlacement,j=y.menuPosition,M=y.menuPortalTarget,H=y.menuShouldBlockScroll,V=y.menuShouldScrollIntoView,Q=y.noOptionsMessage,U=y.onMenuScrollToTop,z=y.onMenuScrollToBottom;if(!O)return null;var K=function(N,Y){var $=N.type,D=N.data,X=N.isDisabled,ie=N.isSelected,P=N.label,G=N.value,_=m===D,ee=X?void 0:function(){return r.onOptionHover(D)},re=X?void 0:function(){return r.selectOption(D)},ce="".concat(r.getElementId("option"),"-").concat(Y),ae={id:ce,onClick:re,onMouseMove:ee,onMouseOver:ee,tabIndex:-1};return W.createElement(g,oe({},h,{innerProps:ae,data:D,isDisabled:X,isSelected:ie,key:ce,label:P,type:$,value:G,isFocused:_,innerRef:_?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(N.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var N=F.data,Y=F.options,$=F.index,D="".concat(r.getElementId("group"),"-").concat($),X="".concat(D,"-heading");return W.createElement(s,oe({},h,{key:D,data:N,options:Y,Heading:a,headingProps:{id:X,data:F.data},label:r.formatGroupLabel(F.data)}),F.options.map(function(ie){return K(ie,"".concat($,"-").concat(ie.index))}))}else if(F.type==="option")return K(F,"".concat(F.index))});else if(C){var R=w({inputValue:E});if(R===null)return null;T=W.createElement(f,h,R)}else{var k=Q({inputValue:E});if(k===null)return null;T=W.createElement(p,h,k)}var x={minMenuHeight:b,maxMenuHeight:v,menuPlacement:A,menuPosition:j,menuShouldScrollIntoView:V},I=W.createElement(sg,oe({},h,x),function(F){var N=F.ref,Y=F.placerProps,$=Y.placement,D=Y.maxHeight;return W.createElement(l,oe({},h,x,{innerRef:N,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove,id:r.getElementId("listbox")},isLoading:C,placement:$}),W.createElement(Tm,{captureEnabled:S,onTopArrive:U,onBottomArrive:z,lockEnabled:H},function(X){return W.createElement(u,oe({},h,{innerRef:function(P){r.getMenuListRef(P),X(P)},isLoading:C,maxHeight:D,focusedOption:m}),T)}))});return M||j==="fixed"?W.createElement(d,oe({},h,{appendTo:M,controlElement:this.controlRef,menuPlacement:A,menuPosition:j}),I):I}},{key:"renderFormField",value:function(){var r=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,u=i.name,d=i.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!a)return W.createElement(jm,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var p=f.map(function(m){return r.getOptionValue(m)}).join(s);return W.createElement("input",{name:u,type:"hidden",value:p})}else{var g=f.length>0?f.map(function(m,y){return W.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:r.getOptionValue(m)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,g)}else{var h=f[0]?this.getOptionValue(f[0]):"";return W.createElement("input",{name:u,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,u=i.isFocused,d=i.selectValue,f=this.getFocusableOptions();return W.createElement(Sm,oe({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:f}))}},{key:"render",value:function(){var r=this.getComponents(),i=r.Control,s=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,u=this.props,d=u.className,f=u.id,p=u.isDisabled,g=u.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return W.createElement(a,oe({},m,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:h}),this.renderLiveRegion(),W.createElement(i,oe({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:h,menuIsOpen:g}),W.createElement(l,oe({},m,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(s,oe({},m,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,d=i.isFocused,f=i.prevWasFocused,p=r.options,g=r.value,h=r.menuIsOpen,m=r.inputValue,y=r.isMulti,S=va(g),E={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||m!==s.inputValue)){var C=h?qm(r,S):[],w=a?Zm(i,S):null,b=Xm(i,C);E={selectValue:S,focusedOption:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var v=l!=null&&r!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},O=u,A=d&&f;return d&&!A&&(O={value:Mo(y,S,S[0]||null),options:S,action:"initial-input-focus"},A=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(O=null),q(q(q({},E),v),{},{prevProps:r,ariaSelection:O,prevWasFocused:A})}}]),n}(c.Component);el.defaultProps=Jm;var $m=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ev(t){var e=t.defaultInputValue,n=e===void 0?"":e,o=t.defaultMenuIsOpen,r=o===void 0?!1:o,i=t.defaultValue,s=i===void 0?null:i,a=t.inputValue,l=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,g=t.value,h=dt(t,$m),m=c.useState(a!==void 0?a:n),y=Te(m,2),S=y[0],E=y[1],C=c.useState(l!==void 0?l:r),w=Te(C,2),b=w[0],v=w[1],O=c.useState(g!==void 0?g:s),A=Te(O,2),j=A[0],M=A[1],H=c.useCallback(function(R,k){typeof u=="function"&&u(R,k),M(R)},[u]),V=c.useCallback(function(R,k){var x;typeof d=="function"&&(x=d(R,k)),E(x!==void 0?x:R)},[d]),Q=c.useCallback(function(){typeof p=="function"&&p(),v(!0)},[p]),U=c.useCallback(function(){typeof f=="function"&&f(),v(!1)},[f]),z=a!==void 0?a:S,K=l!==void 0?l:b,T=g!==void 0?g:j;return q(q({},h),{},{inputValue:z,menuIsOpen:K,onChange:H,onInputChange:V,onMenuClose:U,onMenuOpen:Q,value:T})}var tv=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function nv(t){var e=t.defaultOptions,n=e===void 0?!1:e,o=t.cacheOptions,r=o===void 0?!1:o,i=t.loadOptions;t.options;var s=t.isLoading,a=s===void 0?!1:s,l=t.onInputChange,u=t.filterOption,d=u===void 0?null:u,f=dt(t,tv),p=f.inputValue,g=c.useRef(void 0),h=c.useRef(!1),m=c.useState(Array.isArray(n)?n:void 0),y=Te(m,2),S=y[0],E=y[1],C=c.useState(typeof p<"u"?p:""),w=Te(C,2),b=w[0],v=w[1],O=c.useState(n===!0),A=Te(O,2),j=A[0],M=A[1],H=c.useState(void 0),V=Te(H,2),Q=V[0],U=V[1],z=c.useState([]),K=Te(z,2),T=K[0],R=K[1],k=c.useState(!1),x=Te(k,2),I=x[0],F=x[1],N=c.useState({}),Y=Te(N,2),$=Y[0],D=Y[1],X=c.useState(void 0),ie=Te(X,2),P=ie[0],G=ie[1],_=c.useState(void 0),ee=Te(_,2),re=ee[0],ce=ee[1];r!==re&&(D({}),ce(r)),n!==P&&(E(Array.isArray(n)?n:void 0),G(n)),c.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var ae=c.useCallback(function(ye,ge){if(!i)return ge();var ne=i(ye,ge);ne&&typeof ne.then=="function"&&ne.then(ge,function(){return ge()})},[i]);c.useEffect(function(){n===!0&&ae(b,function(ye){h.current&&(E(ye||[]),M(!!g.current))})},[]);var he=c.useCallback(function(ye,ge){var ne=Yh(ye,ge,l);if(!ne){g.current=void 0,v(""),U(""),R([]),M(!1),F(!1);return}if(r&&$[ne])v(ne),U(ne),R($[ne]),M(!1),F(!1);else{var fe=g.current={};v(ne),M(!0),F(!Q),ae(ne,function(Me){h&&fe===g.current&&(g.current=void 0,M(!1),U(ne),R(Me||[]),F(!1),D(Me?q(q({},$),{},Rt({},ne,Me)):$))})}},[r,ae,Q,$,l]),Oe=I?[]:b&&Q?T:S||[];return q(q({},f),{},{options:Oe,isLoading:j||a,onInputChange:he,filterOption:d})}var ov=c.forwardRef(function(t,e){var n=nv(t),o=ev(n);return W.createElement(el,oe({ref:e},o))}),rv=ov;const Io=t=>W.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("g",{clipPath:"url(#clip0_422_11470)"},W.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),W.createElement("defs",null,W.createElement("clipPath",{id:"clip0_422_11470"},W.createElement("rect",{width:20.0004,height:20,fill:"white"})))),iv=t=>W.createElement("svg",{width:20,height:20,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("path",{d:"M5.99997 9.42017C5.7849 9.42017 5.56987 9.33805 5.4059 9.17417L0.24617 4.01439C-0.0820565 3.68616 -0.0820565 3.154 0.24617 2.8259C0.574263 2.49781 1.10632 2.49781 1.43457 2.8259L5.99997 7.39156L10.5654 2.82606C10.8936 2.49797 11.4256 2.49797 11.7537 2.82606C12.0821 3.15416 12.0821 3.68632 11.7537 4.01454L6.59403 9.17433C6.42999 9.33824 6.21495 9.42017 5.99997 9.42017Z",fill:"currentcolor"})),Je={root:"_root_gqdeu_1",placeholder:"_placeholder_gqdeu_6",control:"_control_gqdeu_11",singleValue:"_singleValue_gqdeu_16",indicatorSeparator:"_indicatorSeparator_gqdeu_22",option:"_option_gqdeu_25",menu:"_menu_gqdeu_34",clearIndicator:"_clearIndicator_gqdeu_38",dropdownIndicator:"_dropdownIndicator_gqdeu_48",dropdownIndicatorFocused:"_dropdownIndicatorFocused_gqdeu_58",indicatorsContainer:"_indicatorsContainer_gqdeu_61",valueContainer:"_valueContainer_gqdeu_65",label:"_label_gqdeu_69"},sv=({label:t,className:e,customDropdownIcon:n,...o})=>{const{t:r}=We();return L.jsxs("label",{className:we(Je.root,e),children:[t&&L.jsx("span",{className:Je.label,children:t}),L.jsx(rv,{isClearable:!0,isSearchable:!0,...o,classNamePrefix:"react-select",loadingMessage:()=>r("loading_message"),noOptionsMessage:()=>r("no_options_message"),classNames:{menu:()=>Je.menu,option:()=>Je.option,control:()=>Je.control,singleValue:()=>Je.singleValue,placeholder:()=>Je.placeholder,valueContainer:()=>Je.valueContainer,indicatorSeparator:()=>Je.indicatorSeparator,indicatorsContainer:()=>Je.indicatorsContainer},components:{ClearIndicator:({innerProps:i,className:s})=>L.jsx("div",{...i,className:we(Je.clearIndicator,s),children:L.jsx(Io,{})}),DropdownIndicator:({isFocused:i,innerProps:s,className:a})=>L.jsx("div",{...s,className:we(Je.dropdownIndicator,a,{[Je.dropdownIndicatorFocused]:i}),children:n||L.jsx(iv,{})})}})]})},ko={option:"_option_1d020_1",address:"_address_1d020_8"},av=({className:t,value:e,onChange:n})=>{const{t:o}=We(),r=async s=>{const{data:a}=(await Ts({q:s}).next()).value;return a.data.results},i=s=>{n==null||n(s)};return L.jsx(sv,{cacheOptions:!0,defaultOptions:!0,value:e,className:t,loadOptions:r,customDropdownIcon:L.jsx(os,{}),getOptionValue:s=>s.uid,placeholder:o("location_selector.placeholder"),onChange:i,formatOptionLabel:(s,a)=>L.jsxs("div",{className:ko.option,children:[a.context==="menu"&&L.jsx(Sr,{})," ",L.jsxs("div",{className:ko.content,children:[L.jsx("div",{className:ko.name,children:s.name}),a.context==="menu"&&L.jsx("div",{className:ko.address,children:s.location.full_address})]}),a.context==="menu"&&L.jsx(rs,{})]})})};var tl={},Do={},nl={exports:{}},lv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uv=lv,cv=uv;function ol(){}function rl(){}rl.resetWarningCache=ol;var dv=function(){function t(o,r,i,s,a,l){if(l!==cv){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rl,resetWarningCache:ol};return n.PropTypes=n,n};nl.exports=dv();var fv=nl.exports,Bo={},Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.loadGoogleMapScript=Xt.isBrowser=void 0;var il=typeof window<"u"&&window.document;Xt.isBrowser=il;var pv=function(e,n){if(!il||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var o=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(o&&o.length)return new Promise(function(s){if(typeof google<"u")return s();o[0].addEventListener("load",function(){return s()})});var r=new URL(n);r.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=r.toString(),new Promise(function(s){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=s,document.body.appendChild(i)})};Xt.loadGoogleMapScript=pv;var To={};Object.defineProperty(To,"__esModule",{value:!0}),To.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var hv="https://maps.googleapis.com/maps/api/js";To.GOOGLE_MAP_SCRIPT_BASE_URL=hv;function No(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?No=function(n){return typeof n}:No=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},No(t)}Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=Cv;var Ge=mv(c),si=Xt,gv=To;function sl(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(sl=function(r){return r?n:e})(t)}function mv(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||No(t)!=="object"&&typeof t!="function")return{default:t};var n=sl(e);if(n&&n.has(t))return n.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=r?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function al(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?al(Object(n),!0).forEach(function(o){vv(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yv(t,e){if(t==null)return{};var n=bv(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function bv(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Cv(t){var e=t.ref,n=t.onPlaceSelected,o=t.apiKey,r=t.libraries,i=r===void 0?"places":r,s=t.inputAutocompleteValue,a=s===void 0?"new-password":s,l=t.options;l=l===void 0?{}:l;var u=l.types,d=u===void 0?["(cities)"]:u,f=l.componentRestrictions,p=l.fields,g=p===void 0?["address_components","geometry.location","place_id","formatted_address"]:p,h=l.bounds,m=yv(l,["types","componentRestrictions","fields","bounds"]),y=t.googleMapsScriptBaseUrl,S=y===void 0?gv.GOOGLE_MAP_SCRIPT_BASE_URL:y,E=t.language,C=(0,Ge.useRef)(null),w=(0,Ge.useRef)(null),b=(0,Ge.useRef)(null),v=(0,Ge.useRef)(null),O=E?"&language=".concat(E):"",A="".concat(S,"?libraries=").concat(i,"&key=").concat(o).concat(O),j=(0,Ge.useCallback)(function(){return(0,si.loadGoogleMapScript)(S,A)},[S,A]);return(0,Ge.useEffect)(function(){var M=ll(ll({},m),{},{fields:g,types:d,bounds:h});if(f&&(M.componentRestrictions=f),!(b.current||!C.current||!si.isBrowser)){e&&!e.current&&(e.current=C.current);var H=function(){var Q;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((Q=google.maps)!==null&&Q!==void 0&&Q.places))return console.error("Google maps places API must be loaded.");if(!C.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");b.current=new google.maps.places.Autocomplete(C.current,M),b.current&&(w.current=b.current.addListener("place_changed",function(){n&&b&&b.current&&n(b.current.getPlace(),C.current,b.current)}))};return o?j().then(function(){return H()}):H(),function(){return w.current?w.current.remove():void 0}}},[]),(0,Ge.useEffect)(function(){var M;!(Ge.default!==null&&Ge.default!==void 0&&(M=Ge.default.version)!==null&&M!==void 0&&M.startsWith("18"))&&si.isBrowser&&window.MutationObserver&&C.current&&C.current instanceof HTMLInputElement&&(v.current=new MutationObserver(function(){v.current.disconnect(),C.current&&(C.current.autocomplete=a)}),v.current.observe(C.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[a]),(0,Ge.useEffect)(function(){b.current&&b.current.setFields(g)},[g]),(0,Ge.useEffect)(function(){b.current&&b.current.setBounds(h)},[h]),(0,Ge.useEffect)(function(){b.current&&b.current.setComponentRestrictions(f)},[f]),(0,Ge.useEffect)(function(){b.current&&b.current.setOptions(m)},[m]),{ref:C,autocompleteRef:b}}function Fo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fo=function(n){return typeof n}:Fo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fo(t)}Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var ai=Sv(c),Pe=ul(fv),Ev=ul(Bo);function ul(t){return t&&t.__esModule?t:{default:t}}function cl(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(cl=function(r){return r?n:e})(t)}function Sv(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Fo(t)!=="object"&&typeof t!="function")return{default:t};var n=cl(e);if(n&&n.has(t))return n.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=r?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function jo(){return jo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},jo.apply(this,arguments)}function Lv(t,e){if(t==null)return{};var n=wv(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function wv(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function dl(t){var e=t.onPlaceSelected,n=t.apiKey,o=t.libraries,r=t.inputAutocompleteValue,i=t.options,s=t.googleMapsScriptBaseUrl,a=t.refProp,l=t.language,u=Lv(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),d=(0,Ev.default)({ref:a,googleMapsScriptBaseUrl:s,onPlaceSelected:e,apiKey:n,libraries:o,inputAutocompleteValue:r,options:i,language:l}),f=d.ref;return ai.default.createElement("input",jo({ref:f},u))}dl.propTypes={apiKey:Pe.default.string,libraries:Pe.default.arrayOf(Pe.default.string),ref:Pe.default.oneOfType([Pe.default.func,Pe.default.shape({current:Pe.default.any})]),googleMapsScriptBaseUrl:Pe.default.string,onPlaceSelected:Pe.default.func,inputAutocompleteValue:Pe.default.string,options:Pe.default.shape({componentRestrictions:Pe.default.object,bounds:Pe.default.object,location:Pe.default.object,offset:Pe.default.number,origin:Pe.default.object,radius:Pe.default.number,sessionToken:Pe.default.object,types:Pe.default.arrayOf(Pe.default.string)}),language:Pe.default.string};var Av=(0,ai.forwardRef)(function(t,e){return ai.default.createElement(dl,jo({},t,{refProp:e}))});Do.default=Av,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=o(Do),n=o(Bo);function o(r){return r&&r.__esModule?r:{default:r}}}(tl);var fl=tl;const pl=c.createContext(window.OMNIC_WIDGET_LOCATIONS_CONFIG),xt=()=>c.useContext(pl),hl=c.createContext({city:null,setCity(){throw new Error("setCity method not implemented")},aside:{open:!1,toggle(){throw new Error("toggle method not implemented")}}}),Mt=()=>c.useContext(hl),_t={root:"_root_1w54v_1",endAdornment:"_endAdornment_1w54v_6",input:"_input_1w54v_6",startAdornment:"_startAdornment_1w54v_9",label:"_label_1w54v_29",inputContainer:"_inputContainer_1w54v_35"},gl=c.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:o,...r},i)=>L.jsxs("label",{className:we(_t.root,e),children:[t&&L.jsx("span",{className:_t.label,children:t}),L.jsxs("div",{className:_t.inputContainer,children:[n&&L.jsx("div",{className:_t.startAdornment,children:n}),L.jsx("input",{ref:i,className:_t.input,...r}),o&&L.jsx("div",{className:_t.endAdornment,children:o})]})]})),Ov=({className:t})=>{const{t:e}=We(),{country:n}=xt(),{setCity:o}=Mt(),r=vt(l=>l.setZoom),i=n?{componentRestrictions:{country:n},types:["address"]}:{types:["address"]},s=l=>{r(zn),o(l)},{ref:a}=fl.usePlacesWidget({libraries:["places"],options:i,onPlaceSelected:s,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});return L.jsx(gl,{ref:a,className:t,endAdornment:L.jsx(os,{}),placeholder:e("location_selector.placeholder")})},xv=({value:t,onChange:e,className:n})=>vt(r=>r.mode)==="courier_delivery"?L.jsx(Ov,{className:n}):L.jsx(av,{className:n,value:t,onChange:e}),Mv=c.memo(xv),mn={root:"_root_dzm2h_1",nav:"_nav_dzm2h_18",navItem:"_navItem_dzm2h_31",locationSelector:"_locationSelector_dzm2h_40"},Pv=()=>{const t=et(r=>r.selectedPoint),e=et(r=>r.selectPointHook),n=et(r=>r.setSelectedPoint),o=r=>{n(r),e==null||e(r)};return L.jsx(Mv,{value:t,className:mn.locationSelector,onChange:o})},Iv=({className:t})=>{const{t:e}=We(),[n,o]=Gt(d=>[d.courierPoint,d.setCourierPoint]),[r,i]=vt(d=>[d.mode,d.setMode]);c.useEffect(()=>{i(n?"courier_delivery":"self_pickup")},[n,i]);const s=()=>{o(null),i("self_pickup")},a=()=>{o(null),i("courier_delivery")},l=r==="self_pickup",u=r==="courier_delivery";return L.jsxs("div",{className:we(mn.root,t),children:[L.jsxs("nav",{className:mn.nav,children:[L.jsx(Ze,{as:"link",className:mn.navItem,variant:l?"primary":"secondary",onClick:s,children:e("header.self_pickup")}),L.jsx(Ze,{as:"link",className:mn.navItem,variant:u?"primary":"secondary",onClick:a,children:e("header.courier_delivery")})]}),L.jsx(Pv,{})]})},Uo="@omnic/widget-locations",ml={query:"",type:bt.All,hours:["08:00","22:00"],send:{[at.Return]:!1,[at.Payment]:!1,[at.Shipping]:!1},receive:{[st.PayByCash]:!1,[st.CheckOrder]:!1,[st.DressingRoom]:!1}},vl=c.createContext({filter:ml,setFilter(){throw new Error("setFilter method not implemented")}}),yl=()=>c.useContext(vl),kv={root:"_root_e4qd2_1"},li=({className:t,...e})=>L.jsx("hr",{className:we(kv.root,t),...e}),bl={root:"_root_1geql_1",label:"_label_1geql_32"},Dv=({label:t,className:e,labelProps:n={},...o})=>{const{className:r,...i}=n;return L.jsxs("label",{className:we(bl.label,r),...i,children:[L.jsx("input",{type:"radio",className:we(bl.root,e),...o}),t]})},$t=t=>L.jsx(Dv,{...t,type:"checkbox"}),Bv={root:"_root_qi1eq_1"},Tv=({value:t,onChange:e,className:n})=>{const{t:o}=We(),r=i=>()=>e==null?void 0:e(i);return L.jsxs("div",{className:we(Bv.root,n),children:[L.jsx(Ze,{variant:t===bt.All?"primary":"secondary",onClick:r(bt.All),children:o("type_filter.all")}),L.jsx(Ze,{variant:t===bt.PostOffice?"primary":"secondary",onClick:r(bt.PostOffice),children:o("type_filter.post_office")}),L.jsx(Ze,{variant:t===bt.PickPoint?"primary":"secondary",onClick:r(bt.PickPoint),children:o("type_filter.pick_point")})]})},ui={root:"_root_1gffr_1",body:"_body_1gffr_7",legend:"_legend_1gffr_12"},Cl=({label:t,value:e,onChange:n,children:o,className:r,...i})=>L.jsxs("div",{className:we(ui.root,r),...i,children:[t&&L.jsx("span",{className:ui.legend,children:t}),L.jsx("div",{className:ui.body,children:c.Children.map(o,s=>c.isValidElement(s)?c.cloneElement(s,{checked:!!(e!=null&&e[s.props.value]),onChange:a=>n==null?void 0:n({...e,[a.target.value]:a.target.checked})}):null)})]}),Nv=t=>W.createElement("svg",{width:24,height:28,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z",fill:"#1760EE"})),ci={root:"_root_7i42e_1",text:"_text_7i42e_8"},Fv=({className:t})=>{var s;const{t:e}=We(),{city:n,aside:{toggle:o}}=Mt(),r=()=>{o(!0)},i=(s=n==null?void 0:n.address_components)==null?void 0:s.find(a=>a.types.includes("locality"));return L.jsxs("div",{className:we(ci.root,t),onClick:r,children:[L.jsx("div",{className:ci.icon,children:L.jsx(Nv,{})}),L.jsxs("span",{className:ci.text,children:[!n&&e("current_location.choose_from_map"),n&&`${(i==null?void 0:i.long_name)??n.formatted_address}`]})]})},vn={logo:"_logo_1w7vg_1",typeFilter:"_typeFilter_1w7vg_5",separator:"_separator_1w7vg_9",currentLocation:"_currentLocation_1w7vg_14"},jv=({className:t})=>{const{t:e}=We(),{filter:n,setFilter:o}=yl(),r=c.useCallback(a=>o({type:a}),[o]),i=c.useCallback(a=>o({receive:a}),[o]),s=c.useCallback(a=>o({send:a}),[o]);return L.jsxs("div",{className:we(vn.root,t),children:[L.jsx("div",{className:vn.logo,children:L.jsx(Fv,{className:vn.currentLocation})}),L.jsx(Tv,{value:n.type,className:vn.typeFilter,onChange:r}),L.jsx(li,{className:vn.separator}),L.jsxs(Cl,{value:n.receive,label:e("receive_filter.title"),onChange:i,children:[L.jsx($t,{name:"receive",value:st.DressingRoom,label:e("receive_filter.dressing_room")}),L.jsx($t,{name:"receive",value:st.CheckOrder,label:e("receive_filter.check_order")}),L.jsx($t,{name:"receive",value:st.PayByCash,label:e("receive_filter.pay_by_cash")})]}),L.jsx(li,{}),L.jsxs(Cl,{value:n.send,label:e("send_filter.title"),onChange:s,children:[L.jsx($t,{name:"send",value:at.Return,label:e("send_filter.return")}),L.jsx($t,{name:"send",value:at.Shipping,label:e("send_filter.shipping")}),L.jsx($t,{name:"send",value:at.Payment,label:e("send_filter.payment")})]}),L.jsx(li,{})]})},El=new WeakSet;let Ho=new AbortController;El.add(Ho);const Sl=(t,e,n)=>async o=>{for await(const r of Ts({filter:e,bounds:n},{loading:t,controller:Ho,onCancel:()=>{Ho=new AbortController,El.add(Ho)}}))o(r.data)},Uv={points:[],error:!1,loaded:!1,loading:!1,reloading:!1},Ct=Hn()((t,e)=>({...Uv,async loadNext(n,o){const r=e().reloading;t({error:!1,reloading:!0}),vt.getState().setBounds(n);let i=0;try{await Sl(r,o,n)(a=>{t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0})}t({reloading:!1})},async loadFirst(n){const o=e().loading,r=vt.getState().bounds;t({error:!1,loading:!0});let i=0;try{await Sl(o,n,r)(a=>{i>=1&&t({loading:!1,loaded:!0}),t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0,loading:!1})}}})),Pt={root:"_root_1g3i8_1",open:"_open_1g3i8_10",overlay:"_overlay_1g3i8_15",container:"_container_1g3i8_23",header:"_header_1g3i8_38",close:"_close_1g3i8_46",body:"_body_1g3i8_51"},Hv=({open:t,onClose:e,children:n,className:o})=>L.jsxs("div",{className:we(Pt.root,o,{[Pt.open]:t}),children:[L.jsx("div",{className:Pt.overlay,onClick:e}),L.jsxs("div",{className:Pt.container,children:[L.jsx("div",{className:Pt.header,children:L.jsx("div",{className:Pt.close,onClick:e,children:L.jsx(Io,{})})}),L.jsx("div",{className:Pt.body,children:n})]})]}),Vv={submit:"_submit_198t5_1",option:"_option_198t5_6",selector:"_selector_198t5_12"},zv=()=>{const{t}=We(),{country:e}=xt(),{setCity:n}=Mt(),o=vt(p=>p.setZoom),[r,i]=c.useState(null),s=e?{componentRestrictions:{country:e}}:void 0,{ref:a}=fl.usePlacesWidget({libraries:["places"],options:s,onPlaceSelected:i,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"}),{aside:{open:l,toggle:u}}=Mt(),d=()=>{u(!1),i(null)},f=()=>{d(),o(Jd),n(r)};return L.jsxs(Hv,{open:l,onClose:d,children:[L.jsx(gl,{ref:a,label:t("location_aside.choose_city"),placeholder:t("location_aside.placeholder")}),L.jsx(Ze,{variant:"primary",disabled:!r,className:Vv.submit,onClick:f,children:t("choose")})]})},Qv=()=>{const{filter:t}=yl(),e=Ct(n=>n.loadFirst);c.useEffect(()=>{e(t)},[t,e])},Gv=()=>{const[t,e]=c.useState(ml),n=c.useCallback(o=>e(r=>({...r,...o})),[]);return{filter:t,setFilter:n}},Yv=()=>{const[t,e]=c.useState(null);return{city:t,setCity:e}},Wv=()=>{const[t,e]=c.useState(!1),n=c.useCallback(o=>e(o??(r=>!r)),[]);return{open:t,toggle:n}},yn=".",di=Symbol("target"),Ll=Symbol("unsubscribe");function fi(t){return t instanceof Date||t instanceof Set||t instanceof Map||t instanceof WeakSet||t instanceof WeakMap||ArrayBuffer.isView(t)}function Rv(t){return(typeof t=="object"?t===null:typeof t!="function")||t instanceof RegExp}const pt=Array.isArray;function pi(t){return typeof t=="symbol"}const _e={after:(t,e)=>pt(t)?t.slice(e.length):e===""?t:t.slice(e.length+1),concat:(t,e)=>pt(t)?(t=[...t],e&&t.push(e),t):e&&e.toString!==void 0?(t!==""&&(t+=yn),pi(e)?t+e.toString():t+e):t,initial:t=>{if(pt(t))return t.slice(0,-1);if(t==="")return t;const e=t.lastIndexOf(yn);return e===-1?"":t.slice(0,e)},last:t=>{if(pt(t))return t[t.length-1]||"";if(t==="")return t;const e=t.lastIndexOf(yn);return e===-1?t:t.slice(e+1)},walk:(t,e)=>{if(pt(t))for(const n of t)e(n);else if(t!==""){let n=0,o=t.indexOf(yn);if(o===-1)e(t);else for(;n<t.length;)o===-1&&(o=t.length),e(t.slice(n,o)),n=o+1,o=t.indexOf(yn,n)}},get(t,e){return this.walk(e,n=>{t&&(t=t[n])}),t}};function Kv(t){return typeof t=="object"&&typeof t.next=="function"}function Jv(t,e,n,o,r){const i=t.next;if(e.name==="entries")t.next=function(){const s=i.call(this);return s.done===!1&&(s.value[0]=r(s.value[0],e,s.value[0],o),s.value[1]=r(s.value[1],e,s.value[0],o)),s};else if(e.name==="values"){const s=n[di].keys();t.next=function(){const a=i.call(this);return a.done===!1&&(a.value=r(a.value,e,s.next().value,o)),a}}else t.next=function(){const s=i.call(this);return s.done===!1&&(s.value=r(s.value,e,s.value,o)),s};return t}function wl(t,e,n){return t.isUnsubscribed||e.ignoreSymbols&&pi(n)||e.ignoreUnderscores&&n.charAt(0)==="_"||"ignoreKeys"in e&&e.ignoreKeys.includes(n)}class qv{constructor(e){this._equals=e,this._proxyCache=new WeakMap,this._pathCache=new WeakMap,this.isUnsubscribed=!1}_getDescriptorCache(){return this._descriptorCache===void 0&&(this._descriptorCache=new WeakMap),this._descriptorCache}_getProperties(e){const n=this._getDescriptorCache();let o=n.get(e);return o===void 0&&(o={},n.set(e,o)),o}_getOwnPropertyDescriptor(e,n){if(this.isUnsubscribed)return Reflect.getOwnPropertyDescriptor(e,n);const o=this._getProperties(e);let r=o[n];return r===void 0&&(r=Reflect.getOwnPropertyDescriptor(e,n),o[n]=r),r}getProxy(e,n,o,r){if(this.isUnsubscribed)return e;const i=e[r],s=i||e;this._pathCache.set(s,n);let a=this._proxyCache.get(s);return a===void 0&&(a=i===void 0?new Proxy(e,o):e,this._proxyCache.set(s,a)),a}getPath(e){return this.isUnsubscribed?void 0:this._pathCache.get(e)}isDetached(e,n){return!Object.is(e,_e.get(n,this.getPath(e)))}defineProperty(e,n,o){return Reflect.defineProperty(e,n,o)?(this.isUnsubscribed||(this._getProperties(e)[n]=o),!0):!1}setProperty(e,n,o,r,i){if(!this._equals(i,o)||!(n in e)){const s=this._getOwnPropertyDescriptor(e,n);return s!==void 0&&"set"in s?Reflect.set(e,n,o,r):Reflect.set(e,n,o)}return!0}deleteProperty(e,n,o){if(Reflect.deleteProperty(e,n)){if(!this.isUnsubscribed){const r=this._getDescriptorCache().get(e);r&&(delete r[n],this._pathCache.delete(o))}return!0}return!1}isSameDescriptor(e,n,o){const r=this._getOwnPropertyDescriptor(n,o);return e!==void 0&&r!==void 0&&Object.is(e.value,r.value)&&(e.writable||!1)===(r.writable||!1)&&(e.enumerable||!1)===(r.enumerable||!1)&&(e.configurable||!1)===(r.configurable||!1)&&e.get===r.get&&e.set===r.set}isGetInvariant(e,n){const o=this._getOwnPropertyDescriptor(e,n);return o!==void 0&&o.configurable!==!0&&o.writable!==!0}unsubscribe(){this._descriptorCache=null,this._pathCache=null,this._proxyCache=null,this.isUnsubscribed=!0}}function hi(t){return toString.call(t)==="[object Object]"}function Vo(){return!0}function en(t,e){return t.length!==e.length||t.some((n,o)=>e[o]!==n)}const Al=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Zv=new Set(["concat","includes","indexOf","join","keys","lastIndexOf"]),Ol={push:Vo,pop:Vo,shift:Vo,unshift:Vo,copyWithin:en,reverse:en,sort:en,splice:en,flat:en,fill:en},Xv=new Set([...Al,...Zv,...Object.keys(Ol)]);function zo(t,e){if(t.size!==e.size)return!0;for(const n of t)if(!e.has(n))return!0;return!1}const xl=["keys","values","entries"],Ml=new Set(["has","toString"]),Pl={add:zo,clear:zo,delete:zo,forEach:zo},_v=new Set([...Ml,...Object.keys(Pl),...xl]);function Qo(t,e){if(t.size!==e.size)return!0;let n;for(const[o,r]of t)if(n=e.get(o),n!==r||n===void 0&&!e.has(o))return!0;return!1}const $v=new Set([...Ml,"get"]),Il={set:Qo,clear:Qo,delete:Qo,forEach:Qo},ey=new Set([...$v,...Object.keys(Il),...xl]);class Et{constructor(e,n,o,r){this._path=n,this._isChanged=!1,this._clonedCache=new Set,this._hasOnValidate=r,this._changes=r?[]:null,this.clone=n===void 0?e:this._shallowClone(e)}static isHandledMethod(e){return Al.has(e)}_shallowClone(e){let n=e;if(hi(e))n={...e};else if(pt(e)||ArrayBuffer.isView(e))n=[...e];else if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set([...e].map(o=>this._shallowClone(o)));else if(e instanceof Map){n=new Map;for(const[o,r]of e.entries())n.set(o,this._shallowClone(r))}return this._clonedCache.add(n),n}preferredThisArg(e,n,o,r){return e?(pt(r)?this._onIsChanged=Ol[n]:r instanceof Set?this._onIsChanged=Pl[n]:r instanceof Map&&(this._onIsChanged=Il[n]),r):o}update(e,n,o){const r=_e.after(e,this._path);if(n!=="length"){let i=this.clone;_e.walk(r,s=>{i&&i[s]&&(this._clonedCache.has(i[s])||(i[s]=this._shallowClone(i[s])),i=i[s])}),this._hasOnValidate&&this._changes.push({path:r,property:n,previous:o}),i&&i[n]&&(i[n]=o)}this._isChanged=!0}undo(e){let n;for(let o=this._changes.length-1;o!==-1;o--)n=this._changes[o],_e.get(e,n.path)[n.property]=n.previous}isChanged(e){return this._onIsChanged===void 0?this._isChanged:this._onIsChanged(this.clone,e)}}class kl extends Et{static isHandledMethod(e){return Xv.has(e)}}class ty extends Et{undo(e){e.setTime(this.clone.getTime())}isChanged(e,n){return!n(this.clone.valueOf(),e.valueOf())}}class Dl extends Et{static isHandledMethod(e){return _v.has(e)}undo(e){for(const n of this.clone)e.add(n);for(const n of e)this.clone.has(n)||e.delete(n)}}class Bl extends Et{static isHandledMethod(e){return ey.has(e)}undo(e){for(const[n,o]of this.clone.entries())e.set(n,o);for(const n of e.keys())this.clone.has(n)||e.delete(n)}}class ny extends Et{constructor(e,n,o,r){super(void 0,n,o,r),this._arg1=o[0],this._weakValue=e.has(this._arg1)}isChanged(e){return this._weakValue!==e.has(this._arg1)}undo(e){this._weakValue&&!e.has(this._arg1)?e.add(this._arg1):e.delete(this._arg1)}}class oy extends Et{constructor(e,n,o,r){super(void 0,n,o,r),this._weakKey=o[0],this._weakHas=e.has(this._weakKey),this._weakValue=e.get(this._weakKey)}isChanged(e){return this._weakValue!==e.get(this._weakKey)}undo(e){const n=e.has(this._weakKey);this._weakHas&&!n?e.set(this._weakKey,this._weakValue):!this._weakHas&&n?e.delete(this._weakKey):this._weakValue!==e.get(this._weakKey)&&e.set(this._weakKey,this._weakValue)}}class It{constructor(e){this._stack=[],this._hasOnValidate=e}static isHandledType(e){return hi(e)||pt(e)||fi(e)}static isHandledMethod(e,n){return hi(e)?Et.isHandledMethod(n):pt(e)?kl.isHandledMethod(n):e instanceof Set?Dl.isHandledMethod(n):e instanceof Map?Bl.isHandledMethod(n):fi(e)}get isCloning(){return this._stack.length>0}start(e,n,o){let r=Et;pt(e)?r=kl:e instanceof Date?r=ty:e instanceof Set?r=Dl:e instanceof Map?r=Bl:e instanceof WeakSet?r=ny:e instanceof WeakMap&&(r=oy),this._stack.push(new r(e,n,o,this._hasOnValidate))}update(e,n,o){this._stack[this._stack.length-1].update(e,n,o)}preferredThisArg(e,n,o){const{name:r}=e,i=It.isHandledMethod(o,r);return this._stack[this._stack.length-1].preferredThisArg(i,r,n,o)}isChanged(e,n,o){return this._stack[this._stack.length-1].isChanged(e,n,o)}undo(e){this._previousClone!==void 0&&this._previousClone.undo(e)}stop(){return this._previousClone=this._stack.pop(),this._previousClone.clone}}const ry={equals:Object.is,isShallow:!1,pathAsArray:!1,ignoreSymbols:!1,ignoreUnderscores:!1,ignoreDetached:!1,details:!1},bn=(t,e,n={})=>{n={...ry,...n};const o=Symbol("ProxyTarget"),{equals:r,isShallow:i,ignoreDetached:s,details:a}=n,l=new qv(r),u=typeof n.onValidate=="function",d=new It(u),f=(E,C,w,b,v)=>!u||d.isCloning||n.onValidate(_e.concat(l.getPath(E),C),w,b,v)===!0,p=(E,C,w,b)=>{!wl(l,n,C)&&!(s&&l.isDetached(E,t))&&g(l.getPath(E),C,w,b)},g=(E,C,w,b,v)=>{d.isCloning?d.update(E,C,b):e(_e.concat(E,C),w,b,v)},h=E=>E&&(E[o]||E),m=(E,C,w,b)=>Rv(E)||w==="constructor"||i&&!It.isHandledMethod(C,w)||wl(l,n,w)||l.isGetInvariant(C,w)||s&&l.isDetached(C,t)?E:(b===void 0&&(b=l.getPath(C)),l.getProxy(E,_e.concat(b,w),y,o)),y={get(E,C,w){if(pi(C)){if(C===o||C===di)return E;if(C===Ll&&!l.isUnsubscribed&&l.getPath(E).length===0)return l.unsubscribe(),E}const b=fi(E)?Reflect.get(E,C):Reflect.get(E,C,w);return m(b,E,C)},set(E,C,w,b){w=h(w);const v=E[o]||E,O=v[C];if(r(O,w)&&C in E)return!0;const A=f(E,C,w,O);return A&&l.setProperty(v,C,w,b,O)?(p(E,C,E[C],O),!0):!A},defineProperty(E,C,w){if(!l.isSameDescriptor(w,E,C)){const b=E[C];f(E,C,w.value,b)&&l.defineProperty(E,C,w,b)&&p(E,C,w.value,b)}return!0},deleteProperty(E,C){if(!Reflect.has(E,C))return!0;const w=Reflect.get(E,C),b=f(E,C,void 0,w);return b&&l.deleteProperty(E,C,w)?(p(E,C,void 0,w),!0):!b},apply(E,C,w){const b=C[o]||C;if(l.isUnsubscribed)return Reflect.apply(E,b,w);if((a===!1||a!==!0&&!a.includes(E.name))&&It.isHandledType(b)){let v=_e.initial(l.getPath(E));const O=It.isHandledMethod(b,E.name);d.start(b,v,w);let A=Reflect.apply(E,d.preferredThisArg(E,C,b),O?w.map(H=>h(H)):w);const j=d.isChanged(b,r),M=d.stop();if(It.isHandledType(A)&&O&&(C instanceof Map&&E.name==="get"&&(v=_e.concat(v,w[0])),A=l.getProxy(A,v,y)),j){const H={name:E.name,args:w,result:A},V=d.isCloning?_e.initial(v):v,Q=d.isCloning?_e.last(v):"";f(_e.get(t,V),Q,b,M,H)?g(V,Q,b,M,H):d.undo(b)}return(C instanceof Map||C instanceof Set)&&Kv(A)?Jv(A,E,C,v,m):A}return Reflect.apply(E,C,w)}},S=l.getProxy(t,n.pathAsArray?[]:"",y);return e=e.bind(S),u&&(n.onValidate=n.onValidate.bind(S)),S};bn.target=t=>t&&t[di]||t,bn.unsubscribe=t=>t[Ll]||t;const iy=t=>{const[e,n]=c.useState(t??window.OMNIC_WIDGET_LOCATIONS_CONFIG??{});return c.useEffect(()=>{if(t&&!window.OMNIC_WIDGET_LOCATIONS_CONFIG){n(t);return}if(window.OMNIC_WIDGET_LOCATIONS_CONFIG&&!t)return window.OMNIC_WIDGET_LOCATIONS_CONFIG=bn(window.OMNIC_WIDGET_LOCATIONS_CONFIG,function(){const o=bn.target(this);o.palette&&(o.palette={...o.palette}),o.map&&(o.map={...o.map}),n({...o})}),()=>{bn.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG)};if(!window.OMNIC_WIDGET_LOCATIONS_CONFIG&&!t)throw new Error("No config provided")},[t]),e},sy=(t,e)=>{eo.defaults.headers.get.Authorization=`INN ${t.INN}`,e!=null&&e.baseURL&&(eo.defaults.baseURL=e.baseURL)};/*! *****************************************************************************
|
|
35
|
+
`]))),Bg=function(e,n){var o=e.isFocused,r=e.size,i=e.theme,s=i.colors,a=i.spacing.baseUnit;return q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:o?s.neutral60:s.neutral20,padding:a*2})},ei=function(e){var n=e.delay,o=e.offset;return te("span",{css:qr({animation:"".concat(Dg," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Tg=function(e){var n=e.innerProps,o=e.isRtl,r=e.size,i=r===void 0?4:r,s=dt(e,wg);return te("div",oe({},xe(q(q({},s),{},{innerProps:n,isRtl:o,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),te(ei,{delay:0,offset:o}),te(ei,{delay:160,offset:!0}),te(ei,{delay:320,offset:!o}))},Ng=function(e,n){var o=e.isDisabled,r=e.isFocused,i=e.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:o?s.neutral5:s.neutral0,borderColor:o?s.neutral10:r?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},Fg=function(e){var n=e.children,o=e.isDisabled,r=e.isFocused,i=e.innerRef,s=e.innerProps,a=e.menuIsOpen;return te("div",oe({ref:i},xe(e,"control",{control:!0,"control--is-disabled":o,"control--is-focused":r,"control--menu-is-open":a}),s),n)},jg=Fg,Ug=["data"],Hg=function(e,n){var o=e.theme.spacing;return n?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},Vg=function(e){var n=e.children,o=e.cx,r=e.getStyles,i=e.getClassNames,s=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,f=e.selectProps;return te("div",oe({},xe(e,"group",{group:!0}),l),te(s,oe({},a,{selectProps:f,theme:d,getStyles:r,getClassNames:i,cx:o}),u),te("div",null,n))},zg=function(e,n){var o=e.theme,r=o.colors,i=o.spacing;return q({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Qg=function(e){var n=ya(e);n.data;var o=dt(n,Ug);return te("div",oe({},xe(e,"groupHeading",{"group-heading":!0}),o))},Gg=Vg,Yg=["innerRef","isDisabled","isHidden","inputClassName"],Wg=function(e,n){var o=e.isDisabled,r=e.value,i=e.theme,s=i.spacing,a=i.colors;return q(q({visibility:o?"hidden":"visible",transform:r?"translateZ(0)":""},Rg),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},Ia={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ia)},Kg=function(e){return q({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ia)},Jg=function(e){var n=e.cx,o=e.value,r=ya(e),i=r.innerRef,s=r.isDisabled,a=r.isHidden,l=r.inputClassName,u=dt(r,Yg);return te("div",oe({},xe(e,"input",{"input-container":!0}),{"data-value":o||""}),te("input",oe({className:n({input:!0},l),ref:i,style:Kg(a),disabled:s},u)))},qg=Jg,Zg=function(e,n){var o=e.theme,r=o.spacing,i=o.borderRadius,s=o.colors;return q({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},Xg=function(e,n){var o=e.theme,r=o.borderRadius,i=o.colors,s=e.cropWithEllipsis;return q({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},_g=function(e,n){var o=e.theme,r=o.spacing,i=o.borderRadius,s=o.colors,a=e.isFocused;return q({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},ka=function(e){var n=e.children,o=e.innerProps;return te("div",o,n)},$g=ka,em=ka;function tm(t){var e=t.children,n=t.innerProps;return te("div",oe({role:"button"},n),e||te($r,{size:14}))}var nm=function(e){var n=e.children,o=e.components,r=e.data,i=e.innerProps,s=e.isDisabled,a=e.removeProps,l=e.selectProps,u=o.Container,d=o.Label,f=o.Remove;return te(u,{data:r,innerProps:q(q({},xe(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},te(d,{data:r,innerProps:q({},xe(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),te(f,{data:r,innerProps:q(q({},xe(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},om=nm,rm=function(e,n){var o=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.theme,a=s.spacing,l=s.colors;return q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:o?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:i?l.primary:l.primary50}})},im=function(e){var n=e.children,o=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.innerRef,a=e.innerProps;return te("div",oe({},xe(e,"option",{option:!0,"option--is-disabled":o,"option--is-focused":r,"option--is-selected":i}),{ref:s,"aria-disabled":o},a),n)},sm=im,am=function(e,n){var o=e.theme,r=o.spacing,i=o.colors;return q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},lm=function(e){var n=e.children,o=e.innerProps;return te("div",oe({},xe(e,"placeholder",{placeholder:!0}),o),n)},um=lm,cm=function(e,n){var o=e.isDisabled,r=e.theme,i=r.spacing,s=r.colors;return q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:o?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},dm=function(e){var n=e.children,o=e.isDisabled,r=e.innerProps;return te("div",oe({},xe(e,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),r),n)},fm=dm,pm={ClearIndicator:Pg,Control:jg,DropdownIndicator:xg,DownChevron:Ma,CrossIcon:$r,Group:Gg,GroupHeading:Qg,IndicatorsContainer:Sg,IndicatorSeparator:kg,Input:qg,LoadingIndicator:Tg,Menu:lg,MenuList:cg,MenuPortal:mg,LoadingMessage:hg,NoOptionsMessage:pg,MultiValue:om,MultiValueContainer:$g,MultiValueLabel:em,MultiValueRemove:tm,Option:sm,Placeholder:um,SelectContainer:yg,SingleValue:fm,ValueContainer:Cg},hm=function(e){return q(q({},pm),e.components)},Da=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function gm(t,e){return!!(t===e||Da(t)&&Da(e))}function mm(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!gm(t[n],e[n]))return!1;return!0}function vm(t,e){e===void 0&&(e=mm);var n=null;function o(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&e(r,n.lastArgs))return n.lastResult;var s=t.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return o.clear=function(){n=null},o}for(var ym={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"},bm=function(e){return te("span",oe({css:ym},e))},Ba=bm,Cm={guidance:function(e){var n=e.isSearchable,o=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue,s=e.context;switch(s){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" 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 n=e.action,o=e.label,r=o===void 0?"":o,i=e.labels,s=e.isDisabled;switch(n){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(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var n=e.context,o=e.focused,r=e.options,i=e.label,s=i===void 0?"":i,a=e.selectValue,l=e.isDisabled,u=e.isSelected,d=function(h,m){return h&&h.length?"".concat(h.indexOf(m)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(d(a,o),".");if(n==="menu"){var f=l?" disabled":"",p="".concat(u?"selected":"focused").concat(f);return"option ".concat(s," ").concat(p,", ").concat(d(r,o),".")}return""},onFilter:function(e){var n=e.inputValue,o=e.resultsMessage;return"".concat(o).concat(n?" for search term "+n:"",".")}},Em=function(e){var n=e.ariaSelection,o=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,m=l.isSearchable,y=l.menuIsOpen,S=l.options,E=l.screenReaderStatus,C=l.tabSelectsValue,w=l["aria-label"],b=l["aria-live"],v=c.useMemo(function(){return q(q({},Cm),d||{})},[d]),O=c.useMemo(function(){var U="";if(n&&v.onChange){var z=n.option,K=n.options,T=n.removedValue,R=n.removedValues,k=n.value,x=function(X){return Array.isArray(X)?null:X},I=T||z||x(k),F=I?f(I):"",N=K||R||void 0,Y=N?N.map(f):[],$=q({isDisabled:I&&h(I,a),label:F,labels:Y},n);U=v.onChange($)}return U},[n,v,h,a,f]),A=c.useMemo(function(){var U="",z=o||r,K=!!(o&&a&&a.includes(o));if(z&&v.onFocus){var T={focused:z,label:f(z),isDisabled:h(z,a),isSelected:K,options:i,context:z===o?"menu":"value",selectValue:a};U=v.onFocus(T)}return U},[o,r,f,h,v,i,a]),j=c.useMemo(function(){var U="";if(y&&S.length&&v.onFilter){var z=E({count:i.length});U=v.onFilter({inputValue:p,resultsMessage:z})}return U},[i,p,y,v,S,E]),M=c.useMemo(function(){var U="";if(v.guidance){var z=r?"value":y?"menu":"input";U=v.guidance({"aria-label":w,context:z,isDisabled:o&&h(o,a),isMulti:g,isSearchable:m,tabSelectsValue:C})}return U},[w,o,r,g,h,m,y,v,a,C]),H="".concat(A," ").concat(j," ").concat(M),V=te(c.Fragment,null,te("span",{id:"aria-selection"},O),te("span",{id:"aria-context"},H)),Q=(n==null?void 0:n.action)==="initial-input-focus";return te(c.Fragment,null,te(Ba,{id:u},Q&&V),te(Ba,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text"},s&&!Q&&V))},Sm=Em,ti=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Lm=new RegExp("["+ti.map(function(t){return t.letters}).join("")+"]","g"),Ta={},ni=0;ni<ti.length;ni++)for(var oi=ti[ni],ri=0;ri<oi.letters.length;ri++)Ta[oi.letters[ri]]=oi.base;var Na=function(e){return e.replace(Lm,function(n){return Ta[n]})},wm=vm(Na),Fa=function(e){return e.replace(/^\s+|\s+$/g,"")},Am=function(e){return"".concat(e.label," ").concat(e.value)},Om=function(e){return function(n,o){if(n.data.__isNew__)return!0;var r=q({ignoreCase:!0,ignoreAccents:!0,stringify:Am,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,s=r.ignoreAccents,a=r.stringify,l=r.trim,u=r.matchFrom,d=l?Fa(o):o,f=l?Fa(a(n)):a(n);return i&&(d=d.toLowerCase(),f=f.toLowerCase()),s&&(d=wm(d),f=Na(f)),u==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},xm=["innerRef"];function Mm(t){var e=t.innerRef,n=dt(t,xm),o=eg(n,"onExited","in","enter","exit","appear");return te("input",oe({ref:e},o,{css:qr({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 Pm=function(e){e.preventDefault(),e.stopPropagation()};function Im(t){var e=t.isEnabled,n=t.onBottomArrive,o=t.onBottomLeave,r=t.onTopArrive,i=t.onTopLeave,s=c.useRef(!1),a=c.useRef(!1),l=c.useRef(0),u=c.useRef(null),d=c.useCallback(function(y,S){if(u.current!==null){var E=u.current,C=E.scrollTop,w=E.scrollHeight,b=E.clientHeight,v=u.current,O=S>0,A=w-b-C,j=!1;A>S&&s.current&&(o&&o(y),s.current=!1),O&&a.current&&(i&&i(y),a.current=!1),O&&S>A?(n&&!s.current&&n(y),v.scrollTop=w,j=!0,s.current=!0):!O&&-S>C&&(r&&!a.current&&r(y),v.scrollTop=0,j=!0,a.current=!0),j&&Pm(y)}},[n,o,r,i]),f=c.useCallback(function(y){d(y,y.deltaY)},[d]),p=c.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),g=c.useCallback(function(y){var S=l.current-y.changedTouches[0].clientY;d(y,S)},[d]),h=c.useCallback(function(y){if(y){var S=Xh?{passive:!1}:!1;y.addEventListener("wheel",f,S),y.addEventListener("touchstart",p,S),y.addEventListener("touchmove",g,S)}},[g,p,f]),m=c.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",p,!1),y.removeEventListener("touchmove",g,!1))},[g,p,f]);return c.useEffect(function(){if(e){var y=u.current;return h(y),function(){m(y)}}},[e,h,m]),function(y){u.current=y}}var ja=["boxSizing","height","overflow","paddingRight","position"],Ua={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ha(t){t.preventDefault()}function Va(t){t.stopPropagation()}function za(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function Qa(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ga=!!(typeof window<"u"&&window.document&&window.document.createElement),gn=0,Zt={capture:!1,passive:!1};function km(t){var e=t.isEnabled,n=t.accountForScrollbars,o=n===void 0?!0:n,r=c.useRef({}),i=c.useRef(null),s=c.useCallback(function(l){if(Ga){var u=document.body,d=u&&u.style;if(o&&ja.forEach(function(h){var m=d&&d[h];r.current[h]=m}),o&&gn<1){var f=parseInt(r.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,g=window.innerWidth-p+f||0;Object.keys(Ua).forEach(function(h){var m=Ua[h];d&&(d[h]=m)}),d&&(d.paddingRight="".concat(g,"px"))}u&&Qa()&&(u.addEventListener("touchmove",Ha,Zt),l&&(l.addEventListener("touchstart",za,Zt),l.addEventListener("touchmove",Va,Zt))),gn+=1}},[o]),a=c.useCallback(function(l){if(Ga){var u=document.body,d=u&&u.style;gn=Math.max(gn-1,0),o&&gn<1&&ja.forEach(function(f){var p=r.current[f];d&&(d[f]=p)}),u&&Qa()&&(u.removeEventListener("touchmove",Ha,Zt),l&&(l.removeEventListener("touchstart",za,Zt),l.removeEventListener("touchmove",Va,Zt)))}},[o]);return c.useEffect(function(){if(e){var l=i.current;return s(l),function(){a(l)}}},[e,s,a]),function(l){i.current=l}}var Dm=function(){return document.activeElement&&document.activeElement.blur()},Bm={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tm(t){var e=t.children,n=t.lockEnabled,o=t.captureEnabled,r=o===void 0?!0:o,i=t.onBottomArrive,s=t.onBottomLeave,a=t.onTopArrive,l=t.onTopLeave,u=Im({isEnabled:r,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),d=km({isEnabled:n}),f=function(g){u(g),d(g)};return te(c.Fragment,null,n&&te("div",{onClick:Dm,css:Bm}),e(f))}var Nm={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Fm=function(e){var n=e.name,o=e.onFocus;return te("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:Nm,value:"",onChange:function(){}})},jm=Fm,Um=function(e){return e.label},Hm=function(e){return e.label},Vm=function(e){return e.value},zm=function(e){return!!e.isDisabled},Qm={clearIndicator:Mg,container:vg,control:Ng,dropdownIndicator:Og,group:Hg,groupHeading:zg,indicatorsContainer:Eg,indicatorSeparator:Ig,input:Wg,loadingIndicator:Bg,loadingMessage:fg,menu:ig,menuList:ug,menuPortal:gg,multiValue:Zg,multiValueLabel:Xg,multiValueRemove:_g,noOptionsMessage:dg,option:rm,placeholder:am,singleValue:cm,valueContainer:bg},Gm={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%)"},Ym=4,Ya=4,Wm=38,Rm=Ya*2,Km={baseUnit:Ya,controlHeight:Wm,menuGutter:Rm},ii={borderRadius:Ym,colors:Gm,spacing:Km},Jm={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ea(),captureMenuScroll:!Ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Om(),formatGroupLabel:Um,getOptionLabel:Hm,getOptionValue:Vm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:zm,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!qh(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Wa(t,e,n,o){var r=Za(t,e,n),i=Xa(t,e,n),s=qa(t,e),a=Po(t,e);return{type:"option",data:e,isDisabled:r,isSelected:i,label:s,value:a,index:o}}function Ra(t,e){return t.options.map(function(n,o){if("options"in n){var r=n.options.map(function(s,a){return Wa(t,s,e,a)}).filter(function(s){return Ja(t,s)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Wa(t,n,e,o);return Ja(t,i)?i:void 0}).filter(_h)}function Ka(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,Hs(n.options.map(function(o){return o.data}))):e.push(n.data),e},[])}function qm(t,e){return Ka(Ra(t,e))}function Ja(t,e){var n=t.inputValue,o=n===void 0?"":n,r=e.data,i=e.isSelected,s=e.label,a=e.value;return(!$a(t)||!i)&&_a(t,{label:s,value:a,data:r},o)}function Zm(t,e){var n=t.focusedValue,o=t.selectValue,r=o.indexOf(n);if(r>-1){var i=e.indexOf(n);if(i>-1)return n;if(r<e.length)return e[r]}return null}function Xm(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var qa=function(e,n){return e.getOptionLabel(n)},Po=function(e,n){return e.getOptionValue(n)};function Za(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function Xa(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var o=Po(t,e);return n.some(function(r){return Po(t,r)===o})}function _a(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var $a=function(e){var n=e.hideSelectedOptions,o=e.isMulti;return n===void 0?o:n},_m=1,el=function(t){yp(n,t);var e=Sp(n);function n(o){var r;if(mp(this,n),r=e.call(this,o),r.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,l){var u=r.props,d=u.onChange,f=u.name;l.name=f,r.ariaOnChange(a,l),d(a,l)},r.setValue=function(a,l,u){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,g=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:l,option:u})},r.selectOption=function(a){var l=r.props,u=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=r.state.selectValue,g=d&&r.isOptionSelected(a,p),h=r.isOptionDisabled(a,p);if(g){var m=r.getOptionValue(a);r.setValue(p.filter(function(y){return r.getOptionValue(y)!==m}),"deselect-option",a)}else if(!h)d?r.setValue([].concat(Hs(p),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:f});return}u&&r.blurInput()},r.removeValue=function(a){var l=r.props.isMulti,u=r.state.selectValue,d=r.getOptionValue(a),f=u.filter(function(g){return r.getOptionValue(g)!==d}),p=Mo(l,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(Mo(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,l=r.state.selectValue,u=l[l.length-1],d=l.slice(0,l.length-1),f=Mo(a,d,d[0]||null);r.onChange(f,{action:"pop-value",removedValue:u})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return Gh.apply(void 0,[r.props.classNamePrefix].concat(l))},r.getOptionLabel=function(a){return qa(r.props,a)},r.getOptionValue=function(a){return Po(r.props,a)},r.getStyles=function(a,l){var u=r.props.unstyled,d=Qm[a](l,u);d.boxSizing="border-box";var f=r.props.styles[a];return f?f(d,l):d},r.getClassNames=function(a,l){var u,d;return(u=(d=r.props.classNames)[a])===null||u===void 0?void 0:u.call(d,l)},r.getElementId=function(a){return"".concat(r.instancePrefix,"-").concat(a)},r.getComponents=function(){return hm(r.props)},r.buildCategorizedOptions=function(){return Ra(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Ka(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,l){r.setState({ariaSelection:q({value:a},l)})},r.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(a){r.blockOptionHover=!1},r.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&r.onMenuClose():l&&r.openMenu("first"):(l&&(r.openAfterFocus=!0),r.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},r.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!r.props.isDisabled){var l=r.props,u=l.isMulti,d=l.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),a.preventDefault()}},r.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(r.clearValue(),a.preventDefault(),r.openAfterFocus=!1,a.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(a){typeof r.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&wo(a.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(a)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(a){var l=a.touches,u=l&&l.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(a){var l=a.touches,u=l&&l.item(0);if(u){var d=Math.abs(u.clientX-r.initialTouchX),f=Math.abs(u.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var l=r.props.inputValue,u=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:l}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var l=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:l}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){r.blockOptionHover||r.state.focusedOption===a||r.setState({focusedOption:a})},r.shouldHideSelectedOptions=function(){return $a(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var l=r.props,u=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,g=l.isClearable,h=l.isDisabled,m=l.menuIsOpen,y=l.onKeyDown,S=l.tabSelectsValue,E=l.openMenuOnFocus,C=r.state,w=C.focusedOption,b=C.focusedValue,v=C.selectValue;if(!h&&!(typeof y=="function"&&(y(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!u||p)return;r.focusValue("previous");break;case"ArrowRight":if(!u||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(b)r.removeValue(b);else{if(!d)return;u?r.popValue():g&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!m||!S||!w||E&&r.isOptionSelected(w,v))return;r.selectOption(w);break;case"Enter":if(a.keyCode===229)break;if(m){if(!w||r.isComposing)return;r.selectOption(w);break}return;case"Escape":m?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):g&&f&&r.clearValue();break;case" ":if(p)return;if(!m){r.openMenu("first");break}if(!w)return;r.selectOption(w);break;case"ArrowUp":m?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":m?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!m)return;r.focusOption("pageup");break;case"PageDown":if(!m)return;r.focusOption("pagedown");break;case"Home":if(!m)return;r.focusOption("first");break;case"End":if(!m)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++_m),r.state.selectValue=va(o.value),o.menuIsOpen&&r.state.selectValue.length){var i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusedOption=i[s]}return r}return vp(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&&Ca(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ca(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(r,i){this.props.onInputChange(r,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),d=r==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d]},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(r){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,d=-1;if(s.length){switch(r){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:s[d]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),r==="up"?l=u>0?u-1:a.length-1:r==="down"?l=(u+1)%a.length:r==="pageup"?(l=u-i,l<0&&(l=0)):r==="pagedown"?(l=u+i,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(ii):q(q({},ii),this.props.theme):ii}},{key:"getCommonProps",value:function(){var r=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,f=this.props,p=f.isMulti,g=f.isRtl,h=f.options,m=this.hasValue();return{clearValue:r,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:m,isMulti:p,isRtl:g,options:h,selectOption:u,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,i=r.isClearable,s=r.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(r,i){return Za(this.props,r,i)}},{key:"isOptionSelected",value:function(r,i){return Xa(this.props,r,i)}},{key:"filterOption",value:function(r,i){return _a(this.props,r,i)}},{key:"formatOptionLabel",value:function(r,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{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 r=this.props,i=r.isDisabled,s=r.isSearchable,a=r.inputId,l=r.inputValue,u=r.tabIndex,d=r.form,f=r.menuIsOpen,p=r.required,g=this.getComponents(),h=g.Input,m=this.state,y=m.inputIsHidden,S=m.ariaSelection,E=this.commonProps,C=a||this.getElementId("input"),w=q(q(q({"aria-autocomplete":"list","aria-expanded":f,"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":p,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(S==null?void 0:S.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?W.createElement(h,oe({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},w)):W.createElement(Mm,oe({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Lo,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:d,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,d=i.SingleValue,f=i.Placeholder,p=this.commonProps,g=this.props,h=g.controlShouldRenderValue,m=g.isDisabled,y=g.isMulti,S=g.inputValue,E=g.placeholder,C=this.state,w=C.selectValue,b=C.focusedValue,v=C.isFocused;if(!this.hasValue()||!h)return S?null:W.createElement(f,oe({},p,{key:"placeholder",isDisabled:m,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(y)return w.map(function(A,j){var M=A===b,H="".concat(r.getOptionLabel(A),"-").concat(r.getOptionValue(A));return W.createElement(s,oe({},p,{components:{Container:a,Label:l,Remove:u},isFocused:M,isDisabled:m,key:H,index:j,removeProps:{onClick:function(){return r.removeValue(A)},onTouchEnd:function(){return r.removeValue(A)},onMouseDown:function(Q){Q.preventDefault()}},data:A}),r.formatOptionLabel(A,"value"))});if(S)return null;var O=w[0];return W.createElement(d,oe({},p,{data:O,isDisabled:m}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),i=r.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,d=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),i=r.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,d=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:f,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator,s=r.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(s,oe({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(i,oe({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,u=i.MenuList,d=i.MenuPortal,f=i.LoadingMessage,p=i.NoOptionsMessage,g=i.Option,h=this.commonProps,m=this.state.focusedOption,y=this.props,S=y.captureMenuScroll,E=y.inputValue,C=y.isLoading,w=y.loadingMessage,b=y.minMenuHeight,v=y.maxMenuHeight,O=y.menuIsOpen,A=y.menuPlacement,j=y.menuPosition,M=y.menuPortalTarget,H=y.menuShouldBlockScroll,V=y.menuShouldScrollIntoView,Q=y.noOptionsMessage,U=y.onMenuScrollToTop,z=y.onMenuScrollToBottom;if(!O)return null;var K=function(N,Y){var $=N.type,D=N.data,X=N.isDisabled,ie=N.isSelected,P=N.label,G=N.value,_=m===D,ee=X?void 0:function(){return r.onOptionHover(D)},re=X?void 0:function(){return r.selectOption(D)},ce="".concat(r.getElementId("option"),"-").concat(Y),ae={id:ce,onClick:re,onMouseMove:ee,onMouseOver:ee,tabIndex:-1};return W.createElement(g,oe({},h,{innerProps:ae,data:D,isDisabled:X,isSelected:ie,key:ce,label:P,type:$,value:G,isFocused:_,innerRef:_?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(N.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var N=F.data,Y=F.options,$=F.index,D="".concat(r.getElementId("group"),"-").concat($),X="".concat(D,"-heading");return W.createElement(s,oe({},h,{key:D,data:N,options:Y,Heading:a,headingProps:{id:X,data:F.data},label:r.formatGroupLabel(F.data)}),F.options.map(function(ie){return K(ie,"".concat($,"-").concat(ie.index))}))}else if(F.type==="option")return K(F,"".concat(F.index))});else if(C){var R=w({inputValue:E});if(R===null)return null;T=W.createElement(f,h,R)}else{var k=Q({inputValue:E});if(k===null)return null;T=W.createElement(p,h,k)}var x={minMenuHeight:b,maxMenuHeight:v,menuPlacement:A,menuPosition:j,menuShouldScrollIntoView:V},I=W.createElement(sg,oe({},h,x),function(F){var N=F.ref,Y=F.placerProps,$=Y.placement,D=Y.maxHeight;return W.createElement(l,oe({},h,x,{innerRef:N,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove,id:r.getElementId("listbox")},isLoading:C,placement:$}),W.createElement(Tm,{captureEnabled:S,onTopArrive:U,onBottomArrive:z,lockEnabled:H},function(X){return W.createElement(u,oe({},h,{innerRef:function(P){r.getMenuListRef(P),X(P)},isLoading:C,maxHeight:D,focusedOption:m}),T)}))});return M||j==="fixed"?W.createElement(d,oe({},h,{appendTo:M,controlElement:this.controlRef,menuPlacement:A,menuPosition:j}),I):I}},{key:"renderFormField",value:function(){var r=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,u=i.name,d=i.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!a)return W.createElement(jm,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var p=f.map(function(m){return r.getOptionValue(m)}).join(s);return W.createElement("input",{name:u,type:"hidden",value:p})}else{var g=f.length>0?f.map(function(m,y){return W.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:r.getOptionValue(m)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,g)}else{var h=f[0]?this.getOptionValue(f[0]):"";return W.createElement("input",{name:u,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,u=i.isFocused,d=i.selectValue,f=this.getFocusableOptions();return W.createElement(Sm,oe({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:f}))}},{key:"render",value:function(){var r=this.getComponents(),i=r.Control,s=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,u=this.props,d=u.className,f=u.id,p=u.isDisabled,g=u.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return W.createElement(a,oe({},m,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:h}),this.renderLiveRegion(),W.createElement(i,oe({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:h,menuIsOpen:g}),W.createElement(l,oe({},m,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(s,oe({},m,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,d=i.isFocused,f=i.prevWasFocused,p=r.options,g=r.value,h=r.menuIsOpen,m=r.inputValue,y=r.isMulti,S=va(g),E={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||m!==s.inputValue)){var C=h?qm(r,S):[],w=a?Zm(i,S):null,b=Xm(i,C);E={selectValue:S,focusedOption:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var v=l!=null&&r!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},O=u,A=d&&f;return d&&!A&&(O={value:Mo(y,S,S[0]||null),options:S,action:"initial-input-focus"},A=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(O=null),q(q(q({},E),v),{},{prevProps:r,ariaSelection:O,prevWasFocused:A})}}]),n}(c.Component);el.defaultProps=Jm;var $m=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ev(t){var e=t.defaultInputValue,n=e===void 0?"":e,o=t.defaultMenuIsOpen,r=o===void 0?!1:o,i=t.defaultValue,s=i===void 0?null:i,a=t.inputValue,l=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,g=t.value,h=dt(t,$m),m=c.useState(a!==void 0?a:n),y=Te(m,2),S=y[0],E=y[1],C=c.useState(l!==void 0?l:r),w=Te(C,2),b=w[0],v=w[1],O=c.useState(g!==void 0?g:s),A=Te(O,2),j=A[0],M=A[1],H=c.useCallback(function(R,k){typeof u=="function"&&u(R,k),M(R)},[u]),V=c.useCallback(function(R,k){var x;typeof d=="function"&&(x=d(R,k)),E(x!==void 0?x:R)},[d]),Q=c.useCallback(function(){typeof p=="function"&&p(),v(!0)},[p]),U=c.useCallback(function(){typeof f=="function"&&f(),v(!1)},[f]),z=a!==void 0?a:S,K=l!==void 0?l:b,T=g!==void 0?g:j;return q(q({},h),{},{inputValue:z,menuIsOpen:K,onChange:H,onInputChange:V,onMenuClose:U,onMenuOpen:Q,value:T})}var tv=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function nv(t){var e=t.defaultOptions,n=e===void 0?!1:e,o=t.cacheOptions,r=o===void 0?!1:o,i=t.loadOptions;t.options;var s=t.isLoading,a=s===void 0?!1:s,l=t.onInputChange,u=t.filterOption,d=u===void 0?null:u,f=dt(t,tv),p=f.inputValue,g=c.useRef(void 0),h=c.useRef(!1),m=c.useState(Array.isArray(n)?n:void 0),y=Te(m,2),S=y[0],E=y[1],C=c.useState(typeof p<"u"?p:""),w=Te(C,2),b=w[0],v=w[1],O=c.useState(n===!0),A=Te(O,2),j=A[0],M=A[1],H=c.useState(void 0),V=Te(H,2),Q=V[0],U=V[1],z=c.useState([]),K=Te(z,2),T=K[0],R=K[1],k=c.useState(!1),x=Te(k,2),I=x[0],F=x[1],N=c.useState({}),Y=Te(N,2),$=Y[0],D=Y[1],X=c.useState(void 0),ie=Te(X,2),P=ie[0],G=ie[1],_=c.useState(void 0),ee=Te(_,2),re=ee[0],ce=ee[1];r!==re&&(D({}),ce(r)),n!==P&&(E(Array.isArray(n)?n:void 0),G(n)),c.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var ae=c.useCallback(function(ye,ge){if(!i)return ge();var ne=i(ye,ge);ne&&typeof ne.then=="function"&&ne.then(ge,function(){return ge()})},[i]);c.useEffect(function(){n===!0&&ae(b,function(ye){h.current&&(E(ye||[]),M(!!g.current))})},[]);var he=c.useCallback(function(ye,ge){var ne=Yh(ye,ge,l);if(!ne){g.current=void 0,v(""),U(""),R([]),M(!1),F(!1);return}if(r&&$[ne])v(ne),U(ne),R($[ne]),M(!1),F(!1);else{var fe=g.current={};v(ne),M(!0),F(!Q),ae(ne,function(Me){h&&fe===g.current&&(g.current=void 0,M(!1),U(ne),R(Me||[]),F(!1),D(Me?q(q({},$),{},Rt({},ne,Me)):$))})}},[r,ae,Q,$,l]),Oe=I?[]:b&&Q?T:S||[];return q(q({},f),{},{options:Oe,isLoading:j||a,onInputChange:he,filterOption:d})}var ov=c.forwardRef(function(t,e){var n=nv(t),o=ev(n);return W.createElement(el,oe({ref:e},o))}),rv=ov;const Io=t=>W.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("g",{clipPath:"url(#clip0_422_11470)"},W.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),W.createElement("defs",null,W.createElement("clipPath",{id:"clip0_422_11470"},W.createElement("rect",{width:20.0004,height:20,fill:"white"})))),iv=t=>W.createElement("svg",{width:20,height:20,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("path",{d:"M5.99997 9.42017C5.7849 9.42017 5.56987 9.33805 5.4059 9.17417L0.24617 4.01439C-0.0820565 3.68616 -0.0820565 3.154 0.24617 2.8259C0.574263 2.49781 1.10632 2.49781 1.43457 2.8259L5.99997 7.39156L10.5654 2.82606C10.8936 2.49797 11.4256 2.49797 11.7537 2.82606C12.0821 3.15416 12.0821 3.68632 11.7537 4.01454L6.59403 9.17433C6.42999 9.33824 6.21495 9.42017 5.99997 9.42017Z",fill:"currentcolor"})),Je={root:"_root_gqdeu_1",placeholder:"_placeholder_gqdeu_6",control:"_control_gqdeu_11",singleValue:"_singleValue_gqdeu_16",indicatorSeparator:"_indicatorSeparator_gqdeu_22",option:"_option_gqdeu_25",menu:"_menu_gqdeu_34",clearIndicator:"_clearIndicator_gqdeu_38",dropdownIndicator:"_dropdownIndicator_gqdeu_48",dropdownIndicatorFocused:"_dropdownIndicatorFocused_gqdeu_58",indicatorsContainer:"_indicatorsContainer_gqdeu_61",valueContainer:"_valueContainer_gqdeu_65",label:"_label_gqdeu_69"},sv=({label:t,className:e,customDropdownIcon:n,...o})=>{const{t:r}=We();return L.jsxs("label",{className:we(Je.root,e),children:[t&&L.jsx("span",{className:Je.label,children:t}),L.jsx(rv,{isClearable:!0,isSearchable:!0,...o,classNamePrefix:"react-select",loadingMessage:()=>r("loading_message"),noOptionsMessage:()=>r("no_options_message"),classNames:{menu:()=>Je.menu,option:()=>Je.option,control:()=>Je.control,singleValue:()=>Je.singleValue,placeholder:()=>Je.placeholder,valueContainer:()=>Je.valueContainer,indicatorSeparator:()=>Je.indicatorSeparator,indicatorsContainer:()=>Je.indicatorsContainer},components:{ClearIndicator:({innerProps:i,className:s})=>L.jsx("div",{...i,className:we(Je.clearIndicator,s),children:L.jsx(Io,{})}),DropdownIndicator:({isFocused:i,innerProps:s,className:a})=>L.jsx("div",{...s,className:we(Je.dropdownIndicator,a,{[Je.dropdownIndicatorFocused]:i}),children:n||L.jsx(iv,{})})}})]})},ko={option:"_option_1d020_1",address:"_address_1d020_8"},av=({className:t,value:e,onChange:n})=>{const{t:o}=We(),r=async s=>{const{data:a}=(await Ts({q:s}).next()).value;return a.data.results},i=s=>{n==null||n(s)};return L.jsx(sv,{cacheOptions:!0,defaultOptions:!0,value:e,className:t,loadOptions:r,customDropdownIcon:L.jsx(os,{}),getOptionValue:s=>s.uid,placeholder:o("location_selector.placeholder"),onChange:i,formatOptionLabel:(s,a)=>L.jsxs("div",{className:ko.option,children:[a.context==="menu"&&L.jsx(Sr,{})," ",L.jsxs("div",{className:ko.content,children:[L.jsx("div",{className:ko.name,children:s.name}),a.context==="menu"&&L.jsx("div",{className:ko.address,children:s.location.full_address})]}),a.context==="menu"&&L.jsx(rs,{})]})})};var tl={},Do={},nl={exports:{}},lv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uv=lv,cv=uv;function ol(){}function rl(){}rl.resetWarningCache=ol;var dv=function(){function t(o,r,i,s,a,l){if(l!==cv){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rl,resetWarningCache:ol};return n.PropTypes=n,n};nl.exports=dv();var fv=nl.exports,Bo={},Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.loadGoogleMapScript=Xt.isBrowser=void 0;var il=typeof window<"u"&&window.document;Xt.isBrowser=il;var pv=function(e,n){if(!il||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var o=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(o&&o.length)return new Promise(function(s){if(typeof google<"u")return s();o[0].addEventListener("load",function(){return s()})});var r=new URL(n);r.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=r.toString(),new Promise(function(s){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=s,document.body.appendChild(i)})};Xt.loadGoogleMapScript=pv;var To={};Object.defineProperty(To,"__esModule",{value:!0}),To.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var hv="https://maps.googleapis.com/maps/api/js";To.GOOGLE_MAP_SCRIPT_BASE_URL=hv;function No(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?No=function(n){return typeof n}:No=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},No(t)}Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=Cv;var Ge=mv(c),si=Xt,gv=To;function sl(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(sl=function(r){return r?n:e})(t)}function mv(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||No(t)!=="object"&&typeof t!="function")return{default:t};var n=sl(e);if(n&&n.has(t))return n.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=r?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function al(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?al(Object(n),!0).forEach(function(o){vv(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yv(t,e){if(t==null)return{};var n=bv(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function bv(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Cv(t){var e=t.ref,n=t.onPlaceSelected,o=t.apiKey,r=t.libraries,i=r===void 0?"places":r,s=t.inputAutocompleteValue,a=s===void 0?"new-password":s,l=t.options;l=l===void 0?{}:l;var u=l.types,d=u===void 0?["(cities)"]:u,f=l.componentRestrictions,p=l.fields,g=p===void 0?["address_components","geometry.location","place_id","formatted_address"]:p,h=l.bounds,m=yv(l,["types","componentRestrictions","fields","bounds"]),y=t.googleMapsScriptBaseUrl,S=y===void 0?gv.GOOGLE_MAP_SCRIPT_BASE_URL:y,E=t.language,C=(0,Ge.useRef)(null),w=(0,Ge.useRef)(null),b=(0,Ge.useRef)(null),v=(0,Ge.useRef)(null),O=E?"&language=".concat(E):"",A="".concat(S,"?libraries=").concat(i,"&key=").concat(o).concat(O),j=(0,Ge.useCallback)(function(){return(0,si.loadGoogleMapScript)(S,A)},[S,A]);return(0,Ge.useEffect)(function(){var M=ll(ll({},m),{},{fields:g,types:d,bounds:h});if(f&&(M.componentRestrictions=f),!(b.current||!C.current||!si.isBrowser)){e&&!e.current&&(e.current=C.current);var H=function(){var Q;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((Q=google.maps)!==null&&Q!==void 0&&Q.places))return console.error("Google maps places API must be loaded.");if(!C.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");b.current=new google.maps.places.Autocomplete(C.current,M),b.current&&(w.current=b.current.addListener("place_changed",function(){n&&b&&b.current&&n(b.current.getPlace(),C.current,b.current)}))};return o?j().then(function(){return H()}):H(),function(){return w.current?w.current.remove():void 0}}},[]),(0,Ge.useEffect)(function(){var M;!(Ge.default!==null&&Ge.default!==void 0&&(M=Ge.default.version)!==null&&M!==void 0&&M.startsWith("18"))&&si.isBrowser&&window.MutationObserver&&C.current&&C.current instanceof HTMLInputElement&&(v.current=new MutationObserver(function(){v.current.disconnect(),C.current&&(C.current.autocomplete=a)}),v.current.observe(C.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[a]),(0,Ge.useEffect)(function(){b.current&&b.current.setFields(g)},[g]),(0,Ge.useEffect)(function(){b.current&&b.current.setBounds(h)},[h]),(0,Ge.useEffect)(function(){b.current&&b.current.setComponentRestrictions(f)},[f]),(0,Ge.useEffect)(function(){b.current&&b.current.setOptions(m)},[m]),{ref:C,autocompleteRef:b}}function Fo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fo=function(n){return typeof n}:Fo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fo(t)}Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var ai=Sv(c),Pe=ul(fv),Ev=ul(Bo);function ul(t){return t&&t.__esModule?t:{default:t}}function cl(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(cl=function(r){return r?n:e})(t)}function Sv(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Fo(t)!=="object"&&typeof t!="function")return{default:t};var n=cl(e);if(n&&n.has(t))return n.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=r?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function jo(){return jo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},jo.apply(this,arguments)}function Lv(t,e){if(t==null)return{};var n=wv(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)o=i[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function wv(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function dl(t){var e=t.onPlaceSelected,n=t.apiKey,o=t.libraries,r=t.inputAutocompleteValue,i=t.options,s=t.googleMapsScriptBaseUrl,a=t.refProp,l=t.language,u=Lv(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),d=(0,Ev.default)({ref:a,googleMapsScriptBaseUrl:s,onPlaceSelected:e,apiKey:n,libraries:o,inputAutocompleteValue:r,options:i,language:l}),f=d.ref;return ai.default.createElement("input",jo({ref:f},u))}dl.propTypes={apiKey:Pe.default.string,libraries:Pe.default.arrayOf(Pe.default.string),ref:Pe.default.oneOfType([Pe.default.func,Pe.default.shape({current:Pe.default.any})]),googleMapsScriptBaseUrl:Pe.default.string,onPlaceSelected:Pe.default.func,inputAutocompleteValue:Pe.default.string,options:Pe.default.shape({componentRestrictions:Pe.default.object,bounds:Pe.default.object,location:Pe.default.object,offset:Pe.default.number,origin:Pe.default.object,radius:Pe.default.number,sessionToken:Pe.default.object,types:Pe.default.arrayOf(Pe.default.string)}),language:Pe.default.string};var Av=(0,ai.forwardRef)(function(t,e){return ai.default.createElement(dl,jo({},t,{refProp:e}))});Do.default=Av,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=o(Do),n=o(Bo);function o(r){return r&&r.__esModule?r:{default:r}}}(tl);var fl=tl;const pl=c.createContext(window.OMNIC_WIDGET_LOCATIONS_CONFIG),xt=()=>c.useContext(pl),hl=c.createContext({city:null,setCity(){throw new Error("setCity method not implemented")},aside:{open:!1,toggle(){throw new Error("toggle method not implemented")}}}),Mt=()=>c.useContext(hl),_t={root:"_root_1w54v_1",endAdornment:"_endAdornment_1w54v_6",input:"_input_1w54v_6",startAdornment:"_startAdornment_1w54v_9",label:"_label_1w54v_29",inputContainer:"_inputContainer_1w54v_35"},gl=c.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:o,...r},i)=>L.jsxs("label",{className:we(_t.root,e),children:[t&&L.jsx("span",{className:_t.label,children:t}),L.jsxs("div",{className:_t.inputContainer,children:[n&&L.jsx("div",{className:_t.startAdornment,children:n}),L.jsx("input",{ref:i,className:_t.input,...r}),o&&L.jsx("div",{className:_t.endAdornment,children:o})]})]})),Ov=({className:t})=>{const{t:e}=We(),{country:n}=xt(),{setCity:o}=Mt(),r=vt(u=>u.setZoom),i=[],s=n?{componentRestrictions:{country:n},types:i}:{types:i},a=u=>{r(zn),o(u)},{ref:l}=fl.usePlacesWidget({libraries:["places"],options:s,onPlaceSelected:a,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});return L.jsx(gl,{ref:l,className:t,endAdornment:L.jsx(os,{}),placeholder:e("location_selector.placeholder")})},xv=({value:t,onChange:e,className:n})=>vt(r=>r.mode)==="courier_delivery"?L.jsx(Ov,{className:n}):L.jsx(av,{className:n,value:t,onChange:e}),Mv=c.memo(xv),mn={root:"_root_dzm2h_1",nav:"_nav_dzm2h_18",navItem:"_navItem_dzm2h_31",locationSelector:"_locationSelector_dzm2h_40"},Pv=()=>{const t=et(r=>r.selectedPoint),e=et(r=>r.selectPointHook),n=et(r=>r.setSelectedPoint),o=r=>{n(r),e==null||e(r)};return L.jsx(Mv,{value:t,className:mn.locationSelector,onChange:o})},Iv=({className:t})=>{const{t:e}=We(),[n,o]=Gt(d=>[d.courierPoint,d.setCourierPoint]),[r,i]=vt(d=>[d.mode,d.setMode]);c.useEffect(()=>{i(n?"courier_delivery":"self_pickup")},[n,i]);const s=()=>{o(null),i("self_pickup")},a=()=>{o(null),i("courier_delivery")},l=r==="self_pickup",u=r==="courier_delivery";return L.jsxs("div",{className:we(mn.root,t),children:[L.jsxs("nav",{className:mn.nav,children:[L.jsx(Ze,{as:"link",className:mn.navItem,variant:l?"primary":"secondary",onClick:s,children:e("header.self_pickup")}),L.jsx(Ze,{as:"link",className:mn.navItem,variant:u?"primary":"secondary",onClick:a,children:e("header.courier_delivery")})]}),L.jsx(Pv,{})]})},Uo="@omnic/widget-locations",ml={query:"",type:bt.All,hours:["08:00","22:00"],send:{[at.Return]:!1,[at.Payment]:!1,[at.Shipping]:!1},receive:{[st.PayByCash]:!1,[st.CheckOrder]:!1,[st.DressingRoom]:!1}},vl=c.createContext({filter:ml,setFilter(){throw new Error("setFilter method not implemented")}}),yl=()=>c.useContext(vl),kv={root:"_root_e4qd2_1"},li=({className:t,...e})=>L.jsx("hr",{className:we(kv.root,t),...e}),bl={root:"_root_1geql_1",label:"_label_1geql_32"},Dv=({label:t,className:e,labelProps:n={},...o})=>{const{className:r,...i}=n;return L.jsxs("label",{className:we(bl.label,r),...i,children:[L.jsx("input",{type:"radio",className:we(bl.root,e),...o}),t]})},$t=t=>L.jsx(Dv,{...t,type:"checkbox"}),Bv={root:"_root_qi1eq_1"},Tv=({value:t,onChange:e,className:n})=>{const{t:o}=We(),r=i=>()=>e==null?void 0:e(i);return L.jsxs("div",{className:we(Bv.root,n),children:[L.jsx(Ze,{variant:t===bt.All?"primary":"secondary",onClick:r(bt.All),children:o("type_filter.all")}),L.jsx(Ze,{variant:t===bt.PostOffice?"primary":"secondary",onClick:r(bt.PostOffice),children:o("type_filter.post_office")}),L.jsx(Ze,{variant:t===bt.PickPoint?"primary":"secondary",onClick:r(bt.PickPoint),children:o("type_filter.pick_point")})]})},ui={root:"_root_1gffr_1",body:"_body_1gffr_7",legend:"_legend_1gffr_12"},Cl=({label:t,value:e,onChange:n,children:o,className:r,...i})=>L.jsxs("div",{className:we(ui.root,r),...i,children:[t&&L.jsx("span",{className:ui.legend,children:t}),L.jsx("div",{className:ui.body,children:c.Children.map(o,s=>c.isValidElement(s)?c.cloneElement(s,{checked:!!(e!=null&&e[s.props.value]),onChange:a=>n==null?void 0:n({...e,[a.target.value]:a.target.checked})}):null)})]}),Nv=t=>W.createElement("svg",{width:24,height:28,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},W.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z",fill:"#1760EE"})),ci={root:"_root_7i42e_1",text:"_text_7i42e_8"},Fv=({className:t})=>{var s;const{t:e}=We(),{city:n,aside:{toggle:o}}=Mt(),r=()=>{o(!0)},i=(s=n==null?void 0:n.address_components)==null?void 0:s.find(a=>a.types.includes("locality"));return L.jsxs("div",{className:we(ci.root,t),onClick:r,children:[L.jsx("div",{className:ci.icon,children:L.jsx(Nv,{})}),L.jsxs("span",{className:ci.text,children:[!n&&e("current_location.choose_from_map"),n&&`${(i==null?void 0:i.long_name)??n.formatted_address}`]})]})},vn={logo:"_logo_1w7vg_1",typeFilter:"_typeFilter_1w7vg_5",separator:"_separator_1w7vg_9",currentLocation:"_currentLocation_1w7vg_14"},jv=({className:t})=>{const{t:e}=We(),{filter:n,setFilter:o}=yl(),r=c.useCallback(a=>o({type:a}),[o]),i=c.useCallback(a=>o({receive:a}),[o]),s=c.useCallback(a=>o({send:a}),[o]);return L.jsxs("div",{className:we(vn.root,t),children:[L.jsx("div",{className:vn.logo,children:L.jsx(Fv,{className:vn.currentLocation})}),L.jsx(Tv,{value:n.type,className:vn.typeFilter,onChange:r}),L.jsx(li,{className:vn.separator}),L.jsxs(Cl,{value:n.receive,label:e("receive_filter.title"),onChange:i,children:[L.jsx($t,{name:"receive",value:st.DressingRoom,label:e("receive_filter.dressing_room")}),L.jsx($t,{name:"receive",value:st.CheckOrder,label:e("receive_filter.check_order")}),L.jsx($t,{name:"receive",value:st.PayByCash,label:e("receive_filter.pay_by_cash")})]}),L.jsx(li,{}),L.jsxs(Cl,{value:n.send,label:e("send_filter.title"),onChange:s,children:[L.jsx($t,{name:"send",value:at.Return,label:e("send_filter.return")}),L.jsx($t,{name:"send",value:at.Shipping,label:e("send_filter.shipping")}),L.jsx($t,{name:"send",value:at.Payment,label:e("send_filter.payment")})]}),L.jsx(li,{})]})},El=new WeakSet;let Ho=new AbortController;El.add(Ho);const Sl=(t,e,n)=>async o=>{for await(const r of Ts({filter:e,bounds:n},{loading:t,controller:Ho,onCancel:()=>{Ho=new AbortController,El.add(Ho)}}))o(r.data)},Uv={points:[],error:!1,loaded:!1,loading:!1,reloading:!1},Ct=Hn()((t,e)=>({...Uv,async loadNext(n,o){const r=e().reloading;t({error:!1,reloading:!0}),vt.getState().setBounds(n);let i=0;try{await Sl(r,o,n)(a=>{t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0})}t({reloading:!1})},async loadFirst(n){const o=e().loading,r=vt.getState().bounds;t({error:!1,loading:!0});let i=0;try{await Sl(o,n,r)(a=>{i>=1&&t({loading:!1,loaded:!0}),t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0,loading:!1})}}})),Pt={root:"_root_1g3i8_1",open:"_open_1g3i8_10",overlay:"_overlay_1g3i8_15",container:"_container_1g3i8_23",header:"_header_1g3i8_38",close:"_close_1g3i8_46",body:"_body_1g3i8_51"},Hv=({open:t,onClose:e,children:n,className:o})=>L.jsxs("div",{className:we(Pt.root,o,{[Pt.open]:t}),children:[L.jsx("div",{className:Pt.overlay,onClick:e}),L.jsxs("div",{className:Pt.container,children:[L.jsx("div",{className:Pt.header,children:L.jsx("div",{className:Pt.close,onClick:e,children:L.jsx(Io,{})})}),L.jsx("div",{className:Pt.body,children:n})]})]}),Vv={submit:"_submit_198t5_1",option:"_option_198t5_6",selector:"_selector_198t5_12"},zv=()=>{const{t}=We(),{country:e}=xt(),{setCity:n}=Mt(),o=vt(p=>p.setZoom),[r,i]=c.useState(null),s=e?{componentRestrictions:{country:e}}:void 0,{ref:a}=fl.usePlacesWidget({libraries:["places"],options:s,onPlaceSelected:i,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"}),{aside:{open:l,toggle:u}}=Mt(),d=()=>{u(!1),i(null)},f=()=>{d(),o(Jd),n(r)};return L.jsxs(Hv,{open:l,onClose:d,children:[L.jsx(gl,{ref:a,label:t("location_aside.choose_city"),placeholder:t("location_aside.placeholder")}),L.jsx(Ze,{variant:"primary",disabled:!r,className:Vv.submit,onClick:f,children:t("choose")})]})},Qv=()=>{const{filter:t}=yl(),e=Ct(n=>n.loadFirst);c.useEffect(()=>{e(t)},[t,e])},Gv=()=>{const[t,e]=c.useState(ml),n=c.useCallback(o=>e(r=>({...r,...o})),[]);return{filter:t,setFilter:n}},Yv=()=>{const[t,e]=c.useState(null);return{city:t,setCity:e}},Wv=()=>{const[t,e]=c.useState(!1),n=c.useCallback(o=>e(o??(r=>!r)),[]);return{open:t,toggle:n}},yn=".",di=Symbol("target"),Ll=Symbol("unsubscribe");function fi(t){return t instanceof Date||t instanceof Set||t instanceof Map||t instanceof WeakSet||t instanceof WeakMap||ArrayBuffer.isView(t)}function Rv(t){return(typeof t=="object"?t===null:typeof t!="function")||t instanceof RegExp}const pt=Array.isArray;function pi(t){return typeof t=="symbol"}const _e={after:(t,e)=>pt(t)?t.slice(e.length):e===""?t:t.slice(e.length+1),concat:(t,e)=>pt(t)?(t=[...t],e&&t.push(e),t):e&&e.toString!==void 0?(t!==""&&(t+=yn),pi(e)?t+e.toString():t+e):t,initial:t=>{if(pt(t))return t.slice(0,-1);if(t==="")return t;const e=t.lastIndexOf(yn);return e===-1?"":t.slice(0,e)},last:t=>{if(pt(t))return t[t.length-1]||"";if(t==="")return t;const e=t.lastIndexOf(yn);return e===-1?t:t.slice(e+1)},walk:(t,e)=>{if(pt(t))for(const n of t)e(n);else if(t!==""){let n=0,o=t.indexOf(yn);if(o===-1)e(t);else for(;n<t.length;)o===-1&&(o=t.length),e(t.slice(n,o)),n=o+1,o=t.indexOf(yn,n)}},get(t,e){return this.walk(e,n=>{t&&(t=t[n])}),t}};function Kv(t){return typeof t=="object"&&typeof t.next=="function"}function Jv(t,e,n,o,r){const i=t.next;if(e.name==="entries")t.next=function(){const s=i.call(this);return s.done===!1&&(s.value[0]=r(s.value[0],e,s.value[0],o),s.value[1]=r(s.value[1],e,s.value[0],o)),s};else if(e.name==="values"){const s=n[di].keys();t.next=function(){const a=i.call(this);return a.done===!1&&(a.value=r(a.value,e,s.next().value,o)),a}}else t.next=function(){const s=i.call(this);return s.done===!1&&(s.value=r(s.value,e,s.value,o)),s};return t}function wl(t,e,n){return t.isUnsubscribed||e.ignoreSymbols&&pi(n)||e.ignoreUnderscores&&n.charAt(0)==="_"||"ignoreKeys"in e&&e.ignoreKeys.includes(n)}class qv{constructor(e){this._equals=e,this._proxyCache=new WeakMap,this._pathCache=new WeakMap,this.isUnsubscribed=!1}_getDescriptorCache(){return this._descriptorCache===void 0&&(this._descriptorCache=new WeakMap),this._descriptorCache}_getProperties(e){const n=this._getDescriptorCache();let o=n.get(e);return o===void 0&&(o={},n.set(e,o)),o}_getOwnPropertyDescriptor(e,n){if(this.isUnsubscribed)return Reflect.getOwnPropertyDescriptor(e,n);const o=this._getProperties(e);let r=o[n];return r===void 0&&(r=Reflect.getOwnPropertyDescriptor(e,n),o[n]=r),r}getProxy(e,n,o,r){if(this.isUnsubscribed)return e;const i=e[r],s=i||e;this._pathCache.set(s,n);let a=this._proxyCache.get(s);return a===void 0&&(a=i===void 0?new Proxy(e,o):e,this._proxyCache.set(s,a)),a}getPath(e){return this.isUnsubscribed?void 0:this._pathCache.get(e)}isDetached(e,n){return!Object.is(e,_e.get(n,this.getPath(e)))}defineProperty(e,n,o){return Reflect.defineProperty(e,n,o)?(this.isUnsubscribed||(this._getProperties(e)[n]=o),!0):!1}setProperty(e,n,o,r,i){if(!this._equals(i,o)||!(n in e)){const s=this._getOwnPropertyDescriptor(e,n);return s!==void 0&&"set"in s?Reflect.set(e,n,o,r):Reflect.set(e,n,o)}return!0}deleteProperty(e,n,o){if(Reflect.deleteProperty(e,n)){if(!this.isUnsubscribed){const r=this._getDescriptorCache().get(e);r&&(delete r[n],this._pathCache.delete(o))}return!0}return!1}isSameDescriptor(e,n,o){const r=this._getOwnPropertyDescriptor(n,o);return e!==void 0&&r!==void 0&&Object.is(e.value,r.value)&&(e.writable||!1)===(r.writable||!1)&&(e.enumerable||!1)===(r.enumerable||!1)&&(e.configurable||!1)===(r.configurable||!1)&&e.get===r.get&&e.set===r.set}isGetInvariant(e,n){const o=this._getOwnPropertyDescriptor(e,n);return o!==void 0&&o.configurable!==!0&&o.writable!==!0}unsubscribe(){this._descriptorCache=null,this._pathCache=null,this._proxyCache=null,this.isUnsubscribed=!0}}function hi(t){return toString.call(t)==="[object Object]"}function Vo(){return!0}function en(t,e){return t.length!==e.length||t.some((n,o)=>e[o]!==n)}const Al=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Zv=new Set(["concat","includes","indexOf","join","keys","lastIndexOf"]),Ol={push:Vo,pop:Vo,shift:Vo,unshift:Vo,copyWithin:en,reverse:en,sort:en,splice:en,flat:en,fill:en},Xv=new Set([...Al,...Zv,...Object.keys(Ol)]);function zo(t,e){if(t.size!==e.size)return!0;for(const n of t)if(!e.has(n))return!0;return!1}const xl=["keys","values","entries"],Ml=new Set(["has","toString"]),Pl={add:zo,clear:zo,delete:zo,forEach:zo},_v=new Set([...Ml,...Object.keys(Pl),...xl]);function Qo(t,e){if(t.size!==e.size)return!0;let n;for(const[o,r]of t)if(n=e.get(o),n!==r||n===void 0&&!e.has(o))return!0;return!1}const $v=new Set([...Ml,"get"]),Il={set:Qo,clear:Qo,delete:Qo,forEach:Qo},ey=new Set([...$v,...Object.keys(Il),...xl]);class Et{constructor(e,n,o,r){this._path=n,this._isChanged=!1,this._clonedCache=new Set,this._hasOnValidate=r,this._changes=r?[]:null,this.clone=n===void 0?e:this._shallowClone(e)}static isHandledMethod(e){return Al.has(e)}_shallowClone(e){let n=e;if(hi(e))n={...e};else if(pt(e)||ArrayBuffer.isView(e))n=[...e];else if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set([...e].map(o=>this._shallowClone(o)));else if(e instanceof Map){n=new Map;for(const[o,r]of e.entries())n.set(o,this._shallowClone(r))}return this._clonedCache.add(n),n}preferredThisArg(e,n,o,r){return e?(pt(r)?this._onIsChanged=Ol[n]:r instanceof Set?this._onIsChanged=Pl[n]:r instanceof Map&&(this._onIsChanged=Il[n]),r):o}update(e,n,o){const r=_e.after(e,this._path);if(n!=="length"){let i=this.clone;_e.walk(r,s=>{i&&i[s]&&(this._clonedCache.has(i[s])||(i[s]=this._shallowClone(i[s])),i=i[s])}),this._hasOnValidate&&this._changes.push({path:r,property:n,previous:o}),i&&i[n]&&(i[n]=o)}this._isChanged=!0}undo(e){let n;for(let o=this._changes.length-1;o!==-1;o--)n=this._changes[o],_e.get(e,n.path)[n.property]=n.previous}isChanged(e){return this._onIsChanged===void 0?this._isChanged:this._onIsChanged(this.clone,e)}}class kl extends Et{static isHandledMethod(e){return Xv.has(e)}}class ty extends Et{undo(e){e.setTime(this.clone.getTime())}isChanged(e,n){return!n(this.clone.valueOf(),e.valueOf())}}class Dl extends Et{static isHandledMethod(e){return _v.has(e)}undo(e){for(const n of this.clone)e.add(n);for(const n of e)this.clone.has(n)||e.delete(n)}}class Bl extends Et{static isHandledMethod(e){return ey.has(e)}undo(e){for(const[n,o]of this.clone.entries())e.set(n,o);for(const n of e.keys())this.clone.has(n)||e.delete(n)}}class ny extends Et{constructor(e,n,o,r){super(void 0,n,o,r),this._arg1=o[0],this._weakValue=e.has(this._arg1)}isChanged(e){return this._weakValue!==e.has(this._arg1)}undo(e){this._weakValue&&!e.has(this._arg1)?e.add(this._arg1):e.delete(this._arg1)}}class oy extends Et{constructor(e,n,o,r){super(void 0,n,o,r),this._weakKey=o[0],this._weakHas=e.has(this._weakKey),this._weakValue=e.get(this._weakKey)}isChanged(e){return this._weakValue!==e.get(this._weakKey)}undo(e){const n=e.has(this._weakKey);this._weakHas&&!n?e.set(this._weakKey,this._weakValue):!this._weakHas&&n?e.delete(this._weakKey):this._weakValue!==e.get(this._weakKey)&&e.set(this._weakKey,this._weakValue)}}class It{constructor(e){this._stack=[],this._hasOnValidate=e}static isHandledType(e){return hi(e)||pt(e)||fi(e)}static isHandledMethod(e,n){return hi(e)?Et.isHandledMethod(n):pt(e)?kl.isHandledMethod(n):e instanceof Set?Dl.isHandledMethod(n):e instanceof Map?Bl.isHandledMethod(n):fi(e)}get isCloning(){return this._stack.length>0}start(e,n,o){let r=Et;pt(e)?r=kl:e instanceof Date?r=ty:e instanceof Set?r=Dl:e instanceof Map?r=Bl:e instanceof WeakSet?r=ny:e instanceof WeakMap&&(r=oy),this._stack.push(new r(e,n,o,this._hasOnValidate))}update(e,n,o){this._stack[this._stack.length-1].update(e,n,o)}preferredThisArg(e,n,o){const{name:r}=e,i=It.isHandledMethod(o,r);return this._stack[this._stack.length-1].preferredThisArg(i,r,n,o)}isChanged(e,n,o){return this._stack[this._stack.length-1].isChanged(e,n,o)}undo(e){this._previousClone!==void 0&&this._previousClone.undo(e)}stop(){return this._previousClone=this._stack.pop(),this._previousClone.clone}}const ry={equals:Object.is,isShallow:!1,pathAsArray:!1,ignoreSymbols:!1,ignoreUnderscores:!1,ignoreDetached:!1,details:!1},bn=(t,e,n={})=>{n={...ry,...n};const o=Symbol("ProxyTarget"),{equals:r,isShallow:i,ignoreDetached:s,details:a}=n,l=new qv(r),u=typeof n.onValidate=="function",d=new It(u),f=(E,C,w,b,v)=>!u||d.isCloning||n.onValidate(_e.concat(l.getPath(E),C),w,b,v)===!0,p=(E,C,w,b)=>{!wl(l,n,C)&&!(s&&l.isDetached(E,t))&&g(l.getPath(E),C,w,b)},g=(E,C,w,b,v)=>{d.isCloning?d.update(E,C,b):e(_e.concat(E,C),w,b,v)},h=E=>E&&(E[o]||E),m=(E,C,w,b)=>Rv(E)||w==="constructor"||i&&!It.isHandledMethod(C,w)||wl(l,n,w)||l.isGetInvariant(C,w)||s&&l.isDetached(C,t)?E:(b===void 0&&(b=l.getPath(C)),l.getProxy(E,_e.concat(b,w),y,o)),y={get(E,C,w){if(pi(C)){if(C===o||C===di)return E;if(C===Ll&&!l.isUnsubscribed&&l.getPath(E).length===0)return l.unsubscribe(),E}const b=fi(E)?Reflect.get(E,C):Reflect.get(E,C,w);return m(b,E,C)},set(E,C,w,b){w=h(w);const v=E[o]||E,O=v[C];if(r(O,w)&&C in E)return!0;const A=f(E,C,w,O);return A&&l.setProperty(v,C,w,b,O)?(p(E,C,E[C],O),!0):!A},defineProperty(E,C,w){if(!l.isSameDescriptor(w,E,C)){const b=E[C];f(E,C,w.value,b)&&l.defineProperty(E,C,w,b)&&p(E,C,w.value,b)}return!0},deleteProperty(E,C){if(!Reflect.has(E,C))return!0;const w=Reflect.get(E,C),b=f(E,C,void 0,w);return b&&l.deleteProperty(E,C,w)?(p(E,C,void 0,w),!0):!b},apply(E,C,w){const b=C[o]||C;if(l.isUnsubscribed)return Reflect.apply(E,b,w);if((a===!1||a!==!0&&!a.includes(E.name))&&It.isHandledType(b)){let v=_e.initial(l.getPath(E));const O=It.isHandledMethod(b,E.name);d.start(b,v,w);let A=Reflect.apply(E,d.preferredThisArg(E,C,b),O?w.map(H=>h(H)):w);const j=d.isChanged(b,r),M=d.stop();if(It.isHandledType(A)&&O&&(C instanceof Map&&E.name==="get"&&(v=_e.concat(v,w[0])),A=l.getProxy(A,v,y)),j){const H={name:E.name,args:w,result:A},V=d.isCloning?_e.initial(v):v,Q=d.isCloning?_e.last(v):"";f(_e.get(t,V),Q,b,M,H)?g(V,Q,b,M,H):d.undo(b)}return(C instanceof Map||C instanceof Set)&&Kv(A)?Jv(A,E,C,v,m):A}return Reflect.apply(E,C,w)}},S=l.getProxy(t,n.pathAsArray?[]:"",y);return e=e.bind(S),u&&(n.onValidate=n.onValidate.bind(S)),S};bn.target=t=>t&&t[di]||t,bn.unsubscribe=t=>t[Ll]||t;const iy=t=>{const[e,n]=c.useState(t??window.OMNIC_WIDGET_LOCATIONS_CONFIG??{});return c.useEffect(()=>{if(t&&!window.OMNIC_WIDGET_LOCATIONS_CONFIG){n(t);return}if(window.OMNIC_WIDGET_LOCATIONS_CONFIG&&!t)return window.OMNIC_WIDGET_LOCATIONS_CONFIG=bn(window.OMNIC_WIDGET_LOCATIONS_CONFIG,function(){const o=bn.target(this);o.palette&&(o.palette={...o.palette}),o.map&&(o.map={...o.map}),n({...o})}),()=>{bn.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG)};if(!window.OMNIC_WIDGET_LOCATIONS_CONFIG&&!t)throw new Error("No config provided")},[t]),e},sy=(t,e)=>{eo.defaults.headers.get.Authorization=`INN ${t.INN}`,e!=null&&e.baseURL&&(eo.defaults.baseURL=e.baseURL)};/*! *****************************************************************************
|
|
36
36
|
Copyright (c) Microsoft Corporation.
|
|
37
37
|
|
|
38
38
|
Permission to use, copy, modify, and/or distribute this software for any
|