@sikka/hawa 0.0.281 → 0.0.284
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/.github/workflows/hawa-actions.yml +51 -41
- package/.github/workflows/hawa-publish-push.yml +19 -21
- package/dist/styles.css +9 -3
- package/es/index.es.js +2 -2
- package/es/stories/ManualStories/Overview.stories.d.ts +20 -0
- package/lib/index.js +2 -2
- package/lib/stories/ManualStories/Overview.stories.d.ts +20 -0
- package/package.json +2 -1
- package/src/elements/HawaPhoneInput.tsx +7 -5
- package/src/elements/HawaSelect.tsx +7 -5
- package/src/elements/HawaSnackbar.tsx +2 -1
- package/src/styles.css +9 -3
- package/src/translations/ar.json +22 -0
- package/src/translations/en.json +22 -0
- package/src/translations/i18n.js +15 -0
package/es/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{useState as n,useRef as r,useEffect as o,useCallback as a,forwardRef as i,useContext as l,useLayoutEffect as u,createContext as c,useMemo as s,Component as d,Fragment as f,createElement as m,Children as p,isValidElement as g,cloneElement as v,useReducer as h,useImperativeHandle as b,memo as y}from"react";import*as x from"react-dom";import w,{createPortal as C,flushSync as E}from"react-dom";import D from"object-assign";import A from"direction";import F from"lodash/debounce";import B from"lodash/throttle";import O from"react-dom/server";function I(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=I(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function j(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=I(e))&&(r&&(r+=" "),r+=t);return r}var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};function N(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n,r){var o=function(e){return t=e,(null!=(r=n)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e:new n((function(t){t(e)}));var t,r};return new(n||(n=Promise))((function(n,a){var i=function(e){try{u(r.next(e))}catch(e){a(e)}},l=function(e){try{u(r.throw(e))}catch(e){a(e)}},u=function(e){e.done?n(e.value):o(e.value).then(i,l)};u((r=r.apply(e,t||[])).next())}))}function P(e,t){var n,r,o,a,i=function(e){return function(t){return l([e,t])}},l=function(i){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}},u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}function T(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function R(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var M=function(e){var n=e.design,r=void 0===n?"spinner":n,o=e.size,a=void 0===o?"sm":o,i=e.color;N(e,["design","size","color"]);var l={button:"h-4 w-4",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},u={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};return"dots"===r.split("-")[0]?t.createElement("div",{className:"flex flex-row space-x-2 "},t.createElement("div",{className:j("animate-bounce rounded-full delay-100 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")}),t.createElement("div",{className:j("animate-bounce rounded-full delay-200 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")}),t.createElement("div",{className:j("animate-bounce rounded-full delay-300 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")})):t.createElement("div",{className:"flex flex-row gap-x-3"},t.createElement("div",{"aria-label":"Loading...",role:"status"},t.createElement("svg",{className:j(l[a],"animate-spin"),viewBox:"3 3 18 18"},t.createElement("path",{className:"fill-gray-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),t.createElement("path",{className:i||"fill-buttonPrimary-500",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"}))))},L=function(e){var a=e.children,i=e.content,l=e.size,u=void 0===l?"normal":l,c=e.position,s=void 0===c?"top-right":c,d=e.direction,f=void 0===d?"ltr":d,m=n(!1),p=m[0],g=m[1],v=r(null),h=n(null),b=h[0],y=h[1],x=n(null),w=x[0],C=x[1],E=r(null),D=n(null),A=D[0],F=D[1],B=n(null),O=B[0],I=B[1];o((function(){var e,t,n,r;I(null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect().height),F(null===(t=E.current)||void 0===t?void 0:t.getBoundingClientRect().width),y(null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().height),C(null===(r=v.current)||void 0===r?void 0:r.getBoundingClientRect().width)}));var k;switch(s){case"top-right":k="rtl"===f?"".concat(A-w,"px, -").concat(O+b+5,"px"):"0px, -".concat(O+b+5,"px");break;case"top-left":k="rtl"===f?"".concat(0,"px, -").concat(O+b+5,"px"):"-".concat(A-w,"px, -").concat(O+b+5,"px");break;case"bottom-right":k="rtl"===f?"".concat(A-w,"px, ").concat(5,"px"):"-".concat(0,"px, ").concat(5,"px");break;case"bottom-left":k="rtl"===f?"0px, ".concat(5,"px"):"-".concat(A-w,"px,").concat(5,"px");break;case"right-bottom":k="rtl"===f?"".concat(A+5,"px, -").concat(b,"px"):"".concat(w+5,"px, -").concat(b,"px");break;case"right-top":k="rtl"===f?"".concat(A+5,"px, -").concat(O,"px"):"".concat(w+5,"px, -").concat(O,"px");break;case"left-bottom":k="rtl"===f?"-".concat(w+5,"px, -").concat(b,"px"):"-".concat(A+5,"px, -").concat(b,"px");break;case"left-top":k="rtl"===f?"-".concat(w+5,"px, -").concat(O,"px"):"-".concat(A+5,"px, -").concat(O,"px");break;default:k="-".concat(A/2,"px, -").concat(b+O/2,"px")}return t.createElement("div",{onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},t.createElement("div",{ref:v},a),t.createElement("div",{ref:E,style:{position:"absolute",width:"max-content",transform:"translate(".concat(k,")"),opacity:p?"1":"0",maxWidth:"200px"},className:j("absolute z-10 rounded bg-gray-900 text-center text-sm font-medium text-white shadow-sm transition-all duration-300 dark:bg-gray-700",{normal:"py-2 px-3 leading-2",small:"py-2 px-2 text-[10px] leading-tight",large:"py-2 px-2 text-lg leading-tight"}[u])},i))},G="cursor-default pointer-events-none",V={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},W="cursor-pointer h-[2.36rem] justify-center items-center text-center font-medium transition-all",z={xs:"px-1 py-1",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},Z={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},X={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},_={contained:"border-transparent",outlined:"bg-transparent border"},H={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200 ",dark:"border-gray-900 hover:bg-gray-700 "}},Y=function(e){var r=e.className,o=e.variant,a=void 0===o?"contained":o,i=e.color,l=void 0===i?"default":i,u=e.size,c=void 0===u?"medium":u,s=e.width,d=void 0===s?"normal":s,f=e.disabled,m=void 0!==f&&f,p=e.isLoading,g=void 0!==p&&p,v=e.tooltip,h=e.tooltipSize,b=void 0===h?"normal":h,y=e.tooltipPosition,x=void 0===y?"top-left":y,w=e.tooltipDirection,C=void 0===w?"ltr":w,E=e.margins,D=void 0===E?"2":E,A=e.children,F=e.badge,B=e.edgeCorner,O=void 0!==B&&B,I=e.feedback,k=N(e,["className","variant","color","size","width","disabled","isLoading","tooltip","tooltipSize","tooltipPosition","tooltipDirection","margins","children","badge","edgeCorner","feedback"]),S=n(!1),P=S[0],T=S[1],R=n(A),Y=R[0],U=R[1];return t.createElement("div",{className:j("relative","none"!==D?"my-".concat(D):"m-0",X[d])},v?t.createElement(L,{direction:C,position:x,size:b,content:v},t.createElement("button",{className:m?j(r,W,O?"rounded-inner":"rounded",_[a],z[c],Z[d],G,V[a]):j(r,W,O?"rounded-inner":"rounded",_[a],z[c],H[a][l],Z[d]),disabled:m,onClick:k.onClick},g?t.createElement(M,{size:"button"}):A)):t.createElement("button",{className:m?j(r,W,O?"rounded-inner":"rounded",_[a],z[c],Z[d],G,V[a]):j(r,"overflow-x-clip",W,O?"rounded-inner":"rounded",_[a],z[c],H[a][l],Z[d]),disabled:m,onClick:function(e){k.onClick&&k.onClick(e),I&&!P&&(U(I),T(!0),setTimeout((function(){U(A),T(!1)}),2e3))}},g?t.createElement(M,{design:"dots-pulse",color:"bg-white",size:"button"}):t.createElement("div",{className:j(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",P&&I?" -translate-y-8 pb-1 pt-1":"translate-y-0")},P&&I?t.createElement("div",{className:"w-full text-center"},Y):null,t.createElement("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap"},k.startIcon&&k.startIcon,A,k.endIcon&&k.endIcon))),F&&t.createElement("div",{className:j("boolean"==typeof F?"h-5 w-5":"string"==typeof F?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900")},"number"==typeof F&&F>100?"+99":F))},U=function(e){var a=e.title,i=e.description,l=e.severity,u=void 0===l?"info":l,c=e.position,s=void 0===c?"bottom-left":c,d=e.actions,f=e.onCloseSnakbar,m=e.duration,p=n(!1),g=p[0],v=p[1],h=r(null);return o((function(){if(m){var e=setTimeout((function(){v(!0)}),m),t=setTimeout((function(){v(!0),h.current.removeChild(h.current.children[0])}),m+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[m]),t.createElement("div",{ref:h},t.createElement("div",{id:"toast-default",role:"alert",className:j("fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800",{info:"text-blue-700 bg-blue-100",warning:"text-yellow-700 bg-yellow-100",error:"text-red-700 bg-red-100",success:"text-green-700 bg-green-100",none:"text-gray-500 bg-white "}[u],{"top-left":"top-4","top-right":"top-4 right-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-left":"bottom-4","bottom-right":"bottom-4 right-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"}[s],"p-2 transition-all",g?"opacity-0":"opacity-100")},t.createElement("div",{className:"flex w-full flex-col gap-2 p-3"},t.createElement("div",{className:"text-sm font-bold"},a),t.createElement("div",{className:"text-sm font-normal"},i),d&&t.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.map((function(e,n){return t.createElement(Y,{key:n,variant:e.variant,onClick:e.onClick(),margins:"none"},e.icon&&e.icon,e.label)})))),t.createElement("button",{type:"button",className:"right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){f(),v(!0)}},t.createElement("span",{className:"sr-only"},"Close"),t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},J=function(e){var n=e.size,r=void 0===n?"normal":n,o=N(e,["size"]);return t.createElement("label",{htmlFor:"default-toggle",className:"relative inline-flex cursor-pointer items-center"},t.createElement("input",{type:"checkbox",value:"",id:"default-toggle",className:"peer sr-only"}),t.createElement("div",{className:j({small:"",normal:"peer-checked:after:translate-x-full h-6 w-11 after:top-[2px] after:left-[2px] after:h-5 after:w-5 ",large:"peer-checked:after:translate-x-[2.445rem] h-10 w-20 after:top-[2px] after:left-[2px] after:h-9 after:w-9"}[r],"peer rounded-full bg-gray-200 after:absolute after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-buttonPrimary-500 peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-buttonPrimary-700")}),o.text&&t.createElement("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},o.text))},Q=function(e){var r=n(e.val),a=r[0],i=r[1];return o((function(){e.onChange(a)}),[a]),t.createElement("div",{className:j(e.centered?"flex h-full items-center justify-center":"flex h-full items-start ")},t.createElement("input",{type:"checkbox",checked:a,onChange:function(e){return i(e.target.checked)},id:e.id,"aria-label":e.label,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(e.label||e.helperText)&&t.createElement("div",{className:" flex cursor-pointer flex-col py-2",onClick:function(e){return i(!a)}},e.label&&t.createElement("label",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},e.label),e.helperText&&t.createElement("p",{className:"mx-2 mt-1 text-xs text-red-600 dark:text-red-500"},e.helperText)))},q=function(e){var r=n(e.defaultValue);return r[0],r[1],t.createElement("div",null,t.createElement("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700"},t.createElement("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist"},e.options.map((function(e,n){return t.createElement("li",{key:n,className:"mr-2",role:"presentation"},t.createElement("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:"".concat(e.value,"-tab"),"data-tabs-target":"#".concat(e.value),type:"button",role:"tab","aria-controls":e.value,"aria-selected":"true"},e.label))})))),t.createElement("div",{id:"myTabContent"},e.options.map((function(e,n){return t.createElement("div",{key:n,className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:"".concat(e.value),role:"tabpanel","aria-labelledby":"".concat(e.value,"-tab")},e.content)}))))},K=function(e){var n=e.label,r=e.size,o=void 0===r?"normal":r,a=e.icon,i=e.color,l=e.dot,u=e.dotType,c=void 0===u?"available":u;return t.createElement("span",{className:j("flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",{small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""}[o],i?"bg-".concat(i,"-100 text-").concat(i,"-500"):"bg-layoutPrimary-500")},l&&t.createElement("span",{className:j({small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"}[o],{available:"bg-green-500",unavailable:"bg-red-500"}[c])}),a&&a,n)},$=function(e){return t.createElement("div",{className:"flex h-fit flex-row items-center gap-2 px-2"},t.createElement("div",null,e.icon),t.createElement("div",{className:"text-sm"},e.count))};function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ee(e,t,n[t])}))}return e}function ne(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var re=function(e){var n=e.margin,r=void 0===n?"normal":n,o=e.width,a=void 0===o?"full":o,i=e.preview,l=void 0!==i&&i,u=N(e,["margin","width","preview"]),c="block w-full rounded border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500";return t.createElement("div",{className:j("flex max-h-fit flex-col justify-center",{none:"mb-0",normal:"mb-3",large:"mb-5"}[r],{small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"}[a])},u.label&&t.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},u.label),l?t.createElement(t.Fragment,null,u.multiline?t.createElement("textarea",te({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):t.createElement("div",{className:"relative"},u.icon&&t.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),t.createElement("input",ne(te({},u),{disabled:l,className:j("block w-full rounded bg-gray-50 p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",u.icon?"pl-10":"")})))):t.createElement(t.Fragment,null,u.multiline?t.createElement("textarea",te({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):t.createElement("div",{className:"relative"},u.icon&&t.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),t.createElement("input",ne(te({},u),{className:j(c,u.icon?"pl-10":"")}))),u.helpertext?t.createElement("p",{className:"mb-0 mt-1 text-xs text-red-600 dark:text-red-500"},u.helpertext):null))},oe=function(e){var r=n(e.color),o=r[0],a=r[1];return t.createElement("div",{className:"flex w-fit flex-row rounded border-2 border-gray-200 p-0"},t.createElement("div",{style:{backgroundColor:o},className:"rounded-bl-lg rounded-tl-lg"},t.createElement("input",{type:"color",value:o,onChange:function(t){a(t.target.value),e.handleChange(t)},className:"opacity-0"})),t.createElement("input",{type:"text",onChange:function(t){a(t.target.value),e.handleChange(t)},value:o,className:"w-24 rounded-br-lg rounded-tr-lg pl-2 pr-2"}))},ae=function(e){var r=e.value,o=e.handleChange,a=e.startElement,i=e.endElement,l=e.label,u=N(e,["value","handleChange","startElement","endElement","label"]),c=n(r),s=c[0],d=c[1];return t.createElement("div",u,l&&t.createElement("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},l),t.createElement("div",{className:"flex w-fit flex-row items-center justify-center"},t.createElement("div",{className:"mr-2"},a)," ",t.createElement("input",{id:"default-range",type:"range",value:s,onChange:function(e){d(e.target.value),o(e)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),t.createElement("div",{className:"ml-2"},i)," "))},ie=function(e){var r,o,a,i=e.design,l=void 0===i?"default":i,u=e.orientation,c=void 0===u?"horizontal":u,s=N(e,["design","orientation"]),d=n(s.defaultValue),f=d[0],m=d[1],p={horizontal:"flex flex-row",vertical:"flex flex-col"};switch(l){case"tabs":return t.createElement("div",null,t.createElement("ul",{className:j((null===(r=s.options)||void 0===r?void 0:r.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":""," max-w-fit whitespace-nowrap rounded bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",p[c])},null===(o=s.options)||void 0===o?void 0:o.map((function(e,n){return t.createElement("li",{className:"w-full",key:n},t.createElement("button",{"aria-current":"page",onClick:function(){m(e.value),s.onChangeTab(e.value)},className:j("flex flex-row items-center justify-center gap-2",f===e.value?"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-500 rounded active":"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white")},e.icon&&e.icon,e.label))}))));case"bordered":return t.createElement("div",{className:j(p[c],"gap-4")},s.options.map((function(e,n){return t.createElement("div",{className:"rounded border border-gray-200 "},t.createElement("div",{className:"radio-item radio-item-bordered flex items-center transition-all",key:n+1},t.createElement("input",{disabled:e.disabled,id:e.value.toString(),type:"radio",value:e.value,name:"bordered-radio"}),t.createElement("label",{htmlFor:e.value.toString(),className:j("ml-2 w-full p-4 pl-3 text-sm font-medium",e.disabled?"opacity-50":"cursor-pointer text-gray-900")},e.label)))})));case"cards":return t.createElement("ul",{className:j(p[c],"gap-4")},null===(a=s.options)||void 0===a?void 0:a.map((function(e,n){return t.createElement("li",null,t.createElement("input",{type:"radio",id:e.value.toString(),name:"cards-radio",value:e.value.toString(),className:"peer hidden",required:!0,disabled:e.disabled}),t.createElement("label",{htmlFor:e.value.toString(),className:j("inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-blue-500",e.disabled?"opacity-50":"cursor-pointer hover:bg-gray-100 hover:text-gray-600")},t.createElement("div",{className:"block h-full w-full"},t.createElement("div",{className:"w-full text-lg font-semibold"},e.label),t.createElement("div",{className:"w-full"},e.sublabel))))})));default:return t.createElement("div",{className:p[c]},s.options.map((function(e,n){return t.createElement("div",{className:"radio-item radio-item-default mb-4 flex items-center transition-all",key:n+1},t.createElement("input",{disabled:e.disabled,id:e.value.toString(),type:"radio",value:e.value,name:"default-radio"}),t.createElement("label",{htmlFor:e.value.toString(),className:j("ml-2 text-sm font-medium ",e.disabled?"text-gray-400":"cursor-pointer text-gray-900")},e.label))})))}};function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e){var t=function(e,t){if("object"!==le(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===le(t)?t:String(t)}function ce(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function he(e){var t=e.defaultInputValue,r=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,l=e.defaultValue,u=void 0===l?null:l,c=e.inputValue,s=e.menuIsOpen,d=e.onChange,f=e.onInputChange,m=e.onMenuClose,p=e.onMenuOpen,g=e.value,v=ge(e,ve),h=pe(n(void 0!==c?c:r),2),b=h[0],y=h[1],x=pe(n(void 0!==s?s:i),2),w=x[0],C=x[1],E=pe(n(void 0!==g?g:u),2),D=E[0],A=E[1],F=a((function(e,t){"function"==typeof d&&d(e,t),A(e)}),[d]),B=a((function(e,t){var n;"function"==typeof f&&(n=f(e,t)),y(void 0!==n?n:e)}),[f]),O=a((function(){"function"==typeof p&&p(),C(!0)}),[p]),I=a((function(){"function"==typeof m&&m(),C(!1)}),[m]),j=void 0!==c?c:b,k=void 0!==s?s:w,N=void 0!==g?g:D;return de(de({},v),{},{inputValue:j,menuIsOpen:k,onChange:F,onInputChange:B,onMenuClose:I,onMenuOpen:O,value:N})}function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}function ye(e,t){if(n=e,!(null!=(r=t)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ue(r.key),r)}}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function Ee(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ce(e);if(t){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ae(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fe=function(){var e=function(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null},t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Be="-ms-",Oe="-moz-",Ie="-webkit-",je="comm",ke="rule",Ne="decl",Se="@keyframes",Pe=Math.abs,Te=String.fromCharCode,Re=Object.assign;function Me(e){return e.trim()}function Le(e,t,n){return e.replace(t,n)}function Ge(e,t){return e.indexOf(t)}function Ve(e,t){return 0|e.charCodeAt(t)}function We(e,t,n){return e.slice(t,n)}function ze(e){return e.length}function Ze(e){return e.length}function Xe(e,t){return t.push(e),e}var _e=1,He=1,Ye=0,Ue=0,Je=0,Qe="";function qe(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:_e,column:He,length:i,return:""}}function Ke(e,t){return Re(qe("",null,null,"",null,null,0),e,{length:-e.length},t)}function $e(){return Je=Ue>0?Ve(Qe,--Ue):0,He--,10===Je&&(He=1,_e--),Je}function et(){return Je=Ue<Ye?Ve(Qe,Ue++):0,He++,10===Je&&(He=1,_e++),Je}function tt(){return Ve(Qe,Ue)}function nt(){return Ue}function rt(e,t){return We(Qe,e,t)}function ot(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function at(e){return _e=He=1,Ye=ze(Qe=e),Ue=0,[]}function it(e){return Qe="",e}function lt(e){return Me(rt(Ue-1,st(91===e?e+2:40===e?e+1:e)))}function ut(e){for(;(Je=tt())&&Je<33;)et();return ot(e)>2||ot(Je)>3?"":" "}function ct(e,t){for(;--t&&et()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return rt(e,nt()+(t<6&&32==tt()&&32==et()))}function st(e){for(;et();)switch(Je){case e:return Ue;case 34:case 39:34!==e&&39!==e&&st(Je);break;case 40:41===e&&st(e);break;case 92:et()}return Ue}function dt(e,t){for(;et()&&e+Je!==57&&(e+Je!==84||47!==tt()););return"/*"+rt(t,Ue-1)+"*"+Te(47===e?e:et())}function ft(e){for(;!ot(tt());)et();return rt(e,Ue)}function mt(e){return it(pt("",null,null,null,[""],e=at(e),0,[0],e))}function pt(e,t,n,r,o,a,i,l,u){for(var c=0,s=0,d=i,f=0,m=0,p=0,g=1,v=1,h=1,b=0,y="",x=o,w=a,C=r,E=y;v;)switch(p=b,b=et()){case 40:if(108!=p&&58==Ve(E,d-1)){-1!=Ge(E+=Le(lt(b),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:E+=lt(b);break;case 9:case 10:case 13:case 32:E+=ut(p);break;case 92:E+=ct(nt()-1,7);continue;case 47:switch(tt()){case 42:case 47:Xe(vt(dt(et(),nt()),t,n),u);break;default:E+="/"}break;case 123*g:l[c++]=ze(E)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+s:-1==h&&(E=Le(E,/\f/g,"")),m>0&&ze(E)-d&&Xe(m>32?ht(E+";",r,n,d-1):ht(Le(E," ","")+";",r,n,d-2),u);break;case 59:E+=";";default:if(Xe(C=gt(E,t,n,c,s,o,l,y,x=[],w=[],d),a),123===b)if(0===s)pt(E,t,C,C,x,a,d,l,w);else switch(99===f&&110===Ve(E,3)?100:f){case 100:case 108:case 109:case 115:pt(e,C,C,r&&Xe(gt(e,C,C,0,0,o,l,y,o,x=[],d),w),o,w,d,l,r?x:w);break;default:pt(E,C,C,C,[""],w,0,l,w)}}c=s=m=0,g=h=1,y=E="",d=i;break;case 58:d=1+ze(E),m=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==$e())continue;switch(E+=Te(b),b*g){case 38:h=s>0?1:(E+="\f",-1);break;case 44:l[c++]=(ze(E)-1)*h,h=1;break;case 64:45===tt()&&(E+=lt(et())),f=tt(),s=d=ze(y=E+=ft(nt())),b++;break;case 45:45===p&&2==ze(E)&&(g=0)}}return a}function gt(e,t,n,r,o,a,i,l,u,c,s){for(var d=o-1,f=0===o?a:[""],m=Ze(f),p=0,g=0,v=0;p<r;++p)for(var h=0,b=We(e,d+1,d=Pe(g=i[p])),y=e;h<m;++h)(y=Me(g>0?f[h]+" "+b:Le(b,/&\f/g,f[h])))&&(u[v++]=y);return qe(e,t,n,0===o?ke:l,u,c,s)}function vt(e,t,n){return qe(e,t,n,je,Te(Je),We(e,2,-2),0)}function ht(e,t,n,r){return qe(e,t,n,Ne,We(e,0,r),We(e,r+1,-1),r)}function bt(e,t){for(var n="",r=Ze(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ne:return e.return=e.return||e.value;case je:return"";case Se:return e.return=e.value+"{"+bt(e.children,r)+"}";case ke:e.value=e.props.join(",")}return ze(n=bt(e.children,r))?e.return=e.value+"{"+n+"}":""}function xt(e){var t=Ze(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var wt=function(e,t,n){for(var r=0,o=0;r=o,o=tt(),38===r&&12===o&&(t[n]=1),!ot(o);)et();return rt(e,Ue)},Ct=function(e,t){return it(function(e,t){var n=-1,r=44;do{switch(ot(r)){case 0:38===r&&12===tt()&&(t[n]=1),e[n]+=wt(Ue-1,t,n);break;case 2:e[n]+=lt(r);break;case 4:if(44===r){e[++n]=58===tt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Te(r)}}while(r=et());return e}(at(e),t))},Et=new WeakMap,Dt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Et.get(n))&&!r){Et.set(e,!0);for(var o=[],a=Ct(t,o),i=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<i.length;c++,u++)e.props[u]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},At=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ft=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Bt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ot=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},It=function(e,t,n){Bt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ot(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Bt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ot(e)))};function jt(e,t){switch(function(e,t){return 45^Ve(e,0)?(((t<<2^Ve(e,0))<<2^Ve(e,1))<<2^Ve(e,2))<<2^Ve(e,3):0}(e,t)){case 5103:return Ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+e+Oe+e+Be+e+e;case 6828:case 4268:return Ie+e+Be+e+e;case 6165:return Ie+e+Be+"flex-"+e+e;case 5187:return Ie+e+Le(e,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return Ie+e+Be+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Ie+e+Be+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Ie+e+Be+Le(e,"shrink","negative")+e;case 5292:return Ie+e+Be+Le(e,"basis","preferred-size")+e;case 6060:return Ie+"box-"+Le(e,"-grow","")+Ie+e+Be+Le(e,"grow","positive")+e;case 4554:return Ie+Le(e,/([^-])(transform)/g,"$1"+Ie+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ze(e)-1-t>6)switch(Ve(e,t+1)){case 109:if(45!==Ve(e,t+4))break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+Oe+(108==Ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ge(e,"stretch")?jt(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ve(e,t+1))break;case 6444:switch(Ve(e,ze(e)-3-(~Ge(e,"!important")&&10))){case 107:return Le(e,":",":"+Ie)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(45===Ve(e,14)?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+Be+e+e}return e}var kt="undefined"!=typeof document,Nt=kt?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),St=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ne:e.return=jt(e.value,e.length);break;case Se:return bt([Ke(e,{value:Le(e.value,"@","@"+Ie)})],r);case ke:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Ke(e,{props:[Le(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bt([Ke(e,{props:[Le(t,/:(plac\w+)/,":"+Ie+"input-$1")]}),Ke(e,{props:[Le(t,/:(plac\w+)/,":-moz-$1")]}),Ke(e,{props:[Le(t,/:(plac\w+)/,Be+"input-$1")]})],r)}return""}))}}],Pt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(kt&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||St;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];kt&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var u,c=[Dt,At];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if(Ft(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return h.compat}}),It),kt){var s,d=[yt,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?s.insert(e.return):e.value&&e.type!==je&&s.insert(e.value+"{}"))}:(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=xt(c.concat(r,d));a=function(e,t,n,r){s=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(s={insert:function(e){n.insert(e+t.map)}}),function(e){bt(mt(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)}}else{var m=[yt],p=xt(c.concat(r,m)),g=Nt(r)(t),v=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return bt(mt(e),p)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=v(e,t);return void 0===h.compat?(r&&(h.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(h.inserted[o]=a):a}}var h={key:t,sheet:new Fe({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(l),h},Tt={exports:{}},Rt={},Mt="function"==typeof Symbol&&Symbol.for,Lt=Mt?Symbol.for("react.element"):60103,Gt=Mt?Symbol.for("react.portal"):60106,Vt=Mt?Symbol.for("react.fragment"):60107,Wt=Mt?Symbol.for("react.strict_mode"):60108,zt=Mt?Symbol.for("react.profiler"):60114,Zt=Mt?Symbol.for("react.provider"):60109,Xt=Mt?Symbol.for("react.context"):60110,_t=Mt?Symbol.for("react.async_mode"):60111,Ht=Mt?Symbol.for("react.concurrent_mode"):60111,Yt=Mt?Symbol.for("react.forward_ref"):60112,Ut=Mt?Symbol.for("react.suspense"):60113,Jt=Mt?Symbol.for("react.suspense_list"):60120,Qt=Mt?Symbol.for("react.memo"):60115,qt=Mt?Symbol.for("react.lazy"):60116,Kt=Mt?Symbol.for("react.block"):60121,$t=Mt?Symbol.for("react.fundamental"):60117,en=Mt?Symbol.for("react.responder"):60118,tn=Mt?Symbol.for("react.scope"):60119;function nn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Lt:switch(e=e.type){case _t:case Ht:case Vt:case zt:case Wt:case Ut:return e;default:switch(e=e&&e.$$typeof){case Xt:case Yt:case qt:case Qt:case Zt:return e;default:return t}}case Gt:return t}}}function rn(e){return nn(e)===Ht}Rt.AsyncMode=_t,Rt.ConcurrentMode=Ht,Rt.ContextConsumer=Xt,Rt.ContextProvider=Zt,Rt.Element=Lt,Rt.ForwardRef=Yt,Rt.Fragment=Vt,Rt.Lazy=qt,Rt.Memo=Qt,Rt.Portal=Gt,Rt.Profiler=zt,Rt.StrictMode=Wt,Rt.Suspense=Ut,Rt.isAsyncMode=function(e){return rn(e)||nn(e)===_t},Rt.isConcurrentMode=rn,Rt.isContextConsumer=function(e){return nn(e)===Xt},Rt.isContextProvider=function(e){return nn(e)===Zt},Rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lt},Rt.isForwardRef=function(e){return nn(e)===Yt},Rt.isFragment=function(e){return nn(e)===Vt},Rt.isLazy=function(e){return nn(e)===qt},Rt.isMemo=function(e){return nn(e)===Qt},Rt.isPortal=function(e){return nn(e)===Gt},Rt.isProfiler=function(e){return nn(e)===zt},Rt.isStrictMode=function(e){return nn(e)===Wt},Rt.isSuspense=function(e){return nn(e)===Ut},Rt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vt||e===Ht||e===zt||e===Wt||e===Ut||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===qt||e.$$typeof===Qt||e.$$typeof===Zt||e.$$typeof===Xt||e.$$typeof===Yt||e.$$typeof===$t||e.$$typeof===en||e.$$typeof===tn||e.$$typeof===Kt)},Rt.typeOf=nn;var on={};
|
|
1
|
+
import*as e from"react";import t,{useState as n,useRef as r,useEffect as o,useCallback as a,forwardRef as i,useContext as l,useLayoutEffect as u,createContext as c,useMemo as s,Component as d,Fragment as f,createElement as m,Children as p,isValidElement as g,cloneElement as v,useReducer as h,useImperativeHandle as b,memo as y}from"react";import*as x from"react-dom";import w,{createPortal as C,flushSync as E}from"react-dom";import D from"object-assign";import A from"direction";import F from"lodash/debounce";import B from"lodash/throttle";import O from"react-dom/server";function I(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=I(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function j(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=I(e))&&(r&&(r+=" "),r+=t);return r}var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)};function N(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n,r){var o=function(e){return t=e,(null!=(r=n)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e:new n((function(t){t(e)}));var t,r};return new(n||(n=Promise))((function(n,a){var i=function(e){try{u(r.next(e))}catch(e){a(e)}},l=function(e){try{u(r.throw(e))}catch(e){a(e)}},u=function(e){e.done?n(e.value):o(e.value).then(i,l)};u((r=r.apply(e,t||[])).next())}))}function P(e,t){var n,r,o,a,i=function(e){return function(t){return l([e,t])}},l=function(i){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}},u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}function T(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function R(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var M=function(e){var n=e.design,r=void 0===n?"spinner":n,o=e.size,a=void 0===o?"sm":o,i=e.color;N(e,["design","size","color"]);var l={button:"h-4 w-4",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},u={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};return"dots"===r.split("-")[0]?t.createElement("div",{className:"flex flex-row space-x-2 "},t.createElement("div",{className:j("animate-bounce rounded-full delay-100 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")}),t.createElement("div",{className:j("animate-bounce rounded-full delay-200 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")}),t.createElement("div",{className:j("animate-bounce rounded-full delay-300 repeat-infinite","button"===a?"h-2 w-2":l[a],u[r.split("-")[1]],i||"bg-buttonPrimary-500")})):t.createElement("div",{className:"flex flex-row gap-x-3"},t.createElement("div",{"aria-label":"Loading...",role:"status"},t.createElement("svg",{className:j(l[a],"animate-spin"),viewBox:"3 3 18 18"},t.createElement("path",{className:"fill-gray-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),t.createElement("path",{className:i||"fill-buttonPrimary-500",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"}))))},L=function(e){var a=e.children,i=e.content,l=e.size,u=void 0===l?"normal":l,c=e.position,s=void 0===c?"top-right":c,d=e.direction,f=void 0===d?"ltr":d,m=n(!1),p=m[0],g=m[1],v=r(null),h=n(null),b=h[0],y=h[1],x=n(null),w=x[0],C=x[1],E=r(null),D=n(null),A=D[0],F=D[1],B=n(null),O=B[0],I=B[1];o((function(){var e,t,n,r;I(null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect().height),F(null===(t=E.current)||void 0===t?void 0:t.getBoundingClientRect().width),y(null===(n=v.current)||void 0===n?void 0:n.getBoundingClientRect().height),C(null===(r=v.current)||void 0===r?void 0:r.getBoundingClientRect().width)}));var k;switch(s){case"top-right":k="rtl"===f?"".concat(A-w,"px, -").concat(O+b+5,"px"):"0px, -".concat(O+b+5,"px");break;case"top-left":k="rtl"===f?"".concat(0,"px, -").concat(O+b+5,"px"):"-".concat(A-w,"px, -").concat(O+b+5,"px");break;case"bottom-right":k="rtl"===f?"".concat(A-w,"px, ").concat(5,"px"):"-".concat(0,"px, ").concat(5,"px");break;case"bottom-left":k="rtl"===f?"0px, ".concat(5,"px"):"-".concat(A-w,"px,").concat(5,"px");break;case"right-bottom":k="rtl"===f?"".concat(A+5,"px, -").concat(b,"px"):"".concat(w+5,"px, -").concat(b,"px");break;case"right-top":k="rtl"===f?"".concat(A+5,"px, -").concat(O,"px"):"".concat(w+5,"px, -").concat(O,"px");break;case"left-bottom":k="rtl"===f?"-".concat(w+5,"px, -").concat(b,"px"):"-".concat(A+5,"px, -").concat(b,"px");break;case"left-top":k="rtl"===f?"-".concat(w+5,"px, -").concat(O,"px"):"-".concat(A+5,"px, -").concat(O,"px");break;default:k="-".concat(A/2,"px, -").concat(b+O/2,"px")}return t.createElement("div",{onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},t.createElement("div",{ref:v},a),t.createElement("div",{ref:E,style:{position:"absolute",width:"max-content",transform:"translate(".concat(k,")"),opacity:p?"1":"0",maxWidth:"200px"},className:j("absolute z-10 rounded bg-gray-900 text-center text-sm font-medium text-white shadow-sm transition-all duration-300 dark:bg-gray-700",{normal:"py-2 px-3 leading-2",small:"py-2 px-2 text-[10px] leading-tight",large:"py-2 px-2 text-lg leading-tight"}[u])},i))},G="cursor-default pointer-events-none",V={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},W="cursor-pointer h-[2.36rem] justify-center items-center text-center font-medium transition-all",z={xs:"px-1 py-1",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},Z={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},X={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},_={contained:"border-transparent",outlined:"bg-transparent border"},H={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200 ",dark:"border-gray-900 hover:bg-gray-700 "}},Y=function(e){var r=e.className,o=e.variant,a=void 0===o?"contained":o,i=e.color,l=void 0===i?"default":i,u=e.size,c=void 0===u?"medium":u,s=e.width,d=void 0===s?"normal":s,f=e.disabled,m=void 0!==f&&f,p=e.isLoading,g=void 0!==p&&p,v=e.tooltip,h=e.tooltipSize,b=void 0===h?"normal":h,y=e.tooltipPosition,x=void 0===y?"top-left":y,w=e.tooltipDirection,C=void 0===w?"ltr":w,E=e.margins,D=void 0===E?"2":E,A=e.children,F=e.badge,B=e.edgeCorner,O=void 0!==B&&B,I=e.feedback,k=N(e,["className","variant","color","size","width","disabled","isLoading","tooltip","tooltipSize","tooltipPosition","tooltipDirection","margins","children","badge","edgeCorner","feedback"]),S=n(!1),P=S[0],T=S[1],R=n(A),Y=R[0],U=R[1];return t.createElement("div",{className:j("relative","none"!==D?"my-".concat(D):"m-0",X[d])},v?t.createElement(L,{direction:C,position:x,size:b,content:v},t.createElement("button",{className:m?j(r,W,O?"rounded-inner":"rounded",_[a],z[c],Z[d],G,V[a]):j(r,W,O?"rounded-inner":"rounded",_[a],z[c],H[a][l],Z[d]),disabled:m,onClick:k.onClick},g?t.createElement(M,{size:"button"}):A)):t.createElement("button",{className:m?j(r,W,O?"rounded-inner":"rounded",_[a],z[c],Z[d],G,V[a]):j(r,"overflow-x-clip",W,O?"rounded-inner":"rounded",_[a],z[c],H[a][l],Z[d]),disabled:m,onClick:function(e){k.onClick&&k.onClick(e),I&&!P&&(U(I),T(!0),setTimeout((function(){U(A),T(!1)}),2e3))}},g?t.createElement(M,{design:"dots-pulse",color:"bg-white",size:"button"}):t.createElement("div",{className:j(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",P&&I?" -translate-y-8 pb-1 pt-1":"translate-y-0")},P&&I?t.createElement("div",{className:"w-full text-center"},Y):null,t.createElement("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap"},k.startIcon&&k.startIcon,A,k.endIcon&&k.endIcon))),F&&t.createElement("div",{className:j("boolean"==typeof F?"h-5 w-5":"string"==typeof F?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900")},"number"==typeof F&&F>100?"+99":F))},U=function(e){var a=e.title,i=e.description,l=e.severity,u=void 0===l?"info":l,c=e.position,s=void 0===c?"bottom-left":c,d=e.actions,f=e.onCloseSnakbar,m=e.duration,p=n(!1),g=p[0],v=p[1],h=r(null);return o((function(){if(m){var e=setTimeout((function(){v(!0)}),m),t=setTimeout((function(){v(!0),h.current.removeChild(h.current.children[0])}),m+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[m]),t.createElement("div",{ref:h},t.createElement("div",{id:"toast-default",role:"alert",className:j("fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800",{info:"text-blue-700 bg-blue-100",warning:"text-yellow-700 bg-yellow-100",error:"text-red-700 bg-red-100",success:"text-green-700 bg-green-100",none:"text-gray-500 bg-white "}[u],{"top-left":"top-4","top-right":"top-4 right-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-left":"bottom-4","bottom-right":"bottom-4 right-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"}[s],"p-2 transition-all",g?"opacity-0":"opacity-100")},t.createElement("div",{className:"flex w-full flex-col gap-2 p-3"},t.createElement("div",{className:"text-sm font-bold"},a),t.createElement("div",{className:"text-sm font-normal"},i),d&&t.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.map((function(e,n){return t.createElement(Y,{key:n,variant:e.variant,onClick:e.onClick(),margins:"none"},e.icon&&e.icon,e.label)})))),t.createElement("button",{type:"button",className:"right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){f(),v(!0)}},t.createElement("span",{className:"sr-only"},"Close"),t.createElement("svg",{"aria-label":"Close Button","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},J=function(e){var n=e.size,r=void 0===n?"normal":n,o=N(e,["size"]);return t.createElement("label",{htmlFor:"default-toggle",className:"relative inline-flex cursor-pointer items-center"},t.createElement("input",{type:"checkbox",value:"",id:"default-toggle",className:"peer sr-only"}),t.createElement("div",{className:j({small:"",normal:"peer-checked:after:translate-x-full h-6 w-11 after:top-[2px] after:left-[2px] after:h-5 after:w-5 ",large:"peer-checked:after:translate-x-[2.445rem] h-10 w-20 after:top-[2px] after:left-[2px] after:h-9 after:w-9"}[r],"peer rounded-full bg-gray-200 after:absolute after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-buttonPrimary-500 peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-buttonPrimary-700")}),o.text&&t.createElement("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},o.text))},Q=function(e){var r=n(e.val),a=r[0],i=r[1];return o((function(){e.onChange(a)}),[a]),t.createElement("div",{className:j(e.centered?"flex h-full items-center justify-center":"flex h-full items-start ")},t.createElement("input",{type:"checkbox",checked:a,onChange:function(e){return i(e.target.checked)},id:e.id,"aria-label":e.label,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(e.label||e.helperText)&&t.createElement("div",{className:" flex cursor-pointer flex-col py-2",onClick:function(e){return i(!a)}},e.label&&t.createElement("label",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},e.label),e.helperText&&t.createElement("p",{className:"mx-2 mt-1 text-xs text-red-600 dark:text-red-500"},e.helperText)))},q=function(e){var r=n(e.defaultValue);return r[0],r[1],t.createElement("div",null,t.createElement("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700"},t.createElement("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist"},e.options.map((function(e,n){return t.createElement("li",{key:n,className:"mr-2",role:"presentation"},t.createElement("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:"".concat(e.value,"-tab"),"data-tabs-target":"#".concat(e.value),type:"button",role:"tab","aria-controls":e.value,"aria-selected":"true"},e.label))})))),t.createElement("div",{id:"myTabContent"},e.options.map((function(e,n){return t.createElement("div",{key:n,className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:"".concat(e.value),role:"tabpanel","aria-labelledby":"".concat(e.value,"-tab")},e.content)}))))},K=function(e){var n=e.label,r=e.size,o=void 0===r?"normal":r,a=e.icon,i=e.color,l=e.dot,u=e.dotType,c=void 0===u?"available":u;return t.createElement("span",{className:j("flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",{small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""}[o],i?"bg-".concat(i,"-100 text-").concat(i,"-500"):"bg-layoutPrimary-500")},l&&t.createElement("span",{className:j({small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"}[o],{available:"bg-green-500",unavailable:"bg-red-500"}[c])}),a&&a,n)},$=function(e){return t.createElement("div",{className:"flex h-fit flex-row items-center gap-2 px-2"},t.createElement("div",null,e.icon),t.createElement("div",{className:"text-sm"},e.count))};function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ee(e,t,n[t])}))}return e}function ne(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var re=function(e){var n=e.margin,r=void 0===n?"normal":n,o=e.width,a=void 0===o?"full":o,i=e.preview,l=void 0!==i&&i,u=N(e,["margin","width","preview"]),c="block w-full rounded border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500";return t.createElement("div",{className:j("flex max-h-fit flex-col justify-center",{none:"mb-0",normal:"mb-3",large:"mb-5"}[r],{small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"}[a])},u.label&&t.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},u.label),l?t.createElement(t.Fragment,null,u.multiline?t.createElement("textarea",te({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):t.createElement("div",{className:"relative"},u.icon&&t.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),t.createElement("input",ne(te({},u),{disabled:l,className:j("block w-full rounded bg-gray-50 p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",u.icon?"pl-10":"")})))):t.createElement(t.Fragment,null,u.multiline?t.createElement("textarea",te({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):t.createElement("div",{className:"relative"},u.icon&&t.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),t.createElement("input",ne(te({},u),{className:j(c,u.icon?"pl-10":"")}))),u.helpertext?t.createElement("p",{className:"mb-0 mt-1 text-xs text-red-600 dark:text-red-500"},u.helpertext):null))},oe=function(e){var r=n(e.color),o=r[0],a=r[1];return t.createElement("div",{className:"flex w-fit flex-row rounded border-2 border-gray-200 p-0"},t.createElement("div",{style:{backgroundColor:o},className:"rounded-bl-lg rounded-tl-lg"},t.createElement("input",{type:"color",value:o,onChange:function(t){a(t.target.value),e.handleChange(t)},className:"opacity-0"})),t.createElement("input",{type:"text",onChange:function(t){a(t.target.value),e.handleChange(t)},value:o,className:"w-24 rounded-br-lg rounded-tr-lg pl-2 pr-2"}))},ae=function(e){var r=e.value,o=e.handleChange,a=e.startElement,i=e.endElement,l=e.label,u=N(e,["value","handleChange","startElement","endElement","label"]),c=n(r),s=c[0],d=c[1];return t.createElement("div",u,l&&t.createElement("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},l),t.createElement("div",{className:"flex w-fit flex-row items-center justify-center"},t.createElement("div",{className:"mr-2"},a)," ",t.createElement("input",{id:"default-range",type:"range",value:s,onChange:function(e){d(e.target.value),o(e)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),t.createElement("div",{className:"ml-2"},i)," "))},ie=function(e){var r,o,a,i=e.design,l=void 0===i?"default":i,u=e.orientation,c=void 0===u?"horizontal":u,s=N(e,["design","orientation"]),d=n(s.defaultValue),f=d[0],m=d[1],p={horizontal:"flex flex-row",vertical:"flex flex-col"};switch(l){case"tabs":return t.createElement("div",null,t.createElement("ul",{className:j((null===(r=s.options)||void 0===r?void 0:r.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":""," max-w-fit whitespace-nowrap rounded bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",p[c])},null===(o=s.options)||void 0===o?void 0:o.map((function(e,n){return t.createElement("li",{className:"w-full",key:n},t.createElement("button",{"aria-current":"page",onClick:function(){m(e.value),s.onChangeTab(e.value)},className:j("flex flex-row items-center justify-center gap-2",f===e.value?"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-500 rounded active":"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white")},e.icon&&e.icon,e.label))}))));case"bordered":return t.createElement("div",{className:j(p[c],"gap-4")},s.options.map((function(e,n){return t.createElement("div",{className:"rounded border border-gray-200 "},t.createElement("div",{className:"radio-item radio-item-bordered flex items-center transition-all",key:n+1},t.createElement("input",{disabled:e.disabled,id:e.value.toString(),type:"radio",value:e.value,name:"bordered-radio"}),t.createElement("label",{htmlFor:e.value.toString(),className:j("ml-2 w-full p-4 pl-3 text-sm font-medium",e.disabled?"opacity-50":"cursor-pointer text-gray-900")},e.label)))})));case"cards":return t.createElement("ul",{className:j(p[c],"gap-4")},null===(a=s.options)||void 0===a?void 0:a.map((function(e,n){return t.createElement("li",null,t.createElement("input",{type:"radio",id:e.value.toString(),name:"cards-radio",value:e.value.toString(),className:"peer hidden",required:!0,disabled:e.disabled}),t.createElement("label",{htmlFor:e.value.toString(),className:j("inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-blue-500",e.disabled?"opacity-50":"cursor-pointer hover:bg-gray-100 hover:text-gray-600")},t.createElement("div",{className:"block h-full w-full"},t.createElement("div",{className:"w-full text-lg font-semibold"},e.label),t.createElement("div",{className:"w-full"},e.sublabel))))})));default:return t.createElement("div",{className:p[c]},s.options.map((function(e,n){return t.createElement("div",{className:"radio-item radio-item-default mb-4 flex items-center transition-all",key:n+1},t.createElement("input",{disabled:e.disabled,id:e.value.toString(),type:"radio",value:e.value,name:"default-radio"}),t.createElement("label",{htmlFor:e.value.toString(),className:j("ml-2 text-sm font-medium ",e.disabled?"text-gray-400":"cursor-pointer text-gray-900")},e.label))})))}};function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e){var t=function(e,t){if("object"!==le(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===le(t)?t:String(t)}function ce(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function he(e){var t=e.defaultInputValue,r=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,l=e.defaultValue,u=void 0===l?null:l,c=e.inputValue,s=e.menuIsOpen,d=e.onChange,f=e.onInputChange,m=e.onMenuClose,p=e.onMenuOpen,g=e.value,v=ge(e,ve),h=pe(n(void 0!==c?c:r),2),b=h[0],y=h[1],x=pe(n(void 0!==s?s:i),2),w=x[0],C=x[1],E=pe(n(void 0!==g?g:u),2),D=E[0],A=E[1],F=a((function(e,t){"function"==typeof d&&d(e,t),A(e)}),[d]),B=a((function(e,t){var n;"function"==typeof f&&(n=f(e,t)),y(void 0!==n?n:e)}),[f]),O=a((function(){"function"==typeof p&&p(),C(!0)}),[p]),I=a((function(){"function"==typeof m&&m(),C(!1)}),[m]),j=void 0!==c?c:b,k=void 0!==s?s:w,N=void 0!==g?g:D;return de(de({},v),{},{inputValue:j,menuIsOpen:k,onChange:F,onInputChange:B,onMenuClose:I,onMenuOpen:O,value:N})}function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}function ye(e,t){if(n=e,!(null!=(r=t)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r))throw new TypeError("Cannot call a class as a function");var n,r}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ue(r.key),r)}}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function Ee(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ce(e);if(t){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ae(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fe=function(){var e=function(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null},t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Be="-ms-",Oe="-moz-",Ie="-webkit-",je="comm",ke="rule",Ne="decl",Se="@keyframes",Pe=Math.abs,Te=String.fromCharCode,Re=Object.assign;function Me(e){return e.trim()}function Le(e,t,n){return e.replace(t,n)}function Ge(e,t){return e.indexOf(t)}function Ve(e,t){return 0|e.charCodeAt(t)}function We(e,t,n){return e.slice(t,n)}function ze(e){return e.length}function Ze(e){return e.length}function Xe(e,t){return t.push(e),e}var _e=1,He=1,Ye=0,Ue=0,Je=0,Qe="";function qe(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:_e,column:He,length:i,return:""}}function Ke(e,t){return Re(qe("",null,null,"",null,null,0),e,{length:-e.length},t)}function $e(){return Je=Ue>0?Ve(Qe,--Ue):0,He--,10===Je&&(He=1,_e--),Je}function et(){return Je=Ue<Ye?Ve(Qe,Ue++):0,He++,10===Je&&(He=1,_e++),Je}function tt(){return Ve(Qe,Ue)}function nt(){return Ue}function rt(e,t){return We(Qe,e,t)}function ot(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function at(e){return _e=He=1,Ye=ze(Qe=e),Ue=0,[]}function it(e){return Qe="",e}function lt(e){return Me(rt(Ue-1,st(91===e?e+2:40===e?e+1:e)))}function ut(e){for(;(Je=tt())&&Je<33;)et();return ot(e)>2||ot(Je)>3?"":" "}function ct(e,t){for(;--t&&et()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return rt(e,nt()+(t<6&&32==tt()&&32==et()))}function st(e){for(;et();)switch(Je){case e:return Ue;case 34:case 39:34!==e&&39!==e&&st(Je);break;case 40:41===e&&st(e);break;case 92:et()}return Ue}function dt(e,t){for(;et()&&e+Je!==57&&(e+Je!==84||47!==tt()););return"/*"+rt(t,Ue-1)+"*"+Te(47===e?e:et())}function ft(e){for(;!ot(tt());)et();return rt(e,Ue)}function mt(e){return it(pt("",null,null,null,[""],e=at(e),0,[0],e))}function pt(e,t,n,r,o,a,i,l,u){for(var c=0,s=0,d=i,f=0,m=0,p=0,g=1,v=1,h=1,b=0,y="",x=o,w=a,C=r,E=y;v;)switch(p=b,b=et()){case 40:if(108!=p&&58==Ve(E,d-1)){-1!=Ge(E+=Le(lt(b),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:E+=lt(b);break;case 9:case 10:case 13:case 32:E+=ut(p);break;case 92:E+=ct(nt()-1,7);continue;case 47:switch(tt()){case 42:case 47:Xe(vt(dt(et(),nt()),t,n),u);break;default:E+="/"}break;case 123*g:l[c++]=ze(E)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+s:-1==h&&(E=Le(E,/\f/g,"")),m>0&&ze(E)-d&&Xe(m>32?ht(E+";",r,n,d-1):ht(Le(E," ","")+";",r,n,d-2),u);break;case 59:E+=";";default:if(Xe(C=gt(E,t,n,c,s,o,l,y,x=[],w=[],d),a),123===b)if(0===s)pt(E,t,C,C,x,a,d,l,w);else switch(99===f&&110===Ve(E,3)?100:f){case 100:case 108:case 109:case 115:pt(e,C,C,r&&Xe(gt(e,C,C,0,0,o,l,y,o,x=[],d),w),o,w,d,l,r?x:w);break;default:pt(E,C,C,C,[""],w,0,l,w)}}c=s=m=0,g=h=1,y=E="",d=i;break;case 58:d=1+ze(E),m=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==$e())continue;switch(E+=Te(b),b*g){case 38:h=s>0?1:(E+="\f",-1);break;case 44:l[c++]=(ze(E)-1)*h,h=1;break;case 64:45===tt()&&(E+=lt(et())),f=tt(),s=d=ze(y=E+=ft(nt())),b++;break;case 45:45===p&&2==ze(E)&&(g=0)}}return a}function gt(e,t,n,r,o,a,i,l,u,c,s){for(var d=o-1,f=0===o?a:[""],m=Ze(f),p=0,g=0,v=0;p<r;++p)for(var h=0,b=We(e,d+1,d=Pe(g=i[p])),y=e;h<m;++h)(y=Me(g>0?f[h]+" "+b:Le(b,/&\f/g,f[h])))&&(u[v++]=y);return qe(e,t,n,0===o?ke:l,u,c,s)}function vt(e,t,n){return qe(e,t,n,je,Te(Je),We(e,2,-2),0)}function ht(e,t,n,r){return qe(e,t,n,Ne,We(e,0,r),We(e,r+1,-1),r)}function bt(e,t){for(var n="",r=Ze(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ne:return e.return=e.return||e.value;case je:return"";case Se:return e.return=e.value+"{"+bt(e.children,r)+"}";case ke:e.value=e.props.join(",")}return ze(n=bt(e.children,r))?e.return=e.value+"{"+n+"}":""}function xt(e){var t=Ze(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var wt=function(e,t,n){for(var r=0,o=0;r=o,o=tt(),38===r&&12===o&&(t[n]=1),!ot(o);)et();return rt(e,Ue)},Ct=function(e,t){return it(function(e,t){var n=-1,r=44;do{switch(ot(r)){case 0:38===r&&12===tt()&&(t[n]=1),e[n]+=wt(Ue-1,t,n);break;case 2:e[n]+=lt(r);break;case 4:if(44===r){e[++n]=58===tt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Te(r)}}while(r=et());return e}(at(e),t))},Et=new WeakMap,Dt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Et.get(n))&&!r){Et.set(e,!0);for(var o=[],a=Ct(t,o),i=n.props,l=0,u=0;l<a.length;l++)for(var c=0;c<i.length;c++,u++)e.props[u]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},At=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ft=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Bt=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ot=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},It=function(e,t,n){Bt(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ot(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Bt(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ot(e)))};function jt(e,t){switch(function(e,t){return 45^Ve(e,0)?(((t<<2^Ve(e,0))<<2^Ve(e,1))<<2^Ve(e,2))<<2^Ve(e,3):0}(e,t)){case 5103:return Ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+e+Oe+e+Be+e+e;case 6828:case 4268:return Ie+e+Be+e+e;case 6165:return Ie+e+Be+"flex-"+e+e;case 5187:return Ie+e+Le(e,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return Ie+e+Be+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Ie+e+Be+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Ie+e+Be+Le(e,"shrink","negative")+e;case 5292:return Ie+e+Be+Le(e,"basis","preferred-size")+e;case 6060:return Ie+"box-"+Le(e,"-grow","")+Ie+e+Be+Le(e,"grow","positive")+e;case 4554:return Ie+Le(e,/([^-])(transform)/g,"$1"+Ie+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ze(e)-1-t>6)switch(Ve(e,t+1)){case 109:if(45!==Ve(e,t+4))break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+Oe+(108==Ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ge(e,"stretch")?jt(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ve(e,t+1))break;case 6444:switch(Ve(e,ze(e)-3-(~Ge(e,"!important")&&10))){case 107:return Le(e,":",":"+Ie)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(45===Ve(e,14)?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+Be+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+Be+e+e}return e}var kt="undefined"!=typeof document,Nt=kt?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),St=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ne:e.return=jt(e.value,e.length);break;case Se:return bt([Ke(e,{value:Le(e.value,"@","@"+Ie)})],r);case ke:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Ke(e,{props:[Le(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bt([Ke(e,{props:[Le(t,/:(plac\w+)/,":"+Ie+"input-$1")]}),Ke(e,{props:[Le(t,/:(plac\w+)/,":-moz-$1")]}),Ke(e,{props:[Le(t,/:(plac\w+)/,Be+"input-$1")]})],r)}return""}))}}],Pt=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(kt&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||St;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];kt&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var u,c=[Dt,At];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if(Ft(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return h.compat}}),It),kt){var s,d=[yt,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?s.insert(e.return):e.value&&e.type!==je&&s.insert(e.value+"{}"))}:(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=xt(c.concat(r,d));a=function(e,t,n,r){s=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(s={insert:function(e){n.insert(e+t.map)}}),function(e){bt(mt(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)}}else{var m=[yt],p=xt(c.concat(r,m)),g=Nt(r)(t),v=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return bt(mt(e),p)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=v(e,t);return void 0===h.compat?(r&&(h.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(h.inserted[o]=a):a}}var h={key:t,sheet:new Fe({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(l),h},Tt={exports:{}},Rt={},Mt="function"==typeof Symbol&&Symbol.for,Lt=Mt?Symbol.for("react.element"):60103,Gt=Mt?Symbol.for("react.portal"):60106,Vt=Mt?Symbol.for("react.fragment"):60107,Wt=Mt?Symbol.for("react.strict_mode"):60108,zt=Mt?Symbol.for("react.profiler"):60114,Zt=Mt?Symbol.for("react.provider"):60109,Xt=Mt?Symbol.for("react.context"):60110,_t=Mt?Symbol.for("react.async_mode"):60111,Ht=Mt?Symbol.for("react.concurrent_mode"):60111,Yt=Mt?Symbol.for("react.forward_ref"):60112,Ut=Mt?Symbol.for("react.suspense"):60113,Jt=Mt?Symbol.for("react.suspense_list"):60120,Qt=Mt?Symbol.for("react.memo"):60115,qt=Mt?Symbol.for("react.lazy"):60116,Kt=Mt?Symbol.for("react.block"):60121,$t=Mt?Symbol.for("react.fundamental"):60117,en=Mt?Symbol.for("react.responder"):60118,tn=Mt?Symbol.for("react.scope"):60119;function nn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Lt:switch(e=e.type){case _t:case Ht:case Vt:case zt:case Wt:case Ut:return e;default:switch(e=e&&e.$$typeof){case Xt:case Yt:case qt:case Qt:case Zt:return e;default:return t}}case Gt:return t}}}function rn(e){return nn(e)===Ht}Rt.AsyncMode=_t,Rt.ConcurrentMode=Ht,Rt.ContextConsumer=Xt,Rt.ContextProvider=Zt,Rt.Element=Lt,Rt.ForwardRef=Yt,Rt.Fragment=Vt,Rt.Lazy=qt,Rt.Memo=Qt,Rt.Portal=Gt,Rt.Profiler=zt,Rt.StrictMode=Wt,Rt.Suspense=Ut,Rt.isAsyncMode=function(e){return rn(e)||nn(e)===_t},Rt.isConcurrentMode=rn,Rt.isContextConsumer=function(e){return nn(e)===Xt},Rt.isContextProvider=function(e){return nn(e)===Zt},Rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lt},Rt.isForwardRef=function(e){return nn(e)===Yt},Rt.isFragment=function(e){return nn(e)===Vt},Rt.isLazy=function(e){return nn(e)===qt},Rt.isMemo=function(e){return nn(e)===Qt},Rt.isPortal=function(e){return nn(e)===Gt},Rt.isProfiler=function(e){return nn(e)===zt},Rt.isStrictMode=function(e){return nn(e)===Wt},Rt.isSuspense=function(e){return nn(e)===Ut},Rt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vt||e===Ht||e===zt||e===Wt||e===Ut||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===qt||e.$$typeof===Qt||e.$$typeof===Zt||e.$$typeof===Xt||e.$$typeof===Yt||e.$$typeof===$t||e.$$typeof===en||e.$$typeof===tn||e.$$typeof===Kt)},Rt.typeOf=nn;var on={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import*as e from"react";import t,{useState as n,useRef as r,useEffect as o,useCa
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/"production"!==process.env.NODE_ENV&&function(){var e=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var n=e.type;switch(n){case s:case d:case a:case l:case i:case m:return n;default:var p=n&&n.$$typeof;switch(p){case c:case f:case v:case g:case u:return p;default:return t}}case o:return t}}},t=function(t){return e(t)===d},n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119,w=s,C=d,E=c,D=u,A=r,F=f,B=a,O=v,I=g,j=o,k=l,N=i,S=m,P=!1;on.AsyncMode=w,on.ConcurrentMode=C,on.ContextConsumer=E,on.ContextProvider=D,on.Element=A,on.ForwardRef=F,on.Fragment=B,on.Lazy=O,on.Memo=I,on.Portal=j,on.Profiler=k,on.StrictMode=N,on.Suspense=S,on.isAsyncMode=function(n){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(n)||e(n)===s},on.isConcurrentMode=t,on.isContextConsumer=function(t){return e(t)===c},on.isContextProvider=function(t){return e(t)===u},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},on.isForwardRef=function(t){return e(t)===f},on.isFragment=function(t){return e(t)===a},on.isLazy=function(t){return e(t)===v},on.isMemo=function(t){return e(t)===g},on.isPortal=function(t){return e(t)===o},on.isProfiler=function(t){return e(t)===l},on.isStrictMode=function(t){return e(t)===i},on.isSuspense=function(t){return e(t)===m},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===h)},on.typeOf=e}(),"production"===process.env.NODE_ENV?Tt.exports=Rt:Tt.exports=on;var an=Tt.exports,ln={};ln[an.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ln[an.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var un="undefined"!=typeof document;function cn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var sn=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===un&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dn=function(e,t,n){sn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);un||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!un&&0!==o.length)return o}};var fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",vn=/[A-Z]|^ms/g,hn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bn=function(e){return 45===e.charCodeAt(1)},yn=function(e){return null!=e&&"boolean"!=typeof e},xn=mn((function(e){return bn(e)?e:e.replace(vn,"-$&").toLowerCase()})),wn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(hn,(function(e,t,n){return kn={name:t,styles:n,next:kn},t}))}return 1===fn[e]||bn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Cn=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,En=["normal","none","initial","inherit","unset"],Dn=wn,An=/^-ms-/,Fn=/-(.)/g,Bn={};wn=function(e,t){if("content"===e&&("string"!=typeof t||-1===En.indexOf(t)&&!Cn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Dn(e,t);return""===n||bn(e)||-1===e.indexOf("-")||void 0!==Bn[e]||(Bn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(An,"ms-").replace(Fn,(function(e,t){return t.toUpperCase()}))+"?")),n}}var On="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function In(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(On);return n}switch(void 0===n?"undefined":(c=n)&&"undefined"!=typeof Symbol&&c.constructor===Symbol?"symbol":typeof c){case"boolean":return"";case"object":if(1===n.anim)return kn={name:n.name,styles:n.styles,next:kn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kn={name:r.name,styles:r.styles,next:kn},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=In(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":yn(i)&&(r+=xn(a)+":"+wn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(On);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=In(e,t,i);switch(a){case"animation":case"animationName":r+=xn(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(gn),r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)yn(i[u])&&(r+=xn(a)+":"+wn(a,i[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=kn,i=n(e);return kn=a,In(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],u=n.replace(hn,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}}var c;if(null==t)return n;var s=t[n];return void 0!==s?s:n}var jn,kn,Nn=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(jn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Sn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";kn=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=In(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pn),o+=i[0]);for(var l=1;l<e.length;l++)o+=In(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(pn),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(jn,(function(e){return a=e,""}))),Nn.lastIndex=0;for(var u,c="";null!==(u=Nn.exec(o));)c+="-"+u[1];var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:s,styles:o,map:a,next:kn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:s,styles:o,next:kn}},Pn="undefined"!=typeof document,Tn=function(e){return e()},Rn=!!e.useInsertionEffect&&e.useInsertionEffect,Mn=Pn&&Rn||Tn,Ln=Rn||e.useLayoutEffect,Gn="undefined"!=typeof document,Vn={}.hasOwnProperty,Wn=e.createContext("undefined"!=typeof HTMLElement?Pt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionCacheContext"),Wn.Provider;var zn=function(e){return i((function(t,n){var r=l(Wn);return e(t,r,n)}))};Gn||(zn=function(t){return function(n){var r=l(Wn);return null===r?(r=Pt({key:"css"}),e.createElement(Wn.Provider,{value:r},t(n,r))):t(n,r)}});var Zn=e.createContext({});"production"!==process.env.NODE_ENV&&(Zn.displayName="EmotionThemeContext");var Xn=function(e){var t=e.split(".");return t[t.length-1]},_n=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Xn(t[1]):void 0},Hn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Yn=function(e){return e.replace(/\$/g,"-")},Un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Qn=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)Vn.call(t,r)&&(n[r]=t[r]);if(n[Un]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=_n(t[n]);if(r){if(Hn.has(r))break;if(/^[A-Z]/.test(r))return Yn(r)}}}((new Error).stack);o&&(n[Jn]=o)}return n},qn=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;sn(n,r,o);var a=Mn((function(){return dn(n,r,o)}));if(!Gn&&void 0!==a){for(var i,l=r.name,u=r.next;void 0!==u;)l+=" "+u.name,u=u.next;return e.createElement("style",((i={})["data-emotion"]=n.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=n.sheet.nonce,i))}return null},Kn=zn((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var a=t[Un],i=[o],l="";"string"==typeof t.className?l=cn(n.registered,i,t.className):null!=t.className&&(l=t.className+" ");var u=Sn(i,void 0,e.useContext(Zn));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var c=t[Jn];c&&(u=Sn([u,"label:"+c+";"]))}l+=n.key+"-"+u.name;var s={};for(var d in t)!Vn.call(t,d)||"css"===d||d===Un||"production"!==process.env.NODE_ENV&&d===Jn||(s[d]=t[d]);return s.ref=r,s.className=l,e.createElement(e.Fragment,null,e.createElement(qn,{cache:n,serialized:u,isStringTag:"string"==typeof a}),e.createElement(a,s))}));"production"!==process.env.NODE_ENV&&(Kn.displayName="EmotionCssPropInternal");var $n=Kn;var er=function(t,n){var r=arguments;if(null==n||!Vn.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=$n,a[1]=Qn(t,n);for(var i=2;i<o;i++)a[i]=r[i];return e.createElement.apply(null,a)},tr=!1,nr=zn((function(t,n){"production"===process.env.NODE_ENV||tr||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),tr=!0);var r=t.styles,o=Sn([r],void 0,e.useContext(Zn));if(!Gn){for(var a,i=o.name,l=o.styles,u=o.next;void 0!==u;)i+=" "+u.name,l+=u.styles,u=u.next;var c=!0===n.compat,s=n.insert("",{name:i,styles:l},n.sheet,c);return c?null:e.createElement("style",((a={})["data-emotion"]=n.key+"-global "+i,a.dangerouslySetInnerHTML={__html:s},a.nonce=n.sheet.nonce,a))}var d=e.useRef();return Ln((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),d.current=[t,r],function(){t.flush()}}),[n]),Ln((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&dn(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sn(t)}"production"!==process.env.NODE_ENV&&(nr.displayName="EmotionGlobal");var or=function e(t){for(var n,r=t.length,o=0,a="";o<r;o++){var i=t[o];if(null!=i){var l=void 0;switch(void 0===i?"undefined":(n=i)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n){case"boolean":break;case"object":if(Array.isArray(i))l=e(i);else for(var u in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="",i)i[u]&&u&&(l&&(l+=" "),l+=u);break;default:l=i}l&&(a&&(a+=" "),a+=l)}}return a};var ar=function(t){var n,r=t.cache,o=t.serializedArr,a=Mn((function(){for(var e="",t=0;t<o.length;t++){var n=dn(r,o[t],!1);Gn||void 0===n||(e+=n)}if(!Gn)return e}));return Gn||0===a.length?null:e.createElement("style",((n={})["data-emotion"]=r.key+" "+o.map((function(e){return e.name})).join(" "),n.dangerouslySetInnerHTML={__html:a},n.nonce=r.sheet.nonce,n))},ir=zn((function(t,n){var r=!1,o=[],a=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=Sn(t,n.registered);return o.push(i),sn(n,i,!1),n.key+"-"+i.name},i={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,t,n){var r=[],o=cn(e,r,n);return r.length<2?n:o+t(r)}(n.registered,a,or(t))},theme:e.useContext(Zn)},l=t.children(i);return r=!0,e.createElement(e.Fragment,null,e.createElement(ar,{cache:n,serializedArr:o}),l)}));if("production"!==process.env.NODE_ENV&&(ir.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var lr="undefined"!=typeof document,ur="undefined"!=typeof jest||"undefined"!=typeof vi;if(lr&&!ur){var cr="undefined"!=typeof globalThis?globalThis:lr?window:global,sr="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";cr[sr]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),cr[sr]=!0}}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dr(e,t,n[t])}))}return e}function mr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var pr=["top","right","bottom","left"],gr=Math.min,vr=Math.max,hr=Math.round,br=Math.floor,yr=function(e){return{x:e,y:e}},xr={left:"right",right:"left",bottom:"top",top:"bottom"},wr={start:"end",end:"start"};function Cr(e,t,n){return vr(e,gr(t,n))}function Er(e,t){return"function"==typeof e?e(t):e}function Dr(e){return e.split("-")[0]}function Ar(e){return e.split("-")[1]}function Fr(e){return"x"===e?"y":"x"}function Br(e){return"y"===e?"height":"width"}function Or(e){return["top","bottom"].includes(Dr(e))?"y":"x"}function Ir(e){return Fr(Or(e))}function jr(e){return e.replace(/start|end/g,(function(e){return wr[e]}))}function kr(e){return e.replace(/left|right|bottom|top/g,(function(e){return xr[e]}))}function Nr(e){return"number"!=typeof e?function(e){return fr({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Sr(e){return mr(fr({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Rr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Tr(a,r,o,i,l,"next",e)}function l(e){Tr(a,r,o,i,l,"throw",e)}i(void 0)}))}}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mr(e,t,n[t])}))}return e}function Gr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wr(e){return function(e){if(Array.isArray(e))return Pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zr(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function Zr(e,t,n){var r,o=e.reference,a=e.floating,i=Or(t),l=Ir(t),u=Br(l),c=Dr(t),s="y"===i,d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,m=o[u]/2-a[u]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-a.width,y:f};break;default:r={x:o.x,y:o.y}}switch(Ar(t)){case"start":r[l]-=m*(n&&s?-1:1);break;case"end":r[l]+=m*(n&&s?-1:1)}return r}var Xr=function(){var e=Rr((function(e,t,n){var r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O;return zr(this,(function(I){switch(I.label){case 0:return r=n.placement,o=void 0===r?"bottom":r,a=n.strategy,i=void 0===a?"absolute":a,l=n.middleware,u=void 0===l?[]:l,c=n.platform,s=u.filter(Boolean),[4,null==c.isRTL?void 0:c.isRTL(t)];case 1:return d=I.sent(),[4,c.getElementRects({reference:e,floating:t,strategy:i})];case 2:f=I.sent(),m=Zr(f,o,d),p=m.x,g=m.y,v=o,h={},b=0,y=0,I.label=3;case 3:return y<s.length?(x=s[y],w=x.name,[4,(0,x.fn)({x:p,y:g,initialPlacement:o,placement:v,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}})]):[3,11];case 4:return C=I.sent(),E=C.x,D=C.y,A=C.data,F=C.reset,p=null!=E?E:p,g=null!=D?D:g,h=Gr(Lr({},h),Mr({},w,Lr({},h[w],A))),F&&b<=50?(b++,"object"!=typeof F?[3,9]:(F.placement&&(v=F.placement),F.rects?!0!==F.rects?[3,6]:[4,c.getElementRects({reference:e,floating:t,strategy:i})]:[3,8])):[3,10];case 5:return B=I.sent(),[3,7];case 6:B=F.rects,I.label=7;case 7:f=B,I.label=8;case 8:O=Zr(f,v,d),p=O.x,g=O.y,I.label=9;case 9:return y=-1,[3,10];case 10:return y++,[3,3];case 11:return[2,{x:p,y:g,placement:v,strategy:i,middlewareData:h}]}}))}));return function(t,n,r){return e.apply(this,arguments)}}();function _r(e,t){return Hr.apply(this,arguments)}function Hr(){return Hr=Rr((function(e,t){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N;return zr(this,(function(S){switch(S.label){case 0:return void 0===t&&(t={}),r=e.x,o=e.y,a=e.platform,i=e.rects,l=e.elements,u=e.strategy,c=Er(t,e),s=c.boundary,d=void 0===s?"clippingAncestors":s,f=c.rootBoundary,m=void 0===f?"viewport":f,p=c.elementContext,g=void 0===p?"floating":p,v=c.altBoundary,h=void 0!==v&&v,b=c.padding,y=Nr(void 0===b?0:b),x="floating"===g?"reference":"floating",w=l[h?x:g],E=a.getClippingRect,D={},[4,null==a.isElement?void 0:a.isElement(w)];case 1:return null==(n=S.sent())||n?(A=w,[3,5]):[3,2];case 2:return(F=w.contextElement)?[3,4]:[4,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)];case 3:F=S.sent(),S.label=4;case 4:A=F,S.label=5;case 5:return[4,E.apply(a,[(D.element=A,D.boundary=d,D.rootBoundary=m,D.strategy=u,D)])];case 6:return C=Sr.apply(void 0,[S.sent()]),B="floating"===g?Gr(Lr({},i.floating),{x:r,y:o}):i.reference,[4,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)];case 7:return O=S.sent(),[4,null==a.isElement?void 0:a.isElement(O)];case 8:return S.sent()?[4,null==a.getScale?void 0:a.getScale(O)]:[3,10];case 9:return j=S.sent()||{x:1,y:1},[3,11];case 10:j={x:1,y:1},S.label=11;case 11:return I=j,a.convertOffsetParentRelativeRectToViewportRelativeRect?[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:B,offsetParent:O,strategy:u})]:[3,13];case 12:return N=S.sent(),[3,14];case 13:N=B,S.label=14;case 14:return k=Sr.apply(void 0,[N]),[2,{top:(C.top-k.top+y.top)/I.y,bottom:(k.bottom-C.bottom+y.bottom)/I.y,left:(C.left-k.left+y.left)/I.x,right:(k.right-C.right+y.right)/I.x}]}}))})),Hr.apply(this,arguments)}var Yr=function(e){return{name:"arrow",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N,S,P,T,R,M;return zr(this,(function(L){switch(L.label){case 0:return n=t.x,r=t.y,o=t.placement,a=t.rects,i=t.platform,l=t.elements,u=Er(e,t)||{},c=u.element,s=u.padding,d=void 0===s?0:s,null==c?[2,{}]:(f=Nr(d),m={x:n,y:r},p=Ir(o),g=Br(p),[4,i.getDimensions(c)]);case 1:return v=L.sent(),b=(h="y"===p)?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-m[p]-a.floating[g],C=m[p]-a.reference[p],[4,null==i.getOffsetParent?void 0:i.getOffsetParent(c)];case 2:return E=L.sent(),D=E?E[x]:0,(A=!D)?[3,4]:[4,null==i.isElement?void 0:i.isElement(E)];case 3:A=!L.sent(),L.label=4;case 4:return A&&(D=l.floating[x]||a.floating[g]),F=w/2-C/2,B=D/2-v[g]/2-1,O=gr(f[b],B),I=gr(f[y],B),j=O,k=D-v[g]-I,N=D/2-v[g]/2+F,S=Cr(j,N,k),P=null!=Ar(o)&&N!=S&&a.reference[g]/2-(N<j?O:I)-v[g]/2<0,T=P?N<j?j-N:k-N:0,[2,(M={},Mr(M,p,m[p]-T),Mr(M,"data",(R={},Mr(R,p,S),Mr(R,"centerOffset",N-S+T),R)),M)]}}))}))()}}},Ur=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N,S,P,T,R,M,L;return zr(this,(function(G){switch(G.label){case 0:return r=t.placement,o=t.middlewareData,a=t.rects,i=t.initialPlacement,l=t.platform,u=t.elements,c=Er(e,t),s=c.mainAxis,d=void 0===s||s,f=c.crossAxis,m=void 0===f||f,p=c.fallbackPlacements,g=c.fallbackStrategy,v=void 0===g?"bestFit":g,h=c.fallbackAxisSideDirection,b=void 0===h?"none":h,y=c.flipAlignment,x=void 0===y||y,w=Vr(c,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),C=Dr(r),E=Dr(i)===i,[4,null==l.isRTL?void 0:l.isRTL(u.floating)];case 1:return D=G.sent(),A=p||(E||!x?[kr(i)]:function(e){var t=kr(e);return[jr(e),t,jr(t)]}(i)),p||"none"===b||(F=A).push.apply(F,Wr(function(e,t,n,r){var o=Ar(e),a=function(e,t,n){var r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(Dr(e),"start"===n,r);return o&&(a=a.map((function(e){return e+"-"+o})),t&&(a=a.concat(a.map(jr)))),a}(i,x,b,D))),B=[i].concat(Wr(A)),[4,_r(t,w)];case 2:if(O=G.sent(),I=[],j=(null==(n=o.flip)?void 0:n.overflows)||[],d&&I.push(O[C]),m&&(k=function(e,t,n){void 0===n&&(n=!1);var r=Ar(e),o=Ir(e),a=Br(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=kr(i)),[i,kr(i)]}(r,a,D),I.push(O[k[0]],O[k[1]])),j=Wr(j).concat([{placement:r,overflows:I}]),!I.every((function(e){return e<=0}))){if(P=((null==(N=o.flip)?void 0:N.index)||0)+1,T=B[P])return[2,{data:{index:P,overflows:j},reset:{placement:T}}];if(R=null==(S=j.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:S.placement,!R)switch(v){case"bestFit":L=null==(M=j.map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:M[0],L&&(R=L);break;case"initialPlacement":R=i}if(r!==R)return[2,{reset:{placement:R}}]}return[2,{}]}}))}))()}}};function Jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return pr.some((function(t){return e[t]>=0}))}var qr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s;return zr(this,(function(d){switch(d.label){case 0:switch(n=t.rects,r=Er(e,t),o=r.strategy,a=void 0===o?"referenceHidden":o,i=Vr(r,["strategy"]),a){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,_r(t,Gr(Lr({},i),{elementContext:"reference"}))];case 2:return l=d.sent(),[2,{data:{referenceHiddenOffsets:u=Jr(l,n.reference),referenceHidden:Qr(u)}}];case 3:return[4,_r(t,Gr(Lr({},i),{altBoundary:!0}))];case 4:return c=d.sent(),[2,{data:{escapedOffsets:s=Jr(c,n.floating),escaped:Qr(s)}}];case 5:return[2,{}];case 6:return[2]}}))}))()}}};function Kr(e,t){return $r.apply(this,arguments)}function $r(){return $r=Rr((function(e,t){var n,r,o,a,i,l,u,c,s,d,f,m,p,g;return zr(this,(function(v){switch(v.label){case 0:return n=e.placement,r=e.platform,o=e.elements,[4,null==r.isRTL?void 0:r.isRTL(o.floating)];case 1:return a=v.sent(),i=Dr(n),l=Ar(n),u="y"===Or(n),c=["left","top"].includes(i)?-1:1,s=a&&u?-1:1,d=Er(t,e),f="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:Lr({mainAxis:0,crossAxis:0,alignmentAxis:null},d),m=f.mainAxis,p=f.crossAxis,g=f.alignmentAxis,l&&"number"==typeof g&&(p="end"===l?-1*g:g),[2,u?{x:p*s,y:m*c}:{x:m*c,y:p*s}]}}))})),$r.apply(this,arguments)}var eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return Rr((function(){var n,r,o;return zr(this,(function(a){switch(a.label){case 0:return n=t.x,r=t.y,[4,Kr(t,e)];case 1:return o=a.sent(),[2,{x:n+o.x,y:r+o.y,data:o}]}}))}))()}}},to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F;return zr(this,(function(B){switch(B.label){case 0:return n=t.x,r=t.y,o=t.placement,a=Er(e,t),i=a.mainAxis,l=void 0===i||i,u=a.crossAxis,c=void 0!==u&&u,s=a.limiter,d=void 0===s?{fn:function(e){return{x:e.x,y:e.y}}}:s,f=Vr(a,["mainAxis","crossAxis","limiter"]),m={x:n,y:r},[4,_r(t,f)];case 1:return p=B.sent(),g=Or(Dr(o)),v=Fr(g),h=m[v],b=m[g],l&&(y="y"===v?"bottom":"right",x=h+p["y"===v?"top":"left"],w=h-p[y],h=Cr(x,h,w)),c&&(C="y"===g?"bottom":"right",E=b+p["y"===g?"top":"left"],D=b-p[C],b=Cr(E,b,D)),F=d.fn(Gr(Lr({},t),(Mr(A={},v,h),Mr(A,g,b),A))),[2,Gr(Lr({},F),{data:{x:F.x-n,y:F.y-r}})]}}))}))()}}},no=function(e){return void 0===e&&(e={}),{options:e,fn:function(t){var n,r=t.x,o=t.y,a=t.placement,i=t.rects,l=t.middlewareData,u=Er(e,t),c=u.offset,s=void 0===c?0:c,d=u.mainAxis,f=void 0===d||d,m=u.crossAxis,p=void 0===m||m,g={x:r,y:o},v=Or(a),h=Fr(v),b=g[h],y=g[v],x=Er(s,t),w="number"==typeof x?{mainAxis:x,crossAxis:0}:Lr({mainAxis:0,crossAxis:0},x);if(f){var C="y"===h?"height":"width",E=i.reference[h]-i.floating[C]+w.mainAxis,D=i.reference[h]+i.reference[C]-w.mainAxis;b<E?b=E:b>D&&(b=D)}if(p){var A,F,B="y"===h?"width":"height",O=["top","left"].includes(Dr(a)),I=i.reference[v]-i.floating[B]+(O&&(null==(A=l.offset)?void 0:A[v])||0)+(O?0:w.crossAxis),j=i.reference[v]+i.reference[B]+(O?0:(null==(F=l.offset)?void 0:F[v])||0)-(O?w.crossAxis:0);y<I?y=I:y>j&&(y=j)}return Mr(n={},h,b),Mr(n,v,y),n}}},ro=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j;return zr(this,(function(k){switch(k.label){case 0:return n=t.placement,r=t.rects,o=t.platform,a=t.elements,i=Er(e,t),l=i.apply,u=void 0===l?function(){}:l,c=Vr(i,["apply"]),[4,_r(t,c)];case 1:return s=k.sent(),d=Dr(n),f=Ar(n),m="y"===Or(n),p=r.floating,g=p.width,v=p.height,"top"!==d&&"bottom"!==d?[3,3]:(h=d,[4,null==o.isRTL?void 0:o.isRTL(a.floating)]);case 2:return b=f===(k.sent()?"start":"end")?"left":"right",[3,4];case 3:b=d,h="end"===f?"top":"bottom",k.label=4;case 4:return y=v-s[h],x=g-s[b],w=!t.middlewareData.shift,C=y,E=x,m?(D=g-s.left-s.right,E=f||w?gr(x,D):D):(A=v-s.top-s.bottom,C=f||w?gr(y,A):A),w&&!f&&(F=vr(s.left,0),B=vr(s.right,0),O=vr(s.top,0),I=vr(s.bottom,0),m?E=g-2*(0!==F||0!==B?F+B:vr(s.left,s.right)):C=v-2*(0!==O||0!==I?O+I:vr(s.top,s.bottom))),[4,u(Gr(Lr({},t),{availableWidth:E,availableHeight:C}))];case 5:return k.sent(),[4,o.getDimensions(a.floating)];case 6:return j=k.sent(),g!==j.width||v!==j.height?[2,{reset:{rects:!0}}]:[2,{}]}}))}))()}}};function oo(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ao(e){return uo(e)?(e.nodeName||"").toLowerCase():"#document"}function io(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function lo(e){var t;return null==(t=(uo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uo(e){return oo(e,Node)||oo(e,io(e).Node)}function co(e){return oo(e,Element)||oo(e,io(e).Element)}function so(e){return oo(e,HTMLElement)||oo(e,io(e).HTMLElement)}function fo(e){return"undefined"!=typeof ShadowRoot&&(oo(e,ShadowRoot)||oo(e,io(e).ShadowRoot))}function mo(e){var t=bo(e),n=t.overflow,r=t.overflowX,o=t.overflowY,a=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(a)}function po(e){return["table","td","th"].includes(ao(e))}function go(e){var t=vo(),n=bo(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((function(e){return(n.willChange||"").includes(e)}))||["paint","layout","strict","content"].some((function(e){return(n.contain||"").includes(e)}))}function vo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ho(e){return["html","body","#document"].includes(ao(e))}function bo(e){return io(e).getComputedStyle(e)}function yo(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xo(e){if("html"===ao(e))return e;var t=e.assignedSlot||e.parentNode||fo(e)&&e.host||lo(e);return fo(t)?t.host:t}function wo(e){var t=xo(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:so(t)&&mo(t)?t:wo(t)}function Co(e,t){var n;void 0===t&&(t=[]);var r=wo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=io(r);return o?t.concat(a,a.visualViewport||[],mo(r)?r:[]):t.concat(r,Co(r))}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Do(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ao(e,t,n[t])}))}return e}function Bo(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||jo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Io(e){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jo(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}function ko(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function No(e){var t=bo(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=so(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=hr(n)!==a||hr(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function So(e){return co(e)?e:e.contextElement}function Po(e){var t=So(e);if(!so(t))return yr(1);var n=t.getBoundingClientRect(),r=No(t),o=r.width,a=r.height,i=r.$,l=(i?hr(n.width):n.width)/o,u=(i?hr(n.height):n.height)/a;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}var To=yr(0);function Ro(e){var t=io(e);return vo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:To}function Mo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=So(e),i=yr(1);t&&(r?co(r)&&(i=Po(r)):i=Po(e));var l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==io(e))&&t}(a,n,r)?Ro(a):yr(0),u=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,s=o.width/i.x,d=o.height/i.y;if(a)for(var f=io(a),m=r&&co(r)?io(r):r,p=f.frameElement;p&&r&&m!==f;){var g=Po(p),v=p.getBoundingClientRect(),h=bo(p),b=v.left+(p.clientLeft+parseFloat(h.paddingLeft))*g.x,y=v.top+(p.clientTop+parseFloat(h.paddingTop))*g.y;u*=g.x,c*=g.y,s*=g.x,d*=g.y,u+=b,c+=y,p=io(p).frameElement}return Sr({width:s,height:d,x:u,y:c})}function Lo(e){return Mo(lo(e)).left+yo(e).scrollLeft}function Go(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=io(e),r=lo(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var c=vo();(!c||c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}(e,n);else if("document"===t)r=function(e){var t=lo(e),n=yo(e),r=e.ownerDocument.body,o=vr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+Lo(e),l=-n.scrollTop;return"rtl"===bo(r).direction&&(i+=vr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(lo(e));else if(co(t))r=function(e,t){var n=Mo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=so(e)?Po(e):yr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{var o=Ro(e);r=Bo(Fo({},t),{x:t.x-o.x,y:t.y-o.y})}return Sr(r)}function Vo(e,t){var n=xo(e);return!(n===t||!co(n)||ho(n))&&("fixed"===bo(n).position||Vo(n,t))}function Wo(e,t,n){var r=so(t),o=lo(t),a="fixed"===n,i=Mo(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=yr(0);if(r||!r&&!a)if(("body"!==ao(t)||mo(o))&&(l=yo(t)),r){var c=Mo(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=Lo(o));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function zo(e,t){return so(e)&&"fixed"!==bo(e).position?t?t(e):e.offsetParent:null}function Zo(e,t){var n=io(e);if(!so(e))return n;for(var r=zo(e,t);r&&po(r)&&"static"===bo(r).position;)r=zo(r,t);return r&&("html"===ao(r)||"body"===ao(r)&&"static"===bo(r).position&&!go(r))?n:r||function(e){for(var t=xo(e);so(t)&&!ho(t);){if(go(t))return t;t=xo(t)}return null}(e)||n}var Xo=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Do(a,r,o,i,l,"next",e)}function l(e){Do(a,r,o,i,l,"throw",e)}i(void 0)}))}}((function(e){var t,n,r,o,a,i,l,u;return ko(this,(function(c){switch(c.label){case 0:return t=e.reference,n=e.floating,r=e.strategy,o=this.getOffsetParent||Zo,a=this.getDimensions,i={},l=[t],[4,o(n)];case 1:return i.reference=Wo.apply(void 0,l.concat([c.sent(),r])),u=[{x:0,y:0}],[4,a(n)];case 2:return[2,(i.floating=Fo.apply(void 0,u.concat([c.sent()])),i)]}}))}));return function(t){return e.apply(this,arguments)}}();var _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,o=so(n),a=lo(n);if(n===a)return t;var i={scrollLeft:0,scrollTop:0},l=yr(1),u=yr(0);if((o||!o&&"fixed"!==r)&&(("body"!==ao(n)||mo(a))&&(i=yo(n)),so(n))){var c=Mo(n);l=Po(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}},getDocumentElement:lo,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,a="clippingAncestors"===n?function(e,t){var n=t.get(e);if(n)return n;for(var r=Co(e).filter((function(e){return co(e)&&"body"!==ao(e)})),o=null,a="fixed"===bo(e).position,i=a?xo(e):e;co(i)&&!ho(i);){var l=bo(i),u=go(i);u||"fixed"!==l.position||(o=null),(a?!u&&!o:!u&&"static"===l.position&&o&&["absolute","fixed"].includes(o.position)||mo(i)&&!u&&Vo(e,i))?r=r.filter((function(e){return e!==i})):o=l,i=xo(i)}return t.set(e,r),r}(t,this._c):[].concat(n),i=Io(a).concat([r]),l=i[0],u=i.reduce((function(e,n){var r=Go(t,n,o);return e.top=vr(r.top,e.top),e.right=gr(r.right,e.right),e.bottom=gr(r.bottom,e.bottom),e.left=vr(r.left,e.left),e}),Go(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:Zo,getElementRects:Xo,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return No(e)},getScale:Po,isElement:co,isRTL:function(e){return"rtl"===bo(e).direction}};function Ho(e,t,n,r){void 0===r&&(r={});var o=r.ancestorScroll,a=void 0===o||o,i=r.ancestorResize,l=void 0===i||i,u=r.elementResize,c=void 0===u?"function"==typeof ResizeObserver:u,s=r.layoutShift,d=void 0===s?"function"==typeof IntersectionObserver:s,f=r.animationFrame,m=void 0!==f&&f,p=So(e),g=a||l?Io(p?Co(p):[]).concat(Io(Co(t))):[];g.forEach((function(e){a&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));var v,h,b,y,x,w,C,E=p&&d?(h=n,y=function(){clearTimeout(b),x&&x.disconnect(),x=null},x=null,w=lo(v=p),function e(t,n){void 0===t&&(t=!1),void 0===n&&(n=1),y();var r=v.getBoundingClientRect(),o=r.left,a=r.top,i=r.width,l=r.height;if(t||h(),i&&l){var u={rootMargin:-br(a)+"px "+-br(w.clientWidth-(o+i))+"px "+-br(w.clientHeight-(a+l))+"px "+-br(o)+"px",threshold:vr(0,gr(1,n))||1},c=!0;try{x=new IntersectionObserver(s,Bo(Fo({},u),{root:w.ownerDocument}))}catch(e){x=new IntersectionObserver(s,u)}x.observe(v)}function s(t){var r=t[0].intersectionRatio;if(r!==n){if(!c)return e();r?e(!1,r):b=setTimeout((function(){e(!1,1e-7)}),100)}c=!1}}(!0),y):null,D=-1,A=null;c&&(A=new ResizeObserver((function(e){var r=Oo(e,1)[0];r&&r.target===p&&A&&(A.unobserve(t),cancelAnimationFrame(D),D=requestAnimationFrame((function(){A&&A.observe(t)}))),n()})),p&&!m&&A.observe(p),A.observe(t));var F=m?Mo(e):null;return m&&function t(){var r=Mo(e);!F||r.x===F.x&&r.y===F.y&&r.width===F.width&&r.height===F.height||n();F=r,C=requestAnimationFrame(t)}(),n(),function(){g.forEach((function(e){a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),E&&E(),A&&A.disconnect(),A=null,m&&cancelAnimationFrame(C)}}var Yo=function(e,t,n){var r=new Map,o=Fo({platform:_o},n),a=Bo(Fo({},o.platform),{_c:r});return Xr(e,t,Bo(Fo({},o),{platform:a}))},Uo="undefined"!=typeof document?u:o,Jo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qo=function(){};function qo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ko(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(qo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var $o=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===le(e)&&null!==e?[e]:[];var t},ea=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,de({},ge(e,Jo))},ta=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function na(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ra(e){return na(e)?window.pageYOffset:e.scrollTop}function oa(e,t){na(e)?window.scrollTo(0,t):e.scrollTop=t}function aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo,o=ra(e),a=t-o,i=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);oa(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ia(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?oa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&oa(e,Math.max(t.offsetTop-o,0))}function la(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ua=!1,ca={get passive(){return ua=!0}},sa="undefined"!=typeof window?window:{};sa.addEventListener&&sa.removeEventListener&&(sa.addEventListener("p",Qo,ca),sa.removeEventListener("p",Qo,!1));var da=ua;function fa(e){return null!=e}function ma(e,t,n){return e?t:n}var pa=["children","innerProps"],ga=["children","innerProps"];function va(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var s,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),m=f.bottom,p=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect().top,h=i?window.innerHeight:na(s=u)?window.innerHeight:s.clientHeight,b=ra(u),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=v-x,C=h-g,E=w+b,D=d-b-g,A=m-h+b+y,F=b+g-x,B=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(D>=p&&!i)return a&&aa(u,A,B),{placement:"bottom",maxHeight:t};if(!i&&D>=r||i&&C>=r)return a&&aa(u,A,B),{placement:"bottom",maxHeight:i?C-y:D-y};if("auto"===o||i){var O=t,I=i?w:E;return I>=r&&(O=Math.min(I-y-l,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return a&&oa(u,A),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(E>=p&&!i)return a&&aa(u,F,B),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&w>=r){var j=t;return(!i&&E>=r||i&&w>=r)&&(j=i?w-x:E-x),a&&aa(u,F,B),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var ha,ba=function(e){return"auto"===e?"bottom":e},ya=c(null),xa=function(e){var t=e.children,o=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,u=e.menuPosition,c=e.menuShouldScrollIntoView,s=e.theme,d=(l(ya)||{}).setPortalPlacement,f=r(null),m=pe(n(a),2),p=m[0],g=m[1],v=pe(n(null),2),h=v[0],b=v[1],y=s.spacing.controlHeight;return Uo((function(){var e=f.current;if(e){var t="fixed"===u,n=va({maxHeight:a,menuEl:e,minHeight:o,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:y});g(n.maxHeight),b(n.placement),null==d||d(n.placement)}}),[a,i,u,c,o,d,y]),t({ref:f,placerProps:de(de({},e),{},{placement:h||ba(i),maxHeight:p})})},wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return er("div",be({},ta(e,"menu",{menu:!0}),{ref:n},r),t)},Ca=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return de({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Ea=Ca,Da=Ca,Aa=["size"],Fa=["innerProps","isRtl","size"];var Ba,Oa,Ia="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ja=function(e){var t=e.size,n=ge(e,Aa);return er("svg",be({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ia},n))},ka=function(e){return er(ja,be({size:20},e),er("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"}))},Na=function(e){return er(ja,be({size:20},e),er("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"}))},Sa=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Pa=Sa,Ta=Sa,Ra=function(){var e=rr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ha||(Ba=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Oa||(Oa=Ba.slice(0)),ha=Object.freeze(Object.defineProperties(Ba,{raw:{value:Object.freeze(Oa)}})))),Ma=function(e){var t=e.delay,n=e.offset;return er("span",{css:rr({animation:"".concat(Ra," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},La=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return er("div",be({ref:o},ta(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a),t)},Ga=["data"],Va=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,s=e.selectProps;return er("div",be({},ta(e,"group",{group:!0}),l),er(a,be({},i,{selectProps:s,theme:c,getStyles:r,getClassNames:o,cx:n}),u),er("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],za={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Za={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"},za)},Xa=function(e){return de({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},za)},_a=function(e){var t=e.cx,n=e.value,r=ea(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,l=r.inputClassName,u=ge(r,Wa);return er("div",be({},ta(e,"input",{"input-container":!0}),{"data-value":n||""}),er("input",be({className:t({input:!0},l),ref:o,style:Xa(i),disabled:a},u)))},Ha=function(e){var t=e.children,n=e.innerProps;return er("div",n,t)};var Ya=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,l=e.selectProps,u=n.Container,c=n.Label,s=n.Remove;return er(u,{data:r,innerProps:de(de({},ta(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},er(c,{data:r,innerProps:de({},ta(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),er(s,{data:r,innerProps:de(de({},ta(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:l}))},Ua={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||er(ka,null))},Control:La,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||er(Na,null))},DownChevron:Na,CrossIcon:ka,Group:Va,GroupHeading:function(e){var t=ea(e);t.data;var n=ge(t,Ga);return er("div",be({},ta(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return er("span",be({},t,ta(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:_a,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=ge(e,Fa);return er("div",be({},ta(de(de({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),er(Ma,{delay:0,offset:n}),er(Ma,{delay:160,offset:!0}),er(Ma,{delay:320,offset:!n}))},Menu:wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return er("div",be({},ta(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,o=e.children,i=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=r(null),f=r(null),m=pe(n(ba(u)),2),p=m[0],g=m[1],v=s((function(){return{setPortalPlacement:g}}),[]),h=pe(n(null),2),b=h[0],y=h[1],x=a((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===c?0:window.pageYOffset,n=e[p]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||y({offset:n,rect:e})}}),[i,c,p,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Uo((function(){x()}),[x]);var w=a((function(){"function"==typeof f.current&&(f.current(),f.current=null),i&&d.current&&(f.current=Ho(i,d.current,x,{elementResize:"ResizeObserver"in window}))}),[i,x]);Uo((function(){w()}),[w]);var E=a((function(e){d.current=e,w()}),[w]);if(!t&&"fixed"!==c||!b)return null;var D=er("div",be({ref:E},ta(de(de({},e),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),l),o);return er(ya.Provider,{value:v},t?C(D,t):D)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=ge(e,ga);return er("div",be({},ta(de(de({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=ge(e,pa);return er("div",be({},ta(de(de({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ya,MultiValueContainer:Ha,MultiValueLabel:Ha,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return er("div",be({role:"button"},n),t||er(ka,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return er("div",be({},ta(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return er("div",be({},ta(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return er("div",be({},ta(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return er("div",be({},ta(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ja=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Qa(e,t){return e===t||!(!Ja(e)||!Ja(t))}function qa(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Qa(e[n],t[n]))return!1;return!0}for(var Ka="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},$a=function(e){return er("span",be({css:Ka},e))},ei={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(c(i,n),".");if("menu"===t){var s=l?" disabled":"",d="".concat(u?"selected":"focused").concat(s);return"option ".concat(a," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ti=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,l=e.selectProps,u=e.id,c=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,p=l.isMulti,g=l.isOptionDisabled,v=l.isSearchable,h=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,w=l["aria-label"],C=l["aria-live"],E=s((function(){return de(de({},ei),c||{})}),[c]),D=s((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,u=t.value,c=a||r||(e=u,Array.isArray(e)?null:e),s=c?d(c):"",f=o||l||void 0,m=f?f.map(d):[],p=de({isDisabled:c&&g(c,i),label:s,labels:m},t);n=E.onChange(p)}return n}),[t,E,g,i,d]),A=s((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&E.onFocus){var l={focused:t,label:d(t),isDisabled:g(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=E.onFocus(l)}return e}),[n,r,d,g,E,o,i]),F=s((function(){var e="";if(h&&b.length&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:m,resultsMessage:t})}return e}),[o,m,h,E,b,y]),B=s((function(){var e="";if(E.guidance){var t=r?"value":h?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:n&&g(n,i),isMulti:p,isSearchable:v,tabSelectsValue:x})}return e}),[w,n,r,p,g,v,h,E,i,x]),O="".concat(A," ").concat(F," ").concat(B),I=er(f,null,er("span",{id:"aria-selection"},D),er("span",{id:"aria-context"},O)),j="initial-input-focus"===(null==t?void 0:t.action);return er(f,null,er($a,{id:u},j&&I),er($a,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},a&&!j&&I))},ni=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ri=new RegExp("["+ni.map((function(e){return e.letters})).join("")+"]","g"),oi={},ai=0;ai<ni.length;ai++)for(var ii=ni[ai],li=0;li<ii.letters.length;li++)oi[ii.letters[li]]=ii.base;var ui=function(e){return e.replace(ri,(function(e){return oi[e]}))},ci=function(e,t){var n=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a};void 0===t&&(t=qa);var r=null;return n.clear=function(){r=null},n}(ui),si=function(e){return e.replace(/^\s+|\s+$/g,"")},di=function(e){return"".concat(e.label," ").concat(e.value)},fi=["innerRef"];function mi(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=pe(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=pe(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(ge(e,fi),"onExited","in","enter","exit","appear");return er("input",be({ref:t},n,{css:rr({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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var pi=function(e){e.preventDefault(),e.stopPropagation()};var gi=["boxSizing","height","overflow","paddingRight","position"],hi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bi(e){e.preventDefault()}function yi(e){e.stopPropagation()}function xi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ci=!("undefined"==typeof window||!window.document||!window.document.createElement),Ei=0,Di={capture:!1,passive:!1};var Ai=function(){return document.activeElement&&document.activeElement.blur()},Fi="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9ICgpID0+XG4gIGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgJiYgKGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQpLmJsdXIoKTtcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gU2Nyb2xsTWFuYWdlcih7XG4gIGNoaWxkcmVuLFxuICBsb2NrRW5hYmxlZCxcbiAgY2FwdHVyZUVuYWJsZWQgPSB0cnVlLFxuICBvbkJvdHRvbUFycml2ZSxcbiAgb25Cb3R0b21MZWF2ZSxcbiAgb25Ub3BBcnJpdmUsXG4gIG9uVG9wTGVhdmUsXG59OiBQcm9wcykge1xuICBjb25zdCBzZXRTY3JvbGxDYXB0dXJlVGFyZ2V0ID0gdXNlU2Nyb2xsQ2FwdHVyZSh7XG4gICAgaXNFbmFibGVkOiBjYXB0dXJlRW5hYmxlZCxcbiAgICBvbkJvdHRvbUFycml2ZSxcbiAgICBvbkJvdHRvbUxlYXZlLFxuICAgIG9uVG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Bi(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,l=function(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,c=r(!1),s=r(!1),d=r(0),f=r(null),m=a((function(e,t){if(null!==f.current){var r=f.current,o=r.scrollTop,a=r.scrollHeight,d=r.clientHeight,m=f.current,p=t>0,g=a-d-o,v=!1;g>t&&c.current&&(i&&i(e),c.current=!1),p&&s.current&&(u&&u(e),s.current=!1),p&&t>g?(n&&!c.current&&n(e),m.scrollTop=a,v=!0,c.current=!0):!p&&-t>o&&(l&&!s.current&&l(e),m.scrollTop=0,v=!0,s.current=!0),v&&pi(e)}}),[n,i,l,u]),p=a((function(e){m(e,e.deltaY)}),[m]),g=a((function(e){d.current=e.changedTouches[0].clientY}),[]),v=a((function(e){var t=d.current-e.changedTouches[0].clientY;m(e,t)}),[m]),h=a((function(e){if(e){var t=!!da&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",v,t)}}),[v,g,p]),b=a((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",v,!1))}),[v,g,p]);return o((function(){if(t){var e=f.current;return h(e),function(){b(e)}}}),[t,h,b]),function(e){f.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),u=function(e){var t=e.isEnabled,n=e.accountForScrollbars,i=void 0===n||n,l=r({}),u=r(null),c=a((function(e){if(Ci){var t=document.body,n=t&&t.style;if(i&&gi.forEach((function(e){var t=n&&n[e];l.current[e]=t})),i&&Ei<1){var r=parseInt(l.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,a=window.innerWidth-o+r||0;Object.keys(hi).forEach((function(e){var t=hi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&wi()&&(t.addEventListener("touchmove",bi,Di),e&&(e.addEventListener("touchstart",xi,Di),e.addEventListener("touchmove",yi,Di))),Ei+=1}}),[i]),s=a((function(e){if(Ci){var t=document.body,n=t&&t.style;Ei=Math.max(Ei-1,0),i&&Ei<1&&gi.forEach((function(e){var t=l.current[e];n&&(n[e]=t)})),t&&wi()&&(t.removeEventListener("touchmove",bi,Di),e&&(e.removeEventListener("touchstart",xi,Di),e.removeEventListener("touchmove",yi,Di)))}}),[i]);return o((function(){if(t){var e=u.current;return c(e),function(){s(e)}}}),[t,c,s]),function(e){u.current=e}}({isEnabled:n});return er(f,null,n&&er("div",{onClick:Ai,css:Fi}),t((function(e){l(e),u(e)})))}var Oi,Ii="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ji=function(e){var t=e.name,n=e.onFocus;return er("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ii,value:"",onChange:function(){}})},ki=function(e){return e.label},Ni=function(e){return e.value},Si={clearIndicator:Ta,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Pa,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return de({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return de(de({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Za),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:Da,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,l=o.colors;return de((ce(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ce(n,"position","absolute"),ce(n,"width","100%"),ce(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return de({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return de({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return de({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return de({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Ea,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,l=a.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Pi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:la(),captureMenuScroll:!la(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=de({ignoreCase:!0,ignoreAccents:!0,stringify:di,trim:!0,matchFrom:"any"},Oi),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,u=i?si(t):t,c=i?si(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=ci(u),c=ui(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ki,getOptionValue:Ni,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ri(e,t,n,r){return{type:"option",data:t,isDisabled:zi(e,t,n),isSelected:Zi(e,t,n),label:Vi(e,t),value:Wi(e,t),index:r}}function Mi(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ri(e,n,t,r)})).filter((function(t){return Gi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ri(e,n,t,r);return Gi(e,a)?a:void 0})).filter(fa)}function Li(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Gi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!_i(e)||!a)&&Xi(e,{label:i,value:l,data:o},r)}var Vi=function(e,t){return e.getOptionLabel(t)},Wi=function(e,t){return e.getOptionValue(t)};function zi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Zi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wi(e,t);return n.some((function(t){return Wi(e,t)===r}))}function Xi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var _i=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Hi=1,Yi=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(i,d);var n,r,o,a=De(i);function i(e){var t;if(ye(this,i),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,l=o&&t.isOptionSelected(e,i),u=t.isOptionDisabled(e,i);if(l){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Ae(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ma(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ma(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ko.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Vi(t.props,e)},t.getOptionValue=function(e){return Wi(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Si[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,de(de({},Ua),e.components);var e},t.buildCategorizedOptions=function(){return Mi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Li(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:de({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){var n,r;"boolean"==typeof t.props.closeMenuOnScroll?(n=e.target,(null!=(r=HTMLElement)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)&&na(e.target)&&t.props.onMenuClose()):"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return _i(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,l=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,s=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,m=t.state,p=m.focusedOption,g=m.focusedValue,v=m.selectValue;if(!(u||"function"==typeof s&&(s(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(g)t.removeValue(g);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!p||f&&t.isOptionSelected(p,v))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):l&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Hi),t.state.selectValue=$o(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return n=i,r=[{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&&ia(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ia(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var l=a.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pi):de(de({},Pi),this.props.theme):Pi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,l=this.props,u=l.isMulti,c=l.isRtl,s=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:s,selectOption:a,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return zi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Zi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,a=t.inputValue,i=t.tabIndex,l=t.form,u=t.menuIsOpen,c=t.required,s=this.getComponents().Input,d=this.state,f=d.inputIsHidden,m=d.ariaSelection,p=this.commonProps,g=o||this.getElementId("input"),v=de(de(de({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(s,be({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:a},v)):e.createElement(mi,be({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qo,onFocus:this.onInputFocus,disabled:n,tabIndex:i,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,l=n.SingleValue,u=n.Placeholder,c=this.commonProps,s=this.props,d=s.controlShouldRenderValue,f=s.isDisabled,m=s.isMulti,p=s.inputValue,g=s.placeholder,v=this.state,h=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!d)return p?null:e.createElement(u,be({},c,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),g);if(m)return h.map((function(n,l){var u=n===b,s="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,be({},c,{components:{Container:o,Label:a,Remove:i},isFocused:u,isDisabled:f,key:s,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(p)return null;var x=h[0];return e.createElement(l,be({},c,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;return t&&a?e.createElement(t,be({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return e.createElement(r,be({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,s=n.Option,d=this.commonProps,f=this.state.focusedOption,m=this.props,p=m.captureMenuScroll,g=m.inputValue,v=m.isLoading,h=m.loadingMessage,b=m.minMenuHeight,y=m.maxMenuHeight,x=m.menuIsOpen,w=m.menuPlacement,C=m.menuPosition,E=m.menuPortalTarget,D=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,F=m.noOptionsMessage,B=m.onMenuScrollToTop,O=m.onMenuScrollToBottom;if(!x)return null;var I,j=function(n,r){var o=n.type,a=n.data,i=n.isDisabled,l=n.isSelected,u=n.label,c=n.value,m=f===a,p=i?void 0:function(){return t.onOptionHover(a)},g=i?void 0:function(){return t.selectOption(a)},v="".concat(t.getElementId("option"),"-").concat(r),h={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1};return e.createElement(s,be({},d,{innerProps:h,data:a,isDisabled:i,isSelected:l,key:v,label:u,type:o,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(n){if("group"===n.type){var a=n.data,i=n.options,l=n.index,u="".concat(t.getElementId("group"),"-").concat(l),c="".concat(u,"-heading");return e.createElement(r,be({},d,{key:u,data:a,options:i,Heading:o,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return j(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return j(n,"".concat(n.index))}));else if(v){var k=h({inputValue:g});if(null===k)return null;I=e.createElement(u,d,k)}else{var N=F({inputValue:g});if(null===N)return null;I=e.createElement(c,d,N)}var S={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:A},P=e.createElement(xa,be({},d,S),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,u=o.maxHeight;return e.createElement(a,be({},d,S,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:v,placement:l}),e.createElement(Bi,{captureEnabled:p,onTopArrive:B,onBottomArrive:O,lockEnabled:D},(function(n){return e.createElement(i,be({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:v,maxHeight:u,focusedOption:f}),I)})))}));return E||"fixed"===C?e.createElement(l,be({},d,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,l=n.required,u=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement(ji,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(a){if(r){var c=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:i,type:"hidden",value:c})}var s=u.length>0?u.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:i,type:"hidden",value:""});return e.createElement("div",null,s)}var d=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,a=n.focusedValue,i=n.isFocused,l=n.selectValue,u=this.getFocusableOptions();return e.createElement(ti,be({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:a,isFocused:i,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,a=t.ValueContainer,i=this.props,l=i.className,u=i.id,c=i.isDisabled,s=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(o,be({},f,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,be({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:s}),e.createElement(a,be({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,be({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,u=e.options,c=e.value,s=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=$o(c),p={};if(n&&(c!==n.value||u!==n.options||s!==n.menuIsOpen||d!==n.inputValue)){var g=s?function(e,t){return Li(Mi(e,t))}(e,m):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,h=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);p={selectValue:m,focusedOption:h,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,x=i&&l;return i&&!x&&(y={value:ma(f,m,m[0]||null),options:m,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),de(de(de({},p),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:x})}}],r&&xe(n.prototype,r),o&&xe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}();Yi.defaultProps=Ti;var Ui=i((function(t,n){var r=he(t);return e.createElement(Yi,be({ref:n},r))})),Ji=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Qi=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},qi={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Qi(e,t,r)}))||n.some((function(t){return Qi(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Ki=i((function(t,n){var r=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,i=e.formatCreateLabel,l=void 0===i?qi.formatCreateLabel:i,u=e.isValidNewOption,c=void 0===u?qi.isValidNewOption:u,d=e.getNewOptionData,f=void 0===d?qi.getNewOptionData:d,m=e.onCreateOption,p=e.options,g=void 0===p?[]:p,v=e.onChange,h=ge(e,Ji),b=h.getOptionValue,y=void 0===b?Ni:b,x=h.getOptionLabel,w=void 0===x?ki:x,C=h.inputValue,E=h.isLoading,D=h.isMulti,A=h.value,F=h.name,B=s((function(){return c(C,$o(A),g,{getOptionValue:y,getOptionLabel:w})?f(C,l(C)):void 0}),[l,f,w,y,C,c,g,A]),O=s((function(){return!n&&E||!B?g:"first"===o?[B].concat(Ae(g)):[].concat(Ae(g),[B])}),[n,o,E,B,g]),I=a((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==B)v(e,t);else if(m)m(C);else{var r=f(C,C),o={action:"create-option",name:F,option:r};v(ma(D,[].concat(Ae($o(A)),[r]),r),o)}}),[f,C,D,F,B,m,v,A]);return de(de({},h),{},{options:O,onChange:I})}(he(t));return e.createElement(Yi,be({ref:n},r))})),$i=Ki;function el(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){el(e,t,n[t])}))}return e}var nl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef,a=e.size,i=void 0===a?"normal":a;N(e,["cx","children","getStyles","innerProps","innerRef","size"]);return t.createElement("div",tl({ref:o,className:j({small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""}[i],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500")},r),n)},rl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return N(e,["cx","children","getStyles","innerProps","innerRef"]),t.createElement("div",tl({className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1 px-1.5",ref:o},r),n)},ol=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return e.size,N(e,["cx","children","getStyles","innerProps","innerRef","size"]),t.createElement("div",tl({ref:o,className:"flex flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-buttonPrimary-500/50 hover:text-white"},r),n)},al=function(e){return t.createElement("div",{className:" w-96"},e.label&&t.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},e.label),!e.isCreatable&&t.createElement(Ui,{classNames:{placeholder:function(e){return"px-2 text-muted-foreground"},input:function(e){return"text-white px-2"},valueContainer:function(){return"text-white dark:text-muted-foreground"},singleValue:function(){return"text-black dark:text-white px-2"},indicatorsContainer:function(){return" px-2 cursor-pointer text-muted-foreground"}},unstyled:!0,isDisabled:e.disabled,options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:function(t,n){return e.onChange(t,n)},components:{Control:nl,Option:ol,Menu:rl},getOptionLabel:e.getOptionLabel}),e.isCreatable&&t.createElement($i,{styles:{input:function(e){return k(k({},e),{"input:focus":{boxShadow:"none"}})},control:function(e){return k(k({},e),{borderRadius:"0.75rem"})},menu:function(e){return k(k({},e),{borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"})},menuList:function(e){return k(k({},e),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"})},option:function(e){return k(k({},e),{borderRadius:"0.75rem",margin:3,width:"98%"})}},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:function(){return console.log("im changing")},onChange:function(t,n){return e.onChange(t,n)},onInputChange:function(t,n){return e.onInputChange(t,n)}}),e.helperText&&t.createElement("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500"},e.helperText))},il=function(e){var n=e.settingsLabel,r=e.settingsType,o=e.settingsDescription,a=e.colorProps,i=e.rangeProps,l=e.radioProps,u=e.switchProps,c=e.selectProps;return t.createElement("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle"},t.createElement("div",null,t.createElement("div",{className:"text-sm"},n),o&&t.createElement("div",{className:"text-xs"},o)," "),"text"===r&&t.createElement(re,{margin:"none",width:"small"}),"boolean"===r&&t.createElement(J,u),"range"===r&&t.createElement(ae,i),"color"===r&&t.createElement(oe,a),"radio"===r&&t.createElement(ie,l),"select"===r&&t.createElement(al,c))},ll=function(e){return t.createElement("div",null,e.children)},ul=function(e){var a=e.variant,i=void 0===a?"normal":a,l=e.direction,u=void 0===l?"ltr":l,c=e.duration,s=e.icon,d=N(e,["variant","direction","duration","icon"]),f=r(null),m=n(!1),p=m[0],g=m[1];o((function(){if(c){var e=setTimeout((function(){g(!0)}),c),t=setTimeout((function(){g(!0),f.current.removeChild(f.current.children[0])}),c+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[c]);return t.createElement("div",{ref:f},t.createElement("div",{className:j("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",{normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}}[i][d.severity],p?"opacity-0":"opacity-100"),role:"alert",dir:u},t.createElement("div",{className:"flex flex-row"},s&&t.createElement("div",{className:"rtl"===u?"pl-2 pt-1":"pr-2 pt-1"},s),t.createElement("div",{className:"flex flex-col"},t.createElement("span",{className:j("font-medium","rtl"===u?"ml-8":"mr-8")},d.title),t.createElement("span",null," "+d.text),d.actions&&t.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.actions.map((function(e,n){return t.createElement(Y,{key:n,variant:e.variant,onClick:e.onClick(),margins:"none"},e.label)}))))),!d.persistant&&t.createElement("button",{type:"button",className:j("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",{none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"}[d.severity],"rtl"===u?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:function(){g(!0),setTimeout((function(){f.current.removeChild(f.current.children[0])}),200)}},t.createElement("span",{className:"sr-only"},"Close"),t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},cl=function(e){var a=e.menuItems,i=e.withHeader,l=e.direction,u=void 0===l?"ltr":l,c=e.headerTitle,s=e.headerSubtitle,d=e.size,f=void 0===d?"normal":d,m=e.children,p=e.onClickOutside,g=e.actionedItem,v=e.position,h=void 0===v?"top-right":v,b=n(!1),y=b[0],x=b[1],w=r(null),C=n(null),E=C[0],D=C[1],A=n(null),F=A[0],B=A[1],O=r(null),I=n(null),k=I[0],N=I[1],S=n(null),P=S[0],T=S[1];o((function(){var e,t,n,r;T(null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect().height),N(null===(t=O.current)||void 0===t?void 0:t.getBoundingClientRect().width),D(null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height),B(null===(r=w.current)||void 0===r?void 0:r.getBoundingClientRect().width);var o=function(e){O.current&&!O.current.contains(e.target)&&x(!1)};return document.addEventListener("click",o,!0),function(){document.removeEventListener("click",o,!0)}}),[p]);var R,M={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""};switch(h){case"top-right":R="rtl"===u?"".concat(k-F,"px, -").concat(P+E+5,"px"):"0px, -".concat(P+E+5,"px");break;case"top-left":R="rtl"===u?"".concat(0,"px, -").concat(P+E+5,"px"):"-".concat(k-F,"px, -").concat(P+E+5,"px");break;case"bottom-right":R="rtl"===u?"-".concat(0,"px, ").concat(5,"px"):"-".concat(F-k,"px, ").concat(5,"px");break;case"bottom-left":R="rtl"===u?"0px, ".concat(5,"px"):"-".concat(k-F,"px,").concat(5,"px");break;case"right-bottom":R="rtl"===u?"".concat(k+5,"px, -").concat(E,"px"):"".concat(F+5,"px, -").concat(E,"px");break;case"right-top":R="rtl"===u?"".concat(k+5,"px, -").concat(P,"px"):"".concat(F+5,"px, -").concat(P,"px");break;case"left-bottom":R="rtl"===u?"-".concat(F+5,"px, -").concat(E,"px"):"-".concat(k+5,"px, -").concat(E,"px");break;case"left-top":R="rtl"===u?"-".concat(F+5,"px, -").concat(P,"px"):"-".concat(k+5,"px, -").concat(P,"px");break;default:R="-".concat(k/2,"px, -").concat(E+P/2,"px")}return t.createElement("div",{onClick:function(){x(!y)}},t.createElement("div",{ref:w},m),t.createElement("div",{ref:O,style:{position:"absolute",width:"max-content",transform:"translate(".concat(R,")"),maxWidth:"200px"},className:j("border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",y?"opacity-100":"invisible opacity-0")},i&&t.createElement("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white"},t.createElement("div",null,c),t.createElement("div",{className:"truncate font-medium"},s)),null==a?void 0:a.map((function(e,n){return t.createElement("ul",{key:n,className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"},null==e?void 0:e.map((function(e,n){return e.element?t.createElement("li",{key:n,className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"},e.element):t.createElement("li",{key:n,onClick:function(){e.disabled?console.log("button is disabled"):null==e||e.action(g)},className:j("transition-all",e.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":e.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",M[f])},e.icon&&t.createElement("div",{className:"small"===f?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2"},e.icon),e.label)})))}))))},sl=function(e,t,r,a,i){var l=n([]),u=l[0],c=l[1],s=n([]),d=s[0],f=s[1];return o((function(){if(e){var n=function(e,t){for(var n=[],r=Math.ceil((null==e?void 0:e.length)/t),o=1;o<=r;o++)n.push(o);return n}(e,r);c(R([],n,!0));var o=function(e,t,n){return null!==t?null==e?void 0:e.sort((function(e,r){var o=e[t].value,a=r[t].value;return"string"==typeof o&&"string"==typeof a?"asc"===n?o.localeCompare(a):a.localeCompare(o):"asc"===n?o-a:a-o})):e}(e,a,i),l=function(e,t,n){return null==e?void 0:e.slice((t-1)*n,t*n)}(o,t,r);f(R([],l,!0))}}),[e,c,t,r,a,i]),{slice:d,range:u}},dl=function(e){var r,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C=e.size,E=void 0===C?"normal":C,D=e.bodyColor,A=void 0===D?"white":D,F=e.headerColor,B=void 0===F?"gray-200":F,O=e.borders,I=e.highlightFirst,k=void 0!==I&&I,S=e.direction,P=void 0===S?"ltr":S,T=e.bordersWidth,R=void 0===T?"1":T,M=e.pagination,L=void 0===M||M,G=N(e,["size","bodyColor","headerColor","borders","highlightFirst","direction","bordersWidth","pagination"]),V=n(10),W=V[0],z=V[1],Z=n(null),X=Z[0],_=Z[1],H=n(1),U=H[0],J=H[1],Q=n(null);Q[0],Q[1];var q=n(G.rows),K=q[0];q[1];var $=n(null),ee=$[0],te=$[1],ne=n(null),oe=ne[0],ae=ne[1],ie=sl(G.rows,U,W,ee,oe),le=ie.slice,ue=ie.range,ce="rtl"===P,se={normal:"py-3 px-6",small:"px-3 py-1"};return o((function(){(null==le?void 0:le.length)<1&&1!==U&&J(U-1),X&&J(X)}),[le,U]),t.createElement("div",{className:"relative flex flex-col gap-2 "},t.createElement("div",{className:"overflow-x-auto rounded bg-".concat(B)},G.headerTools&&t.createElement("div",{className:"flex flex-row items-center justify-between gap-2 px-4 py-2"},t.createElement(re,{icon:t.createElement("svg",{"aria-label":"Search Icon",stroke:"currentColor",fill:"gray","stroke-width":"0",viewBox:"0 0 512 512",height:"1em",width:"1em"},t.createElement("path",{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})),placeholder:"Search",width:"full",margin:"none"}),t.createElement("div",{className:"flex flex-row items-center justify-between gap-2"},t.createElement(Y,{startIcon:t.createElement("svg",{"aria-label":"Filter Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"})),endIcon:t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))},null!==(a=null===(r=G.texts)||void 0===r?void 0:r.filter)&&void 0!==a?a:"Filter"))),t.createElement("table",{className:j("outer"===O||"all"===O?"outline outline-[".concat(R,"px] -outline-offset-1 outline-gray-300"):"","w-full rounded text-left text-sm text-gray-500 dark:text-gray-400","bg-".concat(B))},t.createElement("thead",{className:j("text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400","rows"===O||"all"===O||"inner"===O?"border-b ":"")},t.createElement("tr",null,G.columns.map((function(e,n){return e.hidden?void 0:t.createElement("th",{onClick:function(){return e.sortable&&(t=n,void(e.sortable&&(te(t),ae((function(e){return"asc"===e?"desc":"asc"})))));var t},key:n,scope:"col",colSpan:2,className:j(e.sortable?"cursor-pointer hover:bg-gray-300":"",se[E],0===n||"cols"!==O&&"all"!==O&&"inner"!==O?"":"border-r border-r-[".concat(R,"px] border-l border-l-[").concat(R,"px]"))},e.value,ee===n&&t.createElement("span",null,"asc"===oe?" ▲":" ▼"))})),G.actions?t.createElement("th",{scope:"col",className:j(se[E],"w-[calc(1%)] text-center")},null!==(l=null===(i=G.texts)||void 0===i?void 0:i.actions)&&void 0!==l?l:"Actions"):null)),t.createElement("tbody",{className:A&&G.rows?"bg-".concat(A):"bg-transparent"},K?null==le?void 0:le.map((function(e,n){var r=n==(null==le?void 0:le.length)-1;return t.createElement("tr",{key:n,className:j(" dark:border-gray-700 dark:bg-gray-800",G.clickable?"hover:bg-gray-100":"",r||"all"!==O&&"rows"!==O&&"inner"!==O?"":"border-b border-b-[".concat(R,"px]"))},null==e?void 0:e.map((function(n,o){var a=0===o,i=o===(null==e?void 0:e.length)-1,l=ce&&r&&i&&!G.actions,u=ce&&r&&a,c=!ce&&r&&a,s=!ce&&r&&i&&!G.actions;return n.hidden?void 0:t.createElement("td",{colSpan:2,key:o,className:j(se[E],k&&a?"font-bold":"font-normal",u?"rounded-bl-none rounded-br":l||c?"rounded-bl rounded-br-none":s?"rounded-bl-none rounded-br":"",(a||i||"cols"!==O&&"inner"!==O&&"all"!==O)&&(a||!G.actions||"cols"!==O&&"inner"!==O&&"all"!==O)?"":"border-l border-l-[".concat(R,"px] border-r border-r-[").concat(R,"px]"))},n.value," ",n.suffix&&n.suffix)})),G.actions?"small"!==E?t.createElement("td",{align:ce?"right":"left",className:j(ce&&r?"rounded-bl rounded-br-none":"",!ce&&r?"rounded-bl-none rounded-br":""),colSpan:1},t.createElement("div",{className:"flex items-center justify-center"},t.createElement(cl,{size:"small",actionedItem:[n,e],menuItems:G.actions,position:"rtl"===P?"right-bottom":"left-bottom",direction:P},t.createElement("div",{className:"flex w-fit items-center justify-center rounded p-2 hover:bg-gray-200"},t.createElement("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})))))):t.createElement("div",{className:"flex flex-row items-center justify-center gap-2 p-1"},G.actions[0].map((function(e){return t.createElement("div",{className:" p-1 transition-all hover:bg-gray-100"},e.icon)}))):null)})):t.createElement("tr",{className:"bg-transparent"},t.createElement("td",{colSpan:20},t.createElement("div",{className:j("w-full rounded-b bg-white p-5 text-center",A?"bg-".concat(A):"bg-white")},null!==(c=null===(u=G.texts)||void 0===u?void 0:u.noData)&&void 0!==c?c:"No Data")))))),L&&t.createElement("div",{className:"flex flex-row items-center justify-between "},ue.length>1?t.createElement("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded "},t.createElement("div",{className:j("flex h-6 w-6 rotate-180 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 "),onClick:function(){return J(U<=1?ue.length:U-1)}},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))),t.createElement("div",{className:"flex flex-row items-center overflow-clip rounded transition-all"},ue.length>6&&ue.map((function(e,n){if(n<=0)return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)})),(null==ue?void 0:ue.length)>6&&t.createElement("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:0!==U||U!==ue.length-1?U:"...",value:1==U||U==ue.length?"...":X||U,onChange:function(e){return _(parseInt(e.target.value))},onKeyDown:function(e){"Enter"===e.key&&(J(X),_(null))}}),(null==ue?void 0:ue.length)>6&&ue.map((function(e,n){if(n>=ue.length-1)return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)})),(null==ue?void 0:ue.length)<=6&&ue.map((function(e,n){return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)}))),t.createElement("div",{onClick:function(){return U>=ue.length?J(1):J(U+1)},className:j("flex h-6 w-6 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 ")},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})))):t.createElement("div",null),G.rows?t.createElement("div",{className:"flex w-fit flex-row items-center gap-2 "},t.createElement("div",{className:"text-xs "},G.rows.length," ",null!==(d=null===(s=G.texts)||void 0===s?void 0:s.items)&&void 0!==d?d:"Items"),t.createElement("select",{value:W,className:"h-6 rounded text-xs",onChange:function(e){z(parseInt(e.target.value))}},t.createElement("option",{value:10,style:{fontSize:10}},"10 / ",null!==(m=null===(f=G.texts)||void 0===f?void 0:f.page)&&void 0!==m?m:"Page"),t.createElement("option",{value:20,style:{fontSize:10}},"20 / ",null!==(g=null===(p=G.texts)||void 0===p?void 0:p.page)&&void 0!==g?g:"Page"),t.createElement("option",{value:30,style:{fontSize:10}},"30 / ",null!==(h=null===(v=G.texts)||void 0===v?void 0:v.page)&&void 0!==h?h:"Page"),t.createElement("option",{value:50,style:{fontSize:10}},"50 / ",null!==(y=null===(b=G.texts)||void 0===b?void 0:b.page)&&void 0!==y?y:"Page"),t.createElement("option",{value:100,style:{fontSize:10}},"100 / ",null!==(w=null===(x=G.texts)||void 0===x?void 0:x.page)&&void 0!==w?w:"Page"))):t.createElement("div",null)))};function fl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ml=function(e){return t.createElement(re,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fl(e,t,n[t])}))}return e}({type:"search"},e))},pl=function(e){var r=n(!1),o=r[0],a=r[1];return t.createElement("div",{className:"h-fit w-full"},t.createElement("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:j(o?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:function(){return a(!o)},"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index},t.createElement("span",null,e.title),t.createElement("svg",{"data-accordion-icon":"",className:"h-6 w-6 ".concat(o?"":"rotate-180"," shrink-0 transition-all"),fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))),t.createElement("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:j(o?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900")},t.createElement("p",{className:"mb-2 text-gray-500 dark:text-gray-400"},e.content)))},gl=[{country_label:"Saudi Arabia",code:"SA",unicode:"🇸🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"🇦🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"🇧🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"🇰🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"🇶🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"🇴🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"🇦🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"🇦🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"🇦🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"🇦🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"🇦🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"🇦🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"🇦🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"🇦🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"🇦🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"🇦🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"🇦🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"🇦🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"🇦🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"🇦🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"🇦🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"🇧🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"🇧🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"🇧🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"🇧🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"🇧🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"🇧🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"🇧🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"🇧🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"🇧🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"🇧🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"🇧🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"🇧🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"🇧🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"🇧🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"🇧🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"🇧🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"🇧🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"🇧🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"🇨🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"🇨🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"🇨🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"🇨🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"🇨🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"🇨🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"🇨🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"🇨🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"🇨🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"🇨🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"🇨🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"🇨🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"🇨🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"🇨🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"🇨🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"🇨🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"🇨🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"🇨🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"🇩🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"🇩🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"🇩🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"🇩🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"🇩🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"🇩🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"🇪🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"🇪🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"🇪🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"🇪🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"🇪🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"🇪🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"🇫🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"🇫🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"🇫🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"🇫🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"🇫🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"🇫🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"🇬🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"🇬🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"🇬🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"🇬🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"🇬🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"🇬🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"🇬🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"🇬🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"🇬🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"🇬🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"🇬🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"🇬🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"🇬🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"🇬🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"🇬🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"🇬🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"🇬🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"🇬🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"🇬🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"🇭🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"🇭🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"🇭🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"🇭🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"🇭🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"🇮🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"🇮🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"🇮🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"🇮🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"🇮🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"🇮🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"🇮🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"🇮🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"🇮🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"🇮🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"🇯🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"🇯🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"🇯🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"🇯🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"🇰🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"🇰🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"🇰🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"🇰🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"🇰🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"🇰🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"🇰🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"🇰🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"🇰🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"🇰🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"🇱🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"🇱🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"🇱🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"🇱🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"🇱🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"🇱🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"🇱🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"🇱🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"🇱🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"🇱🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"🇱🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"🇲🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"🇲🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"🇲🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"🇲🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"🇲🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"🇲🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"🇲🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"🇲🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"🇲🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"🇲🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"🇲🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"🇲🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"🇲🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"🇲🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"🇲🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"🇲🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"🇲🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"🇲🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"🇲🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"🇲🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"🇲🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"🇲🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"🇲🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"🇳🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"🇳🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"🇳🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"🇳🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"🇳🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"🇳🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"🇳🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"🇳🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"🇳🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"🇳🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"🇳🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"🇳🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"🇵🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"🇵🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"🇵🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"🇵🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"🇵🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"🇵🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"🇵🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"🇵🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"🇵🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"🇵🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"🇵🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"🇵🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"🇵🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"🇵🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"🇷🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"🇷🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"🇷🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"🇷🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"🇷🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"🇸🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"🇸🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"🇸🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"🇸🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"🇸🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"🇸🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"🇸🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"🇸🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"🇸🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"🇸🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"🇸🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"🇸🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"🇸🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"🇸🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"🇸🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"🇸🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"🇸🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"🇸🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"🇸🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"🇹🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"🇹🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"🇹🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"🇹🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"🇹🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"🇹🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"🇹🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"🇹🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"🇹🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"🇹🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"🇹🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"🇹🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"🇹🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"🇹🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"🇹🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"🇺🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"🇺🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"🇺🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"🇺🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"🇺🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"🇻🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"🇻🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"🇻🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"🇻🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"🇻🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"🇻🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"🇻🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"🇼🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"🇼🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"🇾🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"🇾🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"🇿🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"🇿🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"🇿🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}];function vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vl(e,t,n[t])}))}return e}var bl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return N(e,["cx","children","getStyles","innerProps","innerRef"]),t.createElement("div",hl({className:"absolute z-50 w-[190px] rounded border bg-background",ref:o},r),n)},yl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef,a=N(e,["cx","children","getStyles","innerProps","innerRef"]);return t.createElement("div",hl({ref:o,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-buttonPrimary-500/30 dark:text-white dark:hover:bg-buttonPrimary-500/60"},r),t.createElement("div",{className:"flex flex-row items-center justify-center gap-1"},t.createElement("img",{className:"h-8 w-8",src:a.data.image}),t.createElement("span",{className:"text-[10px]"},a.data.country_label)),n)},xl=function(e){var r=n("+966"),o=r[0],a=r[1];return t.createElement("div",{className:"mb-3 flex flex-col"},e.label&&t.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},e.label),t.createElement("div",{dir:"ltr",className:"flex flex-row "},t.createElement(Ui,{classNames:{control:function(){return"w-[64px] border rounded-l bg-background text-right pr-2"},placeholder:function(e){return"text-muted-foreground text-right pr-2"},input:function(e){return"bg-transparent text-white p-2 rounded-l text-[0.875rem]"},valueContainer:function(){return" rounded-l h-auto text-[0.875rem]"}},styles:{placeholder:function(e){return k(k({},e),{fontSize:"0.875rem",textAlign:"right"})}},components:{Option:yl,Menu:bl,DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:gl,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:o,onChange:function(e,t){return a(e)}}),t.createElement("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full appearance-none rounded rounded-l-none border border-l-0 bg-background p-2 text-[0.875rem] text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:text-white "}),e.helperText&&t.createElement("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500"},e.helperText)))},wl=function(e){var r,o,a=e.orientation,i=void 0===a?"horizontal":a,l=e.direction,u=void 0===l?"ltr":l,c=e.width,s=void 0===c?"normal":c,d=e.marginBetween,f=void 0===d?0:d,m=e.pill,p=void 0!==m&&m,g=N(e,["orientation","direction","width","marginBetween","pill"]),v=n(null===(r=g.options[0])||void 0===r?void 0:r.value),h=v[0],b=v[1],y={vertical:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",horizontal:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active"},x={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"};return t.createElement("div",{dir:u,className:j({vertical:"flex flex-row",horizontal:"flex flex-col"}[i],g.options[h]?"border-b-2":"border-b-0")},t.createElement("ul",{className:j(f?"vertical"===i?"mb-0":"mb-"+f:"",f&&"rtl"===u?"ml-"+f:"mr-"+f,{vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-buttonPrimary-500 text-center text-sm font-medium text-gray-500 dark:text-gray-400"}[i],"border-buttonPrimary-500",{full:"w-full min-w-full",normal:"w-fit"}[s],p?"gap-0.5 rounded border-none bg-gray-100 p-0.5":"vertical"===i?"rtl"===u?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-2")},null===(o=g.options)||void 0===o?void 0:o.map((function(e,n){return t.createElement("li",{key:n},t.createElement("button",{"aria-current":"page",onClick:function(){b(e.value),null==g||g.onChangeTab(e)},className:j("flex flex-row gap-2 items-center",e.value===h?[y[i],"rtl"===u?"rounded-r":"rounded-l"]:x[i],"w-full transition-all",p?"rounded":"vertical"===i?"rounded rounded-bl-none rounded-tl-none":"rounded rounded-bl-none rounded-br-none")},e.icon,e.label))}))),t.createElement("div",{className:"flex-1 transition-all"},g.options.map((function(e,n){return t.createElement("div",{key:n,className:j(h===e.value?"":"hidden")},e.content)}))))},Cl=function(e){var n=e.open,r=e.title,a=e.onClose,i=e.closeOnClickOutside,l=void 0===i||i,u=N(e,["open","title","onClose","closeOnClickOutside"]);return o((function(){return l&&n&&(window.onclick=function(e){e.stopPropagation(),a()}),function(){return window.onclick=null}}),[n]),t.createElement("div",{className:j("absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all",n?"z-10 opacity-100 ":"invisible -z-10 opacity-0")},t.createElement("div",{className:j("absolute h-screen w-full bg-gray-500 opacity-50",n?"opacity-50":"opacity-0")}),t.createElement("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700"},t.createElement("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600"},t.createElement("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white"},r),t.createElement("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:function(e){a()}},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),t.createElement("span",{className:"sr-only"},"Close modal"))),t.createElement("div",{className:"space-y-6 p-3"},u.children),t.createElement("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600"},u.actions)))};function El(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Al(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)}))}}function Bl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(Fl.apply(void 0,Al(t)),t)}function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Il(e,t,n[t])}))}return e}function kl(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Nl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sl(e){return function(e){if(Array.isArray(e))return Ol(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ol(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ol(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=function(){var t=n.map((function(e){return c(e)}));return function(n){var r=(null==n?void 0:n[e])||t;return s((function(){return Il({},"__scope".concat(e),kl(jl({},n),Il({},e,r)))}),[n,r])}};return r.scopeName=e,[function(t,r){var o=c(r),a=n.length;function i(t){var n=t.scope,r=t.children,i=Nl(t,["scope","children"]),l=(null==n?void 0:n[e][a])||o,u=s((function(){return i}),Object.values(i));return m(l.Provider,{value:u},r)}return n=Sl(n).concat([r]),i.displayName=t+"Provider",[i,function(n,i){var u=(null==i?void 0:i[e][a])||o,c=l(u);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},Tl.apply(void 0,[r].concat(Sl(t)))]}function Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(1===t.length)return r;var o=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var r=n.useScope,o=n.scopeName;return jl({},e,r(t)["__scope".concat(o)])}),{});return s((function(){return Il({},"__scope".concat(r.scopeName),n)}),[n])}};return o.scopeName=r.scopeName,o}function Rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ml(e){return function(e){if(Array.isArray(e))return Rl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e){var t=r(e);return o((function(){t.current=e})),s((function(){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,a;return null===(a=t.current)||void 0===a?void 0:(o=a).call.apply(o,[t].concat(Ml(n)))}}),[])}function Gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wl(e){var t=e.prop,i=e.defaultProp,l=e.onChange,u=void 0===l?function(){}:l,c=Vl(function(e){var t=e.defaultProp,a=e.onChange,i=n(t),l=Vl(i,1)[0],u=r(l),c=Ll(a);return o((function(){u.current!==l&&(c(l),u.current=l)}),[l,u,c]),i}({defaultProp:i,onChange:u}),2),s=c[0],d=c[1],f=void 0!==t,m=f?t:s,p=Ll(u);return[m,a((function(e){if(f){var n="function"==typeof e?e(t):e;n!==t&&p(n)}else d(e)}),[f,t,d,p])]}function zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zl(e,t,n[t])}))}return e}function _l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Hl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yl(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ul=i((function(e,t){var n=e.children,r=Hl(e,["children"]),o=p.toArray(n),a=o.find(ql);if(a){var i=a.props.children,l=o.map((function(e){return e===a?p.count(i)>1?p.only(null):g(i)?i.props.children:null:e}));return m(Jl,be({},r,{ref:t}),g(i)?v(i,void 0,l):null)}return m(Jl,be({},r,{ref:t}),n)}));Ul.displayName="Slot";var Jl=i((function(e,t){var n=e.children,r=Hl(e,["children"]);return g(n)?v(n,_l(Xl({},function(e,t){var n=function(n){var o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(void 0,Yl(t)),o.apply(void 0,Yl(t))}:o&&(r[n]=o):"style"===n?r[n]=Xl({},o,a):"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))},r=Xl({},t);for(var o in t)n(o);return Xl({},e,r)}(r,n.props)),{ref:t?Fl(t,n.ref):n.ref})):p.count(n)>1?p.only(null):null}));Jl.displayName="SlotClone";var Ql=function(e){var t=e.children;return m(f,null,t)};function ql(e){return g(e)&&e.type===Ql}function Kl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function eu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){var n=i((function(e,n){var r=e.asChild,a=eu(e,["asChild"]),i=r?Ul:t;return o((function(){window[Symbol.for("radix-ui")]=!0}),[]),m(i,be({},a,{ref:n}))}));return n.displayName="Primitive.".concat(t),$l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kl(e,t,n[t])}))}return e}({},e),Kl({},t,n))}),{});function nu(e,t){e&&E((function(){return e.dispatchEvent(t)}))}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ru(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lu(e){var n=e+"CollectionProvider",r=iu(Pl(n),2),o=r[0],a=r[1],i=iu(o(n,{collectionRef:{current:null},itemMap:new Map}),2),l=i[0],u=i[1],c=e+"CollectionSlot",s=t.forwardRef((function(e,n){var r=e.scope,o=e.children,a=Bl(n,u(c,r).collectionRef);return t.createElement(Ul,{ref:a},o)})),d=e+"CollectionItemSlot",f="data-radix-collection-item",m=t.forwardRef((function(e,n){var r,o=e.scope,a=e.children,i=au(e,["scope","children"]),l=t.useRef(null),c=Bl(n,l),s=u(d,o);return t.useEffect((function(){return s.itemMap.set(l,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ou(e,t,n[t])}))}return e}({ref:l},i)),function(){s.itemMap.delete(l)}})),t.createElement(Ul,(ou(r={},f,""),ou(r,"ref",c),r),a)}));return[{Provider:function(e){var n=e.scope,r=e.children,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(l,{scope:n,itemMap:a,collectionRef:o},r)},Slot:s,ItemSlot:m},function(n){var r=u(e+"CollectionConsumer",n),o=t.useCallback((function(){var e=r.collectionRef.current;if(!e)return[];var t=Array.from(e.querySelectorAll("[".concat(f,"]"))),n=Array.from(r.itemMap.values()).sort((function(e,n){return t.indexOf(e.ref.current)-t.indexOf(n.ref.current)}));return n}),[r.collectionRef,r.itemMap]);return o},a]}var uu=c(void 0);function cu(e){var t=l(uu);return e||t||"ltr"}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){du(e,t,n[t])}))}return e}function mu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||vu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gu(e){return function(e){if(Array.isArray(e))return su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vu(e,t){if(e){if("string"==typeof e)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?su(e,t):void 0}}var hu,bu="dismissableLayer.update",yu="dismissableLayer.pointerDownOutside",xu="dismissableLayer.focusOutside",wu=c({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cu=i((function(e,t){var a,i=e.disableOutsidePointerEvents,u=void 0!==i&&i,c=e.onEscapeKeyDown,s=e.onPointerDownOutside,d=e.onFocusOutside,f=e.onInteractOutside,p=e.onDismiss,g=mu(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=l(wu),h=pu(n(null),2),b=h[0],y=h[1],x=null!==(a=null==b?void 0:b.ownerDocument)&&void 0!==a?a:null===globalThis||void 0===globalThis?void 0:globalThis.document,w=pu(n({}),2)[1],C=Bl(t,(function(e){return y(e)})),E=Array.from(v.layers),D=pu(gu(v.layersWithOutsidePointerEventsDisabled).slice(-1),1)[0],A=E.indexOf(D),F=b?E.indexOf(b):-1,B=v.layersWithOutsidePointerEventsDisabled.size>0,O=F>=A,I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e),a=r(!1),i=r((function(){}));return o((function(){var e=function(e){if(e.target&&!a.current){var r=function(){Du(yu,n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}a.current=!1},r=window.setTimeout((function(){t.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:function(){return a.current=!0}}}((function(e){var t=e.target,n=gu(v.branches).some((function(e){return e.contains(t)}));O&&!n&&(null==s||s(e),null==f||f(e),e.defaultPrevented||null==p||p())}),x),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e),a=r(!1);return o((function(){var e=function(e){e.target&&!a.current&&Du(xu,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),function(){return t.removeEventListener("focusin",e)}}),[t,n]),{onFocusCapture:function(){return a.current=!0},onBlurCapture:function(){return a.current=!1}}}((function(e){var t=e.target;gu(v.branches).some((function(e){return e.contains(t)}))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==p||p())}),x);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e);o((function(){var e=function(e){"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),function(){return t.removeEventListener("keydown",e)}}),[n,t])}((function(e){F===v.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))}),x),o((function(){if(b)return u&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(hu=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(b)),v.layers.add(b),Eu(),function(){u&&1===v.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=hu)}}),[b,x,u,v]),o((function(){return function(){b&&(v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),Eu())}}),[b,v]),o((function(){var e=function(){return w({})};return document.addEventListener(bu,e),function(){return document.removeEventListener(bu,e)}}),[]),m(tu.div,be({},g,{ref:C,style:fu({pointerEvents:B?O?"auto":"none":void 0},e.style),onFocusCapture:El(e.onFocusCapture,j.onFocusCapture),onBlurCapture:El(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:El(e.onPointerDownCapture,I.onPointerDownCapture)}))}));function Eu(){var e=new CustomEvent(bu);document.dispatchEvent(e)}function Du(e,t,n,r){var o=r.discrete,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?nu(a,i):a.dispatchEvent(i)}var Au=0;function Fu(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ou(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ju(e){return function(e){if(Array.isArray(e))return Bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ku(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return Bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bu(e,t):void 0}}var Nu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Pu={bubbles:!1,cancelable:!0},Tu=i((function(e,t){var i=e.loop,l=void 0!==i&&i,u=e.trapped,c=void 0!==u&&u,s=e.onMountAutoFocus,d=e.onUnmountAutoFocus,f=Ou(e,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),p=Iu(n(null),2),g=p[0],v=p[1],h=Ll(s),b=Ll(d),y=r(null),x=Bl(t,(function(e){return v(e)})),w=r({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;o((function(){if(c){var e=function(e){if(!w.paused&&g){var t=e.target;g.contains(t)?y.current=t:Vu(y.current,{select:!0})}},t=function(e){if(!w.paused&&g){var t=e.relatedTarget;null!==t&&(g.contains(t)||Vu(y.current,{select:!0}))}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var n=new MutationObserver((function(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){a.value.removedNodes.length>0&&(null!=g&&g.contains(t)||Vu(g))}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}));return g&&n.observe(g,{childList:!0,subtree:!0}),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[c,g,w.paused]),o((function(){if(g){zu.add(w);var e=document.activeElement;if(!g.contains(e)){var t=new CustomEvent(Nu,Pu);g.addEventListener(Nu,h),g.dispatchEvent(t),t.defaultPrevented||(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n,o=document.activeElement,a=!0,i=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){if(Vu(u.value,{select:r}),document.activeElement!==o)return}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}((n=Ru(g),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&Vu(g))}return function(){g.removeEventListener(Nu,h),setTimeout((function(){var t=new CustomEvent(Su,Pu);g.addEventListener(Su,b),g.dispatchEvent(t),t.defaultPrevented||Vu(null!=e?e:document.body,{select:!0}),g.removeEventListener(Su,b),zu.remove(w)}),0)}}var n}),[g,h,b,w]);var C=a((function(e){if((l||c)&&!w.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r=e.currentTarget,o=Iu(function(e){var t=Ru(e),n=Mu(t,e),r=Mu(t.reverse(),e);return[n,r]}(r),2),a=o[0],i=o[1];a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),l&&Vu(i,{select:!0})):(e.preventDefault(),l&&Vu(a,{select:!0})):n===r&&e.preventDefault()}}}),[l,c,w.paused]);return m(tu.div,be({tabIndex:-1},f,{ref:x,onKeyDown:C}))}));function Ru(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function Mu(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(!Lu(l,{upTo:t}))return l}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function Lu(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Gu(e){return t=e,(null!=(n=HTMLInputElement)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&"select"in e;var t,n}function Vu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){var r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gu(e)&&n&&e.select()}}var Wu,zu=(Wu=[],{add:function(e){var t=Wu[0];e!==t&&(null==t||t.pause()),(Wu=Zu(Wu,e)).unshift(e)},remove:function(e){var t;null===(t=(Wu=Zu(Wu,e))[0])||void 0===t||t.resume()}});function Zu(e,t){var n=ju(e),r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Xu=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u:function(){};function _u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Yu=e["useId".toString()]||function(){},Uu=0;function Ju(t){var n=Hu(e.useState(Yu()),2),r=n[0],o=n[1];return Xu((function(){t||o((function(e){return null!=e?e:String(Uu++)}))}),[t]),t||(r?"radix-".concat(r):"")}function Qu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qu(e,t,n[t])}))}return e}function $u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var nc=function(e){return{name:"arrow",options:e,fn:function(t){var n,r="function"==typeof e?e(t):e,o=r.element,a=r.padding;return o&&(n=o,{}.hasOwnProperty.call(n,"current"))?null!=o.current?Yr({element:o.current,padding:a}).fn(t):{}:o?Yr({element:o,padding:a}).fn(t):{}}}},rc="undefined"!=typeof document?u:o;function oc(e,t){if(e===t)return!0;if((void 0===e?"undefined":tc(e))!==(void 0===t?"undefined":tc(t)))return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!oc(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var a=o[r];if(("_owner"!==a||!e.$$typeof)&&!oc(e[a],t[a]))return!1}return!0}return e!=e&&t!=t}function ac(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ic(e,t){var n=ac(e);return Math.round(t*n)/n}function lc(t){var n=e.useRef(t);return rc((function(){n.current=t})),n}function uc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cc=i((function(e,t){var n=e.children,r=e.width,o=void 0===r?10:r,a=e.height,i=void 0===a?5:a,l=uc(e,["children","width","height"]);return m(tu.svg,be({},l,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:m("polygon",{points:"0,0 30,0 15,10"}))}));function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mc(e,t,n[t])}))}return e}function gc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function vc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var bc="Popper",yc=hc(Pl(bc),2),xc=yc[0],wc=yc[1],Cc=hc(xc(bc),2),Ec=Cc[0],Dc=Cc[1],Ac=i((function(e,t){var n=e.__scopePopper,a=e.virtualRef,i=vc(e,["__scopePopper","virtualRef"]),l=Dc("PopperAnchor",n),u=r(null),c=Bl(t,u);return o((function(){l.onAnchorChange((null==a?void 0:a.current)||u.current)})),a?null:m(tu.div,be({},i,{ref:c}))})),Fc="PopperContent",Bc=hc(xc(Fc),2),Oc=Bc[0],Ic=Bc[1],jc=i((function(t,r){var o,a,i,l,u,c,s,d,f=t.__scopePopper,p=t.side,g=void 0===p?"bottom":p,v=t.sideOffset,h=void 0===v?0:v,b=t.align,y=void 0===b?"center":b,w=t.alignOffset,C=void 0===w?0:w,E=t.arrowPadding,D=void 0===E?0:E,A=t.collisionBoundary,F=void 0===A?[]:A,B=t.collisionPadding,O=void 0===B?0:B,I=t.sticky,j=void 0===I?"partial":I,k=t.hideWhenDetached,N=void 0!==k&&k,S=t.avoidCollisions,P=void 0===S||S,T=t.onPlaced,R=vc(t,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","onPlaced"]),M=Dc(Fc,f),L=hc(n(null),2),G=L[0],V=L[1],W=Bl(r,(function(e){return V(e)})),z=hc(n(null),2),Z=z[0],X=z[1],_=function(e){var t=dc(n(void 0),2),r=t[0],o=t[1];return Xu((function(){if(e){o({width:e.offsetWidth,height:e.offsetHeight});var t=new ResizeObserver((function(t){if(Array.isArray(t)&&t.length){var n,r,a=t[0];if("borderBoxSize"in a){var i=a.borderBoxSize,l=Array.isArray(i)?i[0]:i;n=l.inlineSize,r=l.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}o(void 0)}),[e]),r}(Z),H=null!==(o=null==_?void 0:_.width)&&void 0!==o?o:0,Y=null!==(a=null==_?void 0:_.height)&&void 0!==a?a:0,U=g+("center"!==y?"-"+y:""),J="number"==typeof O?O:pc({top:0,right:0,bottom:0,left:0},O),Q=Array.isArray(F)?F:[F],q=Q.length>0,K={padding:J,boundary:Q.filter(Nc),altBoundary:q},$=function(t){void 0===t&&(t={});var n=t.placement,r=void 0===n?"bottom":n,o=t.strategy,a=void 0===o?"absolute":o,i=t.middleware,l=void 0===i?[]:i,u=t.platform,c=t.elements,s=void 0===c?{}:c,d=s.reference,f=s.floating,m=t.transform,p=void 0===m||m,g=t.whileElementsMounted,v=t.open,h=ec(e.useState({x:0,y:0,strategy:a,placement:r,middlewareData:{},isPositioned:!1}),2),b=h[0],y=h[1],w=ec(e.useState(l),2),C=w[0],E=w[1];oc(C,l)||E(l);var D=ec(e.useState(null),2),A=D[0],F=D[1],B=ec(e.useState(null),2),O=B[0],I=B[1],j=e.useCallback((function(e){e!=P.current&&(P.current=e,F(e))}),[F]),k=e.useCallback((function(e){e!==T.current&&(T.current=e,I(e))}),[I]),N=d||A,S=f||O,P=e.useRef(null),T=e.useRef(null),R=e.useRef(b),M=lc(g),L=lc(u),G=e.useCallback((function(){if(P.current&&T.current){var e={placement:r,strategy:a,middleware:C};L.current&&(e.platform=L.current),Yo(P.current,T.current,e).then((function(e){var t=$u(Ku({},e),{isPositioned:!0});V.current&&!oc(R.current,t)&&(R.current=t,x.flushSync((function(){y(t)})))}))}}),[C,r,a,L]);rc((function(){!1===v&&R.current.isPositioned&&(R.current.isPositioned=!1,y((function(e){return $u(Ku({},e),{isPositioned:!1})})))}),[v]);var V=e.useRef(!1);rc((function(){return V.current=!0,function(){V.current=!1}}),[]),rc((function(){if(N&&(P.current=N),S&&(T.current=S),N&&S){if(M.current)return M.current(N,S,G);G()}}),[N,S,G,M]);var W=e.useMemo((function(){return{reference:P,floating:T,setReference:j,setFloating:k}}),[j,k]),z=e.useMemo((function(){return{reference:N,floating:S}}),[N,S]),Z=e.useMemo((function(){var e={position:a,left:0,top:0};if(!z.floating)return e;var t=ic(z.floating,b.x),n=ic(z.floating,b.y);return p?Ku($u(Ku({},e),{transform:"translate("+t+"px, "+n+"px)"}),ac(z.floating)>=1.5&&{willChange:"transform"}):{position:a,left:t,top:n}}),[a,p,z.floating,b.x,b.y]);return e.useMemo((function(){return $u(Ku({},b),{update:G,refs:W,elements:z,floatingStyles:Z})}),[b,G,W,z,Z])}({strategy:"fixed",placement:U,whileElementsMounted:Ho,elements:{reference:M.anchor},middleware:[eo({mainAxis:h+Y,alignmentAxis:C}),P&&to(pc({mainAxis:!0,crossAxis:!1,limiter:"partial"===j?no():void 0},K)),P&&Ur(pc({},K)),ro(gc(pc({},K),{apply:function(e){var t=e.elements,n=e.rects,r=e.availableWidth,o=e.availableHeight,a=n.reference,i=a.width,l=a.height,u=t.floating.style;u.setProperty("--radix-popper-available-width","".concat(r,"px")),u.setProperty("--radix-popper-available-height","".concat(o,"px")),u.setProperty("--radix-popper-anchor-width","".concat(i,"px")),u.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}})),Z&&nc({element:Z,padding:D}),Sc({arrowWidth:H,arrowHeight:Y}),N&&qr({strategy:"referenceHidden"})]}),ee=$.refs,te=$.floatingStyles,ne=$.placement,re=$.isPositioned,oe=$.middlewareData,ae=hc(Pc(ne),2),ie=ae[0],le=ae[1],ue=Ll(T);Xu((function(){re&&(null==ue||ue())}),[re,ue]);var ce=null===(i=oe.arrow)||void 0===i?void 0:i.x,se=null===(l=oe.arrow)||void 0===l?void 0:l.y,de=0!==(null===(u=oe.arrow)||void 0===u?void 0:u.centerOffset),fe=hc(n(),2),me=fe[0],pe=fe[1];return Xu((function(){G&&pe(window.getComputedStyle(G).zIndex)}),[G]),m("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:gc(pc({},te),mc({transform:re?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me},"--radix-popper-transform-origin",[null===(c=oe.transformOrigin)||void 0===c?void 0:c.x,null===(s=oe.transformOrigin)||void 0===s?void 0:s.y].join(" "))),dir:t.dir},m(Oc,{scope:f,placedSide:ie,onArrowChange:X,arrowX:ce,arrowY:se,shouldHideArrow:de},m(tu.div,be({"data-side":ie,"data-align":le},R,{ref:W,style:gc(pc({},R.style),{animation:re?void 0:"none",opacity:null!==(d=oe.hide)&&void 0!==d&&d.referenceHidden?0:void 0})}))))})),kc={top:"bottom",right:"left",bottom:"top",left:"right"};function Nc(e){return null!==e}var Sc=function(e){return{name:"transformOrigin",options:e,fn:function(t){var n,r,o,a,i,l=t.placement,u=t.rects,c=t.middlewareData,s=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,m=hc(Pc(l),2),p=m[0],g={start:"0%",center:"50%",end:"100%"}[m[1]],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,h=(null!==(a=null===(i=c.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2,b="",y="";return"bottom"===p?(b=s?g:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(b=s?g:"".concat(v,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(b="".concat(-f,"px"),y=s?g:"".concat(h,"px")):"left"===p&&(b="".concat(u.floating.width+f,"px"),y=s?g:"".concat(h,"px")),{data:{x:b,y:y}}}}};function Pc(e){var t=hc(e.split("-"),2),n=t[0],r=t[1];return[n,void 0===r?"center":r]}var Tc=function(e){var t=e.__scopePopper,r=e.children,o=hc(n(null),2),a=o[0],i=o[1];return m(Ec,{scope:t,anchor:a,onAnchorChange:i},r)},Rc=Ac,Mc=jc,Lc=i((function(e,t){var n,r=e.__scopePopper,o=vc(e,["__scopePopper"]),a=Ic("PopperArrow",r),i=kc[a.placedSide];return m("span",{ref:a.onArrowChange,style:(n={position:"absolute",left:a.arrowX,top:a.arrowY},mc(n,i,0),mc(n,"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide]),mc(n,"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide]),mc(n,"visibility",a.shouldHideArrow?"hidden":void 0),n)},m(cc,be({},o,{ref:t,style:gc(pc({},o.style),{display:"block"})})))}));function Gc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vc=i((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=Gc(e,["container"]);return o?w.createPortal(m(tu.div,be({},a,{ref:t})),o):null}));function Wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zc=function(e){var t=e.present,i=e.children,l=function(e){var t=zc(n(),2),i=t[0],l=t[1],u=r({}),c=r(e),s=r("none"),d=e?"mounted":"unmounted",f=zc(function(e,t){return h((function(e,n){var r=t[e][n];return null!=r?r:e}),e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),m=f[0],p=f[1];return o((function(){var e=Xc(u.current);s.current="mounted"===m?e:"none"}),[m]),Xu((function(){var t=u.current,n=c.current;if(n!==e){var r=s.current,o=Xc(t);if(e)p("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{p(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}c.current=e}}),[e,p]),Xu((function(){if(i){var e=function(e){var t=Xc(u.current).includes(e.animationName);e.target===i&&t&&E((function(){return p("ANIMATION_END")}))},t=function(e){e.target===i&&(s.current=Xc(u.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),function(){i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[i,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:a((function(e){e&&(u.current=getComputedStyle(e)),l(e)}),[])}}(t),u="function"==typeof i?i({present:l.isPresent}):p.only(i),c=Bl(l.ref,u.ref);return"function"==typeof i||l.isPresent?v(u,{ref:c}):null};function Xc(e){return(null==e?void 0:e.animationName)||"none"}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hc(e,t,n[t])}))}return e}function Uc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||qc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qc(e){return function(e){if(Array.isArray(e))return _c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){if(e){if("string"==typeof e)return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(e,t):void 0}}Zc.displayName="Presence";var Kc="rovingFocusGroup.onEntryFocus",$c={bubbles:!1,cancelable:!0},es="RovingFocusGroup",ts=Jc(lu(es),3),ns=ts[0],rs=ts[1],os=Jc(Pl(es,[ts[2]]),2),as=os[0],is=os[1],ls=Jc(as(es),2),us=ls[0],cs=ls[1],ss=i((function(e,t){return m(ns.Provider,{scope:e.__scopeRovingFocusGroup},m(ns.Slot,{scope:e.__scopeRovingFocusGroup},m(ds,be({},e,{ref:t}))))})),ds=i((function(e,t){var i=e.__scopeRovingFocusGroup,l=e.orientation,u=e.loop,c=void 0!==u&&u,s=e.dir,d=e.currentTabStopId,f=e.defaultCurrentTabStopId,p=e.onCurrentTabStopIdChange,g=e.onEntryFocus,v=Uc(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"]),h=r(null),b=Bl(t,h),y=cu(s),x=Jc(Wl({prop:d,defaultProp:f,onChange:p}),2),w=x[0],C=void 0===w?null:w,E=x[1],D=Jc(n(!1),2),A=D[0],F=D[1],B=Ll(g),O=rs(i),I=r(!1),j=Jc(n(0),2),k=j[0],N=j[1];return o((function(){var e=h.current;if(e)return e.addEventListener(Kc,B),function(){return e.removeEventListener(Kc,B)}}),[B]),m(us,{scope:i,orientation:l,dir:y,loop:c,currentTabStopId:C,onItemFocus:a((function(e){return E(e)}),[E]),onItemShiftTab:a((function(){return F(!0)}),[]),onFocusableItemAdd:a((function(){return N((function(e){return e+1}))}),[]),onFocusableItemRemove:a((function(){return N((function(e){return e-1}))}),[])},m(tu.div,be({tabIndex:A||0===k?-1:0,"data-orientation":l},v,{ref:b,style:Yc({outline:"none"},e.style),onMouseDown:El(e.onMouseDown,(function(){I.current=!0})),onFocus:El(e.onFocus,(function(e){var t=!I.current;if(e.target===e.currentTarget&&t&&!A){var n=new CustomEvent(Kc,$c);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){var r=O().filter((function(e){return e.focusable}));ps([r.find((function(e){return e.active})),r.find((function(e){return e.id===C}))].concat(Qc(r)).filter(Boolean).map((function(e){return e.ref.current})))}}I.current=!1})),onBlur:El(e.onBlur,(function(){return F(!1)}))})))})),fs=i((function(e,t){var n=e.__scopeRovingFocusGroup,r=e.focusable,a=void 0===r||r,i=e.active,l=void 0!==i&&i,u=e.tabStopId,c=Uc(e,["__scopeRovingFocusGroup","focusable","active","tabStopId"]),s=Ju(),d=u||s,f=cs("RovingFocusGroupItem",n),p=f.currentTabStopId===d,g=rs(n),v=f.onFocusableItemAdd,h=f.onFocusableItemRemove;return o((function(){if(a)return v(),function(){return h()}}),[a,v,h]),m(ns.ItemSlot,{scope:n,id:d,focusable:a,active:l},m(tu.span,be({tabIndex:p?0:-1,"data-orientation":f.orientation},c,{ref:t,onMouseDown:El(e.onMouseDown,(function(e){a?f.onItemFocus(d):e.preventDefault()})),onFocus:El(e.onFocus,(function(){return f.onItemFocus(d)})),onKeyDown:El(e.onKeyDown,(function(e){if("Tab"===e.key&&e.shiftKey)f.onItemShiftTab();else if(e.target===e.currentTarget){var t,n,r=function(e,t,n){var r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ms[r]}(e,f.orientation,f.dir);if(void 0!==r){e.preventDefault();var o=g().filter((function(e){return e.focusable})).map((function(e){return e.ref.current}));if("last"===r)o.reverse();else if("prev"===r||"next"===r){"prev"===r&&o.reverse();var a=o.indexOf(e.currentTarget);o=f.loop?(n=a+1,(t=o).map((function(e,r){return t[(n+r)%t.length]}))):o.slice(a+1)}setTimeout((function(){return ps(o)}))}}}))})))})),ms={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ps(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(l===t)return;if(l.focus(),document.activeElement!==t)return}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}var gs=ss,vs=fs,hs=new WeakMap,bs=new WeakMap,ys={},xs=0,ws=function(e){return e&&(e.host||ws(e.parentNode))},Cs=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=ws(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);ys[n]||(ys[n]=new WeakMap);var a=ys[n],i=[],l=new Set,u=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))s(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(hs.get(e)||0)+1,c=(a.get(e)||0)+1;hs.set(e,u),a.set(e,c),i.push(e),1===u&&o&&bs.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return s(t),l.clear(),xs++,function(){i.forEach((function(e){var t=hs.get(e)-1,o=a.get(e)-1;hs.set(e,t),a.set(e,o),t||(bs.has(e)||e.removeAttribute(r),bs.delete(e)),o||e.removeAttribute(n)})),--xs||(hs=new WeakMap,hs=new WeakMap,bs=new WeakMap,ys={})}},Es=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Cs(r,o,n,"aria-hidden")):function(){return null}},Ds="right-scroll-bar-position",As="width-before-scroll-bar";function Fs(e,t){return function(e,t){var r=n((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function Bs(e){return e}var Os=function(t){var n=t.sideCar,r=N(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,k({},r))};Os.isSideCarExport=!0;var Is=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Bs);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=k({async:!0,ssr:!1},e),t}(),js=function(){},ks=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:js,onWheelCapture:js,onTouchMoveCapture:js}),a=o[0],i=o[1],l=t.forwardProps,u=t.children,c=t.className,s=t.removeScrollBar,d=t.enabled,f=t.shards,m=t.sideCar,p=t.noIsolation,g=t.inert,v=t.allowPinchZoom,h=t.as,b=void 0===h?"div":h,y=N(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=m,w=Fs([r,n]),C=k(k({},y),a);return e.createElement(e.Fragment,null,d&&e.createElement(x,{sideCar:Is,removeScrollBar:s,shards:f,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:r}),l?e.cloneElement(e.Children.only(u),k(k({},C),{ref:w})):e.createElement(b,k({},C,{className:c,ref:w}),u))}));ks.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ks.classNames={fullWidth:As,zeroRight:Ds};function Ns(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Ss=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Ns())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ps=function(){var t,n=(t=Ss(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Ts={left:0,top:0,right:0,gap:0},Rs=function(e){return parseInt(e||"",10)||0},Ms=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ts;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Rs(n),Rs(r),Rs(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ls=Ps(),Gs=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ds," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(As," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(Ds," .").concat(Ds," {\n right: 0 ").concat(r,";\n }\n \n .").concat(As," .").concat(As," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Vs=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o,i=e.useMemo((function(){return Ms(a)}),[a]);return e.createElement(Ls,{styles:Gs(i,!n,a,r?"":"!important")})},Ws=!1;if("undefined"!=typeof window)try{var zs=Object.defineProperty({},"passive",{get:function(){return Ws=!0,!0}});window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch(e){Ws=!1}var Zs=!!Ws&&{passive:!1};var Xs=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_s=function(e,t){var n,r,o=t;do{if("undefined"!=typeof ShadowRoot&&(n=o,null!=(r=ShadowRoot)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)&&(o=o.host),Hs(e,o)){var a=Ys(e,o);if(a[1]>a[2])return!0}o=o.parentNode}while(o&&o!==document.body);return!1},Hs=function(e,t){return"v"===e?function(e){return Xs(e,"overflowY")}(t):function(e){return Xs(e,"overflowX")}(t)},Ys=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Js=function(e){return[e.deltaX,e.deltaY]},Qs=function(e){return e&&"current"in e?e.current:e},qs=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ks=0,$s=[];var ed,td=(ed=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Ks++)[0],i=e.useState((function(){return Ps()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=R([t.lockRef.current],(t.shards||[]).map(Qs),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var u=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,a=Us(e),i=r.current,u="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=_s(d,s);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=_s(d,s)),!f)return!1;if(!o.current&&"changedTouches"in e&&(u||c)&&(o.current=n),!n)return!0;var m=o.current||n;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),c=!1,s=i>0,d=0,f=0;do{var m=Ys(e,l),p=m[0],g=m[1]-m[2]-a*p;(p||g)&&Hs(e,l)&&(d+=g,f+=p),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(s&&(o&&0===d||!o&&i>d)||!s&&(o&&0===f||!o&&-i>f))&&(c=!0),c}(m,t,e,"h"===m?u:c,!0)}),[]),c=e.useCallback((function(e){var t=e;if($s.length&&$s[$s.length-1]===i){var r="deltaY"in t?Js(t):Us(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(l.current.shards||[]).map(Qs).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?u(t,a[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),s=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=Us(e),o.current=void 0}),[]),f=e.useCallback((function(e){s(e.type,Js(e),e.target,u(e,t.lockRef.current))}),[]),m=e.useCallback((function(e){s(e.type,Us(e),e.target,u(e,t.lockRef.current))}),[]);e.useEffect((function(){return $s.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Zs),document.addEventListener("touchmove",c,Zs),document.addEventListener("touchstart",d,Zs),function(){$s=$s.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Zs),document.removeEventListener("touchmove",c,Zs),document.removeEventListener("touchstart",d,Zs)}}),[]);var p=t.removeScrollBar,g=t.inert;return e.createElement(e.Fragment,null,g?e.createElement(i,{styles:qs(a)}):null,p?e.createElement(Vs,{gapMode:"margin"}):null)},Is.useMedium(ed),Os),nd=e.forwardRef((function(t,n){return e.createElement(ks,k({},t,{ref:n,sideCar:td}))}));nd.classNames=ks.classNames;var rd=nd;function od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ad(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ad(e,t,n[t])}))}return e}function ld(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||sd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cd(e){return function(e){if(Array.isArray(e))return od(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sd(e,t){if(e){if("string"==typeof e)return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?od(e,t):void 0}}var dd=["Enter"," "],fd=["ArrowUp","PageDown","End"],md=cd(["ArrowDown","PageUp","Home"]).concat(cd(fd)),pd={ltr:cd(dd).concat(["ArrowRight"]),rtl:cd(dd).concat(["ArrowLeft"])},gd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vd="Menu",hd=ud(lu(vd),3),bd=hd[0],yd=hd[1],xd=ud(Pl(vd,[hd[2],wc,is]),2),wd=xd[0],Cd=xd[1],Ed=wc(),Dd=is(),Ad=ud(wd(vd),2),Fd=Ad[0],Bd=Ad[1],Od=ud(wd(vd),2),Id=Od[0],jd=Od[1],kd=i((function(e,t){var n=e.__scopeMenu,r=ld(e,["__scopeMenu"]),o=Ed(n);return m(Rc,be({},o,r,{ref:t}))})),Nd="MenuPortal",Sd=ud(wd(Nd,{forceMount:void 0}),2),Pd=Sd[0],Td=Sd[1],Rd="MenuContent",Md=ud(wd(Rd),2),Ld=Md[0],Gd=Md[1],Vd=i((function(e,t){var n=Td(Rd,e.__scopeMenu),r=e.forceMount,o=void 0===r?n.forceMount:r,a=ld(e,["forceMount"]),i=Bd(Rd,e.__scopeMenu),l=jd(Rd,e.__scopeMenu);return m(bd.Provider,{scope:e.__scopeMenu},m(Zc,{present:o||i.open},m(bd.Slot,{scope:e.__scopeMenu},l.modal?m(Wd,be({},a,{ref:t})):m(zd,be({},a,{ref:t})))))})),Wd=i((function(e,t){var n=Bd(Rd,e.__scopeMenu),a=r(null),i=Bl(t,a);return o((function(){var e=a.current;if(e)return Es(e)}),[]),m(Zd,be({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:El(e.onFocusOutside,(function(e){return e.preventDefault()}),{checkForDefaultPrevented:!1}),onDismiss:function(){return n.onOpenChange(!1)}}))})),zd=i((function(e,t){var n=Bd(Rd,e.__scopeMenu);return m(Zd,be({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:function(){return n.onOpenChange(!1)}}))})),Zd=i((function(e,t){var i=e.__scopeMenu,l=e.loop,u=void 0!==l&&l,c=e.trapFocus,s=e.onOpenAutoFocus,d=e.onCloseAutoFocus,p=e.disableOutsidePointerEvents,g=e.onEntryFocus,v=e.onEscapeKeyDown,h=e.onPointerDownOutside,b=e.onFocusOutside,y=e.onInteractOutside,x=e.onDismiss,w=e.disableOutsideScroll,C=ld(e,["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"]),E=Bd(Rd,i),D=jd(Rd,i),A=Ed(i),F=Dd(i),B=yd(i),O=ud(n(null),2),I=O[0],j=O[1],k=r(null),N=Bl(t,k,E.onContentChange),S=r(0),P=r(""),T=r(0),R=r(null),M=r("right"),L=r(0),G=w?rd:f,V=w?{as:Ul,allowPinchZoom:!0}:void 0,W=function(e){var t,n,r=P.current+e,o=B().filter((function(e){return!e.disabled})),a=document.activeElement,i=null===(t=o.find((function(e){return e.ref.current===a})))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r=t.length>1&&Array.from(t).every((function(e){return e===t[0]})),o=r?t[0]:t,a=n?e.indexOf(n):-1,i=(l=e,u=Math.max(a,0),l.map((function(e,t){return l[(u+t)%l.length]})));var l,u;1===o.length&&(i=i.filter((function(e){return e!==n})));var c=i.find((function(e){return e.toLowerCase().startsWith(o.toLowerCase())}));return c!==n?c:void 0}(o.map((function(e){return e.textValue})),r,i),u=null===(n=o.find((function(e){return e.textValue===l})))||void 0===n?void 0:n.ref.current;!function e(t){P.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout((function(){return e("")}),1e3))}(r),u&&setTimeout((function(){return u.focus()}))};o((function(){return function(){return window.clearTimeout(S.current)}}),[]),o((function(){var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Fu()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Fu()),Au++,function(){1===Au&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),Au--}}),[]);var z=a((function(e){var t,n;return M.current===(null===(t=R.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;var n={x:e.clientX,y:e.clientY};return function(e,t){for(var n=e.x,r=e.y,o=!1,a=0,i=t.length-1;a<t.length;i=a++){var l=t[a].x,u=t[a].y,c=t[i].x,s=t[i].y;u>r!=s>r&&n<(c-l)*(r-u)/(s-u)+l&&(o=!o)}return o}(n,t)}(e,null===(n=R.current)||void 0===n?void 0:n.area)}),[]);return m(Ld,{scope:i,searchRef:P,onItemEnter:a((function(e){z(e)&&e.preventDefault()}),[z]),onItemLeave:a((function(e){var t;z(e)||(null===(t=k.current)||void 0===t||t.focus(),j(null))}),[z]),onTriggerLeave:a((function(e){z(e)&&e.preventDefault()}),[z]),pointerGraceTimerRef:T,onPointerGraceIntentChange:a((function(e){R.current=e}),[])},m(G,V,m(Tu,{asChild:!0,trapped:c,onMountAutoFocus:El(s,(function(e){var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus()})),onUnmountAutoFocus:d},m(Cu,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:v,onPointerDownOutside:h,onFocusOutside:b,onInteractOutside:y,onDismiss:x},m(gs,be({asChild:!0},F,{dir:D.dir,orientation:"vertical",loop:u,currentTabStopId:I,onCurrentTabStopIdChange:j,onEntryFocus:El(g,(function(e){D.isUsingKeyboardRef.current||e.preventDefault()}))}),m(Mc,be({role:"menu","aria-orientation":"vertical","data-state":gf(E.open),"data-radix-menu-content":"",dir:D.dir},A,C,{ref:N,style:id({outline:"none"},C.style),onKeyDown:El(C.onKeyDown,(function(e){var t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));var o=k.current;if(e.target===o&&md.includes(e.key)){e.preventDefault();var a=B().filter((function(e){return!e.disabled})).map((function(e){return e.ref.current}));fd.includes(e.key)&&a.reverse(),function(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(l===t)return;if(l.focus(),document.activeElement!==t)return}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}(a)}})),onBlur:El(e.onBlur,(function(e){e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),P.current="")})),onPointerMove:El(e.onPointerMove,bf((function(e){var t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){var r=e.clientX>L.current?"right":"left";M.current=r,L.current=e.clientX}})))})))))))})),Xd=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({role:"group"},n,{ref:t}))})),_d=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({},n,{ref:t}))})),Hd="MenuItem",Yd="menu.itemSelect",Ud=i((function(e,t){var n=e.disabled,o=void 0!==n&&n,a=e.onSelect,i=ld(e,["disabled","onSelect"]),l=r(null),u=jd(Hd,e.__scopeMenu),c=Gd(Hd,e.__scopeMenu),s=Bl(t,l),d=r(!1);return m(Jd,be({},i,{ref:s,disabled:o,onClick:El(e.onClick,(function(){var e=l.current;if(!o&&e){var t=new CustomEvent(Yd,{bubbles:!0,cancelable:!0});e.addEventListener(Yd,(function(e){return null==a?void 0:a(e)}),{once:!0}),nu(e,t),t.defaultPrevented?d.current=!1:u.onClose()}})),onPointerDown:function(t){var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),d.current=!0},onPointerUp:El(e.onPointerUp,(function(e){var t;d.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:El(e.onKeyDown,(function(e){var t=""!==c.searchRef.current;o||t&&" "===e.key||dd.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Jd=i((function(e,t){var a=e.__scopeMenu,i=e.disabled,l=void 0!==i&&i,u=e.textValue,c=ld(e,["__scopeMenu","disabled","textValue"]),s=Gd(Hd,a),d=Dd(a),f=r(null),p=Bl(t,f),g=ud(n(!1),2),v=g[0],h=g[1],b=ud(n(""),2),y=b[0],x=b[1];return o((function(){var e,t=f.current;t&&x((null!==(e=t.textContent)&&void 0!==e?e:"").trim())}),[c.children]),m(bd.ItemSlot,{scope:a,disabled:l,textValue:null!=u?u:y},m(vs,be({asChild:!0},d,{focusable:!l}),m(tu.div,be({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0},c,{ref:p,onPointerMove:El(e.onPointerMove,bf((function(e){l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:El(e.onPointerLeave,bf((function(e){return s.onItemLeave(e)}))),onFocus:El(e.onFocus,(function(){return h(!0)})),onBlur:El(e.onBlur,(function(){return h(!1)}))}))))})),Qd=i((function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.onCheckedChange,a=ld(e,["checked","onCheckedChange"]);return m(of,{scope:e.__scopeMenu,checked:r},m(Ud,be({role:"menuitemcheckbox","aria-checked":vf(r)?"mixed":r},a,{ref:t,"data-state":hf(r),onSelect:El(a.onSelect,(function(){return null==o?void 0:o(!!vf(r)||!r)}),{checkForDefaultPrevented:!1})})))})),qd=ud(wd("MenuRadioGroup",{value:void 0,onValueChange:function(){}}),2),Kd=qd[0],$d=qd[1],ef=i((function(e,t){var n=e.value,r=e.onValueChange,o=ld(e,["value","onValueChange"]),a=Ll(r);return m(Kd,{scope:e.__scopeMenu,value:n,onValueChange:a},m(Xd,be({},o,{ref:t})))})),tf=i((function(e,t){var n=e.value,r=ld(e,["value"]),o=$d("MenuRadioItem",e.__scopeMenu),a=n===o.value;return m(of,{scope:e.__scopeMenu,checked:a},m(Ud,be({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":hf(a),onSelect:El(r.onSelect,(function(){var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),nf="MenuItemIndicator",rf=ud(wd(nf,{checked:!1}),2),of=rf[0],af=rf[1],lf=i((function(e,t){var n=e.__scopeMenu,r=e.forceMount,o=ld(e,["__scopeMenu","forceMount"]),a=af(nf,n);return m(Zc,{present:r||vf(a.checked)||!0===a.checked},m(tu.span,be({},o,{ref:t,"data-state":hf(a.checked)})))})),uf=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))})),cf=i((function(e,t){var n=e.__scopeMenu,r=ld(e,["__scopeMenu"]),o=Ed(n);return m(Lc,be({},o,r,{ref:t}))})),sf="MenuSub",df=ud(wd(sf),2),ff=df[0],mf=df[1],pf="MenuSubTrigger";function gf(e){return e?"open":"closed"}function vf(e){return"indeterminate"===e}function hf(e){return vf(e)?"indeterminate":e?"checked":"unchecked"}function bf(e){return function(t){return"mouse"===t.pointerType?e(t):void 0}}var yf=function(e){var t=e.__scopeMenu,i=e.open,l=void 0!==i&&i,u=e.children,c=e.dir,s=e.onOpenChange,d=e.modal,f=void 0===d||d,p=Ed(t),g=ud(n(null),2),v=g[0],h=g[1],b=r(!1),y=Ll(s),x=cu(c);return o((function(){var e=function(){b.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=function(){return b.current=!1};return document.addEventListener("keydown",e,{capture:!0}),function(){document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),m(Tc,p,m(Fd,{scope:t,open:l,onOpenChange:y,content:v,onContentChange:h},m(Id,{scope:t,onClose:a((function(){return y(!1)}),[y]),isUsingKeyboardRef:b,dir:x,modal:f},u)))},xf=kd,wf=function(e){var t=e.__scopeMenu,n=e.forceMount,r=e.children,o=e.container,a=Bd(Nd,t);return m(Pd,{scope:t,forceMount:n},m(Zc,{present:n||a.open},m(Vc,{asChild:!0,container:o},r)))},Cf=Vd,Ef=_d,Df=Ud,Af=Qd,Ff=ef,Bf=tf,Of=lf,If=uf,jf=cf,kf=function(e){var t=e.__scopeMenu,r=e.children,a=e.open,i=void 0!==a&&a,l=e.onOpenChange,u=Bd(sf,t),c=Ed(t),s=ud(n(null),2),d=s[0],f=s[1],p=ud(n(null),2),g=p[0],v=p[1],h=Ll(l);return o((function(){return!1===u.open&&h(!1),function(){return h(!1)}}),[u.open,h]),m(Tc,c,m(Fd,{scope:t,open:i,onOpenChange:h,content:g,onContentChange:v},m(ff,{scope:t,contentId:Ju(),triggerId:Ju(),trigger:d,onTriggerChange:f},r)))},Nf=i((function(e,t){var n=Bd(pf,e.__scopeMenu),i=jd(pf,e.__scopeMenu),l=mf(pf,e.__scopeMenu),u=Gd(pf,e.__scopeMenu),c=r(null),s=u.pointerGraceTimerRef,d=u.onPointerGraceIntentChange,f={__scopeMenu:e.__scopeMenu},p=a((function(){c.current&&window.clearTimeout(c.current),c.current=null}),[]);return o((function(){return p}),[p]),o((function(){var e=s.current;return function(){window.clearTimeout(e),d(null)}}),[s,d]),m(kd,be({asChild:!0},f),m(Jd,be({id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":gf(n.open)},e,{ref:Fl(t,l.onTriggerChange),onClick:function(t){var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:El(e.onPointerMove,bf((function(t){u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout((function(){n.onOpenChange(!0),p()}),100))}))),onPointerLeave:El(e.onPointerLeave,bf((function(e){var t;p();var r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o,a=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===a,l=i?-5:5,c=r[i?"left":"right"],d=r[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:d,y:r.top},{x:d,y:r.bottom},{x:c,y:r.bottom}],side:a}),window.clearTimeout(s.current),s.current=window.setTimeout((function(){return u.onPointerGraceIntentChange(null)}),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}}))),onKeyDown:El(e.onKeyDown,(function(t){var r,o=""!==u.searchRef.current;e.disabled||o&&" "===t.key||pd[i.dir].includes(t.key)&&(n.onOpenChange(!0),null===(r=n.content)||void 0===r||r.focus(),t.preventDefault())}))})))})),Sf=i((function(e,t){var n=Td(Rd,e.__scopeMenu),o=e.forceMount,a=void 0===o?n.forceMount:o,i=ld(e,["forceMount"]),l=Bd(Rd,e.__scopeMenu),u=jd(Rd,e.__scopeMenu),c=mf("MenuSubContent",e.__scopeMenu),s=r(null),d=Bl(t,s);return m(bd.Provider,{scope:e.__scopeMenu},m(Zc,{present:a||l.open},m(bd.Slot,{scope:e.__scopeMenu},m(Zd,be({id:c.contentId,"aria-labelledby":c.triggerId},i,{ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:function(e){var t;u.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:function(e){return e.preventDefault()},onFocusOutside:El(e.onFocusOutside,(function(e){e.target!==c.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:El(e.onEscapeKeyDown,(function(e){u.onClose(),e.preventDefault()})),onKeyDown:El(e.onKeyDown,(function(e){var t,n=e.currentTarget.contains(e.target),r=gd[u.dir].includes(e.key);n&&r&&(l.onOpenChange(!1),null===(t=c.trigger)||void 0===t||t.focus(),e.preventDefault())}))})))))}));function Pf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tf(e,t,n[t])}))}return e}function Mf(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Lf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vf="DropdownMenu",Wf=Gf(Pl(Vf,[Cd]),2),zf=Wf[0];Wf[1];var Zf=Cd(),Xf=Gf(zf(Vf),2),_f=Xf[0],Hf=Xf[1],Yf=function(e){var t=e.__scopeDropdownMenu,n=e.children,o=e.dir,i=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.modal,s=void 0===c||c,d=Zf(t),f=r(null),p=Gf(Wl({prop:i,defaultProp:l,onChange:u}),2),g=p[0],v=void 0!==g&&g,h=p[1];return m(_f,{scope:t,triggerId:Ju(),triggerRef:f,contentId:Ju(),open:v,onOpenChange:h,onOpenToggle:a((function(){return h((function(e){return!e}))}),[h]),modal:s},m(yf,be({},d,{open:v,onOpenChange:h,dir:o,modal:s}),n))},Uf=i((function(e,t){var n=e.__scopeDropdownMenu,r=e.disabled,o=void 0!==r&&r,a=Lf(e,["__scopeDropdownMenu","disabled"]),i=Hf("DropdownMenuTrigger",n),l=Zf(n);return m(xf,be({asChild:!0},l),m(tu.button,be({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},a,{ref:Fl(t,i.triggerRef),onPointerDown:El(e.onPointerDown,(function(e){o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:El(e.onKeyDown,(function(e){o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Jf=function(e){var t=e.__scopeDropdownMenu,n=Lf(e,["__scopeDropdownMenu"]),r=Zf(t);return m(wf,be({},r,n))},Qf=i((function(e,t){var n=e.__scopeDropdownMenu,o=Lf(e,["__scopeDropdownMenu"]),a=Hf("DropdownMenuContent",n),i=Zf(n),l=r(!1);return m(Cf,be({id:a.contentId,"aria-labelledby":a.triggerId},i,o,{ref:t,onCloseAutoFocus:El(e.onCloseAutoFocus,(function(e){var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:El(e.onInteractOutside,(function(e){var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(l.current=!0)})),style:Mf(Rf({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))})),qf=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Ef,be({},o,r,{ref:t}))})),Kf=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Df,be({},o,r,{ref:t}))})),$f=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Af,be({},o,r,{ref:t}))})),em=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Ff,be({},o,r,{ref:t}))})),tm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Bf,be({},o,r,{ref:t}))})),nm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Of,be({},o,r,{ref:t}))})),rm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(If,be({},o,r,{ref:t}))})),om=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(jf,be({},o,r,{ref:t}))})),am=function(e){var t=e.__scopeDropdownMenu,n=e.children,r=e.open,o=e.onOpenChange,a=e.defaultOpen,i=Zf(t),l=Gf(Wl({prop:r,defaultProp:a,onChange:o}),2),u=l[0],c=void 0!==u&&u,s=l[1];return m(kf,be({},i,{open:c,onOpenChange:s}),n)},im=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Nf,be({},o,r,{ref:t}))})),lm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Sf,be({},o,r,{ref:t,style:Mf(Rf({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))})),um=function(e){var n=e.children,r=e.direction,o=t.useState(!0),a=o[0],i=o[1],l=t.useState(!1);l[0],l[1];var u=t.useState("pedro"),c=u[0],s=u[1],d={items:[{label:"New Tab",shortcut:"ctrl + T",disabled:!1},{label:"New Windows",shortcut:"ctrl + N",disabled:!1},{label:"New Private Window",shortcut:"⇧+ctrl+N",disabled:!0}],checkboxes:[{label:"Show Bookmarks",shortcut:"ctrl + B",disabled:!1},{label:"Show Something",shortcut:"ctrl + C",disabled:!1},{label:"Show that",shortcut:"ctrl + T",disabled:!1}]};return t.createElement(Yf,{dir:r},t.createElement(Uf,{asChild:!0},n),t.createElement(Jf,null,t.createElement(Qf,{className:"min-w-[220px] rounded bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",sideOffset:5},d.items.map((function(e,n){return t.createElement(Kf,{key:n,className:"group relative flex h-[25px] select-none items-center justify-between rounded-inner px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1 ",disabled:e.disabled},e.label,t.createElement("div",{className:" text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},e.shortcut))})),t.createElement(am,null,t.createElement(im,{className:" group relative flex h-[25px] select-none items-center rounded-inner justify-between flex-row px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[highlighted]:data-[state=open]:bg-violet-9 data-[state=open]:bg-violet-4 data-[disabled]:text-mauve-8 data-[highlighted]:data-[state=open]:text-violet-1 data-[highlighted]:text-violet-1 data-[state=open]:text-violet-11 ltr:pl-[25px] rtl:pl-[0px] "},"More Tools",t.createElement("div",{className:"ltr:ml-auto rtl:pr-[5px] ltr:pl-[0px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white rtl:mr-auto rtl:rotate-180 rtl:pl-[0px]"},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})))),t.createElement(Jf,null,t.createElement(lm,{className:"min-w-[220px] rounded-inner bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",sideOffset:2,alignOffset:-5},t.createElement(Kf,{className:"group relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Save Page As…"," ",t.createElement("div",{className:"ml-auto pl-[20px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},"⌘+S")),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Create Shortcut…"),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Name Window…"),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Developer Tools")))),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),d.checkboxes.map((function(e,n){return t.createElement($f,{key:n,className:"group relative flex h-[25px] select-none items-center justify-between rounded-inner px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",checked:a,onCheckedChange:i},t.createElement(nm,{className:"absolute inline-flex w-[25px] items-center justify-center ltr:left-0 rtl:right-0"},t.createElement("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em"},t.createElement("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))," "),e.label,t.createElement("div",{className:" text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},e.shortcut))})),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),t.createElement(qf,{className:"pl-[25px] text-xs leading-[25px] text-mauve-11"},"People"),t.createElement(em,{value:c,onValueChange:s},t.createElement(tm,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",value:"pedro"},t.createElement(nm,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center"},t.createElement("svg",{"aria-label":"Filled Dot",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},t.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:"currentColor"}))," "),"Pedro Duarte"),t.createElement(tm,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",value:"colm"},t.createElement(nm,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center"},t.createElement("svg",{"aria-label":"Filled Dot",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},t.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:"currentColor"}))," "),"Colm Tuite")),t.createElement(om,{className:"fill-white"}))))},cm=function(e){return t.createElement("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400"},e.withLogo?t.createElement("a",{href:e.onLogoClicked},t.createElement("div",{className:"cursor-pointer"},t.createElement("image",{href:e.logoURL,width:100,height:50}))):null,t.createElement("div",null,e.version),e.credits?e.credits:null)},sm=function(e){var n=e.orientation,r=void 0===n?"horizontal":n,o=N(e,["orientation"]);return t.createElement("div",{className:j({vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"}[r]," flex-wrap justify-start gap-4")},o.steps.map((function(e,n){return t.createElement("div",{key:n,className:"my-2 flex w-auto flex-row flex-wrap justify-start "},t.createElement("div",{className:"vertical"===r?"flex w-full flex-row items-center":n+1===o.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"},t.createElement("div",{className:"flex flex-row gap-2 "},t.createElement("div",{className:j("ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",n+1<=o.currentStep?"bg-buttonPrimary-500 text-white":"bg-buttonPrimary-200")},n+1<=o.currentStep?t.createElement("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"white","stroke-width":"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em"},t.createElement("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})):n+1),t.createElement("div",{className:"whitespace-nowrap"},e))))})))},dm=function(e){var n=e.variant,r=void 0===n?"default":n,o=N(e,["variant"]);return t.createElement("div",{onClick:o.handleClick,className:j("flex transition-all flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit",{full:"w-full",min:"w-fit",normal:"w-full max-w-[200px]"}[o.width],{plain:"",default:"border bg-card text-card-foreground shadow-sm",contained:"bg-layoutPrimary-500",outlined:"ring-2 w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white",dropshadow:"bg-white drop-shadow-md"}[r],o.handleClick?"cursor-pointer":"cursor-default",o.handleClick&&"dropshadow"===r?"hover:drop-shadow-lg":""),style:{backgroundColor:o.color?o.color:"contained"===r?"var(--layout-primary-500)":""}},o.icon&&t.createElement("div",{className:"mb-2"},o.icon," "),t.createElement("div",null,o.label),o.isLoading?t.createElement(M,null):t.createElement("div",{className:"text-2xl font-bold"},o.number),o.helperText?t.createElement("div",{className:"text-xs text-muted-foreground"},o.helperText):null)},fm=function(e){var r=e.tabs;e.language;var o=e.code,a=e.fileName,i=e.width,l=void 0===i?"full":i,u=n(0),c=u[0],s=u[1],d=n(0);d[0],d[1];var f=n(!1),m=f[0],p=f[1];return t.createElement("div",{className:j({full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"}[l],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base")}," ",r&&t.createElement("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white"},r.map((function(e,n){return t.createElement("div",{className:j(c===n?"dark:border-buttonPrimary-400 border-b-2 border-buttonPrimary-700":"bg-transparent")},t.createElement("div",{onClick:function(){return s(n)},className:j("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500")},e.title))}))),a&&t.createElement("div",{className:"flex flex-row gap-2 rounded-t p-2 pb-0 text-black bg-gray-100 dark:bg-gray-700 dark:text-white"},t.createElement("div",{className:j("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]")},a)),t.createElement("pre",null,t.createElement("code",{className:j("flex w-full flex-row items-start justify-between rounded bg-gray-200 p-2 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base")},t.createElement("div",{className:"flex min-h-[37.75px] w-full flex-col justify-center p-4 "},r?r[c].code:o),t.createElement("div",{className:"flex flex-row items-center gap-2 p-2"},t.createElement("div",{className:j("transition-all",m?"opacity-100":"opacity-0")},"Copied!"),t.createElement(Y,{variant:"outlined",color:"dark",onClick:function(){m||(p(!0),console.log("copy button clicked"),setTimeout((function(){p(!1)}),2e3)),navigator.clipboard.writeText(r?r[c].code:o)},margins:"none"},t.createElement("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em"},t.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),t.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})))))))},mm=function(){var e=n(""),r=e[0],o=e[1];return t.createElement("div",{className:"relative inline-block text-left"},t.createElement("span",{className:"rounded-md shadow-sm"},t.createElement("input",{type:"date",value:r,onChange:function(e){o(e.target.value)},className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})))},pm={exports:{}},gm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vm=Function.call.bind(Object.prototype.hasOwnProperty);function hm(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ym=function(){};if("production"!==process.env.NODE_ENV){var xm=gm,wm={},Cm=vm;ym=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function Em(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(Cm(e,a)){var i;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+bm(e[a])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[a](t,a,r,n,null,xm)}catch(e){i=e}if(i&&!hm(i,Error)&&ym((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+(void 0===i?"undefined":bm(i))+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),hm(i,Error)&&!(i.message in wm)){wm[i.message]=!0;var u=o?o():"";ym("Failed "+n+" type: "+i.message+(null!=u?u:""))}}}Em.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wm={})};var Dm=Em;function Am(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Fm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Bm=Tt.exports,Om=D,Im=gm,jm=vm,km=Dm,Nm=function(){};function Sm(){return null}"production"!==process.env.NODE_ENV&&(Nm=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var Pm=gm;function Tm(){}function Rm(){}Rm.resetWarningCache=Tm;if("production"!==process.env.NODE_ENV){var Mm=Tt.exports;pm.exports=function(e,t){var n=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},r=function(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""},o=function(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function a(a,i,l,u,c,s,d){if(u=u||m,s=s||l,d!==Im){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=u+":"+l;!n[p]&&o<3&&(Nm("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[p]=!0,o++)}}return null==i[l]?a?null===i[l]?new r("The "+c+" `"+s+"` is marked as required in `"+u+"`, but its value is `null`."):new r("The "+c+" `"+s+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(i,l,u,c,s)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i},a=function(e){return o((function(t,n,o,a,i,c){var s=t[n];if(l(s)!==e){var d=u(s);return new r("Invalid "+a+" `"+i+"` of type `"+d+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e})}return null}))},i=function(e,t,n,o,a){return new r((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")},l=function(e){var t=void 0===e?"undefined":Fm(e);return Array.isArray(e)?"array":Am(e,RegExp)?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||!("function"!=typeof Symbol||!Am(t,Symbol)))}(t,e)?"symbol":t},u=function(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(Am(e,Date))return"date";if(Am(e,RegExp))return"regexp"}return t},c=function(e){var t=u(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}},s=function(e){return e.constructor&&e.constructor.name?e.constructor.name:m},d="function"==typeof Symbol&&Symbol.iterator,f="@@iterator",m="<<anonymous>>",p={array:a("array"),bigint:a("bigint"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:o(Sm),arrayOf:function(e){return o((function(t,n,o,a,i){if("function"!=typeof e)return new r("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var c=l(u);return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an array.")}for(var s=0;s<u.length;s++){var d=e(u,s,o,a,i+"["+s+"]",Im);if(Am(d,Error))return d}return null}))},element:o((function(t,n,o,a,i){var u=t[n];if(!e(u)){var c=l(u);return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected a single ReactElement.")}return null})),elementType:o((function(e,t,n,o,a){var i=e[t];if(!Bm.isValidElementType(i)){var u=l(i);return new r("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null})),instanceOf:function(e){return o((function(t,n,o,a,i){if(!Am(t[n],e)){var l=e.name||m,u=s(t[n]);return new r("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected instance of `"+l+"`.")}return null}))},node:o((function(e,t,n,o,a){return g(e[t])?null:new r("Invalid "+o+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return o((function(t,n,o,a,i){if("function"!=typeof e)return new r("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=t[n],c=l(u);if("object"!==c)return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(jm(u,s)){var d=e(u,s,o,a,i+"."+s,Im);if(Am(d,Error))return d}return null}))},oneOf:function(e){return Array.isArray(e)?o((function(t,o,a,i,l){for(var c=t[o],s=0;s<e.length;s++)if(n(c,e[s]))return null;var d=JSON.stringify(e,(function(e,t){return"symbol"===u(t)?String(t):t}));return new r("Invalid "+i+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+d+".")})):("production"!==process.env.NODE_ENV&&Nm(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),Sm)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Nm("Invalid argument supplied to oneOfType, expected an instance of array."),Sm;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return Nm("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+c(n)+" at index "+t+"."),Sm}return o((function(t,n,o,a,i){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,o,a,i,Im);if(null==c)return null;c.data&&jm(c.data,"expectedType")&&l.push(c.data.expectedType)}var s=l.length>0?", expected one of type ["+l.join(", ")+"]":"";return new r("Invalid "+a+" `"+i+"` supplied to `"+o+"`"+s+".")}))},shape:function(e){return o((function(t,n,o,a,c){var s=t[n],d=l(s);if("object"!==d)return new r("Invalid "+a+" `"+c+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");for(var f in e){var m=e[f];if("function"!=typeof m)return i(o,a,c,f,u(m));var p=m(s,f,o,a,c+"."+f,Im);if(p)return p}return null}))},exact:function(e){return o((function(t,n,o,a,c){var s=t[n],d=l(s);if("object"!==d)return new r("Invalid "+a+" `"+c+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");var f=Om({},t[n],e);for(var m in f){var p=e[m];if(jm(e,m)&&"function"!=typeof p)return i(o,a,c,m,u(p));if(!p)return new r("Invalid "+a+" `"+c+"` key `"+m+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(s,m,o,a,c+"."+m,Im);if(g)return g}return null}))}};function g(t){switch(void 0===t?"undefined":Fm(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(d&&e[d]||e[f]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!g(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}return r.prototype=Error.prototype,p.checkPropTypes=km,p.resetWarningCache=km.resetWarningCache,p.PropTypes=p,p}(Mm.isElement,!0)}else pm.exports=function(){var e=function(e,t,n,r,o,a){if(a!==Pm){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}},t=function(){return e};e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Rm,resetWarningCache:Tm};return n.PropTypes=n,n}();var Lm=pm.exports,Gm=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Vm(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Gm.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Wm=[".DS_Store","Thumbs.db"];function zm(e){return"object"==typeof e&&null!==e}function Zm(e){return Ym(e.target.files).map((function(e){return Vm(e)}))}function Xm(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Vm(e)}))]}}))}))}function _m(e,t){return S(this,void 0,void 0,(function(){var n;return P(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=Ym(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Um))]):[3,2];case 1:return[2,Hm(Jm(r.sent()))];case 2:return[2,Hm(Ym(e.files).map((function(e){return Vm(e)})))]}}))}))}function Hm(e){return e.filter((function(e){return-1===Wm.indexOf(e.name)}))}function Ym(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Um(e){if("function"!=typeof e.webkitGetAsEntry)return Qm(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Km(t):Qm(e)}function Jm(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(T(arguments[t]));return e}(e,Array.isArray(t)?Jm(t):[t])}),[])}function Qm(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Vm(t);return Promise.resolve(n)}function qm(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return[2,e.isDirectory?Km(e):$m(e)]}))}))}function Km(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return S(a,void 0,void 0,(function(){var a,i,l;return P(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(qm)),r.push(l),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function $m(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Vm(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var ep=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0};function tp(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach((function(t){op(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function op(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ap(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ip(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lp=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},up=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},cp=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},sp={code:"too-many-files",message:"Too many files"};function dp(e,t){var n="application/x-moz-file"===e.type||ep(e,t);return[n,n?null:lp(t)]}function fp(e,t,n){if(mp(e.size))if(mp(t)&&mp(n)){if(e.size>n)return[!1,up(n)];if(e.size<t)return[!1,cp(t)]}else{if(mp(t)&&e.size<t)return[!1,cp(t)];if(mp(n)&&e.size>n)return[!1,up(n)]}return[!0,null]}function mp(e){return null!=e}function pp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function gp(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function vp(e){e.preventDefault()}function hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!pp(e)&&t&&t.apply(void 0,[e].concat(r)),pp(e)}))}}function bp(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return rp(rp({},e),{},op({},t,[]))}),{}):{}}]}var yp=["children"],xp=["open"],wp=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Cp=["refKey","onChange","onClick"];function Ep(e){return function(e){if(Array.isArray(e))return Fp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ap(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||Ap(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){if(e){if("string"==typeof e)return Fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fp(e,t):void 0}}function Fp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(n),!0).forEach((function(t){Ip(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var kp=i((function(e,n){var r=e.children,o=Pp(jp(e,yp)),a=o.open,i=jp(o,xp);return b(n,(function(){return{open:a}}),[a]),t.createElement(f,null,r(Op(Op({},i),{},{open:a})))}));kp.displayName="Dropzone";var Np={disabled:!1,getFilesFromEvent:function(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return zm(e)&&zm(e.dataTransfer)?[2,_m(e.dataTransfer,e.type)]:function(e){return zm(e)&&zm(e.target)}(e)?[2,Zm(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Xm(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};kp.defaultProps=Np,kp.propTypes={children:Lm.func,accept:Lm.oneOfType([Lm.string,Lm.arrayOf(Lm.string)]),multiple:Lm.bool,preventDropOnDocument:Lm.bool,noClick:Lm.bool,noKeyboard:Lm.bool,noDrag:Lm.bool,noDragEventsBubbling:Lm.bool,minSize:Lm.number,maxSize:Lm.number,maxFiles:Lm.number,disabled:Lm.bool,getFilesFromEvent:Lm.func,onFileDialogCancel:Lm.func,onFileDialogOpen:Lm.func,useFsAccessApi:Lm.bool,onDragEnter:Lm.func,onDragLeave:Lm.func,onDragOver:Lm.func,onDrop:Lm.func,onDropAccepted:Lm.func,onDropRejected:Lm.func,validator:Lm.func};var Sp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Pp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Op(Op({},Np),e),n=t.accept,i=t.disabled,l=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,d=t.multiple,f=t.maxFiles,m=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,C=t.useFsAccessApi,E=t.preventDropOnDocument,D=t.noClick,A=t.noKeyboard,F=t.noDrag,B=t.noDragEventsBubbling,O=t.validator,I=s((function(){return"function"==typeof w?w:Rp}),[w]),j=s((function(){return"function"==typeof x?x:Rp}),[x]),k=r(null),N=r(null),S=Dp(h(Tp,Sp),2),P=S[0],T=S[1],R=P.isFocused,M=P.isFileDialogActive,L=P.draggedFiles,G=r("undefined"!=typeof window&&window.isSecureContext&&C&&"showOpenFilePicker"in window),V=function(){!G.current&&M&&setTimeout((function(){N.current&&(N.current.files.length||(T({type:"closeDialog"}),j()))}),300)};o((function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}}),[N,M,j,G]);var W=r([]),z=function(e){k.current&&k.current.contains(e.target)||(e.preventDefault(),W.current=[])};o((function(){return E&&(document.addEventListener("dragover",vp,!1),document.addEventListener("drop",z,!1)),function(){E&&(document.removeEventListener("dragover",vp),document.removeEventListener("drop",z))}}),[k,E]);var Z=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Ep(W.current),[e.target]),gp(e)&&Promise.resolve(l(e)).then((function(t){pp(e)&&!B||(T({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),m&&m(e))}))}),[l,m,B]),X=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=gp(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&g&&g(e),!1}),[g,B]),_=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return k.current&&k.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(T({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),gp(e)&&p&&p(e))}),[k,p,B]),H=a((function(e,t){var r=[],o=[];e.forEach((function(e){var t=Dp(dp(e,n),2),a=t[0],i=t[1],l=Dp(fp(e,c,u),2),s=l[0],d=l[1],f=O?O(e):null;if(a&&s&&!f)r.push(e);else{var m=[i,d];f&&(m=m.concat(f)),o.push({file:e,errors:m.filter((function(e){return e}))})}})),(!d&&r.length>1||d&&f>=1&&r.length>f)&&(r.forEach((function(e){o.push({file:e,errors:[sp]})})),r.splice(0)),T({acceptedFiles:r,fileRejections:o,type:"setFiles"}),v&&v(r,o,t),o.length>0&&y&&y(o,t),r.length>0&&b&&b(r,t)}),[T,d,n,c,u,f,v,b,y,O]),Y=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],gp(e)&&Promise.resolve(l(e)).then((function(t){pp(e)&&!B||H(t,e)})),T({type:"reset"})}),[l,H,B]),U=a((function(){if(G.current){T({type:"openDialog"}),I();var e={multiple:d,types:bp(n)};window.showOpenFilePicker(e).then((function(e){return l(e)})).then((function(e){H(e,null),T({type:"closeDialog"})})).catch((function(e){!function(e){return tp(e,DOMException)&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return tp(e,DOMException)&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(G.current=!1,N.current&&(N.current.value=null,N.current.click())):(j(e),T({type:"closeDialog"}))}))}else N.current&&(T({type:"openDialog"}),I(),N.current.value=null,N.current.click())}),[T,I,j,C,H,n,d]),J=a((function(e){k.current&&k.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),U()))}),[k,U]),Q=a((function(){T({type:"focus"})}),[]),q=a((function(){T({type:"blur"})}),[]),K=a((function(){D||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?U():setTimeout(U,0))}),[D,U]),$=function(e){return i?null:e},ee=function(e){return A?null:$(e)},te=function(e){return F?null:$(e)},ne=function(e){B&&e.stopPropagation()},re=s((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,l=e.onBlur,u=e.onClick,c=e.onDragEnter,s=e.onDragOver,d=e.onDragLeave,f=e.onDrop,m=jp(e,wp);return Op(Op(Ip({onKeyDown:ee(hp(o,J)),onFocus:ee(hp(a,Q)),onBlur:ee(hp(l,q)),onClick:$(hp(u,K)),onDragEnter:te(hp(c,Z)),onDragOver:te(hp(s,X)),onDragLeave:te(hp(d,_)),onDrop:te(hp(f,Y)),role:"string"==typeof r&&""!==r?r:"button"},n,k),i||A?{}:{tabIndex:0}),m)}}),[k,J,Q,q,K,Z,X,_,Y,A,F,i]),oe=a((function(e){e.stopPropagation()}),[]),ae=s((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=jp(e,Cp);return Op(Op({},Ip({accept:n,multiple:d,type:"file",style:{display:"none"},onChange:$(hp(o,Y)),onClick:$(hp(a,oe)),tabIndex:-1},r,N)),i)}}),[N,n,d,Y,i]),ie=L.length,le=ie>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=ap(dp(e,n),1)[0],a=ap(fp(e,r,o),1)[0];return t&&a}))}({files:L,accept:n,minSize:c,maxSize:u,multiple:d,maxFiles:f}),ue=ie>0&&!le;return Op(Op({},P),{},{isDragAccept:le,isDragReject:ue,isFocused:R&&!i,getRootProps:re,getInputProps:ae,rootRef:k,inputRef:N,open:$(U)})}function Tp(e,t){switch(t.type){case"focus":return Op(Op({},e),{},{isFocused:!0});case"blur":return Op(Op({},e),{},{isFocused:!1});case"openDialog":return Op(Op({},Sp),{},{isFileDialogActive:!0});case"closeDialog":return Op(Op({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Op(Op({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Op(Op({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Op({},Sp);default:return e}}function Rp(){}var Mp=function(e){var r,a,i=e.texts,l=e.files,u=e.setFiles;e.setDeletedFiles,e.onAcceptedFiles,e.errorMessages;var c=e.maxFiles,s=e.accept,d=e.showPreview,f=e.onDeleteFile;e.onClearFiles;var m=e.maxSize,p=e.label,g=n(0),v=g[0],h=g[1],b=n(0),y=b[0],x=b[1],w=Pp({multiple:!0,accept:s,maxSize:m,maxFiles:c,onDrop:function(e){u(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),C=w.getRootProps,E=w.getInputProps,D=w.fileRejections,A=w.acceptedFiles,F=w.isDragActive;o((function(){return function(){null==l||l.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[l]),o((function(){u(A)}),[A,v]);o((function(){if(m>0){var e=Math.floor(Math.log(m)/Math.log(1024));x(parseFloat((m/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[m]);var B=D.map((function(e,n){switch(e.errors[0].code){case"file-too-large":return t.createElement(ul,{text:e.file.name,title:i.fileTooLarge,severity:"error"});case"too-many-files":return t.createElement(ul,{text:e.file.name,title:i.tooManyFiles,severity:"error"});case"file-invalid-type":return t.createElement(ul,{text:e.file.name,title:i.invalidFileType,severity:"error"});default:return t.createElement(ul,{text:e.file.name,title:e.errors[0].code,severity:"error"})}})),O=null==l?void 0:l.map((function(e,n){return t.createElement("div",{className:"relative rounded"},t.createElement("button",{onClick:function(t){t.stopPropagation(),A.splice(A.indexOf(e),1),h(Math.random),f(e)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal"},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),t.createElement("span",{className:"sr-only"},"Close modal")),t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(e.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg",key:e.name}))}));return t.createElement("div",null,p&&t.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},p),t.createElement("div",{className:j("flex flex-col justify-center rounded border border-dashed border-black transition-all hover:bg-gray-100 ",F?"bg-layoutPrimary-500":"bg-white")},t.createElement("div",C({}),t.createElement("p",E()),t.createElement("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center"},t.createElement("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1.5em",width:"1.5em"},t.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),t.createElement("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),t.createElement("path",{d:"M3 3l0 .01"}),t.createElement("path",{d:"M7 3l0 .01"}),t.createElement("path",{d:"M11 3l0 .01"}),t.createElement("path",{d:"M15 3l0 .01"}),t.createElement("path",{d:"M3 7l0 .01"}),t.createElement("path",{d:"M3 11l0 .01"}),t.createElement("path",{d:"M3 15l0 .01"})),t.createElement(i.clickHereToUpload,null)),t.createElement("div",{className:"pt-2 text-center text-xs"},i.acceptedFileTypes," ",s.split(",")),t.createElement("div",{className:"pb-2 pt-1 text-center text-xs"},i.maxFileSize," ",y)),A.length>0&&t.createElement("div",{className:"flex justify-center rounded-lg p-2 "},t.createElement(Y,{onClick:function(){A.length=0,u([])}},"Clear All")),A.length>0&&O&&d?t.createElement("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2"},O):null,t.createElement("div",{className:"px-4"},(null===(a=null===(r=D[0])||void 0===r?void 0:r.errors[0])||void 0===a?void 0:a.code)&&B)))},Lp=function(e){return t.createElement("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4"},t.createElement("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},t.createElement("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}))),t.createElement("div",{className:"p-4"},e.children))},Gp=function(e){var r=e.subsections,o=n(null),a=o[0],i=o[1];return t.createElement("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 "},r.map((function(e,n){return t.createElement("div",{key:n,className:"my-0"},e.title&&t.createElement("div",{className:"my-4 font-bold"},e.title),e.sections.map((function(e,n){return t.createElement(Vp,{key:n,onItemClick:function(){return i(e.value)},selected:a,value:e.value,icon:e.icon,title:e.label,chip:"Upgrade"})})))})))},Vp=function(e){var n=e.title,r=e.value,o=e.icon,a=e.chip,i=e.selected,l=e.onItemClick;return t.createElement("div",{onClick:l,className:j("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",i===r?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-300")},t.createElement("div",{className:"flex w-full flex-row items-center justify-start gap-2"},o," ",t.createElement("span",null,n)),a&&t.createElement(K,{label:"Upgrade",size:"normal"})," ")},Wp=function(e){var n;return t.createElement("div",{className:"flex w-full flex-col gap-0 border p-4"},t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("span",{className:"bg-white-200"},e.title),e.tooltip&&t.createElement(L,{content:e.tooltip,position:"right-top"},t.createElement("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})))),t.createElement("div",{className:"bg-white-100 flex flex-row"},t.createElement("div",null,e.currentUsage),t.createElement("div",null," (",e.percent,"%)")),t.createElement("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700"},t.createElement("div",{className:"h-2.5 rounded-full bg-buttonPrimary-500",style:{width:"".concat(null!==(n=e.percent)&&void 0!==n?n:0,"%")}})))},zp=function(e){var r,o=e.direction,a=void 0===o?"ltr":o,i=e.texts,l=void 0===i?{total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"}:i,u=N(e,["direction","texts"]),c=function(e){return t.createElement("div",{className:j(e.start?"items-start":"items-end","flex w-full flex-col")},t.createElement("div",{className:" text-sm text-gray-500"},e.label),t.createElement("div",{className:" whitespace-nowrap"},e.text))},s=n(!1),d=s[0],f=s[1];return t.createElement("div",{className:"flex w-full flex-col"},t.createElement("div",{className:"flex w-full flex-row items-center gap-2 border p-4 "},u.invoiceActions&&t.createElement("div",{className:j("transition-all hover:cursor-pointer ","rtl"===a?"rotate-180":"",d?"rotate-90":""),onClick:function(){return f(!d)}},t.createElement("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em"},t.createElement("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"}))),t.createElement("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:function(){return f(!d)}},t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("span",{className:"bg-white-200"},u.invoiceTitle),u.status&&t.createElement(K,{size:"small",label:u.status})),t.createElement("div",{className:"font-sm text-gray-400"},u.invoiceSubtitle)),t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("div",{className:"whitespace-nowrap"},u.total),t.createElement(cl,{direction:a,position:"rtl"===a?"bottom-right":"bottom-left",menuItems:u.invoiceActions},t.createElement("div",{className:" p-2"},t.createElement("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})))))),d&&t.createElement("div",{className:j(d?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all")},t.createElement("div",{className:"border-b pb-2"},u.invoiceDescription),null===(r=u.products)||void 0===r?void 0:r.map((function(e,n){return t.createElement("div",{key:n,className:"flex flex-row border-b pb-4"},t.createElement("div",{className:"w-full"},t.createElement(c,{start:!0,label:l.plan,text:e.plan})),t.createElement("div",{className:"flex w-full flex-row gap-20 "},t.createElement(c,{label:l.usage,text:"".concat(e.usage," SAR")}),t.createElement(c,{label:l.price,text:"".concat(e.price," SAR")}),t.createElement(c,{label:l.amount,text:"".concat(e.amount," SAR")})))})),t.createElement("div",{className:"flex flex-row justify-between"},t.createElement("div",null,l.total)," ",t.createElement("div",null,u.total))))},Zp=function(e){var a=e.position,i=void 0===a?"bottom-right":a,l=N(e,["position"]),u=n(!1),c=u[0],s=u[1],d=n(!1),f=d[0],m=d[1],p=n(null),g=p[0],v=p[1],h=n(5),b=h[0],y=h[1],x=r(null);o((function(){var e=setTimeout((function(){y(b-1)}),1e3);return function(){clearTimeout(e)}}),[b]);var w=function(){s(!0),setTimeout((function(){x.current.removeChild(x.current.children[0])}),200)};return t.createElement("div",{ref:x,className:j("fixed bottom-4",{"bottom-right":"right-4","bottom-left":"left-4"}[i])},t.createElement("div",{className:j("relative flex w-full max-w-sm flex-col gap-2 rounded bg-white p-4 shadow-md transition-all",c?"opacity-0":"opacity-100")},t.createElement("div",{className:"absolute left-2 top-2 p-1.5 text-sm"},l.title),t.createElement("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){return w()}},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))),t.createElement("div",{className:"mt-8"},l.question),t.createElement("div",{className:"flex w-full flex-row gap-1 rounded"},l.options.map((function(e){return t.createElement("span",{onClick:function(){l.onOptionClicked(e),v(e),m(!0);var t=setTimeout((function(){s(!0)}),4800);setTimeout((function(){x.current.removeChild(x.current.children[0]),clearTimeout(t)}),5300)},className:j("w-full cursor-pointer rounded border p-4 text-center transition-all ",g===e?"bg-gray-500 text-white":"bg-white hover:bg-gray-100")},e)}))),l.texts&&t.createElement("div",{className:" flex flex-row justify-between text-xs"},t.createElement("span",null,l.texts.least),t.createElement("span",null,l.texts.most)),f&&t.createElement("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all"},t.createElement("span",{className:"font-bold text-white"},"Thank you for your answer. This box will disappear in"," "+b," seconds"),t.createElement("div",{className:"flex flex-row gap-2"},t.createElement(Y,{onClick:function(){return w()}},"Close")))))},Xp=function(e){return t.createElement("svg",{onClick:e.onClick||function(){},className:j("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200","right"===e.direction?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))},_p=function(e){var r=n(e.index||0),a=r[0],i=r[1];return o((function(){console.log("INDEX CHANGED TO: ".concat(a))}),[a]),t.createElement("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md"},t.createElement(Xp,{direction:"left",disabled:0==a,onClick:function(){0!=a&&i(a-1)}}),t.createElement("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 "},t.createElement("div",null,e.items[a].icon),t.createElement("div",{className:"absolute bottom-1 mb-0 mt-2 select-none"},e.items[a].label)),t.createElement(Xp,{direction:"right",disabled:a==e.items.length-1,onClick:function(){a!=e.items.length-1&&i(a+1)}}))},Hp=function(e){return t.createElement("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown},e.name)},Yp={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},Up="",Jp=function(e){var a=n({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),i=a[0],l=a[1],u=r(null),c=r(i),s=function(e){c.current=e,l(e)},d=function(e){for(var t=0;e=e.previousSibling;t++);return t},f=function(e,t){var n=Array.from(e.childNodes).slice(0,t).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0);return n},m=function(e){var t=Array.from(u.current.childNodes).slice(0,e).map((function(e){var t=Array.from(e.childNodes);return f(e,t.length)})).reduce((function(e,t){return e+t}),0);return t},p=function(e){var t=window.getSelection(),n=Array.from(u.current.childNodes);n=n.filter((function(e){return!["#text","BR"].includes(e.nodeName)}));var r=t[e],o=r.parentNode,a=0,i="DIV"==r.nodeName&&Array.from(r.classList).includes("line");if("SPAN"==o.nodeName){var l=d(o);a+=f(o.parentNode,l);var c=d(o.parentNode);a+=m(c)}if(Array.from(o.classList).includes("line")){if("#text"==r.nodeName){l=d(r);a+=f(o,l)}c=d(o);a+=m(c)}if(i){c=d(r);a=m(c)}return o!=u.current||i?a:0},g=function(){if(document.activeElement!=u.current)return[0,0];var e=window.getSelection(),t=p("anchorNode"),n=p("focusNode");return[t+e.anchorOffset,n+e.focusOffset].sort((function(e,t){return e-t}))};o((function(){setTimeout((function(){var e=c.current.revert,t=e[0],n=e[1];if(0!=t||0!=n){for(var r=null,o=null,a=0,i=Array.from(u.current.getElementsByTagName("span")),l=0;l<i.length;l++){var s=i[l],d=s.textContent.length+a;null==r&&t>=a&&t<=d&&(r=i[l],t-=a),null==o&&n>a&&n<=d&&(o=i[l],n-=a),a+=s.textContent.length}var f=document.createRange(),m=window.getSelection();f.setStart(r.firstChild,t),f.setEnd(o.firstChild,n),m.removeAllRanges(),m.addRange(f)}}),1)}),[i.revert]);var v=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},h=function(e){return e.sort((function(e,t){return e-t}))[0]},b=function(e){return e.sort((function(e,t){return t-e}))[0]},y=function(e,t){return e.type!=t.type?-1:t.start<=e.start&&t.finish>=e.finish?0:0==function(e,t){for(var n=new Set,r=0,o=t;r<o.length;r++){var a=o[r];e.has(a)&&n.add(a)}return n}(new Set(v(e.start-1,e.finish-1)),new Set(v(t.start-1,t.finish-1))).size?2:1},x=function(e){var t=c.current.stylings.slice(),n=g(),r=n[0],o=n[1];if(r!=o){for(var a,l={type:e,start:r,finish:o},u=[],d=0;d<t.length;d++){var f=t[d],m=y(l,f);-1!=m&&u.push([m,d,f])}u.find((function(e){var t=e[0];return e[1],e[2],1==t}))?a=function(e,t,n,r){var o=e.filter((function(e){var t=e[0];return e[1],e[2],1==t})).map((function(e){return e[0],[e[1],e[2]]}));o.push([-1,n]);var a=o.map((function(e){return e[0],e[1].start})).sort((function(e,t){return e-t}))[0],i=o.map((function(e){return e[0],e[1].finish})).sort((function(e,t){return t-e}))[0],l=o.map((function(e){return e[0]}));return t=t.filter((function(e,t){return!l.includes(t)})),t.push({type:r,start:a,finish:i}),t}(u,t,l,e):u.find((function(e){var t=e[0];return e[1],e[2],0==t}))?a=function(e,t,n,r){var o=e.find((function(e){var t=e[0];return e[1],e[2],0==t}));o[0];var a=o[1],i=o[2];t=t.filter((function(e,t){return t!=a}));var l=[{type:r,start:h([i.start,n.start]),finish:b([i.start,n.start])},{type:r,start:h([i.finish,n.finish]),finish:b([i.finish,n.finish])}];return l=l.filter((function(e){return e.start!=e.finish})),R(R([],t,!0),l,!0)}(u,t,l,e):(u.find((function(e){var t=e[0];return e[1],e[2],2==t}))||0==u.length)&&(a=R(R([],t,!0),[l],!1)),s(k(k({},i),{stylings:a,revert:[r,o]}))}},w=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var o=e.filter((function(e){var o=e.start,a=e.finish;return t>=o+n&&t<a+r}));return o},C=function(e,t,n){var r=e.filter((function(e){var r=e.start,o=e.finish;return o>t&&r<n||r<n&&o>t}));return r=r.map((function(e){return k(k({},e),{start:b([e.start,t])-t,finish:h([e.finish,n])-t})}))},E=function(e,t,n,r){return void 0===r&&(r=!0),e=e.map((function(e){return e.start>=t&&e.finish>t?(console.log("succeeding"),k(k({},e),{start:e.start+n,finish:e.finish+n})):e.start<t&&e.finish>t?r?k(k({},e),{finish:e.finish+n}):function(e,t,n){return void 0===n&&(n=0),[k(k({},e),{start:e.start,finish:t}),k(k({},e),{start:t+n,finish:e.finish+n})]}(e,t,n):e.finish==t&&r?k(k({},e),{finish:e.finish+n}):e})),e.flat()},D=function(e,t,n){var r=Math.abs(n-t);return(e=e.map((function(e){return e.start>=t&&e.start>=n&&e.finish>=t&&e.finish>=n?k(k({},e),{start:e.start-r,finish:e.finish-r}):e.start>=t&&e.finish<=n?null:e.start<=t&&e.finish>=n?k(k({},e),{finish:e.finish-r}):e.start>t&&e.start<n?k(k({},e),{start:b([e.start,n])-r,finish:e.finish-r}):e.finish>t&&e.finish<n?k(k({},e),{finish:h([e.finish,t])}):e}))).flat().filter((function(e){return e}))},A=function(e,t,n){c.current.events.drop.is&&e.length!=c.current.content.length||(console.log("Changed at: ".concat([t,n])),setTimeout((function(){var r=e.length-c.current.content.length,o=c.current.stylings;o=c.current.events.paste.is?function(e,t,n,r){var o=c.current.events.paste.length,a=n-o;return e=D(e,a,a+o-t),(e=E(e,a,o,!1)).concat(c.current.clipboard.map((function(e){return k(k({},e),{start:e.start+a,finish:e.finish+a})})))}(o,r,t):c.current.events.drop.is?function(e,t,n,r){console.log("Dropped at: ".concat([n,r]));var o=c.current.events.drop.text.length,a=c.current.events.drop.drag,i=a[0],l=a[1],u=n-i,s=C(e,i,l),d=i,f=l;if(u>0&&(e=E(e,m=r,o,!1),e=D(e,d,f)),u<0){var m=n;e=D(e,d,f),e=E(e,m,o,!1)}return e.concat(s.map((function(e){return k(k({},e),{start:e.start+n,finish:e.finish+n})})))}(o,0,t,n):function(e,t,n,r){return 0==t?e:e=t>0?E(e,n-t,t):D(e,n,r+Math.abs(t))}(o,r,t,n),s(k(k({},c.current),{content:e,stylings:o,revert:[t,n],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}))}),0))};o((function(){var e=function(){var e=c.current.content,t=R([],c.current.stylings,!0),n=[],r=e.split("").map((function(e,t){return e==Up?t:null})).filter((function(e){return e}));r.unshift(0),r.push(e.length);for(var o=function(o){var a=r[o],i=r[o+1],l=e.slice(a,i),u=C(t,a,i),c=[],s=u.map((function(e){return[e.start,e.finish]})).flat().sort((function(e,t){return e-t}));s=s.filter((function(e,t){return s.indexOf(e)==t})),0!=s[0]&&s.unshift(0);var d=l.length;s[s.length-1]!=d&&s.push(d);for(var f=0;f<s.length-1;f++){var m=s[f],p=s[f+1];c.push({content:l.substring(m,p),types:w(u,m).map((function(e){return e.type}))})}n.push(c)},a=0;a<r.length-1;a++)o(a);return n}().map((function(e,t){return'<div class="line" data-line-index="'.concat(t,'">').concat(e.map((function(e,t){return'<span class="'.concat(e.types.map((function(e){return Yp[e].css})).join(" "),'" data-child-index="').concat(t,'">').concat(e.content,"</span>")})).join(""),"</div>")})).join("");u.current.innerHTML=e}),[i.content,i.stylings,i.revert]);return t.createElement("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md"},t.createElement("div",{className:j("flex w-full flex-row justify-start p-2")},Object.entries(Yp).map((function(e){var n=e[0],r=e[1];return t.createElement(Hp,{name:r.content,key:"property-".concat(n),onMouseDown:function(e){e.preventDefault(),x(n)}})}))),t.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),t.createElement("div",{className:"selection-ignore box-border w-full p-2"},t.createElement("div",{ref:u,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:function(){switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":case"auto":return"ltr"}}()},onPaste:function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain");t=(t=t.replaceAll("\n","")).replaceAll("\r",""),document.execCommand("insertHTML",!1,t),s(k(k({},c.current),{events:k(k({},c.current.events),{paste:{is:!0,length:t.length}})}))},onInput:function(e){var t=g(),n=t[0],r=t[1],o=e.target.textContent,a=c.current.content,i=e.nativeEvent.inputType;if("insertParagraph"==i){console.log("Inserted new line at [".concat(n,", ").concat(r,"]"));var l=o.split("");l.splice(n,0,Up),0!=n||a.startsWith(Up)||(l.splice(n,0,Up),n+=1,r+=1),o=l.join(""),n+=1,r+=1}else{var u=window.getSelection(),s=u.anchorNode,f=u.focusNode,m=e.nativeEvent.data;if(s.parentNode==f.parentNode&&"SPAN"==s.parentNode.nodeName&&u.anchorOffset<=1&&u.focusOffset<=1&&"insertText"==i){var p=d(s.parentNode.parentNode),v=a;a.startsWith(Up)&&(v=v.slice(1));var h=v.split(Up)[p];console.log(v.split(Up)),(h=h.split("")).splice(0,0,m),h=h.join("");var b=v.split(Up);b[p]=h,o=b.join(Up),a.startsWith(Up)&&(o=Up+o),n+=1,r+=1}}A(o,n,r)},onCopy:function(){var e=g(),t=e[0],n=e[1],r=c.current.stylings.slice();r=C(r,t,n),s(k(k({},i),{clipboard:r}))},onDrop:function(e){var t=e.dataTransfer.getData("text");""!=t.trim()&&s(k(k({},c.current),{events:k(k({},c.current.events),{drop:{is:!0,text:t,drag:g()}})}))}})),t.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),t.createElement("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:function(){(e.onSubmit||function(){})(i.content,i.stylings)}},"Submit"))};
|
|
9
|
+
*/"production"!==process.env.NODE_ENV&&function(){var e=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var n=e.type;switch(n){case s:case d:case a:case l:case i:case m:return n;default:var p=n&&n.$$typeof;switch(p){case c:case f:case v:case g:case u:return p;default:return t}}case o:return t}}},t=function(t){return e(t)===d},n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119,w=s,C=d,E=c,D=u,A=r,F=f,B=a,O=v,I=g,j=o,k=l,N=i,S=m,P=!1;on.AsyncMode=w,on.ConcurrentMode=C,on.ContextConsumer=E,on.ContextProvider=D,on.Element=A,on.ForwardRef=F,on.Fragment=B,on.Lazy=O,on.Memo=I,on.Portal=j,on.Profiler=k,on.StrictMode=N,on.Suspense=S,on.isAsyncMode=function(n){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(n)||e(n)===s},on.isConcurrentMode=t,on.isContextConsumer=function(t){return e(t)===c},on.isContextProvider=function(t){return e(t)===u},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},on.isForwardRef=function(t){return e(t)===f},on.isFragment=function(t){return e(t)===a},on.isLazy=function(t){return e(t)===v},on.isMemo=function(t){return e(t)===g},on.isPortal=function(t){return e(t)===o},on.isProfiler=function(t){return e(t)===l},on.isStrictMode=function(t){return e(t)===i},on.isSuspense=function(t){return e(t)===m},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===h)},on.typeOf=e}(),"production"===process.env.NODE_ENV?Tt.exports=Rt:Tt.exports=on;var an=Tt.exports,ln={};ln[an.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ln[an.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var un="undefined"!=typeof document;function cn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var sn=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===un&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dn=function(e,t,n){sn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);un||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!un&&0!==o.length)return o}};var fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",vn=/[A-Z]|^ms/g,hn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bn=function(e){return 45===e.charCodeAt(1)},yn=function(e){return null!=e&&"boolean"!=typeof e},xn=mn((function(e){return bn(e)?e:e.replace(vn,"-$&").toLowerCase()})),wn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(hn,(function(e,t,n){return kn={name:t,styles:n,next:kn},t}))}return 1===fn[e]||bn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Cn=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,En=["normal","none","initial","inherit","unset"],Dn=wn,An=/^-ms-/,Fn=/-(.)/g,Bn={};wn=function(e,t){if("content"===e&&("string"!=typeof t||-1===En.indexOf(t)&&!Cn.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Dn(e,t);return""===n||bn(e)||-1===e.indexOf("-")||void 0!==Bn[e]||(Bn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(An,"ms-").replace(Fn,(function(e,t){return t.toUpperCase()}))+"?")),n}}var On="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function In(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(On);return n}switch(void 0===n?"undefined":(c=n)&&"undefined"!=typeof Symbol&&c.constructor===Symbol?"symbol":typeof c){case"boolean":return"";case"object":if(1===n.anim)return kn={name:n.name,styles:n.styles,next:kn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kn={name:r.name,styles:r.styles,next:kn},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=In(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":yn(i)&&(r+=xn(a)+":"+wn(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(On);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=In(e,t,i);switch(a){case"animation":case"animationName":r+=xn(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(gn),r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)yn(i[u])&&(r+=xn(a)+":"+wn(a,i[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=kn,i=n(e);return kn=a,In(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],u=n.replace(hn,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}}var c;if(null==t)return n;var s=t[n];return void 0!==s?s:n}var jn,kn,Nn=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(jn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Sn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";kn=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=In(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(pn),o+=i[0]);for(var l=1;l<e.length;l++)o+=In(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(pn),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(jn,(function(e){return a=e,""}))),Nn.lastIndex=0;for(var u,c="";null!==(u=Nn.exec(o));)c+="-"+u[1];var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:s,styles:o,map:a,next:kn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:s,styles:o,next:kn}},Pn="undefined"!=typeof document,Tn=function(e){return e()},Rn=!!e.useInsertionEffect&&e.useInsertionEffect,Mn=Pn&&Rn||Tn,Ln=Rn||e.useLayoutEffect,Gn="undefined"!=typeof document,Vn={}.hasOwnProperty,Wn=e.createContext("undefined"!=typeof HTMLElement?Pt({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionCacheContext"),Wn.Provider;var zn=function(e){return i((function(t,n){var r=l(Wn);return e(t,r,n)}))};Gn||(zn=function(t){return function(n){var r=l(Wn);return null===r?(r=Pt({key:"css"}),e.createElement(Wn.Provider,{value:r},t(n,r))):t(n,r)}});var Zn=e.createContext({});"production"!==process.env.NODE_ENV&&(Zn.displayName="EmotionThemeContext");var Xn=function(e){var t=e.split(".");return t[t.length-1]},_n=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Xn(t[1]):void 0},Hn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Yn=function(e){return e.replace(/\$/g,"-")},Un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Qn=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)Vn.call(t,r)&&(n[r]=t[r]);if(n[Un]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=_n(t[n]);if(r){if(Hn.has(r))break;if(/^[A-Z]/.test(r))return Yn(r)}}}((new Error).stack);o&&(n[Jn]=o)}return n},qn=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;sn(n,r,o);var a=Mn((function(){return dn(n,r,o)}));if(!Gn&&void 0!==a){for(var i,l=r.name,u=r.next;void 0!==u;)l+=" "+u.name,u=u.next;return e.createElement("style",((i={})["data-emotion"]=n.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=n.sheet.nonce,i))}return null},Kn=zn((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var a=t[Un],i=[o],l="";"string"==typeof t.className?l=cn(n.registered,i,t.className):null!=t.className&&(l=t.className+" ");var u=Sn(i,void 0,e.useContext(Zn));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var c=t[Jn];c&&(u=Sn([u,"label:"+c+";"]))}l+=n.key+"-"+u.name;var s={};for(var d in t)!Vn.call(t,d)||"css"===d||d===Un||"production"!==process.env.NODE_ENV&&d===Jn||(s[d]=t[d]);return s.ref=r,s.className=l,e.createElement(e.Fragment,null,e.createElement(qn,{cache:n,serialized:u,isStringTag:"string"==typeof a}),e.createElement(a,s))}));"production"!==process.env.NODE_ENV&&(Kn.displayName="EmotionCssPropInternal");var $n=Kn;var er=function(t,n){var r=arguments;if(null==n||!Vn.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=$n,a[1]=Qn(t,n);for(var i=2;i<o;i++)a[i]=r[i];return e.createElement.apply(null,a)},tr=!1,nr=zn((function(t,n){"production"===process.env.NODE_ENV||tr||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),tr=!0);var r=t.styles,o=Sn([r],void 0,e.useContext(Zn));if(!Gn){for(var a,i=o.name,l=o.styles,u=o.next;void 0!==u;)i+=" "+u.name,l+=u.styles,u=u.next;var c=!0===n.compat,s=n.insert("",{name:i,styles:l},n.sheet,c);return c?null:e.createElement("style",((a={})["data-emotion"]=n.key+"-global "+i,a.dangerouslySetInnerHTML={__html:s},a.nonce=n.sheet.nonce,a))}var d=e.useRef();return Ln((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),d.current=[t,r],function(){t.flush()}}),[n]),Ln((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&dn(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sn(t)}"production"!==process.env.NODE_ENV&&(nr.displayName="EmotionGlobal");var or=function e(t){for(var n,r=t.length,o=0,a="";o<r;o++){var i=t[o];if(null!=i){var l=void 0;switch(void 0===i?"undefined":(n=i)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n){case"boolean":break;case"object":if(Array.isArray(i))l=e(i);else for(var u in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="",i)i[u]&&u&&(l&&(l+=" "),l+=u);break;default:l=i}l&&(a&&(a+=" "),a+=l)}}return a};var ar=function(t){var n,r=t.cache,o=t.serializedArr,a=Mn((function(){for(var e="",t=0;t<o.length;t++){var n=dn(r,o[t],!1);Gn||void 0===n||(e+=n)}if(!Gn)return e}));return Gn||0===a.length?null:e.createElement("style",((n={})["data-emotion"]=r.key+" "+o.map((function(e){return e.name})).join(" "),n.dangerouslySetInnerHTML={__html:a},n.nonce=r.sheet.nonce,n))},ir=zn((function(t,n){var r=!1,o=[],a=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=Sn(t,n.registered);return o.push(i),sn(n,i,!1),n.key+"-"+i.name},i={css:a,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e,t,n){var r=[],o=cn(e,r,n);return r.length<2?n:o+t(r)}(n.registered,a,or(t))},theme:e.useContext(Zn)},l=t.children(i);return r=!0,e.createElement(e.Fragment,null,e.createElement(ar,{cache:n,serializedArr:o}),l)}));if("production"!==process.env.NODE_ENV&&(ir.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var lr="undefined"!=typeof document,ur="undefined"!=typeof jest||"undefined"!=typeof vi;if(lr&&!ur){var cr="undefined"!=typeof globalThis?globalThis:lr?window:global,sr="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";cr[sr]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),cr[sr]=!0}}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dr(e,t,n[t])}))}return e}function mr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var pr=["top","right","bottom","left"],gr=Math.min,vr=Math.max,hr=Math.round,br=Math.floor,yr=function(e){return{x:e,y:e}},xr={left:"right",right:"left",bottom:"top",top:"bottom"},wr={start:"end",end:"start"};function Cr(e,t,n){return vr(e,gr(t,n))}function Er(e,t){return"function"==typeof e?e(t):e}function Dr(e){return e.split("-")[0]}function Ar(e){return e.split("-")[1]}function Fr(e){return"x"===e?"y":"x"}function Br(e){return"y"===e?"height":"width"}function Or(e){return["top","bottom"].includes(Dr(e))?"y":"x"}function Ir(e){return Fr(Or(e))}function jr(e){return e.replace(/start|end/g,(function(e){return wr[e]}))}function kr(e){return e.replace(/left|right|bottom|top/g,(function(e){return xr[e]}))}function Nr(e){return"number"!=typeof e?function(e){return fr({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Sr(e){return mr(fr({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Rr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Tr(a,r,o,i,l,"next",e)}function l(e){Tr(a,r,o,i,l,"throw",e)}i(void 0)}))}}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mr(e,t,n[t])}))}return e}function Gr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wr(e){return function(e){if(Array.isArray(e))return Pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zr(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function Zr(e,t,n){var r,o=e.reference,a=e.floating,i=Or(t),l=Ir(t),u=Br(l),c=Dr(t),s="y"===i,d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,m=o[u]/2-a[u]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-a.width,y:f};break;default:r={x:o.x,y:o.y}}switch(Ar(t)){case"start":r[l]-=m*(n&&s?-1:1);break;case"end":r[l]+=m*(n&&s?-1:1)}return r}var Xr=function(){var e=Rr((function(e,t,n){var r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O;return zr(this,(function(I){switch(I.label){case 0:return r=n.placement,o=void 0===r?"bottom":r,a=n.strategy,i=void 0===a?"absolute":a,l=n.middleware,u=void 0===l?[]:l,c=n.platform,s=u.filter(Boolean),[4,null==c.isRTL?void 0:c.isRTL(t)];case 1:return d=I.sent(),[4,c.getElementRects({reference:e,floating:t,strategy:i})];case 2:f=I.sent(),m=Zr(f,o,d),p=m.x,g=m.y,v=o,h={},b=0,y=0,I.label=3;case 3:return y<s.length?(x=s[y],w=x.name,[4,(0,x.fn)({x:p,y:g,initialPlacement:o,placement:v,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}})]):[3,11];case 4:return C=I.sent(),E=C.x,D=C.y,A=C.data,F=C.reset,p=null!=E?E:p,g=null!=D?D:g,h=Gr(Lr({},h),Mr({},w,Lr({},h[w],A))),F&&b<=50?(b++,"object"!=typeof F?[3,9]:(F.placement&&(v=F.placement),F.rects?!0!==F.rects?[3,6]:[4,c.getElementRects({reference:e,floating:t,strategy:i})]:[3,8])):[3,10];case 5:return B=I.sent(),[3,7];case 6:B=F.rects,I.label=7;case 7:f=B,I.label=8;case 8:O=Zr(f,v,d),p=O.x,g=O.y,I.label=9;case 9:return y=-1,[3,10];case 10:return y++,[3,3];case 11:return[2,{x:p,y:g,placement:v,strategy:i,middlewareData:h}]}}))}));return function(t,n,r){return e.apply(this,arguments)}}();function _r(e,t){return Hr.apply(this,arguments)}function Hr(){return Hr=Rr((function(e,t){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N;return zr(this,(function(S){switch(S.label){case 0:return void 0===t&&(t={}),r=e.x,o=e.y,a=e.platform,i=e.rects,l=e.elements,u=e.strategy,c=Er(t,e),s=c.boundary,d=void 0===s?"clippingAncestors":s,f=c.rootBoundary,m=void 0===f?"viewport":f,p=c.elementContext,g=void 0===p?"floating":p,v=c.altBoundary,h=void 0!==v&&v,b=c.padding,y=Nr(void 0===b?0:b),x="floating"===g?"reference":"floating",w=l[h?x:g],E=a.getClippingRect,D={},[4,null==a.isElement?void 0:a.isElement(w)];case 1:return null==(n=S.sent())||n?(A=w,[3,5]):[3,2];case 2:return(F=w.contextElement)?[3,4]:[4,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)];case 3:F=S.sent(),S.label=4;case 4:A=F,S.label=5;case 5:return[4,E.apply(a,[(D.element=A,D.boundary=d,D.rootBoundary=m,D.strategy=u,D)])];case 6:return C=Sr.apply(void 0,[S.sent()]),B="floating"===g?Gr(Lr({},i.floating),{x:r,y:o}):i.reference,[4,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)];case 7:return O=S.sent(),[4,null==a.isElement?void 0:a.isElement(O)];case 8:return S.sent()?[4,null==a.getScale?void 0:a.getScale(O)]:[3,10];case 9:return j=S.sent()||{x:1,y:1},[3,11];case 10:j={x:1,y:1},S.label=11;case 11:return I=j,a.convertOffsetParentRelativeRectToViewportRelativeRect?[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:B,offsetParent:O,strategy:u})]:[3,13];case 12:return N=S.sent(),[3,14];case 13:N=B,S.label=14;case 14:return k=Sr.apply(void 0,[N]),[2,{top:(C.top-k.top+y.top)/I.y,bottom:(k.bottom-C.bottom+y.bottom)/I.y,left:(C.left-k.left+y.left)/I.x,right:(k.right-C.right+y.right)/I.x}]}}))})),Hr.apply(this,arguments)}var Yr=function(e){return{name:"arrow",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N,S,P,T,R,M;return zr(this,(function(L){switch(L.label){case 0:return n=t.x,r=t.y,o=t.placement,a=t.rects,i=t.platform,l=t.elements,u=Er(e,t)||{},c=u.element,s=u.padding,d=void 0===s?0:s,null==c?[2,{}]:(f=Nr(d),m={x:n,y:r},p=Ir(o),g=Br(p),[4,i.getDimensions(c)]);case 1:return v=L.sent(),b=(h="y"===p)?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-m[p]-a.floating[g],C=m[p]-a.reference[p],[4,null==i.getOffsetParent?void 0:i.getOffsetParent(c)];case 2:return E=L.sent(),D=E?E[x]:0,(A=!D)?[3,4]:[4,null==i.isElement?void 0:i.isElement(E)];case 3:A=!L.sent(),L.label=4;case 4:return A&&(D=l.floating[x]||a.floating[g]),F=w/2-C/2,B=D/2-v[g]/2-1,O=gr(f[b],B),I=gr(f[y],B),j=O,k=D-v[g]-I,N=D/2-v[g]/2+F,S=Cr(j,N,k),P=null!=Ar(o)&&N!=S&&a.reference[g]/2-(N<j?O:I)-v[g]/2<0,T=P?N<j?j-N:k-N:0,[2,(M={},Mr(M,p,m[p]-T),Mr(M,"data",(R={},Mr(R,p,S),Mr(R,"centerOffset",N-S+T),R)),M)]}}))}))()}}},Ur=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j,k,N,S,P,T,R,M,L;return zr(this,(function(G){switch(G.label){case 0:return r=t.placement,o=t.middlewareData,a=t.rects,i=t.initialPlacement,l=t.platform,u=t.elements,c=Er(e,t),s=c.mainAxis,d=void 0===s||s,f=c.crossAxis,m=void 0===f||f,p=c.fallbackPlacements,g=c.fallbackStrategy,v=void 0===g?"bestFit":g,h=c.fallbackAxisSideDirection,b=void 0===h?"none":h,y=c.flipAlignment,x=void 0===y||y,w=Vr(c,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),C=Dr(r),E=Dr(i)===i,[4,null==l.isRTL?void 0:l.isRTL(u.floating)];case 1:return D=G.sent(),A=p||(E||!x?[kr(i)]:function(e){var t=kr(e);return[jr(e),t,jr(t)]}(i)),p||"none"===b||(F=A).push.apply(F,Wr(function(e,t,n,r){var o=Ar(e),a=function(e,t,n){var r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(Dr(e),"start"===n,r);return o&&(a=a.map((function(e){return e+"-"+o})),t&&(a=a.concat(a.map(jr)))),a}(i,x,b,D))),B=[i].concat(Wr(A)),[4,_r(t,w)];case 2:if(O=G.sent(),I=[],j=(null==(n=o.flip)?void 0:n.overflows)||[],d&&I.push(O[C]),m&&(k=function(e,t,n){void 0===n&&(n=!1);var r=Ar(e),o=Ir(e),a=Br(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=kr(i)),[i,kr(i)]}(r,a,D),I.push(O[k[0]],O[k[1]])),j=Wr(j).concat([{placement:r,overflows:I}]),!I.every((function(e){return e<=0}))){if(P=((null==(N=o.flip)?void 0:N.index)||0)+1,T=B[P])return[2,{data:{index:P,overflows:j},reset:{placement:T}}];if(R=null==(S=j.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:S.placement,!R)switch(v){case"bestFit":L=null==(M=j.map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:M[0],L&&(R=L);break;case"initialPlacement":R=i}if(r!==R)return[2,{reset:{placement:R}}]}return[2,{}]}}))}))()}}};function Jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return pr.some((function(t){return e[t]>=0}))}var qr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s;return zr(this,(function(d){switch(d.label){case 0:switch(n=t.rects,r=Er(e,t),o=r.strategy,a=void 0===o?"referenceHidden":o,i=Vr(r,["strategy"]),a){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,_r(t,Gr(Lr({},i),{elementContext:"reference"}))];case 2:return l=d.sent(),[2,{data:{referenceHiddenOffsets:u=Jr(l,n.reference),referenceHidden:Qr(u)}}];case 3:return[4,_r(t,Gr(Lr({},i),{altBoundary:!0}))];case 4:return c=d.sent(),[2,{data:{escapedOffsets:s=Jr(c,n.floating),escaped:Qr(s)}}];case 5:return[2,{}];case 6:return[2]}}))}))()}}};function Kr(e,t){return $r.apply(this,arguments)}function $r(){return $r=Rr((function(e,t){var n,r,o,a,i,l,u,c,s,d,f,m,p,g;return zr(this,(function(v){switch(v.label){case 0:return n=e.placement,r=e.platform,o=e.elements,[4,null==r.isRTL?void 0:r.isRTL(o.floating)];case 1:return a=v.sent(),i=Dr(n),l=Ar(n),u="y"===Or(n),c=["left","top"].includes(i)?-1:1,s=a&&u?-1:1,d=Er(t,e),f="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:Lr({mainAxis:0,crossAxis:0,alignmentAxis:null},d),m=f.mainAxis,p=f.crossAxis,g=f.alignmentAxis,l&&"number"==typeof g&&(p="end"===l?-1*g:g),[2,u?{x:p*s,y:m*c}:{x:m*c,y:p*s}]}}))})),$r.apply(this,arguments)}var eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return Rr((function(){var n,r,o;return zr(this,(function(a){switch(a.label){case 0:return n=t.x,r=t.y,[4,Kr(t,e)];case 1:return o=a.sent(),[2,{x:n+o.x,y:r+o.y,data:o}]}}))}))()}}},to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F;return zr(this,(function(B){switch(B.label){case 0:return n=t.x,r=t.y,o=t.placement,a=Er(e,t),i=a.mainAxis,l=void 0===i||i,u=a.crossAxis,c=void 0!==u&&u,s=a.limiter,d=void 0===s?{fn:function(e){return{x:e.x,y:e.y}}}:s,f=Vr(a,["mainAxis","crossAxis","limiter"]),m={x:n,y:r},[4,_r(t,f)];case 1:return p=B.sent(),g=Or(Dr(o)),v=Fr(g),h=m[v],b=m[g],l&&(y="y"===v?"bottom":"right",x=h+p["y"===v?"top":"left"],w=h-p[y],h=Cr(x,h,w)),c&&(C="y"===g?"bottom":"right",E=b+p["y"===g?"top":"left"],D=b-p[C],b=Cr(E,b,D)),F=d.fn(Gr(Lr({},t),(Mr(A={},v,h),Mr(A,g,b),A))),[2,Gr(Lr({},F),{data:{x:F.x-n,y:F.y-r}})]}}))}))()}}},no=function(e){return void 0===e&&(e={}),{options:e,fn:function(t){var n,r=t.x,o=t.y,a=t.placement,i=t.rects,l=t.middlewareData,u=Er(e,t),c=u.offset,s=void 0===c?0:c,d=u.mainAxis,f=void 0===d||d,m=u.crossAxis,p=void 0===m||m,g={x:r,y:o},v=Or(a),h=Fr(v),b=g[h],y=g[v],x=Er(s,t),w="number"==typeof x?{mainAxis:x,crossAxis:0}:Lr({mainAxis:0,crossAxis:0},x);if(f){var C="y"===h?"height":"width",E=i.reference[h]-i.floating[C]+w.mainAxis,D=i.reference[h]+i.reference[C]-w.mainAxis;b<E?b=E:b>D&&(b=D)}if(p){var A,F,B="y"===h?"width":"height",O=["top","left"].includes(Dr(a)),I=i.reference[v]-i.floating[B]+(O&&(null==(A=l.offset)?void 0:A[v])||0)+(O?0:w.crossAxis),j=i.reference[v]+i.reference[B]+(O?0:(null==(F=l.offset)?void 0:F[v])||0)-(O?w.crossAxis:0);y<I?y=I:y>j&&(y=j)}return Mr(n={},h,b),Mr(n,v,y),n}}},ro=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return Rr((function(){var n,r,o,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C,E,D,A,F,B,O,I,j;return zr(this,(function(k){switch(k.label){case 0:return n=t.placement,r=t.rects,o=t.platform,a=t.elements,i=Er(e,t),l=i.apply,u=void 0===l?function(){}:l,c=Vr(i,["apply"]),[4,_r(t,c)];case 1:return s=k.sent(),d=Dr(n),f=Ar(n),m="y"===Or(n),p=r.floating,g=p.width,v=p.height,"top"!==d&&"bottom"!==d?[3,3]:(h=d,[4,null==o.isRTL?void 0:o.isRTL(a.floating)]);case 2:return b=f===(k.sent()?"start":"end")?"left":"right",[3,4];case 3:b=d,h="end"===f?"top":"bottom",k.label=4;case 4:return y=v-s[h],x=g-s[b],w=!t.middlewareData.shift,C=y,E=x,m?(D=g-s.left-s.right,E=f||w?gr(x,D):D):(A=v-s.top-s.bottom,C=f||w?gr(y,A):A),w&&!f&&(F=vr(s.left,0),B=vr(s.right,0),O=vr(s.top,0),I=vr(s.bottom,0),m?E=g-2*(0!==F||0!==B?F+B:vr(s.left,s.right)):C=v-2*(0!==O||0!==I?O+I:vr(s.top,s.bottom))),[4,u(Gr(Lr({},t),{availableWidth:E,availableHeight:C}))];case 5:return k.sent(),[4,o.getDimensions(a.floating)];case 6:return j=k.sent(),g!==j.width||v!==j.height?[2,{reset:{rects:!0}}]:[2,{}]}}))}))()}}};function oo(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ao(e){return uo(e)?(e.nodeName||"").toLowerCase():"#document"}function io(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function lo(e){var t;return null==(t=(uo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uo(e){return oo(e,Node)||oo(e,io(e).Node)}function co(e){return oo(e,Element)||oo(e,io(e).Element)}function so(e){return oo(e,HTMLElement)||oo(e,io(e).HTMLElement)}function fo(e){return"undefined"!=typeof ShadowRoot&&(oo(e,ShadowRoot)||oo(e,io(e).ShadowRoot))}function mo(e){var t=bo(e),n=t.overflow,r=t.overflowX,o=t.overflowY,a=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(a)}function po(e){return["table","td","th"].includes(ao(e))}function go(e){var t=vo(),n=bo(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((function(e){return(n.willChange||"").includes(e)}))||["paint","layout","strict","content"].some((function(e){return(n.contain||"").includes(e)}))}function vo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ho(e){return["html","body","#document"].includes(ao(e))}function bo(e){return io(e).getComputedStyle(e)}function yo(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xo(e){if("html"===ao(e))return e;var t=e.assignedSlot||e.parentNode||fo(e)&&e.host||lo(e);return fo(t)?t.host:t}function wo(e){var t=xo(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:so(t)&&mo(t)?t:wo(t)}function Co(e,t){var n;void 0===t&&(t=[]);var r=wo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=io(r);return o?t.concat(a,a.visualViewport||[],mo(r)?r:[]):t.concat(r,Co(r))}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Do(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ao(e,t,n[t])}))}return e}function Bo(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||jo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Io(e){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jo(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}function ko(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function No(e){var t=bo(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=so(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=hr(n)!==a||hr(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function So(e){return co(e)?e:e.contextElement}function Po(e){var t=So(e);if(!so(t))return yr(1);var n=t.getBoundingClientRect(),r=No(t),o=r.width,a=r.height,i=r.$,l=(i?hr(n.width):n.width)/o,u=(i?hr(n.height):n.height)/a;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}var To=yr(0);function Ro(e){var t=io(e);return vo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:To}function Mo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=So(e),i=yr(1);t&&(r?co(r)&&(i=Po(r)):i=Po(e));var l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==io(e))&&t}(a,n,r)?Ro(a):yr(0),u=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,s=o.width/i.x,d=o.height/i.y;if(a)for(var f=io(a),m=r&&co(r)?io(r):r,p=f.frameElement;p&&r&&m!==f;){var g=Po(p),v=p.getBoundingClientRect(),h=bo(p),b=v.left+(p.clientLeft+parseFloat(h.paddingLeft))*g.x,y=v.top+(p.clientTop+parseFloat(h.paddingTop))*g.y;u*=g.x,c*=g.y,s*=g.x,d*=g.y,u+=b,c+=y,p=io(p).frameElement}return Sr({width:s,height:d,x:u,y:c})}function Lo(e){return Mo(lo(e)).left+yo(e).scrollLeft}function Go(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=io(e),r=lo(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var c=vo();(!c||c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}(e,n);else if("document"===t)r=function(e){var t=lo(e),n=yo(e),r=e.ownerDocument.body,o=vr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+Lo(e),l=-n.scrollTop;return"rtl"===bo(r).direction&&(i+=vr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(lo(e));else if(co(t))r=function(e,t){var n=Mo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=so(e)?Po(e):yr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{var o=Ro(e);r=Bo(Fo({},t),{x:t.x-o.x,y:t.y-o.y})}return Sr(r)}function Vo(e,t){var n=xo(e);return!(n===t||!co(n)||ho(n))&&("fixed"===bo(n).position||Vo(n,t))}function Wo(e,t,n){var r=so(t),o=lo(t),a="fixed"===n,i=Mo(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=yr(0);if(r||!r&&!a)if(("body"!==ao(t)||mo(o))&&(l=yo(t)),r){var c=Mo(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=Lo(o));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function zo(e,t){return so(e)&&"fixed"!==bo(e).position?t?t(e):e.offsetParent:null}function Zo(e,t){var n=io(e);if(!so(e))return n;for(var r=zo(e,t);r&&po(r)&&"static"===bo(r).position;)r=zo(r,t);return r&&("html"===ao(r)||"body"===ao(r)&&"static"===bo(r).position&&!go(r))?n:r||function(e){for(var t=xo(e);so(t)&&!ho(t);){if(go(t))return t;t=xo(t)}return null}(e)||n}var Xo=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Do(a,r,o,i,l,"next",e)}function l(e){Do(a,r,o,i,l,"throw",e)}i(void 0)}))}}((function(e){var t,n,r,o,a,i,l,u;return ko(this,(function(c){switch(c.label){case 0:return t=e.reference,n=e.floating,r=e.strategy,o=this.getOffsetParent||Zo,a=this.getDimensions,i={},l=[t],[4,o(n)];case 1:return i.reference=Wo.apply(void 0,l.concat([c.sent(),r])),u=[{x:0,y:0}],[4,a(n)];case 2:return[2,(i.floating=Fo.apply(void 0,u.concat([c.sent()])),i)]}}))}));return function(t){return e.apply(this,arguments)}}();var _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,o=so(n),a=lo(n);if(n===a)return t;var i={scrollLeft:0,scrollTop:0},l=yr(1),u=yr(0);if((o||!o&&"fixed"!==r)&&(("body"!==ao(n)||mo(a))&&(i=yo(n)),so(n))){var c=Mo(n);l=Po(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}},getDocumentElement:lo,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,a="clippingAncestors"===n?function(e,t){var n=t.get(e);if(n)return n;for(var r=Co(e).filter((function(e){return co(e)&&"body"!==ao(e)})),o=null,a="fixed"===bo(e).position,i=a?xo(e):e;co(i)&&!ho(i);){var l=bo(i),u=go(i);u||"fixed"!==l.position||(o=null),(a?!u&&!o:!u&&"static"===l.position&&o&&["absolute","fixed"].includes(o.position)||mo(i)&&!u&&Vo(e,i))?r=r.filter((function(e){return e!==i})):o=l,i=xo(i)}return t.set(e,r),r}(t,this._c):[].concat(n),i=Io(a).concat([r]),l=i[0],u=i.reduce((function(e,n){var r=Go(t,n,o);return e.top=vr(r.top,e.top),e.right=gr(r.right,e.right),e.bottom=gr(r.bottom,e.bottom),e.left=vr(r.left,e.left),e}),Go(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:Zo,getElementRects:Xo,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return No(e)},getScale:Po,isElement:co,isRTL:function(e){return"rtl"===bo(e).direction}};function Ho(e,t,n,r){void 0===r&&(r={});var o=r.ancestorScroll,a=void 0===o||o,i=r.ancestorResize,l=void 0===i||i,u=r.elementResize,c=void 0===u?"function"==typeof ResizeObserver:u,s=r.layoutShift,d=void 0===s?"function"==typeof IntersectionObserver:s,f=r.animationFrame,m=void 0!==f&&f,p=So(e),g=a||l?Io(p?Co(p):[]).concat(Io(Co(t))):[];g.forEach((function(e){a&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));var v,h,b,y,x,w,C,E=p&&d?(h=n,y=function(){clearTimeout(b),x&&x.disconnect(),x=null},x=null,w=lo(v=p),function e(t,n){void 0===t&&(t=!1),void 0===n&&(n=1),y();var r=v.getBoundingClientRect(),o=r.left,a=r.top,i=r.width,l=r.height;if(t||h(),i&&l){var u={rootMargin:-br(a)+"px "+-br(w.clientWidth-(o+i))+"px "+-br(w.clientHeight-(a+l))+"px "+-br(o)+"px",threshold:vr(0,gr(1,n))||1},c=!0;try{x=new IntersectionObserver(s,Bo(Fo({},u),{root:w.ownerDocument}))}catch(e){x=new IntersectionObserver(s,u)}x.observe(v)}function s(t){var r=t[0].intersectionRatio;if(r!==n){if(!c)return e();r?e(!1,r):b=setTimeout((function(){e(!1,1e-7)}),100)}c=!1}}(!0),y):null,D=-1,A=null;c&&(A=new ResizeObserver((function(e){var r=Oo(e,1)[0];r&&r.target===p&&A&&(A.unobserve(t),cancelAnimationFrame(D),D=requestAnimationFrame((function(){A&&A.observe(t)}))),n()})),p&&!m&&A.observe(p),A.observe(t));var F=m?Mo(e):null;return m&&function t(){var r=Mo(e);!F||r.x===F.x&&r.y===F.y&&r.width===F.width&&r.height===F.height||n();F=r,C=requestAnimationFrame(t)}(),n(),function(){g.forEach((function(e){a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),E&&E(),A&&A.disconnect(),A=null,m&&cancelAnimationFrame(C)}}var Yo=function(e,t,n){var r=new Map,o=Fo({platform:_o},n),a=Bo(Fo({},o.platform),{_c:r});return Xr(e,t,Bo(Fo({},o),{platform:a}))},Uo="undefined"!=typeof document?u:o,Jo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qo=function(){};function qo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ko(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(qo(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var $o=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===le(e)&&null!==e?[e]:[];var t},ea=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,de({},ge(e,Jo))},ta=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function na(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ra(e){return na(e)?window.pageYOffset:e.scrollTop}function oa(e,t){na(e)?window.scrollTo(0,t):e.scrollTop=t}function aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo,o=ra(e),a=t-o,i=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);oa(e,l),i<n?window.requestAnimationFrame(t):r(e)}()}function ia(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?oa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&oa(e,Math.max(t.offsetTop-o,0))}function la(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ua=!1,ca={get passive(){return ua=!0}},sa="undefined"!=typeof window?window:{};sa.addEventListener&&sa.removeEventListener&&(sa.addEventListener("p",Qo,ca),sa.removeEventListener("p",Qo,!1));var da=ua;function fa(e){return null!=e}function ma(e,t,n){return e?t:n}var pa=["children","innerProps"],ga=["children","innerProps"];function va(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var s,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),m=f.bottom,p=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect().top,h=i?window.innerHeight:na(s=u)?window.innerHeight:s.clientHeight,b=ra(u),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=v-x,C=h-g,E=w+b,D=d-b-g,A=m-h+b+y,F=b+g-x,B=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(D>=p&&!i)return a&&aa(u,A,B),{placement:"bottom",maxHeight:t};if(!i&&D>=r||i&&C>=r)return a&&aa(u,A,B),{placement:"bottom",maxHeight:i?C-y:D-y};if("auto"===o||i){var O=t,I=i?w:E;return I>=r&&(O=Math.min(I-y-l,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return a&&oa(u,A),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(E>=p&&!i)return a&&aa(u,F,B),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&w>=r){var j=t;return(!i&&E>=r||i&&w>=r)&&(j=i?w-x:E-x),a&&aa(u,F,B),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var ha,ba=function(e){return"auto"===e?"bottom":e},ya=c(null),xa=function(e){var t=e.children,o=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,u=e.menuPosition,c=e.menuShouldScrollIntoView,s=e.theme,d=(l(ya)||{}).setPortalPlacement,f=r(null),m=pe(n(a),2),p=m[0],g=m[1],v=pe(n(null),2),h=v[0],b=v[1],y=s.spacing.controlHeight;return Uo((function(){var e=f.current;if(e){var t="fixed"===u,n=va({maxHeight:a,menuEl:e,minHeight:o,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:y});g(n.maxHeight),b(n.placement),null==d||d(n.placement)}}),[a,i,u,c,o,d,y]),t({ref:f,placerProps:de(de({},e),{},{placement:h||ba(i),maxHeight:p})})},wa=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return er("div",be({},ta(e,"menu",{menu:!0}),{ref:n},r),t)},Ca=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return de({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Ea=Ca,Da=Ca,Aa=["size"],Fa=["innerProps","isRtl","size"];var Ba,Oa,Ia="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ja=function(e){var t=e.size,n=ge(e,Aa);return er("svg",be({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ia},n))},ka=function(e){return er(ja,be({size:20},e),er("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"}))},Na=function(e){return er(ja,be({size:20},e),er("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"}))},Sa=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Pa=Sa,Ta=Sa,Ra=function(){var e=rr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ha||(Ba=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Oa||(Oa=Ba.slice(0)),ha=Object.freeze(Object.defineProperties(Ba,{raw:{value:Object.freeze(Oa)}})))),Ma=function(e){var t=e.delay,n=e.offset;return er("span",{css:rr({animation:"".concat(Ra," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},La=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return er("div",be({ref:o},ta(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a),t)},Ga=["data"],Va=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,s=e.selectProps;return er("div",be({},ta(e,"group",{group:!0}),l),er(a,be({},i,{selectProps:s,theme:c,getStyles:r,getClassNames:o,cx:n}),u),er("div",null,t))},Wa=["innerRef","isDisabled","isHidden","inputClassName"],za={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Za={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"},za)},Xa=function(e){return de({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},za)},_a=function(e){var t=e.cx,n=e.value,r=ea(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,l=r.inputClassName,u=ge(r,Wa);return er("div",be({},ta(e,"input",{"input-container":!0}),{"data-value":n||""}),er("input",be({className:t({input:!0},l),ref:o,style:Xa(i),disabled:a},u)))},Ha=function(e){var t=e.children,n=e.innerProps;return er("div",n,t)};var Ya=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,l=e.selectProps,u=n.Container,c=n.Label,s=n.Remove;return er(u,{data:r,innerProps:de(de({},ta(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},er(c,{data:r,innerProps:de({},ta(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),er(s,{data:r,innerProps:de(de({},ta(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:l}))},Ua={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||er(ka,null))},Control:La,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||er(Na,null))},DownChevron:Na,CrossIcon:ka,Group:Va,GroupHeading:function(e){var t=ea(e);t.data;var n=ge(t,Ga);return er("div",be({},ta(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return er("span",be({},t,ta(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:_a,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=ge(e,Fa);return er("div",be({},ta(de(de({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),er(Ma,{delay:0,offset:n}),er(Ma,{delay:160,offset:!0}),er(Ma,{delay:320,offset:!n}))},Menu:wa,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return er("div",be({},ta(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,o=e.children,i=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=r(null),f=r(null),m=pe(n(ba(u)),2),p=m[0],g=m[1],v=s((function(){return{setPortalPlacement:g}}),[]),h=pe(n(null),2),b=h[0],y=h[1],x=a((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===c?0:window.pageYOffset,n=e[p]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||y({offset:n,rect:e})}}),[i,c,p,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Uo((function(){x()}),[x]);var w=a((function(){"function"==typeof f.current&&(f.current(),f.current=null),i&&d.current&&(f.current=Ho(i,d.current,x,{elementResize:"ResizeObserver"in window}))}),[i,x]);Uo((function(){w()}),[w]);var E=a((function(e){d.current=e,w()}),[w]);if(!t&&"fixed"!==c||!b)return null;var D=er("div",be({ref:E},ta(de(de({},e),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),l),o);return er(ya.Provider,{value:v},t?C(D,t):D)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=ge(e,ga);return er("div",be({},ta(de(de({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=ge(e,pa);return er("div",be({},ta(de(de({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Ya,MultiValueContainer:Ha,MultiValueLabel:Ha,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return er("div",be({role:"button"},n),t||er(ka,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return er("div",be({},ta(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return er("div",be({},ta(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return er("div",be({},ta(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return er("div",be({},ta(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return er("div",be({},ta(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ja=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Qa(e,t){return e===t||!(!Ja(e)||!Ja(t))}function qa(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Qa(e[n],t[n]))return!1;return!0}for(var Ka="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},$a=function(e){return er("span",be({css:Ka},e))},ei={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(c(i,n),".");if("menu"===t){var s=l?" disabled":"",d="".concat(u?"selected":"focused").concat(s);return"option ".concat(a," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ti=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,l=e.selectProps,u=e.id,c=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,p=l.isMulti,g=l.isOptionDisabled,v=l.isSearchable,h=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,x=l.tabSelectsValue,w=l["aria-label"],C=l["aria-live"],E=s((function(){return de(de({},ei),c||{})}),[c]),D=s((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,u=t.value,c=a||r||(e=u,Array.isArray(e)?null:e),s=c?d(c):"",f=o||l||void 0,m=f?f.map(d):[],p=de({isDisabled:c&&g(c,i),label:s,labels:m},t);n=E.onChange(p)}return n}),[t,E,g,i,d]),A=s((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&E.onFocus){var l={focused:t,label:d(t),isDisabled:g(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=E.onFocus(l)}return e}),[n,r,d,g,E,o,i]),F=s((function(){var e="";if(h&&b.length&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:m,resultsMessage:t})}return e}),[o,m,h,E,b,y]),B=s((function(){var e="";if(E.guidance){var t=r?"value":h?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:n&&g(n,i),isMulti:p,isSearchable:v,tabSelectsValue:x})}return e}),[w,n,r,p,g,v,h,E,i,x]),O="".concat(A," ").concat(F," ").concat(B),I=er(f,null,er("span",{id:"aria-selection"},D),er("span",{id:"aria-context"},O)),j="initial-input-focus"===(null==t?void 0:t.action);return er(f,null,er($a,{id:u},j&&I),er($a,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},a&&!j&&I))},ni=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ri=new RegExp("["+ni.map((function(e){return e.letters})).join("")+"]","g"),oi={},ai=0;ai<ni.length;ai++)for(var ii=ni[ai],li=0;li<ii.letters.length;li++)oi[ii.letters[li]]=ii.base;var ui=function(e){return e.replace(ri,(function(e){return oi[e]}))},ci=function(e,t){var n=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a};void 0===t&&(t=qa);var r=null;return n.clear=function(){r=null},n}(ui),si=function(e){return e.replace(/^\s+|\s+$/g,"")},di=function(e){return"".concat(e.label," ").concat(e.value)},fi=["innerRef"];function mi(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=pe(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=pe(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(ge(e,fi),"onExited","in","enter","exit","appear");return er("input",be({ref:t},n,{css:rr({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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var pi=function(e){e.preventDefault(),e.stopPropagation()};var gi=["boxSizing","height","overflow","paddingRight","position"],hi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bi(e){e.preventDefault()}function yi(e){e.stopPropagation()}function xi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ci=!("undefined"==typeof window||!window.document||!window.document.createElement),Ei=0,Di={capture:!1,passive:!1};var Ai=function(){return document.activeElement&&document.activeElement.blur()},Fi="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9ICgpID0+XG4gIGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgJiYgKGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQpLmJsdXIoKTtcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gU2Nyb2xsTWFuYWdlcih7XG4gIGNoaWxkcmVuLFxuICBsb2NrRW5hYmxlZCxcbiAgY2FwdHVyZUVuYWJsZWQgPSB0cnVlLFxuICBvbkJvdHRvbUFycml2ZSxcbiAgb25Cb3R0b21MZWF2ZSxcbiAgb25Ub3BBcnJpdmUsXG4gIG9uVG9wTGVhdmUsXG59OiBQcm9wcykge1xuICBjb25zdCBzZXRTY3JvbGxDYXB0dXJlVGFyZ2V0ID0gdXNlU2Nyb2xsQ2FwdHVyZSh7XG4gICAgaXNFbmFibGVkOiBjYXB0dXJlRW5hYmxlZCxcbiAgICBvbkJvdHRvbUFycml2ZSxcbiAgICBvbkJvdHRvbUxlYXZlLFxuICAgIG9uVG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Bi(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,l=function(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,c=r(!1),s=r(!1),d=r(0),f=r(null),m=a((function(e,t){if(null!==f.current){var r=f.current,o=r.scrollTop,a=r.scrollHeight,d=r.clientHeight,m=f.current,p=t>0,g=a-d-o,v=!1;g>t&&c.current&&(i&&i(e),c.current=!1),p&&s.current&&(u&&u(e),s.current=!1),p&&t>g?(n&&!c.current&&n(e),m.scrollTop=a,v=!0,c.current=!0):!p&&-t>o&&(l&&!s.current&&l(e),m.scrollTop=0,v=!0,s.current=!0),v&&pi(e)}}),[n,i,l,u]),p=a((function(e){m(e,e.deltaY)}),[m]),g=a((function(e){d.current=e.changedTouches[0].clientY}),[]),v=a((function(e){var t=d.current-e.changedTouches[0].clientY;m(e,t)}),[m]),h=a((function(e){if(e){var t=!!da&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",v,t)}}),[v,g,p]),b=a((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",v,!1))}),[v,g,p]);return o((function(){if(t){var e=f.current;return h(e),function(){b(e)}}}),[t,h,b]),function(e){f.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),u=function(e){var t=e.isEnabled,n=e.accountForScrollbars,i=void 0===n||n,l=r({}),u=r(null),c=a((function(e){if(Ci){var t=document.body,n=t&&t.style;if(i&&gi.forEach((function(e){var t=n&&n[e];l.current[e]=t})),i&&Ei<1){var r=parseInt(l.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,a=window.innerWidth-o+r||0;Object.keys(hi).forEach((function(e){var t=hi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&wi()&&(t.addEventListener("touchmove",bi,Di),e&&(e.addEventListener("touchstart",xi,Di),e.addEventListener("touchmove",yi,Di))),Ei+=1}}),[i]),s=a((function(e){if(Ci){var t=document.body,n=t&&t.style;Ei=Math.max(Ei-1,0),i&&Ei<1&&gi.forEach((function(e){var t=l.current[e];n&&(n[e]=t)})),t&&wi()&&(t.removeEventListener("touchmove",bi,Di),e&&(e.removeEventListener("touchstart",xi,Di),e.removeEventListener("touchmove",yi,Di)))}}),[i]);return o((function(){if(t){var e=u.current;return c(e),function(){s(e)}}}),[t,c,s]),function(e){u.current=e}}({isEnabled:n});return er(f,null,n&&er("div",{onClick:Ai,css:Fi}),t((function(e){l(e),u(e)})))}var Oi,Ii="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},ji=function(e){var t=e.name,n=e.onFocus;return er("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ii,value:"",onChange:function(){}})},ki=function(e){return e.label},Ni=function(e){return e.value},Si={clearIndicator:Ta,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:Pa,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return de({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return de(de({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Za),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:Da,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,l=o.colors;return de((ce(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ce(n,"position","absolute"),ce(n,"width","100%"),ce(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return de({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return de({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return de({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return de({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Ea,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,l=a.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Pi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ti={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:la(),captureMenuScroll:!la(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=de({ignoreCase:!0,ignoreAccents:!0,stringify:di,trim:!0,matchFrom:"any"},Oi),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,u=i?si(t):t,c=i?si(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=ci(u),c=ui(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ki,getOptionValue:Ni,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ri(e,t,n,r){return{type:"option",data:t,isDisabled:zi(e,t,n),isSelected:Zi(e,t,n),label:Vi(e,t),value:Wi(e,t),index:r}}function Mi(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ri(e,n,t,r)})).filter((function(t){return Gi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ri(e,n,t,r);return Gi(e,a)?a:void 0})).filter(fa)}function Li(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Gi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!_i(e)||!a)&&Xi(e,{label:i,value:l,data:o},r)}var Vi=function(e,t){return e.getOptionLabel(t)},Wi=function(e,t){return e.getOptionValue(t)};function zi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Zi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wi(e,t);return n.some((function(t){return Wi(e,t)===r}))}function Xi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var _i=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Hi=1,Yi=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(i,d);var n,r,o,a=De(i);function i(e){var t;if(ye(this,i),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,l=o&&t.isOptionSelected(e,i),u=t.isOptionDisabled(e,i);if(l){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Ae(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ma(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ma(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ma(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ko.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Vi(t.props,e)},t.getOptionValue=function(e){return Wi(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Si[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,de(de({},Ua),e.components);var e},t.buildCategorizedOptions=function(){return Mi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Li(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:de({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){var n,r;"boolean"==typeof t.props.closeMenuOnScroll?(n=e.target,(null!=(r=HTMLElement)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)&&na(e.target)&&t.props.onMenuClose()):"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return _i(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,l=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,s=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,m=t.state,p=m.focusedOption,g=m.focusedValue,v=m.selectValue;if(!(u||"function"==typeof s&&(s(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(g)t.removeValue(g);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!p||f&&t.isOptionSelected(p,v))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):l&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Hi),t.state.selectValue=$o(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return n=i,r=[{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&&ia(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ia(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var l=a.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pi):de(de({},Pi),this.props.theme):Pi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,l=this.props,u=l.isMulti,c=l.isRtl,s=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:s,selectOption:a,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return zi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Zi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,a=t.inputValue,i=t.tabIndex,l=t.form,u=t.menuIsOpen,c=t.required,s=this.getComponents().Input,d=this.state,f=d.inputIsHidden,m=d.ariaSelection,p=this.commonProps,g=o||this.getElementId("input"),v=de(de(de({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(s,be({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:a},v)):e.createElement(mi,be({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qo,onFocus:this.onInputFocus,disabled:n,tabIndex:i,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,l=n.SingleValue,u=n.Placeholder,c=this.commonProps,s=this.props,d=s.controlShouldRenderValue,f=s.isDisabled,m=s.isMulti,p=s.inputValue,g=s.placeholder,v=this.state,h=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!d)return p?null:e.createElement(u,be({},c,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),g);if(m)return h.map((function(n,l){var u=n===b,s="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,be({},c,{components:{Container:o,Label:a,Remove:i},isFocused:u,isDisabled:f,key:s,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(p)return null;var x=h[0];return e.createElement(l,be({},c,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;return t&&a?e.createElement(t,be({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return e.createElement(r,be({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,s=n.Option,d=this.commonProps,f=this.state.focusedOption,m=this.props,p=m.captureMenuScroll,g=m.inputValue,v=m.isLoading,h=m.loadingMessage,b=m.minMenuHeight,y=m.maxMenuHeight,x=m.menuIsOpen,w=m.menuPlacement,C=m.menuPosition,E=m.menuPortalTarget,D=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,F=m.noOptionsMessage,B=m.onMenuScrollToTop,O=m.onMenuScrollToBottom;if(!x)return null;var I,j=function(n,r){var o=n.type,a=n.data,i=n.isDisabled,l=n.isSelected,u=n.label,c=n.value,m=f===a,p=i?void 0:function(){return t.onOptionHover(a)},g=i?void 0:function(){return t.selectOption(a)},v="".concat(t.getElementId("option"),"-").concat(r),h={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1};return e.createElement(s,be({},d,{innerProps:h,data:a,isDisabled:i,isSelected:l,key:v,label:u,type:o,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(n){if("group"===n.type){var a=n.data,i=n.options,l=n.index,u="".concat(t.getElementId("group"),"-").concat(l),c="".concat(u,"-heading");return e.createElement(r,be({},d,{key:u,data:a,options:i,Heading:o,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return j(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return j(n,"".concat(n.index))}));else if(v){var k=h({inputValue:g});if(null===k)return null;I=e.createElement(u,d,k)}else{var N=F({inputValue:g});if(null===N)return null;I=e.createElement(c,d,N)}var S={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:A},P=e.createElement(xa,be({},d,S),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,u=o.maxHeight;return e.createElement(a,be({},d,S,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:v,placement:l}),e.createElement(Bi,{captureEnabled:p,onTopArrive:B,onBottomArrive:O,lockEnabled:D},(function(n){return e.createElement(i,be({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:v,maxHeight:u,focusedOption:f}),I)})))}));return E||"fixed"===C?e.createElement(l,be({},d,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,l=n.required,u=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement(ji,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(a){if(r){var c=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:i,type:"hidden",value:c})}var s=u.length>0?u.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:i,type:"hidden",value:""});return e.createElement("div",null,s)}var d=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,a=n.focusedValue,i=n.isFocused,l=n.selectValue,u=this.getFocusableOptions();return e.createElement(ti,be({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:a,isFocused:i,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,a=t.ValueContainer,i=this.props,l=i.className,u=i.id,c=i.isDisabled,s=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(o,be({},f,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,be({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:s}),e.createElement(a,be({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,be({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,u=e.options,c=e.value,s=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=$o(c),p={};if(n&&(c!==n.value||u!==n.options||s!==n.menuIsOpen||d!==n.inputValue)){var g=s?function(e,t){return Li(Mi(e,t))}(e,m):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,h=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);p={selectValue:m,focusedOption:h,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,x=i&&l;return i&&!x&&(y={value:ma(f,m,m[0]||null),options:m,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),de(de(de({},p),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:x})}}],r&&xe(n.prototype,r),o&&xe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}();Yi.defaultProps=Ti;var Ui=i((function(t,n){var r=he(t);return e.createElement(Yi,be({ref:n},r))})),Ji=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Qi=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},qi={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Qi(e,t,r)}))||n.some((function(t){return Qi(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Ki=i((function(t,n){var r=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,i=e.formatCreateLabel,l=void 0===i?qi.formatCreateLabel:i,u=e.isValidNewOption,c=void 0===u?qi.isValidNewOption:u,d=e.getNewOptionData,f=void 0===d?qi.getNewOptionData:d,m=e.onCreateOption,p=e.options,g=void 0===p?[]:p,v=e.onChange,h=ge(e,Ji),b=h.getOptionValue,y=void 0===b?Ni:b,x=h.getOptionLabel,w=void 0===x?ki:x,C=h.inputValue,E=h.isLoading,D=h.isMulti,A=h.value,F=h.name,B=s((function(){return c(C,$o(A),g,{getOptionValue:y,getOptionLabel:w})?f(C,l(C)):void 0}),[l,f,w,y,C,c,g,A]),O=s((function(){return!n&&E||!B?g:"first"===o?[B].concat(Ae(g)):[].concat(Ae(g),[B])}),[n,o,E,B,g]),I=a((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==B)v(e,t);else if(m)m(C);else{var r=f(C,C),o={action:"create-option",name:F,option:r};v(ma(D,[].concat(Ae($o(A)),[r]),r),o)}}),[f,C,D,F,B,m,v,A]);return de(de({},h),{},{options:O,onChange:I})}(he(t));return e.createElement(Yi,be({ref:n},r))})),$i=Ki;function el(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){el(e,t,n[t])}))}return e}var nl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef,a=e.size,i=void 0===a?"normal":a;N(e,["cx","children","getStyles","innerProps","innerRef","size"]);return t.createElement("div",tl({ref:o,className:j({small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""}[i],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500")},r),n)},rl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return N(e,["cx","children","getStyles","innerProps","innerRef"]),t.createElement("div",tl({className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1 px-1.5",ref:o},r),n)},ol=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return e.size,N(e,["cx","children","getStyles","innerProps","innerRef","size"]),t.createElement("div",tl({ref:o,className:"flex flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-buttonPrimary-500/50 hover:text-white"},r),n)},al=function(e){return t.createElement("div",{className:" w-full"},e.label&&t.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},e.label),!e.isCreatable&&t.createElement(Ui,{classNames:{placeholder:function(){return"px-2 text-muted-foreground"},input:function(){return"text-white px-2"},valueContainer:function(){return"text-white dark:text-muted-foreground"},singleValue:function(){return"text-black dark:text-white px-2"},indicatorsContainer:function(){return" px-2 cursor-pointer text-muted-foreground"}},unstyled:!0,isDisabled:e.disabled,options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:function(t,n){return e.onChange(t,n)},components:{Control:nl,Option:ol,Menu:rl},getOptionLabel:e.getOptionLabel}),e.isCreatable&&t.createElement($i,{styles:{input:function(e){return k(k({},e),{"input:focus":{boxShadow:"none"}})},control:function(e){return k(k({},e),{borderRadius:"0.75rem"})},menu:function(e){return k(k({},e),{borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"})},menuList:function(e){return k(k({},e),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"})},option:function(e){return k(k({},e),{borderRadius:"0.75rem",margin:3,width:"98%"})}},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:function(){return console.log("im changing")},onChange:function(t,n){return e.onChange(t,n)},onInputChange:function(t,n){return e.onInputChange(t,n)}}),e.helperText&&t.createElement("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500"},e.helperText))},il=function(e){var n=e.settingsLabel,r=e.settingsType,o=e.settingsDescription,a=e.colorProps,i=e.rangeProps,l=e.radioProps,u=e.switchProps,c=e.selectProps;return t.createElement("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle"},t.createElement("div",null,t.createElement("div",{className:"text-sm"},n),o&&t.createElement("div",{className:"text-xs"},o)," "),"text"===r&&t.createElement(re,{margin:"none",width:"small"}),"boolean"===r&&t.createElement(J,u),"range"===r&&t.createElement(ae,i),"color"===r&&t.createElement(oe,a),"radio"===r&&t.createElement(ie,l),"select"===r&&t.createElement(al,c))},ll=function(e){return t.createElement("div",null,e.children)},ul=function(e){var a=e.variant,i=void 0===a?"normal":a,l=e.direction,u=void 0===l?"ltr":l,c=e.duration,s=e.icon,d=N(e,["variant","direction","duration","icon"]),f=r(null),m=n(!1),p=m[0],g=m[1];o((function(){if(c){var e=setTimeout((function(){g(!0)}),c),t=setTimeout((function(){g(!0),f.current.removeChild(f.current.children[0])}),c+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[c]);return t.createElement("div",{ref:f},t.createElement("div",{className:j("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",{normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}}[i][d.severity],p?"opacity-0":"opacity-100"),role:"alert",dir:u},t.createElement("div",{className:"flex flex-row"},s&&t.createElement("div",{className:"rtl"===u?"pl-2 pt-1":"pr-2 pt-1"},s),t.createElement("div",{className:"flex flex-col"},t.createElement("span",{className:j("font-medium","rtl"===u?"ml-8":"mr-8")},d.title),t.createElement("span",null," "+d.text),d.actions&&t.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.actions.map((function(e,n){return t.createElement(Y,{key:n,variant:e.variant,onClick:e.onClick(),margins:"none"},e.label)}))))),!d.persistant&&t.createElement("button",{type:"button",className:j("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",{none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"}[d.severity],"rtl"===u?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:function(){g(!0),setTimeout((function(){f.current.removeChild(f.current.children[0])}),200)}},t.createElement("span",{className:"sr-only"},"Close"),t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},cl=function(e){var a=e.menuItems,i=e.withHeader,l=e.direction,u=void 0===l?"ltr":l,c=e.headerTitle,s=e.headerSubtitle,d=e.size,f=void 0===d?"normal":d,m=e.children,p=e.onClickOutside,g=e.actionedItem,v=e.position,h=void 0===v?"top-right":v,b=n(!1),y=b[0],x=b[1],w=r(null),C=n(null),E=C[0],D=C[1],A=n(null),F=A[0],B=A[1],O=r(null),I=n(null),k=I[0],N=I[1],S=n(null),P=S[0],T=S[1];o((function(){var e,t,n,r;T(null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect().height),N(null===(t=O.current)||void 0===t?void 0:t.getBoundingClientRect().width),D(null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height),B(null===(r=w.current)||void 0===r?void 0:r.getBoundingClientRect().width);var o=function(e){O.current&&!O.current.contains(e.target)&&x(!1)};return document.addEventListener("click",o,!0),function(){document.removeEventListener("click",o,!0)}}),[p]);var R,M={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""};switch(h){case"top-right":R="rtl"===u?"".concat(k-F,"px, -").concat(P+E+5,"px"):"0px, -".concat(P+E+5,"px");break;case"top-left":R="rtl"===u?"".concat(0,"px, -").concat(P+E+5,"px"):"-".concat(k-F,"px, -").concat(P+E+5,"px");break;case"bottom-right":R="rtl"===u?"-".concat(0,"px, ").concat(5,"px"):"-".concat(F-k,"px, ").concat(5,"px");break;case"bottom-left":R="rtl"===u?"0px, ".concat(5,"px"):"-".concat(k-F,"px,").concat(5,"px");break;case"right-bottom":R="rtl"===u?"".concat(k+5,"px, -").concat(E,"px"):"".concat(F+5,"px, -").concat(E,"px");break;case"right-top":R="rtl"===u?"".concat(k+5,"px, -").concat(P,"px"):"".concat(F+5,"px, -").concat(P,"px");break;case"left-bottom":R="rtl"===u?"-".concat(F+5,"px, -").concat(E,"px"):"-".concat(k+5,"px, -").concat(E,"px");break;case"left-top":R="rtl"===u?"-".concat(F+5,"px, -").concat(P,"px"):"-".concat(k+5,"px, -").concat(P,"px");break;default:R="-".concat(k/2,"px, -").concat(E+P/2,"px")}return t.createElement("div",{onClick:function(){x(!y)}},t.createElement("div",{ref:w},m),t.createElement("div",{ref:O,style:{position:"absolute",width:"max-content",transform:"translate(".concat(R,")"),maxWidth:"200px"},className:j("border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",y?"opacity-100":"invisible opacity-0")},i&&t.createElement("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white"},t.createElement("div",null,c),t.createElement("div",{className:"truncate font-medium"},s)),null==a?void 0:a.map((function(e,n){return t.createElement("ul",{key:n,className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"},null==e?void 0:e.map((function(e,n){return e.element?t.createElement("li",{key:n,className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"},e.element):t.createElement("li",{key:n,onClick:function(){e.disabled?console.log("button is disabled"):null==e||e.action(g)},className:j("transition-all",e.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":e.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",M[f])},e.icon&&t.createElement("div",{className:"small"===f?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2"},e.icon),e.label)})))}))))},sl=function(e,t,r,a,i){var l=n([]),u=l[0],c=l[1],s=n([]),d=s[0],f=s[1];return o((function(){if(e){var n=function(e,t){for(var n=[],r=Math.ceil((null==e?void 0:e.length)/t),o=1;o<=r;o++)n.push(o);return n}(e,r);c(R([],n,!0));var o=function(e,t,n){return null!==t?null==e?void 0:e.sort((function(e,r){var o=e[t].value,a=r[t].value;return"string"==typeof o&&"string"==typeof a?"asc"===n?o.localeCompare(a):a.localeCompare(o):"asc"===n?o-a:a-o})):e}(e,a,i),l=function(e,t,n){return null==e?void 0:e.slice((t-1)*n,t*n)}(o,t,r);f(R([],l,!0))}}),[e,c,t,r,a,i]),{slice:d,range:u}},dl=function(e){var r,a,i,l,u,c,s,d,f,m,p,g,v,h,b,y,x,w,C=e.size,E=void 0===C?"normal":C,D=e.bodyColor,A=void 0===D?"white":D,F=e.headerColor,B=void 0===F?"gray-200":F,O=e.borders,I=e.highlightFirst,k=void 0!==I&&I,S=e.direction,P=void 0===S?"ltr":S,T=e.bordersWidth,R=void 0===T?"1":T,M=e.pagination,L=void 0===M||M,G=N(e,["size","bodyColor","headerColor","borders","highlightFirst","direction","bordersWidth","pagination"]),V=n(10),W=V[0],z=V[1],Z=n(null),X=Z[0],_=Z[1],H=n(1),U=H[0],J=H[1],Q=n(null);Q[0],Q[1];var q=n(G.rows),K=q[0];q[1];var $=n(null),ee=$[0],te=$[1],ne=n(null),oe=ne[0],ae=ne[1],ie=sl(G.rows,U,W,ee,oe),le=ie.slice,ue=ie.range,ce="rtl"===P,se={normal:"py-3 px-6",small:"px-3 py-1"};return o((function(){(null==le?void 0:le.length)<1&&1!==U&&J(U-1),X&&J(X)}),[le,U]),t.createElement("div",{className:"relative flex flex-col gap-2 "},t.createElement("div",{className:"overflow-x-auto rounded bg-".concat(B)},G.headerTools&&t.createElement("div",{className:"flex flex-row items-center justify-between gap-2 px-4 py-2"},t.createElement(re,{icon:t.createElement("svg",{"aria-label":"Search Icon",stroke:"currentColor",fill:"gray","stroke-width":"0",viewBox:"0 0 512 512",height:"1em",width:"1em"},t.createElement("path",{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})),placeholder:"Search",width:"full",margin:"none"}),t.createElement("div",{className:"flex flex-row items-center justify-between gap-2"},t.createElement(Y,{startIcon:t.createElement("svg",{"aria-label":"Filter Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"})),endIcon:t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))},null!==(a=null===(r=G.texts)||void 0===r?void 0:r.filter)&&void 0!==a?a:"Filter"))),t.createElement("table",{className:j("outer"===O||"all"===O?"outline outline-[".concat(R,"px] -outline-offset-1 outline-gray-300"):"","w-full rounded text-left text-sm text-gray-500 dark:text-gray-400","bg-".concat(B))},t.createElement("thead",{className:j("text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400","rows"===O||"all"===O||"inner"===O?"border-b ":"")},t.createElement("tr",null,G.columns.map((function(e,n){return e.hidden?void 0:t.createElement("th",{onClick:function(){return e.sortable&&(t=n,void(e.sortable&&(te(t),ae((function(e){return"asc"===e?"desc":"asc"})))));var t},key:n,scope:"col",colSpan:2,className:j(e.sortable?"cursor-pointer hover:bg-gray-300":"",se[E],0===n||"cols"!==O&&"all"!==O&&"inner"!==O?"":"border-r border-r-[".concat(R,"px] border-l border-l-[").concat(R,"px]"))},e.value,ee===n&&t.createElement("span",null,"asc"===oe?" ▲":" ▼"))})),G.actions?t.createElement("th",{scope:"col",className:j(se[E],"w-[calc(1%)] text-center")},null!==(l=null===(i=G.texts)||void 0===i?void 0:i.actions)&&void 0!==l?l:"Actions"):null)),t.createElement("tbody",{className:A&&G.rows?"bg-".concat(A):"bg-transparent"},K?null==le?void 0:le.map((function(e,n){var r=n==(null==le?void 0:le.length)-1;return t.createElement("tr",{key:n,className:j(" dark:border-gray-700 dark:bg-gray-800",G.clickable?"hover:bg-gray-100":"",r||"all"!==O&&"rows"!==O&&"inner"!==O?"":"border-b border-b-[".concat(R,"px]"))},null==e?void 0:e.map((function(n,o){var a=0===o,i=o===(null==e?void 0:e.length)-1,l=ce&&r&&i&&!G.actions,u=ce&&r&&a,c=!ce&&r&&a,s=!ce&&r&&i&&!G.actions;return n.hidden?void 0:t.createElement("td",{colSpan:2,key:o,className:j(se[E],k&&a?"font-bold":"font-normal",u?"rounded-bl-none rounded-br":l||c?"rounded-bl rounded-br-none":s?"rounded-bl-none rounded-br":"",(a||i||"cols"!==O&&"inner"!==O&&"all"!==O)&&(a||!G.actions||"cols"!==O&&"inner"!==O&&"all"!==O)?"":"border-l border-l-[".concat(R,"px] border-r border-r-[").concat(R,"px]"))},n.value," ",n.suffix&&n.suffix)})),G.actions?"small"!==E?t.createElement("td",{align:ce?"right":"left",className:j(ce&&r?"rounded-bl rounded-br-none":"",!ce&&r?"rounded-bl-none rounded-br":""),colSpan:1},t.createElement("div",{className:"flex items-center justify-center"},t.createElement(cl,{size:"small",actionedItem:[n,e],menuItems:G.actions,position:"rtl"===P?"right-bottom":"left-bottom",direction:P},t.createElement("div",{className:"flex w-fit items-center justify-center rounded p-2 hover:bg-gray-200"},t.createElement("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})))))):t.createElement("div",{className:"flex flex-row items-center justify-center gap-2 p-1"},G.actions[0].map((function(e){return t.createElement("div",{className:" p-1 transition-all hover:bg-gray-100"},e.icon)}))):null)})):t.createElement("tr",{className:"bg-transparent"},t.createElement("td",{colSpan:20},t.createElement("div",{className:j("w-full rounded-b bg-white p-5 text-center",A?"bg-".concat(A):"bg-white")},null!==(c=null===(u=G.texts)||void 0===u?void 0:u.noData)&&void 0!==c?c:"No Data")))))),L&&t.createElement("div",{className:"flex flex-row items-center justify-between "},ue.length>1?t.createElement("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded "},t.createElement("div",{className:j("flex h-6 w-6 rotate-180 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 "),onClick:function(){return J(U<=1?ue.length:U-1)}},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))),t.createElement("div",{className:"flex flex-row items-center overflow-clip rounded transition-all"},ue.length>6&&ue.map((function(e,n){if(n<=0)return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)})),(null==ue?void 0:ue.length)>6&&t.createElement("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:0!==U||U!==ue.length-1?U:"...",value:1==U||U==ue.length?"...":X||U,onChange:function(e){return _(parseInt(e.target.value))},onKeyDown:function(e){"Enter"===e.key&&(J(X),_(null))}}),(null==ue?void 0:ue.length)>6&&ue.map((function(e,n){if(n>=ue.length-1)return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)})),(null==ue?void 0:ue.length)<=6&&ue.map((function(e,n){return t.createElement("button",{key:n,className:j("w-10 p-1 text-xs hover:bg-gray-200",U===e?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return J(e)}},e)}))),t.createElement("div",{onClick:function(){return U>=ue.length?J(1):J(U+1)},className:j("flex h-6 w-6 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 ")},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})))):t.createElement("div",null),G.rows?t.createElement("div",{className:"flex w-fit flex-row items-center gap-2 "},t.createElement("div",{className:"text-xs "},G.rows.length," ",null!==(d=null===(s=G.texts)||void 0===s?void 0:s.items)&&void 0!==d?d:"Items"),t.createElement("select",{value:W,className:"h-6 rounded text-xs",onChange:function(e){z(parseInt(e.target.value))}},t.createElement("option",{value:10,style:{fontSize:10}},"10 / ",null!==(m=null===(f=G.texts)||void 0===f?void 0:f.page)&&void 0!==m?m:"Page"),t.createElement("option",{value:20,style:{fontSize:10}},"20 / ",null!==(g=null===(p=G.texts)||void 0===p?void 0:p.page)&&void 0!==g?g:"Page"),t.createElement("option",{value:30,style:{fontSize:10}},"30 / ",null!==(h=null===(v=G.texts)||void 0===v?void 0:v.page)&&void 0!==h?h:"Page"),t.createElement("option",{value:50,style:{fontSize:10}},"50 / ",null!==(y=null===(b=G.texts)||void 0===b?void 0:b.page)&&void 0!==y?y:"Page"),t.createElement("option",{value:100,style:{fontSize:10}},"100 / ",null!==(w=null===(x=G.texts)||void 0===x?void 0:x.page)&&void 0!==w?w:"Page"))):t.createElement("div",null)))};function fl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ml=function(e){return t.createElement(re,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fl(e,t,n[t])}))}return e}({type:"search"},e))},pl=function(e){var r=n(!1),o=r[0],a=r[1];return t.createElement("div",{className:"h-fit w-full"},t.createElement("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:j(o?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:function(){return a(!o)},"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index},t.createElement("span",null,e.title),t.createElement("svg",{"data-accordion-icon":"",className:"h-6 w-6 ".concat(o?"":"rotate-180"," shrink-0 transition-all"),fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))),t.createElement("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:j(o?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900")},t.createElement("p",{className:"mb-2 text-gray-500 dark:text-gray-400"},e.content)))},gl=[{country_label:"Saudi Arabia",code:"SA",unicode:"🇸🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"🇦🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"🇧🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"🇰🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"🇶🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"🇴🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"🇦🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"🇦🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"🇦🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"🇦🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"🇦🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"🇦🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"🇦🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"🇦🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"🇦🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"🇦🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"🇦🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"🇦🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"🇦🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"🇦🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"🇦🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"🇧🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"🇧🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"🇧🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"🇧🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"🇧🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"🇧🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"🇧🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"🇧🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"🇧🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"🇧🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"🇧🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"🇧🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"🇧🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"🇧🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"🇧🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"🇧🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"🇧🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"🇧🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"🇨🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"🇨🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"🇨🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"🇨🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"🇨🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"🇨🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"🇨🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"🇨🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"🇨🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"🇨🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"🇨🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"🇨🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"🇨🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"🇨🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"🇨🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"🇨🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"🇨🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"🇨🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"🇩🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"🇩🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"🇩🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"🇩🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"🇩🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"🇩🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"🇪🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"🇪🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"🇪🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"🇪🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"🇪🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"🇪🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"🇫🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"🇫🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"🇫🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"🇫🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"🇫🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"🇫🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"🇬🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"🇬🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"🇬🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"🇬🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"🇬🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"🇬🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"🇬🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"🇬🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"🇬🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"🇬🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"🇬🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"🇬🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"🇬🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"🇬🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"🇬🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"🇬🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"🇬🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"🇬🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"🇬🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"🇭🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"🇭🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"🇭🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"🇭🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"🇭🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"🇮🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"🇮🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"🇮🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"🇮🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"🇮🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"🇮🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"🇮🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"🇮🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"🇮🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"🇮🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"🇯🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"🇯🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"🇯🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"🇯🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"🇰🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"🇰🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"🇰🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"🇰🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"🇰🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"🇰🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"🇰🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"🇰🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"🇰🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"🇰🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"🇱🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"🇱🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"🇱🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"🇱🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"🇱🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"🇱🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"🇱🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"🇱🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"🇱🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"🇱🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"🇱🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"🇲🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"🇲🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"🇲🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"🇲🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"🇲🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"🇲🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"🇲🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"🇲🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"🇲🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"🇲🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"🇲🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"🇲🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"🇲🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"🇲🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"🇲🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"🇲🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"🇲🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"🇲🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"🇲🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"🇲🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"🇲🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"🇲🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"🇲🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"🇳🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"🇳🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"🇳🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"🇳🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"🇳🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"🇳🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"🇳🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"🇳🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"🇳🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"🇳🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"🇳🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"🇳🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"🇵🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"🇵🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"🇵🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"🇵🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"🇵🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"🇵🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"🇵🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"🇵🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"🇵🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"🇵🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"🇵🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"🇵🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"🇵🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"🇵🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"🇷🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"🇷🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"🇷🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"🇷🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"🇷🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"🇸🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"🇸🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"🇸🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"🇸🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"🇸🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"🇸🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"🇸🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"🇸🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"🇸🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"🇸🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"🇸🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"🇸🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"🇸🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"🇸🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"🇸🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"🇸🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"🇸🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"🇸🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"🇸🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"🇹🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"🇹🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"🇹🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"🇹🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"🇹🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"🇹🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"🇹🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"🇹🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"🇹🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"🇹🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"🇹🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"🇹🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"🇹🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"🇹🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"🇹🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"🇺🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"🇺🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"🇺🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"🇺🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"🇺🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"🇻🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"🇻🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"🇻🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"🇻🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"🇻🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"🇻🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"🇻🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"🇼🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"🇼🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"🇾🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"🇾🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"🇿🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"🇿🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"🇿🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}];function vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vl(e,t,n[t])}))}return e}var bl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef;return N(e,["cx","children","getStyles","innerProps","innerRef"]),t.createElement("div",hl({className:"absolute z-50 w-[190px] rounded border bg-background",ref:o},r),n)},yl=function(e){e.cx;var n=e.children;e.getStyles;var r=e.innerProps,o=e.innerRef,a=N(e,["cx","children","getStyles","innerProps","innerRef"]);return t.createElement("div",hl({ref:o,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-buttonPrimary-500/30 dark:text-white dark:hover:bg-buttonPrimary-500/60"},r),t.createElement("div",{className:"flex flex-row items-center justify-center gap-1"},t.createElement("img",{className:"h-8 w-8",src:a.data.image}),t.createElement("span",{className:"text-[10px]"},a.data.country_label)),n)},xl=function(e){var r=n("+966"),o=r[0],a=r[1];return t.createElement("div",{className:"mb-3 flex flex-col"},e.label&&t.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},e.label),t.createElement("div",{dir:"ltr",className:"flex flex-row "},t.createElement(Ui,{classNames:{control:function(){return"w-[64px] text-right pr-2 cursor-pointer z-10 border rounded-l bg-background"},placeholder:function(e){return"text-muted-foreground text-right "},input:function(e){return"bg-transparent cursor-pointer dark:text-white p-2 rounded-l text-[0.875rem] "},valueContainer:function(){return"rounded-l h-auto text-[0.875rem]"}},styles:{placeholder:function(e){return k(k({},e),{fontSize:"0.875rem",textAlign:"right"})}},components:{Option:yl,Menu:bl,DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:gl,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:o,onChange:function(e,t){return a(e)}}),t.createElement("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full appearance-none rounded rounded-l-none border border-l-0 bg-background p-2 text-[0.875rem] text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:text-white "}),e.helperText&&t.createElement("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500"},e.helperText)))},wl=function(e){var r,o,a=e.orientation,i=void 0===a?"horizontal":a,l=e.direction,u=void 0===l?"ltr":l,c=e.width,s=void 0===c?"normal":c,d=e.marginBetween,f=void 0===d?0:d,m=e.pill,p=void 0!==m&&m,g=N(e,["orientation","direction","width","marginBetween","pill"]),v=n(null===(r=g.options[0])||void 0===r?void 0:r.value),h=v[0],b=v[1],y={vertical:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",horizontal:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active"},x={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"};return t.createElement("div",{dir:u,className:j({vertical:"flex flex-row",horizontal:"flex flex-col"}[i],g.options[h]?"border-b-2":"border-b-0")},t.createElement("ul",{className:j(f?"vertical"===i?"mb-0":"mb-"+f:"",f&&"rtl"===u?"ml-"+f:"mr-"+f,{vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-buttonPrimary-500 text-center text-sm font-medium text-gray-500 dark:text-gray-400"}[i],"border-buttonPrimary-500",{full:"w-full min-w-full",normal:"w-fit"}[s],p?"gap-0.5 rounded border-none bg-gray-100 p-0.5":"vertical"===i?"rtl"===u?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-2")},null===(o=g.options)||void 0===o?void 0:o.map((function(e,n){return t.createElement("li",{key:n},t.createElement("button",{"aria-current":"page",onClick:function(){b(e.value),null==g||g.onChangeTab(e)},className:j("flex flex-row gap-2 items-center",e.value===h?[y[i],"rtl"===u?"rounded-r":"rounded-l"]:x[i],"w-full transition-all",p?"rounded":"vertical"===i?"rounded rounded-bl-none rounded-tl-none":"rounded rounded-bl-none rounded-br-none")},e.icon,e.label))}))),t.createElement("div",{className:"flex-1 transition-all"},g.options.map((function(e,n){return t.createElement("div",{key:n,className:j(h===e.value?"":"hidden")},e.content)}))))},Cl=function(e){var n=e.open,r=e.title,a=e.onClose,i=e.closeOnClickOutside,l=void 0===i||i,u=N(e,["open","title","onClose","closeOnClickOutside"]);return o((function(){return l&&n&&(window.onclick=function(e){e.stopPropagation(),a()}),function(){return window.onclick=null}}),[n]),t.createElement("div",{className:j("absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all",n?"z-10 opacity-100 ":"invisible -z-10 opacity-0")},t.createElement("div",{className:j("absolute h-screen w-full bg-gray-500 opacity-50",n?"opacity-50":"opacity-0")}),t.createElement("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700"},t.createElement("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600"},t.createElement("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white"},r),t.createElement("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:function(e){a()}},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),t.createElement("span",{className:"sr-only"},"Close modal"))),t.createElement("div",{className:"space-y-6 p-3"},u.children),t.createElement("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600"},u.actions)))};function El(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Al(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)}))}}function Bl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(Fl.apply(void 0,Al(t)),t)}function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Il(e,t,n[t])}))}return e}function kl(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Nl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sl(e){return function(e){if(Array.isArray(e))return Ol(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ol(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ol(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=function(){var t=n.map((function(e){return c(e)}));return function(n){var r=(null==n?void 0:n[e])||t;return s((function(){return Il({},"__scope".concat(e),kl(jl({},n),Il({},e,r)))}),[n,r])}};return r.scopeName=e,[function(t,r){var o=c(r),a=n.length;function i(t){var n=t.scope,r=t.children,i=Nl(t,["scope","children"]),l=(null==n?void 0:n[e][a])||o,u=s((function(){return i}),Object.values(i));return m(l.Provider,{value:u},r)}return n=Sl(n).concat([r]),i.displayName=t+"Provider",[i,function(n,i){var u=(null==i?void 0:i[e][a])||o,c=l(u);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},Tl.apply(void 0,[r].concat(Sl(t)))]}function Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(1===t.length)return r;var o=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var r=n.useScope,o=n.scopeName;return jl({},e,r(t)["__scope".concat(o)])}),{});return s((function(){return Il({},"__scope".concat(r.scopeName),n)}),[n])}};return o.scopeName=r.scopeName,o}function Rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ml(e){return function(e){if(Array.isArray(e))return Rl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e){var t=r(e);return o((function(){t.current=e})),s((function(){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,a;return null===(a=t.current)||void 0===a?void 0:(o=a).call.apply(o,[t].concat(Ml(n)))}}),[])}function Gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wl(e){var t=e.prop,i=e.defaultProp,l=e.onChange,u=void 0===l?function(){}:l,c=Vl(function(e){var t=e.defaultProp,a=e.onChange,i=n(t),l=Vl(i,1)[0],u=r(l),c=Ll(a);return o((function(){u.current!==l&&(c(l),u.current=l)}),[l,u,c]),i}({defaultProp:i,onChange:u}),2),s=c[0],d=c[1],f=void 0!==t,m=f?t:s,p=Ll(u);return[m,a((function(e){if(f){var n="function"==typeof e?e(t):e;n!==t&&p(n)}else d(e)}),[f,t,d,p])]}function zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zl(e,t,n[t])}))}return e}function _l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Hl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yl(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ul=i((function(e,t){var n=e.children,r=Hl(e,["children"]),o=p.toArray(n),a=o.find(ql);if(a){var i=a.props.children,l=o.map((function(e){return e===a?p.count(i)>1?p.only(null):g(i)?i.props.children:null:e}));return m(Jl,be({},r,{ref:t}),g(i)?v(i,void 0,l):null)}return m(Jl,be({},r,{ref:t}),n)}));Ul.displayName="Slot";var Jl=i((function(e,t){var n=e.children,r=Hl(e,["children"]);return g(n)?v(n,_l(Xl({},function(e,t){var n=function(n){var o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(void 0,Yl(t)),o.apply(void 0,Yl(t))}:o&&(r[n]=o):"style"===n?r[n]=Xl({},o,a):"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))},r=Xl({},t);for(var o in t)n(o);return Xl({},e,r)}(r,n.props)),{ref:t?Fl(t,n.ref):n.ref})):p.count(n)>1?p.only(null):null}));Jl.displayName="SlotClone";var Ql=function(e){var t=e.children;return m(f,null,t)};function ql(e){return g(e)&&e.type===Ql}function Kl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function eu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){var n=i((function(e,n){var r=e.asChild,a=eu(e,["asChild"]),i=r?Ul:t;return o((function(){window[Symbol.for("radix-ui")]=!0}),[]),m(i,be({},a,{ref:n}))}));return n.displayName="Primitive.".concat(t),$l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kl(e,t,n[t])}))}return e}({},e),Kl({},t,n))}),{});function nu(e,t){e&&E((function(){return e.dispatchEvent(t)}))}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ru(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lu(e){var n=e+"CollectionProvider",r=iu(Pl(n),2),o=r[0],a=r[1],i=iu(o(n,{collectionRef:{current:null},itemMap:new Map}),2),l=i[0],u=i[1],c=e+"CollectionSlot",s=t.forwardRef((function(e,n){var r=e.scope,o=e.children,a=Bl(n,u(c,r).collectionRef);return t.createElement(Ul,{ref:a},o)})),d=e+"CollectionItemSlot",f="data-radix-collection-item",m=t.forwardRef((function(e,n){var r,o=e.scope,a=e.children,i=au(e,["scope","children"]),l=t.useRef(null),c=Bl(n,l),s=u(d,o);return t.useEffect((function(){return s.itemMap.set(l,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ou(e,t,n[t])}))}return e}({ref:l},i)),function(){s.itemMap.delete(l)}})),t.createElement(Ul,(ou(r={},f,""),ou(r,"ref",c),r),a)}));return[{Provider:function(e){var n=e.scope,r=e.children,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(l,{scope:n,itemMap:a,collectionRef:o},r)},Slot:s,ItemSlot:m},function(n){var r=u(e+"CollectionConsumer",n),o=t.useCallback((function(){var e=r.collectionRef.current;if(!e)return[];var t=Array.from(e.querySelectorAll("[".concat(f,"]"))),n=Array.from(r.itemMap.values()).sort((function(e,n){return t.indexOf(e.ref.current)-t.indexOf(n.ref.current)}));return n}),[r.collectionRef,r.itemMap]);return o},a]}var uu=c(void 0);function cu(e){var t=l(uu);return e||t||"ltr"}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){du(e,t,n[t])}))}return e}function mu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||vu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gu(e){return function(e){if(Array.isArray(e))return su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vu(e,t){if(e){if("string"==typeof e)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?su(e,t):void 0}}var hu,bu="dismissableLayer.update",yu="dismissableLayer.pointerDownOutside",xu="dismissableLayer.focusOutside",wu=c({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cu=i((function(e,t){var a,i=e.disableOutsidePointerEvents,u=void 0!==i&&i,c=e.onEscapeKeyDown,s=e.onPointerDownOutside,d=e.onFocusOutside,f=e.onInteractOutside,p=e.onDismiss,g=mu(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=l(wu),h=pu(n(null),2),b=h[0],y=h[1],x=null!==(a=null==b?void 0:b.ownerDocument)&&void 0!==a?a:null===globalThis||void 0===globalThis?void 0:globalThis.document,w=pu(n({}),2)[1],C=Bl(t,(function(e){return y(e)})),E=Array.from(v.layers),D=pu(gu(v.layersWithOutsidePointerEventsDisabled).slice(-1),1)[0],A=E.indexOf(D),F=b?E.indexOf(b):-1,B=v.layersWithOutsidePointerEventsDisabled.size>0,O=F>=A,I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e),a=r(!1),i=r((function(){}));return o((function(){var e=function(e){if(e.target&&!a.current){var r=function(){Du(yu,n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}a.current=!1},r=window.setTimeout((function(){t.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:function(){return a.current=!0}}}((function(e){var t=e.target,n=gu(v.branches).some((function(e){return e.contains(t)}));O&&!n&&(null==s||s(e),null==f||f(e),e.defaultPrevented||null==p||p())}),x),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e),a=r(!1);return o((function(){var e=function(e){e.target&&!a.current&&Du(xu,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),function(){return t.removeEventListener("focusin",e)}}),[t,n]),{onFocusCapture:function(){return a.current=!0},onBlurCapture:function(){return a.current=!1}}}((function(e){var t=e.target;gu(v.branches).some((function(e){return e.contains(t)}))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==p||p())}),x);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=Ll(e);o((function(){var e=function(e){"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),function(){return t.removeEventListener("keydown",e)}}),[n,t])}((function(e){F===v.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))}),x),o((function(){if(b)return u&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(hu=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(b)),v.layers.add(b),Eu(),function(){u&&1===v.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=hu)}}),[b,x,u,v]),o((function(){return function(){b&&(v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),Eu())}}),[b,v]),o((function(){var e=function(){return w({})};return document.addEventListener(bu,e),function(){return document.removeEventListener(bu,e)}}),[]),m(tu.div,be({},g,{ref:C,style:fu({pointerEvents:B?O?"auto":"none":void 0},e.style),onFocusCapture:El(e.onFocusCapture,j.onFocusCapture),onBlurCapture:El(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:El(e.onPointerDownCapture,I.onPointerDownCapture)}))}));function Eu(){var e=new CustomEvent(bu);document.dispatchEvent(e)}function Du(e,t,n,r){var o=r.discrete,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?nu(a,i):a.dispatchEvent(i)}var Au=0;function Fu(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ou(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ju(e){return function(e){if(Array.isArray(e))return Bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ku(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return Bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bu(e,t):void 0}}var Nu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Pu={bubbles:!1,cancelable:!0},Tu=i((function(e,t){var i=e.loop,l=void 0!==i&&i,u=e.trapped,c=void 0!==u&&u,s=e.onMountAutoFocus,d=e.onUnmountAutoFocus,f=Ou(e,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),p=Iu(n(null),2),g=p[0],v=p[1],h=Ll(s),b=Ll(d),y=r(null),x=Bl(t,(function(e){return v(e)})),w=r({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;o((function(){if(c){var e=function(e){if(!w.paused&&g){var t=e.target;g.contains(t)?y.current=t:Vu(y.current,{select:!0})}},t=function(e){if(!w.paused&&g){var t=e.relatedTarget;null!==t&&(g.contains(t)||Vu(y.current,{select:!0}))}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var n=new MutationObserver((function(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){a.value.removedNodes.length>0&&(null!=g&&g.contains(t)||Vu(g))}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}));return g&&n.observe(g,{childList:!0,subtree:!0}),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[c,g,w.paused]),o((function(){if(g){zu.add(w);var e=document.activeElement;if(!g.contains(e)){var t=new CustomEvent(Nu,Pu);g.addEventListener(Nu,h),g.dispatchEvent(t),t.defaultPrevented||(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n,o=document.activeElement,a=!0,i=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){if(Vu(u.value,{select:r}),document.activeElement!==o)return}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}((n=Ru(g),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&Vu(g))}return function(){g.removeEventListener(Nu,h),setTimeout((function(){var t=new CustomEvent(Su,Pu);g.addEventListener(Su,b),g.dispatchEvent(t),t.defaultPrevented||Vu(null!=e?e:document.body,{select:!0}),g.removeEventListener(Su,b),zu.remove(w)}),0)}}var n}),[g,h,b,w]);var C=a((function(e){if((l||c)&&!w.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r=e.currentTarget,o=Iu(function(e){var t=Ru(e),n=Mu(t,e),r=Mu(t.reverse(),e);return[n,r]}(r),2),a=o[0],i=o[1];a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),l&&Vu(i,{select:!0})):(e.preventDefault(),l&&Vu(a,{select:!0})):n===r&&e.preventDefault()}}}),[l,c,w.paused]);return m(tu.div,be({tabIndex:-1},f,{ref:x,onKeyDown:C}))}));function Ru(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function Mu(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(!Lu(l,{upTo:t}))return l}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function Lu(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Gu(e){return t=e,(null!=(n=HTMLInputElement)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&"select"in e;var t,n}function Vu(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){var r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gu(e)&&n&&e.select()}}var Wu,zu=(Wu=[],{add:function(e){var t=Wu[0];e!==t&&(null==t||t.pause()),(Wu=Zu(Wu,e)).unshift(e)},remove:function(e){var t;null===(t=(Wu=Zu(Wu,e))[0])||void 0===t||t.resume()}});function Zu(e,t){var n=ju(e),r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Xu=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u:function(){};function _u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Yu=e["useId".toString()]||function(){},Uu=0;function Ju(t){var n=Hu(e.useState(Yu()),2),r=n[0],o=n[1];return Xu((function(){t||o((function(e){return null!=e?e:String(Uu++)}))}),[t]),t||(r?"radix-".concat(r):"")}function Qu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qu(e,t,n[t])}))}return e}function $u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var nc=function(e){return{name:"arrow",options:e,fn:function(t){var n,r="function"==typeof e?e(t):e,o=r.element,a=r.padding;return o&&(n=o,{}.hasOwnProperty.call(n,"current"))?null!=o.current?Yr({element:o.current,padding:a}).fn(t):{}:o?Yr({element:o,padding:a}).fn(t):{}}}},rc="undefined"!=typeof document?u:o;function oc(e,t){if(e===t)return!0;if((void 0===e?"undefined":tc(e))!==(void 0===t?"undefined":tc(t)))return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!oc(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var a=o[r];if(("_owner"!==a||!e.$$typeof)&&!oc(e[a],t[a]))return!1}return!0}return e!=e&&t!=t}function ac(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ic(e,t){var n=ac(e);return Math.round(t*n)/n}function lc(t){var n=e.useRef(t);return rc((function(){n.current=t})),n}function uc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cc=i((function(e,t){var n=e.children,r=e.width,o=void 0===r?10:r,a=e.height,i=void 0===a?5:a,l=uc(e,["children","width","height"]);return m(tu.svg,be({},l,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:m("polygon",{points:"0,0 30,0 15,10"}))}));function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mc(e,t,n[t])}))}return e}function gc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function vc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var bc="Popper",yc=hc(Pl(bc),2),xc=yc[0],wc=yc[1],Cc=hc(xc(bc),2),Ec=Cc[0],Dc=Cc[1],Ac=i((function(e,t){var n=e.__scopePopper,a=e.virtualRef,i=vc(e,["__scopePopper","virtualRef"]),l=Dc("PopperAnchor",n),u=r(null),c=Bl(t,u);return o((function(){l.onAnchorChange((null==a?void 0:a.current)||u.current)})),a?null:m(tu.div,be({},i,{ref:c}))})),Fc="PopperContent",Bc=hc(xc(Fc),2),Oc=Bc[0],Ic=Bc[1],jc=i((function(t,r){var o,a,i,l,u,c,s,d,f=t.__scopePopper,p=t.side,g=void 0===p?"bottom":p,v=t.sideOffset,h=void 0===v?0:v,b=t.align,y=void 0===b?"center":b,w=t.alignOffset,C=void 0===w?0:w,E=t.arrowPadding,D=void 0===E?0:E,A=t.collisionBoundary,F=void 0===A?[]:A,B=t.collisionPadding,O=void 0===B?0:B,I=t.sticky,j=void 0===I?"partial":I,k=t.hideWhenDetached,N=void 0!==k&&k,S=t.avoidCollisions,P=void 0===S||S,T=t.onPlaced,R=vc(t,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","onPlaced"]),M=Dc(Fc,f),L=hc(n(null),2),G=L[0],V=L[1],W=Bl(r,(function(e){return V(e)})),z=hc(n(null),2),Z=z[0],X=z[1],_=function(e){var t=dc(n(void 0),2),r=t[0],o=t[1];return Xu((function(){if(e){o({width:e.offsetWidth,height:e.offsetHeight});var t=new ResizeObserver((function(t){if(Array.isArray(t)&&t.length){var n,r,a=t[0];if("borderBoxSize"in a){var i=a.borderBoxSize,l=Array.isArray(i)?i[0]:i;n=l.inlineSize,r=l.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}o(void 0)}),[e]),r}(Z),H=null!==(o=null==_?void 0:_.width)&&void 0!==o?o:0,Y=null!==(a=null==_?void 0:_.height)&&void 0!==a?a:0,U=g+("center"!==y?"-"+y:""),J="number"==typeof O?O:pc({top:0,right:0,bottom:0,left:0},O),Q=Array.isArray(F)?F:[F],q=Q.length>0,K={padding:J,boundary:Q.filter(Nc),altBoundary:q},$=function(t){void 0===t&&(t={});var n=t.placement,r=void 0===n?"bottom":n,o=t.strategy,a=void 0===o?"absolute":o,i=t.middleware,l=void 0===i?[]:i,u=t.platform,c=t.elements,s=void 0===c?{}:c,d=s.reference,f=s.floating,m=t.transform,p=void 0===m||m,g=t.whileElementsMounted,v=t.open,h=ec(e.useState({x:0,y:0,strategy:a,placement:r,middlewareData:{},isPositioned:!1}),2),b=h[0],y=h[1],w=ec(e.useState(l),2),C=w[0],E=w[1];oc(C,l)||E(l);var D=ec(e.useState(null),2),A=D[0],F=D[1],B=ec(e.useState(null),2),O=B[0],I=B[1],j=e.useCallback((function(e){e!=P.current&&(P.current=e,F(e))}),[F]),k=e.useCallback((function(e){e!==T.current&&(T.current=e,I(e))}),[I]),N=d||A,S=f||O,P=e.useRef(null),T=e.useRef(null),R=e.useRef(b),M=lc(g),L=lc(u),G=e.useCallback((function(){if(P.current&&T.current){var e={placement:r,strategy:a,middleware:C};L.current&&(e.platform=L.current),Yo(P.current,T.current,e).then((function(e){var t=$u(Ku({},e),{isPositioned:!0});V.current&&!oc(R.current,t)&&(R.current=t,x.flushSync((function(){y(t)})))}))}}),[C,r,a,L]);rc((function(){!1===v&&R.current.isPositioned&&(R.current.isPositioned=!1,y((function(e){return $u(Ku({},e),{isPositioned:!1})})))}),[v]);var V=e.useRef(!1);rc((function(){return V.current=!0,function(){V.current=!1}}),[]),rc((function(){if(N&&(P.current=N),S&&(T.current=S),N&&S){if(M.current)return M.current(N,S,G);G()}}),[N,S,G,M]);var W=e.useMemo((function(){return{reference:P,floating:T,setReference:j,setFloating:k}}),[j,k]),z=e.useMemo((function(){return{reference:N,floating:S}}),[N,S]),Z=e.useMemo((function(){var e={position:a,left:0,top:0};if(!z.floating)return e;var t=ic(z.floating,b.x),n=ic(z.floating,b.y);return p?Ku($u(Ku({},e),{transform:"translate("+t+"px, "+n+"px)"}),ac(z.floating)>=1.5&&{willChange:"transform"}):{position:a,left:t,top:n}}),[a,p,z.floating,b.x,b.y]);return e.useMemo((function(){return $u(Ku({},b),{update:G,refs:W,elements:z,floatingStyles:Z})}),[b,G,W,z,Z])}({strategy:"fixed",placement:U,whileElementsMounted:Ho,elements:{reference:M.anchor},middleware:[eo({mainAxis:h+Y,alignmentAxis:C}),P&&to(pc({mainAxis:!0,crossAxis:!1,limiter:"partial"===j?no():void 0},K)),P&&Ur(pc({},K)),ro(gc(pc({},K),{apply:function(e){var t=e.elements,n=e.rects,r=e.availableWidth,o=e.availableHeight,a=n.reference,i=a.width,l=a.height,u=t.floating.style;u.setProperty("--radix-popper-available-width","".concat(r,"px")),u.setProperty("--radix-popper-available-height","".concat(o,"px")),u.setProperty("--radix-popper-anchor-width","".concat(i,"px")),u.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}})),Z&&nc({element:Z,padding:D}),Sc({arrowWidth:H,arrowHeight:Y}),N&&qr({strategy:"referenceHidden"})]}),ee=$.refs,te=$.floatingStyles,ne=$.placement,re=$.isPositioned,oe=$.middlewareData,ae=hc(Pc(ne),2),ie=ae[0],le=ae[1],ue=Ll(T);Xu((function(){re&&(null==ue||ue())}),[re,ue]);var ce=null===(i=oe.arrow)||void 0===i?void 0:i.x,se=null===(l=oe.arrow)||void 0===l?void 0:l.y,de=0!==(null===(u=oe.arrow)||void 0===u?void 0:u.centerOffset),fe=hc(n(),2),me=fe[0],pe=fe[1];return Xu((function(){G&&pe(window.getComputedStyle(G).zIndex)}),[G]),m("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:gc(pc({},te),mc({transform:re?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me},"--radix-popper-transform-origin",[null===(c=oe.transformOrigin)||void 0===c?void 0:c.x,null===(s=oe.transformOrigin)||void 0===s?void 0:s.y].join(" "))),dir:t.dir},m(Oc,{scope:f,placedSide:ie,onArrowChange:X,arrowX:ce,arrowY:se,shouldHideArrow:de},m(tu.div,be({"data-side":ie,"data-align":le},R,{ref:W,style:gc(pc({},R.style),{animation:re?void 0:"none",opacity:null!==(d=oe.hide)&&void 0!==d&&d.referenceHidden?0:void 0})}))))})),kc={top:"bottom",right:"left",bottom:"top",left:"right"};function Nc(e){return null!==e}var Sc=function(e){return{name:"transformOrigin",options:e,fn:function(t){var n,r,o,a,i,l=t.placement,u=t.rects,c=t.middlewareData,s=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,m=hc(Pc(l),2),p=m[0],g={start:"0%",center:"50%",end:"100%"}[m[1]],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,h=(null!==(a=null===(i=c.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2,b="",y="";return"bottom"===p?(b=s?g:"".concat(v,"px"),y="".concat(-f,"px")):"top"===p?(b=s?g:"".concat(v,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(b="".concat(-f,"px"),y=s?g:"".concat(h,"px")):"left"===p&&(b="".concat(u.floating.width+f,"px"),y=s?g:"".concat(h,"px")),{data:{x:b,y:y}}}}};function Pc(e){var t=hc(e.split("-"),2),n=t[0],r=t[1];return[n,void 0===r?"center":r]}var Tc=function(e){var t=e.__scopePopper,r=e.children,o=hc(n(null),2),a=o[0],i=o[1];return m(Ec,{scope:t,anchor:a,onAnchorChange:i},r)},Rc=Ac,Mc=jc,Lc=i((function(e,t){var n,r=e.__scopePopper,o=vc(e,["__scopePopper"]),a=Ic("PopperArrow",r),i=kc[a.placedSide];return m("span",{ref:a.onArrowChange,style:(n={position:"absolute",left:a.arrowX,top:a.arrowY},mc(n,i,0),mc(n,"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide]),mc(n,"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide]),mc(n,"visibility",a.shouldHideArrow?"hidden":void 0),n)},m(cc,be({},o,{ref:t,style:gc(pc({},o.style),{display:"block"})})))}));function Gc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vc=i((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=Gc(e,["container"]);return o?w.createPortal(m(tu.div,be({},a,{ref:t})),o):null}));function Wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zc=function(e){var t=e.present,i=e.children,l=function(e){var t=zc(n(),2),i=t[0],l=t[1],u=r({}),c=r(e),s=r("none"),d=e?"mounted":"unmounted",f=zc(function(e,t){return h((function(e,n){var r=t[e][n];return null!=r?r:e}),e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),m=f[0],p=f[1];return o((function(){var e=Xc(u.current);s.current="mounted"===m?e:"none"}),[m]),Xu((function(){var t=u.current,n=c.current;if(n!==e){var r=s.current,o=Xc(t);if(e)p("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{p(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}c.current=e}}),[e,p]),Xu((function(){if(i){var e=function(e){var t=Xc(u.current).includes(e.animationName);e.target===i&&t&&E((function(){return p("ANIMATION_END")}))},t=function(e){e.target===i&&(s.current=Xc(u.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),function(){i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[i,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:a((function(e){e&&(u.current=getComputedStyle(e)),l(e)}),[])}}(t),u="function"==typeof i?i({present:l.isPresent}):p.only(i),c=Bl(l.ref,u.ref);return"function"==typeof i||l.isPresent?v(u,{ref:c}):null};function Xc(e){return(null==e?void 0:e.animationName)||"none"}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hc(e,t,n[t])}))}return e}function Uc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||qc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qc(e){return function(e){if(Array.isArray(e))return _c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){if(e){if("string"==typeof e)return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(e,t):void 0}}Zc.displayName="Presence";var Kc="rovingFocusGroup.onEntryFocus",$c={bubbles:!1,cancelable:!0},es="RovingFocusGroup",ts=Jc(lu(es),3),ns=ts[0],rs=ts[1],os=Jc(Pl(es,[ts[2]]),2),as=os[0],is=os[1],ls=Jc(as(es),2),us=ls[0],cs=ls[1],ss=i((function(e,t){return m(ns.Provider,{scope:e.__scopeRovingFocusGroup},m(ns.Slot,{scope:e.__scopeRovingFocusGroup},m(ds,be({},e,{ref:t}))))})),ds=i((function(e,t){var i=e.__scopeRovingFocusGroup,l=e.orientation,u=e.loop,c=void 0!==u&&u,s=e.dir,d=e.currentTabStopId,f=e.defaultCurrentTabStopId,p=e.onCurrentTabStopIdChange,g=e.onEntryFocus,v=Uc(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"]),h=r(null),b=Bl(t,h),y=cu(s),x=Jc(Wl({prop:d,defaultProp:f,onChange:p}),2),w=x[0],C=void 0===w?null:w,E=x[1],D=Jc(n(!1),2),A=D[0],F=D[1],B=Ll(g),O=rs(i),I=r(!1),j=Jc(n(0),2),k=j[0],N=j[1];return o((function(){var e=h.current;if(e)return e.addEventListener(Kc,B),function(){return e.removeEventListener(Kc,B)}}),[B]),m(us,{scope:i,orientation:l,dir:y,loop:c,currentTabStopId:C,onItemFocus:a((function(e){return E(e)}),[E]),onItemShiftTab:a((function(){return F(!0)}),[]),onFocusableItemAdd:a((function(){return N((function(e){return e+1}))}),[]),onFocusableItemRemove:a((function(){return N((function(e){return e-1}))}),[])},m(tu.div,be({tabIndex:A||0===k?-1:0,"data-orientation":l},v,{ref:b,style:Yc({outline:"none"},e.style),onMouseDown:El(e.onMouseDown,(function(){I.current=!0})),onFocus:El(e.onFocus,(function(e){var t=!I.current;if(e.target===e.currentTarget&&t&&!A){var n=new CustomEvent(Kc,$c);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){var r=O().filter((function(e){return e.focusable}));ps([r.find((function(e){return e.active})),r.find((function(e){return e.id===C}))].concat(Qc(r)).filter(Boolean).map((function(e){return e.ref.current})))}}I.current=!1})),onBlur:El(e.onBlur,(function(){return F(!1)}))})))})),fs=i((function(e,t){var n=e.__scopeRovingFocusGroup,r=e.focusable,a=void 0===r||r,i=e.active,l=void 0!==i&&i,u=e.tabStopId,c=Uc(e,["__scopeRovingFocusGroup","focusable","active","tabStopId"]),s=Ju(),d=u||s,f=cs("RovingFocusGroupItem",n),p=f.currentTabStopId===d,g=rs(n),v=f.onFocusableItemAdd,h=f.onFocusableItemRemove;return o((function(){if(a)return v(),function(){return h()}}),[a,v,h]),m(ns.ItemSlot,{scope:n,id:d,focusable:a,active:l},m(tu.span,be({tabIndex:p?0:-1,"data-orientation":f.orientation},c,{ref:t,onMouseDown:El(e.onMouseDown,(function(e){a?f.onItemFocus(d):e.preventDefault()})),onFocus:El(e.onFocus,(function(){return f.onItemFocus(d)})),onKeyDown:El(e.onKeyDown,(function(e){if("Tab"===e.key&&e.shiftKey)f.onItemShiftTab();else if(e.target===e.currentTarget){var t,n,r=function(e,t,n){var r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ms[r]}(e,f.orientation,f.dir);if(void 0!==r){e.preventDefault();var o=g().filter((function(e){return e.focusable})).map((function(e){return e.ref.current}));if("last"===r)o.reverse();else if("prev"===r||"next"===r){"prev"===r&&o.reverse();var a=o.indexOf(e.currentTarget);o=f.loop?(n=a+1,(t=o).map((function(e,r){return t[(n+r)%t.length]}))):o.slice(a+1)}setTimeout((function(){return ps(o)}))}}}))})))})),ms={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ps(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(l===t)return;if(l.focus(),document.activeElement!==t)return}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}var gs=ss,vs=fs,hs=new WeakMap,bs=new WeakMap,ys={},xs=0,ws=function(e){return e&&(e.host||ws(e.parentNode))},Cs=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=ws(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);ys[n]||(ys[n]=new WeakMap);var a=ys[n],i=[],l=new Set,u=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))s(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(hs.get(e)||0)+1,c=(a.get(e)||0)+1;hs.set(e,u),a.set(e,c),i.push(e),1===u&&o&&bs.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return s(t),l.clear(),xs++,function(){i.forEach((function(e){var t=hs.get(e)-1,o=a.get(e)-1;hs.set(e,t),a.set(e,o),t||(bs.has(e)||e.removeAttribute(r),bs.delete(e)),o||e.removeAttribute(n)})),--xs||(hs=new WeakMap,hs=new WeakMap,bs=new WeakMap,ys={})}},Es=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Cs(r,o,n,"aria-hidden")):function(){return null}},Ds="right-scroll-bar-position",As="width-before-scroll-bar";function Fs(e,t){return function(e,t){var r=n((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function Bs(e){return e}var Os=function(t){var n=t.sideCar,r=N(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,k({},r))};Os.isSideCarExport=!0;var Is=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Bs);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=k({async:!0,ssr:!1},e),t}(),js=function(){},ks=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:js,onWheelCapture:js,onTouchMoveCapture:js}),a=o[0],i=o[1],l=t.forwardProps,u=t.children,c=t.className,s=t.removeScrollBar,d=t.enabled,f=t.shards,m=t.sideCar,p=t.noIsolation,g=t.inert,v=t.allowPinchZoom,h=t.as,b=void 0===h?"div":h,y=N(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=m,w=Fs([r,n]),C=k(k({},y),a);return e.createElement(e.Fragment,null,d&&e.createElement(x,{sideCar:Is,removeScrollBar:s,shards:f,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:r}),l?e.cloneElement(e.Children.only(u),k(k({},C),{ref:w})):e.createElement(b,k({},C,{className:c,ref:w}),u))}));ks.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ks.classNames={fullWidth:As,zeroRight:Ds};function Ns(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Ss=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Ns())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ps=function(){var t,n=(t=Ss(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Ts={left:0,top:0,right:0,gap:0},Rs=function(e){return parseInt(e||"",10)||0},Ms=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ts;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Rs(n),Rs(r),Rs(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ls=Ps(),Gs=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ds," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(As," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(Ds," .").concat(Ds," {\n right: 0 ").concat(r,";\n }\n \n .").concat(As," .").concat(As," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},Vs=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o,i=e.useMemo((function(){return Ms(a)}),[a]);return e.createElement(Ls,{styles:Gs(i,!n,a,r?"":"!important")})},Ws=!1;if("undefined"!=typeof window)try{var zs=Object.defineProperty({},"passive",{get:function(){return Ws=!0,!0}});window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch(e){Ws=!1}var Zs=!!Ws&&{passive:!1};var Xs=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_s=function(e,t){var n,r,o=t;do{if("undefined"!=typeof ShadowRoot&&(n=o,null!=(r=ShadowRoot)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)&&(o=o.host),Hs(e,o)){var a=Ys(e,o);if(a[1]>a[2])return!0}o=o.parentNode}while(o&&o!==document.body);return!1},Hs=function(e,t){return"v"===e?function(e){return Xs(e,"overflowY")}(t):function(e){return Xs(e,"overflowX")}(t)},Ys=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Js=function(e){return[e.deltaX,e.deltaY]},Qs=function(e){return e&&"current"in e?e.current:e},qs=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ks=0,$s=[];var ed,td=(ed=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Ks++)[0],i=e.useState((function(){return Ps()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=R([t.lockRef.current],(t.shards||[]).map(Qs),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var u=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,a=Us(e),i=r.current,u="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=_s(d,s);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=_s(d,s)),!f)return!1;if(!o.current&&"changedTouches"in e&&(u||c)&&(o.current=n),!n)return!0;var m=o.current||n;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),c=!1,s=i>0,d=0,f=0;do{var m=Ys(e,l),p=m[0],g=m[1]-m[2]-a*p;(p||g)&&Hs(e,l)&&(d+=g,f+=p),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(s&&(o&&0===d||!o&&i>d)||!s&&(o&&0===f||!o&&-i>f))&&(c=!0),c}(m,t,e,"h"===m?u:c,!0)}),[]),c=e.useCallback((function(e){var t=e;if($s.length&&$s[$s.length-1]===i){var r="deltaY"in t?Js(t):Us(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(l.current.shards||[]).map(Qs).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?u(t,a[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),s=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=Us(e),o.current=void 0}),[]),f=e.useCallback((function(e){s(e.type,Js(e),e.target,u(e,t.lockRef.current))}),[]),m=e.useCallback((function(e){s(e.type,Us(e),e.target,u(e,t.lockRef.current))}),[]);e.useEffect((function(){return $s.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Zs),document.addEventListener("touchmove",c,Zs),document.addEventListener("touchstart",d,Zs),function(){$s=$s.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Zs),document.removeEventListener("touchmove",c,Zs),document.removeEventListener("touchstart",d,Zs)}}),[]);var p=t.removeScrollBar,g=t.inert;return e.createElement(e.Fragment,null,g?e.createElement(i,{styles:qs(a)}):null,p?e.createElement(Vs,{gapMode:"margin"}):null)},Is.useMedium(ed),Os),nd=e.forwardRef((function(t,n){return e.createElement(ks,k({},t,{ref:n,sideCar:td}))}));nd.classNames=ks.classNames;var rd=nd;function od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ad(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ad(e,t,n[t])}))}return e}function ld(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||sd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cd(e){return function(e){if(Array.isArray(e))return od(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sd(e,t){if(e){if("string"==typeof e)return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?od(e,t):void 0}}var dd=["Enter"," "],fd=["ArrowUp","PageDown","End"],md=cd(["ArrowDown","PageUp","Home"]).concat(cd(fd)),pd={ltr:cd(dd).concat(["ArrowRight"]),rtl:cd(dd).concat(["ArrowLeft"])},gd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vd="Menu",hd=ud(lu(vd),3),bd=hd[0],yd=hd[1],xd=ud(Pl(vd,[hd[2],wc,is]),2),wd=xd[0],Cd=xd[1],Ed=wc(),Dd=is(),Ad=ud(wd(vd),2),Fd=Ad[0],Bd=Ad[1],Od=ud(wd(vd),2),Id=Od[0],jd=Od[1],kd=i((function(e,t){var n=e.__scopeMenu,r=ld(e,["__scopeMenu"]),o=Ed(n);return m(Rc,be({},o,r,{ref:t}))})),Nd="MenuPortal",Sd=ud(wd(Nd,{forceMount:void 0}),2),Pd=Sd[0],Td=Sd[1],Rd="MenuContent",Md=ud(wd(Rd),2),Ld=Md[0],Gd=Md[1],Vd=i((function(e,t){var n=Td(Rd,e.__scopeMenu),r=e.forceMount,o=void 0===r?n.forceMount:r,a=ld(e,["forceMount"]),i=Bd(Rd,e.__scopeMenu),l=jd(Rd,e.__scopeMenu);return m(bd.Provider,{scope:e.__scopeMenu},m(Zc,{present:o||i.open},m(bd.Slot,{scope:e.__scopeMenu},l.modal?m(Wd,be({},a,{ref:t})):m(zd,be({},a,{ref:t})))))})),Wd=i((function(e,t){var n=Bd(Rd,e.__scopeMenu),a=r(null),i=Bl(t,a);return o((function(){var e=a.current;if(e)return Es(e)}),[]),m(Zd,be({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:El(e.onFocusOutside,(function(e){return e.preventDefault()}),{checkForDefaultPrevented:!1}),onDismiss:function(){return n.onOpenChange(!1)}}))})),zd=i((function(e,t){var n=Bd(Rd,e.__scopeMenu);return m(Zd,be({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:function(){return n.onOpenChange(!1)}}))})),Zd=i((function(e,t){var i=e.__scopeMenu,l=e.loop,u=void 0!==l&&l,c=e.trapFocus,s=e.onOpenAutoFocus,d=e.onCloseAutoFocus,p=e.disableOutsidePointerEvents,g=e.onEntryFocus,v=e.onEscapeKeyDown,h=e.onPointerDownOutside,b=e.onFocusOutside,y=e.onInteractOutside,x=e.onDismiss,w=e.disableOutsideScroll,C=ld(e,["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"]),E=Bd(Rd,i),D=jd(Rd,i),A=Ed(i),F=Dd(i),B=yd(i),O=ud(n(null),2),I=O[0],j=O[1],k=r(null),N=Bl(t,k,E.onContentChange),S=r(0),P=r(""),T=r(0),R=r(null),M=r("right"),L=r(0),G=w?rd:f,V=w?{as:Ul,allowPinchZoom:!0}:void 0,W=function(e){var t,n,r=P.current+e,o=B().filter((function(e){return!e.disabled})),a=document.activeElement,i=null===(t=o.find((function(e){return e.ref.current===a})))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r=t.length>1&&Array.from(t).every((function(e){return e===t[0]})),o=r?t[0]:t,a=n?e.indexOf(n):-1,i=(l=e,u=Math.max(a,0),l.map((function(e,t){return l[(u+t)%l.length]})));var l,u;1===o.length&&(i=i.filter((function(e){return e!==n})));var c=i.find((function(e){return e.toLowerCase().startsWith(o.toLowerCase())}));return c!==n?c:void 0}(o.map((function(e){return e.textValue})),r,i),u=null===(n=o.find((function(e){return e.textValue===l})))||void 0===n?void 0:n.ref.current;!function e(t){P.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout((function(){return e("")}),1e3))}(r),u&&setTimeout((function(){return u.focus()}))};o((function(){return function(){return window.clearTimeout(S.current)}}),[]),o((function(){var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Fu()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Fu()),Au++,function(){1===Au&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),Au--}}),[]);var z=a((function(e){var t,n;return M.current===(null===(t=R.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;var n={x:e.clientX,y:e.clientY};return function(e,t){for(var n=e.x,r=e.y,o=!1,a=0,i=t.length-1;a<t.length;i=a++){var l=t[a].x,u=t[a].y,c=t[i].x,s=t[i].y;u>r!=s>r&&n<(c-l)*(r-u)/(s-u)+l&&(o=!o)}return o}(n,t)}(e,null===(n=R.current)||void 0===n?void 0:n.area)}),[]);return m(Ld,{scope:i,searchRef:P,onItemEnter:a((function(e){z(e)&&e.preventDefault()}),[z]),onItemLeave:a((function(e){var t;z(e)||(null===(t=k.current)||void 0===t||t.focus(),j(null))}),[z]),onTriggerLeave:a((function(e){z(e)&&e.preventDefault()}),[z]),pointerGraceTimerRef:T,onPointerGraceIntentChange:a((function(e){R.current=e}),[])},m(G,V,m(Tu,{asChild:!0,trapped:c,onMountAutoFocus:El(s,(function(e){var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus()})),onUnmountAutoFocus:d},m(Cu,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:v,onPointerDownOutside:h,onFocusOutside:b,onInteractOutside:y,onDismiss:x},m(gs,be({asChild:!0},F,{dir:D.dir,orientation:"vertical",loop:u,currentTabStopId:I,onCurrentTabStopIdChange:j,onEntryFocus:El(g,(function(e){D.isUsingKeyboardRef.current||e.preventDefault()}))}),m(Mc,be({role:"menu","aria-orientation":"vertical","data-state":gf(E.open),"data-radix-menu-content":"",dir:D.dir},A,C,{ref:N,style:id({outline:"none"},C.style),onKeyDown:El(C.onKeyDown,(function(e){var t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));var o=k.current;if(e.target===o&&md.includes(e.key)){e.preventDefault();var a=B().filter((function(e){return!e.disabled})).map((function(e){return e.ref.current}));fd.includes(e.key)&&a.reverse(),function(e){var t=document.activeElement,n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;if(l===t)return;if(l.focus(),document.activeElement!==t)return}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}(a)}})),onBlur:El(e.onBlur,(function(e){e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),P.current="")})),onPointerMove:El(e.onPointerMove,bf((function(e){var t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){var r=e.clientX>L.current?"right":"left";M.current=r,L.current=e.clientX}})))})))))))})),Xd=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({role:"group"},n,{ref:t}))})),_d=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({},n,{ref:t}))})),Hd="MenuItem",Yd="menu.itemSelect",Ud=i((function(e,t){var n=e.disabled,o=void 0!==n&&n,a=e.onSelect,i=ld(e,["disabled","onSelect"]),l=r(null),u=jd(Hd,e.__scopeMenu),c=Gd(Hd,e.__scopeMenu),s=Bl(t,l),d=r(!1);return m(Jd,be({},i,{ref:s,disabled:o,onClick:El(e.onClick,(function(){var e=l.current;if(!o&&e){var t=new CustomEvent(Yd,{bubbles:!0,cancelable:!0});e.addEventListener(Yd,(function(e){return null==a?void 0:a(e)}),{once:!0}),nu(e,t),t.defaultPrevented?d.current=!1:u.onClose()}})),onPointerDown:function(t){var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),d.current=!0},onPointerUp:El(e.onPointerUp,(function(e){var t;d.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:El(e.onKeyDown,(function(e){var t=""!==c.searchRef.current;o||t&&" "===e.key||dd.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Jd=i((function(e,t){var a=e.__scopeMenu,i=e.disabled,l=void 0!==i&&i,u=e.textValue,c=ld(e,["__scopeMenu","disabled","textValue"]),s=Gd(Hd,a),d=Dd(a),f=r(null),p=Bl(t,f),g=ud(n(!1),2),v=g[0],h=g[1],b=ud(n(""),2),y=b[0],x=b[1];return o((function(){var e,t=f.current;t&&x((null!==(e=t.textContent)&&void 0!==e?e:"").trim())}),[c.children]),m(bd.ItemSlot,{scope:a,disabled:l,textValue:null!=u?u:y},m(vs,be({asChild:!0},d,{focusable:!l}),m(tu.div,be({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0},c,{ref:p,onPointerMove:El(e.onPointerMove,bf((function(e){l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:El(e.onPointerLeave,bf((function(e){return s.onItemLeave(e)}))),onFocus:El(e.onFocus,(function(){return h(!0)})),onBlur:El(e.onBlur,(function(){return h(!1)}))}))))})),Qd=i((function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.onCheckedChange,a=ld(e,["checked","onCheckedChange"]);return m(of,{scope:e.__scopeMenu,checked:r},m(Ud,be({role:"menuitemcheckbox","aria-checked":vf(r)?"mixed":r},a,{ref:t,"data-state":hf(r),onSelect:El(a.onSelect,(function(){return null==o?void 0:o(!!vf(r)||!r)}),{checkForDefaultPrevented:!1})})))})),qd=ud(wd("MenuRadioGroup",{value:void 0,onValueChange:function(){}}),2),Kd=qd[0],$d=qd[1],ef=i((function(e,t){var n=e.value,r=e.onValueChange,o=ld(e,["value","onValueChange"]),a=Ll(r);return m(Kd,{scope:e.__scopeMenu,value:n,onValueChange:a},m(Xd,be({},o,{ref:t})))})),tf=i((function(e,t){var n=e.value,r=ld(e,["value"]),o=$d("MenuRadioItem",e.__scopeMenu),a=n===o.value;return m(of,{scope:e.__scopeMenu,checked:a},m(Ud,be({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":hf(a),onSelect:El(r.onSelect,(function(){var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),nf="MenuItemIndicator",rf=ud(wd(nf,{checked:!1}),2),of=rf[0],af=rf[1],lf=i((function(e,t){var n=e.__scopeMenu,r=e.forceMount,o=ld(e,["__scopeMenu","forceMount"]),a=af(nf,n);return m(Zc,{present:r||vf(a.checked)||!0===a.checked},m(tu.span,be({},o,{ref:t,"data-state":hf(a.checked)})))})),uf=i((function(e,t){e.__scopeMenu;var n=ld(e,["__scopeMenu"]);return m(tu.div,be({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))})),cf=i((function(e,t){var n=e.__scopeMenu,r=ld(e,["__scopeMenu"]),o=Ed(n);return m(Lc,be({},o,r,{ref:t}))})),sf="MenuSub",df=ud(wd(sf),2),ff=df[0],mf=df[1],pf="MenuSubTrigger";function gf(e){return e?"open":"closed"}function vf(e){return"indeterminate"===e}function hf(e){return vf(e)?"indeterminate":e?"checked":"unchecked"}function bf(e){return function(t){return"mouse"===t.pointerType?e(t):void 0}}var yf=function(e){var t=e.__scopeMenu,i=e.open,l=void 0!==i&&i,u=e.children,c=e.dir,s=e.onOpenChange,d=e.modal,f=void 0===d||d,p=Ed(t),g=ud(n(null),2),v=g[0],h=g[1],b=r(!1),y=Ll(s),x=cu(c);return o((function(){var e=function(){b.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=function(){return b.current=!1};return document.addEventListener("keydown",e,{capture:!0}),function(){document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),m(Tc,p,m(Fd,{scope:t,open:l,onOpenChange:y,content:v,onContentChange:h},m(Id,{scope:t,onClose:a((function(){return y(!1)}),[y]),isUsingKeyboardRef:b,dir:x,modal:f},u)))},xf=kd,wf=function(e){var t=e.__scopeMenu,n=e.forceMount,r=e.children,o=e.container,a=Bd(Nd,t);return m(Pd,{scope:t,forceMount:n},m(Zc,{present:n||a.open},m(Vc,{asChild:!0,container:o},r)))},Cf=Vd,Ef=_d,Df=Ud,Af=Qd,Ff=ef,Bf=tf,Of=lf,If=uf,jf=cf,kf=function(e){var t=e.__scopeMenu,r=e.children,a=e.open,i=void 0!==a&&a,l=e.onOpenChange,u=Bd(sf,t),c=Ed(t),s=ud(n(null),2),d=s[0],f=s[1],p=ud(n(null),2),g=p[0],v=p[1],h=Ll(l);return o((function(){return!1===u.open&&h(!1),function(){return h(!1)}}),[u.open,h]),m(Tc,c,m(Fd,{scope:t,open:i,onOpenChange:h,content:g,onContentChange:v},m(ff,{scope:t,contentId:Ju(),triggerId:Ju(),trigger:d,onTriggerChange:f},r)))},Nf=i((function(e,t){var n=Bd(pf,e.__scopeMenu),i=jd(pf,e.__scopeMenu),l=mf(pf,e.__scopeMenu),u=Gd(pf,e.__scopeMenu),c=r(null),s=u.pointerGraceTimerRef,d=u.onPointerGraceIntentChange,f={__scopeMenu:e.__scopeMenu},p=a((function(){c.current&&window.clearTimeout(c.current),c.current=null}),[]);return o((function(){return p}),[p]),o((function(){var e=s.current;return function(){window.clearTimeout(e),d(null)}}),[s,d]),m(kd,be({asChild:!0},f),m(Jd,be({id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":gf(n.open)},e,{ref:Fl(t,l.onTriggerChange),onClick:function(t){var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:El(e.onPointerMove,bf((function(t){u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout((function(){n.onOpenChange(!0),p()}),100))}))),onPointerLeave:El(e.onPointerLeave,bf((function(e){var t;p();var r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o,a=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===a,l=i?-5:5,c=r[i?"left":"right"],d=r[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:d,y:r.top},{x:d,y:r.bottom},{x:c,y:r.bottom}],side:a}),window.clearTimeout(s.current),s.current=window.setTimeout((function(){return u.onPointerGraceIntentChange(null)}),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}}))),onKeyDown:El(e.onKeyDown,(function(t){var r,o=""!==u.searchRef.current;e.disabled||o&&" "===t.key||pd[i.dir].includes(t.key)&&(n.onOpenChange(!0),null===(r=n.content)||void 0===r||r.focus(),t.preventDefault())}))})))})),Sf=i((function(e,t){var n=Td(Rd,e.__scopeMenu),o=e.forceMount,a=void 0===o?n.forceMount:o,i=ld(e,["forceMount"]),l=Bd(Rd,e.__scopeMenu),u=jd(Rd,e.__scopeMenu),c=mf("MenuSubContent",e.__scopeMenu),s=r(null),d=Bl(t,s);return m(bd.Provider,{scope:e.__scopeMenu},m(Zc,{present:a||l.open},m(bd.Slot,{scope:e.__scopeMenu},m(Zd,be({id:c.contentId,"aria-labelledby":c.triggerId},i,{ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:function(e){var t;u.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:function(e){return e.preventDefault()},onFocusOutside:El(e.onFocusOutside,(function(e){e.target!==c.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:El(e.onEscapeKeyDown,(function(e){u.onClose(),e.preventDefault()})),onKeyDown:El(e.onKeyDown,(function(e){var t,n=e.currentTarget.contains(e.target),r=gd[u.dir].includes(e.key);n&&r&&(l.onOpenChange(!1),null===(t=c.trigger)||void 0===t||t.focus(),e.preventDefault())}))})))))}));function Pf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tf(e,t,n[t])}))}return e}function Mf(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Lf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vf="DropdownMenu",Wf=Gf(Pl(Vf,[Cd]),2),zf=Wf[0];Wf[1];var Zf=Cd(),Xf=Gf(zf(Vf),2),_f=Xf[0],Hf=Xf[1],Yf=function(e){var t=e.__scopeDropdownMenu,n=e.children,o=e.dir,i=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.modal,s=void 0===c||c,d=Zf(t),f=r(null),p=Gf(Wl({prop:i,defaultProp:l,onChange:u}),2),g=p[0],v=void 0!==g&&g,h=p[1];return m(_f,{scope:t,triggerId:Ju(),triggerRef:f,contentId:Ju(),open:v,onOpenChange:h,onOpenToggle:a((function(){return h((function(e){return!e}))}),[h]),modal:s},m(yf,be({},d,{open:v,onOpenChange:h,dir:o,modal:s}),n))},Uf=i((function(e,t){var n=e.__scopeDropdownMenu,r=e.disabled,o=void 0!==r&&r,a=Lf(e,["__scopeDropdownMenu","disabled"]),i=Hf("DropdownMenuTrigger",n),l=Zf(n);return m(xf,be({asChild:!0},l),m(tu.button,be({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},a,{ref:Fl(t,i.triggerRef),onPointerDown:El(e.onPointerDown,(function(e){o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:El(e.onKeyDown,(function(e){o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Jf=function(e){var t=e.__scopeDropdownMenu,n=Lf(e,["__scopeDropdownMenu"]),r=Zf(t);return m(wf,be({},r,n))},Qf=i((function(e,t){var n=e.__scopeDropdownMenu,o=Lf(e,["__scopeDropdownMenu"]),a=Hf("DropdownMenuContent",n),i=Zf(n),l=r(!1);return m(Cf,be({id:a.contentId,"aria-labelledby":a.triggerId},i,o,{ref:t,onCloseAutoFocus:El(e.onCloseAutoFocus,(function(e){var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:El(e.onInteractOutside,(function(e){var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(l.current=!0)})),style:Mf(Rf({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))})),qf=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Ef,be({},o,r,{ref:t}))})),Kf=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Df,be({},o,r,{ref:t}))})),$f=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Af,be({},o,r,{ref:t}))})),em=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Ff,be({},o,r,{ref:t}))})),tm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Bf,be({},o,r,{ref:t}))})),nm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Of,be({},o,r,{ref:t}))})),rm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(If,be({},o,r,{ref:t}))})),om=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(jf,be({},o,r,{ref:t}))})),am=function(e){var t=e.__scopeDropdownMenu,n=e.children,r=e.open,o=e.onOpenChange,a=e.defaultOpen,i=Zf(t),l=Gf(Wl({prop:r,defaultProp:a,onChange:o}),2),u=l[0],c=void 0!==u&&u,s=l[1];return m(kf,be({},i,{open:c,onOpenChange:s}),n)},im=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Nf,be({},o,r,{ref:t}))})),lm=i((function(e,t){var n=e.__scopeDropdownMenu,r=Lf(e,["__scopeDropdownMenu"]),o=Zf(n);return m(Sf,be({},o,r,{ref:t,style:Mf(Rf({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))})),um=function(e){var n=e.children,r=e.direction,o=t.useState(!0),a=o[0],i=o[1],l=t.useState(!1);l[0],l[1];var u=t.useState("pedro"),c=u[0],s=u[1],d={items:[{label:"New Tab",shortcut:"ctrl + T",disabled:!1},{label:"New Windows",shortcut:"ctrl + N",disabled:!1},{label:"New Private Window",shortcut:"⇧+ctrl+N",disabled:!0}],checkboxes:[{label:"Show Bookmarks",shortcut:"ctrl + B",disabled:!1},{label:"Show Something",shortcut:"ctrl + C",disabled:!1},{label:"Show that",shortcut:"ctrl + T",disabled:!1}]};return t.createElement(Yf,{dir:r},t.createElement(Uf,{asChild:!0},n),t.createElement(Jf,null,t.createElement(Qf,{className:"min-w-[220px] rounded bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",sideOffset:5},d.items.map((function(e,n){return t.createElement(Kf,{key:n,className:"group relative flex h-[25px] select-none items-center justify-between rounded-inner px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1 ",disabled:e.disabled},e.label,t.createElement("div",{className:" text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},e.shortcut))})),t.createElement(am,null,t.createElement(im,{className:" group relative flex h-[25px] select-none items-center rounded-inner justify-between flex-row px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[highlighted]:data-[state=open]:bg-violet-9 data-[state=open]:bg-violet-4 data-[disabled]:text-mauve-8 data-[highlighted]:data-[state=open]:text-violet-1 data-[highlighted]:text-violet-1 data-[state=open]:text-violet-11 ltr:pl-[25px] rtl:pl-[0px] "},"More Tools",t.createElement("div",{className:"ltr:ml-auto rtl:pr-[5px] ltr:pl-[0px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white rtl:mr-auto rtl:rotate-180 rtl:pl-[0px]"},t.createElement("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})))),t.createElement(Jf,null,t.createElement(lm,{className:"min-w-[220px] rounded-inner bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",sideOffset:2,alignOffset:-5},t.createElement(Kf,{className:"group relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Save Page As…"," ",t.createElement("div",{className:"ml-auto pl-[20px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},"⌘+S")),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Create Shortcut…"),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Name Window…"),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),t.createElement(Kf,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1"},"Developer Tools")))),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),d.checkboxes.map((function(e,n){return t.createElement($f,{key:n,className:"group relative flex h-[25px] select-none items-center justify-between rounded-inner px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",checked:a,onCheckedChange:i},t.createElement(nm,{className:"absolute inline-flex w-[25px] items-center justify-center ltr:left-0 rtl:right-0"},t.createElement("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em"},t.createElement("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))," "),e.label,t.createElement("div",{className:" text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white"},e.shortcut))})),t.createElement(rm,{className:"m-[5px] h-[1px] bg-violet-6"}),t.createElement(qf,{className:"pl-[25px] text-xs leading-[25px] text-mauve-11"},"People"),t.createElement(em,{value:c,onValueChange:s},t.createElement(tm,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",value:"pedro"},t.createElement(nm,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center"},t.createElement("svg",{"aria-label":"Filled Dot",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},t.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:"currentColor"}))," "),"Pedro Duarte"),t.createElement(tm,{className:"relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",value:"colm"},t.createElement(nm,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center"},t.createElement("svg",{"aria-label":"Filled Dot",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},t.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:"currentColor"}))," "),"Colm Tuite")),t.createElement(om,{className:"fill-white"}))))},cm=function(e){return t.createElement("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400"},e.withLogo?t.createElement("a",{href:e.onLogoClicked},t.createElement("div",{className:"cursor-pointer"},t.createElement("image",{href:e.logoURL,width:100,height:50}))):null,t.createElement("div",null,e.version),e.credits?e.credits:null)},sm=function(e){var n=e.orientation,r=void 0===n?"horizontal":n,o=N(e,["orientation"]);return t.createElement("div",{className:j({vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"}[r]," flex-wrap justify-start gap-4")},o.steps.map((function(e,n){return t.createElement("div",{key:n,className:"my-2 flex w-auto flex-row flex-wrap justify-start "},t.createElement("div",{className:"vertical"===r?"flex w-full flex-row items-center":n+1===o.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"},t.createElement("div",{className:"flex flex-row gap-2 "},t.createElement("div",{className:j("ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",n+1<=o.currentStep?"bg-buttonPrimary-500 text-white":"bg-buttonPrimary-200")},n+1<=o.currentStep?t.createElement("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"white","stroke-width":"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em"},t.createElement("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})):n+1),t.createElement("div",{className:"whitespace-nowrap"},e))))})))},dm=function(e){var n=e.variant,r=void 0===n?"default":n,o=N(e,["variant"]);return t.createElement("div",{onClick:o.handleClick,className:j("flex transition-all flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit",{full:"w-full",min:"w-fit",normal:"w-full max-w-[200px]"}[o.width],{plain:"",default:"border bg-card text-card-foreground shadow-sm",contained:"bg-layoutPrimary-500",outlined:"ring-2 w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white",dropshadow:"bg-white drop-shadow-md"}[r],o.handleClick?"cursor-pointer":"cursor-default",o.handleClick&&"dropshadow"===r?"hover:drop-shadow-lg":""),style:{backgroundColor:o.color?o.color:"contained"===r?"var(--layout-primary-500)":""}},o.icon&&t.createElement("div",{className:"mb-2"},o.icon," "),t.createElement("div",null,o.label),o.isLoading?t.createElement(M,null):t.createElement("div",{className:"text-2xl font-bold"},o.number),o.helperText?t.createElement("div",{className:"text-xs text-muted-foreground"},o.helperText):null)},fm=function(e){var r=e.tabs;e.language;var o=e.code,a=e.fileName,i=e.width,l=void 0===i?"full":i,u=n(0),c=u[0],s=u[1],d=n(0);d[0],d[1];var f=n(!1),m=f[0],p=f[1];return t.createElement("div",{className:j({full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"}[l],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base")}," ",r&&t.createElement("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white"},r.map((function(e,n){return t.createElement("div",{className:j(c===n?"dark:border-buttonPrimary-400 border-b-2 border-buttonPrimary-700":"bg-transparent")},t.createElement("div",{onClick:function(){return s(n)},className:j("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500")},e.title))}))),a&&t.createElement("div",{className:"flex flex-row gap-2 rounded-t p-2 pb-0 text-black bg-gray-100 dark:bg-gray-700 dark:text-white"},t.createElement("div",{className:j("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]")},a)),t.createElement("pre",null,t.createElement("code",{className:j("flex w-full flex-row items-start justify-between rounded bg-gray-200 p-2 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base")},t.createElement("div",{className:"flex min-h-[37.75px] w-full flex-col justify-center p-4 "},r?r[c].code:o),t.createElement("div",{className:"flex flex-row items-center gap-2 p-2"},t.createElement("div",{className:j("transition-all",m?"opacity-100":"opacity-0")},"Copied!"),t.createElement(Y,{variant:"outlined",color:"dark",onClick:function(){m||(p(!0),console.log("copy button clicked"),setTimeout((function(){p(!1)}),2e3)),navigator.clipboard.writeText(r?r[c].code:o)},margins:"none"},t.createElement("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em"},t.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),t.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})))))))},mm=function(){var e=n(""),r=e[0],o=e[1];return t.createElement("div",{className:"relative inline-block text-left"},t.createElement("span",{className:"rounded-md shadow-sm"},t.createElement("input",{type:"date",value:r,onChange:function(e){o(e.target.value)},className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})))},pm={exports:{}},gm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vm=Function.call.bind(Object.prototype.hasOwnProperty);function hm(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ym=function(){};if("production"!==process.env.NODE_ENV){var xm=gm,wm={},Cm=vm;ym=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function Em(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(Cm(e,a)){var i;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+bm(e[a])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[a](t,a,r,n,null,xm)}catch(e){i=e}if(i&&!hm(i,Error)&&ym((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+(void 0===i?"undefined":bm(i))+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),hm(i,Error)&&!(i.message in wm)){wm[i.message]=!0;var u=o?o():"";ym("Failed "+n+" type: "+i.message+(null!=u?u:""))}}}Em.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wm={})};var Dm=Em;function Am(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Fm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Bm=Tt.exports,Om=D,Im=gm,jm=vm,km=Dm,Nm=function(){};function Sm(){return null}"production"!==process.env.NODE_ENV&&(Nm=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var Pm=gm;function Tm(){}function Rm(){}Rm.resetWarningCache=Tm;if("production"!==process.env.NODE_ENV){var Mm=Tt.exports;pm.exports=function(e,t){var n=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},r=function(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""},o=function(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function a(a,i,l,u,c,s,d){if(u=u||m,s=s||l,d!==Im){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=u+":"+l;!n[p]&&o<3&&(Nm("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[p]=!0,o++)}}return null==i[l]?a?null===i[l]?new r("The "+c+" `"+s+"` is marked as required in `"+u+"`, but its value is `null`."):new r("The "+c+" `"+s+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(i,l,u,c,s)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i},a=function(e){return o((function(t,n,o,a,i,c){var s=t[n];if(l(s)!==e){var d=u(s);return new r("Invalid "+a+" `"+i+"` of type `"+d+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e})}return null}))},i=function(e,t,n,o,a){return new r((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")},l=function(e){var t=void 0===e?"undefined":Fm(e);return Array.isArray(e)?"array":Am(e,RegExp)?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||!("function"!=typeof Symbol||!Am(t,Symbol)))}(t,e)?"symbol":t},u=function(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(Am(e,Date))return"date";if(Am(e,RegExp))return"regexp"}return t},c=function(e){var t=u(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}},s=function(e){return e.constructor&&e.constructor.name?e.constructor.name:m},d="function"==typeof Symbol&&Symbol.iterator,f="@@iterator",m="<<anonymous>>",p={array:a("array"),bigint:a("bigint"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:o(Sm),arrayOf:function(e){return o((function(t,n,o,a,i){if("function"!=typeof e)return new r("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var c=l(u);return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an array.")}for(var s=0;s<u.length;s++){var d=e(u,s,o,a,i+"["+s+"]",Im);if(Am(d,Error))return d}return null}))},element:o((function(t,n,o,a,i){var u=t[n];if(!e(u)){var c=l(u);return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected a single ReactElement.")}return null})),elementType:o((function(e,t,n,o,a){var i=e[t];if(!Bm.isValidElementType(i)){var u=l(i);return new r("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null})),instanceOf:function(e){return o((function(t,n,o,a,i){if(!Am(t[n],e)){var l=e.name||m,u=s(t[n]);return new r("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected instance of `"+l+"`.")}return null}))},node:o((function(e,t,n,o,a){return g(e[t])?null:new r("Invalid "+o+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return o((function(t,n,o,a,i){if("function"!=typeof e)return new r("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=t[n],c=l(u);if("object"!==c)return new r("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(jm(u,s)){var d=e(u,s,o,a,i+"."+s,Im);if(Am(d,Error))return d}return null}))},oneOf:function(e){return Array.isArray(e)?o((function(t,o,a,i,l){for(var c=t[o],s=0;s<e.length;s++)if(n(c,e[s]))return null;var d=JSON.stringify(e,(function(e,t){return"symbol"===u(t)?String(t):t}));return new r("Invalid "+i+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+d+".")})):("production"!==process.env.NODE_ENV&&Nm(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),Sm)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Nm("Invalid argument supplied to oneOfType, expected an instance of array."),Sm;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return Nm("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+c(n)+" at index "+t+"."),Sm}return o((function(t,n,o,a,i){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,o,a,i,Im);if(null==c)return null;c.data&&jm(c.data,"expectedType")&&l.push(c.data.expectedType)}var s=l.length>0?", expected one of type ["+l.join(", ")+"]":"";return new r("Invalid "+a+" `"+i+"` supplied to `"+o+"`"+s+".")}))},shape:function(e){return o((function(t,n,o,a,c){var s=t[n],d=l(s);if("object"!==d)return new r("Invalid "+a+" `"+c+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");for(var f in e){var m=e[f];if("function"!=typeof m)return i(o,a,c,f,u(m));var p=m(s,f,o,a,c+"."+f,Im);if(p)return p}return null}))},exact:function(e){return o((function(t,n,o,a,c){var s=t[n],d=l(s);if("object"!==d)return new r("Invalid "+a+" `"+c+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");var f=Om({},t[n],e);for(var m in f){var p=e[m];if(jm(e,m)&&"function"!=typeof p)return i(o,a,c,m,u(p));if(!p)return new r("Invalid "+a+" `"+c+"` key `"+m+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(s,m,o,a,c+"."+m,Im);if(g)return g}return null}))}};function g(t){switch(void 0===t?"undefined":Fm(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(d&&e[d]||e[f]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!g(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}return r.prototype=Error.prototype,p.checkPropTypes=km,p.resetWarningCache=km.resetWarningCache,p.PropTypes=p,p}(Mm.isElement,!0)}else pm.exports=function(){var e=function(e,t,n,r,o,a){if(a!==Pm){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}},t=function(){return e};e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Rm,resetWarningCache:Tm};return n.PropTypes=n,n}();var Lm=pm.exports,Gm=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Vm(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Gm.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Wm=[".DS_Store","Thumbs.db"];function zm(e){return"object"==typeof e&&null!==e}function Zm(e){return Ym(e.target.files).map((function(e){return Vm(e)}))}function Xm(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Vm(e)}))]}}))}))}function _m(e,t){return S(this,void 0,void 0,(function(){var n;return P(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=Ym(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Um))]):[3,2];case 1:return[2,Hm(Jm(r.sent()))];case 2:return[2,Hm(Ym(e.files).map((function(e){return Vm(e)})))]}}))}))}function Hm(e){return e.filter((function(e){return-1===Wm.indexOf(e.name)}))}function Ym(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Um(e){if("function"!=typeof e.webkitGetAsEntry)return Qm(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Km(t):Qm(e)}function Jm(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(T(arguments[t]));return e}(e,Array.isArray(t)?Jm(t):[t])}),[])}function Qm(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Vm(t);return Promise.resolve(n)}function qm(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return[2,e.isDirectory?Km(e):$m(e)]}))}))}function Km(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return S(a,void 0,void 0,(function(){var a,i,l;return P(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(qm)),r.push(l),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function $m(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Vm(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var ep=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):o===t}))}return!0};function tp(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach((function(t){op(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function op(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ap(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ip(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lp=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},up=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},cp=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},sp={code:"too-many-files",message:"Too many files"};function dp(e,t){var n="application/x-moz-file"===e.type||ep(e,t);return[n,n?null:lp(t)]}function fp(e,t,n){if(mp(e.size))if(mp(t)&&mp(n)){if(e.size>n)return[!1,up(n)];if(e.size<t)return[!1,cp(t)]}else{if(mp(t)&&e.size<t)return[!1,cp(t)];if(mp(n)&&e.size>n)return[!1,up(n)]}return[!0,null]}function mp(e){return null!=e}function pp(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function gp(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function vp(e){e.preventDefault()}function hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!pp(e)&&t&&t.apply(void 0,[e].concat(r)),pp(e)}))}}function bp(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return rp(rp({},e),{},op({},t,[]))}),{}):{}}]}var yp=["children"],xp=["open"],wp=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Cp=["refKey","onChange","onClick"];function Ep(e){return function(e){if(Array.isArray(e))return Fp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ap(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||Ap(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){if(e){if("string"==typeof e)return Fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fp(e,t):void 0}}function Fp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(n),!0).forEach((function(t){Ip(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var kp=i((function(e,n){var r=e.children,o=Pp(jp(e,yp)),a=o.open,i=jp(o,xp);return b(n,(function(){return{open:a}}),[a]),t.createElement(f,null,r(Op(Op({},i),{},{open:a})))}));kp.displayName="Dropzone";var Np={disabled:!1,getFilesFromEvent:function(e){return S(this,void 0,void 0,(function(){return P(this,(function(t){return zm(e)&&zm(e.dataTransfer)?[2,_m(e.dataTransfer,e.type)]:function(e){return zm(e)&&zm(e.target)}(e)?[2,Zm(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Xm(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};kp.defaultProps=Np,kp.propTypes={children:Lm.func,accept:Lm.oneOfType([Lm.string,Lm.arrayOf(Lm.string)]),multiple:Lm.bool,preventDropOnDocument:Lm.bool,noClick:Lm.bool,noKeyboard:Lm.bool,noDrag:Lm.bool,noDragEventsBubbling:Lm.bool,minSize:Lm.number,maxSize:Lm.number,maxFiles:Lm.number,disabled:Lm.bool,getFilesFromEvent:Lm.func,onFileDialogCancel:Lm.func,onFileDialogOpen:Lm.func,useFsAccessApi:Lm.bool,onDragEnter:Lm.func,onDragLeave:Lm.func,onDragOver:Lm.func,onDrop:Lm.func,onDropAccepted:Lm.func,onDropRejected:Lm.func,validator:Lm.func};var Sp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Pp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Op(Op({},Np),e),n=t.accept,i=t.disabled,l=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,d=t.multiple,f=t.maxFiles,m=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,C=t.useFsAccessApi,E=t.preventDropOnDocument,D=t.noClick,A=t.noKeyboard,F=t.noDrag,B=t.noDragEventsBubbling,O=t.validator,I=s((function(){return"function"==typeof w?w:Rp}),[w]),j=s((function(){return"function"==typeof x?x:Rp}),[x]),k=r(null),N=r(null),S=Dp(h(Tp,Sp),2),P=S[0],T=S[1],R=P.isFocused,M=P.isFileDialogActive,L=P.draggedFiles,G=r("undefined"!=typeof window&&window.isSecureContext&&C&&"showOpenFilePicker"in window),V=function(){!G.current&&M&&setTimeout((function(){N.current&&(N.current.files.length||(T({type:"closeDialog"}),j()))}),300)};o((function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}}),[N,M,j,G]);var W=r([]),z=function(e){k.current&&k.current.contains(e.target)||(e.preventDefault(),W.current=[])};o((function(){return E&&(document.addEventListener("dragover",vp,!1),document.addEventListener("drop",z,!1)),function(){E&&(document.removeEventListener("dragover",vp),document.removeEventListener("drop",z))}}),[k,E]);var Z=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Ep(W.current),[e.target]),gp(e)&&Promise.resolve(l(e)).then((function(t){pp(e)&&!B||(T({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),m&&m(e))}))}),[l,m,B]),X=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=gp(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&g&&g(e),!1}),[g,B]),_=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return k.current&&k.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(T({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),gp(e)&&p&&p(e))}),[k,p,B]),H=a((function(e,t){var r=[],o=[];e.forEach((function(e){var t=Dp(dp(e,n),2),a=t[0],i=t[1],l=Dp(fp(e,c,u),2),s=l[0],d=l[1],f=O?O(e):null;if(a&&s&&!f)r.push(e);else{var m=[i,d];f&&(m=m.concat(f)),o.push({file:e,errors:m.filter((function(e){return e}))})}})),(!d&&r.length>1||d&&f>=1&&r.length>f)&&(r.forEach((function(e){o.push({file:e,errors:[sp]})})),r.splice(0)),T({acceptedFiles:r,fileRejections:o,type:"setFiles"}),v&&v(r,o,t),o.length>0&&y&&y(o,t),r.length>0&&b&&b(r,t)}),[T,d,n,c,u,f,v,b,y,O]),Y=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],gp(e)&&Promise.resolve(l(e)).then((function(t){pp(e)&&!B||H(t,e)})),T({type:"reset"})}),[l,H,B]),U=a((function(){if(G.current){T({type:"openDialog"}),I();var e={multiple:d,types:bp(n)};window.showOpenFilePicker(e).then((function(e){return l(e)})).then((function(e){H(e,null),T({type:"closeDialog"})})).catch((function(e){!function(e){return tp(e,DOMException)&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return tp(e,DOMException)&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(G.current=!1,N.current&&(N.current.value=null,N.current.click())):(j(e),T({type:"closeDialog"}))}))}else N.current&&(T({type:"openDialog"}),I(),N.current.value=null,N.current.click())}),[T,I,j,C,H,n,d]),J=a((function(e){k.current&&k.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),U()))}),[k,U]),Q=a((function(){T({type:"focus"})}),[]),q=a((function(){T({type:"blur"})}),[]),K=a((function(){D||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?U():setTimeout(U,0))}),[D,U]),$=function(e){return i?null:e},ee=function(e){return A?null:$(e)},te=function(e){return F?null:$(e)},ne=function(e){B&&e.stopPropagation()},re=s((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,l=e.onBlur,u=e.onClick,c=e.onDragEnter,s=e.onDragOver,d=e.onDragLeave,f=e.onDrop,m=jp(e,wp);return Op(Op(Ip({onKeyDown:ee(hp(o,J)),onFocus:ee(hp(a,Q)),onBlur:ee(hp(l,q)),onClick:$(hp(u,K)),onDragEnter:te(hp(c,Z)),onDragOver:te(hp(s,X)),onDragLeave:te(hp(d,_)),onDrop:te(hp(f,Y)),role:"string"==typeof r&&""!==r?r:"button"},n,k),i||A?{}:{tabIndex:0}),m)}}),[k,J,Q,q,K,Z,X,_,Y,A,F,i]),oe=a((function(e){e.stopPropagation()}),[]),ae=s((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=jp(e,Cp);return Op(Op({},Ip({accept:n,multiple:d,type:"file",style:{display:"none"},onChange:$(hp(o,Y)),onClick:$(hp(a,oe)),tabIndex:-1},r,N)),i)}}),[N,n,d,Y,i]),ie=L.length,le=ie>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=ap(dp(e,n),1)[0],a=ap(fp(e,r,o),1)[0];return t&&a}))}({files:L,accept:n,minSize:c,maxSize:u,multiple:d,maxFiles:f}),ue=ie>0&&!le;return Op(Op({},P),{},{isDragAccept:le,isDragReject:ue,isFocused:R&&!i,getRootProps:re,getInputProps:ae,rootRef:k,inputRef:N,open:$(U)})}function Tp(e,t){switch(t.type){case"focus":return Op(Op({},e),{},{isFocused:!0});case"blur":return Op(Op({},e),{},{isFocused:!1});case"openDialog":return Op(Op({},Sp),{},{isFileDialogActive:!0});case"closeDialog":return Op(Op({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Op(Op({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Op(Op({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Op({},Sp);default:return e}}function Rp(){}var Mp=function(e){var r,a,i=e.texts,l=e.files,u=e.setFiles;e.setDeletedFiles,e.onAcceptedFiles,e.errorMessages;var c=e.maxFiles,s=e.accept,d=e.showPreview,f=e.onDeleteFile;e.onClearFiles;var m=e.maxSize,p=e.label,g=n(0),v=g[0],h=g[1],b=n(0),y=b[0],x=b[1],w=Pp({multiple:!0,accept:s,maxSize:m,maxFiles:c,onDrop:function(e){u(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),C=w.getRootProps,E=w.getInputProps,D=w.fileRejections,A=w.acceptedFiles,F=w.isDragActive;o((function(){return function(){null==l||l.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[l]),o((function(){u(A)}),[A,v]);o((function(){if(m>0){var e=Math.floor(Math.log(m)/Math.log(1024));x(parseFloat((m/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[m]);var B=D.map((function(e,n){switch(e.errors[0].code){case"file-too-large":return t.createElement(ul,{text:e.file.name,title:i.fileTooLarge,severity:"error"});case"too-many-files":return t.createElement(ul,{text:e.file.name,title:i.tooManyFiles,severity:"error"});case"file-invalid-type":return t.createElement(ul,{text:e.file.name,title:i.invalidFileType,severity:"error"});default:return t.createElement(ul,{text:e.file.name,title:e.errors[0].code,severity:"error"})}})),O=null==l?void 0:l.map((function(e,n){return t.createElement("div",{className:"relative rounded"},t.createElement("button",{onClick:function(t){t.stopPropagation(),A.splice(A.indexOf(e),1),h(Math.random),f(e)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal"},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),t.createElement("span",{className:"sr-only"},"Close modal")),t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(e.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg",key:e.name}))}));return t.createElement("div",null,p&&t.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},p),t.createElement("div",{className:j("flex flex-col justify-center rounded border border-dashed border-black transition-all hover:bg-gray-100 ",F?"bg-layoutPrimary-500":"bg-white")},t.createElement("div",C({}),t.createElement("p",E()),t.createElement("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center"},t.createElement("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1.5em",width:"1.5em"},t.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),t.createElement("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),t.createElement("path",{d:"M3 3l0 .01"}),t.createElement("path",{d:"M7 3l0 .01"}),t.createElement("path",{d:"M11 3l0 .01"}),t.createElement("path",{d:"M15 3l0 .01"}),t.createElement("path",{d:"M3 7l0 .01"}),t.createElement("path",{d:"M3 11l0 .01"}),t.createElement("path",{d:"M3 15l0 .01"})),t.createElement(i.clickHereToUpload,null)),t.createElement("div",{className:"pt-2 text-center text-xs"},i.acceptedFileTypes," ",s.split(",")),t.createElement("div",{className:"pb-2 pt-1 text-center text-xs"},i.maxFileSize," ",y)),A.length>0&&t.createElement("div",{className:"flex justify-center rounded-lg p-2 "},t.createElement(Y,{onClick:function(){A.length=0,u([])}},"Clear All")),A.length>0&&O&&d?t.createElement("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2"},O):null,t.createElement("div",{className:"px-4"},(null===(a=null===(r=D[0])||void 0===r?void 0:r.errors[0])||void 0===a?void 0:a.code)&&B)))},Lp=function(e){return t.createElement("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4"},t.createElement("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},t.createElement("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}))),t.createElement("div",{className:"p-4"},e.children))},Gp=function(e){var r=e.subsections,o=n(null),a=o[0],i=o[1];return t.createElement("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 "},r.map((function(e,n){return t.createElement("div",{key:n,className:"my-0"},e.title&&t.createElement("div",{className:"my-4 font-bold"},e.title),e.sections.map((function(e,n){return t.createElement(Vp,{key:n,onItemClick:function(){return i(e.value)},selected:a,value:e.value,icon:e.icon,title:e.label,chip:"Upgrade"})})))})))},Vp=function(e){var n=e.title,r=e.value,o=e.icon,a=e.chip,i=e.selected,l=e.onItemClick;return t.createElement("div",{onClick:l,className:j("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",i===r?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-300")},t.createElement("div",{className:"flex w-full flex-row items-center justify-start gap-2"},o," ",t.createElement("span",null,n)),a&&t.createElement(K,{label:"Upgrade",size:"normal"})," ")},Wp=function(e){var n;return t.createElement("div",{className:"flex w-full flex-col gap-0 border p-4"},t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("span",{className:"bg-white-200"},e.title),e.tooltip&&t.createElement(L,{content:e.tooltip,position:"right-top"},t.createElement("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})))),t.createElement("div",{className:"bg-white-100 flex flex-row"},t.createElement("div",null,e.currentUsage),t.createElement("div",null," (",e.percent,"%)")),t.createElement("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700"},t.createElement("div",{className:"h-2.5 rounded-full bg-buttonPrimary-500",style:{width:"".concat(null!==(n=e.percent)&&void 0!==n?n:0,"%")}})))},zp=function(e){var r,o=e.direction,a=void 0===o?"ltr":o,i=e.texts,l=void 0===i?{total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"}:i,u=N(e,["direction","texts"]),c=function(e){return t.createElement("div",{className:j(e.start?"items-start":"items-end","flex w-full flex-col")},t.createElement("div",{className:" text-sm text-gray-500"},e.label),t.createElement("div",{className:" whitespace-nowrap"},e.text))},s=n(!1),d=s[0],f=s[1];return t.createElement("div",{className:"flex w-full flex-col"},t.createElement("div",{className:"flex w-full flex-row items-center gap-2 border p-4 "},u.invoiceActions&&t.createElement("div",{className:j("transition-all hover:cursor-pointer ","rtl"===a?"rotate-180":"",d?"rotate-90":""),onClick:function(){return f(!d)}},t.createElement("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em"},t.createElement("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"}))),t.createElement("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:function(){return f(!d)}},t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("span",{className:"bg-white-200"},u.invoiceTitle),u.status&&t.createElement(K,{size:"small",label:u.status})),t.createElement("div",{className:"font-sm text-gray-400"},u.invoiceSubtitle)),t.createElement("div",{className:"flex flex-row items-center gap-2"},t.createElement("div",{className:"whitespace-nowrap"},u.total),t.createElement(cl,{direction:a,position:"rtl"===a?"bottom-right":"bottom-left",menuItems:u.invoiceActions},t.createElement("div",{className:" p-2"},t.createElement("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em"},t.createElement("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})))))),d&&t.createElement("div",{className:j(d?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all")},t.createElement("div",{className:"border-b pb-2"},u.invoiceDescription),null===(r=u.products)||void 0===r?void 0:r.map((function(e,n){return t.createElement("div",{key:n,className:"flex flex-row border-b pb-4"},t.createElement("div",{className:"w-full"},t.createElement(c,{start:!0,label:l.plan,text:e.plan})),t.createElement("div",{className:"flex w-full flex-row gap-20 "},t.createElement(c,{label:l.usage,text:"".concat(e.usage," SAR")}),t.createElement(c,{label:l.price,text:"".concat(e.price," SAR")}),t.createElement(c,{label:l.amount,text:"".concat(e.amount," SAR")})))})),t.createElement("div",{className:"flex flex-row justify-between"},t.createElement("div",null,l.total)," ",t.createElement("div",null,u.total))))},Zp=function(e){var a=e.position,i=void 0===a?"bottom-right":a,l=N(e,["position"]),u=n(!1),c=u[0],s=u[1],d=n(!1),f=d[0],m=d[1],p=n(null),g=p[0],v=p[1],h=n(5),b=h[0],y=h[1],x=r(null);o((function(){var e=setTimeout((function(){y(b-1)}),1e3);return function(){clearTimeout(e)}}),[b]);var w=function(){s(!0),setTimeout((function(){x.current.removeChild(x.current.children[0])}),200)};return t.createElement("div",{ref:x,className:j("fixed bottom-4",{"bottom-right":"right-4","bottom-left":"left-4"}[i])},t.createElement("div",{className:j("relative flex w-full max-w-sm flex-col gap-2 rounded bg-white p-4 shadow-md transition-all",c?"opacity-0":"opacity-100")},t.createElement("div",{className:"absolute left-2 top-2 p-1.5 text-sm"},l.title),t.createElement("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){return w()}},t.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))),t.createElement("div",{className:"mt-8"},l.question),t.createElement("div",{className:"flex w-full flex-row gap-1 rounded"},l.options.map((function(e){return t.createElement("span",{onClick:function(){l.onOptionClicked(e),v(e),m(!0);var t=setTimeout((function(){s(!0)}),4800);setTimeout((function(){x.current.removeChild(x.current.children[0]),clearTimeout(t)}),5300)},className:j("w-full cursor-pointer rounded border p-4 text-center transition-all ",g===e?"bg-gray-500 text-white":"bg-white hover:bg-gray-100")},e)}))),l.texts&&t.createElement("div",{className:" flex flex-row justify-between text-xs"},t.createElement("span",null,l.texts.least),t.createElement("span",null,l.texts.most)),f&&t.createElement("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all"},t.createElement("span",{className:"font-bold text-white"},"Thank you for your answer. This box will disappear in"," "+b," seconds"),t.createElement("div",{className:"flex flex-row gap-2"},t.createElement(Y,{onClick:function(){return w()}},"Close")))))},Xp=function(e){return t.createElement("svg",{onClick:e.onClick||function(){},className:j("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200","right"===e.direction?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20"},t.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))},_p=function(e){var r=n(e.index||0),a=r[0],i=r[1];return o((function(){console.log("INDEX CHANGED TO: ".concat(a))}),[a]),t.createElement("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md"},t.createElement(Xp,{direction:"left",disabled:0==a,onClick:function(){0!=a&&i(a-1)}}),t.createElement("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 "},t.createElement("div",null,e.items[a].icon),t.createElement("div",{className:"absolute bottom-1 mb-0 mt-2 select-none"},e.items[a].label)),t.createElement(Xp,{direction:"right",disabled:a==e.items.length-1,onClick:function(){a!=e.items.length-1&&i(a+1)}}))},Hp=function(e){return t.createElement("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown},e.name)},Yp={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},Up="",Jp=function(e){var a=n({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),i=a[0],l=a[1],u=r(null),c=r(i),s=function(e){c.current=e,l(e)},d=function(e){for(var t=0;e=e.previousSibling;t++);return t},f=function(e,t){var n=Array.from(e.childNodes).slice(0,t).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0);return n},m=function(e){var t=Array.from(u.current.childNodes).slice(0,e).map((function(e){var t=Array.from(e.childNodes);return f(e,t.length)})).reduce((function(e,t){return e+t}),0);return t},p=function(e){var t=window.getSelection(),n=Array.from(u.current.childNodes);n=n.filter((function(e){return!["#text","BR"].includes(e.nodeName)}));var r=t[e],o=r.parentNode,a=0,i="DIV"==r.nodeName&&Array.from(r.classList).includes("line");if("SPAN"==o.nodeName){var l=d(o);a+=f(o.parentNode,l);var c=d(o.parentNode);a+=m(c)}if(Array.from(o.classList).includes("line")){if("#text"==r.nodeName){l=d(r);a+=f(o,l)}c=d(o);a+=m(c)}if(i){c=d(r);a=m(c)}return o!=u.current||i?a:0},g=function(){if(document.activeElement!=u.current)return[0,0];var e=window.getSelection(),t=p("anchorNode"),n=p("focusNode");return[t+e.anchorOffset,n+e.focusOffset].sort((function(e,t){return e-t}))};o((function(){setTimeout((function(){var e=c.current.revert,t=e[0],n=e[1];if(0!=t||0!=n){for(var r=null,o=null,a=0,i=Array.from(u.current.getElementsByTagName("span")),l=0;l<i.length;l++){var s=i[l],d=s.textContent.length+a;null==r&&t>=a&&t<=d&&(r=i[l],t-=a),null==o&&n>a&&n<=d&&(o=i[l],n-=a),a+=s.textContent.length}var f=document.createRange(),m=window.getSelection();f.setStart(r.firstChild,t),f.setEnd(o.firstChild,n),m.removeAllRanges(),m.addRange(f)}}),1)}),[i.revert]);var v=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},h=function(e){return e.sort((function(e,t){return e-t}))[0]},b=function(e){return e.sort((function(e,t){return t-e}))[0]},y=function(e,t){return e.type!=t.type?-1:t.start<=e.start&&t.finish>=e.finish?0:0==function(e,t){for(var n=new Set,r=0,o=t;r<o.length;r++){var a=o[r];e.has(a)&&n.add(a)}return n}(new Set(v(e.start-1,e.finish-1)),new Set(v(t.start-1,t.finish-1))).size?2:1},x=function(e){var t=c.current.stylings.slice(),n=g(),r=n[0],o=n[1];if(r!=o){for(var a,l={type:e,start:r,finish:o},u=[],d=0;d<t.length;d++){var f=t[d],m=y(l,f);-1!=m&&u.push([m,d,f])}u.find((function(e){var t=e[0];return e[1],e[2],1==t}))?a=function(e,t,n,r){var o=e.filter((function(e){var t=e[0];return e[1],e[2],1==t})).map((function(e){return e[0],[e[1],e[2]]}));o.push([-1,n]);var a=o.map((function(e){return e[0],e[1].start})).sort((function(e,t){return e-t}))[0],i=o.map((function(e){return e[0],e[1].finish})).sort((function(e,t){return t-e}))[0],l=o.map((function(e){return e[0]}));return t=t.filter((function(e,t){return!l.includes(t)})),t.push({type:r,start:a,finish:i}),t}(u,t,l,e):u.find((function(e){var t=e[0];return e[1],e[2],0==t}))?a=function(e,t,n,r){var o=e.find((function(e){var t=e[0];return e[1],e[2],0==t}));o[0];var a=o[1],i=o[2];t=t.filter((function(e,t){return t!=a}));var l=[{type:r,start:h([i.start,n.start]),finish:b([i.start,n.start])},{type:r,start:h([i.finish,n.finish]),finish:b([i.finish,n.finish])}];return l=l.filter((function(e){return e.start!=e.finish})),R(R([],t,!0),l,!0)}(u,t,l,e):(u.find((function(e){var t=e[0];return e[1],e[2],2==t}))||0==u.length)&&(a=R(R([],t,!0),[l],!1)),s(k(k({},i),{stylings:a,revert:[r,o]}))}},w=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var o=e.filter((function(e){var o=e.start,a=e.finish;return t>=o+n&&t<a+r}));return o},C=function(e,t,n){var r=e.filter((function(e){var r=e.start,o=e.finish;return o>t&&r<n||r<n&&o>t}));return r=r.map((function(e){return k(k({},e),{start:b([e.start,t])-t,finish:h([e.finish,n])-t})}))},E=function(e,t,n,r){return void 0===r&&(r=!0),e=e.map((function(e){return e.start>=t&&e.finish>t?(console.log("succeeding"),k(k({},e),{start:e.start+n,finish:e.finish+n})):e.start<t&&e.finish>t?r?k(k({},e),{finish:e.finish+n}):function(e,t,n){return void 0===n&&(n=0),[k(k({},e),{start:e.start,finish:t}),k(k({},e),{start:t+n,finish:e.finish+n})]}(e,t,n):e.finish==t&&r?k(k({},e),{finish:e.finish+n}):e})),e.flat()},D=function(e,t,n){var r=Math.abs(n-t);return(e=e.map((function(e){return e.start>=t&&e.start>=n&&e.finish>=t&&e.finish>=n?k(k({},e),{start:e.start-r,finish:e.finish-r}):e.start>=t&&e.finish<=n?null:e.start<=t&&e.finish>=n?k(k({},e),{finish:e.finish-r}):e.start>t&&e.start<n?k(k({},e),{start:b([e.start,n])-r,finish:e.finish-r}):e.finish>t&&e.finish<n?k(k({},e),{finish:h([e.finish,t])}):e}))).flat().filter((function(e){return e}))},A=function(e,t,n){c.current.events.drop.is&&e.length!=c.current.content.length||(console.log("Changed at: ".concat([t,n])),setTimeout((function(){var r=e.length-c.current.content.length,o=c.current.stylings;o=c.current.events.paste.is?function(e,t,n,r){var o=c.current.events.paste.length,a=n-o;return e=D(e,a,a+o-t),(e=E(e,a,o,!1)).concat(c.current.clipboard.map((function(e){return k(k({},e),{start:e.start+a,finish:e.finish+a})})))}(o,r,t):c.current.events.drop.is?function(e,t,n,r){console.log("Dropped at: ".concat([n,r]));var o=c.current.events.drop.text.length,a=c.current.events.drop.drag,i=a[0],l=a[1],u=n-i,s=C(e,i,l),d=i,f=l;if(u>0&&(e=E(e,m=r,o,!1),e=D(e,d,f)),u<0){var m=n;e=D(e,d,f),e=E(e,m,o,!1)}return e.concat(s.map((function(e){return k(k({},e),{start:e.start+n,finish:e.finish+n})})))}(o,0,t,n):function(e,t,n,r){return 0==t?e:e=t>0?E(e,n-t,t):D(e,n,r+Math.abs(t))}(o,r,t,n),s(k(k({},c.current),{content:e,stylings:o,revert:[t,n],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}))}),0))};o((function(){var e=function(){var e=c.current.content,t=R([],c.current.stylings,!0),n=[],r=e.split("").map((function(e,t){return e==Up?t:null})).filter((function(e){return e}));r.unshift(0),r.push(e.length);for(var o=function(o){var a=r[o],i=r[o+1],l=e.slice(a,i),u=C(t,a,i),c=[],s=u.map((function(e){return[e.start,e.finish]})).flat().sort((function(e,t){return e-t}));s=s.filter((function(e,t){return s.indexOf(e)==t})),0!=s[0]&&s.unshift(0);var d=l.length;s[s.length-1]!=d&&s.push(d);for(var f=0;f<s.length-1;f++){var m=s[f],p=s[f+1];c.push({content:l.substring(m,p),types:w(u,m).map((function(e){return e.type}))})}n.push(c)},a=0;a<r.length-1;a++)o(a);return n}().map((function(e,t){return'<div class="line" data-line-index="'.concat(t,'">').concat(e.map((function(e,t){return'<span class="'.concat(e.types.map((function(e){return Yp[e].css})).join(" "),'" data-child-index="').concat(t,'">').concat(e.content,"</span>")})).join(""),"</div>")})).join("");u.current.innerHTML=e}),[i.content,i.stylings,i.revert]);return t.createElement("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md"},t.createElement("div",{className:j("flex w-full flex-row justify-start p-2")},Object.entries(Yp).map((function(e){var n=e[0],r=e[1];return t.createElement(Hp,{name:r.content,key:"property-".concat(n),onMouseDown:function(e){e.preventDefault(),x(n)}})}))),t.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),t.createElement("div",{className:"selection-ignore box-border w-full p-2"},t.createElement("div",{ref:u,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:function(){switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":case"auto":return"ltr"}}()},onPaste:function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain");t=(t=t.replaceAll("\n","")).replaceAll("\r",""),document.execCommand("insertHTML",!1,t),s(k(k({},c.current),{events:k(k({},c.current.events),{paste:{is:!0,length:t.length}})}))},onInput:function(e){var t=g(),n=t[0],r=t[1],o=e.target.textContent,a=c.current.content,i=e.nativeEvent.inputType;if("insertParagraph"==i){console.log("Inserted new line at [".concat(n,", ").concat(r,"]"));var l=o.split("");l.splice(n,0,Up),0!=n||a.startsWith(Up)||(l.splice(n,0,Up),n+=1,r+=1),o=l.join(""),n+=1,r+=1}else{var u=window.getSelection(),s=u.anchorNode,f=u.focusNode,m=e.nativeEvent.data;if(s.parentNode==f.parentNode&&"SPAN"==s.parentNode.nodeName&&u.anchorOffset<=1&&u.focusOffset<=1&&"insertText"==i){var p=d(s.parentNode.parentNode),v=a;a.startsWith(Up)&&(v=v.slice(1));var h=v.split(Up)[p];console.log(v.split(Up)),(h=h.split("")).splice(0,0,m),h=h.join("");var b=v.split(Up);b[p]=h,o=b.join(Up),a.startsWith(Up)&&(o=Up+o),n+=1,r+=1}}A(o,n,r)},onCopy:function(){var e=g(),t=e[0],n=e[1],r=c.current.stylings.slice();r=C(r,t,n),s(k(k({},i),{clipboard:r}))},onDrop:function(e){var t=e.dataTransfer.getData("text");""!=t.trim()&&s(k(k({},c.current),{events:k(k({},c.current.events),{drop:{is:!0,text:t,drag:g()}})}))}})),t.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),t.createElement("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:function(){(e.onSubmit||function(){})(i.content,i.stylings)}},"Submit"))};
|
|
10
10
|
/*!
|
|
11
11
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
12
12
|
*
|