vzcode 0.3.0 → 0.4.0
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/cli.js
CHANGED
|
@@ -9,6 +9,7 @@ import path from 'path';
|
|
|
9
9
|
import { fileURLToPath } from 'url';
|
|
10
10
|
import { json1Presence } from './src/ot.js';
|
|
11
11
|
import { randomId } from './src/randomId.js';
|
|
12
|
+
import open from 'open';
|
|
12
13
|
|
|
13
14
|
// The time in milliseconds by which auto-saving is debounced.
|
|
14
15
|
const autoSaveDebounceTimeMS = 800;
|
|
@@ -128,4 +129,5 @@ shareDBDoc.subscribe(() => {
|
|
|
128
129
|
|
|
129
130
|
server.listen(port, () => {
|
|
130
131
|
console.log(`Editor is live at http://localhost:${port}`);
|
|
132
|
+
open(`http://localhost:${port}`);
|
|
131
133
|
});
|
|
@@ -86,4 +86,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
86
86
|
*/var an=typeof Symbol=="function"&&Symbol.for,py=an?Symbol.for("react.element"):60103,my=an?Symbol.for("react.portal"):60106,ep=an?Symbol.for("react.fragment"):60107,tp=an?Symbol.for("react.strict_mode"):60108,np=an?Symbol.for("react.profiler"):60114,rp=an?Symbol.for("react.provider"):60109,ip=an?Symbol.for("react.context"):60110,gy=an?Symbol.for("react.async_mode"):60111,sp=an?Symbol.for("react.concurrent_mode"):60111,op=an?Symbol.for("react.forward_ref"):60112,lp=an?Symbol.for("react.suspense"):60113,TU=an?Symbol.for("react.suspense_list"):60120,ap=an?Symbol.for("react.memo"):60115,up=an?Symbol.for("react.lazy"):60116,AU=an?Symbol.for("react.block"):60121,RU=an?Symbol.for("react.fundamental"):60117,MU=an?Symbol.for("react.responder"):60118,DU=an?Symbol.for("react.scope"):60119;function hr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case py:switch(t=t.type,t){case gy:case sp:case ep:case np:case tp:case lp:return t;default:switch(t=t&&t.$$typeof,t){case ip:case op:case up:case ap:case rp:return t;default:return e}}case my:return e}}}function RT(t){return hr(t)===sp}at.AsyncMode=gy;at.ConcurrentMode=sp;at.ContextConsumer=ip;at.ContextProvider=rp;at.Element=py;at.ForwardRef=op;at.Fragment=ep;at.Lazy=up;at.Memo=ap;at.Portal=my;at.Profiler=np;at.StrictMode=tp;at.Suspense=lp;at.isAsyncMode=function(t){return RT(t)||hr(t)===gy};at.isConcurrentMode=RT;at.isContextConsumer=function(t){return hr(t)===ip};at.isContextProvider=function(t){return hr(t)===rp};at.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===py};at.isForwardRef=function(t){return hr(t)===op};at.isFragment=function(t){return hr(t)===ep};at.isLazy=function(t){return hr(t)===up};at.isMemo=function(t){return hr(t)===ap};at.isPortal=function(t){return hr(t)===my};at.isProfiler=function(t){return hr(t)===np};at.isStrictMode=function(t){return hr(t)===tp};at.isSuspense=function(t){return hr(t)===lp};at.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ep||t===sp||t===np||t===tp||t===lp||t===TU||typeof t=="object"&&t!==null&&(t.$$typeof===up||t.$$typeof===ap||t.$$typeof===rp||t.$$typeof===ip||t.$$typeof===op||t.$$typeof===RU||t.$$typeof===MU||t.$$typeof===DU||t.$$typeof===AU)};at.typeOf=hr;(function(t){t.exports=at})($U);var MT=fv,IU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DT={};DT[MT.ForwardRef]=IU;DT[MT.Memo]=LU;var NU=!0;function VU(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var IT=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||NU===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},XU=function(e,n,r){IT(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function jU(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var BU={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZU=/[A-Z]|^ms/g,WU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LT=function(e){return e.charCodeAt(1)===45},Hk=function(e){return e!=null&&typeof e!="boolean"},Fm=bU(function(t){return LT(t)?t:t.replace(ZU,"-$&").toLowerCase()}),Kk=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(WU,function(r,i,s){return ai={name:i,styles:s,next:ai},i})}return BU[e]!==1&&!LT(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ru(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ai={name:n.name,styles:n.styles,next:ai},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ai={name:r.name,styles:r.styles,next:ai},r=r.next;var i=n.styles+";";return i}return UU(t,e,n)}case"function":{if(t!==void 0){var s=ai,o=n(t);return ai=s,Ru(t,e,o)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function UU(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ru(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":Hk(o)&&(r+=Fm(s)+":"+Kk(s,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)Hk(o[l])&&(r+=Fm(s)+":"+Kk(s,o[l])+";");else{var a=Ru(t,e,o);switch(s){case"animation":case"animationName":{r+=Fm(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var Jk=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ai,NT=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";ai=void 0;var o=e[0];o==null||o.raw===void 0?(i=!1,s+=Ru(r,n,o)):s+=o[0];for(var l=1;l<e.length;l++)s+=Ru(r,n,e[l]),i&&(s+=o[l]);Jk.lastIndex=0;for(var a="",u;(u=Jk.exec(s))!==null;)a+="-"+u[1];var c=jU(s)+a;return{name:c,styles:s,next:ai}},FU=function(e){return e()},YU=E1["useInsertionEffect"]?E1["useInsertionEffect"]:!1,zU=YU||FU,Oy={}.hasOwnProperty,VT=R.createContext(typeof HTMLElement<"u"?_U({key:"css"}):null);VT.Provider;var qU=function(e){return R.forwardRef(function(n,r){var i=R.useContext(VT);return e(n,i,r)})},GU=R.createContext({}),hv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",HU=function(e,n){var r={};for(var i in n)Oy.call(n,i)&&(r[i]=n[i]);return r[hv]=e,r},KU=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return IT(n,r,i),zU(function(){return XU(n,r,i)}),null},JU=qU(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[hv],s=[r],o="";typeof t.className=="string"?o=VU(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var l=NT(s,void 0,R.useContext(GU));o+=e.key+"-"+l.name;var a={};for(var u in t)Oy.call(t,u)&&u!=="css"&&u!==hv&&(a[u]=t[u]);return a.ref=n,a.className=o,R.createElement(R.Fragment,null,R.createElement(KU,{cache:e,serialized:l,isStringTag:typeof i=="string"}),R.createElement(i,a))}),$e=function(e,n){var r=arguments;if(n==null||!Oy.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=JU,s[1]=HU(e,n);for(var o=2;o<i;o++)s[o]=r[o];return R.createElement.apply(null,s)};function vy(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return NT(e)}var eF=function(){var e=vy.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function tF(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function nF(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}const rF=["top","right","bottom","left"];rF.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);function mi(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function XT(t){return mi(t).getComputedStyle(t)}function jT(t){return t instanceof mi(t).Node}function BT(t){return jT(t)?(t.nodeName||"").toLowerCase():""}let hf;function iF(){if(hf)return hf;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(hf=t.brands.map(e=>e.brand+"/"+e.version).join(" "),hf):navigator.userAgent}function yy(t){return t instanceof mi(t).HTMLElement}function dl(t){return t instanceof mi(t).Element}function eP(t){return typeof ShadowRoot>"u"?!1:t instanceof mi(t).ShadowRoot||t instanceof ShadowRoot}function ZT(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=XT(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function sF(){return/^((?!chrome|android).)*safari/i.test(iF())}function oF(t){return["html","body","#document"].includes(BT(t))}const od=Math.round;function lF(t){const e=XT(t);let n=parseFloat(e.width),r=parseFloat(e.height);const i=yy(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,l=od(n)!==s||od(r)!==o;return l&&(n=s,r=o),{width:n,height:r,fallback:l}}function WT(t){return dl(t)?t:t.contextElement}const UT={x:1,y:1};function Ym(t){const e=WT(t);if(!yy(e))return UT;const n=e.getBoundingClientRect(),{width:r,height:i,fallback:s}=lF(e);let o=(s?od(n.width):n.width)/r,l=(s?od(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}function tP(t,e,n,r){var i,s;e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),l=WT(t);let a=UT;e&&(r?dl(r)&&(a=Ym(r)):a=Ym(t));const u=l?mi(l):window,c=sF()&&n;let f=(o.left+(c&&((i=u.visualViewport)==null?void 0:i.offsetLeft)||0))/a.x,h=(o.top+(c&&((s=u.visualViewport)==null?void 0:s.offsetTop)||0))/a.y,p=o.width/a.x,d=o.height/a.y;if(l){const m=mi(l),O=r&&dl(r)?mi(r):r;let g=m.frameElement;for(;g&&r&&O!==m;){const y=Ym(g),v=g.getBoundingClientRect(),S=getComputedStyle(g);v.x+=(g.clientLeft+parseFloat(S.paddingLeft))*y.x,v.y+=(g.clientTop+parseFloat(S.paddingTop))*y.y,f*=y.x,h*=y.y,p*=y.x,d*=y.y,f+=v.x,h+=v.y,g=mi(g).frameElement}}return nF({width:p,height:d,x:f,y:h})}function aF(t){return((jT(t)?t.ownerDocument:t.document)||window.document).documentElement}function uF(t){if(BT(t)==="html")return t;const e=t.assignedSlot||t.parentNode||eP(t)&&t.host||aF(t);return eP(e)?e.host:e}function FT(t){const e=uF(t);return oF(e)?e.ownerDocument.body:yy(e)&&ZT(e)?e:FT(e)}function Uf(t,e){var n;e===void 0&&(e=[]);const r=FT(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=mi(r);return i?e.concat(s,s.visualViewport||[],ZT(r)?r:[]):e.concat(r,Uf(r))}function cF(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:l=!1}=r,a=i&&!l,u=a||s?[...dl(t)?Uf(t):t.contextElement?Uf(t.contextElement):[],...Uf(e)]:[];u.forEach(p=>{a&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});let c,f=null;if(o){let p=!0;f=new ResizeObserver(()=>{p||n(),p=!1}),dl(t)&&!l&&f.observe(t),dl(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(e)}let h=l?tP(t):null;return l&&function p(){const d=tP(t);!h||d.x===h.x&&d.y===h.y&&d.width===h.width&&d.height===h.height||n(),h=d,c=requestAnimationFrame(p)}(),n(),()=>{var p;u.forEach(d=>{a&&d.removeEventListener("scroll",n),s&&d.removeEventListener("resize",n)}),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(c)}}var dv=R.useLayoutEffect,fF=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ld=function(){};function hF(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function dF(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var s=[].concat(r);if(e&&t)for(var o in e)e.hasOwnProperty(o)&&e[o]&&s.push("".concat(hF(t,o)));return s.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var nP=function(e){return wF(e)?e.filter(Boolean):mo(e)==="object"&&e!==null?[e]:[]},YT=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=jl(e,fF);return De({},n)},jt=function(e,n,r){var i=e.cx,s=e.getStyles,o=e.getClassNames,l=e.className;return{css:s(n,e),className:i(r??{},o(n,e),l)}};function cp(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function pF(t){return cp(t)?window.innerHeight:t.clientHeight}function zT(t){return cp(t)?window.pageYOffset:t.scrollTop}function ad(t,e){if(cp(t)){window.scrollTo(0,e);return}t.scrollTop=e}function mF(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function gF(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function df(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ld,i=zT(t),s=e-i,o=10,l=0;function a(){l+=o;var u=gF(l,i,s,n);ad(t,u),l<n?window.requestAnimationFrame(a):r(t)}a()}function rP(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=e.offsetHeight/3;r.bottom+i>n.bottom?ad(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i<n.top&&ad(t,Math.max(e.offsetTop-i,0))}function OF(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function iP(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function vF(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var qT=!1,yF={get passive(){return qT=!0}},pf=typeof window<"u"?window:{};pf.addEventListener&&pf.removeEventListener&&(pf.addEventListener("p",ld,yF),pf.removeEventListener("p",ld,!1));var SF=qT;function bF(t){return t!=null}function wF(t){return Array.isArray(t)}function mf(t,e,n){return t?e:n}var kF=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=Object.entries(e).filter(function(o){var l=ji(o,1),a=l[0];return!r.includes(a)});return s.reduce(function(o,l){var a=ji(l,2),u=a[0],c=a[1];return o[u]=c,o},{})};function PF(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,i=t.placement,s=t.shouldScroll,o=t.isFixedPosition,l=t.controlHeight,a=mF(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var c=a.getBoundingClientRect(),f=c.height,h=n.getBoundingClientRect(),p=h.bottom,d=h.height,m=h.top,O=n.offsetParent.getBoundingClientRect(),g=O.top,y=o?window.innerHeight:pF(a),v=zT(a),S=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),C=g-x,$=y-m,w=C+v,b=f-v-m,k=p-y+v+S,Q=v+m-x,A=160;switch(i){case"auto":case"bottom":if($>=d)return{placement:"bottom",maxHeight:e};if(b>=d&&!o)return s&&df(a,k,A),{placement:"bottom",maxHeight:e};if(!o&&b>=r||o&&$>=r){s&&df(a,k,A);var D=o?$-S:b-S;return{placement:"bottom",maxHeight:D}}if(i==="auto"||o){var L=e,z=o?C:w;return z>=r&&(L=Math.min(z-S-l,e)),{placement:"top",maxHeight:L}}if(i==="bottom")return s&&ad(a,k),{placement:"bottom",maxHeight:e};break;case"top":if(C>=d)return{placement:"top",maxHeight:e};if(w>=d&&!o)return s&&df(a,Q,A),{placement:"top",maxHeight:e};if(!o&&w>=r||o&&C>=r){var te=e;return(!o&&w>=r||o&&C>=r)&&(te=o?C-x:w-x),s&&df(a,Q,A),{placement:"top",maxHeight:te}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function xF(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var GT=function(e){return e==="auto"?"bottom":e},CF=function(e,n){var r,i=e.placement,s=e.theme,o=s.borderRadius,l=s.spacing,a=s.colors;return De((r={label:"menu"},_a(r,xF(i),"100%"),_a(r,"position","absolute"),_a(r,"width","100%"),_a(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:o,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})},HT=R.createContext(null),QF=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,s=e.menuPlacement,o=e.menuPosition,l=e.menuShouldScrollIntoView,a=e.theme,u=R.useContext(HT)||{},c=u.setPortalPlacement,f=R.useRef(null),h=R.useState(i),p=ji(h,2),d=p[0],m=p[1],O=R.useState(null),g=ji(O,2),y=g[0],v=g[1],S=a.spacing.controlHeight;return dv(function(){var x=f.current;if(x){var C=o==="fixed",$=l&&!C,w=PF({maxHeight:i,menuEl:x,minHeight:r,placement:s,shouldScroll:$,isFixedPosition:C,controlHeight:S});m(w.maxHeight),v(w.placement),c==null||c(w.placement)}},[i,s,o,l,r,c,S]),n({ref:f,placerProps:De(De({},e),{},{placement:y||GT(s),maxHeight:d})})},EF=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return $e("div",Te({},jt(e,"menu",{menu:!0}),{ref:r},i),n)},_F=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return De({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},$F=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,s=e.isMulti;return $e("div",Te({},jt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:i},r),n)},KT=function(e,n){var r=e.theme,i=r.spacing.baseUnit,s=r.colors;return De({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},TF=KT,AF=KT,JT=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)};JT.defaultProps={children:"No options"};var e2=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)};e2.defaultProps={children:"Loading..."};var RF=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},MF=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,s=e.innerProps,o=e.menuPlacement,l=e.menuPosition,a=R.useRef(null),u=R.useRef(null),c=R.useState(GT(o)),f=ji(c,2),h=f[0],p=f[1],d=R.useMemo(function(){return{setPortalPlacement:p}},[]),m=R.useState(null),O=ji(m,2),g=O[0],y=O[1],v=R.useCallback(function(){if(i){var $=OF(i),w=l==="fixed"?0:window.pageYOffset,b=$[h]+w;(b!==(g==null?void 0:g.offset)||$.left!==(g==null?void 0:g.rect.left)||$.width!==(g==null?void 0:g.rect.width))&&y({offset:b,rect:$})}},[i,l,h,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);dv(function(){v()},[v]);var S=R.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&a.current&&(u.current=cF(i,a.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);dv(function(){S()},[S]);var x=R.useCallback(function($){a.current=$,S()},[S]);if(!n&&l!=="fixed"||!g)return null;var C=$e("div",Te({ref:x},jt(De(De({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),r);return $e(HT.Provider,{value:d},n?Ya.createPortal(C,n):C)},DF=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},IF=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,s=e.isRtl;return $e("div",Te({},jt(e,"container",{"--is-disabled":i,"--is-rtl":s}),r),n)},LF=function(e,n){var r=e.theme.spacing,i=e.isMulti,s=e.hasValue,o=e.selectProps.controlShouldRenderValue;return De({alignItems:"center",display:i&&s&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},NF=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,s=e.hasValue;return $e("div",Te({},jt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s}),r),n)},VF=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},XF=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"indicatorsContainer",{indicators:!0}),r),n)},sP,jF=["size"],BF={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},t2=function(e){var n=e.size,r=jl(e,jF);return $e("svg",Te({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:BF},r))},Sy=function(e){return $e(t2,Te({size:20},e),$e("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"}))},n2=function(e){return $e(t2,Te({size:20},e),$e("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"}))},r2=function(e,n){var r=e.isFocused,i=e.theme,s=i.spacing.baseUnit,o=i.colors;return De({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2,":hover":{color:r?o.neutral80:o.neutral40}})},ZF=r2,WF=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||$e(n2,null))},UF=r2,FF=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||$e(Sy,null))},YF=function(e,n){var r=e.isDisabled,i=e.theme,s=i.spacing.baseUnit,o=i.colors;return De({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:s*2,marginTop:s*2})},zF=function(e){var n=e.innerProps;return $e("span",Te({},n,jt(e,"indicatorSeparator",{"indicator-separator":!0})))},qF=eF(sP||(sP=tF([`
|
|
87
87
|
0%, 80%, 100% { opacity: 0; }
|
|
88
88
|
40% { opacity: 1; }
|
|
89
|
-
`]))),GF=function(e,n){var r=e.isFocused,i=e.size,s=e.theme,o=s.colors,l=s.spacing.baseUnit;return De({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},zm=function(e){var n=e.delay,r=e.offset;return $e("span",{css:vy({animation:"".concat(qF," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},i2=function(e){var n=e.innerProps,r=e.isRtl;return $e("div",Te({},jt(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),$e(zm,{delay:0,offset:r}),$e(zm,{delay:160,offset:!0}),$e(zm,{delay:320,offset:!r}))};i2.defaultProps={size:4};var HF=function(e,n){var r=e.isDisabled,i=e.isFocused,s=e.theme,o=s.colors,l=s.borderRadius,a=s.spacing;return De({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},KF=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,s=e.innerRef,o=e.innerProps,l=e.menuIsOpen;return $e("div",Te({ref:s},jt(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),o),n)},JF=["data"],e8=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},t8=function(e){var n=e.children,r=e.cx,i=e.getStyles,s=e.getClassNames,o=e.Heading,l=e.headingProps,a=e.innerProps,u=e.label,c=e.theme,f=e.selectProps;return $e("div",Te({},jt(e,"group",{group:!0}),a),$e(o,Te({},l,{selectProps:f,theme:c,getStyles:i,getClassNames:s,cx:r}),u),$e("div",null,n))},n8=function(e,n){var r=e.theme,i=r.colors,s=r.spacing;return De({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},r8=function(e){var n=YT(e);n.data;var r=jl(n,JF);return $e("div",Te({},jt(e,"groupHeading",{"group-heading":!0}),r))},i8=["innerRef","isDisabled","isHidden","inputClassName"],s8=function(e,n){var r=e.isDisabled,i=e.value,s=e.theme,o=s.spacing,l=s.colors;return De(De({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},o8),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},s2={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},o8={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":De({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},s2)},l8=function(e){return De({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},s2)},a8=function(e){var n=e.cx,r=e.value,i=YT(e),s=i.innerRef,o=i.isDisabled,l=i.isHidden,a=i.inputClassName,u=jl(i,i8);return $e("div",Te({},jt(e,"input",{"input-container":!0}),{"data-value":r||""}),$e("input",Te({className:n({input:!0},a),ref:s,style:l8(l),disabled:o},u)))},u8=function(e,n){var r=e.theme,i=r.spacing,s=r.borderRadius,o=r.colors;return De({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},c8=function(e,n){var r=e.theme,i=r.borderRadius,s=r.colors,o=e.cropWithEllipsis;return De({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},f8=function(e,n){var r=e.theme,i=r.spacing,s=r.borderRadius,o=r.colors,l=e.isFocused;return De({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},o2=function(e){var n=e.children,r=e.innerProps;return $e("div",r,n)},h8=o2,d8=o2;function p8(t){var e=t.children,n=t.innerProps;return $e("div",Te({role:"button"},n),e||$e(Sy,{size:14}))}var m8=function(e){var n=e.children,r=e.components,i=e.data,s=e.innerProps,o=e.isDisabled,l=e.removeProps,a=e.selectProps,u=r.Container,c=r.Label,f=r.Remove;return $e(u,{data:i,innerProps:De(De({},jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),s),selectProps:a},$e(c,{data:i,innerProps:De({},jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),$e(f,{data:i,innerProps:De(De({},jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:a}))},g8=function(e,n){var r=e.isDisabled,i=e.isFocused,s=e.isSelected,o=e.theme,l=o.spacing,a=o.colors;return De({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:s?a.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?a.primary:a.primary50}})},O8=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,s=e.isSelected,o=e.innerRef,l=e.innerProps;return $e("div",Te({},jt(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":s}),{ref:o,"aria-disabled":r},l),n)},v8=function(e,n){var r=e.theme,i=r.spacing,s=r.colors;return De({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},y8=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"placeholder",{placeholder:!0}),r),n)},S8=function(e,n){var r=e.isDisabled,i=e.theme,s=i.spacing,o=i.colors;return De({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},b8=function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return $e("div",Te({},jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},w8={ClearIndicator:FF,Control:KF,DropdownIndicator:WF,DownChevron:n2,CrossIcon:Sy,Group:t8,GroupHeading:r8,IndicatorsContainer:XF,IndicatorSeparator:zF,Input:a8,LoadingIndicator:i2,Menu:EF,MenuList:$F,MenuPortal:MF,LoadingMessage:e2,NoOptionsMessage:JT,MultiValue:m8,MultiValueContainer:h8,MultiValueLabel:d8,MultiValueRemove:p8,Option:O8,Placeholder:y8,SelectContainer:IF,SingleValue:b8,ValueContainer:NF},k8=function(e){return De(De({},w8),e.components)},oP=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function P8(t,e){return!!(t===e||oP(t)&&oP(e))}function x8(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!P8(t[n],e[n]))return!1;return!0}function C8(t,e){e===void 0&&(e=x8);var n=null;function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var o=t.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var Q8={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"},lP=function(e){return $e("span",Te({css:Q8},e))},E8={guidance:function(e){var n=e.isSearchable,r=e.isMulti,i=e.isDisabled,s=e.tabSelectsValue,o=e.context;switch(o){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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,r=e.label,i=r===void 0?"":r,s=e.labels,o=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,s=e.label,o=s===void 0?"":s,l=e.selectValue,a=e.isDisabled,u=e.isSelected,c=function(d,m){return d&&d.length?"".concat(d.indexOf(m)+1," of ").concat(d.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(c(l,r),".");if(n==="menu"){var f=a?" disabled":"",h="".concat(u?"selected":"focused").concat(f);return"option ".concat(o," ").concat(h,", ").concat(c(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},_8=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,s=e.focusableOptions,o=e.isFocused,l=e.selectValue,a=e.selectProps,u=e.id,c=a.ariaLiveMessages,f=a.getOptionLabel,h=a.inputValue,p=a.isMulti,d=a.isOptionDisabled,m=a.isSearchable,O=a.menuIsOpen,g=a.options,y=a.screenReaderStatus,v=a.tabSelectsValue,S=a["aria-label"],x=a["aria-live"],C=R.useMemo(function(){return De(De({},E8),c||{})},[c]),$=R.useMemo(function(){var L="";if(n&&C.onChange){var z=n.option,te=n.options,ae=n.removedValue,X=n.removedValues,q=n.value,se=function(ut){return Array.isArray(ut)?null:ut},Ae=ae||z||se(q),ke=Ae?f(Ae):"",Be=te||X||void 0,Ke=Be?Be.map(f):[],xt=De({isDisabled:Ae&&d(Ae,l),label:ke,labels:Ke},n);L=C.onChange(xt)}return L},[n,C,d,l,f]),w=R.useMemo(function(){var L="",z=r||i,te=!!(r&&l&&l.includes(r));if(z&&C.onFocus){var ae={focused:z,label:f(z),isDisabled:d(z,l),isSelected:te,options:s,context:z===r?"menu":"value",selectValue:l};L=C.onFocus(ae)}return L},[r,i,f,d,C,s,l]),b=R.useMemo(function(){var L="";if(O&&g.length&&C.onFilter){var z=y({count:s.length});L=C.onFilter({inputValue:h,resultsMessage:z})}return L},[s,h,O,C,g,y]),k=R.useMemo(function(){var L="";if(C.guidance){var z=i?"value":O?"menu":"input";L=C.guidance({"aria-label":S,context:z,isDisabled:r&&d(r,l),isMulti:p,isSearchable:m,tabSelectsValue:v})}return L},[S,r,i,p,d,m,O,C,l,v]),Q="".concat(w," ").concat(b," ").concat(k),A=$e(R.Fragment,null,$e("span",{id:"aria-selection"},$),$e("span",{id:"aria-context"},Q)),D=(n==null?void 0:n.action)==="initial-input-focus";return $e(R.Fragment,null,$e(lP,{id:u},D&&A),$e(lP,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&!D&&A))},pv=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$8=new RegExp("["+pv.map(function(t){return t.letters}).join("")+"]","g"),l2={};for(var qm=0;qm<pv.length;qm++)for(var Gm=pv[qm],Hm=0;Hm<Gm.letters.length;Hm++)l2[Gm.letters[Hm]]=Gm.base;var a2=function(e){return e.replace($8,function(n){return l2[n]})},T8=C8(a2),aP=function(e){return e.replace(/^\s+|\s+$/g,"")},A8=function(e){return"".concat(e.label," ").concat(e.value)},R8=function(e){return function(n,r){if(n.data.__isNew__)return!0;var i=De({ignoreCase:!0,ignoreAccents:!0,stringify:A8,trim:!0,matchFrom:"any"},e),s=i.ignoreCase,o=i.ignoreAccents,l=i.stringify,a=i.trim,u=i.matchFrom,c=a?aP(r):r,f=a?aP(l(n)):l(n);return s&&(c=c.toLowerCase(),f=f.toLowerCase()),o&&(c=T8(c),f=a2(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},M8=["innerRef"];function D8(t){var e=t.innerRef,n=jl(t,M8),r=kF(n,"onExited","in","enter","exit","appear");return $e("input",Te({ref:e},r,{css:vy({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 I8=function(e){e.preventDefault(),e.stopPropagation()};function L8(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,s=t.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),a=R.useRef(0),u=R.useRef(null),c=R.useCallback(function(O,g){if(u.current!==null){var y=u.current,v=y.scrollTop,S=y.scrollHeight,x=y.clientHeight,C=u.current,$=g>0,w=S-x-v,b=!1;w>g&&o.current&&(r&&r(O),o.current=!1),$&&l.current&&(s&&s(O),l.current=!1),$&&g>w?(n&&!o.current&&n(O),C.scrollTop=S,b=!0,o.current=!0):!$&&-g>v&&(i&&!l.current&&i(O),C.scrollTop=0,b=!0,l.current=!0),b&&I8(O)}},[n,r,i,s]),f=R.useCallback(function(O){c(O,O.deltaY)},[c]),h=R.useCallback(function(O){a.current=O.changedTouches[0].clientY},[]),p=R.useCallback(function(O){var g=a.current-O.changedTouches[0].clientY;c(O,g)},[c]),d=R.useCallback(function(O){if(O){var g=SF?{passive:!1}:!1;O.addEventListener("wheel",f,g),O.addEventListener("touchstart",h,g),O.addEventListener("touchmove",p,g)}},[p,h,f]),m=R.useCallback(function(O){O&&(O.removeEventListener("wheel",f,!1),O.removeEventListener("touchstart",h,!1),O.removeEventListener("touchmove",p,!1))},[p,h,f]);return R.useEffect(function(){if(e){var O=u.current;return d(O),function(){m(O)}}},[e,d,m]),function(O){u.current=O}}var uP=["boxSizing","height","overflow","paddingRight","position"],cP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fP(t){t.preventDefault()}function hP(t){t.stopPropagation()}function dP(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function pP(){return"ontouchstart"in window||navigator.maxTouchPoints}var mP=!!(typeof window<"u"&&window.document&&window.document.createElement),Oa=0,Ro={capture:!1,passive:!1};function N8(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=R.useRef({}),s=R.useRef(null),o=R.useCallback(function(a){if(mP){var u=document.body,c=u&&u.style;if(r&&uP.forEach(function(d){var m=c&&c[d];i.current[d]=m}),r&&Oa<1){var f=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+f||0;Object.keys(cP).forEach(function(d){var m=cP[d];c&&(c[d]=m)}),c&&(c.paddingRight="".concat(p,"px"))}u&&pP()&&(u.addEventListener("touchmove",fP,Ro),a&&(a.addEventListener("touchstart",dP,Ro),a.addEventListener("touchmove",hP,Ro))),Oa+=1}},[r]),l=R.useCallback(function(a){if(mP){var u=document.body,c=u&&u.style;Oa=Math.max(Oa-1,0),r&&Oa<1&&uP.forEach(function(f){var h=i.current[f];c&&(c[f]=h)}),u&&pP()&&(u.removeEventListener("touchmove",fP,Ro),a&&(a.removeEventListener("touchstart",dP,Ro),a.removeEventListener("touchmove",hP,Ro)))}},[r]);return R.useEffect(function(){if(e){var a=s.current;return o(a),function(){l(a)}}},[e,o,l]),function(a){s.current=a}}var V8=function(){return document.activeElement&&document.activeElement.blur()},X8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function j8(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,s=t.onBottomArrive,o=t.onBottomLeave,l=t.onTopArrive,a=t.onTopLeave,u=L8({isEnabled:i,onBottomArrive:s,onBottomLeave:o,onTopArrive:l,onTopLeave:a}),c=N8({isEnabled:n}),f=function(p){u(p),c(p)};return $e(R.Fragment,null,n&&$e("div",{onClick:V8,css:X8}),e(f))}var B8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Z8=function(e){var n=e.name,r=e.onFocus;return $e("input",{required:!0,name:n,tabIndex:-1,onFocus:r,css:B8,value:"",onChange:function(){}})},W8=function(e){return e.label},U8=function(e){return e.label},F8=function(e){return e.value},Y8=function(e){return!!e.isDisabled},z8={clearIndicator:UF,container:DF,control:HF,dropdownIndicator:ZF,group:e8,groupHeading:n8,indicatorsContainer:VF,indicatorSeparator:YF,input:s8,loadingIndicator:GF,loadingMessage:AF,menu:CF,menuList:_F,menuPortal:RF,multiValue:u8,multiValueLabel:c8,multiValueRemove:f8,noOptionsMessage:TF,option:g8,placeholder:v8,singleValue:S8,valueContainer:LF},q8={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%)"},G8=4,u2=4,H8=38,K8=u2*2,J8={baseUnit:u2,controlHeight:H8,menuGutter:K8},Km={borderRadius:G8,colors:q8,spacing:J8},eY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:iP(),captureMenuScroll:!iP(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:R8(),formatGroupLabel:W8,getOptionLabel:U8,getOptionValue:F8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Y8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!vF(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gP(t,e,n,r){var i=d2(t,e,n),s=p2(t,e,n),o=h2(t,e),l=ud(t,e);return{type:"option",data:e,isDisabled:i,isSelected:s,label:o,value:l,index:r}}function c2(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,l){return gP(t,o,e,l)}).filter(function(o){return OP(t,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var s=gP(t,n,e,r);return OP(t,s)?s:void 0}).filter(bF)}function f2(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,xT(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function tY(t,e){return f2(c2(t,e))}function OP(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,s=e.isSelected,o=e.label,l=e.value;return(!g2(t)||!s)&&m2(t,{label:o,value:l,data:i},r)}function nY(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var s=e.indexOf(n);if(s>-1)return n;if(i<e.length)return e[i]}return null}function rY(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var h2=function(e,n){return e.getOptionLabel(n)},ud=function(e,n){return e.getOptionValue(n)};function d2(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function p2(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=ud(t,e);return n.some(function(i){return ud(t,i)===r})}function m2(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var g2=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},iY=1,O2=function(t){YW(n,t);var e=HW(n);function n(r){var i;if(UW(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,a){var u=i.props,c=u.onChange,f=u.name;a.name=f,i.ariaOnChange(l,a),c(l,a)},i.setValue=function(l,a,u){var c=i.props,f=c.closeMenuOnSelect,h=c.isMulti,p=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:p}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:a,option:u})},i.selectOption=function(l){var a=i.props,u=a.blurInputOnSelect,c=a.isMulti,f=a.name,h=i.state.selectValue,p=c&&i.isOptionSelected(l,h),d=i.isOptionDisabled(l,h);if(p){var m=i.getOptionValue(l);i.setValue(h.filter(function(O){return i.getOptionValue(O)!==m}),"deselect-option",l)}else if(!d)c?i.setValue([].concat(xT(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&i.blurInput()},i.removeValue=function(l){var a=i.props.isMulti,u=i.state.selectValue,c=i.getOptionValue(l),f=u.filter(function(p){return i.getOptionValue(p)!==c}),h=mf(a,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(mf(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,a=i.state.selectValue,u=a[a.length-1],c=a.slice(0,a.length-1),f=mf(l,c,c[0]||null);i.onChange(f,{action:"pop-value",removedValue:u})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,a=new Array(l),u=0;u<l;u++)a[u]=arguments[u];return dF.apply(void 0,[i.props.classNamePrefix].concat(a))},i.getOptionLabel=function(l){return h2(i.props,l)},i.getOptionValue=function(l){return ud(i.props,l)},i.getStyles=function(l,a){var u=i.props.unstyled,c=z8[l](a,u);c.boxSizing="border-box";var f=i.props.styles[l];return f?f(c,a):c},i.getClassNames=function(l,a){var u,c;return(u=(c=i.props.classNames)[l])===null||u===void 0?void 0:u.call(c,a)},i.getElementId=function(l){return"".concat(i.instancePrefix,"-").concat(l)},i.getComponents=function(){return k8(i.props)},i.buildCategorizedOptions=function(){return c2(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return f2(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,a){i.setState({ariaSelection:De({value:l},a)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var a=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():a&&i.openMenu("first"):(a&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var a=i.props,u=a.isMulti,c=a.menuIsOpen;i.focusInput(),c?(i.setState({inputIsHiddenAfterUpdate:!u}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&cp(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var a=l.touches,u=a&&a.item(0);u&&(i.initialTouchX=u.clientX,i.initialTouchY=u.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var a=l.touches,u=a&&a.item(0);if(u){var c=Math.abs(u.clientX-i.initialTouchX),f=Math.abs(u.clientY-i.initialTouchY),h=5;i.userIsDragging=c>h||f>h}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var a=i.props.inputValue,u=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:a}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var a=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:a}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){i.blockOptionHover||i.state.focusedOption===l||i.setState({focusedOption:l})},i.shouldHideSelectedOptions=function(){return g2(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var a=i.props,u=a.isMulti,c=a.backspaceRemovesValue,f=a.escapeClearsValue,h=a.inputValue,p=a.isClearable,d=a.isDisabled,m=a.menuIsOpen,O=a.onKeyDown,g=a.tabSelectsValue,y=a.openMenuOnFocus,v=i.state,S=v.focusedOption,x=v.focusedValue,C=v.selectValue;if(!d&&!(typeof O=="function"&&(O(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;i.focusValue("previous");break;case"ArrowRight":if(!u||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(x)i.removeValue(x);else{if(!c)return;u?i.popValue():p&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!g||!S||y&&i.isOptionSelected(S,C))return;i.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(m){if(!S||i.isComposing)return;i.selectOption(S);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):p&&f&&i.clearValue();break;case" ":if(h)return;if(!m){i.openMenu("first");break}if(!S)return;i.selectOption(S);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++iY),i.state.selectValue=nP(r.value),r.menuIsOpen&&i.state.selectValue.length){var s=i.buildFocusableOptions(),o=s.indexOf(i.state.selectValue[0]);i.state.focusedOption=s[o]}return i}return FW(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rP(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,o=s.isDisabled,l=s.menuIsOpen,a=this.state.isFocused;(a&&!o&&i.isDisabled||a&&l&&!i.menuIsOpen)&&this.focusInput(),a&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rP(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,o=this.state,l=o.selectValue,a=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,o=s.selectValue,l=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=o.indexOf(l);l||(a=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":a===0?c=0:a===-1?c=u:c=a-1;break;case"next":a>-1&&a<u&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var a=0,u=l.indexOf(o);o||(u=-1),i==="up"?a=u>0?u-1:l.length-1:i==="down"?a=(u+1)%l.length:i==="pageup"?(a=u-s,a<0&&(a=0)):i==="pagedown"?(a=u+s,a>l.length-1&&(a=l.length-1)):i==="last"&&(a=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Km):De(De({},Km),this.props.theme):Km}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,o=this.getStyles,l=this.getClassNames,a=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,h=f.isMulti,p=f.isRtl,d=f.options,m=this.hasValue();return{clearValue:i,cx:s,getStyles:o,getClassNames:l,getValue:a,hasValue:m,isMulti:h,isRtl:p,options:d,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,o=i.isMulti;return s===void 0?o:s}},{key:"isOptionDisabled",value:function(i,s){return d2(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return p2(this.props,i,s)}},{key:"filterOption",value:function(i,s){return m2(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:o,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,o=i.isSearchable,l=i.inputId,a=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,h=i.required,p=this.getComponents(),d=p.Input,m=this.state,O=m.inputIsHidden,g=m.ariaSelection,y=this.commonProps,v=l||this.getElementId("input"),S=De(De(De({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(d,Te({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:s,isHidden:O,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:a},S)):R.createElement(D8,Te({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ld,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),o=s.MultiValue,l=s.MultiValueContainer,a=s.MultiValueLabel,u=s.MultiValueRemove,c=s.SingleValue,f=s.Placeholder,h=this.commonProps,p=this.props,d=p.controlShouldRenderValue,m=p.isDisabled,O=p.isMulti,g=p.inputValue,y=p.placeholder,v=this.state,S=v.selectValue,x=v.focusedValue,C=v.isFocused;if(!this.hasValue()||!d)return g?null:R.createElement(f,Te({},h,{key:"placeholder",isDisabled:m,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),y);if(O)return S.map(function(w,b){var k=w===x,Q="".concat(i.getOptionLabel(w),"-").concat(i.getOptionValue(w));return R.createElement(o,Te({},h,{components:{Container:l,Label:a,Remove:u},isFocused:k,isDisabled:m,key:Q,index:b,removeProps:{onClick:function(){return i.removeValue(w)},onTouchEnd:function(){return i.removeValue(w)},onMouseDown:function(D){D.preventDefault()}},data:w}),i.formatOptionLabel(w,"value"))});if(g)return null;var $=S[0];return R.createElement(c,Te({},h,{data:$,isDisabled:m}),this.formatOptionLabel($,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,o=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!s||a||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,o=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!s||!u)return null;var f={"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:f,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,o=i.IndicatorSeparator;if(!s||!o)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused;return R.createElement(o,Te({},l,{isDisabled:a,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var o=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:u,isDisabled:l,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),o=s.Group,l=s.GroupHeading,a=s.Menu,u=s.MenuList,c=s.MenuPortal,f=s.LoadingMessage,h=s.NoOptionsMessage,p=s.Option,d=this.commonProps,m=this.state.focusedOption,O=this.props,g=O.captureMenuScroll,y=O.inputValue,v=O.isLoading,S=O.loadingMessage,x=O.minMenuHeight,C=O.maxMenuHeight,$=O.menuIsOpen,w=O.menuPlacement,b=O.menuPosition,k=O.menuPortalTarget,Q=O.menuShouldBlockScroll,A=O.menuShouldScrollIntoView,D=O.noOptionsMessage,L=O.onMenuScrollToTop,z=O.onMenuScrollToBottom;if(!$)return null;var te=function(Be,Ke){var xt=Be.type,ct=Be.data,ut=Be.isDisabled,$n=Be.isSelected,vn=Be.label,I=Be.value,j=m===ct,H=ut?void 0:function(){return i.onOptionHover(ct)},J=ut?void 0:function(){return i.selectOption(ct)},W="".concat(i.getElementId("option"),"-").concat(Ke),U={id:W,onClick:J,onMouseMove:H,onMouseOver:H,tabIndex:-1};return R.createElement(p,Te({},d,{innerProps:U,data:ct,isDisabled:ut,isSelected:$n,key:W,label:vn,type:xt,value:I,isFocused:j,innerRef:j?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Be.data,"menu"))},ae;if(this.hasOptions())ae=this.getCategorizedOptions().map(function(ke){if(ke.type==="group"){var Be=ke.data,Ke=ke.options,xt=ke.index,ct="".concat(i.getElementId("group"),"-").concat(xt),ut="".concat(ct,"-heading");return R.createElement(o,Te({},d,{key:ct,data:Be,options:Ke,Heading:l,headingProps:{id:ut,data:ke.data},label:i.formatGroupLabel(ke.data)}),ke.options.map(function($n){return te($n,"".concat(xt,"-").concat($n.index))}))}else if(ke.type==="option")return te(ke,"".concat(ke.index))});else if(v){var X=S({inputValue:y});if(X===null)return null;ae=R.createElement(f,d,X)}else{var q=D({inputValue:y});if(q===null)return null;ae=R.createElement(h,d,q)}var se={minMenuHeight:x,maxMenuHeight:C,menuPlacement:w,menuPosition:b,menuShouldScrollIntoView:A},Ae=R.createElement(QF,Te({},d,se),function(ke){var Be=ke.ref,Ke=ke.placerProps,xt=Ke.placement,ct=Ke.maxHeight;return R.createElement(a,Te({},d,se,{innerRef:Be,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:v,placement:xt}),R.createElement(j8,{captureEnabled:g,onTopArrive:L,onBottomArrive:z,lockEnabled:Q},function(ut){return R.createElement(u,Te({},d,{innerRef:function(vn){i.getMenuListRef(vn),ut(vn)},isLoading:v,maxHeight:ct,focusedOption:m}),ae)}))});return k||b==="fixed"?R.createElement(c,Te({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:b}),Ae):Ae}},{key:"renderFormField",value:function(){var i=this,s=this.props,o=s.delimiter,l=s.isDisabled,a=s.isMulti,u=s.name,c=s.required,f=this.state.selectValue;if(!(!u||l)){if(c&&!this.hasValue())return R.createElement(Z8,{name:u,onFocus:this.onValueInputFocus});if(a)if(o){var h=f.map(function(m){return i.getOptionValue(m)}).join(o);return R.createElement("input",{name:u,type:"hidden",value:h})}else{var p=f.length>0?f.map(function(m,O){return R.createElement("input",{key:"i-".concat(O),name:u,type:"hidden",value:i.getOptionValue(m)})}):R.createElement("input",{name:u,type:"hidden",value:""});return R.createElement("div",null,p)}else{var d=f[0]?this.getOptionValue(f[0]):"";return R.createElement("input",{name:u,type:"hidden",value:d})}}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,o=s.ariaSelection,l=s.focusedOption,a=s.focusedValue,u=s.isFocused,c=s.selectValue,f=this.getFocusableOptions();return R.createElement(_8,Te({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:a,isFocused:u,selectValue:c,focusableOptions:f}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,o=i.IndicatorsContainer,l=i.SelectContainer,a=i.ValueContainer,u=this.props,c=u.className,f=u.id,h=u.isDisabled,p=u.menuIsOpen,d=this.state.isFocused,m=this.commonProps=this.getCommonProps();return R.createElement(l,Te({},m,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:d}),this.renderLiveRegion(),R.createElement(s,Te({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:d,menuIsOpen:p}),R.createElement(a,Te({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,Te({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var o=s.prevProps,l=s.clearFocusValueOnUpdate,a=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,c=s.isFocused,f=s.prevWasFocused,h=i.options,p=i.value,d=i.menuIsOpen,m=i.inputValue,O=i.isMulti,g=nP(p),y={};if(o&&(p!==o.value||h!==o.options||d!==o.menuIsOpen||m!==o.inputValue)){var v=d?tY(i,g):[],S=l?nY(s,g):null,x=rY(s,v);y={selectValue:g,focusedOption:x,focusedValue:S,clearFocusValueOnUpdate:!1}}var C=a!=null&&i!==o?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},$=u,w=c&&f;return c&&!w&&($={value:mf(O,g,g[0]||null),options:g,action:"initial-input-focus"},w=!f),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),De(De(De({},y),C),{},{prevProps:i,ariaSelection:$,prevWasFocused:w})}}]),n}(R.Component);O2.defaultProps=eY;var sY=R.forwardRef(function(t,e){var n=WW(t);return R.createElement(O2,Te({ref:e},n))});const vP=sY,oY=[{value:"default",label:"default"},{value:"3024-day",label:"3024-day"},{value:"3024-night",label:"3024-night"},{value:"abbott",label:"abbott"},{value:"abcdef",label:"abcdef"},{value:"ambiance",label:"ambiance"},{value:"ayu-dark",label:"ayu-dark"},{value:"ayu-mirage",label:"ayu-mirage"},{value:"base16-dark",label:"base16-dark"},{value:"base16-light",label:"base16-light"},{value:"bespin",label:"bespin"},{value:"blackboard",label:"blackboard"},{value:"cobalt",label:"cobalt"},{value:"colorforth",label:"colorforth"},{value:"darcula",label:"darcula"},{value:"duotone-dark",label:"duotone-dark"},{value:"duotone-light",label:"duotone-light"},{value:"eclipse",label:"eclipse"},{value:"elegant",label:"elegant"},{value:"erlang-dark",label:"erlang-dark"},{value:"gruvbox-dark",label:"gruvbox-dark"},{value:"hopscotch",label:"hopscotch"},{value:"icecoder",label:"icecoder"},{value:"idea",label:"idea"},{value:"isotope",label:"isotope"},{value:"juejin",label:"juejin"},{value:"lesser-dark",label:"lesser-dark"},{value:"liquibyte",label:"liquibyte"},{value:"lucario",label:"lucario"},{value:"material",label:"material"},{value:"material-darker",label:"material-darker"},{value:"material-palenight",label:"material-palenight"},{value:"material-ocean",label:"material-ocean"},{value:"mbo",label:"mbo"},{value:"mdn-like",label:"mdn-like"},{value:"midnight",label:"midnight"},{value:"monokai",label:"monokai"},{value:"moxer",label:"moxer"},{value:"neat",label:"neat"},{value:"neo",label:"neo"},{value:"night",label:"night"},{value:"nord",label:"nord"},{value:"oceanic-next",label:"oceanic-next"},{value:"OneDark",label:"One Dark"},{value:"panda-syntax",label:"panda-syntax"},{value:"paraiso-dark",label:"paraiso-dark"},{value:"paraiso-light",label:"paraiso-light"},{value:"pastel-on-dark",label:"pastel-on-dark"},{value:"railscasts",label:"railscasts"},{value:"rubyblue",label:"rubyblue"},{value:"seti",label:"seti"},{value:"shadowfox",label:"shadowfox"},{value:"solarized",label:"solarized"},{value:"ssms",label:"ssms"},{value:"the-matrix",label:"the-matrix"},{value:"tomorrow-night-bright",label:"tomorrow-night-bright"},{value:"tomorrow-night-eighties",label:"tomorrow-night-eighties"},{value:"ttcn",label:"ttcn"},{value:"twilight",label:"twilight"},{value:"vibrant-ink",label:"vibrant-ink"},{value:"xq-dark",label:"xq-dark"},{value:"xq-light",label:"xq-light"},{value:"yeti",label:"yeti"},{value:"yonce",label:"yonce"},{value:"zenburn",label:"zenburn"}],lY=[{value:1,label:"1 second"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}],aY=({show:t,onClose:e,setTheme:n})=>{const r=R.useCallback(s=>{n(s.value)},[]),i=R.useCallback(s=>{const o=[{value:s.value}];fetch("/saveTime",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})},[]);return t?kn(ma,{show:t,onHide:e,animation:!1,children:[fe(ma.Header,{closeButton:!0,children:fe(ma.Title,{children:"Settings"})}),kn(ma.Body,{children:[kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Username"}),fe(ri.Control,{type:"text",placeholder:"Enter username"}),fe(ri.Text,{className:"text-muted",children:"Enter a username to be displayed on your cursor"})]}),kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Theme"}),fe(vP,{classvalue:"themes",options:oY,onChange:r}),fe(ri.Text,{className:"text-muted",children:"Select a color theme for the editor"})]}),kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Auto-Save Time"}),fe(vP,{classvalue:"themes",options:lY,onChange:i}),fe(ri.Text,{className:"text-muted",children:"Select an auto save time"})]})]}),fe(ma.Footer,{children:fe(cy,{variant:"primary",onClick:e,children:"Done"})})]}):null};EC.types.register(u0.type);const{Connection:uY}=EC,cY=new WebSocket("ws://"+window.location.host+"/ws"),fY=new uY(cY);function hY(){const[t,e]=R.useState(null),[n,r]=R.useState(null),[i,s]=R.useState(null),[o,l]=R.useState(null);R.useState(!1);const[a,u]=R.useState(null),[c,f]=R.useState([]),[h,p]=R.useState("OneDark"),[d,m]=R.useState(!1),[O,g]=R.useState(!1);R.useEffect(()=>{const k="documents",Q="1",A=fY.get(k,Q);A.subscribe(()=>{e(A),l(A.data),A.on("op",L=>{l(A.data)});const D=A.connection.getDocPresence(k,Q);D.subscribe(function(L){if(L)throw L}),r(D.create(gk())),s(D)})},[]);const y=R.useCallback(k=>{const Q=c.findIndex(A=>A===k);if(Q!==-1){const A=[...c.slice(0,Q),...c.slice(Q+1)];f(A),a===k&&(A.length>0?u(Q===0?A[Q]:A[Q-1]):u(null))}},[c,a]),v=R.useCallback(k=>Q=>{Q.stopPropagation(),y(k)},[y]),S=R.useCallback(k=>{const Q=prompt("Enter new name");if(Q){const A=t.data,D={...A,[k]:{...A[k],name:Q}};t.submitOp(Xm(A,D))}},[t]),x=R.useCallback(k=>{y(k);const Q=t.data,A={...Q};delete A[k],t.submitOp(Xm(Q,A))},[t,y]),C=R.useCallback(k=>Q=>{Q.stopPropagation(),x(k)},[x]),$=R.useCallback(()=>{const k=prompt("Enter new file name");if(!k)return;const Q=t.data,A={...Q,[gk()]:{name:k,text:""}};t.submitOp(Xm(Q,A))},[t]),w=o&&a,b=R.useCallback(()=>{g(!1)},[]);return kn(Ff,{children:[fe(aY,{show:O,onClose:b,setTheme:p}),fe("div",{className:"tab-list",children:c.map(k=>kn("div",{className:w?`tab${k===a?" active":""}`:null,onClick:()=>{u(k)},children:[w?o[k].name:"",fe("div",{className:a?"bx bx-x tab-close":"",onClick:v(k)})]},k))}),fe("div",{className:"sidebar show",children:kn("div",{className:"nav-links",children:[fe("div",{className:"show-menu",children:kn("div",{className:"sub-menu",children:[fe("div",{className:"files",children:kn("div",{className:"full-Box",children:[fe("div",{children:fe("a",{className:"link-name",href:"#",children:"Files"})}),fe("div",{children:fe("i",{className:"bx bxs-file-plus newBTN",style:{color:"#dbdde1"},onClick:$})})]})}),o?Object.keys(o).map(k=>fe("div",{className:"file",children:kn("div",{className:"full-Box",onClick:()=>{u(k),c.includes(k)||f([...c,k])},onMouseEnter:()=>{m(k)},onMouseLeave:()=>{m(null)},children:[fe("div",{className:d===k?"name":"",children:o[k].name}),kn("div",{className:d===k?"utils":"noUtils",children:[fe("i",{className:"bx bxs-edit utilities",style:{color:"#abdafb"},onClick:()=>{S(k)}}),fe("i",{className:"bx bx-trash",style:{color:"#eb336c"},onClick:C(k)})]})]})},k)):null]})}),null]})}),o&&a?fe(Aj,{className:"editor",shareDBDoc:t,localPresence:n,docPresence:i,activeFileId:a,theme:h}):null]})}QC(document.getElementById("root")).render(fe(R.StrictMode,{children:fe(hY,{})}));
|
|
89
|
+
`]))),GF=function(e,n){var r=e.isFocused,i=e.size,s=e.theme,o=s.colors,l=s.spacing.baseUnit;return De({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},zm=function(e){var n=e.delay,r=e.offset;return $e("span",{css:vy({animation:"".concat(qF," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},i2=function(e){var n=e.innerProps,r=e.isRtl;return $e("div",Te({},jt(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),$e(zm,{delay:0,offset:r}),$e(zm,{delay:160,offset:!0}),$e(zm,{delay:320,offset:!r}))};i2.defaultProps={size:4};var HF=function(e,n){var r=e.isDisabled,i=e.isFocused,s=e.theme,o=s.colors,l=s.borderRadius,a=s.spacing;return De({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},KF=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,s=e.innerRef,o=e.innerProps,l=e.menuIsOpen;return $e("div",Te({ref:s},jt(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),o),n)},JF=["data"],e8=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},t8=function(e){var n=e.children,r=e.cx,i=e.getStyles,s=e.getClassNames,o=e.Heading,l=e.headingProps,a=e.innerProps,u=e.label,c=e.theme,f=e.selectProps;return $e("div",Te({},jt(e,"group",{group:!0}),a),$e(o,Te({},l,{selectProps:f,theme:c,getStyles:i,getClassNames:s,cx:r}),u),$e("div",null,n))},n8=function(e,n){var r=e.theme,i=r.colors,s=r.spacing;return De({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},r8=function(e){var n=YT(e);n.data;var r=jl(n,JF);return $e("div",Te({},jt(e,"groupHeading",{"group-heading":!0}),r))},i8=["innerRef","isDisabled","isHidden","inputClassName"],s8=function(e,n){var r=e.isDisabled,i=e.value,s=e.theme,o=s.spacing,l=s.colors;return De(De({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},o8),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},s2={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},o8={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":De({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},s2)},l8=function(e){return De({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},s2)},a8=function(e){var n=e.cx,r=e.value,i=YT(e),s=i.innerRef,o=i.isDisabled,l=i.isHidden,a=i.inputClassName,u=jl(i,i8);return $e("div",Te({},jt(e,"input",{"input-container":!0}),{"data-value":r||""}),$e("input",Te({className:n({input:!0},a),ref:s,style:l8(l),disabled:o},u)))},u8=function(e,n){var r=e.theme,i=r.spacing,s=r.borderRadius,o=r.colors;return De({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},c8=function(e,n){var r=e.theme,i=r.borderRadius,s=r.colors,o=e.cropWithEllipsis;return De({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},f8=function(e,n){var r=e.theme,i=r.spacing,s=r.borderRadius,o=r.colors,l=e.isFocused;return De({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},o2=function(e){var n=e.children,r=e.innerProps;return $e("div",r,n)},h8=o2,d8=o2;function p8(t){var e=t.children,n=t.innerProps;return $e("div",Te({role:"button"},n),e||$e(Sy,{size:14}))}var m8=function(e){var n=e.children,r=e.components,i=e.data,s=e.innerProps,o=e.isDisabled,l=e.removeProps,a=e.selectProps,u=r.Container,c=r.Label,f=r.Remove;return $e(u,{data:i,innerProps:De(De({},jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),s),selectProps:a},$e(c,{data:i,innerProps:De({},jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),$e(f,{data:i,innerProps:De(De({},jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:a}))},g8=function(e,n){var r=e.isDisabled,i=e.isFocused,s=e.isSelected,o=e.theme,l=o.spacing,a=o.colors;return De({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:s?a.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?a.primary:a.primary50}})},O8=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,s=e.isSelected,o=e.innerRef,l=e.innerProps;return $e("div",Te({},jt(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":s}),{ref:o,"aria-disabled":r},l),n)},v8=function(e,n){var r=e.theme,i=r.spacing,s=r.colors;return De({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},y8=function(e){var n=e.children,r=e.innerProps;return $e("div",Te({},jt(e,"placeholder",{placeholder:!0}),r),n)},S8=function(e,n){var r=e.isDisabled,i=e.theme,s=i.spacing,o=i.colors;return De({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},b8=function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return $e("div",Te({},jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},w8={ClearIndicator:FF,Control:KF,DropdownIndicator:WF,DownChevron:n2,CrossIcon:Sy,Group:t8,GroupHeading:r8,IndicatorsContainer:XF,IndicatorSeparator:zF,Input:a8,LoadingIndicator:i2,Menu:EF,MenuList:$F,MenuPortal:MF,LoadingMessage:e2,NoOptionsMessage:JT,MultiValue:m8,MultiValueContainer:h8,MultiValueLabel:d8,MultiValueRemove:p8,Option:O8,Placeholder:y8,SelectContainer:IF,SingleValue:b8,ValueContainer:NF},k8=function(e){return De(De({},w8),e.components)},oP=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function P8(t,e){return!!(t===e||oP(t)&&oP(e))}function x8(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!P8(t[n],e[n]))return!1;return!0}function C8(t,e){e===void 0&&(e=x8);var n=null;function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var o=t.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var Q8={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"},lP=function(e){return $e("span",Te({css:Q8},e))},E8={guidance:function(e){var n=e.isSearchable,r=e.isMulti,i=e.isDisabled,s=e.tabSelectsValue,o=e.context;switch(o){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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,r=e.label,i=r===void 0?"":r,s=e.labels,o=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,s=e.label,o=s===void 0?"":s,l=e.selectValue,a=e.isDisabled,u=e.isSelected,c=function(d,m){return d&&d.length?"".concat(d.indexOf(m)+1," of ").concat(d.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(c(l,r),".");if(n==="menu"){var f=a?" disabled":"",h="".concat(u?"selected":"focused").concat(f);return"option ".concat(o," ").concat(h,", ").concat(c(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},_8=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,s=e.focusableOptions,o=e.isFocused,l=e.selectValue,a=e.selectProps,u=e.id,c=a.ariaLiveMessages,f=a.getOptionLabel,h=a.inputValue,p=a.isMulti,d=a.isOptionDisabled,m=a.isSearchable,O=a.menuIsOpen,g=a.options,y=a.screenReaderStatus,v=a.tabSelectsValue,S=a["aria-label"],x=a["aria-live"],C=R.useMemo(function(){return De(De({},E8),c||{})},[c]),$=R.useMemo(function(){var L="";if(n&&C.onChange){var z=n.option,te=n.options,ae=n.removedValue,X=n.removedValues,q=n.value,se=function(ut){return Array.isArray(ut)?null:ut},Ae=ae||z||se(q),ke=Ae?f(Ae):"",Be=te||X||void 0,Ke=Be?Be.map(f):[],xt=De({isDisabled:Ae&&d(Ae,l),label:ke,labels:Ke},n);L=C.onChange(xt)}return L},[n,C,d,l,f]),w=R.useMemo(function(){var L="",z=r||i,te=!!(r&&l&&l.includes(r));if(z&&C.onFocus){var ae={focused:z,label:f(z),isDisabled:d(z,l),isSelected:te,options:s,context:z===r?"menu":"value",selectValue:l};L=C.onFocus(ae)}return L},[r,i,f,d,C,s,l]),b=R.useMemo(function(){var L="";if(O&&g.length&&C.onFilter){var z=y({count:s.length});L=C.onFilter({inputValue:h,resultsMessage:z})}return L},[s,h,O,C,g,y]),k=R.useMemo(function(){var L="";if(C.guidance){var z=i?"value":O?"menu":"input";L=C.guidance({"aria-label":S,context:z,isDisabled:r&&d(r,l),isMulti:p,isSearchable:m,tabSelectsValue:v})}return L},[S,r,i,p,d,m,O,C,l,v]),Q="".concat(w," ").concat(b," ").concat(k),A=$e(R.Fragment,null,$e("span",{id:"aria-selection"},$),$e("span",{id:"aria-context"},Q)),D=(n==null?void 0:n.action)==="initial-input-focus";return $e(R.Fragment,null,$e(lP,{id:u},D&&A),$e(lP,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&!D&&A))},pv=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$8=new RegExp("["+pv.map(function(t){return t.letters}).join("")+"]","g"),l2={};for(var qm=0;qm<pv.length;qm++)for(var Gm=pv[qm],Hm=0;Hm<Gm.letters.length;Hm++)l2[Gm.letters[Hm]]=Gm.base;var a2=function(e){return e.replace($8,function(n){return l2[n]})},T8=C8(a2),aP=function(e){return e.replace(/^\s+|\s+$/g,"")},A8=function(e){return"".concat(e.label," ").concat(e.value)},R8=function(e){return function(n,r){if(n.data.__isNew__)return!0;var i=De({ignoreCase:!0,ignoreAccents:!0,stringify:A8,trim:!0,matchFrom:"any"},e),s=i.ignoreCase,o=i.ignoreAccents,l=i.stringify,a=i.trim,u=i.matchFrom,c=a?aP(r):r,f=a?aP(l(n)):l(n);return s&&(c=c.toLowerCase(),f=f.toLowerCase()),o&&(c=T8(c),f=a2(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},M8=["innerRef"];function D8(t){var e=t.innerRef,n=jl(t,M8),r=kF(n,"onExited","in","enter","exit","appear");return $e("input",Te({ref:e},r,{css:vy({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 I8=function(e){e.preventDefault(),e.stopPropagation()};function L8(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,s=t.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),a=R.useRef(0),u=R.useRef(null),c=R.useCallback(function(O,g){if(u.current!==null){var y=u.current,v=y.scrollTop,S=y.scrollHeight,x=y.clientHeight,C=u.current,$=g>0,w=S-x-v,b=!1;w>g&&o.current&&(r&&r(O),o.current=!1),$&&l.current&&(s&&s(O),l.current=!1),$&&g>w?(n&&!o.current&&n(O),C.scrollTop=S,b=!0,o.current=!0):!$&&-g>v&&(i&&!l.current&&i(O),C.scrollTop=0,b=!0,l.current=!0),b&&I8(O)}},[n,r,i,s]),f=R.useCallback(function(O){c(O,O.deltaY)},[c]),h=R.useCallback(function(O){a.current=O.changedTouches[0].clientY},[]),p=R.useCallback(function(O){var g=a.current-O.changedTouches[0].clientY;c(O,g)},[c]),d=R.useCallback(function(O){if(O){var g=SF?{passive:!1}:!1;O.addEventListener("wheel",f,g),O.addEventListener("touchstart",h,g),O.addEventListener("touchmove",p,g)}},[p,h,f]),m=R.useCallback(function(O){O&&(O.removeEventListener("wheel",f,!1),O.removeEventListener("touchstart",h,!1),O.removeEventListener("touchmove",p,!1))},[p,h,f]);return R.useEffect(function(){if(e){var O=u.current;return d(O),function(){m(O)}}},[e,d,m]),function(O){u.current=O}}var uP=["boxSizing","height","overflow","paddingRight","position"],cP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fP(t){t.preventDefault()}function hP(t){t.stopPropagation()}function dP(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function pP(){return"ontouchstart"in window||navigator.maxTouchPoints}var mP=!!(typeof window<"u"&&window.document&&window.document.createElement),Oa=0,Ro={capture:!1,passive:!1};function N8(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=R.useRef({}),s=R.useRef(null),o=R.useCallback(function(a){if(mP){var u=document.body,c=u&&u.style;if(r&&uP.forEach(function(d){var m=c&&c[d];i.current[d]=m}),r&&Oa<1){var f=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+f||0;Object.keys(cP).forEach(function(d){var m=cP[d];c&&(c[d]=m)}),c&&(c.paddingRight="".concat(p,"px"))}u&&pP()&&(u.addEventListener("touchmove",fP,Ro),a&&(a.addEventListener("touchstart",dP,Ro),a.addEventListener("touchmove",hP,Ro))),Oa+=1}},[r]),l=R.useCallback(function(a){if(mP){var u=document.body,c=u&&u.style;Oa=Math.max(Oa-1,0),r&&Oa<1&&uP.forEach(function(f){var h=i.current[f];c&&(c[f]=h)}),u&&pP()&&(u.removeEventListener("touchmove",fP,Ro),a&&(a.removeEventListener("touchstart",dP,Ro),a.removeEventListener("touchmove",hP,Ro)))}},[r]);return R.useEffect(function(){if(e){var a=s.current;return o(a),function(){l(a)}}},[e,o,l]),function(a){s.current=a}}var V8=function(){return document.activeElement&&document.activeElement.blur()},X8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function j8(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,s=t.onBottomArrive,o=t.onBottomLeave,l=t.onTopArrive,a=t.onTopLeave,u=L8({isEnabled:i,onBottomArrive:s,onBottomLeave:o,onTopArrive:l,onTopLeave:a}),c=N8({isEnabled:n}),f=function(p){u(p),c(p)};return $e(R.Fragment,null,n&&$e("div",{onClick:V8,css:X8}),e(f))}var B8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Z8=function(e){var n=e.name,r=e.onFocus;return $e("input",{required:!0,name:n,tabIndex:-1,onFocus:r,css:B8,value:"",onChange:function(){}})},W8=function(e){return e.label},U8=function(e){return e.label},F8=function(e){return e.value},Y8=function(e){return!!e.isDisabled},z8={clearIndicator:UF,container:DF,control:HF,dropdownIndicator:ZF,group:e8,groupHeading:n8,indicatorsContainer:VF,indicatorSeparator:YF,input:s8,loadingIndicator:GF,loadingMessage:AF,menu:CF,menuList:_F,menuPortal:RF,multiValue:u8,multiValueLabel:c8,multiValueRemove:f8,noOptionsMessage:TF,option:g8,placeholder:v8,singleValue:S8,valueContainer:LF},q8={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%)"},G8=4,u2=4,H8=38,K8=u2*2,J8={baseUnit:u2,controlHeight:H8,menuGutter:K8},Km={borderRadius:G8,colors:q8,spacing:J8},eY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:iP(),captureMenuScroll:!iP(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:R8(),formatGroupLabel:W8,getOptionLabel:U8,getOptionValue:F8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Y8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!vF(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gP(t,e,n,r){var i=d2(t,e,n),s=p2(t,e,n),o=h2(t,e),l=ud(t,e);return{type:"option",data:e,isDisabled:i,isSelected:s,label:o,value:l,index:r}}function c2(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,l){return gP(t,o,e,l)}).filter(function(o){return OP(t,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var s=gP(t,n,e,r);return OP(t,s)?s:void 0}).filter(bF)}function f2(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,xT(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function tY(t,e){return f2(c2(t,e))}function OP(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,s=e.isSelected,o=e.label,l=e.value;return(!g2(t)||!s)&&m2(t,{label:o,value:l,data:i},r)}function nY(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var s=e.indexOf(n);if(s>-1)return n;if(i<e.length)return e[i]}return null}function rY(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var h2=function(e,n){return e.getOptionLabel(n)},ud=function(e,n){return e.getOptionValue(n)};function d2(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function p2(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=ud(t,e);return n.some(function(i){return ud(t,i)===r})}function m2(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var g2=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},iY=1,O2=function(t){YW(n,t);var e=HW(n);function n(r){var i;if(UW(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,a){var u=i.props,c=u.onChange,f=u.name;a.name=f,i.ariaOnChange(l,a),c(l,a)},i.setValue=function(l,a,u){var c=i.props,f=c.closeMenuOnSelect,h=c.isMulti,p=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:p}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:a,option:u})},i.selectOption=function(l){var a=i.props,u=a.blurInputOnSelect,c=a.isMulti,f=a.name,h=i.state.selectValue,p=c&&i.isOptionSelected(l,h),d=i.isOptionDisabled(l,h);if(p){var m=i.getOptionValue(l);i.setValue(h.filter(function(O){return i.getOptionValue(O)!==m}),"deselect-option",l)}else if(!d)c?i.setValue([].concat(xT(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&i.blurInput()},i.removeValue=function(l){var a=i.props.isMulti,u=i.state.selectValue,c=i.getOptionValue(l),f=u.filter(function(p){return i.getOptionValue(p)!==c}),h=mf(a,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(mf(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,a=i.state.selectValue,u=a[a.length-1],c=a.slice(0,a.length-1),f=mf(l,c,c[0]||null);i.onChange(f,{action:"pop-value",removedValue:u})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,a=new Array(l),u=0;u<l;u++)a[u]=arguments[u];return dF.apply(void 0,[i.props.classNamePrefix].concat(a))},i.getOptionLabel=function(l){return h2(i.props,l)},i.getOptionValue=function(l){return ud(i.props,l)},i.getStyles=function(l,a){var u=i.props.unstyled,c=z8[l](a,u);c.boxSizing="border-box";var f=i.props.styles[l];return f?f(c,a):c},i.getClassNames=function(l,a){var u,c;return(u=(c=i.props.classNames)[l])===null||u===void 0?void 0:u.call(c,a)},i.getElementId=function(l){return"".concat(i.instancePrefix,"-").concat(l)},i.getComponents=function(){return k8(i.props)},i.buildCategorizedOptions=function(){return c2(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return f2(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,a){i.setState({ariaSelection:De({value:l},a)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var a=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():a&&i.openMenu("first"):(a&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var a=i.props,u=a.isMulti,c=a.menuIsOpen;i.focusInput(),c?(i.setState({inputIsHiddenAfterUpdate:!u}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&cp(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var a=l.touches,u=a&&a.item(0);u&&(i.initialTouchX=u.clientX,i.initialTouchY=u.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var a=l.touches,u=a&&a.item(0);if(u){var c=Math.abs(u.clientX-i.initialTouchX),f=Math.abs(u.clientY-i.initialTouchY),h=5;i.userIsDragging=c>h||f>h}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var a=i.props.inputValue,u=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:a}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var a=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:a}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){i.blockOptionHover||i.state.focusedOption===l||i.setState({focusedOption:l})},i.shouldHideSelectedOptions=function(){return g2(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var a=i.props,u=a.isMulti,c=a.backspaceRemovesValue,f=a.escapeClearsValue,h=a.inputValue,p=a.isClearable,d=a.isDisabled,m=a.menuIsOpen,O=a.onKeyDown,g=a.tabSelectsValue,y=a.openMenuOnFocus,v=i.state,S=v.focusedOption,x=v.focusedValue,C=v.selectValue;if(!d&&!(typeof O=="function"&&(O(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;i.focusValue("previous");break;case"ArrowRight":if(!u||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(x)i.removeValue(x);else{if(!c)return;u?i.popValue():p&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!g||!S||y&&i.isOptionSelected(S,C))return;i.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(m){if(!S||i.isComposing)return;i.selectOption(S);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):p&&f&&i.clearValue();break;case" ":if(h)return;if(!m){i.openMenu("first");break}if(!S)return;i.selectOption(S);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++iY),i.state.selectValue=nP(r.value),r.menuIsOpen&&i.state.selectValue.length){var s=i.buildFocusableOptions(),o=s.indexOf(i.state.selectValue[0]);i.state.focusedOption=s[o]}return i}return FW(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rP(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,o=s.isDisabled,l=s.menuIsOpen,a=this.state.isFocused;(a&&!o&&i.isDisabled||a&&l&&!i.menuIsOpen)&&this.focusInput(),a&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rP(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,o=this.state,l=o.selectValue,a=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,o=s.selectValue,l=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=o.indexOf(l);l||(a=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":a===0?c=0:a===-1?c=u:c=a-1;break;case"next":a>-1&&a<u&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var a=0,u=l.indexOf(o);o||(u=-1),i==="up"?a=u>0?u-1:l.length-1:i==="down"?a=(u+1)%l.length:i==="pageup"?(a=u-s,a<0&&(a=0)):i==="pagedown"?(a=u+s,a>l.length-1&&(a=l.length-1)):i==="last"&&(a=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Km):De(De({},Km),this.props.theme):Km}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,o=this.getStyles,l=this.getClassNames,a=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,h=f.isMulti,p=f.isRtl,d=f.options,m=this.hasValue();return{clearValue:i,cx:s,getStyles:o,getClassNames:l,getValue:a,hasValue:m,isMulti:h,isRtl:p,options:d,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,o=i.isMulti;return s===void 0?o:s}},{key:"isOptionDisabled",value:function(i,s){return d2(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return p2(this.props,i,s)}},{key:"filterOption",value:function(i,s){return m2(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:o,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,o=i.isSearchable,l=i.inputId,a=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,h=i.required,p=this.getComponents(),d=p.Input,m=this.state,O=m.inputIsHidden,g=m.ariaSelection,y=this.commonProps,v=l||this.getElementId("input"),S=De(De(De({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(d,Te({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:s,isHidden:O,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:a},S)):R.createElement(D8,Te({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ld,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),o=s.MultiValue,l=s.MultiValueContainer,a=s.MultiValueLabel,u=s.MultiValueRemove,c=s.SingleValue,f=s.Placeholder,h=this.commonProps,p=this.props,d=p.controlShouldRenderValue,m=p.isDisabled,O=p.isMulti,g=p.inputValue,y=p.placeholder,v=this.state,S=v.selectValue,x=v.focusedValue,C=v.isFocused;if(!this.hasValue()||!d)return g?null:R.createElement(f,Te({},h,{key:"placeholder",isDisabled:m,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),y);if(O)return S.map(function(w,b){var k=w===x,Q="".concat(i.getOptionLabel(w),"-").concat(i.getOptionValue(w));return R.createElement(o,Te({},h,{components:{Container:l,Label:a,Remove:u},isFocused:k,isDisabled:m,key:Q,index:b,removeProps:{onClick:function(){return i.removeValue(w)},onTouchEnd:function(){return i.removeValue(w)},onMouseDown:function(D){D.preventDefault()}},data:w}),i.formatOptionLabel(w,"value"))});if(g)return null;var $=S[0];return R.createElement(c,Te({},h,{data:$,isDisabled:m}),this.formatOptionLabel($,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,o=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!s||a||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,o=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!s||!u)return null;var f={"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:f,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,o=i.IndicatorSeparator;if(!s||!o)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused;return R.createElement(o,Te({},l,{isDisabled:a,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var o=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(s,Te({},o,{innerProps:u,isDisabled:l,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),o=s.Group,l=s.GroupHeading,a=s.Menu,u=s.MenuList,c=s.MenuPortal,f=s.LoadingMessage,h=s.NoOptionsMessage,p=s.Option,d=this.commonProps,m=this.state.focusedOption,O=this.props,g=O.captureMenuScroll,y=O.inputValue,v=O.isLoading,S=O.loadingMessage,x=O.minMenuHeight,C=O.maxMenuHeight,$=O.menuIsOpen,w=O.menuPlacement,b=O.menuPosition,k=O.menuPortalTarget,Q=O.menuShouldBlockScroll,A=O.menuShouldScrollIntoView,D=O.noOptionsMessage,L=O.onMenuScrollToTop,z=O.onMenuScrollToBottom;if(!$)return null;var te=function(Be,Ke){var xt=Be.type,ct=Be.data,ut=Be.isDisabled,$n=Be.isSelected,vn=Be.label,I=Be.value,j=m===ct,H=ut?void 0:function(){return i.onOptionHover(ct)},J=ut?void 0:function(){return i.selectOption(ct)},W="".concat(i.getElementId("option"),"-").concat(Ke),U={id:W,onClick:J,onMouseMove:H,onMouseOver:H,tabIndex:-1};return R.createElement(p,Te({},d,{innerProps:U,data:ct,isDisabled:ut,isSelected:$n,key:W,label:vn,type:xt,value:I,isFocused:j,innerRef:j?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Be.data,"menu"))},ae;if(this.hasOptions())ae=this.getCategorizedOptions().map(function(ke){if(ke.type==="group"){var Be=ke.data,Ke=ke.options,xt=ke.index,ct="".concat(i.getElementId("group"),"-").concat(xt),ut="".concat(ct,"-heading");return R.createElement(o,Te({},d,{key:ct,data:Be,options:Ke,Heading:l,headingProps:{id:ut,data:ke.data},label:i.formatGroupLabel(ke.data)}),ke.options.map(function($n){return te($n,"".concat(xt,"-").concat($n.index))}))}else if(ke.type==="option")return te(ke,"".concat(ke.index))});else if(v){var X=S({inputValue:y});if(X===null)return null;ae=R.createElement(f,d,X)}else{var q=D({inputValue:y});if(q===null)return null;ae=R.createElement(h,d,q)}var se={minMenuHeight:x,maxMenuHeight:C,menuPlacement:w,menuPosition:b,menuShouldScrollIntoView:A},Ae=R.createElement(QF,Te({},d,se),function(ke){var Be=ke.ref,Ke=ke.placerProps,xt=Ke.placement,ct=Ke.maxHeight;return R.createElement(a,Te({},d,se,{innerRef:Be,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:v,placement:xt}),R.createElement(j8,{captureEnabled:g,onTopArrive:L,onBottomArrive:z,lockEnabled:Q},function(ut){return R.createElement(u,Te({},d,{innerRef:function(vn){i.getMenuListRef(vn),ut(vn)},isLoading:v,maxHeight:ct,focusedOption:m}),ae)}))});return k||b==="fixed"?R.createElement(c,Te({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:b}),Ae):Ae}},{key:"renderFormField",value:function(){var i=this,s=this.props,o=s.delimiter,l=s.isDisabled,a=s.isMulti,u=s.name,c=s.required,f=this.state.selectValue;if(!(!u||l)){if(c&&!this.hasValue())return R.createElement(Z8,{name:u,onFocus:this.onValueInputFocus});if(a)if(o){var h=f.map(function(m){return i.getOptionValue(m)}).join(o);return R.createElement("input",{name:u,type:"hidden",value:h})}else{var p=f.length>0?f.map(function(m,O){return R.createElement("input",{key:"i-".concat(O),name:u,type:"hidden",value:i.getOptionValue(m)})}):R.createElement("input",{name:u,type:"hidden",value:""});return R.createElement("div",null,p)}else{var d=f[0]?this.getOptionValue(f[0]):"";return R.createElement("input",{name:u,type:"hidden",value:d})}}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,o=s.ariaSelection,l=s.focusedOption,a=s.focusedValue,u=s.isFocused,c=s.selectValue,f=this.getFocusableOptions();return R.createElement(_8,Te({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:a,isFocused:u,selectValue:c,focusableOptions:f}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,o=i.IndicatorsContainer,l=i.SelectContainer,a=i.ValueContainer,u=this.props,c=u.className,f=u.id,h=u.isDisabled,p=u.menuIsOpen,d=this.state.isFocused,m=this.commonProps=this.getCommonProps();return R.createElement(l,Te({},m,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:d}),this.renderLiveRegion(),R.createElement(s,Te({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:d,menuIsOpen:p}),R.createElement(a,Te({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,Te({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var o=s.prevProps,l=s.clearFocusValueOnUpdate,a=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,c=s.isFocused,f=s.prevWasFocused,h=i.options,p=i.value,d=i.menuIsOpen,m=i.inputValue,O=i.isMulti,g=nP(p),y={};if(o&&(p!==o.value||h!==o.options||d!==o.menuIsOpen||m!==o.inputValue)){var v=d?tY(i,g):[],S=l?nY(s,g):null,x=rY(s,v);y={selectValue:g,focusedOption:x,focusedValue:S,clearFocusValueOnUpdate:!1}}var C=a!=null&&i!==o?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},$=u,w=c&&f;return c&&!w&&($={value:mf(O,g,g[0]||null),options:g,action:"initial-input-focus"},w=!f),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),De(De(De({},y),C),{},{prevProps:i,ariaSelection:$,prevWasFocused:w})}}]),n}(R.Component);O2.defaultProps=eY;var sY=R.forwardRef(function(t,e){var n=WW(t);return R.createElement(O2,Te({ref:e},n))});const vP=sY,oY=[{value:"default",label:"default"},{value:"3024-day",label:"3024-day"},{value:"3024-night",label:"3024-night"},{value:"abbott",label:"abbott"},{value:"abcdef",label:"abcdef"},{value:"ambiance",label:"ambiance"},{value:"ayu-dark",label:"ayu-dark"},{value:"ayu-mirage",label:"ayu-mirage"},{value:"base16-dark",label:"base16-dark"},{value:"base16-light",label:"base16-light"},{value:"bespin",label:"bespin"},{value:"blackboard",label:"blackboard"},{value:"cobalt",label:"cobalt"},{value:"colorforth",label:"colorforth"},{value:"darcula",label:"darcula"},{value:"duotone-dark",label:"duotone-dark"},{value:"duotone-light",label:"duotone-light"},{value:"eclipse",label:"eclipse"},{value:"elegant",label:"elegant"},{value:"erlang-dark",label:"erlang-dark"},{value:"gruvbox-dark",label:"gruvbox-dark"},{value:"hopscotch",label:"hopscotch"},{value:"icecoder",label:"icecoder"},{value:"idea",label:"idea"},{value:"isotope",label:"isotope"},{value:"juejin",label:"juejin"},{value:"lesser-dark",label:"lesser-dark"},{value:"liquibyte",label:"liquibyte"},{value:"lucario",label:"lucario"},{value:"material",label:"material"},{value:"material-darker",label:"material-darker"},{value:"material-palenight",label:"material-palenight"},{value:"material-ocean",label:"material-ocean"},{value:"mbo",label:"mbo"},{value:"mdn-like",label:"mdn-like"},{value:"midnight",label:"midnight"},{value:"monokai",label:"monokai"},{value:"moxer",label:"moxer"},{value:"neat",label:"neat"},{value:"neo",label:"neo"},{value:"night",label:"night"},{value:"nord",label:"nord"},{value:"oceanic-next",label:"oceanic-next"},{value:"OneDark",label:"One Dark"},{value:"panda-syntax",label:"panda-syntax"},{value:"paraiso-dark",label:"paraiso-dark"},{value:"paraiso-light",label:"paraiso-light"},{value:"pastel-on-dark",label:"pastel-on-dark"},{value:"railscasts",label:"railscasts"},{value:"rubyblue",label:"rubyblue"},{value:"seti",label:"seti"},{value:"shadowfox",label:"shadowfox"},{value:"solarized",label:"solarized"},{value:"ssms",label:"ssms"},{value:"the-matrix",label:"the-matrix"},{value:"tomorrow-night-bright",label:"tomorrow-night-bright"},{value:"tomorrow-night-eighties",label:"tomorrow-night-eighties"},{value:"ttcn",label:"ttcn"},{value:"twilight",label:"twilight"},{value:"vibrant-ink",label:"vibrant-ink"},{value:"xq-dark",label:"xq-dark"},{value:"xq-light",label:"xq-light"},{value:"yeti",label:"yeti"},{value:"yonce",label:"yonce"},{value:"zenburn",label:"zenburn"}],lY=[{value:1,label:"1 second"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}],aY=({show:t,onClose:e,setTheme:n})=>{const r=R.useCallback(s=>{n(s.value)},[]),i=R.useCallback(s=>{const o=[{value:s.value}];fetch("/saveTime",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})},[]);return t?kn(ma,{show:t,onHide:e,animation:!1,children:[fe(ma.Header,{closeButton:!0,children:fe(ma.Title,{children:"Settings"})}),kn(ma.Body,{children:[kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Username"}),fe(ri.Control,{type:"text",placeholder:"Enter username"}),fe(ri.Text,{className:"text-muted",children:"Enter a username to be displayed on your cursor"})]}),kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Theme"}),fe(vP,{classvalue:"themes",options:oY,onChange:r}),fe(ri.Text,{className:"text-muted",children:"Select a color theme for the editor"})]}),kn(ri.Group,{className:"mb-3",controlId:"formFork",children:[fe(ri.Label,{children:"Auto-Save Time"}),fe(vP,{classvalue:"themes",options:lY,onChange:i}),fe(ri.Text,{className:"text-muted",children:"Select an auto save time"})]})]}),fe(ma.Footer,{children:fe(cy,{variant:"primary",onClick:e,children:"Done"})})]}):null};EC.types.register(u0.type);const{Connection:uY}=EC,cY=window.location.protocol==="https:"?"wss://":"ws://",fY=new WebSocket(cY+window.location.host+"/ws"),hY=new uY(fY);function dY(){const[t,e]=R.useState(null),[n,r]=R.useState(null),[i,s]=R.useState(null),[o,l]=R.useState(null);R.useState(!1);const[a,u]=R.useState(null),[c,f]=R.useState([]),[h,p]=R.useState("OneDark"),[d,m]=R.useState(!1),[O,g]=R.useState(!1);R.useEffect(()=>{const k="documents",Q="1",A=hY.get(k,Q);A.subscribe(()=>{e(A),l(A.data),A.on("op",L=>{l(A.data)});const D=A.connection.getDocPresence(k,Q);D.subscribe(function(L){if(L)throw L}),r(D.create(gk())),s(D)})},[]);const y=R.useCallback(k=>{const Q=c.findIndex(A=>A===k);if(Q!==-1){const A=[...c.slice(0,Q),...c.slice(Q+1)];f(A),a===k&&(A.length>0?u(Q===0?A[Q]:A[Q-1]):u(null))}},[c,a]),v=R.useCallback(k=>Q=>{Q.stopPropagation(),y(k)},[y]),S=R.useCallback(k=>{const Q=prompt("Enter new name");if(Q){const A=t.data,D={...A,[k]:{...A[k],name:Q}};t.submitOp(Xm(A,D))}},[t]),x=R.useCallback(k=>{y(k);const Q=t.data,A={...Q};delete A[k],t.submitOp(Xm(Q,A))},[t,y]),C=R.useCallback(k=>Q=>{Q.stopPropagation(),x(k)},[x]),$=R.useCallback(()=>{const k=prompt("Enter new file name");if(!k)return;const Q=t.data,A={...Q,[gk()]:{name:k,text:""}};t.submitOp(Xm(Q,A))},[t]),w=o&&a,b=R.useCallback(()=>{g(!1)},[]);return kn(Ff,{children:[fe(aY,{show:O,onClose:b,setTheme:p}),fe("div",{className:"tab-list",children:c.map(k=>kn("div",{className:w?`tab${k===a?" active":""}`:null,onClick:()=>{u(k)},children:[w?o[k].name:"",fe("div",{className:a?"bx bx-x tab-close":"",onClick:v(k)})]},k))}),fe("div",{className:"sidebar show",children:kn("div",{className:"nav-links",children:[fe("div",{className:"show-menu",children:kn("div",{className:"sub-menu",children:[fe("div",{className:"files",children:kn("div",{className:"full-Box",children:[fe("div",{children:fe("a",{className:"link-name",href:"#",children:"Files"})}),fe("div",{children:fe("i",{className:"bx bxs-file-plus newBTN",style:{color:"#dbdde1"},onClick:$})})]})}),o?Object.keys(o).map(k=>fe("div",{className:"file",children:kn("div",{className:"full-Box",onClick:()=>{u(k),c.includes(k)||f([...c,k])},onMouseEnter:()=>{m(k)},onMouseLeave:()=>{m(null)},children:[fe("div",{className:d===k?"hover-name":"name",children:o[k].name}),kn("div",{className:d===k?"utils":"noUtils",children:[fe("i",{className:"bx bxs-edit utilities",style:{color:"#abdafb"},onClick:()=>{S(k)}}),fe("i",{className:"bx bx-trash",style:{color:"#eb336c"},onClick:C(k)})]})]})},k)):null]})}),null]})}),o&&a?fe(Aj,{className:"editor",shareDBDoc:t,localPresence:n,docPresence:i,activeFileId:a,theme:h}):null]})}QC(document.getElementById("root")).render(fe(R.StrictMode,{children:fe(dY,{})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap";@import"https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css";@import"https://unpkg.com/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css";*{margin:0;padding:0;box-sizing:border-box}::-webkit-scrollbar{width:10px;height:20px}::-webkit-scrollbar-track{background:rgb(41,44,52)}::-webkit-scrollbar-thumb{background:rgb(37,37,38)}::-webkit-scrollbar-thumb:hover{background:#555}:root{--main-font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace}body{background:rgb(41,44,52);font-family:Poppins,sans-serif;overflow-x:hidden}.tab{width:max-content;height:30px;background:rgb(45,45,45);text-align:center;color:#fff;font-family:var(--main-font-family);justify-content:center;align-items:center;display:flex;padding-left:10px;padding-right:10px;border-top-left-radius:10px;border-top-right-radius:10px;margin-top:5px;margin-left:2px;margin-right:2px;cursor:pointer}.tab.active{background-color:#292c34}.tab-close{display:flex;cursor:pointer;margin-left:5px;justify-content:center;align-items:center}.tab-close:hover{border-radius:30%;background-color:#252526}.editor{position:relative;margin-left:200px;width:100%;height:100%;top:30px;bottom:0;background-color:#292c34;color:#fff;font-family:var(--main-font-family)}.tab-list{position:fixed;display:flex;flex-direction:row;top:0;left:200px;height:35px;width:100%;background:rgb(37,37,38);z-index:100;transition:all .5s ease}.bottom-bar{position:absolute;bottom:0;left:0;height:20px;width:100%;background:rgb(45,45,45);z-index:100;transition:all .5s ease}.sidebar{position:fixed;top:0;left:0;height:100%;width:200px;background:rgb(54,65,89);z-index:100;transition:all .5s ease}.link-name{margin-top:30px;margin-left:10px;color:#9aa0ac;font-size:12px;text-decoration:none}.file{display:flex;flex-direction:row;align-items:center;justify-content:left;width:180px;cursor:pointer;margin-left:10px;color:#dbdde1;border-radius:5px}.full-Box{width:inherit;height:inherit;padding:7px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.utilities{justify-content:right;margin-right:3px}.noUtils{display:none}.settings{position:absolute;bottom:0;height:30px;width:180px;z-index:100;color:#dbdde1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:14px 0;margin:10px;border-radius:5px}.file:hover,.settings:hover{background-color:#4a5469}.newBTN{justify-content:right;margin-right:10px;cursor:pointer}.themes{color:#252526}.name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap";@import"https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css";@import"https://unpkg.com/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css";*{margin:0;padding:0;box-sizing:border-box}::-webkit-scrollbar{width:10px;height:20px}::-webkit-scrollbar-track{background:rgb(41,44,52)}::-webkit-scrollbar-thumb{background:rgb(37,37,38)}::-webkit-scrollbar-thumb:hover{background:#555}:root{--main-font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace}body{background:rgb(41,44,52);font-family:Poppins,sans-serif;overflow-x:hidden}.tab{width:max-content;height:30px;background:rgb(45,45,45);text-align:center;color:#fff;font-family:var(--main-font-family);justify-content:center;align-items:center;display:flex;padding-left:10px;padding-right:10px;border-top-left-radius:10px;border-top-right-radius:10px;margin-top:5px;margin-left:2px;margin-right:2px;cursor:pointer}.tab.active{background-color:#292c34}.tab-close{display:flex;cursor:pointer;margin-left:5px;justify-content:center;align-items:center}.tab-close:hover{border-radius:30%;background-color:#252526}.editor{position:relative;margin-left:200px;width:100%;height:100%;top:30px;bottom:0;background-color:#292c34;color:#fff;font-family:var(--main-font-family)}.tab-list{position:fixed;display:flex;flex-direction:row;top:0;left:200px;height:35px;width:100%;background:rgb(37,37,38);z-index:100;transition:all .5s ease}.bottom-bar{position:absolute;bottom:0;left:0;height:20px;width:100%;background:rgb(45,45,45);z-index:100;transition:all .5s ease}.sidebar{position:fixed;top:0;left:0;height:100%;width:200px;background:rgb(54,65,89);z-index:100;transition:all .5s ease}.link-name{margin-top:30px;margin-left:10px;color:#9aa0ac;font-size:12px;text-decoration:none}.file{display:flex;flex-direction:row;align-items:center;justify-content:left;width:180px;cursor:pointer;margin-left:10px;color:#dbdde1;border-radius:5px}.full-Box{width:inherit;height:inherit;padding:7px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.utilities{justify-content:right;margin-right:3px}.noUtils{display:none}.settings{position:absolute;bottom:0;height:30px;width:180px;z-index:100;color:#dbdde1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:14px 0;margin:10px;border-radius:5px}.file:hover,.settings:hover{background-color:#4a5469}.newBTN{justify-content:right;margin-right:10px;cursor:pointer}.themes{color:#252526}.name,.hover-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.name{max-width:200px}.hover-name{max-width:130px}
|
package/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>VZCode</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-48dbd5c3.js"></script>
|
|
8
|
+
<link rel="stylesheet" href="/assets/index-8d2d4b3b.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vzcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Multiplayer code editor system",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "npm run build; cd test; node ../cli.js",
|
|
14
|
-
"prettier": "prettier {*.*,**/*.*} --
|
|
14
|
+
"prettier": "prettier {*.*,**/*.*} --write",
|
|
15
15
|
"dev": "vite",
|
|
16
16
|
"build": "vite build",
|
|
17
17
|
"build-release": "vite build --mode release",
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
"Data",
|
|
34
34
|
"Visualization"
|
|
35
35
|
],
|
|
36
|
-
"
|
|
36
|
+
"contributors": [
|
|
37
|
+
"Curran Kelleher",
|
|
38
|
+
"Anooj Pai"
|
|
39
|
+
],
|
|
37
40
|
"license": "MIT",
|
|
38
41
|
"bugs": {
|
|
39
42
|
"url": "https://github.com/vizhub-core/vzcode/issues"
|
|
@@ -52,6 +55,7 @@
|
|
|
52
55
|
"diff-match-patch": "^1.0.5",
|
|
53
56
|
"express": "^4.18.2",
|
|
54
57
|
"json0-ot-diff": "^1.1.2",
|
|
58
|
+
"open": "^9.0.0",
|
|
55
59
|
"react": "^18.2.0",
|
|
56
60
|
"react-bootstrap": "^2.7.2",
|
|
57
61
|
"react-dom": "^18.2.0",
|
package/src/App.jsx
CHANGED
|
@@ -14,7 +14,8 @@ ShareDBClient.types.register(json1Presence.type);
|
|
|
14
14
|
// Establish the singleton ShareDB connection over WebSockets.
|
|
15
15
|
// TODO consider using reconnecting WebSocket
|
|
16
16
|
const { Connection } = ShareDBClient;
|
|
17
|
-
const
|
|
17
|
+
const wsProtocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
|
18
|
+
const socket = new WebSocket(wsProtocol + window.location.host + '/ws');
|
|
18
19
|
const connection = new Connection(socket);
|
|
19
20
|
|
|
20
21
|
// A feature flag to disable settings for release, until it's completed.
|
|
@@ -268,7 +269,7 @@ function App() {
|
|
|
268
269
|
setUtils(null);
|
|
269
270
|
}}
|
|
270
271
|
>
|
|
271
|
-
<div className={utils === key ? 'name' : ''}>
|
|
272
|
+
<div className={utils === key ? 'hover-name' : 'name'}>
|
|
272
273
|
{data[key].name}
|
|
273
274
|
</div>
|
|
274
275
|
<div className={utils === key ? 'utils' : 'noUtils'}>
|
package/src/style.css
CHANGED
|
@@ -199,9 +199,17 @@ body {
|
|
|
199
199
|
color: rgb(37, 37, 38);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.name
|
|
202
|
+
.name,
|
|
203
|
+
.hover-name {
|
|
203
204
|
text-overflow: ellipsis;
|
|
204
205
|
white-space: nowrap;
|
|
205
206
|
overflow: hidden;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.name {
|
|
210
|
+
max-width: 200px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.hover-name {
|
|
206
214
|
max-width: 130px;
|
|
207
215
|
}
|