@buildocsdev/sdk 1.1.9 → 1.1.11
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/{buildocslib.esm-7H4WK2QM.js → buildocslib.esm-JODKZOJJ.js} +1 -1
- package/dist/chunk-5VSWNFWW.js +1 -0
- package/dist/{chunk-XIHHDF46.js → chunk-6J4ZB66I.js} +2 -2
- package/dist/chunk-CG7LKANA.js +4 -0
- package/dist/{chunk-KMT3KKZP.js → chunk-NFMOGDFO.js} +1 -1
- package/dist/chunk-PJIIIIOF.js +2 -0
- package/dist/{chunk-XUX4HB5C.js → chunk-TDUACBBC.js} +2 -2
- package/dist/{chunk-UB4UI4WT.js → chunk-UWHLAM4N.js} +2 -2
- package/dist/chunk-WXHCA6KX.js +1 -0
- package/dist/{chunk-TO4AS5KE.js → chunk-WXP75R33.js} +2 -2
- package/dist/datatable-5JAXAX2R.js +1 -0
- package/dist/{fileviewer-N5Z4NUU6.js → fileviewer-QDSNQURW.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/formeditor-ROROK5YR.js +1 -0
- package/dist/formeditor.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{mdaviewer-K7TPDII4.js → mdaviewer-S4SMR2OB.js} +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/{nopreviewer-GNJFARBH.js → nopreviewer-4OXAG6SI.js} +1 -1
- package/dist/{pdfviewer-45IJHO46.js → pdfviewer-VGE6GWUV.js} +1 -1
- package/dist/tabulator-VERW3CET.js +1 -0
- package/package.json +3 -2
- package/dist/chunk-EXE2TZP4.js +0 -1
- package/dist/chunk-GLSA7ZBG.js +0 -1
- package/dist/chunk-GV3XJYIM.js +0 -2
- package/dist/chunk-I6J5W3GZ.js +0 -4
- package/dist/datatable-JUVSEKE5.js +0 -1
- package/dist/formeditor-35J7DUOH.js +0 -1
- package/dist/tabulator-SQ554EQC.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_,
|
|
1
|
+
import {_,F,Q as Q$1}from'./chunk-WXP75R33.js';import {b}from'./chunk-EK7ODJWE.js';import*as L from'react';import L__default,{memo,useState,createContext,forwardRef,useEffect,Component,useCallback,isValidElement,cloneElement,Children,useRef,useContext,useLayoutEffect,Fragment as Fragment$1,useMemo,useId}from'react';import {useDrag,useDrop}from'react-dnd';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {withTranslation}from'react-i18next';import {keyframes,jsx as jsx$1,css}from'@emotion/react';import Pt,{createPortal}from'react-dom';import'@emotion/cache';var K={cursor:"move",opacity:1},Lt=class r{static isObject(e){return e===Object(e)}static checkIsVisible(e){let n=e.getBoundingClientRect(),i=Math.max(document.documentElement.clientHeight,window.innerHeight);return !(n.bottom<0||n.top-i>=0)}static guid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=Math.random()*16|0;return (e==="x"?n:n&3|8).toString(16)})}static getClientHeight(){let e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0];return window.innerHeight||n.clientHeight||i.clientHeight}static getScrollHeight(){let e=document.body;return Math.max(e.scrollHeight,r.getClientHeight())}static getViewportData(){let e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return {width:e,height:n}}static isMobileDeviceScreen(){return r.getViewportData().width<780}static isFloatingState(){return (window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<990}static shallowEqual(e,n){let i=Object.keys(e),t=Object.keys(n);if(i.length!==t.length)return false;for(let o of i)if(e[o]!==n[o])return false;return true}};var S={CONTAINER:"formcontainer",ROW:"formrow",TAB:"formtab",TABLE:"formtable",TABLECELL:"formtablecell",TABBOXPANEL:"formtabpanel",ROWSEGMENT:"formrowsegment",WIDGET:"formwidget"},ai={CANCEL:"Cancel",CUSTOM:"Custom",NONE:"None",PRINT:"Print",SAVE:"Save"};var Zt={en:"USD","en-us":"USD","en-ca":"CAD","en-au":"AUD","en-nz":"NZD","en-gb":"GBP","en-ie":"EUR","en-za":"ZAR",de:"EUR","de-de":"EUR","de-at":"EUR","de-ch":"CHF",fr:"EUR","fr-fr":"EUR","fr-ch":"CHF","fr-ca":"CAD",es:"EUR","es-es":"EUR","es-mx":"MXN","es-ar":"ARS",it:"EUR","it-it":"EUR","it-ch":"CHF",nl:"EUR","nl-nl":"EUR","nl-be":"EUR",pt:"EUR","pt-pt":"EUR","pt-br":"BRL",pl:"PLN",cs:"CZK",sk:"EUR",hu:"HUF",et:"EUR","et-ee":"EUR",ro:"RON",bg:"BGN",hr:"EUR",sl:"EUR",lv:"EUR",lt:"EUR",ru:"RUB",uk:"UAH",tr:"TRY",ja:"JPY",zh:"CNY","zh-cn":"CNY","zh-tw":"TWD",ko:"KRW",ar:"SAR","ar-ae":"AED",he:"ILS",hi:"INR",sv:"SEK",no:"NOK",da:"DKK",fi:"EUR",nb:"NOK",nn:"NOK"},Yt=r=>{var n;let e=r.toLowerCase();return (n=Zt[e])!=null?n:Zt[e.substring(0,2)]},hc=()=>{let r={};for(let[e,n]of Object.entries(Zt))r[e]=`${e} (${n})`;return r};var hi=b(_());function Jt(r){return e=>!!e.type&&e.type.tabsRole===r}var ae=Jt("Tab"),ce=Jt("TabList"),de=Jt("TabPanel");function aa(r){return ae(r)||ce(r)||de(r)}function Ue(r,e){return Children.map(r,n=>n===null?null:aa(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"?cloneElement(n,Object.assign({},n.props,{children:Ue(n.props.children,e)})):n)}function ve(r,e){return Children.forEach(r,n=>{n!==null&&(ae(n)||de(n)?e(n):n.props&&n.props.children&&typeof n.props.children=="object"&&(ce(n)&&e(n),ve(n.props.children,e)));})}function Qe(r,e,n){let i,t=0,o=0,a=false,l=[],s=r[e];return ve(s,u=>{ce(u)&&(u.props&&u.props.children&&typeof u.props.children=="object"&&ve(u.props.children,c=>l.push(c)),a&&(i=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),a=true),ae(u)?((!a||l.indexOf(u)===-1)&&(i=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),t++):de(u)&&o++;}),!i&&t!==o&&(i=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${n}\`. Received ${t} 'Tab' and ${o} 'TabPanel'.`)),i}function li(r,e,n,i,t){let o=r[e],a=t||e,l=null;return o&&typeof o!="function"?l=new Error(`Invalid ${i} \`${a}\` of type \`${typeof o}\` supplied to \`${n}\`, expected \`function\`.`):r.selectedIndex!=null&&o==null&&(l=new Error(`The ${i} \`${a}\` is marked as required in \`${n}\`, but its value is \`undefined\` or \`null\`.
|
|
2
2
|
\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.
|
|
3
3
|
If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),l}function ui(r,e,n,i,t){let o=r[e],a=t||e,l=null;if(o!=null&&typeof o!="number")l=new Error(`Invalid ${i} \`${a}\` of type \`${typeof o}\` supplied to \`${n}\`, expected \`number\`.`);else if(r.defaultIndex!=null&&o!=null)return new Error(`The ${i} \`${a}\` cannot be used together with \`defaultIndex\` in \`${n}\`.
|
|
4
4
|
Either remove \`${a}\` to let \`${n}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return l}var fi=b(_());function ci(r){var e,n,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(e=0;e<t;e++)r[e]&&(n=ci(r[e]))&&(i&&(i+=" "),i+=n);}else for(n in r)r[n]&&(i&&(i+=" "),i+=n);return i}function sa(){for(var r,e,n=0,i="",t=arguments.length;n<t;n++)(r=arguments[n])&&(e=ci(r))&&(i&&(i+=" "),i+=e);return i}var le=sa;function $e(r){let e=0;return ve(r,n=>{ae(n)&&e++;}),e}var la=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function ua(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}function gi(r){return r&&"getAttribute"in r}function pi(r){return gi(r)&&r.getAttribute("data-rttab")}function pe(r){return gi(r)&&r.getAttribute("aria-disabled")==="true"}var Ke;function da(r){let e=r||(typeof window!="undefined"?window:void 0);try{Ke=!!(typeof e!="undefined"&&e.document&&e.document.activeElement);}catch(n){Ke=false;}}var pa={className:"react-tabs",focus:false},fa={children:Qe},ga=r=>{(0, fi.checkPropTypes)(fa,r,"prop","UncontrolledTabs");let e=useRef([]),n=useRef([]),i=useRef();function t(p,y){if(p<0||p>=u())return;let{onSelect:x,selectedIndex:v}=r;x(p,v,y);}function o(p){let y=u();for(let x=p+1;x<y;x++)if(!pe(c(x)))return x;for(let x=0;x<p;x++)if(!pe(c(x)))return x;return p}function a(p){let y=p;for(;y--;)if(!pe(c(y)))return y;for(y=u();y-- >p;)if(!pe(c(y)))return y;return p}function l(){let p=u();for(let y=0;y<p;y++)if(!pe(c(y)))return y;return null}function s(){let p=u();for(;p--;)if(!pe(c(p)))return p;return null}function u(){let{children:p}=r;return $e(p)}function c(p){return e.current[`tabs-${p}`]}function d(){let p=0,{children:y,disabledTabClassName:x,focus:v,forceRenderTabPanel:h,selectedIndex:A,selectedTabClassName:T,selectedTabPanelClassName:P,environment:D}=r;n.current=n.current||[];let X=n.current.length-u(),k=useId();for(;X++<0;)n.current.push(`${k}${n.current.length}`);return Ue(y,Y=>{let M=Y;if(ce(Y)){let w=0,W=false;Ke==null&&da(D);let N=D||(typeof window!="undefined"?window:void 0);Ke&&N&&(W=L__default.Children.toArray(Y.props.children).filter(ae).some((U,_)=>N.document.activeElement===c(_))),M=cloneElement(Y,{children:Ue(Y.props.children,U=>{let _=`tabs-${w}`,ee=A===w,Z={tabRef:B=>{e.current[_]=B;},id:n.current[w],selected:ee,focus:ee&&(v||W)};return T&&(Z.selectedClassName=T),x&&(Z.disabledClassName=x),w++,cloneElement(U,Z)})});}else if(de(Y)){let w={id:n.current[p],selected:A===p};h&&(w.forceRender=h),P&&(w.selectedClassName=P),p++,M=cloneElement(Y,w);}return M})}function g(p){let{direction:y,disableUpDownKeys:x,disableLeftRightKeys:v}=r;if(I(p.target)){let{selectedIndex:h}=r,A=false,T=false;(p.code==="Space"||p.keyCode===32||p.code==="Enter"||p.keyCode===13)&&(A=true,T=false,f(p)),!v&&(p.keyCode===37||p.code==="ArrowLeft")||!x&&(p.keyCode===38||p.code==="ArrowUp")?(y==="rtl"?h=o(h):h=a(h),A=true,T=true):!v&&(p.keyCode===39||p.code==="ArrowRight")||!x&&(p.keyCode===40||p.code==="ArrowDown")?(y==="rtl"?h=a(h):h=o(h),A=true,T=true):p.keyCode===35||p.code==="End"?(h=s(),A=true,T=true):(p.keyCode===36||p.code==="Home")&&(h=l(),A=true,T=true),A&&p.preventDefault(),T&&t(h,p);}}function f(p){let y=p.target;do if(I(y)){if(pe(y))return;let x=[].slice.call(y.parentNode.children).filter(pi).indexOf(y);t(x,p);return}while((y=y.parentNode)!=null)}function I(p){if(!pi(p))return false;let y=p.parentElement;do{if(y===i.current)return true;if(y.getAttribute("data-rttabs"))break;y=y.parentElement;}while(y);return false}let b=Object.assign({},pa,r),{className:m,domRef:C}=b,E=ua(b,la);return L__default.createElement("div",Object.assign({},E,{className:le(m),onClick:f,onKeyDown:g,ref:p=>{i.current=p,C&&C(p);},"data-rttabs":true}),d())},mi=ga;var ma=["children","defaultFocus","defaultIndex","focusTabOnClick","onSelect"];function ba(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var va=0,qe=1,Ia={children:Qe,onSelect:li,selectedIndex:ui},Ca={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false},ya=r=>r.selectedIndex===null?qe:va,vi=r=>{(0, hi.checkPropTypes)(Ia,r,"prop","Tabs");let e=Object.assign({},Ca,r),{children:n,defaultFocus:i,defaultIndex:t,focusTabOnClick:o,onSelect:a}=e,l=ba(e,ma),[s,u]=useState(i),[c]=useState(ya(l)),[d,g]=useState(c===qe?t||0:null);if(useEffect(()=>{u(false);},[]),c===qe){let b=$e(n);useEffect(()=>{if(d!=null){let m=Math.max(0,b-1);g(Math.min(d,m));}},[b]);}let f=(b,m,C)=>{typeof a=="function"&&a(b,m,C)===false||(o&&u(true),c===qe&&g(b));},I=Object.assign({},r,l);return I.focus=s,I.onSelect=f,d!=null&&(I.selectedIndex=d),delete I.defaultFocus,delete I.defaultIndex,delete I.focusTabOnClick,L__default.createElement(mi,I,n)};vi.tabsRole="Tabs";var _t=vi;var Aa=["children","className"];function Ea(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Ta={className:"react-tabs__tab-list"},Ii=r=>{let e=Object.assign({},Ta,r),{children:n,className:i}=e,t=Ea(e,Aa);return L__default.createElement("ul",Object.assign({},t,{className:le(i),role:"tablist"}),n)};Ii.tabsRole="TabList";var Ut=Ii;var Ga=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"];function Sa(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var Qt="react-tabs__tab",Va={className:Qt,disabledClassName:`${Qt}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${Qt}--selected`},Ci=r=>{let e=useRef(),n=Object.assign({},Va,r),{children:i,className:t,disabled:o,disabledClassName:a,focus:l,id:s,selected:u,selectedClassName:c,tabIndex:d,tabRef:g}=n,f=Sa(n,Ga);return useEffect(()=>{u&&l&&e.current.focus();},[u,l]),L__default.createElement("li",Object.assign({},f,{className:le(t,{[c]:u,[a]:o}),ref:I=>{e.current=I,g&&g(I);},role:"tab",id:`tab${s}`,"aria-selected":u?"true":"false","aria-disabled":o?"true":"false","aria-controls":`panel${s}`,tabIndex:d||(u?"0":null),"data-rttab":true}),i)};Ci.tabsRole="Tab";var $t=Ci;var Oa=["children","className","forceRender","id","selected","selectedClassName"];function Da(r,e){if(r==null)return {};var n={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(e.includes(i))continue;n[i]=r[i];}return n}var yi="react-tabs__tab-panel",Na={className:yi,forceRender:false,selectedClassName:`${yi}--selected`},xi=r=>{let e=Object.assign({},Na,r),{children:n,className:i,forceRender:t,id:o,selected:a,selectedClassName:l}=e,s=Da(e,Oa);return L__default.createElement("div",Object.assign({},s,{className:le(i,{[l]:a}),role:"tabpanel",id:`panel${o}`,"aria-labelledby":`tab${o}`}),t||a?n:null)};xi.tabsRole="TabPanel";var Kt=xi;function qt(r,{insertAt:e}={}){if(!r||typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r));}qt(`.react-tabs{-webkit-tap-highlight-color:transparent}.react-tabs__tab-list{border-bottom:1px solid #aaa;margin:0 0 10px;padding:0}.react-tabs__tab{display:inline-block;border:1px solid transparent;border-bottom:none;bottom:-1px;position:relative;list-style:none;padding:6px 12px;cursor:pointer}.react-tabs__tab--selected{background:#fff;border-color:#aaa;color:#000;border-radius:5px 5px 0 0}.react-tabs__tab--disabled{color:GrayText;cursor:default}.react-tabs__tab:focus{outline:none}.react-tabs__tab:focus:after{content:"";position:absolute;height:5px;left:-4px;right:-4px;bottom:-5px;background:#fff}.react-tabs__tab-panel{display:none}.react-tabs__tab-panel--selected{display:block}
|
|
@@ -7,5 +7,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7
7
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(r){return ir(r)||rr(r)||st(r)||or()}function ar(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var sr=Math.min,lr=Math.max,Pe=Math.round,Ve=Math.floor,Oe=r=>({x:r,y:r});function gn(r){let{x:e,y:n,width:i,height:t}=r;return {width:i,height:t,top:n,left:e,right:e+i,bottom:n+t,x:e,y:n}}function dt(){return typeof window!="undefined"}function mn(r){return cr(r)?(r.nodeName||"").toLowerCase():"#document"}function ie(r){var e;return (r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function bn(r){var e;return (e=(cr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function cr(r){return dt()?r instanceof Node||r instanceof ie(r).Node:false}function pt(r){return dt()?r instanceof Element||r instanceof ie(r).Element:false}function ft(r){return dt()?r instanceof HTMLElement||r instanceof ie(r).HTMLElement:false}function ur(r){return !dt()||typeof ShadowRoot=="undefined"?false:r instanceof ShadowRoot||r instanceof ie(r).ShadowRoot}var fs=new Set(["inline","contents"]);function hn(r){let{overflow:e,overflowX:n,overflowY:i,display:t}=gt(r);return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!fs.has(t)}var gs=new Set(["html","body","#document"]);function pr(r){return gs.has(mn(r))}function gt(r){return ie(r).getComputedStyle(r)}function fr(r){if(mn(r)==="html")return r;let e=r.assignedSlot||r.parentNode||ur(r)&&r.host||bn(r);return ur(e)?e.host:e}function gr(r){let e=fr(r);return pr(e)?r.ownerDocument?r.ownerDocument.body:r.body:ft(e)&&hn(e)?e:gr(e)}function De(r,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=true);let t=gr(r),o=t===((i=r.ownerDocument)==null?void 0:i.body),a=ie(t);if(o){let l=mt(a);return e.concat(a,a.visualViewport||[],hn(t)?t:[],l&&n?De(l):[])}return e.concat(t,De(t,[],n))}function mt(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function ms(r){let e=gt(r),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,t=ft(r),o=t?r.offsetWidth:n,a=t?r.offsetHeight:i,l=Pe(n)!==o||Pe(i)!==a;return l&&(n=o,i=a),{width:n,height:i,$:l}}function In(r){return pt(r)?r:r.contextElement}function vn(r){let e=In(r);if(!ft(e))return Oe(1);let n=e.getBoundingClientRect(),{width:i,height:t,$:o}=ms(e),a=(o?Pe(n.width):n.width)/i,l=(o?Pe(n.height):n.height)/t;return (!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}function mr(r,e,n,i){e===void 0&&(e=false);let t=r.getBoundingClientRect(),o=In(r),a=Oe(1);e&&(a=vn(r));let l=Oe(0),s=(t.left+l.x)/a.x,u=(t.top+l.y)/a.y,c=t.width/a.x,d=t.height/a.y;if(o){let g=ie(o),f=i,I=g,b=mt(I);for(;b&&i&&f!==I;){let m=vn(b),C=b.getBoundingClientRect(),E=gt(b),p=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*m.x,y=C.top+(b.clientTop+parseFloat(E.paddingTop))*m.y;s*=m.x,u*=m.y,c*=m.x,d*=m.y,s+=p,u+=y,I=ie(b),b=mt(I);}}return gn({width:c,height:d,x:s,y:u})}function br(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function Is(r,e){let n=null,i,t=bn(r);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null;}function a(l,s){l===void 0&&(l=false),s===void 0&&(s=1),o();let u=r.getBoundingClientRect(),{left:c,top:d,width:g,height:f}=u;if(l||e(),!g||!f)return;let I=Ve(d),b=Ve(t.clientWidth-(c+g)),m=Ve(t.clientHeight-(d+f)),C=Ve(c),p={rootMargin:-I+"px "+-b+"px "+-m+"px "+-C+"px",threshold:lr(0,sr(1,s))||1},y=true;function x(v){let h=v[0].intersectionRatio;if(h!==s){if(!y)return a();h?a(false,h):i=setTimeout(()=>{a(false,1e-7);},1e3);}h===1&&!br(u,r.getBoundingClientRect())&&a(),y=false;}try{n=new IntersectionObserver(x,{...p,root:t.ownerDocument});}catch(v){n=new IntersectionObserver(x,p);}n.observe(r);}return a(true),o}function hr(r,e,n,i){i===void 0&&(i={});let{ancestorScroll:t=true,ancestorResize:o=true,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=i,u=In(r),c=t||o?[...u?De(u):[],...De(e)]:[];c.forEach(C=>{t&&C.addEventListener("scroll",n,{passive:true}),o&&C.addEventListener("resize",n);});let d=u&&l?Is(u,n):null,g=-1,f=null;a&&(f=new ResizeObserver(C=>{let[E]=C;E&&E.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var p;(p=f)==null||p.observe(e);})),n();}),u&&!s&&f.observe(u),f.observe(e));let I,b=s?mr(r):null;s&&m();function m(){let C=mr(r);b&&!br(b,C)&&n(),b=C,I=requestAnimationFrame(m);}return n(),()=>{var C;c.forEach(E=>{t&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n);}),d==null||d(),(C=f)==null||C.disconnect(),f=null,s&&cancelAnimationFrame(I);}}var bt=useLayoutEffect;var Gs=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Fe=function(){};function Ss(r,e){return e?e[0]==="-"?r+e:r+"__"+e:r}function Ir(r,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),t=2;t<n;t++)i[t-2]=arguments[t];var o=[].concat(i);if(e&&r)for(var a in e)e.hasOwnProperty(a)&&e[a]&&o.push("".concat(Ss(r,a)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var An=function(e){return Ds(e)?e.filter(Boolean):oe(e)==="object"&&e!==null?[e]:[]},Cr=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=Q(e,Gs);return R({},n)},j=function(e,n,i){var t=e.cx,o=e.getStyles,a=e.getClassNames,l=e.className;return {css:o(n,e),className:t(i!=null?i:{},a(n,e),l)}};function Ne(r){return [document.documentElement,document.body,window].indexOf(r)>-1}function ws(r){return Ne(r)?window.innerHeight:r.clientHeight}function yr(r){return Ne(r)?window.pageYOffset:r.scrollTop}function Ct(r,e){if(Ne(r)){window.scrollTo(0,e);return}r.scrollTop=e;}function Bs(r){var e=getComputedStyle(r),n=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var t=r;t=t.parentElement;)if(e=getComputedStyle(t),!(n&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return t;return document.documentElement}function Ps(r,e,n,i){return n*((r=r/i-1)*r*r+1)+e}function ht(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Fe,t=yr(r),o=e-t,a=10,l=0;function s(){l+=a;var u=Ps(l,t,o,n);Ct(r,u),l<n?window.requestAnimationFrame(s):i(r);}s();}function En(r,e){var n=r.getBoundingClientRect(),i=e.getBoundingClientRect(),t=e.offsetHeight/3;i.bottom+t>n.bottom?Ct(r,Math.min(e.offsetTop+e.clientHeight-r.offsetHeight+t,r.scrollHeight)):i.top-t<n.top&&Ct(r,Math.max(e.offsetTop-t,0));}function Vs(r){var e=r.getBoundingClientRect();return {bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Rn(){try{return document.createEvent("TouchEvent"),!0}catch(r){return false}}function xr(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(r){return false}}var Ar=false,Os={get passive(){return Ar=true}},vt=typeof window!="undefined"?window:{};vt.addEventListener&&vt.removeEventListener&&(vt.addEventListener("p",Fe,Os),vt.removeEventListener("p",Fe,false));var Er=Ar;function Rr(r){return r!=null}function Ds(r){return Array.isArray(r)}function We(r,e,n){return r?e:n}var Tr=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),t=1;t<n;t++)i[t-1]=arguments[t];var o=Object.entries(e).filter(function(a){var l=te(a,1),s=l[0];return !i.includes(s)});return o.reduce(function(a,l){var s=te(l,2),u=s[0],c=s[1];return a[u]=c,a},{})},Fs=["children","innerProps"],Ns=["children","innerProps"];function Ws(r){var e=r.maxHeight,n=r.menuEl,i=r.minHeight,t=r.placement,o=r.shouldScroll,a=r.isFixedPosition,l=r.controlHeight,s=Bs(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,g=n.getBoundingClientRect(),f=g.bottom,I=g.height,b=g.top,m=n.offsetParent.getBoundingClientRect(),C=m.top,E=a?window.innerHeight:ws(s),p=yr(s),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),v=C-x,h=E-b,A=v+p,T=d-p-b,P=f-E+p+y,D=p+b-x,X=160;switch(t){case "auto":case "bottom":if(h>=I)return {placement:"bottom",maxHeight:e};if(T>=I&&!a)return o&&ht(s,P,X),{placement:"bottom",maxHeight:e};if(!a&&T>=i||a&&h>=i){o&&ht(s,P,X);var k=a?h-y:T-y;return {placement:"bottom",maxHeight:k}}if(t==="auto"||a){var Y=e,M=a?v:A;return M>=i&&(Y=Math.min(M-y-l,e)),{placement:"top",maxHeight:Y}}if(t==="bottom")return o&&Ct(s,P),{placement:"bottom",maxHeight:e};break;case "top":if(v>=I)return {placement:"top",maxHeight:e};if(A>=I&&!a)return o&&ht(s,D,X),{placement:"top",maxHeight:e};if(!a&&A>=i||a&&v>=i){var w=e;return (!a&&A>=i||a&&v>=i)&&(w=a?v-x:A-x),o&&ht(s,D,X),{placement:"top",maxHeight:w}}return {placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(t,'".'))}return u}function Xs(r){var e={bottom:"top",top:"bottom"};return r?e[r]:"bottom"}var Gr=function(e){return e==="auto"?"bottom":e},Sr=function(e,n){var i,t=e.placement,o=e.theme,a=o.borderRadius,l=o.spacing,s=o.colors;return R((i={label:"menu"},fe(i,Xs(t),"100%"),fe(i,"position","absolute"),fe(i,"width","100%"),fe(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},wr=createContext(null),Br=function(e){var n=e.children,i=e.minMenuHeight,t=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,u=useContext(wr)||{},c=u.setPortalPlacement,d=useRef(null),g=useState(t),f=te(g,2),I=f[0],b=f[1],m=useState(null),C=te(m,2),E=C[0],p=C[1],y=s.spacing.controlHeight;return bt(function(){var x=d.current;if(x){var v=a==="fixed",h=l&&!v,A=Ws({maxHeight:t,menuEl:x,minHeight:i,placement:o,shouldScroll:h,isFixedPosition:v,controlHeight:y});b(A.maxHeight),p(A.placement),c==null||c(A.placement);}},[t,o,a,l,i,c,y]),n({ref:d,placerProps:R(R({},e),{},{placement:E||Gr(o),maxHeight:I})})},Ms=function(e){var n=e.children,i=e.innerRef,t=e.innerProps;return jsx$1("div",G({},j(e,"menu",{menu:true}),{ref:i},t),n)},Hs=Ms,Pr=function(e,n){var i=e.maxHeight,t=e.theme.spacing.baseUnit;return R({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},Ls=function(e){var n=e.children,i=e.innerProps,t=e.innerRef,o=e.isMulti;return jsx$1("div",G({},j(e,"menuList",{"menu-list":true,"menu-list--is-multi":o}),{ref:t},i),n)},Vr=function(e,n){var i=e.theme,t=i.spacing.baseUnit,o=i.colors;return R({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(t*2,"px ").concat(t*3,"px")})},Or=Vr,Dr=Vr,Zs=function(e){var n=e.children,i=n===void 0?"No options":n,t=e.innerProps,o=Q(e,Fs);return jsx$1("div",G({},j(R(R({},o),{},{children:i,innerProps:t}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),t),i)},Ys=function(e){var n=e.children,i=n===void 0?"Loading...":n,t=e.innerProps,o=Q(e,Ns);return jsx$1("div",G({},j(R(R({},o),{},{children:i,innerProps:t}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),t),i)},Fr=function(e){var n=e.rect,i=e.offset,t=e.position;return {left:n.left,position:t,top:i,width:n.width,zIndex:1}},Js=function(e){var n=e.appendTo,i=e.children,t=e.controlElement,o=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=useRef(null),u=useRef(null),c=useState(Gr(a)),d=te(c,2),g=d[0],f=d[1],I=useMemo(function(){return {setPortalPlacement:f}},[]),b=useState(null),m=te(b,2),C=m[0],E=m[1],p=useCallback(function(){if(t){var h=Vs(t),A=l==="fixed"?0:window.pageYOffset,T=h[g]+A;(T!==(C==null?void 0:C.offset)||h.left!==(C==null?void 0:C.rect.left)||h.width!==(C==null?void 0:C.rect.width))&&E({offset:T,rect:h});}},[t,l,g,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);bt(function(){p();},[p]);var y=useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),t&&s.current&&(u.current=hr(t,s.current,p,{elementResize:"ResizeObserver"in window}));},[t,p]);bt(function(){y();},[y]);var x=useCallback(function(h){s.current=h,y();},[y]);if(!n&&l!=="fixed"||!C)return null;var v=jsx$1("div",G({ref:x},j(R(R({},e),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":true}),o),i);return jsx$1(wr.Provider,{value:I},n?createPortal(v,n):v)},Nr=function(e){var n=e.isDisabled,i=e.isRtl;return {label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ks=function(e){var n=e.children,i=e.innerProps,t=e.isDisabled,o=e.isRtl;return jsx$1("div",G({},j(e,"container",{"--is-disabled":t,"--is-rtl":o}),i),n)},Wr=function(e,n){var i=e.theme.spacing,t=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return R({alignItems:"center",display:t&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},zs=function(e){var n=e.children,i=e.innerProps,t=e.isMulti,o=e.hasValue;return jsx$1("div",G({},j(e,"valueContainer",{"value-container":true,"value-container--is-multi":t,"value-container--has-value":o}),i),n)},Xr=function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},js=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",G({},j(e,"indicatorsContainer",{indicators:true}),i),n)},vr,_s=["size"],Us=["innerProps","isRtl","size"];var Qs={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Mr=function(e){var n=e.size,i=Q(e,_s);return jsx$1("svg",G({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qs},i))},Tn=function(e){return jsx$1(Mr,G({size:20},e),jsx$1("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"}))},Hr=function(e){return jsx$1(Mr,G({size:20},e),jsx$1("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"}))},Lr=function(e,n){var i=e.isFocused,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return R({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?a.neutral60:a.neutral20,padding:o*2,":hover":{color:i?a.neutral80:a.neutral40}})},Zr=Lr,$s=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",G({},j(e,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),i),n||jsx$1(Hr,null))},Yr=Lr,Ks=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",G({},j(e,"clearIndicator",{indicator:true,"clear-indicator":true}),i),n||jsx$1(Tn,null))},Jr=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing.baseUnit,a=t.colors;return R({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},qs=function(e){var n=e.innerProps;return jsx$1("span",G({},n,j(e,"indicatorSeparator",{"indicator-separator":true})))},el=keyframes(vr||(vr=ar([`
|
|
8
8
|
0%, 80%, 100% { opacity: 0; }
|
|
9
9
|
40% { opacity: 1; }
|
|
10
|
-
`]))),kr=function(e,n){var i=e.isFocused,t=e.size,o=e.theme,a=o.colors,l=o.spacing.baseUnit;return R({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?a.neutral60:a.neutral20,padding:l*2})},yn=function(e){var n=e.delay,i=e.offset;return jsx$1("span",{css:css({animation:"".concat(el," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tl=function(e){var n=e.innerProps,i=e.isRtl,t=e.size,o=t===void 0?4:t,a=Q(e,Us);return jsx$1("div",G({},j(R(R({},a),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:true,"loading-indicator":true}),n),jsx$1(yn,{delay:0,offset:i}),jsx$1(yn,{delay:160,offset:true}),jsx$1(yn,{delay:320,offset:!i}))},zr=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.theme,a=o.colors,l=o.borderRadius,s=o.spacing;return R({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:t?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:t?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:t?a.primary:a.neutral30}})},nl=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return jsx$1("div",G({ref:o},j(e,"control",{control:true,"control--is-disabled":i,"control--is-focused":t,"control--menu-is-open":l}),a,{"aria-disabled":i||void 0}),n)},il=nl,rl=["data"],jr=function(e,n){var i=e.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ol=function(e){var n=e.children,i=e.cx,t=e.getStyles,o=e.getClassNames,a=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return jsx$1("div",G({},j(e,"group",{group:true}),s),jsx$1(a,G({},l,{selectProps:d,theme:c,getStyles:t,getClassNames:o,cx:i}),u),jsx$1("div",null,n))},_r=function(e,n){var i=e.theme,t=i.colors,o=i.spacing;return R({label:"group",cursor:"default",display:"block"},n?{}:{color:t.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},al=function(e){var n=Cr(e);n.data;var i=Q(n,rl);return jsx$1("div",G({},j(e,"groupHeading",{"group-heading":true}),i))},sl=ol,ll=["innerRef","isDisabled","isHidden","inputClassName"],Ur=function(e,n){var i=e.isDisabled,t=e.value,o=e.theme,a=o.spacing,l=o.colors;return R(R({visibility:i?"hidden":"visible",transform:t?"translateZ(0)":""},ul),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Qr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ul={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":R({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qr)},cl=function(e){return R({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Qr)},dl=function(e){var n=e.cx,i=e.value,t=Cr(e),o=t.innerRef,a=t.isDisabled,l=t.isHidden,s=t.inputClassName,u=Q(t,ll);return jsx$1("div",G({},j(e,"input",{"input-container":true}),{"data-value":i||""}),jsx$1("input",G({className:n({input:true},s),ref:o,style:cl(l),disabled:a},u)))},pl=dl,$r=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors;return R({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:t.baseUnit/2})},Kr=function(e,n){var i=e.theme,t=i.borderRadius,o=i.colors,a=e.cropWithEllipsis;return R({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},qr=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors,l=e.isFocused;return R({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:t.baseUnit,paddingRight:t.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},eo=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",i,n)},fl=eo,gl=eo;function ml(r){var e=r.children,n=r.innerProps;return jsx$1("div",G({role:"button"},n),e||jsx$1(Tn,{size:14}))}var bl=function(e){var n=e.children,i=e.components,t=e.data,o=e.innerProps,a=e.isDisabled,l=e.removeProps,s=e.selectProps,u=i.Container,c=i.Label,d=i.Remove;return jsx$1(u,{data:t,innerProps:R(R({},j(e,"multiValue",{"multi-value":true,"multi-value--is-disabled":a})),o),selectProps:s},jsx$1(c,{data:t,innerProps:R({},j(e,"multiValueLabel",{"multi-value__label":true})),selectProps:s},n),jsx$1(d,{data:t,innerProps:R(R({},j(e,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:s}))},hl=bl,to=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.theme,l=a.spacing,s=a.colors;return R({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:t?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},vl=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.innerRef,l=e.innerProps;return jsx$1("div",G({},j(e,"option",{option:true,"option--is-disabled":i,"option--is-focused":t,"option--is-selected":o}),{ref:a,"aria-disabled":i},l),n)},Il=vl,no=function(e,n){var i=e.theme,t=i.spacing,o=i.colors;return R({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:t.baseUnit/2,marginRight:t.baseUnit/2})},Cl=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",G({},j(e,"placeholder",{placeholder:true}),i),n)},yl=Cl,io=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing,a=t.colors;return R({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},xl=function(e){var n=e.children,i=e.isDisabled,t=e.innerProps;return jsx$1("div",G({},j(e,"singleValue",{"single-value":true,"single-value--is-disabled":i}),t),n)},Al=xl,yt={ClearIndicator:Ks,Control:il,DropdownIndicator:$s,DownChevron:Hr,CrossIcon:Tn,Group:sl,GroupHeading:al,IndicatorsContainer:js,IndicatorSeparator:qs,Input:pl,LoadingIndicator:tl,Menu:Hs,MenuList:Ls,MenuPortal:Js,LoadingMessage:Ys,NoOptionsMessage:Zs,MultiValue:hl,MultiValueContainer:fl,MultiValueLabel:gl,MultiValueRemove:ml,Option:Il,Placeholder:yl,SelectContainer:ks,SingleValue:Al,ValueContainer:zs},xt=function(e){return R(R({},yt),e.components)};var ro=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function El(r,e){return !!(r===e||ro(r)&&ro(e))}function Rl(r,e){if(r.length!==e.length)return false;for(var n=0;n<r.length;n++)if(!El(r[n],e[n]))return false;return true}function At(r,e){e===void 0&&(e=Rl);var n=null;function i(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(n&&n.lastThis===this&&e(t,n.lastArgs))return n.lastResult;var a=r.apply(this,t);return n={lastResult:a,lastArgs:t,lastThis:this},a}return i.clear=function(){n=null;},i}var Sl={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"},wl=function(e){return jsx$1("span",G({css:Sl},e))},oo=wl,Bl={guidance:function(e){var n=e.isSearchable,i=e.isMulti,t=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case "menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t?", press Tab to select the option and exit the menu":"",".");case "input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" 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,i=e.label,t=i===void 0?"":i,o=e.labels,a=e.isDisabled;switch(n){case "deselect-option":case "pop-value":case "remove-value":return "option ".concat(t,", deselected.");case "clear":return "All selected options have been cleared.";case "initial-input-focus":return "option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case "select-option":return a?"option ".concat(t," is disabled. Select another option."):"option ".concat(t,", selected.");default:return ""}},onFocus:function(e){var n=e.context,i=e.focused,t=e.options,o=e.label,a=o===void 0?"":o,l=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(b,m){return b&&b.length?"".concat(b.indexOf(m)+1," of ").concat(b.length):""};if(n==="value"&&l)return "value ".concat(a," focused, ").concat(d(l,i),".");if(n==="menu"&&c){var g=s?" disabled":"",f="".concat(u?" selected":"").concat(g);return "".concat(a).concat(f,", ").concat(d(t,i),".")}return ""},onFilter:function(e){var n=e.inputValue,i=e.resultsMessage;return "".concat(i).concat(n?" for search term "+n:"",".")}},Pl=function(e){var n=e.ariaSelection,i=e.focusedOption,t=e.focusedValue,o=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,g=s.getOptionLabel,f=s.inputValue,I=s.isMulti,b=s.isOptionDisabled,m=s.isSearchable,C=s.menuIsOpen,E=s.options,p=s.screenReaderStatus,y=s.tabSelectsValue,x=s.isLoading,v=s["aria-label"],h=s["aria-live"],A=useMemo(function(){return R(R({},Bl),d||{})},[d]),T=useMemo(function(){var M="";if(n&&A.onChange){var w=n.option,W=n.options,N=n.removedValue,U=n.removedValues,_=n.value,ee=function(re){return Array.isArray(re)?null:re},Z=N||w||ee(_),B=Z?g(Z):"",O=W||U||void 0,z=O?O.map(g):[],J=R({isDisabled:Z&&b(Z,l),label:B,labels:z},n);M=A.onChange(J);}return M},[n,A,b,l,g]),P=useMemo(function(){var M="",w=i||t,W=!!(i&&l&&l.includes(i));if(w&&A.onFocus){var N={focused:w,label:g(w),isDisabled:b(w,l),isSelected:W,options:o,context:w===i?"menu":"value",selectValue:l,isAppleDevice:c};M=A.onFocus(N);}return M},[i,t,g,b,A,o,l,c]),D=useMemo(function(){var M="";if(C&&E.length&&!x&&A.onFilter){var w=p({count:o.length});M=A.onFilter({inputValue:f,resultsMessage:w});}return M},[o,f,C,A,E,p,x]),X=(n==null?void 0:n.action)==="initial-input-focus",k=useMemo(function(){var M="";if(A.guidance){var w=t?"value":C?"menu":"input";M=A.guidance({"aria-label":v,context:w,isDisabled:i&&b(i,l),isMulti:I,isSearchable:m,tabSelectsValue:y,isInitialFocus:X});}return M},[v,i,t,I,b,m,C,A,l,y,X]),Y=jsx$1(Fragment$1,null,jsx$1("span",{id:"aria-selection"},T),jsx$1("span",{id:"aria-focused"},P),jsx$1("span",{id:"aria-results"},D),jsx$1("span",{id:"aria-guidance"},k));return jsx$1(Fragment$1,null,jsx$1(oo,{id:u},X&&Y),jsx$1(oo,{"aria-live":h,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!X&&Y))},Vl=Pl,Bn=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Ol=new RegExp("["+Bn.map(function(r){return r.letters}).join("")+"]","g"),Io={};for(Et=0;Et<Bn.length;Et++)for(Rt=Bn[Et],Tt=0;Tt<Rt.letters.length;Tt++)Io[Rt.letters[Tt]]=Rt.base;var Rt,Tt,Et,Co=function(e){return e.replace(Ol,function(n){return Io[n]})},Dl=At(Co),ao=function(e){return e.replace(/^\s+|\s+$/g,"")},Fl=function(e){return "".concat(e.label," ").concat(e.value)},Nl=function(e){return function(n,i){if(n.data.__isNew__)return true;var t=R({ignoreCase:true,ignoreAccents:true,stringify:Fl,trim:true,matchFrom:"any"},e),o=t.ignoreCase,a=t.ignoreAccents,l=t.stringify,s=t.trim,u=t.matchFrom,c=s?ao(i):i,d=s?ao(l(n)):l(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=Dl(c),d=Co(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Wl=["innerRef"];function Xl(r){var e=r.innerRef,n=Q(r,Wl),i=Tr(n,"onExited","in","enter","exit","appear");return jsx$1("input",G({ref:e},i,{css:css({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 Ml=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();};function Hl(r){var e=r.isEnabled,n=r.onBottomArrive,i=r.onBottomLeave,t=r.onTopArrive,o=r.onTopLeave,a=useRef(false),l=useRef(false),s=useRef(0),u=useRef(null),c=useCallback(function(m,C){if(u.current!==null){var E=u.current,p=E.scrollTop,y=E.scrollHeight,x=E.clientHeight,v=u.current,h=C>0,A=y-x-p,T=false;A>C&&a.current&&(i&&i(m),a.current=false),h&&l.current&&(o&&o(m),l.current=false),h&&C>A?(n&&!a.current&&n(m),v.scrollTop=y,T=true,a.current=true):!h&&-C>p&&(t&&!l.current&&t(m),v.scrollTop=0,T=true,l.current=true),T&&Ml(m);}},[n,i,t,o]),d=useCallback(function(m){c(m,m.deltaY);},[c]),g=useCallback(function(m){s.current=m.changedTouches[0].clientY;},[]),f=useCallback(function(m){var C=s.current-m.changedTouches[0].clientY;c(m,C);},[c]),I=useCallback(function(m){if(m){var C=Er?{passive:false}:false;m.addEventListener("wheel",d,C),m.addEventListener("touchstart",g,C),m.addEventListener("touchmove",f,C);}},[f,g,d]),b=useCallback(function(m){m&&(m.removeEventListener("wheel",d,false),m.removeEventListener("touchstart",g,false),m.removeEventListener("touchmove",f,false));},[f,g,d]);return useEffect(function(){if(e){var m=u.current;return I(m),function(){b(m);}}},[e,I,b]),function(m){u.current=m;}}var so=["boxSizing","height","overflow","paddingRight","position"],lo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function uo(r){r.cancelable&&r.preventDefault();}function co(r){r.stopPropagation();}function po(){var r=this.scrollTop,e=this.scrollHeight,n=r+this.offsetHeight;r===0?this.scrollTop=1:n===e&&(this.scrollTop=r-1);}function fo(){return "ontouchstart"in window||navigator.maxTouchPoints}var go=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Me=0,ye={capture:false,passive:false};function Ll(r){var e=r.isEnabled,n=r.accountForScrollbars,i=n===void 0?true:n,t=useRef({}),o=useRef(null),a=useCallback(function(s){if(go){var u=document.body,c=u&&u.style;if(i&&so.forEach(function(I){var b=c&&c[I];t.current[I]=b;}),i&&Me<1){var d=parseInt(t.current.paddingRight,10)||0,g=document.body?document.body.clientWidth:0,f=window.innerWidth-g+d||0;Object.keys(lo).forEach(function(I){var b=lo[I];c&&(c[I]=b);}),c&&(c.paddingRight="".concat(f,"px"));}u&&fo()&&(u.addEventListener("touchmove",uo,ye),s&&(s.addEventListener("touchstart",po,ye),s.addEventListener("touchmove",co,ye))),Me+=1;}},[i]),l=useCallback(function(s){if(go){var u=document.body,c=u&&u.style;Me=Math.max(Me-1,0),i&&Me<1&&so.forEach(function(d){var g=t.current[d];c&&(c[d]=g);}),u&&fo()&&(u.removeEventListener("touchmove",uo,ye),s&&(s.removeEventListener("touchstart",po,ye),s.removeEventListener("touchmove",co,ye)));}},[i]);return useEffect(function(){if(e){var s=o.current;return a(s),function(){l(s);}}},[e,a,l]),function(s){o.current=s;}}var Zl=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Yl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Jl(r){var e=r.children,n=r.lockEnabled,i=r.captureEnabled,t=i===void 0?true:i,o=r.onBottomArrive,a=r.onBottomLeave,l=r.onTopArrive,s=r.onTopLeave,u=Hl({isEnabled:t,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=Ll({isEnabled:n}),d=function(f){u(f),c(f);};return jsx$1(Fragment$1,null,n&&jsx$1("div",{onClick:Zl,css:Yl}),e(d))}var kl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},zl=function(e){var n=e.name,i=e.onFocus;return jsx$1("input",{required:true,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:kl,value:"",onChange:function(){}})},jl=zl;function Pn(r){var e;return typeof window!="undefined"&&window.navigator!=null?r.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):false}function _l(){return Pn(/^iPhone/i)}function yo(){return Pn(/^Mac/i)}function Ul(){return Pn(/^iPad/i)||yo()&&navigator.maxTouchPoints>1}function Ql(){return _l()||Ul()}function $l(){return yo()||Ql()}var Kl=function(e){return e.label},ql=function(e){return e.label},eu=function(e){return e.value},tu=function(e){return !!e.isDisabled},nu={clearIndicator:Yr,container:Nr,control:zr,dropdownIndicator:Zr,group:jr,groupHeading:_r,indicatorsContainer:Xr,indicatorSeparator:Jr,input:Ur,loadingIndicator:kr,loadingMessage:Dr,menu:Sr,menuList:Pr,menuPortal:Fr,multiValue:$r,multiValueLabel:Kr,multiValueRemove:qr,noOptionsMessage:Or,option:to,placeholder:no,singleValue:io,valueContainer:Wr};var iu={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%)"},ru=4,xo=4,ou=38,au=xo*2,su={baseUnit:xo,controlHeight:ou,menuGutter:au},Gn={borderRadius:ru,colors:iu,spacing:su},lu={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:Rn(),captureMenuScroll:!Rn(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:Nl(),formatGroupLabel:Kl,getOptionLabel:ql,getOptionValue:eu,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:tu,loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!xr(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:false,openMenuOnClick:true,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:true,unstyled:false};function mo(r,e,n,i){var t=Ro(r,e,n),o=To(r,e,n),a=Eo(r,e),l=St(r,e);return {type:"option",data:e,isDisabled:t,isSelected:o,label:a,value:l,index:i}}function Gt(r,e){return r.options.map(function(n,i){if("options"in n){var t=n.options.map(function(a,l){return mo(r,a,e,l)}).filter(function(a){return ho(r,a)});return t.length>0?{type:"group",data:n,options:t,index:i}:void 0}var o=mo(r,n,e,i);return ho(r,o)?o:void 0}).filter(Rr)}function Ao(r){return r.reduce(function(e,n){return n.type==="group"?e.push.apply(e,ct(n.options.map(function(i){return i.data}))):e.push(n.data),e},[])}function bo(r,e){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,ct(i.options.map(function(t){return {data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):n.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),n},[])}function uu(r,e){return Ao(Gt(r,e))}function ho(r,e){var n=r.inputValue,i=n===void 0?"":n,t=e.data,o=e.isSelected,a=e.label,l=e.value;return (!So(r)||!o)&&Go(r,{label:a,value:l,data:t},i)}function cu(r,e){var n=r.focusedValue,i=r.selectValue,t=i.indexOf(n);if(t>-1){var o=e.indexOf(n);if(o>-1)return n;if(t<e.length)return e[t]}return null}function du(r,e){var n=r.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var Sn=function(e,n){var i,t=(i=e.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return t||null},Eo=function(e,n){return e.getOptionLabel(n)},St=function(e,n){return e.getOptionValue(n)};function Ro(r,e,n){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(e,n):false}function To(r,e,n){if(n.indexOf(e)>-1)return true;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(e,n);var i=St(r,e);return n.some(function(t){return St(r,t)===i})}function Go(r,e,n){return r.filterOption?r.filterOption(e,n):true}var So=function(e){var n=e.hideSelectedOptions,i=e.isMulti;return n===void 0?i:n},pu=1,Vn=(function(r){er(n,r);var e=nr(n);function n(i){var t;if($i(this,n),t=e.call(this,i),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:false},t.blockOptionHover=false,t.isComposing=false,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=false,t.scrollToFocusedOptionOnUpdate=false,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(s){t.controlRef=s;},t.focusedOptionRef=null,t.getFocusedOptionRef=function(s){t.focusedOptionRef=s;},t.menuListRef=null,t.getMenuListRef=function(s){t.menuListRef=s;},t.inputRef=null,t.getInputRef=function(s){t.inputRef=s;},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(s,u){var c=t.props,d=c.onChange,g=c.name;u.name=g,t.ariaOnChange(s,u),d(s,u);},t.setValue=function(s,u,c){var d=t.props,g=d.closeMenuOnSelect,f=d.isMulti,I=d.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:I}),g&&(t.setState({inputIsHiddenAfterUpdate:!f}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:true}),t.onChange(s,{action:u,option:c});},t.selectOption=function(s){var u=t.props,c=u.blurInputOnSelect,d=u.isMulti,g=u.name,f=t.state.selectValue,I=d&&t.isOptionSelected(s,f),b=t.isOptionDisabled(s,f);if(I){var m=t.getOptionValue(s);t.setValue(f.filter(function(C){return t.getOptionValue(C)!==m}),"deselect-option",s);}else if(!b)d?t.setValue([].concat(ct(f),[s]),"select-option",s):t.setValue(s,"select-option");else {t.ariaOnChange(s,{action:"select-option",option:s,name:g});return}c&&t.blurInput();},t.removeValue=function(s){var u=t.props.isMulti,c=t.state.selectValue,d=t.getOptionValue(s),g=c.filter(function(I){return t.getOptionValue(I)!==d}),f=We(u,g,g[0]||null);t.onChange(f,{action:"remove-value",removedValue:s}),t.focusInput();},t.clearValue=function(){var s=t.state.selectValue;t.onChange(We(t.props.isMulti,[],null),{action:"clear",removedValues:s});},t.popValue=function(){var s=t.props.isMulti,u=t.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),g=We(s,d,d[0]||null);c&&t.onChange(g,{action:"pop-value",removedValue:c});},t.getFocusedOptionId=function(s){return Sn(t.state.focusableOptionsWithIds,s)},t.getFocusableOptionsWithIds=function(){return bo(Gt(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return Ir.apply(void 0,[t.props.classNamePrefix].concat(u))},t.getOptionLabel=function(s){return Eo(t.props,s)},t.getOptionValue=function(s){return St(t.props,s)},t.getStyles=function(s,u){var c=t.props.unstyled,d=nu[s](u,c);d.boxSizing="border-box";var g=t.props.styles[s];return g?g(d,u):d},t.getClassNames=function(s,u){var c,d;return (c=(d=t.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},t.getElementId=function(s){return "".concat(t.state.instancePrefix,"-").concat(s)},t.getComponents=function(){return xt(t.props)},t.buildCategorizedOptions=function(){return Gt(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ao(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(s,u){t.setState({ariaSelection:R({value:s},u)});},t.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),t.focusInput());},t.onMenuMouseMove=function(s){t.blockOptionHover=false;},t.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&t.onMenuClose():u&&t.openMenu("first"):(u&&(t.openAfterFocus=true),t.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault();}},t.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!t.props.isDisabled){var u=t.props,c=u.isMulti,d=u.menuIsOpen;t.focusInput(),d?(t.setState({inputIsHiddenAfterUpdate:!c}),t.onMenuClose()):t.openMenu("first"),s.preventDefault();}},t.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(t.clearValue(),s.preventDefault(),t.openAfterFocus=false,s.type==="touchend"?t.focusInput():setTimeout(function(){return t.focusInput()}));},t.onScroll=function(s){typeof t.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ne(s.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll=="function"&&t.props.closeMenuOnScroll(s)&&t.props.onMenuClose();},t.onCompositionStart=function(){t.isComposing=true;},t.onCompositionEnd=function(){t.isComposing=false;},t.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(t.initialTouchX=c.clientX,t.initialTouchY=c.clientY,t.userIsDragging=false);},t.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-t.initialTouchX),g=Math.abs(c.clientY-t.initialTouchY),f=5;t.userIsDragging=d>f||g>f;}},t.onTouchEnd=function(s){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(s.target)&&t.menuListRef&&!t.menuListRef.contains(s.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0);},t.onControlTouchEnd=function(s){t.userIsDragging||t.onControlMouseDown(s);},t.onClearIndicatorTouchEnd=function(s){t.userIsDragging||t.onClearIndicatorMouseDown(s);},t.onDropdownIndicatorTouchEnd=function(s){t.userIsDragging||t.onDropdownIndicatorMouseDown(s);},t.handleInputChange=function(s){var u=t.props.inputValue,c=s.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange(c,{action:"input-change",prevInputValue:u}),t.props.menuIsOpen||t.onMenuOpen();},t.onInputFocus=function(s){t.props.onFocus&&t.props.onFocus(s),t.setState({inputIsHiddenAfterUpdate:false,isFocused:true}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=false;},t.onInputBlur=function(s){var u=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(s),t.onInputChange("",{action:"input-blur",prevInputValue:u}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:false});},t.onOptionHover=function(s){if(!(t.blockOptionHover||t.state.focusedOption===s)){var u=t.getFocusableOptions(),c=u.indexOf(s);t.setState({focusedOption:s,focusedOptionId:c>-1?t.getFocusedOptionId(s):null});}},t.shouldHideSelectedOptions=function(){return So(t.props)},t.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),t.focus();},t.onKeyDown=function(s){var u=t.props,c=u.isMulti,d=u.backspaceRemovesValue,g=u.escapeClearsValue,f=u.inputValue,I=u.isClearable,b=u.isDisabled,m=u.menuIsOpen,C=u.onKeyDown,E=u.tabSelectsValue,p=u.openMenuOnFocus,y=t.state,x=y.focusedOption,v=y.focusedValue,h=y.selectValue;if(!b&&!(typeof C=="function"&&(C(s),s.defaultPrevented))){switch(t.blockOptionHover=true,s.key){case "ArrowLeft":if(!c||f)return;t.focusValue("previous");break;case "ArrowRight":if(!c||f)return;t.focusValue("next");break;case "Delete":case "Backspace":if(f)return;if(v)t.removeValue(v);else {if(!d)return;c?t.popValue():I&&t.clearValue();}break;case "Tab":if(t.isComposing||s.shiftKey||!m||!E||!x||p&&t.isOptionSelected(x,h))return;t.selectOption(x);break;case "Enter":if(s.keyCode===229)break;if(m){if(!x||t.isComposing)return;t.selectOption(x);break}return;case "Escape":m?(t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange("",{action:"menu-close",prevInputValue:f}),t.onMenuClose()):I&&g&&t.clearValue();break;case " ":if(f)return;if(!m){t.openMenu("first");break}if(!x)return;t.selectOption(x);break;case "ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case "ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case "PageUp":if(!m)return;t.focusOption("pageup");break;case "PageDown":if(!m)return;t.focusOption("pagedown");break;case "Home":if(!m)return;t.focusOption("first");break;case "End":if(!m)return;t.focusOption("last");break;default:return}s.preventDefault();}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++pu),t.state.selectValue=An(i.value),i.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),l=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=a[l],t.state.focusedOptionId=Sn(o,a[l]);}return t}return qi(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,true),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&En(this.menuListRef,this.focusedOptionRef),$l()&&this.setState({isAppleDevice:true});}},{key:"componentDidUpdate",value:function(t){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&t.isDisabled||s&&l&&!t.menuIsOpen)&&this.focusInput(),s&&a&&!t.isDisabled?this.setState({isFocused:false},this.onMenuClose):!s&&!a&&t.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:true}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(En(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=false);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,true);}},{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(t,o){this.props.onInputChange(t,o);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(t){var o=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=t==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d);}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()});}},{key:"focusValue",value:function(t){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(a.length){switch(t){case "previous":s===0?c=0:s===-1?c=u:c=s-1;break;case "next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]});}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(a);a||(u=-1),t==="up"?s=u>0?u-1:l.length-1:t==="down"?s=(u+1)%l.length:t==="pageup"?(s=u-o,s<0&&(s=0)):t==="pagedown"?(s=u+o,s>l.length-1&&(s=l.length-1)):t==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=true,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])});}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Gn):R(R({},Gn),this.props.theme):Gn}},{key:"getCommonProps",value:function(){var t=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,g=d.isMulti,f=d.isRtl,I=d.options,b=this.hasValue();return {clearValue:t,cx:o,getStyles:a,getClassNames:l,getValue:s,hasValue:b,isMulti:g,isRtl:f,options:I,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var t=this.state.selectValue;return t.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,o=t.isClearable,a=t.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(t,o){return Ro(this.props,t,o)}},{key:"isOptionSelected",value:function(t,o){return To(this.props,t,o)}},{key:"filterOption",value:function(t,o){return Go(this.props,t,o)}},{key:"formatOptionLabel",value:function(t,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(t,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,false),document.addEventListener("compositionend",this.onCompositionEnd,false));}},{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,false),document.addEventListener("touchmove",this.onTouchMove,false),document.addEventListener("touchend",this.onTouchEnd,false));}},{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 t=this.props,o=t.isDisabled,a=t.isSearchable,l=t.inputId,s=t.inputValue,u=t.tabIndex,c=t.form,d=t.menuIsOpen,g=t.required,f=this.getComponents(),I=f.Input,b=this.state,m=b.inputIsHidden,C=b.ariaSelection,E=this.commonProps,p=l||this.getElementId("input"),y=R(R(R({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":true,"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":g,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":true}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?L.createElement(I,G({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},y)):L.createElement(Xl,G({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Fe,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,g=this.commonProps,f=this.props,I=f.controlShouldRenderValue,b=f.isDisabled,m=f.isMulti,C=f.inputValue,E=f.placeholder,p=this.state,y=p.selectValue,x=p.focusedValue,v=p.isFocused;if(!this.hasValue()||!I)return C?null:L.createElement(d,G({},g,{key:"placeholder",isDisabled:b,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(m)return y.map(function(A,T){var P=A===x,D="".concat(t.getOptionLabel(A),"-").concat(t.getOptionValue(A));return L.createElement(a,G({},g,{components:{Container:l,Label:s,Remove:u},isFocused:P,isDisabled:b,key:D,index:T,removeProps:{onClick:function(){return t.removeValue(A)},onTouchEnd:function(){return t.removeValue(A)},onMouseDown:function(k){k.preventDefault();}},data:A}),t.formatOptionLabel(A,"value"))});if(C)return null;var h=y[0];return L.createElement(c,G({},g,{data:h,isDisabled:b}),this.formatOptionLabel(h,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents(),o=t.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents(),o=t.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator,a=t.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return L.createElement(a,G({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var t=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,g=o.NoOptionsMessage,f=o.Option,I=this.commonProps,b=this.state.focusedOption,m=this.props,C=m.captureMenuScroll,E=m.inputValue,p=m.isLoading,y=m.loadingMessage,x=m.minMenuHeight,v=m.maxMenuHeight,h=m.menuIsOpen,A=m.menuPlacement,T=m.menuPosition,P=m.menuPortalTarget,D=m.menuShouldBlockScroll,X=m.menuShouldScrollIntoView,k=m.noOptionsMessage,Y=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!h)return null;var w=function(B,O){var z=B.type,J=B.data,q=B.isDisabled,re=B.isSelected,he=B.label,ke=B.value,ze=b===J,je=q?void 0:function(){return t.onOptionHover(J)},Mt=q?void 0:function(){return t.selectOption(J)},_e="".concat(t.getElementId("option"),"-").concat(O),Ht={id:_e,onClick:Mt,onMouseMove:je,onMouseOver:je,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:re};return L.createElement(f,G({},I,{innerProps:Ht,data:J,isDisabled:q,isSelected:re,key:_e,label:he,type:z,value:ke,isFocused:ze,innerRef:ze?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(B.data,"menu"))},W;if(this.hasOptions())W=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var B=Z.data,O=Z.options,z=Z.index,J="".concat(t.getElementId("group"),"-").concat(z),q="".concat(J,"-heading");return L.createElement(a,G({},I,{key:J,data:B,options:O,Heading:l,headingProps:{id:q,data:Z.data},label:t.formatGroupLabel(Z.data)}),Z.options.map(function(re){return w(re,"".concat(z,"-").concat(re.index))}))}else if(Z.type==="option")return w(Z,"".concat(Z.index))});else if(p){var N=y({inputValue:E});if(N===null)return null;W=L.createElement(d,I,N);}else {var U=k({inputValue:E});if(U===null)return null;W=L.createElement(g,I,U);}var _={minMenuHeight:x,maxMenuHeight:v,menuPlacement:A,menuPosition:T,menuShouldScrollIntoView:X},ee=L.createElement(Br,G({},I,_),function(Z){var B=Z.ref,O=Z.placerProps,z=O.placement,J=O.maxHeight;return L.createElement(s,G({},I,_,{innerRef:B,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:p,placement:z}),L.createElement(Jl,{captureEnabled:C,onTopArrive:Y,onBottomArrive:M,lockEnabled:D},function(q){return L.createElement(u,G({},I,{innerRef:function(he){t.getMenuListRef(he),q(he);},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:t.getElementId("listbox")},isLoading:p,maxHeight:J,focusedOption:b}),W)}))});return P||T==="fixed"?L.createElement(c,G({},I,{appendTo:P,controlElement:this.controlRef,menuPlacement:A,menuPosition:T}),ee):ee}},{key:"renderFormField",value:function(){var t=this,o=this.props,a=o.delimiter,l=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return L.createElement(jl,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(a){var g=d.map(function(b){return t.getOptionValue(b)}).join(a);return L.createElement("input",{name:u,type:"hidden",value:g})}else {var f=d.length>0?d.map(function(b,m){return L.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:t.getOptionValue(b)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,f)}else {var I=d[0]?this.getOptionValue(d[0]):"";return L.createElement("input",{name:u,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return L.createElement(Vl,G({},t,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),o=t.Control,a=t.IndicatorsContainer,l=t.SelectContainer,s=t.ValueContainer,u=this.props,c=u.className,d=u.id,g=u.isDisabled,f=u.menuIsOpen,I=this.state.isFocused,b=this.commonProps=this.getCommonProps();return L.createElement(l,G({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:I}),this.renderLiveRegion(),L.createElement(o,G({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:I,menuIsOpen:f}),L.createElement(s,G({},b,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(a,G({},b,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,g=o.instancePrefix,f=t.options,I=t.value,b=t.menuIsOpen,m=t.inputValue,C=t.isMulti,E=An(I),p={};if(a&&(I!==a.value||f!==a.options||b!==a.menuIsOpen||m!==a.inputValue)){var y=b?uu(t,E):[],x=b?bo(Gt(t,E),"".concat(g,"-option")):[],v=l?cu(o,E):null,h=du(o,y),A=Sn(x,h);p={selectValue:E,focusedOption:h,focusedOptionId:A,focusableOptionsWithIds:x,focusedValue:v,clearFocusValueOnUpdate:false};}var T=s!=null&&t!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},P=u,D=c&&d;return c&&!D&&(P={value:We(C,E,E[0]||null),options:E,action:"initial-input-focus"},D=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(P=null),R(R(R({},p),T),{},{prevProps:t,ariaSelection:P,prevWasFocused:D})}}]),n})(Component);Vn.defaultProps=lu;var gu=forwardRef(function(r,e){var n=Qi(r);return L.createElement(Vn,G({ref:e},n))}),Bo=gu;function wt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Ce(r,e);}var On={disabled:false};var Ae=L__default.createContext(null);var Po=function(e){return e.scrollTop};var He="unmounted",ge="exited",me="entering",Re="entered",Dn="exiting",se=(function(r){wt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=t,l=a&&!a.isMounting?i.enter:i.appear,s;return o.appearStatus=null,i.in?l?(s=ge,o.appearStatus=me):s=Re:i.unmountOnExit||i.mountOnEnter?s=He:s=ge,o.state={status:s},o.nextCallback=null,o}e.getDerivedStateFromProps=function(t,o){var a=t.in;return a&&o.status===He?{status:ge}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(true,this.appearStatus);},n.componentDidUpdate=function(t){var o=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==Re&&(o=me):(a===me||a===Re)&&(o=Dn);}this.updateStatus(false,o);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var t=this.props.timeout,o,a,l;return o=a=l=t,t!=null&&typeof t!="number"&&(o=t.exit,a=t.enter,l=t.appear!==void 0?t.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(t,o){if(t===void 0&&(t=false),o!==null)if(this.cancelNextCallback(),o===me){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this);a&&Po(a);}this.performEnter(t);}else this.performExit();else this.props.unmountOnExit&&this.state.status===ge&&this.setState({status:He});},n.performEnter=function(t){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:t,s=this.props.nodeRef?[l]:[Pt.findDOMNode(this),l],u=s[0],c=s[1],d=this.getTimeouts(),g=l?d.appear:d.enter;if(!t&&!a||On.disabled){this.safeSetState({status:Re},function(){o.props.onEntered(u);});return}this.props.onEnter(u,c),this.safeSetState({status:me},function(){o.props.onEntering(u,c),o.onTransitionEnd(g,function(){o.safeSetState({status:Re},function(){o.props.onEntered(u,c);});});});},n.performExit=function(){var t=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Pt.findDOMNode(this);if(!o||On.disabled){this.safeSetState({status:ge},function(){t.props.onExited(l);});return}this.props.onExit(l),this.safeSetState({status:Dn},function(){t.props.onExiting(l),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:ge},function(){t.props.onExited(l);});});});},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(t,o){o=this.setNextCallback(o),this.setState(t,o);},n.setNextCallback=function(t){var o=this,a=true;return this.nextCallback=function(l){a&&(a=false,o.nextCallback=null,t(l));},this.nextCallback.cancel=function(){a=false;},this.nextCallback},n.onTransitionEnd=function(t,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this),l=t==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c);}t!=null&&setTimeout(this.nextCallback,t);},n.render=function(){var t=this.state.status;if(t===He)return null;var o=this.props,a=o.children;o.in;o.mountOnEnter;o.unmountOnExit;o.appear;o.enter;o.exit;o.timeout;o.addEndListener;o.onEnter;o.onEntering;o.onEntered;o.onExit;o.onExiting;o.onExited;o.nodeRef;var v=Ie(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L__default.createElement(Ae.Provider,{value:null},typeof a=="function"?a(t,v):L__default.cloneElement(L__default.Children.only(a),v))},e})(L__default.Component);se.contextType=Ae;se.propTypes={};function Ee(){}se.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};se.UNMOUNTED=He;se.EXITED=ge;se.ENTERING=me;se.ENTERED=Re;se.EXITING=Dn;var Vt=se;function Ft(r,e){var n=function(o){return e&&isValidElement(o)?e(o):o},i=Object.create(null);return r&&Children.map(r,function(t){return t}).forEach(function(t){i[t.key]=n(t);}),i}function hu(r,e){r=r||{},e=e||{};function n(c){return c in e?e[c]:r[c]}var i=Object.create(null),t=[];for(var o in r)o in e?t.length&&(i[o]=t,t=[]):t.push(o);var a,l={};for(var s in e){if(i[s])for(a=0;a<i[s].length;a++){var u=i[s][a];l[i[s][a]]=n(u);}l[s]=n(s);}for(a=0;a<t.length;a++)l[t[a]]=n(t[a]);return l}function be(r,e,n){return n[e]!=null?n[e]:r.props[e]}function Vo(r,e){return Ft(r.children,function(n){return cloneElement(n,{onExited:e.bind(null,n),in:true,appear:be(n,"appear",r),enter:be(n,"enter",r),exit:be(n,"exit",r)})})}function Oo(r,e,n){var i=Ft(r.children),t=hu(e,i);return Object.keys(t).forEach(function(o){var a=t[o];if(isValidElement(a)){var l=o in e,s=o in i,u=e[o],c=isValidElement(u)&&!u.props.in;s&&(!l||c)?t[o]=cloneElement(a,{onExited:n.bind(null,a),in:true,exit:be(a,"exit",r),enter:be(a,"enter",r)}):!s&&l&&!c?t[o]=cloneElement(a,{in:false}):s&&l&&isValidElement(u)&&(t[o]=cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:be(a,"exit",r),enter:be(a,"enter",r)}));}}),t}var vu=Object.values||function(r){return Object.keys(r).map(function(e){return r[e]})},Iu={component:"div",childFactory:function(e){return e}},Fn=(function(r){wt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=o.handleExited.bind(ut(o));return o.state={contextValue:{isMounting:true},handleExited:a,firstRender:true},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=true,this.setState({contextValue:{isMounting:false}});},n.componentWillUnmount=function(){this.mounted=false;},e.getDerivedStateFromProps=function(t,o){var a=o.children,l=o.handleExited,s=o.firstRender;return {children:s?Vo(t,l):Oo(t,a,l),firstRender:false}},n.handleExited=function(t,o){var a=Ft(this.props.children);t.key in a||(t.props.onExited&&t.props.onExited(o),this.mounted&&this.setState(function(l){var s=G({},l.children);return delete s[t.key],{children:s}}));},n.render=function(){var t=this.props,o=t.component,a=t.childFactory,l=Ie(t,["component","childFactory"]),s=this.state.contextValue,u=vu(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,o===null?L__default.createElement(Ae.Provider,{value:s},u):L__default.createElement(Ae.Provider,{value:s},L__default.createElement(o,l,u))},e})(L__default.Component);Fn.propTypes={};Fn.defaultProps=Iu;var Wt=Fn;var Cu=["in","onExited","appear","enter","exit"],yu=function(e){return function(n){n.in,n.onExited,n.appear,n.enter,n.exit;var i=Q(n,Cu);return L.createElement(e,i)}},xu=yu,Au=["component","duration","in","onExited"],Fo=function(e){var n=e.component,i=e.duration,t=i===void 0?1:i,o=e.in;e.onExited;var a=Q(e,Au),l=useRef(null),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(t,"ms")},exiting:{opacity:0},exited:{opacity:0}};return L.createElement(Vt,{mountOnEnter:true,unmountOnExit:true,in:o,timeout:t,nodeRef:l},function(u){var c={style:R({},s[u]),ref:l};return L.createElement(n,G({innerProps:c},a))})},Xn=260,Eu=function(e){var n=e.children,i=e.in,t=e.onExited,o=useRef(null),a=useState("auto"),l=te(a,2),s=l[0],u=l[1];useEffect(function(){var d=o.current;if(d){var g=window.requestAnimationFrame(function(){return u(d.getBoundingClientRect().width)});return function(){return window.cancelAnimationFrame(g)}}},[]);var c=function(g){switch(g){default:return {width:s};case "exiting":return {width:0,transition:"width ".concat(Xn,"ms ease-out")};case "exited":return {width:0}}};return L.createElement(Vt,{enter:false,mountOnEnter:true,unmountOnExit:true,in:i,onExited:function(){var g=o.current;g&&(t==null||t(g));},timeout:Xn,nodeRef:o},function(d){return L.createElement("div",{ref:o,style:R({overflow:"hidden",whiteSpace:"nowrap"},c(d))},n)})},Ru=["in","onExited"],Tu=function(e){return function(n){var i=n.in,t=n.onExited,o=Q(n,Ru);return L.createElement(Eu,{in:i,onExited:t},L.createElement(e,G({cropWithEllipsis:i},o)))}},Gu=Tu,Su=function(e){return function(n){return L.createElement(Fo,G({component:e,duration:n.isMulti?Xn:1},n))}},wu=Su,Bu=function(e){return function(n){return L.createElement(Fo,G({component:e},n))}},Pu=Bu,Vu=["component"],Ou=["children"],Du=function(e){return function(n){return n.isMulti?L.createElement(Fu,G({component:e},n)):L.createElement(Wt,G({component:e},n))}},Fu=function(e){var n=e.component,i=Q(e,Vu),t=Nu(i);return L.createElement(Wt,G({component:n},t))},Nu=function(e){var n=e.children,i=Q(e,Ou),t=i.isMulti,o=i.hasValue,a=i.innerProps,l=i.selectProps,s=l.components,u=l.controlShouldRenderValue,c=useState(t&&u&&o),d=te(c,2),g=d[0],f=d[1],I=useState(false),b=te(I,2),m=b[0],C=b[1];useEffect(function(){o&&!g&&f(true);},[o,g]),useEffect(function(){m&&!o&&g&&f(false),C(false);},[m,o,g]);var E=function(){return C(true)},p=function(h){if(t&&L.isValidElement(h)){if(h.type===s.MultiValue)return L.cloneElement(h,{onExited:E});if(h.type===s.Placeholder&&g)return null}return h},y=R(R({},a),{},{style:R(R({},a==null?void 0:a.style),{},{display:t&&o||g?"flex":"grid"})}),x=R(R({},i),{},{innerProps:y,children:L.Children.toArray(n).map(p)});return x},Wu=Du,Xu=["Input","MultiValue","Placeholder","SingleValue","ValueContainer"],No=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=xt({components:e}),i=n.Input,t=n.MultiValue,o=n.Placeholder,a=n.SingleValue,l=n.ValueContainer,s=Q(n,Xu);return R({Input:xu(i),MultiValue:Gu(t),Placeholder:wu(o),SingleValue:Pu(a),ValueContainer:Wu(l)},s)},Le=No();Le.Input;Le.MultiValue;Le.Placeholder;Le.SingleValue;Le.ValueContainer;var Wo=At(No);var Mn=class extends L__default.PureComponent{constructor(n){var i,t,o,a;super(n);this._valueSeparator="\xA4";this.onBlur=()=>{this.state.propvalue!==""&&this.setState(n=>({redraw:!n.redraw}));};this.onChange=n=>{var t,o;(o=(t=this.selectRef)==null?void 0:t.blur)==null||o.call(t);let i=this.convertToStr(n);this.setState({propvalue:i},()=>this.props.propChanged?this.props.propChanged(this.props.propname,i):null);};this.convertToStr=n=>n?n.value:"";this.state={isLoaded:false,disabled:(i=n.disabled)!=null?i:false,propname:n.propname,propvalue:n.propvalue,defaultValue:(t=n.defaultValue)!=null?t:"",redraw:false,hidelabel:(o=n.hidelabel)!=null?o:false,tabIndex:(a=n.tabIndex)!=null?a:0,widgetOptions:[]};}componentDidMount(){let n=this.getWidgetOptions();this.setState({widgetOptions:n,defaultValue:this.props.defaultValue,isLoaded:true});}componentDidUpdate(n){var i,t;this.state.disabled!==this.props.disabled&&this.setState({disabled:!!this.props.disabled}),n.propvalue!==this.props.propvalue&&this.setState({propvalue:this.props.propvalue}),this.selectRef&&this.state.tabIndex===this.selectRef.tabIndex&&((t=(i=this.selectRef).focus)==null||t.call(i));}render(){var d,g;if(!this.state.isLoaded)return null;let n={container:f=>({...f,display:"inline-block",width:"100%",minHeight:1,textAlign:"left",border:"none"}),control:f=>({...f,borderRadius:0,minHeight:1,border:0,outline:0}),dropdownIndicator:f=>({...f,minHeight:1,paddingTop:0,paddingBottom:0}),menu:f=>({...f}),menuPortal:f=>({...f,zIndex:9999}),option:f=>({...f,minHeight:30}),indicatorSeparator:f=>({...f,minHeight:1}),clearIndicator:f=>({...f,minHeight:1}),valueContainer:f=>({...f,minHeight:1,textOverflow:"ellipsis",maxWidth:"90%",whiteSpace:"nowrap",overflow:"hidden",display:"initial",padding:"0 10px",paddingLeft:3,height:30,lineHeight:"30px"}),placeholder:f=>({...f,top:"0%",transform:"none"}),singleValue:f=>({...f,minHeight:1,paddingBottom:2})},i=Wo(),{t}=this.props,{widgetOptions:o,defaultValue:a}=this.state,l=({children:f,getValue:I,...b})=>{let C=I().map(v=>b.selectProps.getOptionLabel(v)),E=C.slice(0,6),p=E.join(", "),y=C.length-E.length;y>0&&C.length>=5&&(p+=` + ${y} ${t("more")}`);let x=L__default.Children.toArray(f).filter(v=>["Input","DummyInput","Placeholder"].includes(v.displayName));return jsxs(yt.ValueContainer,{...b,children:[!b.selectProps.inputValue&&p,x]})},s=this.state.propvalue&&this.state.propvalue!==""?this.state.propvalue:a;s=s&&s.toString();let u=(d=o.find(f=>f.value===s))!=null?d:null,c=this.props.placeholder!==void 0?this.props.placeholder:t("Select Options");return jsxs(Fragment,{children:[!this.state.hidelabel&&jsx("div",{children:jsx("span",{className:"elwrapper caption",children:this.state.propname})}),jsx("div",{className:this.state.hidelabel?"":"dropdown",children:jsx(Bo,{id:(g=this.props.id)!=null?g:"",ref:f=>this.selectRef=f,components:{...i,ValueContainer:l},tabIndex:this.state.tabIndex,isMulti:false,delimiter:this._valueSeparator,joinValues:true,cacheOptions:true,styles:n,options:o,name:this.props.propname,value:u,defaultValue:u,placeholder:c,onChange:this.onChange,onBlur:this.onBlur,hideSelectedOptions:false,noOptionsMessage:()=>t("No Options"),isDisabled:this.state.disabled,menuPortalTarget:document.body,menuPosition:"fixed"})})]})}getWidgetOptions(){let n=[];if(this.props.options){for(let[i,t]of Object.entries(this.props.options))n.push({label:t,value:i});this.props.sort==="alpha"?n.sort((i,t)=>i.label.localeCompare(t.label)):this.props.sort==="keydesc"&&(n.sort((i,t)=>i.value.localeCompare(t.value)),n.reverse());}return n}},Hu=withTranslation()(Mn),Ho=Hu;var Hn={strictType:"_SelectBox",widgetType:S.WIDGET,objectInspector:{defaultProps:{gsindex:false,ignorereadonly:false,datatype:"string",datalength:"400",dropsource:[],dropvalues:[],label:"",multiple:false,name:"",onchangehandler:false,placeholder:"",forcereadonly:false,readonly:false,required:false,requiredmessage:"",rendertype:"none",searchbar:false,size:"small",style:{},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},Ln=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:Hn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ln,type:Hn.widgetType,stricttype:Hn.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-selectbox-widget";(C||m)&&(p="form-selectbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y,placeholder:x}=a;return jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y},children:jsx(Ho,{propname:"dropdown",propvalue:"",placeholder:x,hidelabel:true,disabled:true})})});Ln.displayName="_SelectBox";var Zn=Ln;var Yn={strictType:"_CheckBox",widgetType:S.WIDGET,objectInspector:{defaultProps:{defaultvalue:"",ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,readonly:false,required:false,tabIndex:0,value:"",visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},kn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:Yn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:kn,type:Yn.widgetType,stricttype:Yn.strictType},collect:x=>({isDragging:x.isDragging()}),end:({},x)=>{x.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-checkbox-widget";(C||m)&&(p="form-checkbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...K,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(G$1,{})})})});kn.displayName="_CheckBox";var zn=kn;var jn={strictType:"_Radio",widgetType:S.WIDGET,objectInspector:{defaultProps:{defaultvalue:false,ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,groupname:"",readonly:false,required:false,tabIndex:0,value:"",viewfield:false,visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},Un=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:jn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Un,type:jn.widgetType,stricttype:jn.strictType},collect:x=>({isDragging:x.isDragging()}),end:(x,v)=>{v.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-radio-widget";(C||m)&&(p="form-radio-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...K,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(R$1,{})})})});Un.displayName="_Radio";var Qn=Un;var tc={cursor:"move",opacity:1},jo=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var x,v;let g=u(i,t,o).index,[,f]=useDrag(()=>({type:S.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ze,type:S.WIDGET,stricttype:Ze.displayName},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,g,i,t,e,n,a]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(h,A){let T=A.didDrop();T||(c(i,t,o),I(true),b(T));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[i,t,o,c]),p="form-widget form-fileuploader";(C||m)&&(p="form-fileuploader widget-highlight"),o===s()&&(p=`${p} activeWidget`);let y={...tc,...a.style,lineHeight:((x=a.style)==null?void 0:x.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(v=a.style)==null?void 0:v.lineHeight};return jsx("div",{ref:h=>f(E(h)),className:p,onPointerUp:l,style:y,children:jsx(L__default.Fragment,{children:a.title})})});jo.displayName="_Fileuploader";var Ze=jo;var ac={cursor:"move",opacity:1},Qo=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var v,h;let g=u(i,t,o).index,[{isDragging:f},I]=useDrag(()=>({type:S.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ye,type:S.WIDGET,stricttype:Ye.displayName},collect:A=>({isDragging:A.isDragging()}),end:(A,T)=>{}}),[o,g,i,t,e,n,a]),[,b]=useState(false),[,m]=useState(false),[{isOver:C,isOverCurrent:E},p]=useDrop(()=>({accept:S.ROWSEGMENT,drop(A,T){let P=T.didDrop();P||(c(i,t,o),b(true),m(P));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[i,t,o,c]),y="form-widget form-placeholder";(E||C)&&(y="form-placeholder widget-highlight"),o===s()&&(y=`${y} activeWidget`);let x={...ac,...a.style,lineHeight:((v=a.style)==null?void 0:v.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(h=a.style)==null?void 0:h.lineHeight};return jsx("div",{ref:A=>I(p(A)),className:y,onPointerUp:l,style:x,children:jsx(L__default.Fragment,{children:a.title})})});Qo.displayName="_Placeholder";var Ye=Qo;var $n={strictType:"_Button",widgetType:S.WIDGET,objectInspector:{defaultProps:{buttontype:ai.NONE.toLowerCase(),colorSchema:"primary",fullWidth:true,name:"",size:"small",style:{},tabIndex:0,title:"Click Me",variant:"contained",verticalalign:"middle",visible:true}}},Kn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:$n.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Kn,type:$n.widgetType,stricttype:$n.strictType},collect:v=>({isDragging:v.isDragging()})}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-button-widget";(C||m)&&(p="form-button-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y,...x},children:jsx(L__default.Fragment,{children:a.title})},"button_"+o)});Kn.displayName="_Button";var qn=Kn;var ei={strictType:"_View",widgetType:S.WIDGET,objectInspector:{defaultProps:{title:"Text",plugincode:"",formcode:"",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle",viewcomp:""}}},ti=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:ei.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:ti,type:ei.widgetType,stricttype:ei.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-view-widget";(C||m)&&(p="form-view-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y,...x,minHeight:"2rem"},children:jsx(L__default.Fragment,{children:a.title})},"view_"+o)});ti.displayName="_View";var ta=ti;var V=class V{static debounce(e,n=300){let i,t=(...o)=>{clearTimeout(i),i=setTimeout(()=>e(...o),n);};return t.cancel=()=>{clearTimeout(i);},t.flush=()=>{clearTimeout(i),e();},t}static GetParentTabId(e,n,i={}){var t,o,a;if((e==null?void 0:e.id)===n)return {tabId:e==null?void 0:e.tabId,index:(t=i[e.tabId])!=null?t:0};if(((o=e._children)==null?void 0:o.length)>0){e.stricttype==="_TabBox"&&((a=e==null?void 0:e.properties)==null?void 0:a.tabcount)===void 0&&(i[e.tabId]===void 0?i[e.tabId]=0:i[e.tabId]++);for(let l of e._children){let s=V.GetParentTabId(l,n,i);if(s)return s}}return null}static getTabWidgetByFieldName(e,n,i={}){var t,o,a,l;if(((t=n.properties)==null?void 0:t.name)===e)return {tabId:n.tabId,index:(o=i[n.tabId])!=null?o:0};if(((a=n._children)==null?void 0:a.length)>0){n.stricttype==="_TabBox"&&((l=n==null?void 0:n.properties)==null?void 0:l.tabcount)===void 0&&(i[n.tabId]===void 0?i[n.tabId]=0:i[n.tabId]++);for(let s of n._children){let u=V.getTabWidgetByFieldName(e,s,i);if(u)return u}}return null}};V.getDefaultTabIndex=e=>{let n=0;return e.forEach(function(i){i._children.length>0&&i._children.forEach(function(t){t._children.length>0&&t._children[0].stricttype!=="_Label"&&n++;});}),n===0?1:n},V.getComponentByStrictType=e=>{if(e==="_Formcontainer")return Wi;if(e==="_Button")return qn;if(e==="_CheckBox")return zn;if(e==="_Fileuploader")return Ze;if(e==="_Label")return rn;if(e==="_Placeholder")return Ye;if(e==="_Radio")return Qn;if(e==="_Rowcontainer")return rt;if(e==="_Rowsegment")return Oi;if(e==="_SelectBox")return Zn;if(e==="_TabBox")return Te;if(e==="_Table")return Ge;if(e==="_Tablecell")return Mi;if(e==="_Textinput")return ln;if(e==="_Textarea")return dn;if(e==="_View")return ta},V.getItemDefaultName=(e,n)=>{let i=V.getItemCount(e,n,1),t="input_";if(e===ln)t="txtinput_";else if(e===Zn)t="drop_";else if(e===zn)t="chk_";else if(e===Qn)t="rad_";else if(e===Te)t="tab_";else if(e===dn)t="txtarea_";else if(e===rn)t="lbl_";else if(e===qn)t="btn_";else if(e===Ge)t="tbl_";else if(e===Ye)t="placeholder_";else if(e===Ze)return t="attached_files",t;return t+i},V.getTypeAsString=e=>{let n;return e===Ge?n="table":e===rt&&(n="row"),n},V.getItemCount=(e,n,i)=>(n.forEach(function(t){t.component===e&&i++,t._children&&t._children.length>0&&(i=V.getItemCount(e,t._children,i));}),i),V.getTabContainerChildrens=(e,n,i=[])=>{if(!n)return {data:e,path:i};let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t){let a=e.indexOf(t);return i.push(a),i.push("_children"),{index:e.indexOf(t),path:i,data:t._children}}else for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=V.getTabContainerChildrens(e[a]._children,n,i),o)return o;i.splice(-2);}},V.mapComponents=e=>{let n=i=>{for(var t in i)typeof i[t]=="object"&&i[t]!==null?n(i[t]):t==="stricttype"&&(i.component=V.getComponentByStrictType(i[t]));};n(e);},V.findWidgetByIdRecursive=(e,n,i=[])=>{let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t)return {item:t,index:e.indexOf(t),path:i,count:e.length};for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=V.findWidgetByIdRecursive(e[a]._children,n,i),o)return o;i.splice(-2);}},V.findPanelItem=(e,n,i)=>{let t=V.getTabContainerChildrens(i,e),o=t.data.filter(a=>`${a.id}`===n)[0];return {item:o,index:t.data.indexOf(o)}},V.findRowItem=(e,n,i,t)=>{let o;if(e){let a=V.getTabContainerChildrens(t,n);return o=a.data.filter(l=>`${l.id}`===i)[0],{item:o,component:o.component,index:a.data.indexOf(o),path:a.path,hasChildren:o._children.length>0}}else return o=t.filter(a=>`${a.id}`===i)[0],{item:o,component:o.component,index:t.indexOf(o),path:[],hasChildren:o._children.length>0}},V.findTableCellItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=V.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=V.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},V.findSegmentItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=V.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=V.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},V.getTabContainer=(e,n,i=[])=>{if(!n)return null;let t=e.filter(o=>`${o.id}`===n)[0];if(t)return {item:t,index:e.indexOf(t),path:i};for(let o=0;o<e.length;o++)if(e[o]._children){if(i.push(o),i.push("_children"),t=V.getTabContainer(e[o]._children,n,i),t)return t;i.splice(-2);}},V.getNodeUpdatePath=(e,n)=>{var i=function(o,a,l){for(var s=arguments.length===3?a.pop():false,u=0;u<a.length;u++)o=o[a[u]]=o[a[u]]||{};return s&&(o=o[s]=l),o},t={};return e&&e.length>0?i(t,e,n):t=n,t},V.getActiveTabIndex=(e,n)=>{if(n){let i=V.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?i.data.indexOf(t):null}return null},V.getActiveTabPanelId=(e,n)=>{if(n){let i=V.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?t.id:i.data[0].id}return null},V.isChildrenTab=(e,n,i)=>{let t=V.getTabContainerChildrens(e,i);return V.getAllTabIdInChain(t.data).indexOf(n)!==-1},V.getAllTabIdInChain=(e,n=[])=>{for(let i=0;i<e.length;i++)e[i]._children?(n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId),V.getAllTabIdInChain(e[i]._children,n)):n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId);return n},V.getUrlParameter=e=>new URLSearchParams(window.location.search).get(e),V.hasParentForm2=()=>V.getUrlParameter("ref")!=null,V.hasParentForm=()=>window.location.pathname.split("/").length>2,V.extractProjectGuid=e=>{let n=/\/p\/([^\/]+)\//.exec(e);return n?n[1]:null};var na=V;var Je={CANCEL:"Cancel",CUSTOM:"Custom",PRINT:"Print",SAVE:"Save"};var H=class H{static getFormButtonEvent(e){let n=null;return e.toUpperCase()===Je.CANCEL.toUpperCase()?n=H.onCancel:e.toUpperCase()===Je.CUSTOM.toUpperCase()?n=H.onClick:e.toUpperCase()===Je.PRINT.toUpperCase()?n=H.onPrint:e.toUpperCase()===Je.SAVE.toUpperCase()&&(n=H.onSave),n}};H.onChange="onChange",H.onClick="onClick",H.onCancel="onCancel",H.onDelete="onDelete",H.onPrint="onPrint",H.onSave="onSave",H.onRefresh="onRefresh",H.onTableDataLoad="onTableLoadData",H.onTableEditDataLoad="onTableEditLoadData",H.onTableCreateRecordEvent="onTableCreateRecordEvent",H.onFolderCreateRecordEvent="onFolderCreateRecordEvent",H.onFolderEditRecordEvent="onFolderEditRecordEvent",H.onFolderShareRecordEvent="onFolderShareRecordEvent",H.onTableSelectRowEvent="onTableSelectRowEvent",H.onTableRunActionEvent="onTableRunActionEvent",H.onTableRunBatchActionEvent="onTableRunBatchActionEvent",H.onTableEditRunActionEvent="onTableEditRunActionEvent",H.onFoldersDataLoad="onFoldersLoadData",H.onFileUploadEvent="onFileUpload",H.onFileUploadCreateDocumentEvent="onFileUploadCreateDocument",H.onStartSignProcess="onStartSignProcess",H.onFinishSignProcess="onFinishSignProcess",H.onLoadNewRecordTemplates="onLoadNewRecordTemplates",H.onDirectRunFormEvent="onDirectRunFormEvent",H.onGetCustomResponse="onGetCustomResponse";var ia=H;
|
|
10
|
+
`]))),kr=function(e,n){var i=e.isFocused,t=e.size,o=e.theme,a=o.colors,l=o.spacing.baseUnit;return R({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?a.neutral60:a.neutral20,padding:l*2})},yn=function(e){var n=e.delay,i=e.offset;return jsx$1("span",{css:css({animation:"".concat(el," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tl=function(e){var n=e.innerProps,i=e.isRtl,t=e.size,o=t===void 0?4:t,a=Q(e,Us);return jsx$1("div",G({},j(R(R({},a),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:true,"loading-indicator":true}),n),jsx$1(yn,{delay:0,offset:i}),jsx$1(yn,{delay:160,offset:true}),jsx$1(yn,{delay:320,offset:!i}))},zr=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.theme,a=o.colors,l=o.borderRadius,s=o.spacing;return R({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:t?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:t?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:t?a.primary:a.neutral30}})},nl=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return jsx$1("div",G({ref:o},j(e,"control",{control:true,"control--is-disabled":i,"control--is-focused":t,"control--menu-is-open":l}),a,{"aria-disabled":i||void 0}),n)},il=nl,rl=["data"],jr=function(e,n){var i=e.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ol=function(e){var n=e.children,i=e.cx,t=e.getStyles,o=e.getClassNames,a=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return jsx$1("div",G({},j(e,"group",{group:true}),s),jsx$1(a,G({},l,{selectProps:d,theme:c,getStyles:t,getClassNames:o,cx:i}),u),jsx$1("div",null,n))},_r=function(e,n){var i=e.theme,t=i.colors,o=i.spacing;return R({label:"group",cursor:"default",display:"block"},n?{}:{color:t.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},al=function(e){var n=Cr(e);n.data;var i=Q(n,rl);return jsx$1("div",G({},j(e,"groupHeading",{"group-heading":true}),i))},sl=ol,ll=["innerRef","isDisabled","isHidden","inputClassName"],Ur=function(e,n){var i=e.isDisabled,t=e.value,o=e.theme,a=o.spacing,l=o.colors;return R(R({visibility:i?"hidden":"visible",transform:t?"translateZ(0)":""},ul),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Qr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ul={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":R({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qr)},cl=function(e){return R({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Qr)},dl=function(e){var n=e.cx,i=e.value,t=Cr(e),o=t.innerRef,a=t.isDisabled,l=t.isHidden,s=t.inputClassName,u=Q(t,ll);return jsx$1("div",G({},j(e,"input",{"input-container":true}),{"data-value":i||""}),jsx$1("input",G({className:n({input:true},s),ref:o,style:cl(l),disabled:a},u)))},pl=dl,$r=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors;return R({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:t.baseUnit/2})},Kr=function(e,n){var i=e.theme,t=i.borderRadius,o=i.colors,a=e.cropWithEllipsis;return R({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},qr=function(e,n){var i=e.theme,t=i.spacing,o=i.borderRadius,a=i.colors,l=e.isFocused;return R({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:t.baseUnit,paddingRight:t.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},eo=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",i,n)},fl=eo,gl=eo;function ml(r){var e=r.children,n=r.innerProps;return jsx$1("div",G({role:"button"},n),e||jsx$1(Tn,{size:14}))}var bl=function(e){var n=e.children,i=e.components,t=e.data,o=e.innerProps,a=e.isDisabled,l=e.removeProps,s=e.selectProps,u=i.Container,c=i.Label,d=i.Remove;return jsx$1(u,{data:t,innerProps:R(R({},j(e,"multiValue",{"multi-value":true,"multi-value--is-disabled":a})),o),selectProps:s},jsx$1(c,{data:t,innerProps:R({},j(e,"multiValueLabel",{"multi-value__label":true})),selectProps:s},n),jsx$1(d,{data:t,innerProps:R(R({},j(e,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:s}))},hl=bl,to=function(e,n){var i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.theme,l=a.spacing,s=a.colors;return R({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:t?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},vl=function(e){var n=e.children,i=e.isDisabled,t=e.isFocused,o=e.isSelected,a=e.innerRef,l=e.innerProps;return jsx$1("div",G({},j(e,"option",{option:true,"option--is-disabled":i,"option--is-focused":t,"option--is-selected":o}),{ref:a,"aria-disabled":i},l),n)},Il=vl,no=function(e,n){var i=e.theme,t=i.spacing,o=i.colors;return R({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:t.baseUnit/2,marginRight:t.baseUnit/2})},Cl=function(e){var n=e.children,i=e.innerProps;return jsx$1("div",G({},j(e,"placeholder",{placeholder:true}),i),n)},yl=Cl,io=function(e,n){var i=e.isDisabled,t=e.theme,o=t.spacing,a=t.colors;return R({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},xl=function(e){var n=e.children,i=e.isDisabled,t=e.innerProps;return jsx$1("div",G({},j(e,"singleValue",{"single-value":true,"single-value--is-disabled":i}),t),n)},Al=xl,yt={ClearIndicator:Ks,Control:il,DropdownIndicator:$s,DownChevron:Hr,CrossIcon:Tn,Group:sl,GroupHeading:al,IndicatorsContainer:js,IndicatorSeparator:qs,Input:pl,LoadingIndicator:tl,Menu:Hs,MenuList:Ls,MenuPortal:Js,LoadingMessage:Ys,NoOptionsMessage:Zs,MultiValue:hl,MultiValueContainer:fl,MultiValueLabel:gl,MultiValueRemove:ml,Option:Il,Placeholder:yl,SelectContainer:ks,SingleValue:Al,ValueContainer:zs},xt=function(e){return R(R({},yt),e.components)};var ro=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function El(r,e){return !!(r===e||ro(r)&&ro(e))}function Rl(r,e){if(r.length!==e.length)return false;for(var n=0;n<r.length;n++)if(!El(r[n],e[n]))return false;return true}function At(r,e){e===void 0&&(e=Rl);var n=null;function i(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(n&&n.lastThis===this&&e(t,n.lastArgs))return n.lastResult;var a=r.apply(this,t);return n={lastResult:a,lastArgs:t,lastThis:this},a}return i.clear=function(){n=null;},i}var Sl={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"},wl=function(e){return jsx$1("span",G({css:Sl},e))},oo=wl,Bl={guidance:function(e){var n=e.isSearchable,i=e.isMulti,t=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case "menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t?", press Tab to select the option and exit the menu":"",".");case "input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" 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,i=e.label,t=i===void 0?"":i,o=e.labels,a=e.isDisabled;switch(n){case "deselect-option":case "pop-value":case "remove-value":return "option ".concat(t,", deselected.");case "clear":return "All selected options have been cleared.";case "initial-input-focus":return "option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case "select-option":return a?"option ".concat(t," is disabled. Select another option."):"option ".concat(t,", selected.");default:return ""}},onFocus:function(e){var n=e.context,i=e.focused,t=e.options,o=e.label,a=o===void 0?"":o,l=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(b,m){return b&&b.length?"".concat(b.indexOf(m)+1," of ").concat(b.length):""};if(n==="value"&&l)return "value ".concat(a," focused, ").concat(d(l,i),".");if(n==="menu"&&c){var g=s?" disabled":"",f="".concat(u?" selected":"").concat(g);return "".concat(a).concat(f,", ").concat(d(t,i),".")}return ""},onFilter:function(e){var n=e.inputValue,i=e.resultsMessage;return "".concat(i).concat(n?" for search term "+n:"",".")}},Pl=function(e){var n=e.ariaSelection,i=e.focusedOption,t=e.focusedValue,o=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,g=s.getOptionLabel,f=s.inputValue,I=s.isMulti,b=s.isOptionDisabled,m=s.isSearchable,C=s.menuIsOpen,E=s.options,p=s.screenReaderStatus,y=s.tabSelectsValue,x=s.isLoading,v=s["aria-label"],h=s["aria-live"],A=useMemo(function(){return R(R({},Bl),d||{})},[d]),T=useMemo(function(){var M="";if(n&&A.onChange){var w=n.option,W=n.options,N=n.removedValue,U=n.removedValues,_=n.value,ee=function(re){return Array.isArray(re)?null:re},Z=N||w||ee(_),B=Z?g(Z):"",O=W||U||void 0,z=O?O.map(g):[],J=R({isDisabled:Z&&b(Z,l),label:B,labels:z},n);M=A.onChange(J);}return M},[n,A,b,l,g]),P=useMemo(function(){var M="",w=i||t,W=!!(i&&l&&l.includes(i));if(w&&A.onFocus){var N={focused:w,label:g(w),isDisabled:b(w,l),isSelected:W,options:o,context:w===i?"menu":"value",selectValue:l,isAppleDevice:c};M=A.onFocus(N);}return M},[i,t,g,b,A,o,l,c]),D=useMemo(function(){var M="";if(C&&E.length&&!x&&A.onFilter){var w=p({count:o.length});M=A.onFilter({inputValue:f,resultsMessage:w});}return M},[o,f,C,A,E,p,x]),X=(n==null?void 0:n.action)==="initial-input-focus",k=useMemo(function(){var M="";if(A.guidance){var w=t?"value":C?"menu":"input";M=A.guidance({"aria-label":v,context:w,isDisabled:i&&b(i,l),isMulti:I,isSearchable:m,tabSelectsValue:y,isInitialFocus:X});}return M},[v,i,t,I,b,m,C,A,l,y,X]),Y=jsx$1(Fragment$1,null,jsx$1("span",{id:"aria-selection"},T),jsx$1("span",{id:"aria-focused"},P),jsx$1("span",{id:"aria-results"},D),jsx$1("span",{id:"aria-guidance"},k));return jsx$1(Fragment$1,null,jsx$1(oo,{id:u},X&&Y),jsx$1(oo,{"aria-live":h,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!X&&Y))},Vl=Pl,Bn=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Ol=new RegExp("["+Bn.map(function(r){return r.letters}).join("")+"]","g"),Io={};for(Et=0;Et<Bn.length;Et++)for(Rt=Bn[Et],Tt=0;Tt<Rt.letters.length;Tt++)Io[Rt.letters[Tt]]=Rt.base;var Rt,Tt,Et,Co=function(e){return e.replace(Ol,function(n){return Io[n]})},Dl=At(Co),ao=function(e){return e.replace(/^\s+|\s+$/g,"")},Fl=function(e){return "".concat(e.label," ").concat(e.value)},Nl=function(e){return function(n,i){if(n.data.__isNew__)return true;var t=R({ignoreCase:true,ignoreAccents:true,stringify:Fl,trim:true,matchFrom:"any"},e),o=t.ignoreCase,a=t.ignoreAccents,l=t.stringify,s=t.trim,u=t.matchFrom,c=s?ao(i):i,d=s?ao(l(n)):l(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=Dl(c),d=Co(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Wl=["innerRef"];function Xl(r){var e=r.innerRef,n=Q(r,Wl),i=Tr(n,"onExited","in","enter","exit","appear");return jsx$1("input",G({ref:e},i,{css:css({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 Ml=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();};function Hl(r){var e=r.isEnabled,n=r.onBottomArrive,i=r.onBottomLeave,t=r.onTopArrive,o=r.onTopLeave,a=useRef(false),l=useRef(false),s=useRef(0),u=useRef(null),c=useCallback(function(m,C){if(u.current!==null){var E=u.current,p=E.scrollTop,y=E.scrollHeight,x=E.clientHeight,v=u.current,h=C>0,A=y-x-p,T=false;A>C&&a.current&&(i&&i(m),a.current=false),h&&l.current&&(o&&o(m),l.current=false),h&&C>A?(n&&!a.current&&n(m),v.scrollTop=y,T=true,a.current=true):!h&&-C>p&&(t&&!l.current&&t(m),v.scrollTop=0,T=true,l.current=true),T&&Ml(m);}},[n,i,t,o]),d=useCallback(function(m){c(m,m.deltaY);},[c]),g=useCallback(function(m){s.current=m.changedTouches[0].clientY;},[]),f=useCallback(function(m){var C=s.current-m.changedTouches[0].clientY;c(m,C);},[c]),I=useCallback(function(m){if(m){var C=Er?{passive:false}:false;m.addEventListener("wheel",d,C),m.addEventListener("touchstart",g,C),m.addEventListener("touchmove",f,C);}},[f,g,d]),b=useCallback(function(m){m&&(m.removeEventListener("wheel",d,false),m.removeEventListener("touchstart",g,false),m.removeEventListener("touchmove",f,false));},[f,g,d]);return useEffect(function(){if(e){var m=u.current;return I(m),function(){b(m);}}},[e,I,b]),function(m){u.current=m;}}var so=["boxSizing","height","overflow","paddingRight","position"],lo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function uo(r){r.cancelable&&r.preventDefault();}function co(r){r.stopPropagation();}function po(){var r=this.scrollTop,e=this.scrollHeight,n=r+this.offsetHeight;r===0?this.scrollTop=1:n===e&&(this.scrollTop=r-1);}function fo(){return "ontouchstart"in window||navigator.maxTouchPoints}var go=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Me=0,ye={capture:false,passive:false};function Ll(r){var e=r.isEnabled,n=r.accountForScrollbars,i=n===void 0?true:n,t=useRef({}),o=useRef(null),a=useCallback(function(s){if(go){var u=document.body,c=u&&u.style;if(i&&so.forEach(function(I){var b=c&&c[I];t.current[I]=b;}),i&&Me<1){var d=parseInt(t.current.paddingRight,10)||0,g=document.body?document.body.clientWidth:0,f=window.innerWidth-g+d||0;Object.keys(lo).forEach(function(I){var b=lo[I];c&&(c[I]=b);}),c&&(c.paddingRight="".concat(f,"px"));}u&&fo()&&(u.addEventListener("touchmove",uo,ye),s&&(s.addEventListener("touchstart",po,ye),s.addEventListener("touchmove",co,ye))),Me+=1;}},[i]),l=useCallback(function(s){if(go){var u=document.body,c=u&&u.style;Me=Math.max(Me-1,0),i&&Me<1&&so.forEach(function(d){var g=t.current[d];c&&(c[d]=g);}),u&&fo()&&(u.removeEventListener("touchmove",uo,ye),s&&(s.removeEventListener("touchstart",po,ye),s.removeEventListener("touchmove",co,ye)));}},[i]);return useEffect(function(){if(e){var s=o.current;return a(s),function(){l(s);}}},[e,a,l]),function(s){o.current=s;}}var Zl=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Yl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Jl(r){var e=r.children,n=r.lockEnabled,i=r.captureEnabled,t=i===void 0?true:i,o=r.onBottomArrive,a=r.onBottomLeave,l=r.onTopArrive,s=r.onTopLeave,u=Hl({isEnabled:t,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=Ll({isEnabled:n}),d=function(f){u(f),c(f);};return jsx$1(Fragment$1,null,n&&jsx$1("div",{onClick:Zl,css:Yl}),e(d))}var kl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},zl=function(e){var n=e.name,i=e.onFocus;return jsx$1("input",{required:true,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:kl,value:"",onChange:function(){}})},jl=zl;function Pn(r){var e;return typeof window!="undefined"&&window.navigator!=null?r.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):false}function _l(){return Pn(/^iPhone/i)}function yo(){return Pn(/^Mac/i)}function Ul(){return Pn(/^iPad/i)||yo()&&navigator.maxTouchPoints>1}function Ql(){return _l()||Ul()}function $l(){return yo()||Ql()}var Kl=function(e){return e.label},ql=function(e){return e.label},eu=function(e){return e.value},tu=function(e){return !!e.isDisabled},nu={clearIndicator:Yr,container:Nr,control:zr,dropdownIndicator:Zr,group:jr,groupHeading:_r,indicatorsContainer:Xr,indicatorSeparator:Jr,input:Ur,loadingIndicator:kr,loadingMessage:Dr,menu:Sr,menuList:Pr,menuPortal:Fr,multiValue:$r,multiValueLabel:Kr,multiValueRemove:qr,noOptionsMessage:Or,option:to,placeholder:no,singleValue:io,valueContainer:Wr};var iu={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%)"},ru=4,xo=4,ou=38,au=xo*2,su={baseUnit:xo,controlHeight:ou,menuGutter:au},Gn={borderRadius:ru,colors:iu,spacing:su},lu={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:Rn(),captureMenuScroll:!Rn(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:Nl(),formatGroupLabel:Kl,getOptionLabel:ql,getOptionValue:eu,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:tu,loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!xr(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:false,openMenuOnClick:true,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:true,unstyled:false};function mo(r,e,n,i){var t=Ro(r,e,n),o=To(r,e,n),a=Eo(r,e),l=St(r,e);return {type:"option",data:e,isDisabled:t,isSelected:o,label:a,value:l,index:i}}function Gt(r,e){return r.options.map(function(n,i){if("options"in n){var t=n.options.map(function(a,l){return mo(r,a,e,l)}).filter(function(a){return ho(r,a)});return t.length>0?{type:"group",data:n,options:t,index:i}:void 0}var o=mo(r,n,e,i);return ho(r,o)?o:void 0}).filter(Rr)}function Ao(r){return r.reduce(function(e,n){return n.type==="group"?e.push.apply(e,ct(n.options.map(function(i){return i.data}))):e.push(n.data),e},[])}function bo(r,e){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,ct(i.options.map(function(t){return {data:t.data,id:"".concat(e,"-").concat(i.index,"-").concat(t.index)}}))):n.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),n},[])}function uu(r,e){return Ao(Gt(r,e))}function ho(r,e){var n=r.inputValue,i=n===void 0?"":n,t=e.data,o=e.isSelected,a=e.label,l=e.value;return (!So(r)||!o)&&Go(r,{label:a,value:l,data:t},i)}function cu(r,e){var n=r.focusedValue,i=r.selectValue,t=i.indexOf(n);if(t>-1){var o=e.indexOf(n);if(o>-1)return n;if(t<e.length)return e[t]}return null}function du(r,e){var n=r.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var Sn=function(e,n){var i,t=(i=e.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return t||null},Eo=function(e,n){return e.getOptionLabel(n)},St=function(e,n){return e.getOptionValue(n)};function Ro(r,e,n){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(e,n):false}function To(r,e,n){if(n.indexOf(e)>-1)return true;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(e,n);var i=St(r,e);return n.some(function(t){return St(r,t)===i})}function Go(r,e,n){return r.filterOption?r.filterOption(e,n):true}var So=function(e){var n=e.hideSelectedOptions,i=e.isMulti;return n===void 0?i:n},pu=1,Vn=(function(r){er(n,r);var e=nr(n);function n(i){var t;if($i(this,n),t=e.call(this,i),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:false},t.blockOptionHover=false,t.isComposing=false,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=false,t.scrollToFocusedOptionOnUpdate=false,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(s){t.controlRef=s;},t.focusedOptionRef=null,t.getFocusedOptionRef=function(s){t.focusedOptionRef=s;},t.menuListRef=null,t.getMenuListRef=function(s){t.menuListRef=s;},t.inputRef=null,t.getInputRef=function(s){t.inputRef=s;},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(s,u){var c=t.props,d=c.onChange,g=c.name;u.name=g,t.ariaOnChange(s,u),d(s,u);},t.setValue=function(s,u,c){var d=t.props,g=d.closeMenuOnSelect,f=d.isMulti,I=d.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:I}),g&&(t.setState({inputIsHiddenAfterUpdate:!f}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:true}),t.onChange(s,{action:u,option:c});},t.selectOption=function(s){var u=t.props,c=u.blurInputOnSelect,d=u.isMulti,g=u.name,f=t.state.selectValue,I=d&&t.isOptionSelected(s,f),b=t.isOptionDisabled(s,f);if(I){var m=t.getOptionValue(s);t.setValue(f.filter(function(C){return t.getOptionValue(C)!==m}),"deselect-option",s);}else if(!b)d?t.setValue([].concat(ct(f),[s]),"select-option",s):t.setValue(s,"select-option");else {t.ariaOnChange(s,{action:"select-option",option:s,name:g});return}c&&t.blurInput();},t.removeValue=function(s){var u=t.props.isMulti,c=t.state.selectValue,d=t.getOptionValue(s),g=c.filter(function(I){return t.getOptionValue(I)!==d}),f=We(u,g,g[0]||null);t.onChange(f,{action:"remove-value",removedValue:s}),t.focusInput();},t.clearValue=function(){var s=t.state.selectValue;t.onChange(We(t.props.isMulti,[],null),{action:"clear",removedValues:s});},t.popValue=function(){var s=t.props.isMulti,u=t.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),g=We(s,d,d[0]||null);c&&t.onChange(g,{action:"pop-value",removedValue:c});},t.getFocusedOptionId=function(s){return Sn(t.state.focusableOptionsWithIds,s)},t.getFocusableOptionsWithIds=function(){return bo(Gt(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return Ir.apply(void 0,[t.props.classNamePrefix].concat(u))},t.getOptionLabel=function(s){return Eo(t.props,s)},t.getOptionValue=function(s){return St(t.props,s)},t.getStyles=function(s,u){var c=t.props.unstyled,d=nu[s](u,c);d.boxSizing="border-box";var g=t.props.styles[s];return g?g(d,u):d},t.getClassNames=function(s,u){var c,d;return (c=(d=t.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},t.getElementId=function(s){return "".concat(t.state.instancePrefix,"-").concat(s)},t.getComponents=function(){return xt(t.props)},t.buildCategorizedOptions=function(){return Gt(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ao(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(s,u){t.setState({ariaSelection:R({value:s},u)});},t.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),t.focusInput());},t.onMenuMouseMove=function(s){t.blockOptionHover=false;},t.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&t.onMenuClose():u&&t.openMenu("first"):(u&&(t.openAfterFocus=true),t.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault();}},t.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!t.props.isDisabled){var u=t.props,c=u.isMulti,d=u.menuIsOpen;t.focusInput(),d?(t.setState({inputIsHiddenAfterUpdate:!c}),t.onMenuClose()):t.openMenu("first"),s.preventDefault();}},t.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(t.clearValue(),s.preventDefault(),t.openAfterFocus=false,s.type==="touchend"?t.focusInput():setTimeout(function(){return t.focusInput()}));},t.onScroll=function(s){typeof t.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ne(s.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll=="function"&&t.props.closeMenuOnScroll(s)&&t.props.onMenuClose();},t.onCompositionStart=function(){t.isComposing=true;},t.onCompositionEnd=function(){t.isComposing=false;},t.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(t.initialTouchX=c.clientX,t.initialTouchY=c.clientY,t.userIsDragging=false);},t.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-t.initialTouchX),g=Math.abs(c.clientY-t.initialTouchY),f=5;t.userIsDragging=d>f||g>f;}},t.onTouchEnd=function(s){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(s.target)&&t.menuListRef&&!t.menuListRef.contains(s.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0);},t.onControlTouchEnd=function(s){t.userIsDragging||t.onControlMouseDown(s);},t.onClearIndicatorTouchEnd=function(s){t.userIsDragging||t.onClearIndicatorMouseDown(s);},t.onDropdownIndicatorTouchEnd=function(s){t.userIsDragging||t.onDropdownIndicatorMouseDown(s);},t.handleInputChange=function(s){var u=t.props.inputValue,c=s.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange(c,{action:"input-change",prevInputValue:u}),t.props.menuIsOpen||t.onMenuOpen();},t.onInputFocus=function(s){t.props.onFocus&&t.props.onFocus(s),t.setState({inputIsHiddenAfterUpdate:false,isFocused:true}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=false;},t.onInputBlur=function(s){var u=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(s),t.onInputChange("",{action:"input-blur",prevInputValue:u}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:false});},t.onOptionHover=function(s){if(!(t.blockOptionHover||t.state.focusedOption===s)){var u=t.getFocusableOptions(),c=u.indexOf(s);t.setState({focusedOption:s,focusedOptionId:c>-1?t.getFocusedOptionId(s):null});}},t.shouldHideSelectedOptions=function(){return So(t.props)},t.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),t.focus();},t.onKeyDown=function(s){var u=t.props,c=u.isMulti,d=u.backspaceRemovesValue,g=u.escapeClearsValue,f=u.inputValue,I=u.isClearable,b=u.isDisabled,m=u.menuIsOpen,C=u.onKeyDown,E=u.tabSelectsValue,p=u.openMenuOnFocus,y=t.state,x=y.focusedOption,v=y.focusedValue,h=y.selectValue;if(!b&&!(typeof C=="function"&&(C(s),s.defaultPrevented))){switch(t.blockOptionHover=true,s.key){case "ArrowLeft":if(!c||f)return;t.focusValue("previous");break;case "ArrowRight":if(!c||f)return;t.focusValue("next");break;case "Delete":case "Backspace":if(f)return;if(v)t.removeValue(v);else {if(!d)return;c?t.popValue():I&&t.clearValue();}break;case "Tab":if(t.isComposing||s.shiftKey||!m||!E||!x||p&&t.isOptionSelected(x,h))return;t.selectOption(x);break;case "Enter":if(s.keyCode===229)break;if(m){if(!x||t.isComposing)return;t.selectOption(x);break}return;case "Escape":m?(t.setState({inputIsHiddenAfterUpdate:false}),t.onInputChange("",{action:"menu-close",prevInputValue:f}),t.onMenuClose()):I&&g&&t.clearValue();break;case " ":if(f)return;if(!m){t.openMenu("first");break}if(!x)return;t.selectOption(x);break;case "ArrowUp":m?t.focusOption("up"):t.openMenu("last");break;case "ArrowDown":m?t.focusOption("down"):t.openMenu("first");break;case "PageUp":if(!m)return;t.focusOption("pageup");break;case "PageDown":if(!m)return;t.focusOption("pagedown");break;case "Home":if(!m)return;t.focusOption("first");break;case "End":if(!m)return;t.focusOption("last");break;default:return}s.preventDefault();}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++pu),t.state.selectValue=An(i.value),i.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),l=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=a[l],t.state.focusedOptionId=Sn(o,a[l]);}return t}return qi(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,true),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&En(this.menuListRef,this.focusedOptionRef),$l()&&this.setState({isAppleDevice:true});}},{key:"componentDidUpdate",value:function(t){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&t.isDisabled||s&&l&&!t.menuIsOpen)&&this.focusInput(),s&&a&&!t.isDisabled?this.setState({isFocused:false},this.onMenuClose):!s&&!a&&t.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:true}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(En(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=false);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,true);}},{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(t,o){this.props.onInputChange(t,o);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(t){var o=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=t==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d);}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()});}},{key:"focusValue",value:function(t){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(a.length){switch(t){case "previous":s===0?c=0:s===-1?c=u:c=s-1;break;case "next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]});}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(a);a||(u=-1),t==="up"?s=u>0?u-1:l.length-1:t==="down"?s=(u+1)%l.length:t==="pageup"?(s=u-o,s<0&&(s=0)):t==="pagedown"?(s=u+o,s>l.length-1&&(s=l.length-1)):t==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=true,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])});}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Gn):R(R({},Gn),this.props.theme):Gn}},{key:"getCommonProps",value:function(){var t=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,g=d.isMulti,f=d.isRtl,I=d.options,b=this.hasValue();return {clearValue:t,cx:o,getStyles:a,getClassNames:l,getValue:s,hasValue:b,isMulti:g,isRtl:f,options:I,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var t=this.state.selectValue;return t.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,o=t.isClearable,a=t.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(t,o){return Ro(this.props,t,o)}},{key:"isOptionSelected",value:function(t,o){return To(this.props,t,o)}},{key:"filterOption",value:function(t,o){return Go(this.props,t,o)}},{key:"formatOptionLabel",value:function(t,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(t,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,false),document.addEventListener("compositionend",this.onCompositionEnd,false));}},{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,false),document.addEventListener("touchmove",this.onTouchMove,false),document.addEventListener("touchend",this.onTouchEnd,false));}},{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 t=this.props,o=t.isDisabled,a=t.isSearchable,l=t.inputId,s=t.inputValue,u=t.tabIndex,c=t.form,d=t.menuIsOpen,g=t.required,f=this.getComponents(),I=f.Input,b=this.state,m=b.inputIsHidden,C=b.ariaSelection,E=this.commonProps,p=l||this.getElementId("input"),y=R(R(R({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":true,"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":g,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":true}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?L.createElement(I,G({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},y)):L.createElement(Xl,G({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Fe,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,g=this.commonProps,f=this.props,I=f.controlShouldRenderValue,b=f.isDisabled,m=f.isMulti,C=f.inputValue,E=f.placeholder,p=this.state,y=p.selectValue,x=p.focusedValue,v=p.isFocused;if(!this.hasValue()||!I)return C?null:L.createElement(d,G({},g,{key:"placeholder",isDisabled:b,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),E);if(m)return y.map(function(A,T){var P=A===x,D="".concat(t.getOptionLabel(A),"-").concat(t.getOptionValue(A));return L.createElement(a,G({},g,{components:{Container:l,Label:s,Remove:u},isFocused:P,isDisabled:b,key:D,index:T,removeProps:{onClick:function(){return t.removeValue(A)},onTouchEnd:function(){return t.removeValue(A)},onMouseDown:function(k){k.preventDefault();}},data:A}),t.formatOptionLabel(A,"value"))});if(C)return null;var h=y[0];return L.createElement(c,G({},g,{data:h,isDisabled:b}),this.formatOptionLabel(h,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents(),o=t.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents(),o=t.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator,a=t.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return L.createElement(a,G({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents(),o=t.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(o,G({},a,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var t=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,g=o.NoOptionsMessage,f=o.Option,I=this.commonProps,b=this.state.focusedOption,m=this.props,C=m.captureMenuScroll,E=m.inputValue,p=m.isLoading,y=m.loadingMessage,x=m.minMenuHeight,v=m.maxMenuHeight,h=m.menuIsOpen,A=m.menuPlacement,T=m.menuPosition,P=m.menuPortalTarget,D=m.menuShouldBlockScroll,X=m.menuShouldScrollIntoView,k=m.noOptionsMessage,Y=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!h)return null;var w=function(B,O){var z=B.type,J=B.data,q=B.isDisabled,re=B.isSelected,he=B.label,ke=B.value,ze=b===J,je=q?void 0:function(){return t.onOptionHover(J)},Mt=q?void 0:function(){return t.selectOption(J)},_e="".concat(t.getElementId("option"),"-").concat(O),Ht={id:_e,onClick:Mt,onMouseMove:je,onMouseOver:je,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:re};return L.createElement(f,G({},I,{innerProps:Ht,data:J,isDisabled:q,isSelected:re,key:_e,label:he,type:z,value:ke,isFocused:ze,innerRef:ze?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(B.data,"menu"))},W;if(this.hasOptions())W=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var B=Z.data,O=Z.options,z=Z.index,J="".concat(t.getElementId("group"),"-").concat(z),q="".concat(J,"-heading");return L.createElement(a,G({},I,{key:J,data:B,options:O,Heading:l,headingProps:{id:q,data:Z.data},label:t.formatGroupLabel(Z.data)}),Z.options.map(function(re){return w(re,"".concat(z,"-").concat(re.index))}))}else if(Z.type==="option")return w(Z,"".concat(Z.index))});else if(p){var N=y({inputValue:E});if(N===null)return null;W=L.createElement(d,I,N);}else {var U=k({inputValue:E});if(U===null)return null;W=L.createElement(g,I,U);}var _={minMenuHeight:x,maxMenuHeight:v,menuPlacement:A,menuPosition:T,menuShouldScrollIntoView:X},ee=L.createElement(Br,G({},I,_),function(Z){var B=Z.ref,O=Z.placerProps,z=O.placement,J=O.maxHeight;return L.createElement(s,G({},I,_,{innerRef:B,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:p,placement:z}),L.createElement(Jl,{captureEnabled:C,onTopArrive:Y,onBottomArrive:M,lockEnabled:D},function(q){return L.createElement(u,G({},I,{innerRef:function(he){t.getMenuListRef(he),q(he);},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:t.getElementId("listbox")},isLoading:p,maxHeight:J,focusedOption:b}),W)}))});return P||T==="fixed"?L.createElement(c,G({},I,{appendTo:P,controlElement:this.controlRef,menuPlacement:A,menuPosition:T}),ee):ee}},{key:"renderFormField",value:function(){var t=this,o=this.props,a=o.delimiter,l=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return L.createElement(jl,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(a){var g=d.map(function(b){return t.getOptionValue(b)}).join(a);return L.createElement("input",{name:u,type:"hidden",value:g})}else {var f=d.length>0?d.map(function(b,m){return L.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:t.getOptionValue(b)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,f)}else {var I=d[0]?this.getOptionValue(d[0]):"";return L.createElement("input",{name:u,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return L.createElement(Vl,G({},t,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),o=t.Control,a=t.IndicatorsContainer,l=t.SelectContainer,s=t.ValueContainer,u=this.props,c=u.className,d=u.id,g=u.isDisabled,f=u.menuIsOpen,I=this.state.isFocused,b=this.commonProps=this.getCommonProps();return L.createElement(l,G({},b,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:I}),this.renderLiveRegion(),L.createElement(o,G({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:I,menuIsOpen:f}),L.createElement(s,G({},b,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(a,G({},b,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,g=o.instancePrefix,f=t.options,I=t.value,b=t.menuIsOpen,m=t.inputValue,C=t.isMulti,E=An(I),p={};if(a&&(I!==a.value||f!==a.options||b!==a.menuIsOpen||m!==a.inputValue)){var y=b?uu(t,E):[],x=b?bo(Gt(t,E),"".concat(g,"-option")):[],v=l?cu(o,E):null,h=du(o,y),A=Sn(x,h);p={selectValue:E,focusedOption:h,focusedOptionId:A,focusableOptionsWithIds:x,focusedValue:v,clearFocusValueOnUpdate:false};}var T=s!=null&&t!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},P=u,D=c&&d;return c&&!D&&(P={value:We(C,E,E[0]||null),options:E,action:"initial-input-focus"},D=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(P=null),R(R(R({},p),T),{},{prevProps:t,ariaSelection:P,prevWasFocused:D})}}]),n})(Component);Vn.defaultProps=lu;var gu=forwardRef(function(r,e){var n=Qi(r);return L.createElement(Vn,G({ref:e},n))}),Bo=gu;function wt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Ce(r,e);}var On={disabled:false};var Ae=L__default.createContext(null);var Po=function(e){return e.scrollTop};var He="unmounted",ge="exited",me="entering",Re="entered",Dn="exiting",se=(function(r){wt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=t,l=a&&!a.isMounting?i.enter:i.appear,s;return o.appearStatus=null,i.in?l?(s=ge,o.appearStatus=me):s=Re:i.unmountOnExit||i.mountOnEnter?s=He:s=ge,o.state={status:s},o.nextCallback=null,o}e.getDerivedStateFromProps=function(t,o){var a=t.in;return a&&o.status===He?{status:ge}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(true,this.appearStatus);},n.componentDidUpdate=function(t){var o=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==Re&&(o=me):(a===me||a===Re)&&(o=Dn);}this.updateStatus(false,o);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var t=this.props.timeout,o,a,l;return o=a=l=t,t!=null&&typeof t!="number"&&(o=t.exit,a=t.enter,l=t.appear!==void 0?t.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(t,o){if(t===void 0&&(t=false),o!==null)if(this.cancelNextCallback(),o===me){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this);a&&Po(a);}this.performEnter(t);}else this.performExit();else this.props.unmountOnExit&&this.state.status===ge&&this.setState({status:He});},n.performEnter=function(t){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:t,s=this.props.nodeRef?[l]:[Pt.findDOMNode(this),l],u=s[0],c=s[1],d=this.getTimeouts(),g=l?d.appear:d.enter;if(!t&&!a||On.disabled){this.safeSetState({status:Re},function(){o.props.onEntered(u);});return}this.props.onEnter(u,c),this.safeSetState({status:me},function(){o.props.onEntering(u,c),o.onTransitionEnd(g,function(){o.safeSetState({status:Re},function(){o.props.onEntered(u,c);});});});},n.performExit=function(){var t=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Pt.findDOMNode(this);if(!o||On.disabled){this.safeSetState({status:ge},function(){t.props.onExited(l);});return}this.props.onExit(l),this.safeSetState({status:Dn},function(){t.props.onExiting(l),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:ge},function(){t.props.onExited(l);});});});},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(t,o){o=this.setNextCallback(o),this.setState(t,o);},n.setNextCallback=function(t){var o=this,a=true;return this.nextCallback=function(l){a&&(a=false,o.nextCallback=null,t(l));},this.nextCallback.cancel=function(){a=false;},this.nextCallback},n.onTransitionEnd=function(t,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Pt.findDOMNode(this),l=t==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c);}t!=null&&setTimeout(this.nextCallback,t);},n.render=function(){var t=this.state.status;if(t===He)return null;var o=this.props,a=o.children;o.in;o.mountOnEnter;o.unmountOnExit;o.appear;o.enter;o.exit;o.timeout;o.addEndListener;o.onEnter;o.onEntering;o.onEntered;o.onExit;o.onExiting;o.onExited;o.nodeRef;var v=Ie(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L__default.createElement(Ae.Provider,{value:null},typeof a=="function"?a(t,v):L__default.cloneElement(L__default.Children.only(a),v))},e})(L__default.Component);se.contextType=Ae;se.propTypes={};function Ee(){}se.defaultProps={in:false,mountOnEnter:false,unmountOnExit:false,appear:false,enter:true,exit:true,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};se.UNMOUNTED=He;se.EXITED=ge;se.ENTERING=me;se.ENTERED=Re;se.EXITING=Dn;var Vt=se;function Ft(r,e){var n=function(o){return e&&isValidElement(o)?e(o):o},i=Object.create(null);return r&&Children.map(r,function(t){return t}).forEach(function(t){i[t.key]=n(t);}),i}function hu(r,e){r=r||{},e=e||{};function n(c){return c in e?e[c]:r[c]}var i=Object.create(null),t=[];for(var o in r)o in e?t.length&&(i[o]=t,t=[]):t.push(o);var a,l={};for(var s in e){if(i[s])for(a=0;a<i[s].length;a++){var u=i[s][a];l[i[s][a]]=n(u);}l[s]=n(s);}for(a=0;a<t.length;a++)l[t[a]]=n(t[a]);return l}function be(r,e,n){return n[e]!=null?n[e]:r.props[e]}function Vo(r,e){return Ft(r.children,function(n){return cloneElement(n,{onExited:e.bind(null,n),in:true,appear:be(n,"appear",r),enter:be(n,"enter",r),exit:be(n,"exit",r)})})}function Oo(r,e,n){var i=Ft(r.children),t=hu(e,i);return Object.keys(t).forEach(function(o){var a=t[o];if(isValidElement(a)){var l=o in e,s=o in i,u=e[o],c=isValidElement(u)&&!u.props.in;s&&(!l||c)?t[o]=cloneElement(a,{onExited:n.bind(null,a),in:true,exit:be(a,"exit",r),enter:be(a,"enter",r)}):!s&&l&&!c?t[o]=cloneElement(a,{in:false}):s&&l&&isValidElement(u)&&(t[o]=cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:be(a,"exit",r),enter:be(a,"enter",r)}));}}),t}var vu=Object.values||function(r){return Object.keys(r).map(function(e){return r[e]})},Iu={component:"div",childFactory:function(e){return e}},Fn=(function(r){wt(e,r);function e(i,t){var o;o=r.call(this,i,t)||this;var a=o.handleExited.bind(ut(o));return o.state={contextValue:{isMounting:true},handleExited:a,firstRender:true},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=true,this.setState({contextValue:{isMounting:false}});},n.componentWillUnmount=function(){this.mounted=false;},e.getDerivedStateFromProps=function(t,o){var a=o.children,l=o.handleExited,s=o.firstRender;return {children:s?Vo(t,l):Oo(t,a,l),firstRender:false}},n.handleExited=function(t,o){var a=Ft(this.props.children);t.key in a||(t.props.onExited&&t.props.onExited(o),this.mounted&&this.setState(function(l){var s=G({},l.children);return delete s[t.key],{children:s}}));},n.render=function(){var t=this.props,o=t.component,a=t.childFactory,l=Ie(t,["component","childFactory"]),s=this.state.contextValue,u=vu(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,o===null?L__default.createElement(Ae.Provider,{value:s},u):L__default.createElement(Ae.Provider,{value:s},L__default.createElement(o,l,u))},e})(L__default.Component);Fn.propTypes={};Fn.defaultProps=Iu;var Wt=Fn;var Cu=["in","onExited","appear","enter","exit"],yu=function(e){return function(n){n.in,n.onExited,n.appear,n.enter,n.exit;var i=Q(n,Cu);return L.createElement(e,i)}},xu=yu,Au=["component","duration","in","onExited"],Fo=function(e){var n=e.component,i=e.duration,t=i===void 0?1:i,o=e.in;e.onExited;var a=Q(e,Au),l=useRef(null),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(t,"ms")},exiting:{opacity:0},exited:{opacity:0}};return L.createElement(Vt,{mountOnEnter:true,unmountOnExit:true,in:o,timeout:t,nodeRef:l},function(u){var c={style:R({},s[u]),ref:l};return L.createElement(n,G({innerProps:c},a))})},Xn=260,Eu=function(e){var n=e.children,i=e.in,t=e.onExited,o=useRef(null),a=useState("auto"),l=te(a,2),s=l[0],u=l[1];useEffect(function(){var d=o.current;if(d){var g=window.requestAnimationFrame(function(){return u(d.getBoundingClientRect().width)});return function(){return window.cancelAnimationFrame(g)}}},[]);var c=function(g){switch(g){default:return {width:s};case "exiting":return {width:0,transition:"width ".concat(Xn,"ms ease-out")};case "exited":return {width:0}}};return L.createElement(Vt,{enter:false,mountOnEnter:true,unmountOnExit:true,in:i,onExited:function(){var g=o.current;g&&(t==null||t(g));},timeout:Xn,nodeRef:o},function(d){return L.createElement("div",{ref:o,style:R({overflow:"hidden",whiteSpace:"nowrap"},c(d))},n)})},Ru=["in","onExited"],Tu=function(e){return function(n){var i=n.in,t=n.onExited,o=Q(n,Ru);return L.createElement(Eu,{in:i,onExited:t},L.createElement(e,G({cropWithEllipsis:i},o)))}},Gu=Tu,Su=function(e){return function(n){return L.createElement(Fo,G({component:e,duration:n.isMulti?Xn:1},n))}},wu=Su,Bu=function(e){return function(n){return L.createElement(Fo,G({component:e},n))}},Pu=Bu,Vu=["component"],Ou=["children"],Du=function(e){return function(n){return n.isMulti?L.createElement(Fu,G({component:e},n)):L.createElement(Wt,G({component:e},n))}},Fu=function(e){var n=e.component,i=Q(e,Vu),t=Nu(i);return L.createElement(Wt,G({component:n},t))},Nu=function(e){var n=e.children,i=Q(e,Ou),t=i.isMulti,o=i.hasValue,a=i.innerProps,l=i.selectProps,s=l.components,u=l.controlShouldRenderValue,c=useState(t&&u&&o),d=te(c,2),g=d[0],f=d[1],I=useState(false),b=te(I,2),m=b[0],C=b[1];useEffect(function(){o&&!g&&f(true);},[o,g]),useEffect(function(){m&&!o&&g&&f(false),C(false);},[m,o,g]);var E=function(){return C(true)},p=function(h){if(t&&L.isValidElement(h)){if(h.type===s.MultiValue)return L.cloneElement(h,{onExited:E});if(h.type===s.Placeholder&&g)return null}return h},y=R(R({},a),{},{style:R(R({},a==null?void 0:a.style),{},{display:t&&o||g?"flex":"grid"})}),x=R(R({},i),{},{innerProps:y,children:L.Children.toArray(n).map(p)});return x},Wu=Du,Xu=["Input","MultiValue","Placeholder","SingleValue","ValueContainer"],No=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=xt({components:e}),i=n.Input,t=n.MultiValue,o=n.Placeholder,a=n.SingleValue,l=n.ValueContainer,s=Q(n,Xu);return R({Input:xu(i),MultiValue:Gu(t),Placeholder:wu(o),SingleValue:Pu(a),ValueContainer:Wu(l)},s)},Le=No();Le.Input;Le.MultiValue;Le.Placeholder;Le.SingleValue;Le.ValueContainer;var Wo=At(No);var Mn=class extends L__default.PureComponent{constructor(n){var i,t,o,a;super(n);this._valueSeparator="\xA4";this.onBlur=()=>{this.state.propvalue!==""&&this.setState(n=>({redraw:!n.redraw}));};this.onChange=n=>{var t,o;(o=(t=this.selectRef)==null?void 0:t.blur)==null||o.call(t);let i=this.convertToStr(n);this.setState({propvalue:i},()=>this.props.propChanged?this.props.propChanged(this.props.propname,i):null);};this.convertToStr=n=>n?n.value:"";this.state={isLoaded:false,disabled:(i=n.disabled)!=null?i:false,propname:n.propname,propvalue:n.propvalue,defaultValue:(t=n.defaultValue)!=null?t:"",redraw:false,hidelabel:(o=n.hidelabel)!=null?o:false,tabIndex:(a=n.tabIndex)!=null?a:0,widgetOptions:[]};}componentDidMount(){let n=this.getWidgetOptions();this.setState({widgetOptions:n,defaultValue:this.props.defaultValue,isLoaded:true});}componentDidUpdate(n){var i,t;this.state.disabled!==this.props.disabled&&this.setState({disabled:!!this.props.disabled}),n.propvalue!==this.props.propvalue&&this.setState({propvalue:this.props.propvalue}),this.selectRef&&this.state.tabIndex===this.selectRef.tabIndex&&((t=(i=this.selectRef).focus)==null||t.call(i));}render(){var d,g;if(!this.state.isLoaded)return null;let n={container:f=>({...f,display:"inline-block",width:"100%",minHeight:1,textAlign:"left",border:"none"}),control:f=>({...f,borderRadius:0,minHeight:1,border:0,outline:0}),dropdownIndicator:f=>({...f,minHeight:1,paddingTop:0,paddingBottom:0}),menu:f=>({...f}),menuPortal:f=>({...f,zIndex:9999}),option:f=>({...f,minHeight:30}),indicatorSeparator:f=>({...f,minHeight:1}),clearIndicator:f=>({...f,minHeight:1}),valueContainer:f=>({...f,minHeight:1,textOverflow:"ellipsis",maxWidth:"90%",whiteSpace:"nowrap",overflow:"hidden",display:"initial",padding:"0 10px",paddingLeft:3,height:30,lineHeight:"30px"}),placeholder:f=>({...f,top:"0%",transform:"none"}),singleValue:f=>({...f,minHeight:1,paddingBottom:2})},i=Wo(),{t}=this.props,{widgetOptions:o,defaultValue:a}=this.state,l=({children:f,getValue:I,...b})=>{let C=I().map(v=>b.selectProps.getOptionLabel(v)),E=C.slice(0,6),p=E.join(", "),y=C.length-E.length;y>0&&C.length>=5&&(p+=` + ${y} ${t("more")}`);let x=L__default.Children.toArray(f).filter(v=>["Input","DummyInput","Placeholder"].includes(v.displayName));return jsxs(yt.ValueContainer,{...b,children:[!b.selectProps.inputValue&&p,x]})},s=this.state.propvalue&&this.state.propvalue!==""?this.state.propvalue:a;s=s&&s.toString();let u=(d=o.find(f=>f.value===s))!=null?d:null,c=this.props.placeholder!==void 0?this.props.placeholder:t("Select Options");return jsxs(Fragment,{children:[!this.state.hidelabel&&jsx("div",{children:jsx("span",{className:"elwrapper caption",children:this.state.propname})}),jsx("div",{className:this.state.hidelabel?"":"dropdown",children:jsx(Bo,{id:(g=this.props.id)!=null?g:"",ref:f=>this.selectRef=f,components:{...i,ValueContainer:l},tabIndex:this.state.tabIndex,isMulti:false,delimiter:this._valueSeparator,joinValues:true,cacheOptions:true,styles:n,options:o,name:this.props.propname,value:u,defaultValue:u,placeholder:c,onChange:this.onChange,onBlur:this.onBlur,hideSelectedOptions:false,noOptionsMessage:()=>t("No Options"),isDisabled:this.state.disabled,menuPortalTarget:document.body,menuPosition:"fixed"})})]})}getWidgetOptions(){let n=[];if(this.props.options){for(let[i,t]of Object.entries(this.props.options))n.push({label:t,value:i});this.props.sort==="alpha"?n.sort((i,t)=>i.label.localeCompare(t.label)):this.props.sort==="keydesc"&&(n.sort((i,t)=>i.value.localeCompare(t.value)),n.reverse());}return n}},Hu=withTranslation()(Mn),Ho=Hu;var Hn={strictType:"_SelectBox",widgetType:S.WIDGET,objectInspector:{defaultProps:{gsindex:false,ignorereadonly:false,datatype:"string",datalength:"400",dropsource:[],dropvalues:[],label:"",multiple:false,name:"",onchangehandler:false,placeholder:"",forcereadonly:false,readonly:false,required:false,requiredmessage:"",rendertype:"none",searchbar:false,size:"small",style:{},tabIndex:0,title:"Text",value:"",variant:"outlined",viewfield:false,visible:true}}},Ln=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:Hn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ln,type:Hn.widgetType,stricttype:Hn.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-selectbox-widget";(C||m)&&(p="form-selectbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y,placeholder:x}=a;return jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y},children:jsx(Ho,{propname:"dropdown",propvalue:"",placeholder:x,hidelabel:true,disabled:true})})});Ln.displayName="_SelectBox";var Zn=Ln;var Yn={strictType:"_CheckBox",widgetType:S.WIDGET,objectInspector:{defaultProps:{defaultvalue:"",ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,readonly:false,required:false,tabIndex:0,value:"",visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},kn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:Yn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:kn,type:Yn.widgetType,stricttype:Yn.strictType},collect:x=>({isDragging:x.isDragging()}),end:({},x)=>{x.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-checkbox-widget";(C||m)&&(p="form-checkbox-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...K,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(F,{})})})});kn.displayName="_CheckBox";var zn=kn;var jn={strictType:"_Radio",widgetType:S.WIDGET,objectInspector:{defaultProps:{defaultvalue:false,ignorereadonly:false,inputtype:"input",label:"",labelplacement:"end",name:"",onchangehandler:false,groupname:"",readonly:false,required:false,tabIndex:0,value:"",viewfield:false,visible:true,style:{elementSize:"1.3em",textAlign:"center"}}}},Un=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:jn.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Un,type:jn.widgetType,stricttype:jn.strictType},collect:x=>({isDragging:x.isDragging()}),end:(x,v)=>{v.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop({},x){let v=x.didDrop();v||(c(i,t,o),I(true),b(v));},collect:x=>({isOver:x.isOver(),isOverCurrent:x.isOver({shallow:true})})}),[I,b]),p="form-widget form-radio-widget";(C||m)&&(p="form-radio-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a;return jsx("div",{ref:x=>f(E(x)),className:p,onPointerUp:l,style:{...K,...y,fontSize:y.elementSize},children:jsx("div",{className:"formwidget",children:jsx(Q$1,{})})})});Un.displayName="_Radio";var Qn=Un;var tc={cursor:"move",opacity:1},jo=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var x,v;let g=u(i,t,o).index,[,f]=useDrag(()=>({type:S.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ze,type:S.WIDGET,stricttype:Ze.displayName},collect:h=>({isDragging:h.isDragging()}),end:(h,A)=>{A.didDrop();}}),[o,g,i,t,e,n,a]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(h,A){let T=A.didDrop();T||(c(i,t,o),I(true),b(T));},collect:h=>({isOver:h.isOver(),isOverCurrent:h.isOver({shallow:true})})}),[i,t,o,c]),p="form-widget form-fileuploader";(C||m)&&(p="form-fileuploader widget-highlight"),o===s()&&(p=`${p} activeWidget`);let y={...tc,...a.style,lineHeight:((x=a.style)==null?void 0:x.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(v=a.style)==null?void 0:v.lineHeight};return jsx("div",{ref:h=>f(E(h)),className:p,onPointerUp:l,style:y,children:jsx(L__default.Fragment,{children:a.title})})});jo.displayName="_Fileuploader";var Ze=jo;var ac={cursor:"move",opacity:1},Qo=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){var v,h;let g=u(i,t,o).index,[{isDragging:f},I]=useDrag(()=>({type:S.WIDGET,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Ye,type:S.WIDGET,stricttype:Ye.displayName},collect:A=>({isDragging:A.isDragging()}),end:(A,T)=>{}}),[o,g,i,t,e,n,a]),[,b]=useState(false),[,m]=useState(false),[{isOver:C,isOverCurrent:E},p]=useDrop(()=>({accept:S.ROWSEGMENT,drop(A,T){let P=T.didDrop();P||(c(i,t,o),b(true),m(P));},collect:A=>({isOver:A.isOver(),isOverCurrent:A.isOver({shallow:true})})}),[i,t,o,c]),y="form-widget form-placeholder";(E||C)&&(y="form-placeholder widget-highlight"),o===s()&&(y=`${y} activeWidget`);let x={...ac,...a.style,lineHeight:((v=a.style)==null?void 0:v.minHeight)!==void 0?typeof a.style.minHeight=="number"?`${a.style.minHeight}px`:a.style.minHeight:(h=a.style)==null?void 0:h.lineHeight};return jsx("div",{ref:A=>I(p(A)),className:y,onPointerUp:l,style:x,children:jsx(L__default.Fragment,{children:a.title})})});Qo.displayName="_Placeholder";var Ye=Qo;var $n={strictType:"_Button",widgetType:S.WIDGET,objectInspector:{defaultProps:{buttontype:ai.NONE.toLowerCase(),colorSchema:"primary",fullWidth:true,name:"",size:"small",style:{},tabIndex:0,title:"Click Me",variant:"contained",verticalalign:"middle",visible:true}}},Kn=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:$n.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:Kn,type:$n.widgetType,stricttype:$n.strictType},collect:v=>({isDragging:v.isDragging()})}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-button-widget";(C||m)&&(p="form-button-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y,...x},children:jsx(L__default.Fragment,{children:a.title})},"button_"+o)});Kn.displayName="_Button";var qn=Kn;var ei={strictType:"_View",widgetType:S.WIDGET,objectInspector:{defaultProps:{title:"Text",plugincode:"",formcode:"",name:"",size:"small",style:{textAlign:"left"},variant:"outlined",visible:true,verticalalign:"middle",viewcomp:""}}},ti=memo(function({tabId:e,panelId:n,rowId:i,segmentId:t,id:o,properties:a,onPointerUp:l,getSelectedWidgetId:s,findWidgetItem:u,moveWidgetItem:c}){let g=u(i,t,o).index,[,f]=useDrag(()=>({type:ei.widgetType,item:{id:o,originalIndex:g,tabId:e,panelId:n,rowId:i,segmentId:t,properties:a,component:ti,type:ei.widgetType,stricttype:ei.strictType},collect:v=>({isDragging:v.isDragging()}),end:(v,h)=>{h.didDrop();}}),[o,g,c]),[,I]=useState(false),[,b]=useState(false),[{isOver:m,isOverCurrent:C},E]=useDrop(()=>({accept:S.ROWSEGMENT,drop(v,h){let A=h.didDrop();A||(c(i,t,o),I(true),b(A));},collect:v=>({isOver:v.isOver(),isOverCurrent:v.isOver({shallow:true})})}),[I,b]),p="form-widget form-view-widget";(C||m)&&(p="form-view-widget widget-highlight"),o===s()&&(p=p+" activeWidget");let{style:y}=a,x={paddingTop:"0px"};return a.verticalalign==="bottom"&&(x.paddingTop="10px"),jsx("div",{ref:v=>f(E(v)),className:p,onPointerUp:l,style:{...K,...y,...x,minHeight:"2rem"},children:jsx(L__default.Fragment,{children:a.title})},"view_"+o)});ti.displayName="_View";var ta=ti;var V=class V{static debounce(e,n=300){let i,t=(...o)=>{clearTimeout(i),i=setTimeout(()=>e(...o),n);};return t.cancel=()=>{clearTimeout(i);},t.flush=()=>{clearTimeout(i),e();},t}static GetParentTabId(e,n,i={}){var t,o,a;if((e==null?void 0:e.id)===n)return {tabId:e==null?void 0:e.tabId,index:(t=i[e.tabId])!=null?t:0};if(((o=e._children)==null?void 0:o.length)>0){e.stricttype==="_TabBox"&&((a=e==null?void 0:e.properties)==null?void 0:a.tabcount)===void 0&&(i[e.tabId]===void 0?i[e.tabId]=0:i[e.tabId]++);for(let l of e._children){let s=V.GetParentTabId(l,n,i);if(s)return s}}return null}static getTabWidgetByFieldName(e,n,i={}){var t,o,a,l;if(((t=n.properties)==null?void 0:t.name)===e)return {tabId:n.tabId,index:(o=i[n.tabId])!=null?o:0};if(((a=n._children)==null?void 0:a.length)>0){n.stricttype==="_TabBox"&&((l=n==null?void 0:n.properties)==null?void 0:l.tabcount)===void 0&&(i[n.tabId]===void 0?i[n.tabId]=0:i[n.tabId]++);for(let s of n._children){let u=V.getTabWidgetByFieldName(e,s,i);if(u)return u}}return null}};V.getDefaultTabIndex=e=>{let n=0;return e.forEach(function(i){i._children.length>0&&i._children.forEach(function(t){t._children.length>0&&t._children[0].stricttype!=="_Label"&&n++;});}),n===0?1:n},V.getComponentByStrictType=e=>{if(e==="_Formcontainer")return Wi;if(e==="_Button")return qn;if(e==="_CheckBox")return zn;if(e==="_Fileuploader")return Ze;if(e==="_Label")return rn;if(e==="_Placeholder")return Ye;if(e==="_Radio")return Qn;if(e==="_Rowcontainer")return rt;if(e==="_Rowsegment")return Oi;if(e==="_SelectBox")return Zn;if(e==="_TabBox")return Te;if(e==="_Table")return Ge;if(e==="_Tablecell")return Mi;if(e==="_Textinput")return ln;if(e==="_Textarea")return dn;if(e==="_View")return ta},V.getItemDefaultName=(e,n)=>{let i=V.getItemCount(e,n,1),t="input_";if(e===ln)t="txtinput_";else if(e===Zn)t="drop_";else if(e===zn)t="chk_";else if(e===Qn)t="rad_";else if(e===Te)t="tab_";else if(e===dn)t="txtarea_";else if(e===rn)t="lbl_";else if(e===qn)t="btn_";else if(e===Ge)t="tbl_";else if(e===Ye)t="placeholder_";else if(e===Ze)return t="attached_files",t;return t+i},V.getTypeAsString=e=>{let n;return e===Ge?n="table":e===rt&&(n="row"),n},V.getItemCount=(e,n,i)=>(n.forEach(function(t){t.component===e&&i++,t._children&&t._children.length>0&&(i=V.getItemCount(e,t._children,i));}),i),V.getTabContainerChildrens=(e,n,i=[])=>{if(!n)return {data:e,path:i};let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t){let a=e.indexOf(t);return i.push(a),i.push("_children"),{index:e.indexOf(t),path:i,data:t._children}}else for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=V.getTabContainerChildrens(e[a]._children,n,i),o)return o;i.splice(-2);}},V.mapComponents=e=>{let n=i=>{for(var t in i)typeof i[t]=="object"&&i[t]!==null?n(i[t]):t==="stricttype"&&(i.component=V.getComponentByStrictType(i[t]));};n(e);},V.findWidgetByIdRecursive=(e,n,i=[])=>{let t,o;if(t=e.filter(a=>`${a.id}`===n)[0],t)return {item:t,index:e.indexOf(t),path:i,count:e.length};for(let a=0;a<e.length;a++)if(e[a]._children){if(i.push(a),i.push("_children"),o=V.findWidgetByIdRecursive(e[a]._children,n,i),o)return o;i.splice(-2);}},V.findPanelItem=(e,n,i)=>{let t=V.getTabContainerChildrens(i,e),o=t.data.filter(a=>`${a.id}`===n)[0];return {item:o,index:t.data.indexOf(o)}},V.findRowItem=(e,n,i,t)=>{let o;if(e){let a=V.getTabContainerChildrens(t,n);return o=a.data.filter(l=>`${l.id}`===i)[0],{item:o,component:o.component,index:a.data.indexOf(o),path:a.path,hasChildren:o._children.length>0}}else return o=t.filter(a=>`${a.id}`===i)[0],{item:o,component:o.component,index:t.indexOf(o),path:[],hasChildren:o._children.length>0}},V.findTableCellItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=V.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=V.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},V.findSegmentItem=(e,n,i,t,o)=>{let a,l,s;return e?(a=V.getTabContainerChildrens(o,n),l=a.data.filter(u=>`${u.id}`===i)[0],s=l._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l._children.indexOf(s)}):(l=V.findWidgetByIdRecursive(o,i),s=l==null?void 0:l.item._children.filter(u=>`${u.id}`===t)[0],{item:s,index:l==null?void 0:l.item._children.indexOf(s)})},V.getTabContainer=(e,n,i=[])=>{if(!n)return null;let t=e.filter(o=>`${o.id}`===n)[0];if(t)return {item:t,index:e.indexOf(t),path:i};for(let o=0;o<e.length;o++)if(e[o]._children){if(i.push(o),i.push("_children"),t=V.getTabContainer(e[o]._children,n,i),t)return t;i.splice(-2);}},V.getNodeUpdatePath=(e,n)=>{var i=function(o,a,l){for(var s=arguments.length===3?a.pop():false,u=0;u<a.length;u++)o=o[a[u]]=o[a[u]]||{};return s&&(o=o[s]=l),o},t={};return e&&e.length>0?i(t,e,n):t=n,t},V.getActiveTabIndex=(e,n)=>{if(n){let i=V.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?i.data.indexOf(t):null}return null},V.getActiveTabPanelId=(e,n)=>{if(n){let i=V.getTabContainerChildrens(e,n),t=i.data.filter(o=>`${o.activeTab}`=="1")[0];return t?t.id:i.data[0].id}return null},V.isChildrenTab=(e,n,i)=>{let t=V.getTabContainerChildrens(e,i);return V.getAllTabIdInChain(t.data).indexOf(n)!==-1},V.getAllTabIdInChain=(e,n=[])=>{for(let i=0;i<e.length;i++)e[i]._children?(n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId),V.getAllTabIdInChain(e[i]._children,n)):n.indexOf(e[i].tabId)&&e[i].tabId!==void 0&&n.push(e[i].tabId);return n},V.getUrlParameter=e=>new URLSearchParams(window.location.search).get(e),V.hasParentForm2=()=>V.getUrlParameter("ref")!=null,V.hasParentForm=()=>window.location.pathname.split("/").length>2,V.extractProjectGuid=e=>{let n=/\/p\/([^\/]+)\//.exec(e);return n?n[1]:null};var na=V;var Je={CANCEL:"Cancel",CUSTOM:"Custom",PRINT:"Print",SAVE:"Save"};var H=class H{static getFormButtonEvent(e){let n=null;return e.toUpperCase()===Je.CANCEL.toUpperCase()?n=H.onCancel:e.toUpperCase()===Je.CUSTOM.toUpperCase()?n=H.onClick:e.toUpperCase()===Je.PRINT.toUpperCase()?n=H.onPrint:e.toUpperCase()===Je.SAVE.toUpperCase()&&(n=H.onSave),n}};H.onChange="onChange",H.onClick="onClick",H.onCancel="onCancel",H.onDelete="onDelete",H.onPrint="onPrint",H.onSave="onSave",H.onRefresh="onRefresh",H.onTableDataLoad="onTableLoadData",H.onTableEditDataLoad="onTableEditLoadData",H.onTableCreateRecordEvent="onTableCreateRecordEvent",H.onFolderCreateRecordEvent="onFolderCreateRecordEvent",H.onFolderEditRecordEvent="onFolderEditRecordEvent",H.onFolderShareRecordEvent="onFolderShareRecordEvent",H.onTableSelectRowEvent="onTableSelectRowEvent",H.onTableRunActionEvent="onTableRunActionEvent",H.onTableRunBatchActionEvent="onTableRunBatchActionEvent",H.onTableEditRunActionEvent="onTableEditRunActionEvent",H.onFoldersDataLoad="onFoldersLoadData",H.onFileUploadEvent="onFileUpload",H.onFileUploadCreateDocumentEvent="onFileUploadCreateDocument",H.onStartSignProcess="onStartSignProcess",H.onFinishSignProcess="onFinishSignProcess",H.onLoadNewRecordTemplates="onLoadNewRecordTemplates",H.onDirectRunFormEvent="onDirectRunFormEvent",H.onGetCustomResponse="onGetCustomResponse";var ia=H;
|
|
11
11
|
export{en as A,Ge as B,Se as C,rt as D,Ze as E,Ye as F,Ua as G,Oi as H,Wi as I,Od as J,Mi as K,$n as L,qn as M,ei as N,ta as O,na as P,ia as Q,qt as a,Lt as b,S as c,ai as d,tn as e,rn as f,Yt as g,hc as h,an as i,ln as j,un as k,dn as l,Ho as m,Hn as n,Zn as o,Yn as p,zn as q,jn as r,Qn as s,le as t,_t as u,Ut as v,$t as w,Kt as x,et as y,Te as z};
|