Plugin Directory

Changeset 3267197


Ignore:
Timestamp:
04/05/2025 09:01:52 AM (11 months ago)
Author:
wpsquad
Message:

update: release version 3.3.2 with new features, asset updates, and bug fixes

Location:
squad-modules-for-divi
Files:
683 added
12 edited

Legend:

Unmodified
Added
Removed
  • squad-modules-for-divi/trunk/build/admin/scripts/app.asset.php

    r3267064 r3267197  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins'), 'version' => '5e06a759869300675684');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins'), 'version' => 'f0a3424ed881ba46a266');
  • squad-modules-for-divi/trunk/build/admin/scripts/app.js

    r3267094 r3267197  
    171171    pointer-events: auto;
    172172  }
    173 `,_r=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:o,children:a,containerStyle:i,containerClassName:s})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,r.useState)(Yn),o=(0,r.useRef)(Yn);(0,r.useEffect)((()=>(o.current!==Yn&&n(Yn),Wn.push(n),()=>{let e=Wn.indexOf(n);e>-1&&Wn.splice(e,1)})),[]);let a=t.toasts.map((t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Zn[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}}));return{...t,toasts:a}})(e);(0,r.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>Xn.dismiss(t.id)),n);t.visible&&Xn.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let o=(0,r.useCallback)((()=>{n&&Gn({type:6,time:Date.now()})}),[n]),a=(0,r.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:a}=n||{},i=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),s=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<s&&e.visible)).length;return i.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return(0,r.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(er.has(e))return;let n=setTimeout((()=>{er.delete(e),Gn({type:4,toastId:e})}),t);er.set(e,n)})(e.id,e.removeDelay);else{let t=er.get(e.id);t&&(clearTimeout(t),er.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:Kn,startPause:Qn,endPause:o,calculateOffset:a}}})(n);return r.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((n=>{let i=n.position||t,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Hn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(i,u.calculateOffset(n,{reverseOrder:e,gutter:o,defaultPosition:t}));return r.createElement(wr,{id:n.id,key:n.id,onHeightUpdate:u.updateHeight,className:n.visible?xr:"",style:s},"custom"===n.type?Un(n.message,n):a?a(n):r.createElement(br,{toast:n,position:i}))})))},Cr=Xn;const kr=()=>(0,cn.jsx)(_r,{position:"top-right",reverseOrder:!0,containerClassName:"squad-toast-container",toastOptions:{className:"squad-toast-response",style:{zIndex:"10000000"},success:{iconTheme:{primary:"#5e2eff",secondary:"#fff"}},duration:5e3,ariaProps:{role:"alert","aria-live":"polite"}}}),Sr=()=>null,Er=({className:e})=>(0,cn.jsxs)("svg",{className:e,width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,cn.jsx)("path",{d:"M37.5013 0.481976C39.0154 0.471462 39.0154 0.471462 40.56 0.460736C43.8722 0.443237 47.1835 0.454751 50.4957 0.468304C52.813 0.465606 55.1303 0.461722 57.4476 0.456707C62.2952 0.450823 67.1425 0.45934 71.9901 0.47807C78.1849 0.500845 84.3789 0.487737 90.5737 0.46378C95.3566 0.449282 100.139 0.453946 104.922 0.464291C107.205 0.466948 109.489 0.463725 111.772 0.454373C114.971 0.444143 118.169 0.459798 121.368 0.481976C122.3 0.473879 123.232 0.465782 124.192 0.45744C134.007 0.582646 142.919 4.10916 150 10.9996C156.953 19.4207 159.301 26.2611 159.29 37.053C159.297 38.0506 159.304 39.0482 159.31 40.076C159.329 43.367 159.333 46.6577 159.336 49.9488C159.342 52.2456 159.349 54.5423 159.356 56.8391C159.368 61.6533 159.371 66.4674 159.37 71.2815C159.37 77.4303 159.397 83.5786 159.432 89.7272C159.454 94.4724 159.458 99.2174 159.457 103.963C159.459 106.228 159.468 108.494 159.484 110.76C159.503 113.94 159.497 117.119 159.485 120.299C159.497 121.223 159.508 122.146 159.52 123.098C159.424 133.143 156.152 142.768 149 150C140.589 156.866 132.48 159.458 121.779 159.388C120.788 159.393 119.796 159.398 118.775 159.404C115.518 159.417 112.261 159.408 109.004 159.398C106.727 159.4 104.451 159.403 102.175 159.407C97.4111 159.411 92.6477 159.405 87.8841 159.391C81.7936 159.374 75.7034 159.383 69.6129 159.401C64.9141 159.412 60.2155 159.409 55.5167 159.401C53.2718 159.399 51.0268 159.401 48.7818 159.408C45.6375 159.416 42.4938 159.404 39.3495 159.388C37.9722 159.397 37.9722 159.397 36.567 159.406C26.7549 159.31 18.5475 156.325 10.9996 150C2.93178 141.193 0.852543 132.814 0.83847 121.211C0.833506 120.23 0.828541 119.249 0.823425 118.238C0.808838 114.997 0.802007 111.756 0.796478 108.515C0.790724 106.257 0.784966 103.999 0.779205 101.741C0.768705 97.0063 0.762856 92.272 0.759369 87.5376C0.753888 81.484 0.729864 75.4307 0.701397 69.3771C0.682733 64.7119 0.677563 60.0466 0.676033 55.3813C0.673014 53.1503 0.665012 50.9193 0.651848 48.6883C0.63471 45.5604 0.636687 42.4331 0.643158 39.3052C0.633943 38.3917 0.624728 37.4781 0.615234 36.5368C0.678564 26.7189 3.69575 18.5585 9.9996 10.9996C17.9526 3.44927 26.6783 0.388126 37.5013 0.481976Z",fill:"#FDFCFD"}),(0,cn.jsx)("path",{d:"M112 33.9999C115.539 36.8108 118.802 39.8081 122 42.9999C122.576 43.5645 123.152 44.1291 123.746 44.7108C133.116 54.69 136.364 67.2045 136.25 80.4999C136.261 81.8476 136.261 81.8476 136.273 83.2226C136.231 97.6679 130.319 110.509 120.312 120.82C109.38 131.125 97.4333 136.962 82.3121 137.437C80.4191 137.497 80.4191 137.497 78.4879 137.558C74.0867 136.854 72.7399 135.441 69.9996 132C68.1495 128.919 67.7408 126.629 67.7091 123.051C67.6963 122.07 67.6836 121.088 67.6704 120.077C67.6682 119.023 67.666 117.969 67.6637 116.883C67.657 115.793 67.6504 114.703 67.6435 113.58C67.6334 111.275 67.6287 108.97 67.629 106.665C67.6247 103.145 67.5883 99.6257 67.5504 96.1054C67.5445 93.8645 67.5406 91.6236 67.5387 89.3827C67.5243 88.3325 67.5099 87.2824 67.4951 86.2004C67.5329 80.1421 67.9429 76.6042 71.9996 71.9999C74.7398 69.8366 76.4861 69.0764 79.9371 68.5624C84.6951 69.2421 87.7478 71.3528 90.6434 75.1627C92.3363 78.7041 92.476 81.8589 92.5113 85.7069C92.5293 86.4323 92.5472 87.1577 92.5657 87.9051C92.6197 90.2075 92.6537 92.5096 92.6871 94.8124C92.7203 96.3795 92.7548 97.9465 92.7906 99.5136C92.8754 103.342 92.9423 107.171 92.9996 111C101.503 105.934 107.946 100.52 111.332 90.8944C113.634 80.9176 112.733 72.3318 107.636 63.4569C103.003 56.502 95.9484 51.5887 87.9996 48.9999C76.1276 47.6476 67.6147 49.3518 57.8824 56.5702C51.3837 62.3438 47.9632 70.2194 47.4371 78.8124C47.3694 80.1659 47.3694 80.1659 47.3004 81.5468C46.838 85.3183 45.4775 87.1576 42.9996 89.9999C38.7737 92.8172 34.9634 92.7995 29.9996 91.9999C27.1754 89.8097 25.5845 88.1697 23.9996 84.9999C22.6626 69.2845 27.1323 55.3708 37.2887 43.2733C57.4568 22.0808 87.3121 17.4438 112 33.9999Z",fill:"url(#paint0_linear_393_4)"}),(0,cn.jsx)("path",{d:"M83 69.0004C87.4232 71.3421 89.8503 73.5032 92 78.0004C92.3177 80.6429 92.4875 83.0649 92.5117 85.7074C92.5386 86.7955 92.5386 86.7955 92.5661 87.9056C92.62 90.208 92.6541 92.5101 92.6875 94.8129C92.7207 96.38 92.7552 97.947 92.791 99.5141C92.8757 103.343 92.9426 107.171 93 111C97.52 108.346 89.631 115.048 92.9993 110.951C92.4162 111.646 93.5652 110.277 92.9993 110.951C94.4069 109.217 92.0525 112.535 92.9925 110.5C93.9825 110.5 91.771 111.625 92.791 111.625C95.041 109.375 91.041 117.375 92.791 111.625C92.0935 112.943 93.1421 110.841 92.5117 112.192C93.5217 112.697 91.5217 111.697 92.5117 112.192C89.2877 113.862 93.2749 108.227 92.8115 111.183C92.6568 112.358 92.9488 110.993 92.791 112.192C91.801 112.192 94.0892 112.75 93.0692 112.75C92.4092 113.41 93.0981 112.32 92.4181 113C92.4181 112.34 92.8115 113.931 92.8115 113.251C90.9552 113.499 93.1438 114.248 91.25 114.5C86.3445 115.069 80.9308 115.159 76.0007 115C73.1486 114.908 73.5007 115.5 71.0007 115C68.9997 115 68.9997 115 69.5007 115C69.5142 115.706 68.9867 114.272 69.0007 115C69.036 116.745 68.4427 113.255 68.5 115C67.84 114.67 68.68 115.34 68 115C67.0325 112.098 67.7373 114.829 68.5 115C68.4872 114.019 68.0132 116.511 68 115.5C67.9926 114.441 67.528 116.091 67.5204 115C67.5123 113.909 67.7249 114.195 67.5 113.5C68 111.5 67.5819 108.311 67.574 106C67.5568 102.471 67.4016 99.3453 67.5005 96C67.4016 93.8453 67.581 91.6638 67.5742 89.4184C67.5567 88.365 67.5392 87.3117 67.5212 86.2265C67.5391 80.1539 67.9281 76.613 72 72.0004C75.6661 69.1061 78.3631 68.338 83 69.0004Z",fill:"url(#paint1_linear_393_4)"}),(0,cn.jsxs)("defs",{children:[(0,cn.jsxs)("linearGradient",{id:"paint0_linear_393_4",x1:"80.0208",y1:"24.0039",x2:"80.0208",y2:"137.558",gradientUnits:"userSpaceOnUse",children:[(0,cn.jsx)("stop",{stopColor:"#5E2EFF",stopOpacity:"0.85"}),(0,cn.jsx)("stop",{offset:"1",stopColor:"#3D04FA"})]}),(0,cn.jsxs)("linearGradient",{id:"paint1_linear_393_4",x1:"80.9785",y1:"68.7783",x2:"80.9785",y2:"117.66",gradientUnits:"userSpaceOnUse",children:[(0,cn.jsx)("stop",{stopColor:"#5E2EFF",stopOpacity:"0.83"}),(0,cn.jsx)("stop",{offset:"1",stopColor:"#3B08E8"})]})]})]}),Or=({pluginLifeType:e})=>(0,cn.jsxs)("ul",{className:"badges",children:["nightly"===e&&(0,cn.jsx)(jr,{}),"stable"===e&&(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Mr,{}),on&&(0,cn.jsx)(Rr,{})]})]}),jr=()=>(0,cn.jsxs)("li",{className:"nightly-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Nightly","squad-modules-for-divi")}),(0,cn.jsxs)("span",{className:"badge-version",children:["current(",sn.version.core,")"]})]}),Mr=()=>(0,cn.jsxs)("li",{className:"stable-lite-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Lite","squad-modules-for-divi")}),(0,cn.jsx)("span",{className:"badge-version",children:sn.version.core})]}),Rr=()=>{var e;return(0,cn.jsxs)("li",{className:"stable-pro-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Pro","squad-modules-for-divi")}),(0,cn.jsx)("span",{className:"badge-version",children:null!==(e=sn.version.pro)&&void 0!==e?e:sn.version_pro_real})]})},Pr=({pluginLifeType:e})=>(0,cn.jsx)("header",{className:"app-header",children:(0,cn.jsx)("div",{className:"app-title",children:(0,cn.jsxs)("div",{className:"title-wrapper",children:[(0,cn.jsx)(Er,{className:"logo"}),(0,cn.jsx)("h1",{className:"title",children:(0,tn.__)("Divi Squad","squad-modules-for-divi")}),(0,cn.jsx)(Or,{pluginLifeType:e})]})})}),Lr=(e="")=>function(e){if(!e)return"";e=e.replace(/<script[^>]*>[\S\s]*?<\/script>/gi,"");const t=document.createElement("textarea");return t.innerHTML=e,t.value}(e),Nr=({location:e})=>(0,cn.jsx)("div",{className:"app-menu",children:(0,cn.jsx)("div",{className:"app-menu-container",children:(0,cn.jsx)("div",{className:"menu-list",children:(0,cn.jsx)("ul",{children:sn.admin_menus.map((t=>(0,cn.jsx)(Tr,{menu:t,url:t.menuSlug,location:e},t.menuSlug)))})})})}),Tr=({menu:e,url:t,location:n})=>t.includes("divi_squad_dashboard#")?(0,cn.jsx)("li",{className:`menu-item ${Fr(t,n)}`,children:(0,cn.jsx)(Yt,{to:ln(t),className:Dr,children:Lr(sn.l10n[e.menuTitle]||e.menuTitle)})}):(0,cn.jsx)("li",{className:`menu-item ${Fr(t,n)}`,children:(0,cn.jsx)("a",{href:`admin.php?page=${t}`,target:$r(t),rel:Ir(t),dangerouslySetInnerHTML:{__html:sn.l10n[e.menuTitle]||e.menuTitle}})}),Dr=({isPending:e,isActive:t})=>e?"pending":t?"active":"",$r=e=>e.includes("wp-support-forum")?"_blank":"_self",Ir=e=>e.includes("wp-support-forum")?"noopener noreferrer":"",Fr=(e,t)=>{const n=ln(e),r=un(n,t,"/"===n,"/"!==t.pathname);return e.includes("divi_squad_dashboard#")&&r?"active":""},Ar=(0,r.createContext)(null),qr=({children:e})=>{const[t,n]=(0,r.useState)("light");return(0,cn.jsx)(Ar.Provider,{value:{theme:t,setTheme:n},children:e})};function Vr({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Ur=r.forwardRef(Vr);function zr({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Hr=r.forwardRef(zr);function Br({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M4.5 6.375a4.125 4.125 0 1 1 8.25 0 4.125 4.125 0 0 1-8.25 0ZM14.25 8.625a3.375 3.375 0 1 1 6.75 0 3.375 3.375 0 0 1-6.75 0ZM1.5 19.125a7.125 7.125 0 0 1 14.25 0v.003l-.001.119a.75.75 0 0 1-.363.63 13.067 13.067 0 0 1-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 0 1-.364-.63l-.001-.122ZM17.25 19.128l-.001.144a2.25 2.25 0 0 1-.233.96 10.088 10.088 0 0 0 5.06-1.01.75.75 0 0 0 .42-.643 4.875 4.875 0 0 0-6.957-4.611 8.586 8.586 0 0 1 1.71 5.157v.003Z"}))}const Wr=r.forwardRef(Br),Yr=()=>(0,cn.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:(0,cn.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})}),Gr=()=>{const[e,t]=(0,r.useState)({isPopupOpen:!1,message:""}),n=on?(0,tn.__)("Divi Squad Pro","squad-modules-for-divi"):(0,tn.__)("Divi Squad","squad-modules-for-divi"),o=(0,tn.sprintf)((0,tn.__)("Reply to %1$s …","squad-modules-for-divi"),n),a=(0,r.useCallback)((()=>{const e=navigator.userAgent;return/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(e)}),[]),i=(0,r.useCallback)(((e,n,r)=>{if(!n||!r)return!1;let o;return o=e.whatsapp_web_api?`${e.whatsapp_web_api}/${r}?text=${n}`:a()?`${e.whatsapp_mobile_api}/send?phone=${r}&text=${n}`:`${e.whatsapp_desktop_api}/send?phone=${r}&text=${n}`,window.open(o,"_blank"),t((e=>({...e,isPopupOpen:!1}))),!0}),[a]),s=(0,r.useCallback)((e=>{t((t=>({...t,message:e.target.value})))}),[]),l=(0,r.useCallback)((()=>{t((e=>({...e,isPopupOpen:!e.isPopupOpen})))}),[]),u=(0,r.useCallback)((t=>{t.preventDefault();const n={support_number:"911234567890",auto_popup:"yes",auto_popup_time:"1",is_mobile:"0",current_page_url:window.location.href,group_invitation_id:"XYZ12345678",pre_defined_text:`%0A\r\nRef: ${window.location.href}%0A\r\nI need help for \r\n\n `,numberMasking:"(99) 99999-9999",whatsapp_mobile_api:"https://api.whatsapp.com",whatsapp_desktop_api:"https://web.whatsapp.com",whatsapp_web_api:"",security_token:"517843fbd0"},r=encodeURIComponent(e.message);i(n,n.pre_defined_text+r,"8801794301713")}),[e.message,i]);return(0,cn.jsxs)("div",{className:"support-popup-container support-popup-container--position "+(e.isPopupOpen?"block":"none"),children:[(0,cn.jsx)("div",{className:"support-gradient support-gradient--position"}),(0,cn.jsxs)("div",{className:"support-popup",children:[(0,cn.jsxs)("div",{className:"support-popup__header",children:[(0,cn.jsx)("button",{className:"support-popup__close-btn support-shadow support--bg-color support--text-color",onClick:l,"aria-label":(0,tn.__)("Close support popup","squad-modules-for-divi"),children:(0,cn.jsx)(Ur,{width:"16",height:"16",className:"support-popup__close-icon"})}),(0,cn.jsx)("div",{className:"support-clearfix"})]}),(0,cn.jsxs)("div",{className:"support-popup__body",children:[(0,cn.jsxs)("div",{className:"support-popup__support-wrapper",children:[(0,cn.jsx)("div",{className:"support-popup__support-img-wrapper support-shadow",children:(0,cn.jsx)(Wr,{width:"24",height:"24",className:"support-popup__support-icon"})}),(0,cn.jsxs)("div",{className:"support-popup__support support-shadow",children:[(0,cn.jsx)("div",{className:"support-popup__support-about support--text-color support--bg-color",children:(0,tn.__)("We are here to assist you with any queries you may have. Feel free to ask us anything!","squad-modules-for-divi")}),(0,cn.jsxs)("div",{className:"support-popup__support-welcome",children:[(0,cn.jsx)("span",{role:"img","aria-label":(0,tn.__)("Waving hand","squad-modules-for-divi"),children:"👋"}),(0,tn.__)("Hi, how can we help?","squad-modules-for-divi")]})]})]}),(0,cn.jsxs)("form",{className:"support-popup__input-wrapper support-shadow",onSubmit:u,children:[(0,cn.jsx)("input",{type:"text",className:"support-popup__input",placeholder:o,value:e.message,onChange:s,"aria-label":(0,tn.__)("SupportRoute message input","squad-modules-for-divi")}),(0,cn.jsx)("button",{type:"submit",className:"support-popup__send-btn","aria-label":(0,tn.__)("Send message","squad-modules-for-divi"),children:(0,cn.jsx)(Hr,{width:"16",height:"16",className:"support-popup__send-icon"})})]}),(0,cn.jsx)("div",{className:"support-clearfix"})]})]}),(0,cn.jsxs)("div",{className:"support-popup__footer",children:[(0,cn.jsxs)("button",{className:"support-popup__open-btn support-shadow support--text-color support--bg-color",onClick:l,"aria-expanded":e.isPopupOpen,children:[(0,cn.jsx)(Yr,{}),(0,cn.jsx)("span",{children:(0,tn.__)("Hi, how can we help?","squad-modules-for-divi")})]}),(0,cn.jsx)("div",{className:"support-clearfix"})]})]})},Zr=("function"==typeof tn.__&&tn.__,window.wp,window.wp?.i18n?.sprintf||((e,...t)=>e)),Jr=()=>{const e=!sn.config.isDev,t=sn.version_pro_current.includes(".");return on?e&&t?"stable":"nightly":e?"stable":"nightly"},Xr=({children:e,route:t,title:n="",headerComponent:r,footerComponent:o})=>{const a=et();return(0,en.useEffect)((()=>{if(!sn.admin_menus.length)return;const e=function(e,t){const[n]=e.filter((e=>{const n=ln(e.menuSlug);return Boolean(e.menuSlug&&un(n,t,"/"===n,"/"!==t.pathname))}));return n||e[0]}(sn.admin_menus,a),t=window.document.querySelector("#toplevel_page_divi_squad_dashboard");!function(e,t){const n=window.document.title.split("‹").map((e=>e.trim())),[r]=n.slice(-1);var o;e&&e.pageTitle&&(window.document.title=Zr("%1$s ‹ %3$s",t(null!==(o=e.pageTitle)&&void 0!==o?o:e.menuTitle),r))}(e,Lr),function(e,t){[].map.call(e.querySelectorAll("li"),(e=>{e.classList.contains("current")&&e.classList.remove("current")})),[].map.call(e.querySelectorAll("a"),(e=>{e.href===t.menuSlug&&e.parentElement?.classList.add("current")}))}(t,e)}),[a,a.pathname]),(0,cn.jsx)(qr,{children:(0,cn.jsxs)(Sn.SlotFillProvider,{children:[(0,cn.jsxs)("div",{className:"app-wrapper",children:[r||(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Pr,{title:n,pluginLifeType:Jr()}),(0,cn.jsx)(Nr,{location:a})]}),(0,cn.jsxs)("div",{className:"wrapper-container",children:[(0,cn.jsx)(Sn.Slot,{name:"divi-squad-content-before"}),e,(0,cn.jsx)(Sn.Slot,{name:"divi-squad-content-after"})]}),o||(0,cn.jsx)(Sr,{})]}),(0,cn.jsx)(En.PluginArea,{scope:t.id}),(0,cn.jsx)(Gr,{}),(0,cn.jsx)(kr,{})]})})};function Kr(e){const t=e.displayName||e.name||"Component";function n(t){const n=function(){let{matches:e,loaderData:t}=dt("useMatches");return r.useMemo((()=>e.map((e=>x(e,t)))),[e,t])}(),o=rt(),a=function(){let{matches:e}=r.useContext(Xe),t=e[e.length-1];return t?t.params:{}}(),i={navigation:o,params:a,location:et(),matches:n};return(0,cn.jsx)(e,{...t,...i})}return n.displayName=`WithRouter(${t})`,n}function Qr(e){if(!e.element&&!e.children?.length)throw new Error(`Route ${e.path} must have either an element or children`);const t={path:e.path,errorElement:e.errorElement||(0,cn.jsx)(kn,{}),id:e.id};if(e.element){const n=Kr(e.element);t.element=(0,cn.jsx)(Xr,{headerComponent:e?.header,footerComponent:e?.footer,route:e,title:e.title,children:(0,cn.jsx)(n,{})})}return e.children?.length&&(t.children=e.children.map((t=>{if(t.path?.includes("/*")){const[e]=t.path.split("/*");return{path:e,children:[{path:"*",element:t.element,errorElement:t.errorElement||(0,cn.jsx)(kn,{})}]}}if(t.header||t.footer)return Qr(t);if(!t.element)throw new Error(`Child route ${t.path} must have an element`);const n={path:t.path,errorElement:t.errorElement||(0,cn.jsx)(kn,{}),id:t.id};if(t.element){const r=Kr(t.element);n.element=(0,cn.jsx)(Xr,{headerComponent:e?.header,footerComponent:e?.footer,route:e,title:e.title,children:(0,cn.jsx)(r,{})})}return n.children=t.children?.map((e=>Qr(e))),n}))),t}const eo=function(e){return{routes:e.map((e=>Qr(e)))}},to=window.wp.hooks;function no({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const ro=r.forwardRef(no);function oo(){const e=rt(),t=(0,en.useCallback)((()=>{e(-1)}),[e]),n=(0,en.useCallback)((()=>{e("/")}),[e]);return(0,cn.jsx)("div",{className:"error-page-wrapper",children:(0,cn.jsx)("div",{className:"error-page","data-status-code":(0,tn.__)("404","squad-modules-for-divi"),children:(0,cn.jsxs)("div",{className:"error-page-content",children:[(0,cn.jsxs)("div",{className:"error-icon-container",children:[(0,cn.jsx)(Cn,{className:"error-shield-icon","aria-hidden":"true"}),(0,cn.jsx)(ro,{className:"error-triangle-icon","aria-hidden":"true"})]}),(0,cn.jsxs)("div",{className:"error-content",children:[(0,cn.jsx)("h1",{children:(0,tn.__)("Oops! Page not found","squad-modules-for-divi")}),(0,cn.jsx)("p",{className:"error-description",children:(0,tn.__)("We couldn't find the page you're looking for. It might have been removed, renamed, or is temporarily unavailable.","squad-modules-for-divi")}),(0,cn.jsxs)("div",{className:"error-actions",children:[(0,cn.jsxs)("button",{onClick:t,className:"button button-primary",children:[(0,cn.jsx)(hn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Go Back","squad-modules-for-divi")})]}),(0,cn.jsxs)("button",{onClick:n,className:"button button-outline",children:[(0,cn.jsx)(vn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Dashboard","squad-modules-for-divi")})]}),(0,cn.jsxs)("a",{href:"https://squadmodules.com/support",target:"_blank",className:"button button-help",rel:"noreferrer",children:[(0,cn.jsx)(wn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Get Support","squad-modules-for-divi")})]})]})]})]})})})}function ao({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const io=r.forwardRef(ao);function so({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))}const lo=r.forwardRef(so);function uo({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"}))}const co=r.forwardRef(uo);function po({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"}))}const fo=r.forwardRef(po),ho=function(){const e="https://wordpress.org/support/plugin/squad-modules-for-divi",t="https://squadmodules.com",n=on?`${t}/docs`:"https://squadmodules.com",r=on?`${t}/community`:"https://www.facebook.com/groups/squadmodules/",o=[{title:(0,tn.__)("View Documentation","squad-modules-for-divi"),description:(0,tn.__)("Get started by spending some time with the documentation to get familiar with Squad Modules.","squad-modules-for-divi"),image:(0,cn.jsx)(io,{width:"24",height:"24",className:"view-docs-icon"}),link:`${n}?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink`},{title:(0,tn.__)("Show Your Love","squad-modules-for-divi"),description:(0,tn.__)("Take your 2 minutes to review the plugin and spread the love to encourage us to keep it going.","squad-modules-for-divi"),image:(0,cn.jsx)(lo,{width:"24",height:"24",className:"review-icon"}),link:`${e}/reviews/?rate=5#new-post`},{title:(0,tn.__)("Get Support","squad-modules-for-divi"),description:(0,tn.__)("Stuck with something? Get help from live chat or submit a support ticket.","squad-modules-for-divi"),image:(0,cn.jsx)(co,{width:"24",height:"24",className:"get-support-icon"}),link:`${e}/#new-post`},{title:(0,tn.__)("Join the Community","squad-modules-for-divi"),description:(0,tn.__)("Join our community of users and developers to share ideas, ask questions, and get help.","squad-modules-for-divi"),image:(0,cn.jsx)(fo,{width:"24",height:"24",className:"join-community-icon"}),link:`${r}?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink`}];return(0,cn.jsxs)("div",{className:"dashboard-wrapper",children:[(0,cn.jsx)("div",{className:"container",children:o.map(((e,t)=>(0,cn.jsxs)("a",{className:`general-card general-card_${t}`,href:e.link,target:"_blank",rel:"noopener noreferrer",children:[(0,cn.jsxs)("div",{className:"title-wrapper",children:[(0,cn.jsx)("div",{className:"image-wrapper",children:e.image}),(0,cn.jsx)("h4",{children:e.title})]}),(0,cn.jsx)("div",{className:"description",children:(0,cn.jsx)("p",{children:e.description})})]},t)))}),(0,cn.jsxs)("div",{className:"bar footer-bar",children:[(0,cn.jsx)("p",{className:"content",children:(0,tn.__)("Supercharge your experience with our game-changing new updates!","squad-modules-for-divi")}),(0,cn.jsx)(Wt,{className:"squad-button",to:"/whats-new",children:(0,tn.__)("View Changelog","squad-modules-for-divi")})]})]})},mo=window.wp.apiFetch;var vo=n.n(mo);const go=({className:e})=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",width:"288",height:"288",className:e,children:[(0,cn.jsx)("path",{fill:"#b2b1ff",d:"M9 7c0-1.7 1.3-3 3-3s3 1.3 3 3v2h2V7c0-2.8-2.2-5-5-5S7 4.2 7 7v2h2V7zM13.5 14.5c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5c0 .4.2.8.5 1.1V17c0 .6.4 1 1 1s1-.4 1-1v-1.4c.3-.3.5-.7.5-1.1z"}),(0,cn.jsx)("path",{fill:"#6563ff",d:"M17 9H7c-1.7 0-3 1.3-3 3v7c0 1.7 1.3 3 3 3h10c1.7 0 3-1.3 3-3v-7c0-1.7-1.3-3-3-3zm-4 6.6V17c0 .6-.4 1-1 1s-1-.4-1-1v-1.4c-.3-.3-.5-.7-.5-1.1 0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5c0 .4-.2.8-.5 1.1z"})]});function yo({name:e,onChange:t,isChecked:n=!1,isDisabled:r=!1,isShowLock:o=!1}){const a={name:"squad-switch__input",type:"checkbox",id:`checkbox-${e}`,checked:n,disabled:r};return(0,cn.jsxs)("label",{className:"squad-switch",htmlFor:`checkbox-${e}`,children:[o?(0,cn.jsx)("button",{type:"button",className:"popup-trigger",onClick:e=>{e.preventDefault(),t(e,!0)}}):null,(0,cn.jsx)("input",{"data-slug":e,...a,onChange:e=>{t(e,!1)}}),(0,cn.jsx)("span",{className:"squad-switch__box"+(r?" disabled":"")}),o?(0,cn.jsx)(go,{className:"squad-icon-locked"}):null]})}const bo=({settings:e})=>{let t="https://squadmodules.com/pricing?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink",n=(0,tn.__)("Upgrade Now","squad-modules-for-divi");return e.premium.is_active&&(e.premium.is_installed?(t=e.links.plugins,n=(0,tn.__)("Go to Plugins","squad-modules-for-divi")):(t=e.links.my_account,n=(0,tn.__)("Download Pro","squad-modules-for-divi"))),(0,cn.jsx)("a",{target:"_blank",href:t,className:"squad-button fill-button",rel:"noreferrer",children:n})};function wo({className:e,...t}){return(0,cn.jsxs)("section",{className:`feature-group skeleton ${e}`,...t,children:[(0,cn.jsx)("div",{className:"feature-group-title"}),(0,cn.jsxs)("div",{className:"feature-group-container",children:[(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{})]})]})}function xo(){return(0,cn.jsx)("div",{className:"feature","data-tooltip":"",children:(0,cn.jsxs)("div",{className:"container skeleton",children:[(0,cn.jsxs)("div",{className:"header",children:[(0,cn.jsx)("div",{className:"title-wrapper",children:(0,cn.jsx)("div",{className:"title-text","data-supports":""})}),(0,cn.jsx)("div",{className:"card-actions",children:(0,cn.jsxs)("label",{className:"squad-switch",htmlFor:"checkbox-skeleton",children:[(0,cn.jsx)("input",{"data-slug":"skeleton",name:"squad-switch__input",type:"checkbox",id:"checkbox-skeleton",disabled:!0}),(0,cn.jsx)("span",{className:"squad-switch__box disabled"})]})})]}),(0,cn.jsx)("div",{className:"description-text"})]})})}function _o({className:e}){return(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e})]})}const Co=()=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,cn.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,cn.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),ko=({className:e})=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33.867 33.867",width:"288",height:"288",className:e,children:[(0,cn.jsx)("path",{fill:"#a8d0ff",d:"m 16.933349,5.9163387 a 4.8585287,4.8585287 0 0 1 -4.8586,4.8585303 4.8585287,4.8585287 0 0 1 -4.8585,-4.8585303 4.8585287,4.8585287 0 0 1 4.8585,-4.8585197 4.8585287,4.8585287 0 0 1 4.8586,4.8585197",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#a8d0ff",d:"m 26.650349,5.9163387 a 4.8585287,4.8585287 0 0 1 -4.8585,4.8585303 4.8585287,4.8585287 0 0 1 -4.8585,-4.8585303 4.8585287,4.8585287 0 0 1 4.8585,-4.8585197 4.8585287,4.8585287 0 0 1 4.8585,4.8585197",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#0063ff",d:"M16.933349 4.0188787c-1.4853 0-2.681 1.19571-2.681 2.68097v.77773h5.3619v-.77773c0-1.48526-1.1957-2.68097-2.6809-2.68097zM3.704149 15.478649V30.16302c0 1.465789 1.18 2.645828 2.6458 2.645828h21.1667c1.4658 0 2.6458-1.180039 2.6458-2.645828V15.478649z",paintOrder:"markers fill stroke",className:"color0063ff svgShape"}),(0,cn.jsx)("path",{fill:"#00a1ff",d:"m 3.704149,7.0958087 h 26.4583 c 1.465799,0 2.645899,1.18004 2.645899,2.64583 v 3.2895003 c 0,1.46579 -1.1801,2.64583 -2.645899,2.64583 h -26.4583 c -1.4658,0 -2.64583,-1.18004 -2.64583,-2.64583 V 9.7416387 c 0,-1.46579 1.18003,-2.64583 2.64583,-2.64583 z",paintOrder:"markers fill stroke",className:"color00a1ff svgShape"}),(0,cn.jsx)("path",{fill:"#a8d0ff",d:"M 14.252349,8.3524587 V 32.808848 h 5.3619 V 8.3524587 Z",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#ffffff",d:"m 14.252349,7.0956887 v 8.5813903 h 5.3619 V 7.0956887 Z",paintOrder:"markers fill stroke",className:"colorfff svgShape"})]}),So=()=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,cn.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),(0,cn.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),(0,cn.jsx)("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),(0,cn.jsx)("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),(0,cn.jsx)("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),(0,cn.jsx)("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),(0,cn.jsx)("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),(0,cn.jsx)("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})]});function Eo(e){return(0,cn.jsx)("div",{className:"squad-modal-wrap "+(e.isShow?"squad-modal-show":""),children:(0,cn.jsx)("div",{className:"squad-modal-dialogue",children:(0,cn.jsx)("div",{className:"squad-modal",children:(0,cn.jsxs)("div",{className:"modal-body",children:[(0,cn.jsx)("button",{type:"button",className:"modal-close squad-popup-close",onClick:e.onClose,children:(0,cn.jsx)(Ur,{width:"16",height:"16",className:"squad-popup__close-icon"})}),e.children]})})})})}function Oo({options:e}){const[t,n]=(0,r.useState)({isSaving:!1,isChanged:!1,activation:"custom",features:[],activeFeatures:[],inactiveFeatures:[],filterType:"all",show_feature_lock_modal:!1}),o=[].filter.call(t.features,(e=>!e.is_premium_feature)),a=[].filter.call(t.features,(e=>e.is_premium_feature)),i=[].filter.call(t.features,(e=>"all"===t.filterType||"free"===t.filterType&&!e.is_premium_feature||"pro"===t.filterType&&e.is_premium_feature)),s=[].filter.call(i,(e=>!!e.category)),l=[].filter.call(i,(e=>!e.category)),u=!![].filter.call(i,(e=>!!e.description)).length,c=()=>{const e=s.map((e=>({name:e.category,title:e.category_title}))),t={};return e.forEach((function(e){e.name&&!Object.keys(t).includes(e.name)&&(t[e.name]=e.title),e.name&&e.title&&Object.keys(t).includes(e.name)&&void 0===t[e.name]&&(t[e.name]=e.title)})),Object.entries(t).map((([e,t])=>({name:e,title:t}))).sort(((e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"})))},d=function(e,t){return Boolean(!e.isProPluginActive&&t.is_premium_feature&&!t.release_version)},p=function(e){return[].filter.call(e,(e=>!!e.name)).map((e=>e.name))},f=function(e=[],t=[]){return 0===t.length?null:[].map.call(e,(function(e,n){const r="uncategorized"===e.name,o=`feature-group ${e.name}`,a=e.title?Lr(e.title):(i=e.name).charAt(0).toUpperCase()+i.slice(1);var i;return(0,cn.jsxs)("section",{className:o,children:[(0,cn.jsx)("h3",{className:"feature-group-title",children:a}),(0,cn.jsx)("div",{className:"feature-group-container",children:[].map.call(t,(function(t,n){return(r?!t.category:t.category===e.name)&&h(t,n)}))})]},n)}))},h=(n,r)=>{const o=e.settings,a=(o.version_wp_current&&"".includes.call(o.version_wp_current,"."),o.version_pro_current&&"".includes.call(o.version_pro_current,"."),o.version_wp_real),i=o.version_pro_real;let s=`feature feature_${r}`;const l=n.is_premium_feature?i:a,u=m(n,l);d(e,n)&&(s+=" locked-pro-feature"),u.depsClass&&(s+=` ${u.depsClass}`),u.tooltipText&&(s+=" has-tool-tip");let c="";n.type&&("string"==typeof n.type&&"d5"===n.type.toLowerCase()||"object"==typeof n.type&&n.type.includes("D5"))&&(c="D5");let p="";return n.has_settings&&n.category&&(p=`/${e.type}/${n.category}/${n.settings_route}`),(0,cn.jsxs)("div",{className:s,"data-tooltip":u.tooltipText,children:[(u.isUpdated||u.isNewFeatures||u.isUpcoming)&&(0,cn.jsx)("div",{className:u.badgeClass,"data-text":Lr(u.badgeText)}),(0,cn.jsxs)("div",{className:`container ${n.name}`,children:[(0,cn.jsxs)("div",{className:"header",children:[(0,cn.jsxs)("div",{className:"title-wrapper",children:[n.icon&&(0,cn.jsx)("div",{className:"image-wrapper",children:(0,cn.jsx)(Co,{})}),(0,cn.jsx)("h4",{className:"title-text","data-supports":c,children:Lr(n.label)})]}),(0,cn.jsxs)("div",{className:"actions",children:[n.has_settings&&(0,cn.jsx)(Yt,{to:p,target:"_self",rel:"noreferrer",children:(0,cn.jsx)(Co,{})}),n.demo&&(0,cn.jsx)("a",{href:n.demo,target:"_blank",rel:"noreferrer",children:(0,cn.jsx)(Co,{})}),(0,cn.jsx)(yo,{name:n.name,isChecked:t.activeFeatures?.includes(n.name)&&!g(n),isDisabled:!!u.dependencyNoticeText||d(e,n),isShowLock:d(e,n),onChange:function(e,r){if(r)v({show_feature_lock_modal:!0});else if(!e.target.checked&&t.activeFeatures?.includes(n.name)){const e=[].filter.call(t.activeFeatures,(e=>e!==n.name));v({isChanged:!0,activation:"custom",activeFeatures:e})}else v({isChanged:!0,activation:"custom",activeFeatures:[...t.activeFeatures,n.name]})}})]})]}),n.description&&(0,cn.jsx)("p",{className:"description-text",children:Lr(n.description)})]})]},r)},m=(e,t)=>{const n=!!e.last_modified&&"string"==typeof e.last_modified&&e.last_modified===t,r=!!e.last_modified&&"object"==typeof e.last_modified&&[].includes.call(e.last_modified,t),o=!!e.release_version&&e.release_version===t,a=n||r,i=["3.3.1","SQUAD_MODULES_PRO_VERSION"].includes(e.release_version);let s="",l="",u="",c="badge";return a&&(s=(0,tn.__)("Updated","squad-modules-for-divi"),c+=" update"),o&&(s=(0,tn.__)("NEW","squad-modules-for-divi"),c+=" new"),e.is_premium_feature&&(s=e.is_premium_feature?"premium":"",c+=e.is_premium_feature?" premium":""),i&&(s=(0,tn.__)("UPCOMING","squad-modules-for-divi"),c+=" up-coming"),g(e)&&(l="deps-required",u=(0,tn.__)("Related third-party plugin required.","squad-modules-for-divi")),{isUpdated:a,isNewFeatures:o,isUpcoming:i,badgeText:s,depsClass:l,tooltipText:u,badgeClass:c}},v=(0,r.useCallback)((function(e){return[].forEach.call(Object.entries(e),(([e,t])=>{n((n=>({...n,[e]:t})))})),!0}),[]),g=(0,r.useCallback)((t=>{if(t.required&&t.required.plugin){const n=e.settings.plugins||[];if("string"==typeof t.required.plugin){const e=[];return t.required.plugin.includes("|")?e.push(...t.required.plugin.split("|")):e.push(t.required.plugin),![].filter.call(n,(t=>e.includes(t.slug))).length}if("object"==typeof t.required.plugin){const e=t.required.plugin,r=[].filter.call(n,(t=>e.includes(t.slug))),o=[].map.call(r,(e=>e.slug));return JSON.stringify(e.sort())!==JSON.stringify(o.sort())}}return!1}),[e.settings?.plugins]),y=(0,r.useCallback)(((e,t,n)=>{let r;const o=p(e),a=[].filter.call(e,(e=>e.is_default_active&&!g(e))),i=p(a),s=[].map.call(t,(function(e){return"string"==typeof e?e:e.name})),l=[...[].filter.call(i,(e=>!s.includes(e)&&!n.includes(e))),...s];r=0===l.length?"none":l.length===i.length?"default":l.length===o.length?"all":"custom",e.sort(((e,t)=>e.label.localeCompare(t.label,void 0,{sensitivity:"base"}))),v({features:e,activeFeatures:l,inactiveFeatures:n,activation:r})}),[g,v]);(0,r.useEffect)((()=>{e.isServerOk&&y(e.features,e.activeFeatures,e.inactiveFeatures)}),[e.features,e.activeFeatures,e.inactiveFeatures,e.isServerOk,y]);const b=`features-wrapper ${t.isSaving?"is-loading":""} ${u?"has-description":""} ${e.listStyle}`,w="squad-button save-button fill-button "+(t.isChanged?"":"disabled"),x=[{name:"uncategorized",title:(0,tn.__)("Uncategorized","squad-modules-for-divi")}],_=(0,cn.jsx)("div",{className:"feature-filter-bar",children:(0,cn.jsx)("div",{className:"filter-list",children:[].map.call(["all","free","pro"],((n,r)=>{const o="squad-button "+(n===t.filterType?"active":"");return(0,cn.jsx)("button",{className:o,onClick:()=>function(e){const n=[].filter.call(t.features,(t=>"all"===e||"free"===e&&!t.is_premium_feature||"pro"===e&&t.is_premium_feature)),r=[].filter.call(n,(e=>!g(e))),o=[].filter.call(r,(e=>e.is_default_active)),a=[].filter.call(o,(e=>t.activeFeatures?.includes(e.name))),i=[].filter.call(r,(e=>t.activeFeatures?.includes(e.name))),s=[].filter.call(r,(e=>!t.activeFeatures?.includes(e.name)));let l;const u=JSON.stringify([].map.call(n,(e=>e.name))),c=JSON.stringify([].map.call(o,(e=>e.name))),d=JSON.stringify([].map.call(i,(e=>e.name))),p=JSON.stringify([].map.call(s,(e=>e.name))),f=JSON.stringify([].map.call(a,(e=>e.name)));return l=u===d?"all":i.length===a.length&&c===f?"default":u===p?"none":"custom",v({filterType:e,activation:l}),!0}(n),children:Lr(e.listText?.Filters[n])},r)}))})});return(0,cn.jsxs)("div",{className:b,children:[(0,cn.jsx)("div",{className:"header-bar",children:(0,cn.jsxs)("div",{className:"bar compact",children:[(0,cn.jsxs)("div",{className:"multi-lines",children:[(0,cn.jsx)("h4",{children:Lr(e.listTitle)}),(0,cn.jsxs)("p",{className:"content",children:[" ",Lr(e.listDescription)]})]}),(0,cn.jsxs)("div",{className:"right-elements",children:[(0,cn.jsx)("div",{className:"toggles",children:[].map.call(["default","all","none"],((n,r)=>{const o="squad-button "+(n===t.activation?"fill-button":"");return(0,cn.jsx)("button",{className:o,onClick:()=>function(n){let r=[],o=[];const a=p(i),s=[].filter.call(t.features,(t=>!g(t)&&!d(e,t)));"default"===n&&(r=[].filter.call(s,(function(e){return e.is_default_active&&a.includes(e.name)||!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"all"===n&&(r=[].filter.call(s,(function(e){return a.includes(e.name)||!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"none"!==n||"free"!==t.filterType&&"pro"!==t.filterType||(r=[].filter.call(s,(function(e){return!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"none"===n&&"all"===t.filterType&&(r=[]),r.length>0&&(o=p(r)),v({activation:n,activeFeatures:o,isChanged:!0})}(n),children:Lr(e.listText?.Toggles[n])},r)}))}),(0,cn.jsxs)("button",{className:w,onClick:()=>{e.saveCallback(t,v)},children:[t.isSaving&&(0,cn.jsx)(So,{}),Lr(e.listText?.FilterSaveChanges)]})]})]})}),e.isProPluginActive&&e.listFilter&&o.length&&a.length?_:null,(0,cn.jsxs)("div",{className:"feature-list-container container "+(c().length?"grouped":""),style:{marginTop:"30px"},children:[!e.isServerOk&&(0,cn.jsxs)("div",{className:"message error",children:[" ",Lr(e.listText?.ServerLoadIssue)," "]}),!t.features?.length&&e.isServerOk&&(0,cn.jsx)(_o,{className:"feature-management"}),t.features?.length&&e.isServerOk?(0,cn.jsxs)(cn.Fragment,{children:[c().length?f(c(),i):(C=i,[].map.call(C,h)),c().length&&l.length?f(x,i):null]}):null]}),t.show_feature_lock_modal&&(0,cn.jsx)(Eo,{isShow:!0,onClose:()=>v({show_feature_lock_modal:!1}),children:(0,cn.jsx)("div",{className:"modal-content modal-content-popup",style:{display:"block"},children:(0,cn.jsxs)("div",{className:"modal-card",children:[(0,cn.jsx)("div",{className:"icon",children:(0,cn.jsx)(ko,{className:"squad-go-pro"})}),(0,cn.jsxs)("h3",{children:[e.settings.premium.is_active?null:(0,tn.__)("Upgrade to pro","squad-modules-for-divi"),e.settings.premium.is_active?(0,tn.__)("Activate Pro Plugin","squad-modules-for-divi"):null]}),(0,cn.jsx)("p",{children:(0,tn.__)("Unlock 30+ powerful modules to build awesome websites.","squad-modules-for-divi")}),(0,cn.jsx)(bo,{settings:e.settings})]})})})]});var C}function jo(e){const t=new Set;return e.filter((e=>{const n=JSON.stringify(e);return!t.has(n)&&(t.add(n),!0)}))}const Mo=function(){const[e,t]=(0,r.useState)({isServerOk:!0,extensions:[],activeExtensions:[],inactiveExtensions:[]}),n=(0,r.useCallback)(((e,t)=>{const{features:n,activeFeatures:r}=e,o={loading:(0,tn.__)("Preparing","squad-modules-for-divi"),success:()=>(t({isChanged:!1,isSaving:!1}),(0,tn.__)("Enabled extensions saved!","squad-modules-for-divi")),error:()=>(t({isChanged:!0,isSaving:!0}),(0,tn.__)("Whoops! Enabled extensions not saved. Try again later.","squad-modules-for-divi"))};t({isSaving:!0});const a=sn.rest_api_v2;if(!a.routes.Extensions||!a.routes.ExtensionsActive||!a.routes.ExtensionsInactive)return!1;const i=n.filter((e=>!e.is_premium_feature)).map((e=>e.name)),s=r.filter((e=>i.includes(e)));if(an&&sn.rest_api_pro?.routes){const e=sn.rest_api_pro,t=n.filter((e=>e.is_premium_feature)).map((e=>e.name)),i=r.filter((e=>t.includes(e)));Cr.promise(Promise.all([vo()({path:`${a.namespace}${a.routes.ExtensionsEnableBatch.root}`,method:"POST",data:s}),vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`,method:"POST",data:i})]),o)}else Cr.promise(vo()({path:`${a.namespace}${a.routes.ExtensionsEnableBatch.root}`,method:"POST",data:s}),o);return!0}),[]);return(0,r.useEffect)((()=>{const e=sn.rest_api_v2;e.routes.Extensions&&e.routes.ExtensionsActive&&e.routes.ExtensionsInactive&&(async()=>{try{let n,r,o;if(an&&sn.rest_api_pro?.routes){const t=sn.rest_api_pro,[a,i,s]=await Promise.all([Promise.all([vo()({path:`${e.namespace}${e.routes.Extensions.root}`}),vo()({path:`${t.namespace}${t.routes.Extensions.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`}),vo()({path:`${t.namespace}${t.routes.ExtensionsActive.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ExtensionsInactive.root}`}),vo()({path:`${t.namespace}${t.routes.ExtensionsInactive.root}`})])]);n=jo([...a[0].extensions,...a[1]]),r=jo([...i[0],...i[1]]),o=jo([...s[0],...s[1]])}else{const[t,a,i]=await Promise.all([vo()({path:`${e.namespace}${e.routes.Extensions.root}`}),vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`}),vo()({path:`${e.namespace}${e.routes.ExtensionsInactive.root}`})]);n=jo(t.extensions),r=jo(a),o=jo(i)}t((e=>({...e,extensions:n,activeExtensions:r,inactiveExtensions:o})))}catch{t((e=>({...e,isServerOk:!1})))}})()}),[]),(0,cn.jsx)(Oo,{options:{settings:sn,isProPluginActive:on,type:"extensions",features:e.extensions,activeFeatures:e.activeExtensions,inactiveFeatures:e.inactiveExtensions,isServerOk:e.isServerOk,listTitle:(0,tn.__)("Extensions Management","squad-modules-for-divi"),listDescription:(0,tn.__)("Streamline your workspace with our intuitive Toggle Button. Effortlessly manage your extensions, allowing you to focus on what truly matters - creating stunning designs.","squad-modules-for-divi"),listText:{Toggles:{default:(0,tn.__)("Reset to Default","squad-modules-for-divi"),all:(0,tn.__)("Enable All","squad-modules-for-divi"),none:(0,tn.__)("Disable All","squad-modules-for-divi")},Filters:{all:(0,tn.__)("All Extensions","squad-modules-for-divi"),free:(0,tn.__)("Free Only","squad-modules-for-divi"),pro:(0,tn.__)("Pro Only","squad-modules-for-divi")},FilterSaveChanges:(0,tn.__)("Apply and Save","squad-modules-for-divi"),ServerLoadIssue:(0,tn.__)("Oops! We couldn't load the extension list. Please refresh the page or try again later.","squad-modules-for-divi"),FeatureLoading:(0,tn.__)("Discovering available extensions… Please wait.","squad-modules-for-divi")},listStyle:"grid",listFilter:!0,saveCallback:n}})},Ro=function({params:e}){const[t,n]=(0,r.useState)({isServerOk:!0,modules:[],activeModules:[],inactiveModules:[],copiedModules:[],isFilterByCategory:!1,isFilterByFeature:!1}),o=(0,r.useCallback)(((e,t)=>{const{features:n,activeFeatures:r}=e,o={loading:(0,tn.__)("Preparing to save your module settings…","squad-modules-for-divi"),success:()=>(t({isChanged:!1,isSaving:!1}),(0,tn.__)("Success! Your enabled modules have been saved. The changes will take effect immediately.","squad-modules-for-divi")),error:()=>(t({isChanged:!0,isSaving:!0}),(0,tn.__)("Oops! We encountered an issue while saving your enabled modules. Please try again in a few moments. If the problem persists, contact support.","squad-modules-for-divi"))};t({isSaving:!0});const a=sn.rest_api_v2;if(!a.routes.Modules)return!1;const i=n.filter((e=>!e.is_premium_feature)).map((e=>e.name)),s=r.filter((e=>i.includes(e)));if(an&&sn.rest_api_pro){const e=sn.rest_api_pro,t=n.filter((e=>e.is_premium_feature)).map((e=>e.name)),i=r.filter((e=>t.includes(e)));Cr.promise(Promise.all([vo()({path:`${a.namespace}${a.routes.ModulesEnableBatch.root}`,method:"POST",data:s}),vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`,method:"POST",data:i})]),o)}else Cr.promise(vo()({path:`${a.namespace}${a.routes.ModulesEnableBatch.root}`,method:"POST",data:s}),o);return!0}),[]);return(0,r.useEffect)((()=>{const e=sn.rest_api_v2;e.routes.Modules&&e.routes.ModulesActive&&e.routes.ModulesInactive&&(async()=>{try{let t,r,o;if(an&&sn.rest_api_pro){const n=sn.rest_api_pro,[a,i,s]=await Promise.all([Promise.all([vo()({path:`${e.namespace}${e.routes.Modules.root}`}),vo()({path:`${n.namespace}${n.routes.Modules.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`}),vo()({path:`${n.namespace}${n.routes.ModulesActive.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ModulesInactive.root}`}),vo()({path:`${n.namespace}${n.routes.ModulesInactive.root}`})])]);t=jo([...a[0].modules,...a[1]]),r=jo([...i[0],...i[1]]),o=jo([...s[0],...s[1]])}else{const[n,a,i]=await Promise.all([vo()({path:`${e.namespace}${e.routes.Modules.root}`}),vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`}),vo()({path:`${e.namespace}${e.routes.ModulesInactive.root}`})]);t=jo(n.modules),r=jo(a),o=jo(i)}n((e=>({...e,modules:t,activeModules:r,inactiveModules:o})))}catch{n((e=>({...e,isServerOk:!1})))}})()}),[]),(0,r.useEffect)((()=>{(()=>{const{category:r,feature:o}=e;let a=t.modules;r&&o&&!t.isFilterByFeature?(a=t.modules.filter((e=>e.category===r&&e.settings_route===o)),n((e=>({...e,modules:a,copiedModules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByFeature:!0})))):!r||o||t.isFilterByCategory?0===Object.keys(e).length&&(t.isFilterByCategory||t.isFilterByFeature)&&n((e=>({...e,modules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByCategory:!1,isFilterByFeature:!1}))):(a=t.modules.filter((e=>e.category===r)),n((e=>({...e,modules:a,copiedModules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByCategory:!0}))))})()}),[e,t.modules,t.copiedModules,t.isFilterByCategory,t.isFilterByFeature]),(0,cn.jsx)(Oo,{options:{settings:sn,isProPluginActive:on,type:"modules",features:t.modules,activeFeatures:t.activeModules,inactiveFeatures:t.inactiveModules,isServerOk:t.isServerOk,listTitle:(0,tn.__)("Modules Management","squad-modules-for-divi"),listDescription:(0,tn.__)("Effortlessly control your Divi modules with our intuitive management system. Use the toggle switches to instantly activate or deactivate modules, streamlining your design process and enhancing website performance.","squad-modules-for-divi"),listText:{Toggles:{default:(0,tn.__)("Reset to Default","squad-modules-for-divi"),all:(0,tn.__)("Enable All","squad-modules-for-divi"),none:(0,tn.__)("Disable All","squad-modules-for-divi")},Filters:{all:(0,tn.__)("All Modules","squad-modules-for-divi"),free:(0,tn.__)("Free Only","squad-modules-for-divi"),pro:(0,tn.__)("Pro Only","squad-modules-for-divi")},FilterSaveChanges:(0,tn.__)("Apply and Save","squad-modules-for-divi"),ServerLoadIssue:(0,tn.__)("Oops! We couldn't load the module list. Please refresh the page or try again later.","squad-modules-for-divi"),FeatureLoading:(0,tn.__)("Discovering available modules… Please wait.","squad-modules-for-divi")},listStyle:"grid",listFilter:!0,saveCallback:o}})};function Po(e){return Po="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},Po(e)}function Lo(e){var t=function(e){if("object"!=Po(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Po(t)?t:t+""}function No(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(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 Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Io(e,t){if(e){if("string"==typeof e)return $o(e,t);var n={}.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)?$o(e,t):void 0}}function Fo(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,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||Io(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 Ao(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(null,arguments)}function Uo(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,Lo(r.key),r)}}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zo(e,t)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(e)}function Bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bo=function(){return!!e})()}function Wo(e){return function(e){if(Array.isArray(e))return $o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Io(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 Yo=function(){function e(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||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}var 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(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Go=Math.abs,Zo=String.fromCharCode,Jo=Object.assign;function Xo(e){return e.trim()}function Ko(e,t,n){return e.replace(t,n)}function Qo(e,t){return e.indexOf(t)}function ea(e,t){return 0|e.charCodeAt(t)}function ta(e,t,n){return e.slice(t,n)}function na(e){return e.length}function ra(e){return e.length}function oa(e,t){return t.push(e),e}var aa=1,ia=1,sa=0,la=0,ua=0,ca="";function da(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:aa,column:ia,length:i,return:""}}function pa(e,t){return Jo(da("",null,null,"",null,null,0),e,{length:-e.length},t)}function fa(){return ua=la>0?ea(ca,--la):0,ia--,10===ua&&(ia=1,aa--),ua}function ha(){return ua=la<sa?ea(ca,la++):0,ia++,10===ua&&(ia=1,aa++),ua}function ma(){return ea(ca,la)}function va(){return la}function ga(e,t){return ta(ca,e,t)}function ya(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 ba(e){return aa=ia=1,sa=na(ca=e),la=0,[]}function wa(e){return ca="",e}function xa(e){return Xo(ga(la-1,ka(91===e?e+2:40===e?e+1:e)))}function _a(e){for(;(ua=ma())&&ua<33;)ha();return ya(e)>2||ya(ua)>3?"":" "}function Ca(e,t){for(;--t&&ha()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return ga(e,va()+(t<6&&32==ma()&&32==ha()))}function ka(e){for(;ha();)switch(ua){case e:return la;case 34:case 39:34!==e&&39!==e&&ka(ua);break;case 40:41===e&&ka(e);break;case 92:ha()}return la}function Sa(e,t){for(;ha()&&e+ua!==57&&(e+ua!==84||47!==ma()););return"/*"+ga(t,la-1)+"*"+Zo(47===e?e:ha())}function Ea(e){for(;!ya(ma());)ha();return ga(e,la)}var Oa="-ms-",ja="-moz-",Ma="-webkit-",Ra="comm",Pa="rule",La="decl",Na="@keyframes";function Ta(e,t){for(var n="",r=ra(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Da(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case La:return e.return=e.return||e.value;case Ra:return"";case Na:return e.return=e.value+"{"+Ta(e.children,r)+"}";case Pa:e.value=e.props.join(",")}return na(n=Ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function $a(e){return wa(Ia("",null,null,null,[""],e=ba(e),0,[0],e))}function Ia(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,p=0,f=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,x=a,_=r,C=b;v;)switch(h=y,y=ha()){case 40:if(108!=h&&58==ea(C,d-1)){-1!=Qo(C+=Ko(xa(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=xa(y);break;case 9:case 10:case 13:case 32:C+=_a(h);break;case 92:C+=Ca(va()-1,7);continue;case 47:switch(ma()){case 42:case 47:oa(Aa(Sa(ha(),va()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=na(C)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(C=Ko(C,/\f/g,"")),f>0&&na(C)-d&&oa(f>32?qa(C+";",r,n,d-1):qa(Ko(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(oa(_=Fa(C,t,n,u,c,o,s,b,w=[],x=[],d),a),123===y)if(0===c)Ia(C,t,_,_,w,a,d,s,x);else switch(99===p&&110===ea(C,3)?100:p){case 100:case 108:case 109:case 115:Ia(e,_,_,r&&oa(Fa(e,_,_,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Ia(C,_,_,_,[""],x,0,s,x)}}u=c=f=0,m=g=1,b=C="",d=i;break;case 58:d=1+na(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==fa())continue;switch(C+=Zo(y),y*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(na(C)-1)*g,g=1;break;case 64:45===ma()&&(C+=xa(ha())),p=ma(),c=d=na(b=C+=Ea(va())),y++;break;case 45:45===h&&2==na(C)&&(m=0)}}return a}function Fa(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,p=0===o?a:[""],f=ra(p),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ta(e,d+1,d=Go(m=i[h])),b=e;g<f;++g)(b=Xo(m>0?p[g]+" "+y:Ko(y,/&\f/g,p[g])))&&(l[v++]=b);return da(e,t,n,0===o?Pa:s,l,u,c)}function Aa(e,t,n){return da(e,t,n,Ra,Zo(ua),ta(e,2,-2),0)}function qa(e,t,n,r){return da(e,t,n,La,ta(e,0,r),ta(e,r+1,-1),r)}var Va=function(e,t,n){for(var r=0,o=0;r=o,o=ma(),38===r&&12===o&&(t[n]=1),!ya(o);)ha();return ga(e,la)},Ua=new WeakMap,za=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)||Ua.get(n))&&!r){Ua.set(e,!0);for(var o=[],a=function(e,t){return wa(function(e,t){var n=-1,r=44;do{switch(ya(r)){case 0:38===r&&12===ma()&&(t[n]=1),e[n]+=Va(la-1,t,n);break;case 2:e[n]+=xa(r);break;case 4:if(44===r){e[++n]=58===ma()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Zo(r)}}while(r=ha());return e}(ba(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Ha=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ba(e,t){switch(function(e,t){return 45^ea(e,0)?(((t<<2^ea(e,0))<<2^ea(e,1))<<2^ea(e,2))<<2^ea(e,3):0}(e,t)){case 5103:return Ma+"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 Ma+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ma+e+ja+e+Oa+e+e;case 6828:case 4268:return Ma+e+Oa+e+e;case 6165:return Ma+e+Oa+"flex-"+e+e;case 5187:return Ma+e+Ko(e,/(\w+).+(:[^]+)/,Ma+"box-$1$2"+Oa+"flex-$1$2")+e;case 5443:return Ma+e+Oa+"flex-item-"+Ko(e,/flex-|-self/,"")+e;case 4675:return Ma+e+Oa+"flex-line-pack"+Ko(e,/align-content|flex-|-self/,"")+e;case 5548:return Ma+e+Oa+Ko(e,"shrink","negative")+e;case 5292:return Ma+e+Oa+Ko(e,"basis","preferred-size")+e;case 6060:return Ma+"box-"+Ko(e,"-grow","")+Ma+e+Oa+Ko(e,"grow","positive")+e;case 4554:return Ma+Ko(e,/([^-])(transform)/g,"$1"+Ma+"$2")+e;case 6187:return Ko(Ko(Ko(e,/(zoom-|grab)/,Ma+"$1"),/(image-set)/,Ma+"$1"),e,"")+e;case 5495:case 3959:return Ko(e,/(image-set\([^]*)/,Ma+"$1$`$1");case 4968:return Ko(Ko(e,/(.+:)(flex-)?(.*)/,Ma+"box-pack:$3"+Oa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ma+e+e;case 4095:case 3583:case 4068:case 2532:return Ko(e,/(.+)-inline(.+)/,Ma+"$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(na(e)-1-t>6)switch(ea(e,t+1)){case 109:if(45!==ea(e,t+4))break;case 102:return Ko(e,/(.+:)(.+)-([^]+)/,"$1"+Ma+"$2-$3$1"+ja+(108==ea(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qo(e,"stretch")?Ba(Ko(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ea(e,t+1))break;case 6444:switch(ea(e,na(e)-3-(~Qo(e,"!important")&&10))){case 107:return Ko(e,":",":"+Ma)+e;case 101:return Ko(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ma+(45===ea(e,14)?"inline-":"")+"box$3$1"+Ma+"$2$3$1"+Oa+"$2box$3")+e}break;case 5936:switch(ea(e,t+11)){case 114:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ma+e+Oa+e+e}return e}var Wa=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case La:e.return=Ba(e.value,e.length);break;case Na:return Ta([pa(e,{value:Ko(e.value,"@","@"+Ma)})],r);case Pa:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ta([pa(e,{props:[Ko(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ta([pa(e,{props:[Ko(t,/:(plac\w+)/,":"+Ma+"input-$1")]}),pa(e,{props:[Ko(t,/:(plac\w+)/,":-moz-$1")]}),pa(e,{props:[Ko(t,/:(plac\w+)/,Oa+"input-$1")]})],r)}return""}))}}],Ya=function(e){var t=e.key;if("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,o,a=e.stylisPlugins||Wa,i={},s=[];r=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;s.push(e)}));var l,u,c,d,p=[Da,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[za,Ha].concat(a,p),c=ra(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ta($a(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Yo({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h},Ga=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Za={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,scale: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 Ja(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Xa=/[A-Z]|^ms/g,Ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(e){return 45===e.charCodeAt(1)},ei=function(e){return null!=e&&"boolean"!=typeof e},ti=Ja((function(e){return Qa(e)?e:e.replace(Xa,"-$&").toLowerCase()})),ni=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ka,(function(e,t,n){return oi={name:t,styles:n,next:oi},t}))}return 1===Za[e]||Qa(e)||"number"!=typeof t||0===t?t:t+"px"};function ri(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return oi={name:o.name,styles:o.styles,next:oi},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)oi={name:i.name,styles:i.styles,next:oi},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ri(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":ei(s)&&(r+=ti(a)+":"+ni(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ri(e,t,i);switch(a){case"animation":case"animationName":r+=ti(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)ei(i[u])&&(r+=ti(a)+":"+ni(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=oi,l=n(e);return oi=s,ri(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var oi,ai=/label:\s*([^\s;{]+)\s*(;|$)/g;function ii(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="";oi=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ri(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ri(n,t,e[i]),r&&(o+=a[i]);ai.lastIndex=0;for(var s,l="";null!==(s=ai.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:oi}}var si,li,ui=!!r.useInsertionEffect&&r.useInsertionEffect,ci=ui||function(e){return e()},di=(ui||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?Ya({key:"css"}):null)),pi=(di.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(di);return e(t,o,n)}))}),fi=r.createContext({}),hi={}.hasOwnProperty,mi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ga(t,n,r),ci((function(){return function(e,t,n){Ga(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},gi=pi((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[mi],i=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=ii(i,void 0,r.useContext(fi));s+=t.key+"-"+l.name;var u={};for(var c in e)hi.call(e,c)&&"css"!==c&&c!==mi&&(u[c]=e[c]);return u.className=s,n&&(u.ref=n),r.createElement(r.Fragment,null,r.createElement(vi,{cache:t,serialized:l,isStringTag:"string"==typeof a}),r.createElement(a,u))})),yi=gi,bi=(n(486),function(e,t){var n=arguments;if(null==t||!hi.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=yi,a[1]=function(e,t){var n={};for(var r in t)hi.call(t,r)&&(n[r]=t[r]);return n[mi]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)});function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ii(t)}si=bi||(bi={}),li||(li=si.JSX||(si.JSX={}));const xi=window.ReactDOM,_i=Math.min,Ci=Math.max,ki=Math.round,Si=Math.floor,Ei=e=>({x:e,y:e});function Oi(){return"undefined"!=typeof window}function ji(e){return Pi(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ri(e){var t;return null==(t=(Pi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pi(e){return!!Oi()&&(e instanceof Node||e instanceof Mi(e).Node)}function Li(e){return!!Oi()&&(e instanceof Element||e instanceof Mi(e).Element)}function Ni(e){return!!Oi()&&(e instanceof HTMLElement||e instanceof Mi(e).HTMLElement)}function Ti(e){return!(!Oi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot)}function Di(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$i(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $i(e){return Mi(e).getComputedStyle(e)}function Ii(e){const t=function(e){if("html"===ji(e))return e;const t=e.assignedSlot||e.parentNode||Ti(e)&&e.host||Ri(e);return Ti(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(ji(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ni(t)&&Di(t)?t:Ii(t)}function Fi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ii(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Mi(o);if(a){const e=Ai(i);return t.concat(i,i.visualViewport||[],Di(o)?o:[],e&&n?Fi(e):[])}return t.concat(o,Fi(o,[],n))}function Ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qi(e){return Li(e)?e:e.contextElement}function Vi(e){const t=qi(e);if(!Ni(t))return Ei(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=$i(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ni(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ki(n)!==a||ki(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}(t);let i=(a?ki(n.width):n.width)/r,s=(a?ki(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ui=Ei(0);function zi(e){const t=Mi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ui}function Hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=qi(e);let i=Ei(1);t&&(r?Li(r)&&(i=Vi(r)):i=Vi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mi(e))&&t}(a,n,r)?zi(a):Ei(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Mi(a),t=r&&Li(r)?Mi(r):r;let n=e,o=Ai(n);for(;o&&r&&t!==n;){const e=Vi(o),t=o.getBoundingClientRect(),r=$i(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=Mi(o),o=Ai(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:l,y:u})}var Bi=r.useLayoutEffect,Wi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yi=function(){};function Gi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Zi(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(Gi(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ji=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Po(e)&&null!==e?[e]:[];var t},Xi=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,Do({},Ao(e,Wi))},Ki=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 Qi(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function es(e){return Qi(e)?window.pageYOffset:e.scrollTop}function ts(e,t){Qi(e)?window.scrollTo(0,t):e.scrollTop=t}function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yi,o=es(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ts(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function rs(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ts(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ts(e,Math.max(t.offsetTop-o,0))}function os(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var as=!1,is={get passive(){return as=!0}},ss="undefined"!=typeof window?window:{};ss.addEventListener&&ss.removeEventListener&&(ss.addEventListener("p",Yi,is),ss.removeEventListener("p",Yi,!1));var ls=as;function us(e){return null!=e}function cs(e,t,n){return e?t:n}var ds=["children","innerProps"],ps=["children","innerProps"];var fs,hs=function(e){return"auto"===e?"bottom":e},ms=(0,r.createContext)(null),vs=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,r.useContext)(ms)||{}).setPortalPlacement,c=(0,r.useRef)(null),d=Fo((0,r.useState)(o),2),p=d[0],f=d[1],h=Fo((0,r.useState)(null),2),m=h[0],v=h[1],g=l.spacing.controlHeight;return Bi((function(){var e=c.current;if(e){var t="fixed"===i,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=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),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,g=i||Qi(c=l)?window.innerHeight:c.clientHeight,y=es(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=v-w,_=g-m,C=x+y,k=d-y-m,S=f-g+y+b,E=y+m-w,O=160;switch(o){case"auto":case"bottom":if(_>=h)return{placement:"bottom",maxHeight:t};if(k>=h&&!i)return a&&ns(l,S,O),{placement:"bottom",maxHeight:t};if(!i&&k>=r||i&&_>=r)return a&&ns(l,S,O),{placement:"bottom",maxHeight:i?_-b:k-b};if("auto"===o||i){var j=t,M=i?x:C;return M>=r&&(j=Math.min(M-b-s,t)),{placement:"top",maxHeight:j}}if("bottom"===o)return a&&ts(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(C>=h&&!i)return a&&ns(l,E,O),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&x>=r){var R=t;return(!i&&C>=r||i&&x>=r)&&(R=i?x-w:C-w),a&&ns(l,E,O),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(r.maxHeight),v(r.placement),null==u||u(r.placement)}}),[o,a,i,s,n,u,g]),t({ref:c,placerProps:Do(Do({},e),{},{placement:m||hs(a),maxHeight:p})})},gs=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Do({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ys=gs,bs=gs,ws=["size"],xs=["innerProps","isRtl","size"],_s={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Cs=function(e){var t=e.size,n=Ao(e,ws);return bi("svg",Vo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_s},n))},ks=function(e){return bi(Cs,Vo({size:20},e),bi("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"}))},Ss=function(e){return bi(Cs,Vo({size:20},e),bi("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"}))},Es=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Do({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Os=Es,js=Es,Ms=function(){var e=wi.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_"}}}(fs||(fs=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),Rs=function(e){var t=e.delay,n=e.offset;return bi("span",{css:wi({animation:"".concat(Ms," 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"},"","")})},Ps=["data"],Ls=["innerRef","isDisabled","isHidden","inputClassName"],Ns={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ts={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Do({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ns)},Ds=function(e){return Do({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ns)},$s=function(e){var t=e.children,n=e.innerProps;return bi("div",n,t)},Is={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||bi(ks,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return bi("div",Vo({ref:o},Ki(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||bi(Ss,null))},DownChevron:Ss,CrossIcon:ks,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return bi("div",Vo({},Ki(e,"group",{group:!0}),s),bi(a,Vo({},i,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),bi("div",null,t))},GroupHeading:function(e){var t=Xi(e);t.data;var n=Ao(t,Ps);return bi("div",Vo({},Ki(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return bi("span",Vo({},t,Ki(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Xi(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=Ao(r,Ls);return bi("div",Vo({},Ki(e,"input",{"input-container":!0}),{"data-value":n||""}),bi("input",Vo({className:t({input:!0},s),ref:o,style:Ds(i),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Ao(e,xs);return bi("div",Vo({},Ki(Do(Do({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),bi(Rs,{delay:0,offset:n}),bi(Rs,{delay:160,offset:!0}),bi(Rs,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return bi("div",Vo({},Ki(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return bi("div",Vo({},Ki(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,i=e.menuPlacement,s=e.menuPosition,l=(0,r.useRef)(null),u=(0,r.useRef)(null),c=Fo((0,r.useState)(hs(i)),2),d=c[0],p=c[1],f=(0,r.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=Fo((0,r.useState)(null),2),m=h[0],v=h[1],g=(0,r.useCallback)((function(){if(o){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}}(o),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||v({offset:n,rect:e})}}),[o,s,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Bi((function(){g()}),[g]);var y=(0,r.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=qi(e),c=o||a?[...u?Fi(u):[],...Fi(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Ri(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Si(c)+"px "+-Si(o.clientWidth-(u+d))+"px "+-Si(o.clientHeight-(c+p))+"px "+-Si(u)+"px",threshold:Ci(0,_i(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(u,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Hi(e):null;return l&&function t(){const r=Hi(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(o,l.current,g,{elementResize:"ResizeObserver"in window}))}),[o,g]);Bi((function(){y()}),[y]);var b=(0,r.useCallback)((function(e){l.current=e,y()}),[y]);if(!t&&"fixed"!==s||!m)return null;var w=bi("div",Vo({ref:b},Ki(Do(Do({},e),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),a),n);return bi(ms.Provider,{value:f},t?(0,xi.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ao(e,ps);return bi("div",Vo({},Ki(Do(Do({},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=Ao(e,ds);return bi("div",Vo({},Ki(Do(Do({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return bi(l,{data:r,innerProps:Do(Do({},Ki(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},bi(u,{data:r,innerProps:Do({},Ki(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),bi(c,{data:r,innerProps:Do(Do({},Ki(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},MultiValueContainer:$s,MultiValueLabel:$s,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({role:"button"},n),t||bi(ks,{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 bi("div",Vo({},Ki(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 bi("div",Vo({},Ki(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return bi("div",Vo({},Ki(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return bi("div",Vo({},Ki(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 bi("div",Vo({},Ki(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Fs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function As(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Fs(r)&&Fs(o)))return!1;var r,o;return!0}for(var qs={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"},Vs=function(e){return bi("span",Vo({css:qs},e))},Us={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".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,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,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&&u){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},zs=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,a=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,v=l.isSearchable,g=l.menuIsOpen,y=l.options,b=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,_=l["aria-label"],C=l["aria-live"],k=(0,r.useMemo)((function(){return Do(Do({},Us),d||{})}),[d]),S=(0,r.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,a=t.removedValue,i=t.removedValues,l=t.value,u=a||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=o||i||void 0,f=d?d.map(p):[],h=Do({isDisabled:u&&m(u,s),label:c,labels:f},t);n=k.onChange(h)}return n}),[t,k,m,s,p]),E=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&k.onFocus){var i={focused:t,label:p(t),isDisabled:m(t,s),isSelected:r,options:a,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=k.onFocus(i)}return e}),[n,o,p,m,k,a,s,c]),O=(0,r.useMemo)((function(){var e="";if(g&&y.length&&!x&&k.onFilter){var t=b({count:a.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[a,f,g,k,y,b,x]),j="initial-input-focus"===(null==t?void 0:t.action),M=(0,r.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":g?"menu":"input";e=k.guidance({"aria-label":_,context:t,isDisabled:n&&m(n,s),isMulti:h,isSearchable:v,tabSelectsValue:w,isInitialFocus:j})}return e}),[_,n,o,h,m,v,g,k,s,w,j]),R=bi(r.Fragment,null,bi("span",{id:"aria-selection"},S),bi("span",{id:"aria-focused"},E),bi("span",{id:"aria-results"},O),bi("span",{id:"aria-guidance"},M));return bi(r.Fragment,null,bi(Vs,{id:u},j&&R),bi(Vs,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&R))},Hs=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Bs=new RegExp("["+Hs.map((function(e){return e.letters})).join("")+"]","g"),Ws={},Ys=0;Ys<Hs.length;Ys++)for(var Gs=Hs[Ys],Zs=0;Zs<Gs.letters.length;Zs++)Ws[Gs.letters[Zs]]=Gs.base;var Js=function(e){return e.replace(Bs,(function(e){return Ws[e]}))},Xs=function(e,t){void 0===t&&(t=As);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Js),Ks=function(e){return e.replace(/^\s+|\s+$/g,"")},Qs=function(e){return"".concat(e.label," ").concat(e.value)},el=["innerRef"];function tl(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=Fo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Fo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Ao(e,el),"onExited","in","enter","exit","appear");return bi("input",Vo({ref:t},n,{css:wi({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var nl=["boxSizing","height","overflow","paddingRight","position"],rl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ol(e){e.cancelable&&e.preventDefault()}function al(e){e.stopPropagation()}function il(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function sl(){return"ontouchstart"in window||navigator.maxTouchPoints}var ll=!("undefined"==typeof window||!window.document||!window.document.createElement),ul=0,cl={capture:!1,passive:!1},dl=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},pl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fl(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=(0,r.useRef)(0),c=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,u=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=c.current,h=t>0,m=d-p-u,v=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(i&&i(e),l.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=d,v=!0,s.current=!0):!h&&-t>u&&(a&&!l.current&&a(e),f.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,a,i]),p=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,r.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,r.useCallback)((function(e){if(e){var t=!!ls&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),v=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,r.useEffect)((function(){if(t){var e=c.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,a=(0,r.useRef)({}),i=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(ll){var t=document.body,n=t&&t.style;if(o&&nl.forEach((function(e){var t=n&&n[e];a.current[e]=t})),o&&ul<1){var r=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+r||0;Object.keys(rl).forEach((function(e){var t=rl[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&sl()&&(t.addEventListener("touchmove",ol,cl),e&&(e.addEventListener("touchstart",il,cl),e.addEventListener("touchmove",al,cl))),ul+=1}}),[o]),l=(0,r.useCallback)((function(e){if(ll){var t=document.body,n=t&&t.style;ul=Math.max(ul-1,0),o&&ul<1&&nl.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&sl()&&(t.removeEventListener("touchmove",ol,cl),e&&(e.removeEventListener("touchstart",il,cl),e.removeEventListener("touchmove",al,cl)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=i.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){i.current=e}}({isEnabled:n});return bi(r.Fragment,null,n&&bi("div",{onClick:dl,css:pl}),t((function(e){a(e),i(e)})))}var hl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ml=function(e){var t=e.name,n=e.onFocus;return bi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:hl,value:"",onChange:function(){}})};function vl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function gl(){return vl(/^Mac/i)}var yl={clearIndicator:js,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 Do({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:Os,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 Do({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 Do({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 Do(Do({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ts),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 Do({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:bs,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Do((No(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),No(n,"position","absolute"),No(n,"width","100%"),No(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Do({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 Do({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 Do({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 Do({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:ys,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Do({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Do({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 Do({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 Do({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")})}},bl={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}},wl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:os(),captureMenuScroll:!os(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Do({ignoreCase:!0,ignoreAccents:!0,stringify:Qs,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Ks(t):t,u=i?Ks(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Xs(l),u=Js(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!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 xl(e,t,n,r){return{type:"option",data:t,isDisabled:Ml(e,t,n),isSelected:Rl(e,t,n),label:Ol(e,t),value:jl(e,t),index:r}}function _l(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return xl(e,n,t,r)})).filter((function(t){return Sl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xl(e,n,t,r);return Sl(e,a)?a:void 0})).filter(us)}function Cl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Wo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function kl(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Wo(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Sl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Ll(e)||!a)&&Pl(e,{label:i,value:s,data:o},r)}var El=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Ol=function(e,t){return e.getOptionLabel(t)},jl=function(e,t){return e.getOptionValue(t)};function Ml(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Rl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=jl(e,t);return n.some((function(t){return jl(e,t)===r}))}function Pl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ll=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Nl=1,Tl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}(n,e);var t=function(e){var t=Bo();return function(){var n,r=Ho(e);if(t){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Po(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)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=gl()||vl(/^iPhone/i)||vl(/^iPad/i)||gl()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var u=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:a});o?r.setValue([].concat(Wo(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=cs(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(cs(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=cs(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return El(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return kl(_l(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zi.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Ol(r.props,e)},r.getOptionValue=function(e){return jl(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=yl[e](t,n);o.boxSizing="border-box";var a=r.props.styles[e];return a?a(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Do(Do({},Is),e.components);var e},r.buildCategorizedOptions=function(){return _l(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Cl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Do({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Qi(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Ll(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Nl),r.state.selectValue=Ji(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),i=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=a[i],r.state.focusedOptionId=El(o,a[i])}return r}return function(e,t,n){t&&Uo(e.prototype,t),n&&Uo(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rs(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&&(rs(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 s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(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,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(bl):Do(Do({},bl),this.props.theme):bl}},{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,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:a,selectProps:s,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 Ml(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Rl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Pl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=Do(Do(Do({"aria-autocomplete":"list","aria-expanded":l,"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":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(c,Vo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:a},v)):r.createElement(tl,Vo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yi,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,Vo({},u,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return g.map((function(t,s){var l=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,Vo({},u,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return r.createElement(s,Vo({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Vo({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;return e&&a?r.createElement(e,Vo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return r.createElement(n,Vo({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Vo({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,_=f.menuPosition,C=f.menuPortalTarget,k=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,E=f.noOptionsMessage,O=f.onMenuScrollToTop,j=f.onMenuScrollToBottom;if(!w)return null;var M,R=function(t,n){var o=t.type,a=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,f=p===a,h=i?void 0:function(){return e.onOptionHover(a)},m=i?void 0:function(){return e.selectOption(a)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return r.createElement(c,Vo({},d,{innerProps:g,data:a,isDisabled:i,isSelected:s,key:v,label:l,type:o,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return r.createElement(n,Vo({},d,{key:l,data:a,options:i,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(v){var P=g({inputValue:m});if(null===P)return null;M=r.createElement(l,d,P)}else{var L=E({inputValue:m});if(null===L)return null;M=r.createElement(u,d,L)}var N={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:_,menuShouldScrollIntoView:S},T=r.createElement(vs,Vo({},d,N),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(a,Vo({},d,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),r.createElement(fl,{captureEnabled:h,onTopArrive:O,onBottomArrive:j,lockEnabled:k},(function(t){return r.createElement(i,Vo({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:p}),M)})))}));return C||"fixed"===_?r.createElement(s,Vo({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:_}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,a=t.isMulti,i=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(ml,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(a){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:i,type:"hidden",value:u})}var c=l.length>0?l.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:i,type:"hidden",value:""});return r.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(zs,Vo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,u=i.isDisabled,c=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,Vo({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),r.createElement(t,Vo({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),r.createElement(a,Vo({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,Vo({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Ji(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var v=d?function(e,t){return Cl(_l(e,t))}(e,h):[],g=d?kl(_l(e,h),"".concat(l,"-option")):[],y=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,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedOptionId:El(g,b),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=a,_=i&&s;return i&&!_&&(x={value:cs(f,h,h[0]||null),options:h,action:"initial-input-focus"},_=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),Do(Do(Do({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:_})}}]),n}(r.Component);Tl.defaultProps=wl;var Dl=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,a=void 0!==o&&o,i=e.defaultValue,s=void 0===i?null:i,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=Ao(e,qo),v=Fo((0,r.useState)(void 0!==l?l:n),2),g=v[0],y=v[1],b=Fo((0,r.useState)(void 0!==u?u:a),2),w=b[0],x=b[1],_=Fo((0,r.useState)(void 0!==h?h:s),2),C=_[0],k=_[1],S=(0,r.useCallback)((function(e,t){"function"==typeof c&&c(e,t),k(e)}),[c]),E=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),O=(0,r.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),j=(0,r.useCallback)((function(){"function"==typeof p&&p(),x(!1)}),[p]),M=void 0!==l?l:g,R=void 0!==u?u:w,P=void 0!==h?h:C;return Do(Do({},m),{},{inputValue:M,menuIsOpen:R,onChange:S,onInputChange:E,onMenuClose:j,onMenuOpen:O,value:P})}(e);return r.createElement(Tl,Vo({ref:t},n))})),$l=Dl;const Il={technical_support:(0,tn.__)("Technical Support","squad-modules-pro-for-divi"),billing_issue:(0,tn.__)("Billing Issue","squad-modules-pro-for-divi"),feature_request:(0,tn.__)("Feature Request","squad-modules-pro-for-divi"),customization:(0,tn.__)("Customization","squad-modules-pro-for-divi"),"pre-sale_question":(0,tn.__)("Pre-Sale Question","squad-modules-pro-for-divi"),press:(0,tn.__)("Press","squad-modules-pro-for-divi"),bug:(0,tn.__)("Bug","squad-modules-pro-for-divi")},Fl={default:(0,tn.__)("Please describe the issue you are having. Be detailed but brief.","squad-modules-pro-for-divi"),feature_request:(0,tn.__)("Describe the feature you would like to see added.","squad-modules-pro-for-divi"),customization:(0,tn.__)("Please describe the use-case and the different features you would like to be custom developed for you.","squad-modules-pro-for-divi"),"pre-sale_question":(0,tn.__)("What would you like to know before purchasing?","squad-modules-pro-for-divi"),press:(0,tn.__)("Please provide all the information about the press cover.","squad-modules-pro-for-divi"),bug:(0,tn.__)("Please describe the bug and how to reproduce it.","squad-modules-pro-for-divi")},Al=["technical_support","bug"],ql=[...Al,"customization"],Vl=({title:e,description:t,content:n})=>(0,cn.jsxs)("div",{className:"support-section",children:[(0,cn.jsxs)("div",{className:"support-section-header",children:[e,t&&(0,cn.jsx)("p",{children:t})]}),(0,cn.jsx)("div",{className:"support-section-content",children:n})]}),Ul=function(){const e=sn.support,t={isSaving:!1,isChanged:!1,account:{full_name:e.user_name,email_address:e.user_email,site_url:e.user_site},errors:[],missing:[]},[n,o]=(0,r.useState)(t),a=(0,r.useCallback)((e=>{o((t=>({...t,account:{...t.account,...e},isChanged:!0})))}),[]),i=(0,r.useCallback)((e=>{if(n.account&&(n.errors?.includes(e)||n.missing?.includes(e))&&!n.account[e])return"squad-error-field"}),[n.account,n.errors,n.missing]),s=n.account?.support_type?.value||"default",l=Fl[s],u=Object.entries(Il).map((([e,t])=>({label:t,value:e}))),c=({className:e,options:t,name:n,label:r,value:o,placeholder:i,noOptionsMessage:s})=>(0,cn.jsxs)("div",{className:"squad-input-container",children:[(0,cn.jsx)("label",{htmlFor:n,children:Lr(r)}),(0,cn.jsx)($l,{className:`squad-select-container ${e}`,classNamePrefix:"squad-select",id:n,styles:{control:e=>({...e,backgroundColor:"white"}),option:(e,{isDisabled:t,isFocused:n,isSelected:r})=>({...e,backgroundColor:t?void 0:r?"#5e2eff":n?"#8a86fe":void 0,color:t?void 0:r||n?"white":void 0,cursor:t?"not-allowed":"default"})},options:t,value:o,placeholder:i,noOptionsMessage:s,onChange:e=>a({[n]:e})})]});return(0,cn.jsxs)("div",{className:"support-wrapper",children:[(0,cn.jsx)("div",{className:"header-bar",children:(0,cn.jsx)("div",{className:"bar compact",children:(0,cn.jsxs)("div",{className:"multi-lines",children:[(0,cn.jsx)("h4",{children:(0,tn.__)("Have questions? We're happy to help!","squad-modules-pro-for-divi")}),(0,cn.jsx)("p",{className:"content",children:(0,tn.__)("We'll do our best to get back to you as soon as we can.","squad-modules-pro-for-divi")})]})})}),(0,cn.jsx)("div",{className:"container",children:(0,cn.jsxs)("form",{method:"post",className:"support-form",onSubmit:async e=>{if(e.preventDefault(),!n.isChanged)return;o((e=>({...e,isChanged:!1,isSaving:!0})));const r=sn.rest_api_pro,a={path:`${r.namespace}${r.routes.MailSupportQuery?.root}`,method:"POST",data:{...n.account,support_type:s}};try{const e=await vo()(a);Xn.success(e.message||(0,tn.__)("Your query sent successfully.","squad-modules-pro-for-divi")),o((e=>({...e,isChanged:!1,isSaving:!1,account:t.account})))}catch(e){Xn.error(e.message||(0,tn.__)("Your query sending failed. Please try again later.","squad-modules-pro-for-divi")),o((t=>({...t,isChanged:!0,isSaving:!1,errors:e.fields||[],missing:e.fields||[]})))}},children:[(0,cn.jsx)(Vl,{title:(0,tn.__)("Personal Information","squad-modules-pro-for-divi"),content:(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Sn.TextControl,{type:"text",label:(0,tn.__)("Name","squad-modules-pro-for-divi"),value:n.account?.full_name,placeholder:(0,tn.__)("Your first and last name","squad-modules-pro-for-divi"),className:i("full_name"),onChange:e=>a({full_name:e})}),(0,cn.jsx)(Sn.TextControl,{type:"email",label:(0,tn.__)("Email Address","squad-modules-pro-for-divi"),value:n.account?.email_address,placeholder:(0,tn.__)("Your email address","squad-modules-pro-for-divi"),className:i("email_address"),onChange:e=>a({email_address:e})})]})}),(0,cn.jsx)(Vl,{title:(0,tn.__)("Support Query","squad-modules-pro-for-divi"),content:(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(c,{name:"support_type",options:u,value:n.account?.support_type,label:(0,tn.__)("Support Type","squad-modules-pro-for-divi"),placeholder:(0,tn.__)("Select a type","squad-modules-pro-for-divi"),className:i("support_type"),noOptionsMessage:()=>(0,tn.__)("No options found","squad-modules-pro-for-divi")}),n.account?.support_type&&(0,cn.jsxs)(cn.Fragment,{children:[ql.includes(s)&&(0,cn.jsx)(Sn.TextControl,{type:"url",label:(0,tn.__)("Site Address","squad-modules-pro-for-divi"),value:n.account.site_url||"",placeholder:(0,tn.sprintf)(
     173`,_r=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:o,children:a,containerStyle:i,containerClassName:s})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,r.useState)(Yn),o=(0,r.useRef)(Yn);(0,r.useEffect)((()=>(o.current!==Yn&&n(Yn),Wn.push(n),()=>{let e=Wn.indexOf(n);e>-1&&Wn.splice(e,1)})),[]);let a=t.toasts.map((t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Zn[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}}));return{...t,toasts:a}})(e);(0,r.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>Xn.dismiss(t.id)),n);t.visible&&Xn.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let o=(0,r.useCallback)((()=>{n&&Gn({type:6,time:Date.now()})}),[n]),a=(0,r.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:a}=n||{},i=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),s=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<s&&e.visible)).length;return i.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return(0,r.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(er.has(e))return;let n=setTimeout((()=>{er.delete(e),Gn({type:4,toastId:e})}),t);er.set(e,n)})(e.id,e.removeDelay);else{let t=er.get(e.id);t&&(clearTimeout(t),er.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:Kn,startPause:Qn,endPause:o,calculateOffset:a}}})(n);return r.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((n=>{let i=n.position||t,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Hn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(i,u.calculateOffset(n,{reverseOrder:e,gutter:o,defaultPosition:t}));return r.createElement(wr,{id:n.id,key:n.id,onHeightUpdate:u.updateHeight,className:n.visible?xr:"",style:s},"custom"===n.type?Un(n.message,n):a?a(n):r.createElement(br,{toast:n,position:i}))})))},Cr=Xn;const kr=()=>(0,cn.jsx)(_r,{position:"top-right",reverseOrder:!0,containerClassName:"squad-toast-container",toastOptions:{className:"squad-toast-response",style:{zIndex:"10000000"},success:{iconTheme:{primary:"#5e2eff",secondary:"#fff"}},duration:5e3,ariaProps:{role:"alert","aria-live":"polite"}}}),Sr=()=>null,Er=({className:e})=>(0,cn.jsxs)("svg",{className:e,width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,cn.jsx)("path",{d:"M37.5013 0.481976C39.0154 0.471462 39.0154 0.471462 40.56 0.460736C43.8722 0.443237 47.1835 0.454751 50.4957 0.468304C52.813 0.465606 55.1303 0.461722 57.4476 0.456707C62.2952 0.450823 67.1425 0.45934 71.9901 0.47807C78.1849 0.500845 84.3789 0.487737 90.5737 0.46378C95.3566 0.449282 100.139 0.453946 104.922 0.464291C107.205 0.466948 109.489 0.463725 111.772 0.454373C114.971 0.444143 118.169 0.459798 121.368 0.481976C122.3 0.473879 123.232 0.465782 124.192 0.45744C134.007 0.582646 142.919 4.10916 150 10.9996C156.953 19.4207 159.301 26.2611 159.29 37.053C159.297 38.0506 159.304 39.0482 159.31 40.076C159.329 43.367 159.333 46.6577 159.336 49.9488C159.342 52.2456 159.349 54.5423 159.356 56.8391C159.368 61.6533 159.371 66.4674 159.37 71.2815C159.37 77.4303 159.397 83.5786 159.432 89.7272C159.454 94.4724 159.458 99.2174 159.457 103.963C159.459 106.228 159.468 108.494 159.484 110.76C159.503 113.94 159.497 117.119 159.485 120.299C159.497 121.223 159.508 122.146 159.52 123.098C159.424 133.143 156.152 142.768 149 150C140.589 156.866 132.48 159.458 121.779 159.388C120.788 159.393 119.796 159.398 118.775 159.404C115.518 159.417 112.261 159.408 109.004 159.398C106.727 159.4 104.451 159.403 102.175 159.407C97.4111 159.411 92.6477 159.405 87.8841 159.391C81.7936 159.374 75.7034 159.383 69.6129 159.401C64.9141 159.412 60.2155 159.409 55.5167 159.401C53.2718 159.399 51.0268 159.401 48.7818 159.408C45.6375 159.416 42.4938 159.404 39.3495 159.388C37.9722 159.397 37.9722 159.397 36.567 159.406C26.7549 159.31 18.5475 156.325 10.9996 150C2.93178 141.193 0.852543 132.814 0.83847 121.211C0.833506 120.23 0.828541 119.249 0.823425 118.238C0.808838 114.997 0.802007 111.756 0.796478 108.515C0.790724 106.257 0.784966 103.999 0.779205 101.741C0.768705 97.0063 0.762856 92.272 0.759369 87.5376C0.753888 81.484 0.729864 75.4307 0.701397 69.3771C0.682733 64.7119 0.677563 60.0466 0.676033 55.3813C0.673014 53.1503 0.665012 50.9193 0.651848 48.6883C0.63471 45.5604 0.636687 42.4331 0.643158 39.3052C0.633943 38.3917 0.624728 37.4781 0.615234 36.5368C0.678564 26.7189 3.69575 18.5585 9.9996 10.9996C17.9526 3.44927 26.6783 0.388126 37.5013 0.481976Z",fill:"#FDFCFD"}),(0,cn.jsx)("path",{d:"M112 33.9999C115.539 36.8108 118.802 39.8081 122 42.9999C122.576 43.5645 123.152 44.1291 123.746 44.7108C133.116 54.69 136.364 67.2045 136.25 80.4999C136.261 81.8476 136.261 81.8476 136.273 83.2226C136.231 97.6679 130.319 110.509 120.312 120.82C109.38 131.125 97.4333 136.962 82.3121 137.437C80.4191 137.497 80.4191 137.497 78.4879 137.558C74.0867 136.854 72.7399 135.441 69.9996 132C68.1495 128.919 67.7408 126.629 67.7091 123.051C67.6963 122.07 67.6836 121.088 67.6704 120.077C67.6682 119.023 67.666 117.969 67.6637 116.883C67.657 115.793 67.6504 114.703 67.6435 113.58C67.6334 111.275 67.6287 108.97 67.629 106.665C67.6247 103.145 67.5883 99.6257 67.5504 96.1054C67.5445 93.8645 67.5406 91.6236 67.5387 89.3827C67.5243 88.3325 67.5099 87.2824 67.4951 86.2004C67.5329 80.1421 67.9429 76.6042 71.9996 71.9999C74.7398 69.8366 76.4861 69.0764 79.9371 68.5624C84.6951 69.2421 87.7478 71.3528 90.6434 75.1627C92.3363 78.7041 92.476 81.8589 92.5113 85.7069C92.5293 86.4323 92.5472 87.1577 92.5657 87.9051C92.6197 90.2075 92.6537 92.5096 92.6871 94.8124C92.7203 96.3795 92.7548 97.9465 92.7906 99.5136C92.8754 103.342 92.9423 107.171 92.9996 111C101.503 105.934 107.946 100.52 111.332 90.8944C113.634 80.9176 112.733 72.3318 107.636 63.4569C103.003 56.502 95.9484 51.5887 87.9996 48.9999C76.1276 47.6476 67.6147 49.3518 57.8824 56.5702C51.3837 62.3438 47.9632 70.2194 47.4371 78.8124C47.3694 80.1659 47.3694 80.1659 47.3004 81.5468C46.838 85.3183 45.4775 87.1576 42.9996 89.9999C38.7737 92.8172 34.9634 92.7995 29.9996 91.9999C27.1754 89.8097 25.5845 88.1697 23.9996 84.9999C22.6626 69.2845 27.1323 55.3708 37.2887 43.2733C57.4568 22.0808 87.3121 17.4438 112 33.9999Z",fill:"url(#paint0_linear_393_4)"}),(0,cn.jsx)("path",{d:"M83 69.0004C87.4232 71.3421 89.8503 73.5032 92 78.0004C92.3177 80.6429 92.4875 83.0649 92.5117 85.7074C92.5386 86.7955 92.5386 86.7955 92.5661 87.9056C92.62 90.208 92.6541 92.5101 92.6875 94.8129C92.7207 96.38 92.7552 97.947 92.791 99.5141C92.8757 103.343 92.9426 107.171 93 111C97.52 108.346 89.631 115.048 92.9993 110.951C92.4162 111.646 93.5652 110.277 92.9993 110.951C94.4069 109.217 92.0525 112.535 92.9925 110.5C93.9825 110.5 91.771 111.625 92.791 111.625C95.041 109.375 91.041 117.375 92.791 111.625C92.0935 112.943 93.1421 110.841 92.5117 112.192C93.5217 112.697 91.5217 111.697 92.5117 112.192C89.2877 113.862 93.2749 108.227 92.8115 111.183C92.6568 112.358 92.9488 110.993 92.791 112.192C91.801 112.192 94.0892 112.75 93.0692 112.75C92.4092 113.41 93.0981 112.32 92.4181 113C92.4181 112.34 92.8115 113.931 92.8115 113.251C90.9552 113.499 93.1438 114.248 91.25 114.5C86.3445 115.069 80.9308 115.159 76.0007 115C73.1486 114.908 73.5007 115.5 71.0007 115C68.9997 115 68.9997 115 69.5007 115C69.5142 115.706 68.9867 114.272 69.0007 115C69.036 116.745 68.4427 113.255 68.5 115C67.84 114.67 68.68 115.34 68 115C67.0325 112.098 67.7373 114.829 68.5 115C68.4872 114.019 68.0132 116.511 68 115.5C67.9926 114.441 67.528 116.091 67.5204 115C67.5123 113.909 67.7249 114.195 67.5 113.5C68 111.5 67.5819 108.311 67.574 106C67.5568 102.471 67.4016 99.3453 67.5005 96C67.4016 93.8453 67.581 91.6638 67.5742 89.4184C67.5567 88.365 67.5392 87.3117 67.5212 86.2265C67.5391 80.1539 67.9281 76.613 72 72.0004C75.6661 69.1061 78.3631 68.338 83 69.0004Z",fill:"url(#paint1_linear_393_4)"}),(0,cn.jsxs)("defs",{children:[(0,cn.jsxs)("linearGradient",{id:"paint0_linear_393_4",x1:"80.0208",y1:"24.0039",x2:"80.0208",y2:"137.558",gradientUnits:"userSpaceOnUse",children:[(0,cn.jsx)("stop",{stopColor:"#5E2EFF",stopOpacity:"0.85"}),(0,cn.jsx)("stop",{offset:"1",stopColor:"#3D04FA"})]}),(0,cn.jsxs)("linearGradient",{id:"paint1_linear_393_4",x1:"80.9785",y1:"68.7783",x2:"80.9785",y2:"117.66",gradientUnits:"userSpaceOnUse",children:[(0,cn.jsx)("stop",{stopColor:"#5E2EFF",stopOpacity:"0.83"}),(0,cn.jsx)("stop",{offset:"1",stopColor:"#3B08E8"})]})]})]}),Or=(()=>{const e=!rn.config.isDev,t=rn.version_pro_current.includes(".");return on?e&&t?"stable":"nightly":e?"stable":"nightly"})(),jr=()=>(0,cn.jsxs)("ul",{className:"badges",children:["nightly"===Or&&(0,cn.jsx)(Mr,{}),"stable"===Or&&(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Rr,{}),on&&(0,cn.jsx)(Pr,{})]})]}),Mr=()=>(0,cn.jsxs)("li",{className:"nightly-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Nightly","squad-modules-for-divi")}),(0,cn.jsxs)("span",{className:"badge-version",children:["current(",sn.version.core,")"]})]}),Rr=()=>(0,cn.jsxs)("li",{className:"stable-lite-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Lite","squad-modules-for-divi")}),(0,cn.jsx)("span",{className:"badge-version",children:sn.version.core})]}),Pr=()=>{var e;return(0,cn.jsxs)("li",{className:"stable-pro-badge",children:[(0,cn.jsx)("span",{className:"badge-name",children:(0,tn.__)("Pro","squad-modules-for-divi")}),(0,cn.jsx)("span",{className:"badge-version",children:null!==(e=sn.version.pro)&&void 0!==e?e:sn.version_pro_real})]})},Lr=({title:e=null})=>(0,cn.jsx)("header",{className:"app-header",children:(0,cn.jsx)("div",{className:"app-title",children:(0,cn.jsxs)("div",{className:"title-wrapper",children:[(0,cn.jsx)(Er,{className:"logo"}),(0,cn.jsx)("h1",{className:"title",children:(0,tn.__)("Divi Squad","squad-modules-for-divi")||e}),(0,cn.jsx)(jr,{})]})})}),Nr=(e="")=>function(e){if(!e)return"";e=e.replace(/<script[^>]*>[\S\s]*?<\/script>/gi,"");const t=document.createElement("textarea");return t.innerHTML=e,t.value}(e),Tr=({location:e})=>(0,cn.jsx)("div",{className:"app-menu",children:(0,cn.jsx)("div",{className:"app-menu-container",children:(0,cn.jsx)("div",{className:"menu-list",children:(0,cn.jsx)("ul",{children:sn.admin_menus.map((t=>(0,cn.jsx)(Dr,{menu:t,url:t.menuSlug,location:e},t.menuSlug)))})})})}),Dr=({menu:e,url:t,location:n})=>t.includes("divi_squad_dashboard#")?(0,cn.jsx)("li",{className:`menu-item ${Ar(t,n)}`,children:(0,cn.jsx)(Yt,{to:ln(t),className:$r,children:Nr(sn.l10n[e.menuTitle]||e.menuTitle)})}):(0,cn.jsx)("li",{className:`menu-item ${Ar(t,n)}`,children:(0,cn.jsx)("a",{href:`admin.php?page=${t}`,target:Ir(t),rel:Fr(t),dangerouslySetInnerHTML:{__html:sn.l10n[e.menuTitle]||e.menuTitle}})}),$r=({isPending:e,isActive:t})=>e?"pending":t?"active":"",Ir=e=>e.includes("wp-support-forum")?"_blank":"_self",Fr=e=>e.includes("wp-support-forum")?"noopener noreferrer":"",Ar=(e,t)=>{const n=ln(e),r=un(n,t,"/"===n,"/"!==t.pathname);return e.includes("divi_squad_dashboard#")&&r?"active":""},qr=(0,r.createContext)(null),Vr=({children:e})=>{const[t,n]=(0,r.useState)("light");return(0,cn.jsx)(qr.Provider,{value:{theme:t,setTheme:n},children:e})};function Ur({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const zr=r.forwardRef(Ur);function Hr({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const Br=r.forwardRef(Hr);function Wr({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M4.5 6.375a4.125 4.125 0 1 1 8.25 0 4.125 4.125 0 0 1-8.25 0ZM14.25 8.625a3.375 3.375 0 1 1 6.75 0 3.375 3.375 0 0 1-6.75 0ZM1.5 19.125a7.125 7.125 0 0 1 14.25 0v.003l-.001.119a.75.75 0 0 1-.363.63 13.067 13.067 0 0 1-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 0 1-.364-.63l-.001-.122ZM17.25 19.128l-.001.144a2.25 2.25 0 0 1-.233.96 10.088 10.088 0 0 0 5.06-1.01.75.75 0 0 0 .42-.643 4.875 4.875 0 0 0-6.957-4.611 8.586 8.586 0 0 1 1.71 5.157v.003Z"}))}const Yr=r.forwardRef(Wr),Gr=()=>(0,cn.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:(0,cn.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})}),Zr=()=>{const[e,t]=(0,r.useState)({isPopupOpen:!1,message:""}),n=on?(0,tn.__)("Divi Squad Pro","squad-modules-for-divi"):(0,tn.__)("Divi Squad","squad-modules-for-divi"),o=(0,tn.sprintf)((0,tn.__)("Reply to %1$s …","squad-modules-for-divi"),n),a=(0,r.useCallback)((()=>{const e=navigator.userAgent;return/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(e)}),[]),i=(0,r.useCallback)(((e,n,r)=>{if(!n||!r)return!1;let o;return o=e.whatsapp_web_api?`${e.whatsapp_web_api}/${r}?text=${n}`:a()?`${e.whatsapp_mobile_api}/send?phone=${r}&text=${n}`:`${e.whatsapp_desktop_api}/send?phone=${r}&text=${n}`,window.open(o,"_blank"),t((e=>({...e,isPopupOpen:!1}))),!0}),[a]),s=(0,r.useCallback)((e=>{t((t=>({...t,message:e.target.value})))}),[]),l=(0,r.useCallback)((()=>{t((e=>({...e,isPopupOpen:!e.isPopupOpen})))}),[]),u=(0,r.useCallback)((t=>{t.preventDefault();const n={support_number:"911234567890",auto_popup:"yes",auto_popup_time:"1",is_mobile:"0",current_page_url:window.location.href,group_invitation_id:"XYZ12345678",pre_defined_text:`%0A\r\nRef: ${window.location.href}%0A\r\nI need help for \r\n\n `,numberMasking:"(99) 99999-9999",whatsapp_mobile_api:"https://api.whatsapp.com",whatsapp_desktop_api:"https://web.whatsapp.com",whatsapp_web_api:"",security_token:"517843fbd0"},r=encodeURIComponent(e.message);i(n,n.pre_defined_text+r,"8801794301713")}),[e.message,i]);return(0,cn.jsxs)("div",{className:"support-popup-container support-popup-container--position "+(e.isPopupOpen?"block":"none"),children:[(0,cn.jsx)("div",{className:"support-gradient support-gradient--position"}),(0,cn.jsxs)("div",{className:"support-popup",children:[(0,cn.jsxs)("div",{className:"support-popup__header",children:[(0,cn.jsx)("button",{className:"support-popup__close-btn support-shadow support--bg-color support--text-color",onClick:l,"aria-label":(0,tn.__)("Close support popup","squad-modules-for-divi"),children:(0,cn.jsx)(zr,{width:"16",height:"16",className:"support-popup__close-icon"})}),(0,cn.jsx)("div",{className:"support-clearfix"})]}),(0,cn.jsxs)("div",{className:"support-popup__body",children:[(0,cn.jsxs)("div",{className:"support-popup__support-wrapper",children:[(0,cn.jsx)("div",{className:"support-popup__support-img-wrapper support-shadow",children:(0,cn.jsx)(Yr,{width:"24",height:"24",className:"support-popup__support-icon"})}),(0,cn.jsxs)("div",{className:"support-popup__support support-shadow",children:[(0,cn.jsx)("div",{className:"support-popup__support-about support--text-color support--bg-color",children:(0,tn.__)("We are here to assist you with any queries you may have. Feel free to ask us anything!","squad-modules-for-divi")}),(0,cn.jsxs)("div",{className:"support-popup__support-welcome",children:[(0,cn.jsx)("span",{role:"img","aria-label":(0,tn.__)("Waving hand","squad-modules-for-divi"),children:"👋"}),(0,tn.__)("Hi, how can we help?","squad-modules-for-divi")]})]})]}),(0,cn.jsxs)("form",{className:"support-popup__input-wrapper support-shadow",onSubmit:u,children:[(0,cn.jsx)("input",{type:"text",className:"support-popup__input",placeholder:o,value:e.message,onChange:s,"aria-label":(0,tn.__)("SupportRoute message input","squad-modules-for-divi")}),(0,cn.jsx)("button",{type:"submit",className:"support-popup__send-btn","aria-label":(0,tn.__)("Send message","squad-modules-for-divi"),children:(0,cn.jsx)(Br,{width:"16",height:"16",className:"support-popup__send-icon"})})]}),(0,cn.jsx)("div",{className:"support-clearfix"})]})]}),(0,cn.jsxs)("div",{className:"support-popup__footer",children:[(0,cn.jsxs)("button",{className:"support-popup__open-btn support-shadow support--text-color support--bg-color",onClick:l,"aria-expanded":e.isPopupOpen,children:[(0,cn.jsx)(Gr,{}),(0,cn.jsx)("span",{children:(0,tn.__)("Hi, how can we help?","squad-modules-for-divi")})]}),(0,cn.jsx)("div",{className:"support-clearfix"})]})]})},Jr=("function"==typeof tn.__&&tn.__,window.wp,window.wp?.i18n?.sprintf||((e,...t)=>e)),Xr=({children:e,route:t,title:n="",headerComponent:r,footerComponent:o})=>{const a=et();return(0,en.useEffect)((()=>{if(!sn.admin_menus.length)return;const e=function(e,t){const[n]=e.filter((e=>{const n=ln(e.menuSlug);return Boolean(e.menuSlug&&un(n,t,"/"===n,"/"!==t.pathname))}));return n||e[0]}(sn.admin_menus,a),t=window.document.querySelector("#toplevel_page_divi_squad_dashboard");!function(e,t){const n=window.document.title.split("‹").map((e=>e.trim())),[r]=n.slice(-1);var o;e&&e.pageTitle&&(window.document.title=Jr("%1$s ‹ %3$s",t(null!==(o=e.pageTitle)&&void 0!==o?o:e.menuTitle),r))}(e,Nr),function(e,t){[].map.call(e.querySelectorAll("li"),(e=>{e.classList.contains("current")&&e.classList.remove("current")})),[].map.call(e.querySelectorAll("a"),(e=>{e.href===t.menuSlug&&e.parentElement?.classList.add("current")}))}(t,e)}),[a,a.pathname]),(0,cn.jsx)(Vr,{children:(0,cn.jsxs)(Sn.SlotFillProvider,{children:[(0,cn.jsxs)("div",{className:"app-wrapper",children:[r||(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Lr,{title:n}),(0,cn.jsx)(Tr,{location:a})]}),(0,cn.jsxs)("div",{className:"wrapper-container",children:[(0,cn.jsx)(Sn.Slot,{name:"divi-squad-content-before"}),e,(0,cn.jsx)(Sn.Slot,{name:"divi-squad-content-after"})]}),o||(0,cn.jsx)(Sr,{})]}),(0,cn.jsx)(En.PluginArea,{scope:t.id}),(0,cn.jsx)(Zr,{}),(0,cn.jsx)(kr,{})]})})};function Kr(e){const t=e.displayName||e.name||"Component";function n(t){const n=function(){let{matches:e,loaderData:t}=dt("useMatches");return r.useMemo((()=>e.map((e=>x(e,t)))),[e,t])}(),o=rt(),a=function(){let{matches:e}=r.useContext(Xe),t=e[e.length-1];return t?t.params:{}}(),i={navigation:o,params:a,location:et(),matches:n};return(0,cn.jsx)(e,{...t,...i})}return n.displayName=`WithRouter(${t})`,n}function Qr(e){if(!e.element&&!e.children?.length)throw new Error(`Route ${e.path} must have either an element or children`);const t={path:e.path,errorElement:e.errorElement||(0,cn.jsx)(kn,{}),id:e.id};if(e.element){const n=Kr(e.element);t.element=(0,cn.jsx)(Xr,{headerComponent:e?.header,footerComponent:e?.footer,route:e,title:e.title,children:(0,cn.jsx)(n,{})})}return e.children?.length&&(t.children=e.children.map((t=>{if(t.path?.includes("/*")){const[e]=t.path.split("/*");return{path:e,children:[{path:"*",element:t.element,errorElement:t.errorElement||(0,cn.jsx)(kn,{})}]}}if(t.header||t.footer)return Qr(t);if(!t.element)throw new Error(`Child route ${t.path} must have an element`);const n={path:t.path,errorElement:t.errorElement||(0,cn.jsx)(kn,{}),id:t.id};if(t.element){const r=Kr(t.element);n.element=(0,cn.jsx)(Xr,{headerComponent:e?.header,footerComponent:e?.footer,route:e,title:e.title,children:(0,cn.jsx)(r,{})})}return n.children=t.children?.map((e=>Qr(e))),n}))),t}const eo=function(e){return{routes:e.map((e=>Qr(e)))}},to=window.wp.hooks;function no({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const ro=r.forwardRef(no);function oo(){const e=rt(),t=(0,en.useCallback)((()=>{e(-1)}),[e]),n=(0,en.useCallback)((()=>{e("/")}),[e]);return(0,cn.jsx)("div",{className:"error-page-wrapper",children:(0,cn.jsx)("div",{className:"error-page","data-status-code":(0,tn.__)("404","squad-modules-for-divi"),children:(0,cn.jsxs)("div",{className:"error-page-content",children:[(0,cn.jsxs)("div",{className:"error-icon-container",children:[(0,cn.jsx)(Cn,{className:"error-shield-icon","aria-hidden":"true"}),(0,cn.jsx)(ro,{className:"error-triangle-icon","aria-hidden":"true"})]}),(0,cn.jsxs)("div",{className:"error-content",children:[(0,cn.jsx)("h1",{children:(0,tn.__)("Oops! Page not found","squad-modules-for-divi")}),(0,cn.jsx)("p",{className:"error-description",children:(0,tn.__)("We couldn't find the page you're looking for. It might have been removed, renamed, or is temporarily unavailable.","squad-modules-for-divi")}),(0,cn.jsxs)("div",{className:"error-actions",children:[(0,cn.jsxs)("button",{onClick:t,className:"button button-primary",children:[(0,cn.jsx)(hn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Go Back","squad-modules-for-divi")})]}),(0,cn.jsxs)("button",{onClick:n,className:"button button-outline",children:[(0,cn.jsx)(vn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Dashboard","squad-modules-for-divi")})]}),(0,cn.jsxs)("a",{href:"https://squadmodules.com/support",target:"_blank",className:"button button-help",rel:"noreferrer",children:[(0,cn.jsx)(wn,{className:"button-icon not-spin","aria-hidden":"true"}),(0,cn.jsx)("span",{children:(0,tn.__)("Get Support","squad-modules-for-divi")})]})]})]})]})})})}function ao({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const io=r.forwardRef(ao);function so({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))}const lo=r.forwardRef(so);function uo({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"}))}const co=r.forwardRef(uo);function po({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"}))}const fo=r.forwardRef(po),ho=function(){const e="https://wordpress.org/support/plugin/squad-modules-for-divi",t="https://squadmodules.com",n=on?`${t}/docs`:"https://squadmodules.com",r=on?`${t}/community`:"https://www.facebook.com/groups/squadmodules/",o=[{title:(0,tn.__)("View Documentation","squad-modules-for-divi"),description:(0,tn.__)("Get started by spending some time with the documentation to get familiar with Squad Modules.","squad-modules-for-divi"),image:(0,cn.jsx)(io,{width:"24",height:"24",className:"view-docs-icon"}),link:`${n}?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink`},{title:(0,tn.__)("Show Your Love","squad-modules-for-divi"),description:(0,tn.__)("Take your 2 minutes to review the plugin and spread the love to encourage us to keep it going.","squad-modules-for-divi"),image:(0,cn.jsx)(lo,{width:"24",height:"24",className:"review-icon"}),link:`${e}/reviews/?rate=5#new-post`},{title:(0,tn.__)("Get Support","squad-modules-for-divi"),description:(0,tn.__)("Stuck with something? Get help from live chat or submit a support ticket.","squad-modules-for-divi"),image:(0,cn.jsx)(co,{width:"24",height:"24",className:"get-support-icon"}),link:`${e}/#new-post`},{title:(0,tn.__)("Join the Community","squad-modules-for-divi"),description:(0,tn.__)("Join our community of users and developers to share ideas, ask questions, and get help.","squad-modules-for-divi"),image:(0,cn.jsx)(fo,{width:"24",height:"24",className:"join-community-icon"}),link:`${r}?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink`}];return(0,cn.jsxs)("div",{className:"dashboard-wrapper",children:[(0,cn.jsx)("div",{className:"container",children:o.map(((e,t)=>(0,cn.jsxs)("a",{className:`general-card general-card_${t}`,href:e.link,target:"_blank",rel:"noopener noreferrer",children:[(0,cn.jsxs)("div",{className:"title-wrapper",children:[(0,cn.jsx)("div",{className:"image-wrapper",children:e.image}),(0,cn.jsx)("h4",{children:e.title})]}),(0,cn.jsx)("div",{className:"description",children:(0,cn.jsx)("p",{children:e.description})})]},t)))}),(0,cn.jsxs)("div",{className:"bar footer-bar",children:[(0,cn.jsx)("p",{className:"content",children:(0,tn.__)("Supercharge your experience with our game-changing new updates!","squad-modules-for-divi")}),(0,cn.jsx)(Wt,{className:"squad-button",to:"/whats-new",children:(0,tn.__)("View Changelog","squad-modules-for-divi")})]})]})},mo=window.wp.apiFetch;var vo=n.n(mo);const go=({className:e})=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",width:"288",height:"288",className:e,children:[(0,cn.jsx)("path",{fill:"#b2b1ff",d:"M9 7c0-1.7 1.3-3 3-3s3 1.3 3 3v2h2V7c0-2.8-2.2-5-5-5S7 4.2 7 7v2h2V7zM13.5 14.5c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5c0 .4.2.8.5 1.1V17c0 .6.4 1 1 1s1-.4 1-1v-1.4c.3-.3.5-.7.5-1.1z"}),(0,cn.jsx)("path",{fill:"#6563ff",d:"M17 9H7c-1.7 0-3 1.3-3 3v7c0 1.7 1.3 3 3 3h10c1.7 0 3-1.3 3-3v-7c0-1.7-1.3-3-3-3zm-4 6.6V17c0 .6-.4 1-1 1s-1-.4-1-1v-1.4c-.3-.3-.5-.7-.5-1.1 0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5c0 .4-.2.8-.5 1.1z"})]});function yo({name:e,onChange:t,isChecked:n=!1,isDisabled:r=!1,isShowLock:o=!1}){const a={name:"squad-switch__input",type:"checkbox",id:`checkbox-${e}`,checked:n,disabled:r};return(0,cn.jsxs)("label",{className:"squad-switch",htmlFor:`checkbox-${e}`,children:[o?(0,cn.jsx)("button",{type:"button",className:"popup-trigger",onClick:e=>{e.preventDefault(),t(e,!0)}}):null,(0,cn.jsx)("input",{"data-slug":e,...a,onChange:e=>{t(e,!1)}}),(0,cn.jsx)("span",{className:"squad-switch__box"+(r?" disabled":"")}),o?(0,cn.jsx)(go,{className:"squad-icon-locked"}):null]})}const bo=({settings:e})=>{let t="https://squadmodules.com/pricing?utm_campaign=wporg&utm_source=wp_module_dashboard&utm_medium=textlink",n=(0,tn.__)("Upgrade Now","squad-modules-for-divi");return e.premium.is_active&&(e.premium.is_installed?(t=e.links.plugins,n=(0,tn.__)("Go to Plugins","squad-modules-for-divi")):(t=e.links.my_account,n=(0,tn.__)("Download Pro","squad-modules-for-divi"))),(0,cn.jsx)("a",{target:"_blank",href:t,className:"squad-button fill-button",rel:"noreferrer",children:n})};function wo({className:e,...t}){return(0,cn.jsxs)("section",{className:`feature-group skeleton ${e}`,...t,children:[(0,cn.jsx)("div",{className:"feature-group-title"}),(0,cn.jsxs)("div",{className:"feature-group-container",children:[(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{}),(0,cn.jsx)(xo,{})]})]})}function xo(){return(0,cn.jsx)("div",{className:"feature","data-tooltip":"",children:(0,cn.jsxs)("div",{className:"container skeleton",children:[(0,cn.jsxs)("div",{className:"header",children:[(0,cn.jsx)("div",{className:"title-wrapper",children:(0,cn.jsx)("div",{className:"title-text","data-supports":""})}),(0,cn.jsx)("div",{className:"card-actions",children:(0,cn.jsxs)("label",{className:"squad-switch",htmlFor:"checkbox-skeleton",children:[(0,cn.jsx)("input",{"data-slug":"skeleton",name:"squad-switch__input",type:"checkbox",id:"checkbox-skeleton",disabled:!0}),(0,cn.jsx)("span",{className:"squad-switch__box disabled"})]})})]}),(0,cn.jsx)("div",{className:"description-text"})]})})}function _o({className:e}){return(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e}),(0,cn.jsx)(wo,{className:e})]})}const Co=()=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,cn.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,cn.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),ko=({className:e})=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33.867 33.867",width:"288",height:"288",className:e,children:[(0,cn.jsx)("path",{fill:"#a8d0ff",d:"m 16.933349,5.9163387 a 4.8585287,4.8585287 0 0 1 -4.8586,4.8585303 4.8585287,4.8585287 0 0 1 -4.8585,-4.8585303 4.8585287,4.8585287 0 0 1 4.8585,-4.8585197 4.8585287,4.8585287 0 0 1 4.8586,4.8585197",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#a8d0ff",d:"m 26.650349,5.9163387 a 4.8585287,4.8585287 0 0 1 -4.8585,4.8585303 4.8585287,4.8585287 0 0 1 -4.8585,-4.8585303 4.8585287,4.8585287 0 0 1 4.8585,-4.8585197 4.8585287,4.8585287 0 0 1 4.8585,4.8585197",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#0063ff",d:"M16.933349 4.0188787c-1.4853 0-2.681 1.19571-2.681 2.68097v.77773h5.3619v-.77773c0-1.48526-1.1957-2.68097-2.6809-2.68097zM3.704149 15.478649V30.16302c0 1.465789 1.18 2.645828 2.6458 2.645828h21.1667c1.4658 0 2.6458-1.180039 2.6458-2.645828V15.478649z",paintOrder:"markers fill stroke",className:"color0063ff svgShape"}),(0,cn.jsx)("path",{fill:"#00a1ff",d:"m 3.704149,7.0958087 h 26.4583 c 1.465799,0 2.645899,1.18004 2.645899,2.64583 v 3.2895003 c 0,1.46579 -1.1801,2.64583 -2.645899,2.64583 h -26.4583 c -1.4658,0 -2.64583,-1.18004 -2.64583,-2.64583 V 9.7416387 c 0,-1.46579 1.18003,-2.64583 2.64583,-2.64583 z",paintOrder:"markers fill stroke",className:"color00a1ff svgShape"}),(0,cn.jsx)("path",{fill:"#a8d0ff",d:"M 14.252349,8.3524587 V 32.808848 h 5.3619 V 8.3524587 Z",paintOrder:"markers fill stroke",className:"colora8d0ff svgShape"}),(0,cn.jsx)("path",{fill:"#ffffff",d:"m 14.252349,7.0956887 v 8.5813903 h 5.3619 V 7.0956887 Z",paintOrder:"markers fill stroke",className:"colorfff svgShape"})]}),So=()=>(0,cn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,cn.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),(0,cn.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),(0,cn.jsx)("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),(0,cn.jsx)("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),(0,cn.jsx)("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),(0,cn.jsx)("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),(0,cn.jsx)("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),(0,cn.jsx)("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})]});function Eo(e){return(0,cn.jsx)("div",{className:"squad-modal-wrap "+(e.isShow?"squad-modal-show":""),children:(0,cn.jsx)("div",{className:"squad-modal-dialogue",children:(0,cn.jsx)("div",{className:"squad-modal",children:(0,cn.jsxs)("div",{className:"modal-body",children:[(0,cn.jsx)("button",{type:"button",className:"modal-close squad-popup-close",onClick:e.onClose,children:(0,cn.jsx)(zr,{width:"16",height:"16",className:"squad-popup__close-icon"})}),e.children]})})})})}function Oo({options:e}){const[t,n]=(0,r.useState)({isSaving:!1,isChanged:!1,activation:"custom",features:[],activeFeatures:[],inactiveFeatures:[],filterType:"all",show_feature_lock_modal:!1}),o=[].filter.call(t.features,(e=>!e.is_premium_feature)),a=[].filter.call(t.features,(e=>e.is_premium_feature)),i=[].filter.call(t.features,(e=>"all"===t.filterType||"free"===t.filterType&&!e.is_premium_feature||"pro"===t.filterType&&e.is_premium_feature)),s=[].filter.call(i,(e=>!!e.category)),l=[].filter.call(i,(e=>!e.category)),u=!![].filter.call(i,(e=>!!e.description)).length,c=()=>{const e=s.map((e=>({name:e.category,title:e.category_title}))),t={};return e.forEach((function(e){e.name&&!Object.keys(t).includes(e.name)&&(t[e.name]=e.title),e.name&&e.title&&Object.keys(t).includes(e.name)&&void 0===t[e.name]&&(t[e.name]=e.title)})),Object.entries(t).map((([e,t])=>({name:e,title:t}))).sort(((e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"})))},d=function(e,t){return Boolean(!e.isProPluginActive&&t.is_premium_feature&&!t.release_version)},p=function(e){return[].filter.call(e,(e=>!!e.name)).map((e=>e.name))},f=function(e=[],t=[]){return 0===t.length?null:[].map.call(e,(function(e,n){const r="uncategorized"===e.name,o=`feature-group ${e.name}`,a=e.title?Nr(e.title):(i=e.name).charAt(0).toUpperCase()+i.slice(1);var i;return(0,cn.jsxs)("section",{className:o,children:[(0,cn.jsx)("h3",{className:"feature-group-title",children:a}),(0,cn.jsx)("div",{className:"feature-group-container",children:[].map.call(t,(function(t,n){return(r?!t.category:t.category===e.name)&&h(t,n)}))})]},n)}))},h=(n,r)=>{const o=e.settings,a=(o.version_wp_current&&"".includes.call(o.version_wp_current,"."),o.version_pro_current&&"".includes.call(o.version_pro_current,"."),o.version_wp_real),i=o.version_pro_real;let s=`feature feature_${r}`;const l=n.is_premium_feature?i:a,u=m(n,l);d(e,n)&&(s+=" locked-pro-feature"),u.depsClass&&(s+=` ${u.depsClass}`),u.tooltipText&&(s+=" has-tool-tip");let c="";n.type&&("string"==typeof n.type&&"d5"===n.type.toLowerCase()||"object"==typeof n.type&&n.type.includes("D5"))&&(c="D5");let p="";return n.has_settings&&n.category&&(p=`/${e.type}/${n.category}/${n.settings_route}`),(0,cn.jsxs)("div",{className:s,"data-tooltip":u.tooltipText,children:[(u.isUpdated||u.isNewFeatures||u.isUpcoming)&&(0,cn.jsx)("div",{className:u.badgeClass,"data-text":Nr(u.badgeText)}),(0,cn.jsxs)("div",{className:`container ${n.name}`,children:[(0,cn.jsxs)("div",{className:"header",children:[(0,cn.jsxs)("div",{className:"title-wrapper",children:[n.icon&&(0,cn.jsx)("div",{className:"image-wrapper",children:(0,cn.jsx)(Co,{})}),(0,cn.jsx)("h4",{className:"title-text","data-supports":c,children:Nr(n.label)})]}),(0,cn.jsxs)("div",{className:"actions",children:[n.has_settings&&(0,cn.jsx)(Yt,{to:p,target:"_self",rel:"noreferrer",children:(0,cn.jsx)(Co,{})}),n.demo&&(0,cn.jsx)("a",{href:n.demo,target:"_blank",rel:"noreferrer",children:(0,cn.jsx)(Co,{})}),(0,cn.jsx)(yo,{name:n.name,isChecked:t.activeFeatures?.includes(n.name)&&!g(n),isDisabled:!!u.dependencyNoticeText||d(e,n),isShowLock:d(e,n),onChange:function(e,r){if(r)v({show_feature_lock_modal:!0});else if(!e.target.checked&&t.activeFeatures?.includes(n.name)){const e=[].filter.call(t.activeFeatures,(e=>e!==n.name));v({isChanged:!0,activation:"custom",activeFeatures:e})}else v({isChanged:!0,activation:"custom",activeFeatures:[...t.activeFeatures,n.name]})}})]})]}),n.description&&(0,cn.jsx)("p",{className:"description-text",children:Nr(n.description)})]})]},r)},m=(e,t)=>{const n=!!e.last_modified&&"string"==typeof e.last_modified&&e.last_modified===t,r=!!e.last_modified&&"object"==typeof e.last_modified&&[].includes.call(e.last_modified,t),o=!!e.release_version&&e.release_version===t,a=n||r,i=["3.3.1","SQUAD_MODULES_PRO_VERSION"].includes(e.release_version);let s="",l="",u="",c="badge";return a&&(s=(0,tn.__)("Updated","squad-modules-for-divi"),c+=" update"),o&&(s=(0,tn.__)("NEW","squad-modules-for-divi"),c+=" new"),e.is_premium_feature&&(s=e.is_premium_feature?"premium":"",c+=e.is_premium_feature?" premium":""),i&&(s=(0,tn.__)("UPCOMING","squad-modules-for-divi"),c+=" up-coming"),g(e)&&(l="deps-required",u=(0,tn.__)("Related third-party plugin required.","squad-modules-for-divi")),{isUpdated:a,isNewFeatures:o,isUpcoming:i,badgeText:s,depsClass:l,tooltipText:u,badgeClass:c}},v=(0,r.useCallback)((function(e){return[].forEach.call(Object.entries(e),(([e,t])=>{n((n=>({...n,[e]:t})))})),!0}),[]),g=(0,r.useCallback)((t=>{if(t.required&&t.required.plugin){const n=e.settings.plugins||[];if("string"==typeof t.required.plugin){const e=[];return t.required.plugin.includes("|")?e.push(...t.required.plugin.split("|")):e.push(t.required.plugin),![].filter.call(n,(t=>e.includes(t.slug))).length}if("object"==typeof t.required.plugin){const e=t.required.plugin,r=[].filter.call(n,(t=>e.includes(t.slug))),o=[].map.call(r,(e=>e.slug));return JSON.stringify(e.sort())!==JSON.stringify(o.sort())}}return!1}),[e.settings?.plugins]),y=(0,r.useCallback)(((e,t,n)=>{let r;const o=p(e),a=[].filter.call(e,(e=>e.is_default_active&&!g(e))),i=p(a),s=[].map.call(t,(function(e){return"string"==typeof e?e:e.name})),l=[...[].filter.call(i,(e=>!s.includes(e)&&!n.includes(e))),...s];r=0===l.length?"none":l.length===i.length?"default":l.length===o.length?"all":"custom",e.sort(((e,t)=>e.label.localeCompare(t.label,void 0,{sensitivity:"base"}))),v({features:e,activeFeatures:l,inactiveFeatures:n,activation:r})}),[g,v]);(0,r.useEffect)((()=>{e.isServerOk&&y(e.features,e.activeFeatures,e.inactiveFeatures)}),[e.features,e.activeFeatures,e.inactiveFeatures,e.isServerOk,y]);const b=`features-wrapper ${t.isSaving?"is-loading":""} ${u?"has-description":""} ${e.listStyle}`,w="squad-button save-button fill-button "+(t.isChanged?"":"disabled"),x=[{name:"uncategorized",title:(0,tn.__)("Uncategorized","squad-modules-for-divi")}],_=(0,cn.jsx)("div",{className:"feature-filter-bar",children:(0,cn.jsx)("div",{className:"filter-list",children:[].map.call(["all","free","pro"],((n,r)=>{const o="squad-button "+(n===t.filterType?"active":"");return(0,cn.jsx)("button",{className:o,onClick:()=>function(e){const n=[].filter.call(t.features,(t=>"all"===e||"free"===e&&!t.is_premium_feature||"pro"===e&&t.is_premium_feature)),r=[].filter.call(n,(e=>!g(e))),o=[].filter.call(r,(e=>e.is_default_active)),a=[].filter.call(o,(e=>t.activeFeatures?.includes(e.name))),i=[].filter.call(r,(e=>t.activeFeatures?.includes(e.name))),s=[].filter.call(r,(e=>!t.activeFeatures?.includes(e.name)));let l;const u=JSON.stringify([].map.call(n,(e=>e.name))),c=JSON.stringify([].map.call(o,(e=>e.name))),d=JSON.stringify([].map.call(i,(e=>e.name))),p=JSON.stringify([].map.call(s,(e=>e.name))),f=JSON.stringify([].map.call(a,(e=>e.name)));return l=u===d?"all":i.length===a.length&&c===f?"default":u===p?"none":"custom",v({filterType:e,activation:l}),!0}(n),children:Nr(e.listText?.Filters[n])},r)}))})});return(0,cn.jsxs)("div",{className:b,children:[(0,cn.jsx)("div",{className:"header-bar",children:(0,cn.jsxs)("div",{className:"bar compact",children:[(0,cn.jsxs)("div",{className:"multi-lines",children:[(0,cn.jsx)("h4",{children:Nr(e.listTitle)}),(0,cn.jsxs)("p",{className:"content",children:[" ",Nr(e.listDescription)]})]}),(0,cn.jsxs)("div",{className:"right-elements",children:[(0,cn.jsx)("div",{className:"toggles",children:[].map.call(["default","all","none"],((n,r)=>{const o="squad-button "+(n===t.activation?"fill-button":"");return(0,cn.jsx)("button",{className:o,onClick:()=>function(n){let r=[],o=[];const a=p(i),s=[].filter.call(t.features,(t=>!g(t)&&!d(e,t)));"default"===n&&(r=[].filter.call(s,(function(e){return e.is_default_active&&a.includes(e.name)||!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"all"===n&&(r=[].filter.call(s,(function(e){return a.includes(e.name)||!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"none"!==n||"free"!==t.filterType&&"pro"!==t.filterType||(r=[].filter.call(s,(function(e){return!a.includes(e.name)&&t.activeFeatures?.includes(e.name)}))),"none"===n&&"all"===t.filterType&&(r=[]),r.length>0&&(o=p(r)),v({activation:n,activeFeatures:o,isChanged:!0})}(n),children:Nr(e.listText?.Toggles[n])},r)}))}),(0,cn.jsxs)("button",{className:w,onClick:()=>{e.saveCallback(t,v)},children:[t.isSaving&&(0,cn.jsx)(So,{}),Nr(e.listText?.FilterSaveChanges)]})]})]})}),e.isProPluginActive&&e.listFilter&&o.length&&a.length?_:null,(0,cn.jsxs)("div",{className:"feature-list-container container "+(c().length?"grouped":""),style:{marginTop:"30px"},children:[!e.isServerOk&&(0,cn.jsxs)("div",{className:"message error",children:[" ",Nr(e.listText?.ServerLoadIssue)," "]}),!t.features?.length&&e.isServerOk&&(0,cn.jsx)(_o,{className:"feature-management"}),t.features?.length&&e.isServerOk?(0,cn.jsxs)(cn.Fragment,{children:[c().length?f(c(),i):(C=i,[].map.call(C,h)),c().length&&l.length?f(x,i):null]}):null]}),t.show_feature_lock_modal&&(0,cn.jsx)(Eo,{isShow:!0,onClose:()=>v({show_feature_lock_modal:!1}),children:(0,cn.jsx)("div",{className:"modal-content modal-content-popup",style:{display:"block"},children:(0,cn.jsxs)("div",{className:"modal-card",children:[(0,cn.jsx)("div",{className:"icon",children:(0,cn.jsx)(ko,{className:"squad-go-pro"})}),(0,cn.jsxs)("h3",{children:[e.settings.premium.is_active?null:(0,tn.__)("Upgrade to pro","squad-modules-for-divi"),e.settings.premium.is_active?(0,tn.__)("Activate Pro Plugin","squad-modules-for-divi"):null]}),(0,cn.jsx)("p",{children:(0,tn.__)("Unlock 30+ powerful modules to build awesome websites.","squad-modules-for-divi")}),(0,cn.jsx)(bo,{settings:e.settings})]})})})]});var C}function jo(e){const t=new Set;return e.filter((e=>{const n=JSON.stringify(e);return!t.has(n)&&(t.add(n),!0)}))}const Mo=function(){const[e,t]=(0,r.useState)({isServerOk:!0,extensions:[],activeExtensions:[],inactiveExtensions:[]}),n=(0,r.useCallback)(((e,t)=>{const{features:n,activeFeatures:r}=e,o={loading:(0,tn.__)("Preparing","squad-modules-for-divi"),success:()=>(t({isChanged:!1,isSaving:!1}),(0,tn.__)("Enabled extensions saved!","squad-modules-for-divi")),error:()=>(t({isChanged:!0,isSaving:!0}),(0,tn.__)("Whoops! Enabled extensions not saved. Try again later.","squad-modules-for-divi"))};t({isSaving:!0});const a=sn.rest_api_v2;if(!a.routes.Extensions||!a.routes.ExtensionsActive||!a.routes.ExtensionsInactive)return!1;const i=n.filter((e=>!e.is_premium_feature)).map((e=>e.name)),s=r.filter((e=>i.includes(e)));if(an&&sn.rest_api_pro?.routes){const e=sn.rest_api_pro,t=n.filter((e=>e.is_premium_feature)).map((e=>e.name)),i=r.filter((e=>t.includes(e)));Cr.promise(Promise.all([vo()({path:`${a.namespace}${a.routes.ExtensionsEnableBatch.root}`,method:"POST",data:s}),vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`,method:"POST",data:i})]),o)}else Cr.promise(vo()({path:`${a.namespace}${a.routes.ExtensionsEnableBatch.root}`,method:"POST",data:s}),o);return!0}),[]);return(0,r.useEffect)((()=>{const e=sn.rest_api_v2;e.routes.Extensions&&e.routes.ExtensionsActive&&e.routes.ExtensionsInactive&&(async()=>{try{let n,r,o;if(an&&sn.rest_api_pro?.routes){const t=sn.rest_api_pro,[a,i,s]=await Promise.all([Promise.all([vo()({path:`${e.namespace}${e.routes.Extensions.root}`}),vo()({path:`${t.namespace}${t.routes.Extensions.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`}),vo()({path:`${t.namespace}${t.routes.ExtensionsActive.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ExtensionsInactive.root}`}),vo()({path:`${t.namespace}${t.routes.ExtensionsInactive.root}`})])]);n=jo([...a[0].extensions,...a[1]]),r=jo([...i[0],...i[1]]),o=jo([...s[0],...s[1]])}else{const[t,a,i]=await Promise.all([vo()({path:`${e.namespace}${e.routes.Extensions.root}`}),vo()({path:`${e.namespace}${e.routes.ExtensionsActive.root}`}),vo()({path:`${e.namespace}${e.routes.ExtensionsInactive.root}`})]);n=jo(t.extensions),r=jo(a),o=jo(i)}t((e=>({...e,extensions:n,activeExtensions:r,inactiveExtensions:o})))}catch{t((e=>({...e,isServerOk:!1})))}})()}),[]),(0,cn.jsx)(Oo,{options:{settings:sn,isProPluginActive:on,type:"extensions",features:e.extensions,activeFeatures:e.activeExtensions,inactiveFeatures:e.inactiveExtensions,isServerOk:e.isServerOk,listTitle:(0,tn.__)("Extensions Management","squad-modules-for-divi"),listDescription:(0,tn.__)("Streamline your workspace with our intuitive Toggle Button. Effortlessly manage your extensions, allowing you to focus on what truly matters - creating stunning designs.","squad-modules-for-divi"),listText:{Toggles:{default:(0,tn.__)("Reset to Default","squad-modules-for-divi"),all:(0,tn.__)("Enable All","squad-modules-for-divi"),none:(0,tn.__)("Disable All","squad-modules-for-divi")},Filters:{all:(0,tn.__)("All Extensions","squad-modules-for-divi"),free:(0,tn.__)("Free Only","squad-modules-for-divi"),pro:(0,tn.__)("Pro Only","squad-modules-for-divi")},FilterSaveChanges:(0,tn.__)("Apply and Save","squad-modules-for-divi"),ServerLoadIssue:(0,tn.__)("Oops! We couldn't load the extension list. Please refresh the page or try again later.","squad-modules-for-divi"),FeatureLoading:(0,tn.__)("Discovering available extensions… Please wait.","squad-modules-for-divi")},listStyle:"grid",listFilter:!0,saveCallback:n}})},Ro=function({params:e}){const[t,n]=(0,r.useState)({isServerOk:!0,modules:[],activeModules:[],inactiveModules:[],copiedModules:[],isFilterByCategory:!1,isFilterByFeature:!1}),o=(0,r.useCallback)(((e,t)=>{const{features:n,activeFeatures:r}=e,o={loading:(0,tn.__)("Preparing to save your module settings…","squad-modules-for-divi"),success:()=>(t({isChanged:!1,isSaving:!1}),(0,tn.__)("Success! Your enabled modules have been saved. The changes will take effect immediately.","squad-modules-for-divi")),error:()=>(t({isChanged:!0,isSaving:!0}),(0,tn.__)("Oops! We encountered an issue while saving your enabled modules. Please try again in a few moments. If the problem persists, contact support.","squad-modules-for-divi"))};t({isSaving:!0});const a=sn.rest_api_v2;if(!a.routes.Modules)return!1;const i=n.filter((e=>!e.is_premium_feature)).map((e=>e.name)),s=r.filter((e=>i.includes(e)));if(an&&sn.rest_api_pro){const e=sn.rest_api_pro,t=n.filter((e=>e.is_premium_feature)).map((e=>e.name)),i=r.filter((e=>t.includes(e)));Cr.promise(Promise.all([vo()({path:`${a.namespace}${a.routes.ModulesEnableBatch.root}`,method:"POST",data:s}),vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`,method:"POST",data:i})]),o)}else Cr.promise(vo()({path:`${a.namespace}${a.routes.ModulesEnableBatch.root}`,method:"POST",data:s}),o);return!0}),[]);return(0,r.useEffect)((()=>{const e=sn.rest_api_v2;e.routes.Modules&&e.routes.ModulesActive&&e.routes.ModulesInactive&&(async()=>{try{let t,r,o;if(an&&sn.rest_api_pro){const n=sn.rest_api_pro,[a,i,s]=await Promise.all([Promise.all([vo()({path:`${e.namespace}${e.routes.Modules.root}`}),vo()({path:`${n.namespace}${n.routes.Modules.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`}),vo()({path:`${n.namespace}${n.routes.ModulesActive.root}`})]),Promise.all([vo()({path:`${e.namespace}${e.routes.ModulesInactive.root}`}),vo()({path:`${n.namespace}${n.routes.ModulesInactive.root}`})])]);t=jo([...a[0].modules,...a[1]]),r=jo([...i[0],...i[1]]),o=jo([...s[0],...s[1]])}else{const[n,a,i]=await Promise.all([vo()({path:`${e.namespace}${e.routes.Modules.root}`}),vo()({path:`${e.namespace}${e.routes.ModulesActive.root}`}),vo()({path:`${e.namespace}${e.routes.ModulesInactive.root}`})]);t=jo(n.modules),r=jo(a),o=jo(i)}n((e=>({...e,modules:t,activeModules:r,inactiveModules:o})))}catch{n((e=>({...e,isServerOk:!1})))}})()}),[]),(0,r.useEffect)((()=>{(()=>{const{category:r,feature:o}=e;let a=t.modules;r&&o&&!t.isFilterByFeature?(a=t.modules.filter((e=>e.category===r&&e.settings_route===o)),n((e=>({...e,modules:a,copiedModules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByFeature:!0})))):!r||o||t.isFilterByCategory?0===Object.keys(e).length&&(t.isFilterByCategory||t.isFilterByFeature)&&n((e=>({...e,modules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByCategory:!1,isFilterByFeature:!1}))):(a=t.modules.filter((e=>e.category===r)),n((e=>({...e,modules:a,copiedModules:e.copiedModules.length>0?e.copiedModules:e.modules,isFilterByCategory:!0}))))})()}),[e,t.modules,t.copiedModules,t.isFilterByCategory,t.isFilterByFeature]),(0,cn.jsx)(Oo,{options:{settings:sn,isProPluginActive:on,type:"modules",features:t.modules,activeFeatures:t.activeModules,inactiveFeatures:t.inactiveModules,isServerOk:t.isServerOk,listTitle:(0,tn.__)("Modules Management","squad-modules-for-divi"),listDescription:(0,tn.__)("Effortlessly control your Divi modules with our intuitive management system. Use the toggle switches to instantly activate or deactivate modules, streamlining your design process and enhancing website performance.","squad-modules-for-divi"),listText:{Toggles:{default:(0,tn.__)("Reset to Default","squad-modules-for-divi"),all:(0,tn.__)("Enable All","squad-modules-for-divi"),none:(0,tn.__)("Disable All","squad-modules-for-divi")},Filters:{all:(0,tn.__)("All Modules","squad-modules-for-divi"),free:(0,tn.__)("Free Only","squad-modules-for-divi"),pro:(0,tn.__)("Pro Only","squad-modules-for-divi")},FilterSaveChanges:(0,tn.__)("Apply and Save","squad-modules-for-divi"),ServerLoadIssue:(0,tn.__)("Oops! We couldn't load the module list. Please refresh the page or try again later.","squad-modules-for-divi"),FeatureLoading:(0,tn.__)("Discovering available modules… Please wait.","squad-modules-for-divi")},listStyle:"grid",listFilter:!0,saveCallback:o}})};function Po(e){return Po="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},Po(e)}function Lo(e){var t=function(e){if("object"!=Po(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Po(t)?t:t+""}function No(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(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 Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Io(e,t){if(e){if("string"==typeof e)return $o(e,t);var n={}.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)?$o(e,t):void 0}}function Fo(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,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||Io(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 Ao(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var qo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(null,arguments)}function Uo(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,Lo(r.key),r)}}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zo(e,t)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(e)}function Bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bo=function(){return!!e})()}function Wo(e){return function(e){if(Array.isArray(e))return $o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Io(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 Yo=function(){function e(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||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}var 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(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Go=Math.abs,Zo=String.fromCharCode,Jo=Object.assign;function Xo(e){return e.trim()}function Ko(e,t,n){return e.replace(t,n)}function Qo(e,t){return e.indexOf(t)}function ea(e,t){return 0|e.charCodeAt(t)}function ta(e,t,n){return e.slice(t,n)}function na(e){return e.length}function ra(e){return e.length}function oa(e,t){return t.push(e),e}var aa=1,ia=1,sa=0,la=0,ua=0,ca="";function da(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:aa,column:ia,length:i,return:""}}function pa(e,t){return Jo(da("",null,null,"",null,null,0),e,{length:-e.length},t)}function fa(){return ua=la>0?ea(ca,--la):0,ia--,10===ua&&(ia=1,aa--),ua}function ha(){return ua=la<sa?ea(ca,la++):0,ia++,10===ua&&(ia=1,aa++),ua}function ma(){return ea(ca,la)}function va(){return la}function ga(e,t){return ta(ca,e,t)}function ya(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 ba(e){return aa=ia=1,sa=na(ca=e),la=0,[]}function wa(e){return ca="",e}function xa(e){return Xo(ga(la-1,ka(91===e?e+2:40===e?e+1:e)))}function _a(e){for(;(ua=ma())&&ua<33;)ha();return ya(e)>2||ya(ua)>3?"":" "}function Ca(e,t){for(;--t&&ha()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return ga(e,va()+(t<6&&32==ma()&&32==ha()))}function ka(e){for(;ha();)switch(ua){case e:return la;case 34:case 39:34!==e&&39!==e&&ka(ua);break;case 40:41===e&&ka(e);break;case 92:ha()}return la}function Sa(e,t){for(;ha()&&e+ua!==57&&(e+ua!==84||47!==ma()););return"/*"+ga(t,la-1)+"*"+Zo(47===e?e:ha())}function Ea(e){for(;!ya(ma());)ha();return ga(e,la)}var Oa="-ms-",ja="-moz-",Ma="-webkit-",Ra="comm",Pa="rule",La="decl",Na="@keyframes";function Ta(e,t){for(var n="",r=ra(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Da(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case La:return e.return=e.return||e.value;case Ra:return"";case Na:return e.return=e.value+"{"+Ta(e.children,r)+"}";case Pa:e.value=e.props.join(",")}return na(n=Ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function $a(e){return wa(Ia("",null,null,null,[""],e=ba(e),0,[0],e))}function Ia(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,p=0,f=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,x=a,_=r,C=b;v;)switch(h=y,y=ha()){case 40:if(108!=h&&58==ea(C,d-1)){-1!=Qo(C+=Ko(xa(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=xa(y);break;case 9:case 10:case 13:case 32:C+=_a(h);break;case 92:C+=Ca(va()-1,7);continue;case 47:switch(ma()){case 42:case 47:oa(Aa(Sa(ha(),va()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=na(C)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(C=Ko(C,/\f/g,"")),f>0&&na(C)-d&&oa(f>32?qa(C+";",r,n,d-1):qa(Ko(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(oa(_=Fa(C,t,n,u,c,o,s,b,w=[],x=[],d),a),123===y)if(0===c)Ia(C,t,_,_,w,a,d,s,x);else switch(99===p&&110===ea(C,3)?100:p){case 100:case 108:case 109:case 115:Ia(e,_,_,r&&oa(Fa(e,_,_,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Ia(C,_,_,_,[""],x,0,s,x)}}u=c=f=0,m=g=1,b=C="",d=i;break;case 58:d=1+na(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==fa())continue;switch(C+=Zo(y),y*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(na(C)-1)*g,g=1;break;case 64:45===ma()&&(C+=xa(ha())),p=ma(),c=d=na(b=C+=Ea(va())),y++;break;case 45:45===h&&2==na(C)&&(m=0)}}return a}function Fa(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,p=0===o?a:[""],f=ra(p),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ta(e,d+1,d=Go(m=i[h])),b=e;g<f;++g)(b=Xo(m>0?p[g]+" "+y:Ko(y,/&\f/g,p[g])))&&(l[v++]=b);return da(e,t,n,0===o?Pa:s,l,u,c)}function Aa(e,t,n){return da(e,t,n,Ra,Zo(ua),ta(e,2,-2),0)}function qa(e,t,n,r){return da(e,t,n,La,ta(e,0,r),ta(e,r+1,-1),r)}var Va=function(e,t,n){for(var r=0,o=0;r=o,o=ma(),38===r&&12===o&&(t[n]=1),!ya(o);)ha();return ga(e,la)},Ua=new WeakMap,za=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)||Ua.get(n))&&!r){Ua.set(e,!0);for(var o=[],a=function(e,t){return wa(function(e,t){var n=-1,r=44;do{switch(ya(r)){case 0:38===r&&12===ma()&&(t[n]=1),e[n]+=Va(la-1,t,n);break;case 2:e[n]+=xa(r);break;case 4:if(44===r){e[++n]=58===ma()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Zo(r)}}while(r=ha());return e}(ba(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Ha=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ba(e,t){switch(function(e,t){return 45^ea(e,0)?(((t<<2^ea(e,0))<<2^ea(e,1))<<2^ea(e,2))<<2^ea(e,3):0}(e,t)){case 5103:return Ma+"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 Ma+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ma+e+ja+e+Oa+e+e;case 6828:case 4268:return Ma+e+Oa+e+e;case 6165:return Ma+e+Oa+"flex-"+e+e;case 5187:return Ma+e+Ko(e,/(\w+).+(:[^]+)/,Ma+"box-$1$2"+Oa+"flex-$1$2")+e;case 5443:return Ma+e+Oa+"flex-item-"+Ko(e,/flex-|-self/,"")+e;case 4675:return Ma+e+Oa+"flex-line-pack"+Ko(e,/align-content|flex-|-self/,"")+e;case 5548:return Ma+e+Oa+Ko(e,"shrink","negative")+e;case 5292:return Ma+e+Oa+Ko(e,"basis","preferred-size")+e;case 6060:return Ma+"box-"+Ko(e,"-grow","")+Ma+e+Oa+Ko(e,"grow","positive")+e;case 4554:return Ma+Ko(e,/([^-])(transform)/g,"$1"+Ma+"$2")+e;case 6187:return Ko(Ko(Ko(e,/(zoom-|grab)/,Ma+"$1"),/(image-set)/,Ma+"$1"),e,"")+e;case 5495:case 3959:return Ko(e,/(image-set\([^]*)/,Ma+"$1$`$1");case 4968:return Ko(Ko(e,/(.+:)(flex-)?(.*)/,Ma+"box-pack:$3"+Oa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ma+e+e;case 4095:case 3583:case 4068:case 2532:return Ko(e,/(.+)-inline(.+)/,Ma+"$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(na(e)-1-t>6)switch(ea(e,t+1)){case 109:if(45!==ea(e,t+4))break;case 102:return Ko(e,/(.+:)(.+)-([^]+)/,"$1"+Ma+"$2-$3$1"+ja+(108==ea(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qo(e,"stretch")?Ba(Ko(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ea(e,t+1))break;case 6444:switch(ea(e,na(e)-3-(~Qo(e,"!important")&&10))){case 107:return Ko(e,":",":"+Ma)+e;case 101:return Ko(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ma+(45===ea(e,14)?"inline-":"")+"box$3$1"+Ma+"$2$3$1"+Oa+"$2box$3")+e}break;case 5936:switch(ea(e,t+11)){case 114:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ma+e+Oa+Ko(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ma+e+Oa+e+e}return e}var Wa=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case La:e.return=Ba(e.value,e.length);break;case Na:return Ta([pa(e,{value:Ko(e.value,"@","@"+Ma)})],r);case Pa:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ta([pa(e,{props:[Ko(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ta([pa(e,{props:[Ko(t,/:(plac\w+)/,":"+Ma+"input-$1")]}),pa(e,{props:[Ko(t,/:(plac\w+)/,":-moz-$1")]}),pa(e,{props:[Ko(t,/:(plac\w+)/,Oa+"input-$1")]})],r)}return""}))}}],Ya=function(e){var t=e.key;if("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,o,a=e.stylisPlugins||Wa,i={},s=[];r=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;s.push(e)}));var l,u,c,d,p=[Da,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[za,Ha].concat(a,p),c=ra(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ta($a(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Yo({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h},Ga=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Za={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,scale: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 Ja(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Xa=/[A-Z]|^ms/g,Ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(e){return 45===e.charCodeAt(1)},ei=function(e){return null!=e&&"boolean"!=typeof e},ti=Ja((function(e){return Qa(e)?e:e.replace(Xa,"-$&").toLowerCase()})),ni=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ka,(function(e,t,n){return oi={name:t,styles:n,next:oi},t}))}return 1===Za[e]||Qa(e)||"number"!=typeof t||0===t?t:t+"px"};function ri(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return oi={name:o.name,styles:o.styles,next:oi},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)oi={name:i.name,styles:i.styles,next:oi},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ri(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":ei(s)&&(r+=ti(a)+":"+ni(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ri(e,t,i);switch(a){case"animation":case"animationName":r+=ti(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)ei(i[u])&&(r+=ti(a)+":"+ni(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=oi,l=n(e);return oi=s,ri(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var oi,ai=/label:\s*([^\s;{]+)\s*(;|$)/g;function ii(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="";oi=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ri(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ri(n,t,e[i]),r&&(o+=a[i]);ai.lastIndex=0;for(var s,l="";null!==(s=ai.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:oi}}var si,li,ui=!!r.useInsertionEffect&&r.useInsertionEffect,ci=ui||function(e){return e()},di=(ui||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?Ya({key:"css"}):null)),pi=(di.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(di);return e(t,o,n)}))}),fi=r.createContext({}),hi={}.hasOwnProperty,mi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ga(t,n,r),ci((function(){return function(e,t,n){Ga(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},gi=pi((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[mi],i=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=ii(i,void 0,r.useContext(fi));s+=t.key+"-"+l.name;var u={};for(var c in e)hi.call(e,c)&&"css"!==c&&c!==mi&&(u[c]=e[c]);return u.className=s,n&&(u.ref=n),r.createElement(r.Fragment,null,r.createElement(vi,{cache:t,serialized:l,isStringTag:"string"==typeof a}),r.createElement(a,u))})),yi=gi,bi=(n(486),function(e,t){var n=arguments;if(null==t||!hi.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=yi,a[1]=function(e,t){var n={};for(var r in t)hi.call(t,r)&&(n[r]=t[r]);return n[mi]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)});function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ii(t)}si=bi||(bi={}),li||(li=si.JSX||(si.JSX={}));const xi=window.ReactDOM,_i=Math.min,Ci=Math.max,ki=Math.round,Si=Math.floor,Ei=e=>({x:e,y:e});function Oi(){return"undefined"!=typeof window}function ji(e){return Pi(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ri(e){var t;return null==(t=(Pi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pi(e){return!!Oi()&&(e instanceof Node||e instanceof Mi(e).Node)}function Li(e){return!!Oi()&&(e instanceof Element||e instanceof Mi(e).Element)}function Ni(e){return!!Oi()&&(e instanceof HTMLElement||e instanceof Mi(e).HTMLElement)}function Ti(e){return!(!Oi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot)}function Di(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$i(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $i(e){return Mi(e).getComputedStyle(e)}function Ii(e){const t=function(e){if("html"===ji(e))return e;const t=e.assignedSlot||e.parentNode||Ti(e)&&e.host||Ri(e);return Ti(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(ji(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ni(t)&&Di(t)?t:Ii(t)}function Fi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ii(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Mi(o);if(a){const e=Ai(i);return t.concat(i,i.visualViewport||[],Di(o)?o:[],e&&n?Fi(e):[])}return t.concat(o,Fi(o,[],n))}function Ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qi(e){return Li(e)?e:e.contextElement}function Vi(e){const t=qi(e);if(!Ni(t))return Ei(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=$i(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ni(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ki(n)!==a||ki(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}(t);let i=(a?ki(n.width):n.width)/r,s=(a?ki(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ui=Ei(0);function zi(e){const t=Mi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ui}function Hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=qi(e);let i=Ei(1);t&&(r?Li(r)&&(i=Vi(r)):i=Vi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mi(e))&&t}(a,n,r)?zi(a):Ei(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Mi(a),t=r&&Li(r)?Mi(r):r;let n=e,o=Ai(n);for(;o&&r&&t!==n;){const e=Vi(o),t=o.getBoundingClientRect(),r=$i(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=Mi(o),o=Ai(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:d,x:l,y:u})}var Bi=r.useLayoutEffect,Wi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yi=function(){};function Gi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Zi(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(Gi(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ji=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Po(e)&&null!==e?[e]:[];var t},Xi=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,Do({},Ao(e,Wi))},Ki=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 Qi(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function es(e){return Qi(e)?window.pageYOffset:e.scrollTop}function ts(e,t){Qi(e)?window.scrollTo(0,t):e.scrollTop=t}function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yi,o=es(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);ts(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function rs(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ts(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ts(e,Math.max(t.offsetTop-o,0))}function os(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var as=!1,is={get passive(){return as=!0}},ss="undefined"!=typeof window?window:{};ss.addEventListener&&ss.removeEventListener&&(ss.addEventListener("p",Yi,is),ss.removeEventListener("p",Yi,!1));var ls=as;function us(e){return null!=e}function cs(e,t,n){return e?t:n}var ds=["children","innerProps"],ps=["children","innerProps"];var fs,hs=function(e){return"auto"===e?"bottom":e},ms=(0,r.createContext)(null),vs=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,r.useContext)(ms)||{}).setPortalPlacement,c=(0,r.useRef)(null),d=Fo((0,r.useState)(o),2),p=d[0],f=d[1],h=Fo((0,r.useState)(null),2),m=h[0],v=h[1],g=l.spacing.controlHeight;return Bi((function(){var e=c.current;if(e){var t="fixed"===i,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=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),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,g=i||Qi(c=l)?window.innerHeight:c.clientHeight,y=es(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=v-w,_=g-m,C=x+y,k=d-y-m,S=f-g+y+b,E=y+m-w,O=160;switch(o){case"auto":case"bottom":if(_>=h)return{placement:"bottom",maxHeight:t};if(k>=h&&!i)return a&&ns(l,S,O),{placement:"bottom",maxHeight:t};if(!i&&k>=r||i&&_>=r)return a&&ns(l,S,O),{placement:"bottom",maxHeight:i?_-b:k-b};if("auto"===o||i){var j=t,M=i?x:C;return M>=r&&(j=Math.min(M-b-s,t)),{placement:"top",maxHeight:j}}if("bottom"===o)return a&&ts(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(C>=h&&!i)return a&&ns(l,E,O),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&x>=r){var R=t;return(!i&&C>=r||i&&x>=r)&&(R=i?x-w:C-w),a&&ns(l,E,O),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(r.maxHeight),v(r.placement),null==u||u(r.placement)}}),[o,a,i,s,n,u,g]),t({ref:c,placerProps:Do(Do({},e),{},{placement:m||hs(a),maxHeight:p})})},gs=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Do({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ys=gs,bs=gs,ws=["size"],xs=["innerProps","isRtl","size"],_s={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Cs=function(e){var t=e.size,n=Ao(e,ws);return bi("svg",Vo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_s},n))},ks=function(e){return bi(Cs,Vo({size:20},e),bi("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"}))},Ss=function(e){return bi(Cs,Vo({size:20},e),bi("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"}))},Es=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Do({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Os=Es,js=Es,Ms=function(){var e=wi.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_"}}}(fs||(fs=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),Rs=function(e){var t=e.delay,n=e.offset;return bi("span",{css:wi({animation:"".concat(Ms," 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"},"","")})},Ps=["data"],Ls=["innerRef","isDisabled","isHidden","inputClassName"],Ns={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ts={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Do({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ns)},Ds=function(e){return Do({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ns)},$s=function(e){var t=e.children,n=e.innerProps;return bi("div",n,t)},Is={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||bi(ks,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return bi("div",Vo({ref:o},Ki(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||bi(Ss,null))},DownChevron:Ss,CrossIcon:ks,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return bi("div",Vo({},Ki(e,"group",{group:!0}),s),bi(a,Vo({},i,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),bi("div",null,t))},GroupHeading:function(e){var t=Xi(e);t.data;var n=Ao(t,Ps);return bi("div",Vo({},Ki(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({},Ki(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return bi("span",Vo({},t,Ki(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Xi(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=Ao(r,Ls);return bi("div",Vo({},Ki(e,"input",{"input-container":!0}),{"data-value":n||""}),bi("input",Vo({className:t({input:!0},s),ref:o,style:Ds(i),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Ao(e,xs);return bi("div",Vo({},Ki(Do(Do({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),bi(Rs,{delay:0,offset:n}),bi(Rs,{delay:160,offset:!0}),bi(Rs,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return bi("div",Vo({},Ki(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return bi("div",Vo({},Ki(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,i=e.menuPlacement,s=e.menuPosition,l=(0,r.useRef)(null),u=(0,r.useRef)(null),c=Fo((0,r.useState)(hs(i)),2),d=c[0],p=c[1],f=(0,r.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=Fo((0,r.useState)(null),2),m=h[0],v=h[1],g=(0,r.useCallback)((function(){if(o){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}}(o),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||v({offset:n,rect:e})}}),[o,s,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Bi((function(){g()}),[g]);var y=(0,r.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=qi(e),c=o||a?[...u?Fi(u):[],...Fi(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Ri(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Si(c)+"px "+-Si(o.clientWidth-(u+d))+"px "+-Si(o.clientHeight-(c+p))+"px "+-Si(u)+"px",threshold:Ci(0,_i(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(u,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Hi(e):null;return l&&function t(){const r=Hi(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(o,l.current,g,{elementResize:"ResizeObserver"in window}))}),[o,g]);Bi((function(){y()}),[y]);var b=(0,r.useCallback)((function(e){l.current=e,y()}),[y]);if(!t&&"fixed"!==s||!m)return null;var w=bi("div",Vo({ref:b},Ki(Do(Do({},e),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),a),n);return bi(ms.Provider,{value:f},t?(0,xi.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ao(e,ps);return bi("div",Vo({},Ki(Do(Do({},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=Ao(e,ds);return bi("div",Vo({},Ki(Do(Do({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return bi(l,{data:r,innerProps:Do(Do({},Ki(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},bi(u,{data:r,innerProps:Do({},Ki(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),bi(c,{data:r,innerProps:Do(Do({},Ki(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},MultiValueContainer:$s,MultiValueLabel:$s,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return bi("div",Vo({role:"button"},n),t||bi(ks,{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 bi("div",Vo({},Ki(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 bi("div",Vo({},Ki(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return bi("div",Vo({},Ki(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return bi("div",Vo({},Ki(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 bi("div",Vo({},Ki(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Fs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function As(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Fs(r)&&Fs(o)))return!1;var r,o;return!0}for(var qs={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"},Vs=function(e){return bi("span",Vo({css:qs},e))},Us={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".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,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,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&&u){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},zs=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,a=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,v=l.isSearchable,g=l.menuIsOpen,y=l.options,b=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,_=l["aria-label"],C=l["aria-live"],k=(0,r.useMemo)((function(){return Do(Do({},Us),d||{})}),[d]),S=(0,r.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,a=t.removedValue,i=t.removedValues,l=t.value,u=a||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=o||i||void 0,f=d?d.map(p):[],h=Do({isDisabled:u&&m(u,s),label:c,labels:f},t);n=k.onChange(h)}return n}),[t,k,m,s,p]),E=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&k.onFocus){var i={focused:t,label:p(t),isDisabled:m(t,s),isSelected:r,options:a,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=k.onFocus(i)}return e}),[n,o,p,m,k,a,s,c]),O=(0,r.useMemo)((function(){var e="";if(g&&y.length&&!x&&k.onFilter){var t=b({count:a.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[a,f,g,k,y,b,x]),j="initial-input-focus"===(null==t?void 0:t.action),M=(0,r.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":g?"menu":"input";e=k.guidance({"aria-label":_,context:t,isDisabled:n&&m(n,s),isMulti:h,isSearchable:v,tabSelectsValue:w,isInitialFocus:j})}return e}),[_,n,o,h,m,v,g,k,s,w,j]),R=bi(r.Fragment,null,bi("span",{id:"aria-selection"},S),bi("span",{id:"aria-focused"},E),bi("span",{id:"aria-results"},O),bi("span",{id:"aria-guidance"},M));return bi(r.Fragment,null,bi(Vs,{id:u},j&&R),bi(Vs,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&R))},Hs=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Bs=new RegExp("["+Hs.map((function(e){return e.letters})).join("")+"]","g"),Ws={},Ys=0;Ys<Hs.length;Ys++)for(var Gs=Hs[Ys],Zs=0;Zs<Gs.letters.length;Zs++)Ws[Gs.letters[Zs]]=Gs.base;var Js=function(e){return e.replace(Bs,(function(e){return Ws[e]}))},Xs=function(e,t){void 0===t&&(t=As);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Js),Ks=function(e){return e.replace(/^\s+|\s+$/g,"")},Qs=function(e){return"".concat(e.label," ").concat(e.value)},el=["innerRef"];function tl(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=Fo(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Fo(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Ao(e,el),"onExited","in","enter","exit","appear");return bi("input",Vo({ref:t},n,{css:wi({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var nl=["boxSizing","height","overflow","paddingRight","position"],rl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ol(e){e.cancelable&&e.preventDefault()}function al(e){e.stopPropagation()}function il(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function sl(){return"ontouchstart"in window||navigator.maxTouchPoints}var ll=!("undefined"==typeof window||!window.document||!window.document.createElement),ul=0,cl={capture:!1,passive:!1},dl=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},pl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fl(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=(0,r.useRef)(0),c=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,u=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=c.current,h=t>0,m=d-p-u,v=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(i&&i(e),l.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=d,v=!0,s.current=!0):!h&&-t>u&&(a&&!l.current&&a(e),f.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,a,i]),p=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,r.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,r.useCallback)((function(e){if(e){var t=!!ls&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),v=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,r.useEffect)((function(){if(t){var e=c.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,a=(0,r.useRef)({}),i=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(ll){var t=document.body,n=t&&t.style;if(o&&nl.forEach((function(e){var t=n&&n[e];a.current[e]=t})),o&&ul<1){var r=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+r||0;Object.keys(rl).forEach((function(e){var t=rl[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&sl()&&(t.addEventListener("touchmove",ol,cl),e&&(e.addEventListener("touchstart",il,cl),e.addEventListener("touchmove",al,cl))),ul+=1}}),[o]),l=(0,r.useCallback)((function(e){if(ll){var t=document.body,n=t&&t.style;ul=Math.max(ul-1,0),o&&ul<1&&nl.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&sl()&&(t.removeEventListener("touchmove",ol,cl),e&&(e.removeEventListener("touchstart",il,cl),e.removeEventListener("touchmove",al,cl)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=i.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){i.current=e}}({isEnabled:n});return bi(r.Fragment,null,n&&bi("div",{onClick:dl,css:pl}),t((function(e){a(e),i(e)})))}var hl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ml=function(e){var t=e.name,n=e.onFocus;return bi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:hl,value:"",onChange:function(){}})};function vl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function gl(){return vl(/^Mac/i)}var yl={clearIndicator:js,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 Do({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:Os,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 Do({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 Do({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 Do(Do({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ts),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 Do({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:bs,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return Do((No(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),No(n,"position","absolute"),No(n,"width","100%"),No(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Do({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 Do({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 Do({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 Do({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:ys,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return Do({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Do({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 Do({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 Do({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")})}},bl={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}},wl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:os(),captureMenuScroll:!os(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Do({ignoreCase:!0,ignoreAccents:!0,stringify:Qs,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Ks(t):t,u=i?Ks(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Xs(l),u=Js(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!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 xl(e,t,n,r){return{type:"option",data:t,isDisabled:Ml(e,t,n),isSelected:Rl(e,t,n),label:Ol(e,t),value:jl(e,t),index:r}}function _l(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return xl(e,n,t,r)})).filter((function(t){return Sl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xl(e,n,t,r);return Sl(e,a)?a:void 0})).filter(us)}function Cl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Wo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function kl(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Wo(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Sl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Ll(e)||!a)&&Pl(e,{label:i,value:s,data:o},r)}var El=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Ol=function(e,t){return e.getOptionLabel(t)},jl=function(e,t){return e.getOptionValue(t)};function Ml(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Rl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=jl(e,t);return n.some((function(t){return jl(e,t)===r}))}function Pl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ll=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Nl=1,Tl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}(n,e);var t=function(e){var t=Bo();return function(){var n,r=Ho(e);if(t){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Po(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)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=gl()||vl(/^iPhone/i)||vl(/^iPad/i)||gl()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var u=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:a});o?r.setValue([].concat(Wo(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=cs(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(cs(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=cs(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return El(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return kl(_l(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zi.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Ol(r.props,e)},r.getOptionValue=function(e){return jl(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=yl[e](t,n);o.boxSizing="border-box";var a=r.props.styles[e];return a?a(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Do(Do({},Is),e.components);var e},r.buildCategorizedOptions=function(){return _l(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Cl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Do({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Qi(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Ll(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Nl),r.state.selectValue=Ji(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),i=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=a[i],r.state.focusedOptionId=El(o,a[i])}return r}return function(e,t,n){t&&Uo(e.prototype,t),n&&Uo(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rs(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&&(rs(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 s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(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,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(bl):Do(Do({},bl),this.props.theme):bl}},{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,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:a,selectProps:s,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 Ml(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Rl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Pl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=Do(Do(Do({"aria-autocomplete":"list","aria-expanded":l,"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":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(c,Vo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:a},v)):r.createElement(tl,Vo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yi,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,Vo({},u,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return g.map((function(t,s){var l=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,Vo({},u,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return r.createElement(s,Vo({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Vo({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;return e&&a?r.createElement(e,Vo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return r.createElement(n,Vo({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Vo({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,w=f.menuIsOpen,x=f.menuPlacement,_=f.menuPosition,C=f.menuPortalTarget,k=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,E=f.noOptionsMessage,O=f.onMenuScrollToTop,j=f.onMenuScrollToBottom;if(!w)return null;var M,R=function(t,n){var o=t.type,a=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,f=p===a,h=i?void 0:function(){return e.onOptionHover(a)},m=i?void 0:function(){return e.selectOption(a)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return r.createElement(c,Vo({},d,{innerProps:g,data:a,isDisabled:i,isSelected:s,key:v,label:l,type:o,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return r.createElement(n,Vo({},d,{key:l,data:a,options:i,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(v){var P=g({inputValue:m});if(null===P)return null;M=r.createElement(l,d,P)}else{var L=E({inputValue:m});if(null===L)return null;M=r.createElement(u,d,L)}var N={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:_,menuShouldScrollIntoView:S},T=r.createElement(vs,Vo({},d,N),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(a,Vo({},d,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),r.createElement(fl,{captureEnabled:h,onTopArrive:O,onBottomArrive:j,lockEnabled:k},(function(t){return r.createElement(i,Vo({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:p}),M)})))}));return C||"fixed"===_?r.createElement(s,Vo({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:_}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,a=t.isMulti,i=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(ml,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(a){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:i,type:"hidden",value:u})}var c=l.length>0?l.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:i,type:"hidden",value:""});return r.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(zs,Vo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,u=i.isDisabled,c=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,Vo({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),r.createElement(t,Vo({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),r.createElement(a,Vo({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,Vo({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Ji(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var v=d?function(e,t){return Cl(_l(e,t))}(e,h):[],g=d?kl(_l(e,h),"".concat(l,"-option")):[],y=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,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedOptionId:El(g,b),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=a,_=i&&s;return i&&!_&&(x={value:cs(f,h,h[0]||null),options:h,action:"initial-input-focus"},_=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),Do(Do(Do({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:_})}}]),n}(r.Component);Tl.defaultProps=wl;var Dl=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,a=void 0!==o&&o,i=e.defaultValue,s=void 0===i?null:i,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=Ao(e,qo),v=Fo((0,r.useState)(void 0!==l?l:n),2),g=v[0],y=v[1],b=Fo((0,r.useState)(void 0!==u?u:a),2),w=b[0],x=b[1],_=Fo((0,r.useState)(void 0!==h?h:s),2),C=_[0],k=_[1],S=(0,r.useCallback)((function(e,t){"function"==typeof c&&c(e,t),k(e)}),[c]),E=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),O=(0,r.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),j=(0,r.useCallback)((function(){"function"==typeof p&&p(),x(!1)}),[p]),M=void 0!==l?l:g,R=void 0!==u?u:w,P=void 0!==h?h:C;return Do(Do({},m),{},{inputValue:M,menuIsOpen:R,onChange:S,onInputChange:E,onMenuClose:j,onMenuOpen:O,value:P})}(e);return r.createElement(Tl,Vo({ref:t},n))})),$l=Dl;const Il={technical_support:(0,tn.__)("Technical Support","squad-modules-pro-for-divi"),billing_issue:(0,tn.__)("Billing Issue","squad-modules-pro-for-divi"),feature_request:(0,tn.__)("Feature Request","squad-modules-pro-for-divi"),customization:(0,tn.__)("Customization","squad-modules-pro-for-divi"),"pre-sale_question":(0,tn.__)("Pre-Sale Question","squad-modules-pro-for-divi"),press:(0,tn.__)("Press","squad-modules-pro-for-divi"),bug:(0,tn.__)("Bug","squad-modules-pro-for-divi")},Fl={default:(0,tn.__)("Please describe the issue you are having. Be detailed but brief.","squad-modules-pro-for-divi"),feature_request:(0,tn.__)("Describe the feature you would like to see added.","squad-modules-pro-for-divi"),customization:(0,tn.__)("Please describe the use-case and the different features you would like to be custom developed for you.","squad-modules-pro-for-divi"),"pre-sale_question":(0,tn.__)("What would you like to know before purchasing?","squad-modules-pro-for-divi"),press:(0,tn.__)("Please provide all the information about the press cover.","squad-modules-pro-for-divi"),bug:(0,tn.__)("Please describe the bug and how to reproduce it.","squad-modules-pro-for-divi")},Al=["technical_support","bug"],ql=[...Al,"customization"],Vl=({title:e,description:t,content:n})=>(0,cn.jsxs)("div",{className:"support-section",children:[(0,cn.jsxs)("div",{className:"support-section-header",children:[e,t&&(0,cn.jsx)("p",{children:t})]}),(0,cn.jsx)("div",{className:"support-section-content",children:n})]}),Ul=function(){const e=sn.support,t={isSaving:!1,isChanged:!1,account:{full_name:e.user_name,email_address:e.user_email,site_url:e.user_site},errors:[],missing:[]},[n,o]=(0,r.useState)(t),a=(0,r.useCallback)((e=>{o((t=>({...t,account:{...t.account,...e},isChanged:!0})))}),[]),i=(0,r.useCallback)((e=>{if(n.account&&(n.errors?.includes(e)||n.missing?.includes(e))&&!n.account[e])return"squad-error-field"}),[n.account,n.errors,n.missing]),s=n.account?.support_type?.value||"default",l=Fl[s],u=Object.entries(Il).map((([e,t])=>({label:t,value:e}))),c=({className:e,options:t,name:n,label:r,value:o,placeholder:i,noOptionsMessage:s})=>(0,cn.jsxs)("div",{className:"squad-input-container",children:[(0,cn.jsx)("label",{htmlFor:n,children:Nr(r)}),(0,cn.jsx)($l,{className:`squad-select-container ${e}`,classNamePrefix:"squad-select",id:n,styles:{control:e=>({...e,backgroundColor:"white"}),option:(e,{isDisabled:t,isFocused:n,isSelected:r})=>({...e,backgroundColor:t?void 0:r?"#5e2eff":n?"#8a86fe":void 0,color:t?void 0:r||n?"white":void 0,cursor:t?"not-allowed":"default"})},options:t,value:o,placeholder:i,noOptionsMessage:s,onChange:e=>a({[n]:e})})]});return(0,cn.jsxs)("div",{className:"support-wrapper",children:[(0,cn.jsx)("div",{className:"header-bar",children:(0,cn.jsx)("div",{className:"bar compact",children:(0,cn.jsxs)("div",{className:"multi-lines",children:[(0,cn.jsx)("h4",{children:(0,tn.__)("Have questions? We're happy to help!","squad-modules-pro-for-divi")}),(0,cn.jsx)("p",{className:"content",children:(0,tn.__)("We'll do our best to get back to you as soon as we can.","squad-modules-pro-for-divi")})]})})}),(0,cn.jsx)("div",{className:"container",children:(0,cn.jsxs)("form",{method:"post",className:"support-form",onSubmit:async e=>{if(e.preventDefault(),!n.isChanged)return;o((e=>({...e,isChanged:!1,isSaving:!0})));const r=sn.rest_api_pro,a={path:`${r.namespace}${r.routes.MailSupportQuery?.root}`,method:"POST",data:{...n.account,support_type:s}};try{const e=await vo()(a);Xn.success(e.message||(0,tn.__)("Your query sent successfully.","squad-modules-pro-for-divi")),o((e=>({...e,isChanged:!1,isSaving:!1,account:t.account})))}catch(e){Xn.error(e.message||(0,tn.__)("Your query sending failed. Please try again later.","squad-modules-pro-for-divi")),o((t=>({...t,isChanged:!0,isSaving:!1,errors:e.fields||[],missing:e.fields||[]})))}},children:[(0,cn.jsx)(Vl,{title:(0,tn.__)("Personal Information","squad-modules-pro-for-divi"),content:(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(Sn.TextControl,{type:"text",label:(0,tn.__)("Name","squad-modules-pro-for-divi"),value:n.account?.full_name,placeholder:(0,tn.__)("Your first and last name","squad-modules-pro-for-divi"),className:i("full_name"),onChange:e=>a({full_name:e})}),(0,cn.jsx)(Sn.TextControl,{type:"email",label:(0,tn.__)("Email Address","squad-modules-pro-for-divi"),value:n.account?.email_address,placeholder:(0,tn.__)("Your email address","squad-modules-pro-for-divi"),className:i("email_address"),onChange:e=>a({email_address:e})})]})}),(0,cn.jsx)(Vl,{title:(0,tn.__)("Support Query","squad-modules-pro-for-divi"),content:(0,cn.jsxs)(cn.Fragment,{children:[(0,cn.jsx)(c,{name:"support_type",options:u,value:n.account?.support_type,label:(0,tn.__)("Support Type","squad-modules-pro-for-divi"),placeholder:(0,tn.__)("Select a type","squad-modules-pro-for-divi"),className:i("support_type"),noOptionsMessage:()=>(0,tn.__)("No options found","squad-modules-pro-for-divi")}),n.account?.support_type&&(0,cn.jsxs)(cn.Fragment,{children:[ql.includes(s)&&(0,cn.jsx)(Sn.TextControl,{type:"url",label:(0,tn.__)("Site Address","squad-modules-pro-for-divi"),value:n.account.site_url||"",placeholder:(0,tn.sprintf)(
    174174// translators: The site url.
    175175// translators: The site url.
  • squad-modules-for-divi/trunk/changelog.txt

    r3267094 r3267197  
    11== Changelog ==
     2= 3.3.2 (05-04-2025) =
     3
     4**Bug Fixes:**
     5- Fixed an issue in the modules management dashboard that pro modules were not showing up in the modules management dashboard.
     6
    27= 3.3.1 (05-04-2025) =
    38
  • squad-modules-for-divi/trunk/deprecated/Managers/Features/Modules.php

    r3267064 r3267197  
    3535     */
    3636    public function get_all_modules_with_locked(): array {
    37         return array();
     37        return $this->get_registered_list();
    3838    }
    3939
  • squad-modules-for-divi/trunk/includes/SquadModules.php

    r3267094 r3267197  
    5252    use Core\Traits\Deprecations\Deprecated_Class_Loader;
    5353    use Core\Traits\Plugin\Detect_Plugin_Life;
     54    use Core\Traits\Plugin\Pluggable;
    5455    use Core\Traits\Plugin\Logger;
    5556    use Core\Traits\Singleton;
     
    840841
    841842    /**
    842      * Resolve the plugin data.
    843      *
    844      * @param string $plugin_file Absolute path to the main plugin file.
    845      *
    846      * @return array<string, bool|string> Parses the plugin contents to retrieve plugin's metadata.
    847      * @throws RuntimeException If the plugin file does not exist or the function cannot be included.
    848      */
    849     public function get_plugin_data( string $plugin_file ): array {
    850         if ( ! function_exists( 'get_plugin_data' ) ) {
    851             $plugin_path = $this->get_wp_path() . 'wp-admin/includes/plugin.php';
    852 
    853             if ( $this->get_wp_fs()->exists( $plugin_path ) ) {
    854                 require_once $plugin_path;
    855             } else {
    856                 throw new RuntimeException( "The 'wp-admin/includes/plugin.php' file loading failed. Cannot retrieve plugin data." );
    857             }
    858         }
    859 
    860         return get_plugin_data( $plugin_file, false, false );
    861     }
    862 
    863     /**
    864843     * Get the plugin admin menu slug.
    865844     *
     
    891870         */
    892871        return apply_filters( 'divi_squad_admin_menu_position', 101 );
    893     }
    894 
    895     /**
    896      * Get the plugin options.
    897      *
    898      * @since  1.0.0
    899      * @access public
    900      *
    901      * @return array<string, string>
    902      */
    903     public function get_options(): array {
    904         return $this->options;
    905     }
    906 
    907     /**
    908      * Get a specific option value.
    909      *
    910      * @since  1.0.0
    911      * @access public
    912      *
    913      * @param string              $key           The option key.
    914      * @param string|integer|bool $default_value The default value if the option doesn't exist.
    915      *
    916      * @return mixed
    917      */
    918     public function get_option( string $key, $default_value = null ) {
    919         return $this->options[ $key ] ?? $default_value;
    920     }
    921 
    922     /**
    923      * Set a specific option value.
    924      *
    925      * @since  1.0.0
    926      * @access public
    927      *
    928      * @param string $key   The option key.
    929      * @param mixed  $value The option value.
    930      *
    931      * @return void
    932      */
    933     public function set_option( string $key, $value ): void {
    934         $this->options[ $key ] = $value;
    935     }
    936 
    937     /**
    938      * Get the plugin version number.
    939      *
    940      * @since  1.0.0
    941      * @access public
    942      *
    943      * @return string
    944      */
    945     public function get_version(): string {
    946         return $this->is_dev() ? (string) time() : $this->version;
    947     }
    948 
    949     /**
    950      * Get the plugin version number (dotted).
    951      *
    952      * @since  1.0.0
    953      * @access public
    954      *
    955      * @return string
    956      */
    957     public function get_version_dot(): string {
    958         return $this->get_option( 'Version', '1.0.0' );
    959     }
    960 
    961     /**
    962      * Get the plugin name.
    963      *
    964      * @return string
    965      */
    966     public function get_name(): string {
    967         return $this->name;
    968     }
    969 
    970     /**
    971      * Get the plugin text domain.
    972      *
    973      * @return string
    974      */
    975     public function get_textdomain(): string {
    976         return $this->textdomain;
    977872    }
    978873
     
    987882    public function get_basename(): string {
    988883        return plugin_basename( DIVI_SQUAD_PLUGIN_FILE );
    989     }
    990 
    991     /**
    992      * Retrieve the WordPress root path.
    993      *
    994      * @since  1.0.0
    995      * @access public
    996      *
    997      * @return string
    998      */
    999     public function get_wp_path(): string {
    1000         return trailingslashit( ABSPATH );
    1001884    }
    1002885
     
    1078961         */
    1079962        return apply_filters( 'divi_squad_icon_path', $this->get_path( '/build/admin/icons/' . $path ), $path, $this );
    1080     }
    1081 
    1082     /**
    1083      * Get the plugin languages path.
    1084      *
    1085      * @since  3.2.3
    1086      * @access public
    1087      *
    1088      * @return string
    1089      */
    1090     public function get_languages_path(): string {
    1091         return $this->get_path( '/languages' );
    1092963    }
    1093964
  • squad-modules-for-divi/trunk/readme.txt

    r3267094 r3267197  
    66Tested up to: 6.7
    77Requires PHP: 7.4
    8 Stable tag: 3.3.1
     8Stable tag: 3.3.2
    99License: GPL-3.0-only
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    185185
    186186== Upgrade Notice ==
     187= 3.3.2 =
     188Fix and issue in the modules management dashboard that pro modules were not showing up in the modules management dashboard.
     189
    187190= 3.3.1 =
    188191fix an issue to resolve WordPress custom fields not displaying correctly in the Post Grid module.
     
    195198
    196199== Changelog ==
     200= 3.3.2 (05-04-2025) =
     201
     202**Bug Fixes:**
     203- Fixed an issue in the modules management dashboard that pro modules were not showing up in the modules management dashboard.
     204
    197205= 3.3.1 (05-04-2025) =
    198206
  • squad-modules-for-divi/trunk/squad-modules-for-divi.php

    r3267094 r3267197  
    1616 * Plugin URI:          https://squadmodules.com/
    1717 * Description:         The Essential Divi plugin, offering 25+ stunning free modules like Advanced Divider, Flip box, and more.
    18  * Version:             3.3.1
     18 * Version:             3.3.2
    1919 * Requires at least:   6.0
    2020 * Requires PHP:        7.4
  • squad-modules-for-divi/trunk/upgrade-notices.txt

    r3267094 r3267197  
    11== Upgrade Notice ==
     2= 3.3.2 =
     3Fix and issue in the modules management dashboard that pro modules were not showing up in the modules management dashboard.
     4
    25= 3.3.1 =
    36fix an issue to resolve WordPress custom fields not displaying correctly in the Post Grid module.
  • squad-modules-for-divi/trunk/vendor/composer/autoload_classmap.php

    r3267094 r3267197  
    8686    'DiviSquad\\Core\\Traits\\Plugin\\Detect_Plugin_Life' => $baseDir . '/includes/Core/Traits/Plugin/Detect_Plugin_Life.php',
    8787    'DiviSquad\\Core\\Traits\\Plugin\\Logger' => $baseDir . '/includes/Core/Traits/Plugin/Logger.php',
     88    'DiviSquad\\Core\\Traits\\Plugin\\Pluggable' => $baseDir . '/includes/Core/Traits/Plugin/Pluggable.php',
    8889    'DiviSquad\\Core\\Traits\\Singleton' => $baseDir . '/includes/Core/Traits/Singleton.php',
    8990    'DiviSquad\\Core\\Traits\\WP\\Use_WP_Filesystem' => $baseDir . '/includes/Core/Traits/WP/Use_WP_Filesystem.php',
  • squad-modules-for-divi/trunk/vendor/composer/autoload_static.php

    r3267094 r3267197  
    101101        'DiviSquad\\Core\\Traits\\Plugin\\Detect_Plugin_Life' => __DIR__ . '/../..' . '/includes/Core/Traits/Plugin/Detect_Plugin_Life.php',
    102102        'DiviSquad\\Core\\Traits\\Plugin\\Logger' => __DIR__ . '/../..' . '/includes/Core/Traits/Plugin/Logger.php',
     103        'DiviSquad\\Core\\Traits\\Plugin\\Pluggable' => __DIR__ . '/../..' . '/includes/Core/Traits/Plugin/Pluggable.php',
    103104        'DiviSquad\\Core\\Traits\\Singleton' => __DIR__ . '/../..' . '/includes/Core/Traits/Singleton.php',
    104105        'DiviSquad\\Core\\Traits\\WP\\Use_WP_Filesystem' => __DIR__ . '/../..' . '/includes/Core/Traits/WP/Use_WP_Filesystem.php',
Note: See TracChangeset for help on using the changeset viewer.