晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/tabatabaei/.trash/wp-content.1/plugins/gutenify/core/dist/admin/pages/settings/ |
Upload File : |
(()=>{"use strict";var e={8679:(e,t,n)=>{var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),g=l(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var b=d(n,v);try{u(t,v,b)}catch(e){}}}}return t}},9921:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case h:case g:case l:return e;default:return t}}case o:return t}}}function O(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||w(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===S||e.$$typeof===v)},t.typeOf=w},9864:(e,t,n)=>{e.exports=n(9921)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={};n.r(e),n.d(e,{getSettings:()=>H,getSiteOptions:()=>j,getTemplateData:()=>U});var t={};n.r(t),n.d(t,{apiFetch:()=>B,setSettings:()=>z,setSiteOptions:()=>G,updateSiteOptions:()=>W});var r={};n.r(r),n.d(r,{API_FETCH:()=>Y});var o={};n.r(o),n.d(o,{getSettings:()=>X,getSiteOptions:()=>q});const i=window.wp.element,a=window.wp.domReady;var s=n.n(a);const l=window.wp.components,u=window.wp.i18n,c=window.wp.hooks,p=window.wp.compose,d=window.wp.data,f=window.wp.url,m=window.wp.coreData,g=window.lodash;var h;const v=null!==(h=window)&&void 0!==h&&h._gutenify_vars?window._gutenify_vars:{},{is_pro_activated:b,pro_account_url:y,pro_license_status:S,title:w,prefix:O,slug:E,authorWebSite:C,authorDemoWebSite:x,authorWebSiteProPage:k,defaultTheme:P,authorWebSiteSupport:I,plugin_directory_url:M,brand_color:_,plugin_main_version:V,documentationsURL:T,pro_title:D,active_blocks:F}=v,R=(null!=v&&v.siteUrl?v.siteUrl:v.site_url,(0,u.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+k+'" target="_blank">',D,"</a>")),L=window.wp.apiFetch;var A=n.n(L);const N=e=>(0,i.createElement)(l.Panel,{className:"gutenify-setting-panel-toolbar-area"},(0,i.createElement)(l.PanelRow,null,(0,i.createElement)("span",null,e.appState.isSettingsSaving&&(0,i.createElement)(l.Spinner,null),!e.appState.isSettingsSaving&&e.appState.hasSettingChange&&(0,i.createElement)("span",{className:"gutenify-text-warning"},"New changes are added. Please save changes.")),(0,i.createElement)(l.Button,{isPrimary:!0,onClick:()=>{e.setAppState((e=>({...e,isSettingsSaving:!0}))),A()({path:"/gutenify/v1/update_settings/",data:{settings:e.settings},method:"POST"}).then((t=>{t&&t.success&&t.response,e.setAppState((e=>({...e,isSettingsSaving:!1,hasSettingChange:!1})))}))},disabled:e.appState.isSettingsSaving||!e.appState.hasSettingChange},"Save"))),$=(0,p.compose)((0,d.withSelect)((e=>{var t;const{getPostTypes:n}=e(m.store),r=["attachment"],o=null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter((e=>{let{viewable:t,slug:n}=e;return t&&!r.includes(n)}));return{postTypesList:o}})))((e=>{const{postTypesList:t,updateSettings:n,settings:r}=e;return(0,i.createElement)(i.Fragment,null,t&&t.map((e=>r.skip_gutenburg_post_type.includes(e.slug)?[]:(0,i.createElement)(l.PanelRow,{key:`post-type-${e.slug}`},(0,i.createElement)(l.ToggleControl,{label:e.labels.name,checked:r.active_post_types.includes(e.slug),onChange:()=>{const t=r.active_post_types;r.active_post_types.includes(e.slug)?(0,g.remove)(t,(t=>t===e.slug)):t.push(e.slug),n({...r,active_post_types:t})}})))))}));function H(e){return e.settings}function j(e){return e.site_options}function U(e,t){return e.templatesData[t]}function B(e){return{type:"API_FETCH",request:e}}function z(e){return{type:"SET_SETTINGS",settings:e}}function G(e){return{type:"SET_SITE_OPTIONS",site_options:{...e}}}function W(e){return{type:"UPDATE_SITE_OPTIONS",site_options:{...e}}}function Y(e){let{request:t}=e;return A()(t).then((e=>!!(e&&e.success&&e.response)&&e.response))}function*X(){return z(yield B({path:"/gutenify/v1/get_settings/"}))}function*q(){return G({settings:yield B({path:"/gutenify/v1/get_site_options/"}),coreSettings:{}})}const K=(0,d.createReduxStore)("gutenify/settings",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:!1,site_options:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SETTINGS":e.settings=t.settings;break;case"SET_SITE_OPTIONS":!e.site_options&&t.site_options&&(e.site_options={...t.site_options});break;case"UPDATE_SITE_OPTIONS":t.site_options&&(e.site_options={...t.site_options})}return{...e}},selectors:e,actions:t,controls:r,resolvers:o});(0,d.register)(K),(0,c.addFilter)("gutenify-admin-settings-panel","gutenify/admin/settings/panel/general",((e,t)=>[...e,(0,i.createElement)(i.Fragment,{key:"gutenify-admin-settings-panel-general"},(0,i.createElement)(l.PanelBody,{title:(0,u.__)("Gutenberg editor"),initialOpen:"general"===t.activePanel},(0,i.createElement)("div",null,(0,u.__)("Post Type"),(0,i.createElement)("p",{className:"description"},(0,u.__)("Choose post types to activate Gutenburg."))),(0,i.createElement)($,t)))]));const Z=e=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(i.Fragment,{key:"gutenify-admin-settings-panel"},(0,i.createElement)(N,e),(0,i.createElement)(l.Panel,{header:(0,u.__)("")},(0,c.applyFilters)("gutenify-admin-settings-panel",[],e)),(0,i.createElement)(N,e))),J=window.wp.notices,Q=window.wp.blockEditor,ee=function(e,t){var n,r,o,i,a,s,l;let u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const c=null!=t&&null!==(n=t.typography)&&void 0!==n&&n.fontFamilySlug?t.typography.fontFamilySlug:"",p=null!=t&&null!==(r=t.elements)&&void 0!==r&&null!==(o=r.headings)&&void 0!==o&&null!==(i=o.typography)&&void 0!==i&&i.fontFamilySlug?t.elements.headings.typography.fontFamilySlug:"",d=(0,g.has)(e,"blocks.core/button.color.background")?e.blocks["core/button"].color.background:"",f=(0,g.has)(e,"blocks.core/button.color.text")?e.blocks["core/button"].color.text:"",m=null!=t&&null!==(a=t.elements)&&void 0!==a&&null!==(s=a.linkHover)&&void 0!==s&&null!==(l=s.color)&&void 0!==l&&l.text?t.elements.linkHover.color.text:"",h=(0,g.has)(t,"blocks.core/button.hover.color.text")?t.blocks["core/button"].hover.color.text:"",v=(0,g.has)(t,"blocks.core/button.hover.color.background")?t.blocks["core/button"].hover.color.background:"";let b="",y="";if(c){const e=(0,g.find)(window._gutenify_vars.font_families,(e=>{let{slug:t}=e;return t===c}));e&&(y+=`${u?".editor-styles-wrapper ":"body"} {\n\t\t\t\tfont-family: ${e.fontFamily};\n\t\t\t}`)}if(p){const e=(0,g.find)(window._gutenify_vars.font_families,(e=>{let{slug:t}=e;return t===p}));e&&(b=`h1,\n\t\t\th2,\n\t\t\th3,\n\t\t\th4,\n\t\t\th5,\n\t\t\th6{\n\t\t\t\tfont-family: ${e.fontFamily};\n\t\t\t}`,y+=(0,Q.transformStyles)([{css:b}],u?".editor-styles-wrapper":""))}return b=`.woocommerce #respond input#submit,\n\t.woocommerce a.button,\n\t.woocommerce button.button,\n\t.woocommerce input.button,\n\t.woocommerce #respond input#submit.alt,\n\t.woocommerce a.button.alt,\n\t.woocommerce button.button.alt,\n\t.woocommerce input.button.alt{\n\t\t${f?"color: var(--wp--custom--core-button--color);":""}\n\t\t${d?"background-color: var(--wp--custom--core-button--color--background);":""}\n\t}`,y+=(0,Q.transformStyles)([{css:b}],u?".editor-styles-wrapper":""),d&&(b=`.is-style-outline > .wp-block-button__link:not(.has-background){\n\t\t\t${d?"background-color: transparent;":""}\n\t\t}`,y+=(0,Q.transformStyles)([{css:b}],u?".editor-styles-wrapper":"")),y+=`${u?".editor-styles-wrapper ":""} .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color){\n\t\t${f?`color: ${f};`:""}\n\t}`,b=`.wp-block-button .wp-block-button__link.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .woocommerce #respond input#submit,\n\t.wp-block-button.is-style-outline .wp-block-button__link.wp-block-button__link:not(.has-background):not(.has-text-color):hover,\n\t.woocommerce a.button:hover,\n\t.woocommerce button.button:hover,\n\t.woocommerce input.button:hover,\n\t.woocommerce #respond input#submit.alt:hover,\n\t.woocommerce a.button.alt:hover,\n\t.woocommerce button.button.alt:hover,\n\t.woocommerce input.button.alt:hover{\n\t\t${h?`color: ${h};`:""}\n\t\t${v?`background-color: ${v};`:""}\n\t}`,y+=(0,Q.transformStyles)([{css:b}],u?".editor-styles-wrapper":""),y+=`${u?".editor-styles-wrapper ":""} a:hover,a:active{\n\t\t${m?`color: ${m};`:""}\n\t}`,y};function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}const ne=window.React;var re=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),oe=Math.abs,ie=String.fromCharCode,ae=Object.assign;function se(e){return e.trim()}function le(e,t,n){return e.replace(t,n)}function ue(e,t){return e.indexOf(t)}function ce(e,t){return 0|e.charCodeAt(t)}function pe(e,t,n){return e.slice(t,n)}function de(e){return e.length}function fe(e){return e.length}function me(e,t){return t.push(e),e}var ge=1,he=1,ve=0,be=0,ye=0,Se="";function we(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ge,column:he,length:a,return:""}}function Oe(e,t){return ae(we("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ee(){return ye=be>0?ce(Se,--be):0,he--,10===ye&&(he=1,ge--),ye}function Ce(){return ye=be<ve?ce(Se,be++):0,he++,10===ye&&(he=1,ge++),ye}function xe(){return ce(Se,be)}function ke(){return be}function Pe(e,t){return pe(Se,e,t)}function Ie(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 Me(e){return ge=he=1,ve=de(Se=e),be=0,[]}function _e(e){return Se="",e}function Ve(e){return se(Pe(be-1,Fe(91===e?e+2:40===e?e+1:e)))}function Te(e){for(;(ye=xe())&&ye<33;)Ce();return Ie(e)>2||Ie(ye)>3?"":" "}function De(e,t){for(;--t&&Ce()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Pe(e,ke()+(t<6&&32==xe()&&32==Ce()))}function Fe(e){for(;Ce();)switch(ye){case e:return be;case 34:case 39:34!==e&&39!==e&&Fe(ye);break;case 40:41===e&&Fe(e);break;case 92:Ce()}return be}function Re(e,t){for(;Ce()&&e+ye!==57&&(e+ye!==84||47!==xe()););return"/*"+Pe(t,be-1)+"*"+ie(47===e?e:Ce())}function Le(e){for(;!Ie(xe());)Ce();return Pe(e,be)}var Ae="-ms-",Ne="-moz-",$e="-webkit-",He="comm",je="rule",Ue="decl",Be="@keyframes";function ze(e,t){for(var n="",r=fe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ge(e,t,n,r){switch(e.type){case"@import":case Ue:return e.return=e.return||e.value;case He:return"";case Be:return e.return=e.value+"{"+ze(e.children,r)+"}";case je:e.value=e.props.join(",")}return de(n=ze(e.children,r))?e.return=e.value+"{"+n+"}":""}function We(e,t){switch(function(e,t){return(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3)}(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Ne+e+Ae+e+e;case 6828:case 4268:return $e+e+Ae+e+e;case 6165:return $e+e+Ae+"flex-"+e+e;case 5187:return $e+e+le(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return $e+e+Ae+"flex-item-"+le(e,/flex-|-self/,"")+e;case 4675:return $e+e+Ae+"flex-line-pack"+le(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+Ae+le(e,"shrink","negative")+e;case 5292:return $e+e+Ae+le(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+le(e,"-grow","")+$e+e+Ae+le(e,"grow","positive")+e;case 4554:return $e+le(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,$e+"$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(de(e)-1-t>6)switch(ce(e,t+1)){case 109:if(45!==ce(e,t+4))break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Ne+(108==ce(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ue(e,"stretch")?We(le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ce(e,t+1))break;case 6444:switch(ce(e,de(e)-3-(~ue(e,"!important")&&10))){case 107:return le(e,":",":"+$e)+e;case 101:return le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(45===ce(e,14)?"inline-":"")+"box$3$1"+$e+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(ce(e,t+11)){case 114:return $e+e+Ae+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+Ae+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+Ae+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+Ae+e+e}return e}function Ye(e){return _e(Xe("",null,null,null,[""],e=Me(e),0,[0],e))}function Xe(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,p=a,d=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",S=o,w=i,O=r,E=y;h;)switch(m=b,b=Ce()){case 40:if(108!=m&&58==E.charCodeAt(p-1)){-1!=ue(E+=le(Ve(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Ve(b);break;case 9:case 10:case 13:case 32:E+=Te(m);break;case 92:E+=De(ke()-1,7);continue;case 47:switch(xe()){case 42:case 47:me(Ke(Re(Ce(),ke()),t,n),l);break;default:E+="/"}break;case 123*g:s[u++]=de(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+c:f>0&&de(E)-p&&me(f>32?Ze(E+";",r,n,p-1):Ze(le(E," ","")+";",r,n,p-2),l);break;case 59:E+=";";default:if(me(O=qe(E,t,n,u,c,o,s,y,S=[],w=[],p),i),123===b)if(0===c)Xe(E,t,O,O,S,i,p,s,w);else switch(d){case 100:case 109:case 115:Xe(e,O,O,r&&me(qe(e,O,O,0,0,o,s,y,o,S=[],p),w),o,w,p,s,r?S:w);break;default:Xe(E,O,O,O,[""],w,0,s,w)}}u=c=f=0,g=v=1,y=E="",p=a;break;case 58:p=1+de(E),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ee())continue;switch(E+=ie(b),b*g){case 38:v=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(de(E)-1)*v,v=1;break;case 64:45===xe()&&(E+=Ve(Ce())),d=xe(),c=p=de(y=E+=Le(ke())),b++;break;case 45:45===m&&2==de(E)&&(g=0)}}return i}function qe(e,t,n,r,o,i,a,s,l,u,c){for(var p=o-1,d=0===o?i:[""],f=fe(d),m=0,g=0,h=0;m<r;++m)for(var v=0,b=pe(e,p+1,p=oe(g=a[m])),y=e;v<f;++v)(y=se(g>0?d[v]+" "+b:le(b,/&\f/g,d[v])))&&(l[h++]=y);return we(e,t,n,0===o?je:s,l,u,c)}function Ke(e,t,n){return we(e,t,n,He,ie(ye),pe(e,2,-2),0)}function Ze(e,t,n,r){return we(e,t,n,Ue,pe(e,0,r),pe(e,r+1,-1),r)}var Je=function(e,t,n){for(var r=0,o=0;r=o,o=xe(),38===r&&12===o&&(t[n]=1),!Ie(o);)Ce();return Pe(e,be)},Qe=new WeakMap,et=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)||Qe.get(n))&&!r){Qe.set(e,!0);for(var o=[],i=function(e,t){return _e(function(e,t){var n=-1,r=44;do{switch(Ie(r)){case 0:38===r&&12===xe()&&(t[n]=1),e[n]+=Je(be-1,t,n);break;case 2:e[n]+=Ve(r);break;case 4:if(44===r){e[++n]=58===xe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ie(r)}}while(r=Ce());return e}(Me(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},tt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},nt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ue:e.return=We(e.value,e.length);break;case Be:return ze([Oe(e,{value:le(e.value,"@","@"+$e)})],r);case je:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ze([Oe(e,{props:[le(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ze([Oe(e,{props:[le(t,/:(plac\w+)/,":-webkit-input-$1")]}),Oe(e,{props:[le(t,/:(plac\w+)/,":-moz-$1")]}),Oe(e,{props:[le(t,/:(plac\w+)/,Ae+"input-$1")]})],r)}return""}))}}];const rt=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,i=e.stylisPlugins||nt,a={},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++)a[t[n]]=!0;s.push(e)}));var l,u,c,p,d=[Ge,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(u=[et,tt].concat(i,d),c=fe(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,ze(Ye(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new re({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m};function ot(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var it=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},at=function(e,t,n){it(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)}};const st=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)},lt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ut=/[A-Z]|^ms/g,ct=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pt=function(e){return 45===e.charCodeAt(1)},dt=function(e){return null!=e&&"boolean"!=typeof e},ft=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=pt(n=e)?n:n.replace(ut,"-$&").toLowerCase()),t[e];var n}}(),mt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ct,(function(e,t,n){return ht={name:t,styles:n,next:ht},t}))}return 1===lt[e]||pt(e)||"number"!=typeof t||0===t?t:t+"px"};function gt(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ht={name:n.name,styles:n.styles,next:ht},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ht={name:r.name,styles:r.styles,next:ht},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":dt(a)&&(r+=ft(i)+":"+mt(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=gt(e,t,a);switch(i){case"animation":case"animationName":r+=ft(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)dt(a[l])&&(r+=ft(i)+":"+mt(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ht,i=n(e);return ht=o,gt(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ht,vt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ht=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=gt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=gt(n,t,e[a]),r&&(o+=i[a]);vt.lastIndex=0;for(var s,l="";null!==(s=vt.exec(o));)l+="-"+s[1];return{name:st(o)+l,styles:o,next:ht}},yt={}.hasOwnProperty,St=(0,ne.createContext)("undefined"!=typeof HTMLElement?rt({key:"css"}):null),wt=(St.Provider,function(e){return(0,ne.forwardRef)((function(t,n){var r=(0,ne.useContext)(St);return e(t,r,n)}))}),Ot=(0,ne.createContext)({}),Et=ne.useInsertionEffect?ne.useInsertionEffect:function(e){e()};function Ct(e){Et(e)}var xt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kt=function(e,t){var n={};for(var r in t)yt.call(t,r)&&(n[r]=t[r]);return n[xt]=e,n},Pt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return it(t,n,r),Ct((function(){return at(t,n,r)})),null},It=wt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[xt],i=[r],a="";"string"==typeof e.className?a=ot(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=bt(i,void 0,(0,ne.useContext)(Ot));a+=t.key+"-"+s.name;var l={};for(var u in e)yt.call(e,u)&&"css"!==u&&u!==xt&&(l[u]=e[u]);return l.ref=n,l.className=a,(0,ne.createElement)(ne.Fragment,null,(0,ne.createElement)(Pt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,ne.createElement)(o,l))}));n(8679);var Mt=function(e,t){var n=arguments;if(null==t||!yt.call(t,"css"))return ne.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=It,o[1]=kt(e,t);for(var i=2;i<r;i++)o[i]=n[i];return ne.createElement.apply(null,o)};function _t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bt(t)}ne.useInsertionEffect?ne.useInsertionEffect:ne.useLayoutEffect;var Vt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Tt(e,t,n){var r=[],o=ot(e,r,n);return r.length<2?n:o+t(r)}var Dt=function(e){var t=e.cache,n=e.serializedArr;return Ct((function(){for(var e=0;e<n.length;e++)at(t,n[e],!1)})),null},Ft=wt((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=bt(r,t.registered);return n.push(i),it(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Tt(t.registered,r,Vt(n))},theme:(0,ne.useContext)(Ot)},i=e.children(o);return(0,ne.createElement)(ne.Fragment,null,(0,ne.createElement)(Dt,{cache:t,serializedArr:n}),i)}));function Rt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function At(e,t){if(e){if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(e,t):void 0}}function Nt(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,i=[],_n=!0,a=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,t)||At(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 $t(e){return $t="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},$t(e)}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(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,r.key,r)}}function Ut(e,t,n){return t&&jt(e.prototype,t),n&&jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bt(e,t){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bt(e,t)}function zt(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&&Bt(e,t)}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wt=window.ReactDOM;function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(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 qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Zt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zt(this,n)}}var Qt=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],en=function(){};function tn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function nn(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(tn(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var rn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$t(e)&&null!==e?[e]:[];var t},on=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,qt({},Rt(e,Qt))};function an(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function sn(e){return an(e)?window.pageYOffset:e.scrollTop}function ln(e,t){an(e)?window.scrollTo(0,t):e.scrollTop=t}function un(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:en,o=sn(e),i=t-o,a=10,s=0;function l(){var t=un(s+=a,o,i,n);ln(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function pn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var dn=!1,fn={get passive(){return dn=!0}},mn="undefined"!=typeof window?window:{};mn.addEventListener&&mn.removeEventListener&&(mn.addEventListener("p",en,fn),mn.removeEventListener("p",en,!1));var gn=dn;function hn(e){return null!=e}function vn(e,t,n){return e?t:n}function bn(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,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,p=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,m=d.height,g=d.top,h=n.offsetParent.getBoundingClientRect().top,v=a||an(c=l)?window.innerHeight:c.clientHeight,b=sn(l),y=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),w=h-S,O=v-g,E=w+b,C=p-b-g,x=f-v+b+y,k=b+g-S,P=160;switch(o){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(C>=m&&!a)return i&&cn(l,x,P),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&O>=r)return i&&cn(l,x,P),{placement:"bottom",maxHeight:a?O-y:C-y};if("auto"===o||a){var I=t,M=a?w:E;return M>=r&&(I=Math.min(M-y-s.controlHeight,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return i&&ln(l,x),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(E>=m&&!a)return i&&cn(l,k,P),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var _=t;return(!a&&E>=r||a&&w>=r)&&(_=a?w-S:E-S),i&&cn(l,k,P),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var yn=function(e){return"auto"===e?"bottom":e},Sn=(0,ne.createContext)({getPortalPlacement:null}),wn=function(e){zt(n,e);var t=Jt(n);function n(){var e;Ht(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=bn({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||yn(t);return qt(qt({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Ut(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(ne.Component);wn.contextType=Sn;var On=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},En=On,Cn=On,xn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Mt("div",te({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};xn.defaultProps={children:"No options"};var kn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Mt("div",te({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};kn.defaultProps={children:"Loading..."};var Pn,In,Mn,Vn=function(e){zt(n,e);var t=Jt(n);function n(){var e;Ht(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==yn(e.props.menuPlacement)&&e.setState({placement:n})},e}return Ut(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,a=e.innerProps,s=e.menuPlacement,l=e.menuPosition,u=e.getStyles,c="fixed"===l;if(!t&&!c||!o)return null;var p=this.state.placement||yn(s),d=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),f=c?0:window.pageYOffset,m=d[p]+f,g=Mt("div",te({css:u("menuPortal",{offset:m,position:l,rect:d}),className:i({"menu-portal":!0},r)},a),n);return Mt(Sn.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Wt.createPortal)(g,t):g)}}]),n}(ne.Component),Tn=["size"],Dn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Fn=function(e){var t=e.size,n=Rt(e,Tn);return Mt("svg",te({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Dn},n))},Rn=function(e){return Mt(Fn,te({size:20},e),Mt("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"}))},Ln=function(e){return Mt(Fn,te({size:20},e),Mt("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"}))},An=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Nn=An,$n=An,Hn=function(){var e=_t.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_"}}}(Pn||(In=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Mn||(Mn=In.slice(0)),Pn=Object.freeze(Object.defineProperties(In,{raw:{value:Object.freeze(Mn)}})))),jn=function(e){var t=e.delay,n=e.offset;return Mt("span",{css:_t({animation:"".concat(Hn," 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"},"","")})},Un=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return Mt("div",te({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Mt(jn,{delay:0,offset:i}),Mt(jn,{delay:160,offset:!0}),Mt(jn,{delay:320,offset:!i}))};Un.defaultProps={size:4};var Bn=["data"],zn=["innerRef","isDisabled","isHidden","inputClassName"],Gn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Wn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":qt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gn)},Yn=function(e){return qt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Gn)},Xn=function(e){var t=e.children,n=e.innerProps;return Mt("div",n,t)},qn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Mt("div",te({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||Mt(Rn,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Mt("div",te({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Mt("div",te({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||Mt(Ln,null))},DownChevron:Ln,CrossIcon:Rn,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return Mt("div",te({css:o("group",e),className:r({group:!0},n)},s),Mt(i,te({},a,{selectProps:c,theme:u,getStyles:o,cx:r}),l),Mt("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=on(e);o.data;var i=Rt(o,Bn);return Mt("div",te({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return Mt("div",te({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Mt("span",te({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.value,i=on(e),a=i.innerRef,s=i.isDisabled,l=i.isHidden,u=i.inputClassName,c=Rt(i,zn);return Mt("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":o||""},Mt("input",te({className:n({input:!0},u),ref:a,style:Yn(l),disabled:s},c)))},LoadingIndicator:Un,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return Mt("div",te({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return Mt("div",te({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:Vn,LoadingMessage:kn,NoOptionsMessage:xn,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=r.Container,d=r.Label,f=r.Remove;return Mt(Ft,null,(function(r){var m=r.css,g=r.cx;return Mt(p,{data:i,innerProps:qt({className:g(m(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:c},Mt(d,{data:i,innerProps:{className:g(m(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Mt(f,{data:i,innerProps:qt({className:g(m(a("multiValueRemove",e)),o({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},u),selectProps:c}))}))},MultiValueContainer:Xn,MultiValueLabel:Xn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Mt("div",te({role:"button"},n),t||Mt(Rn,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return Mt("div",te({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l,"aria-disabled":i},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Mt("div",te({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return Mt("div",te({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return Mt("div",te({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return Mt("div",te({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}},Kn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zn(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||At(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 Jn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Qn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Jn(r)&&Jn(o)))return!1;var r,o;return!0}for(var er={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"},tr=function(e){return Mt("span",te({css:er},e))},nr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",p="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},rr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,u=s.ariaLiveMessages,c=s.getOptionLabel,p=s.inputValue,d=s.isMulti,f=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,h=s.options,v=s.screenReaderStatus,b=s.tabSelectsValue,y=s["aria-label"],S=s["aria-live"],w=(0,ne.useMemo)((function(){return qt(qt({},nr),u||{})}),[u]),O=(0,ne.useMemo)((function(){var e,n="";if(t&&w.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,u=i||r||(e=l,Array.isArray(e)?null:e),p=u?c(u):"",d=o||s||void 0,m=d?d.map(c):[],g=qt({isDisabled:u&&f(u,a),label:p,labels:m},t);n=w.onChange(g)}return n}),[t,w,f,a,c]),E=(0,ne.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&w.onFocus){var i={focused:t,label:c(t),isDisabled:f(t,a),isSelected:o,options:h,context:t===n?"menu":"value",selectValue:a};e=w.onFocus(i)}return e}),[n,r,c,f,w,h,a]),C=(0,ne.useMemo)((function(){var e="";if(g&&h.length&&w.onFilter){var t=v({count:o.length});e=w.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,w,h,v]),x=(0,ne.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":g?"menu":"input";e=w.guidance({"aria-label":y,context:t,isDisabled:n&&f(n,a),isMulti:d,isSearchable:m,tabSelectsValue:b})}return e}),[y,n,r,d,f,m,g,w,a,b]),k="".concat(E," ").concat(C," ").concat(x),P=Mt(ne.Fragment,null,Mt("span",{id:"aria-selection"},O),Mt("span",{id:"aria-context"},k)),I="initial-input-focus"===(null==t?void 0:t.action);return Mt(ne.Fragment,null,Mt(tr,{id:l},I&&P),Mt(tr,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},i&&!I&&P))},or=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ir=new RegExp("["+or.map((function(e){return e.letters})).join("")+"]","g"),ar={},sr=0;sr<or.length;sr++)for(var lr=or[sr],ur=0;ur<lr.letters.length;ur++)ar[lr.letters[ur]]=lr.base;var cr=function(e){return e.replace(ir,(function(e){return ar[e]}))},pr=function(e,t){var n;void 0===t&&(t=Qn);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(cr),dr=function(e){return e.replace(/^\s+|\s+$/g,"")},fr=function(e){return"".concat(e.label," ").concat(e.value)},mr=["innerRef"];function gr(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=Nt(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Nt(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Rt(e,mr),"onExited","in","enter","exit","appear");return Mt("input",te({ref:t},n,{css:_t({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 hr=["boxSizing","height","overflow","paddingRight","position"],vr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function br(e){e.preventDefault()}function yr(e){e.stopPropagation()}function Sr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Or=!("undefined"==typeof window||!window.document||!window.document.createElement),Er=0,Cr={capture:!1,passive:!1},xr=function(){return document.activeElement&&document.activeElement.blur()},kr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,ne.useRef)(!1),s=(0,ne.useRef)(!1),l=(0,ne.useRef)(0),u=(0,ne.useRef)(null),c=(0,ne.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=u.current,m=t>0,g=p-d-c,h=!1;g>t&&a.current&&(r&&r(e),a.current=!1),m&&s.current&&(i&&i(e),s.current=!1),m&&t>g?(n&&!a.current&&n(e),f.scrollTop=p,h=!0,a.current=!0):!m&&-t>c&&(o&&!s.current&&o(e),f.scrollTop=0,h=!0,s.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),p=(0,ne.useCallback)((function(e){c(e,e.deltaY)}),[c]),d=(0,ne.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),f=(0,ne.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)}),[c]),m=(0,ne.useCallback)((function(e){if(e){var t=!!gn&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),g=(0,ne.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,ne.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,ne.useRef)({}),i=(0,ne.useRef)(null),a=(0,ne.useCallback)((function(e){if(Or){var t=document.body,n=t&&t.style;if(r&&hr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Er<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(vr).forEach((function(e){var t=vr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&wr()&&(t.addEventListener("touchmove",br,Cr),e&&(e.addEventListener("touchstart",Sr,Cr),e.addEventListener("touchmove",yr,Cr))),Er+=1}}),[r]),s=(0,ne.useCallback)((function(e){if(Or){var t=document.body,n=t&&t.style;Er=Math.max(Er-1,0),r&&Er<1&&hr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&wr()&&(t.removeEventListener("touchmove",br,Cr),e&&(e.removeEventListener("touchstart",Sr,Cr),e.removeEventListener("touchmove",yr,Cr)))}}),[r]);return(0,ne.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Mt(ne.Fragment,null,n&&Mt("div",{onClick:xr,css:kr}),t((function(e){o(e),i(e)})))}var Ir={clearIndicator:$n,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){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Nn,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return qt({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Wn)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Cn,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Gt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Gt(t,"backgroundColor",a.neutral0),Gt(t,"borderRadius",o),Gt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Gt(t,"marginBottom",i.menuGutter),Gt(t,"marginTop",i.menuGutter),Gt(t,"position","absolute"),Gt(t,"width","100%"),Gt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:En,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Mr={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}},_r={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:pn(),captureMenuScroll:!pn(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=qt({ignoreCase:!0,ignoreAccents:!0,stringify:fr,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?dr(t):t,u=a?dr(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=pr(l),u=cr(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};function Vr(e,t,n,r){return{type:"option",data:t,isDisabled:Ar(e,t,n),isSelected:Nr(e,t,n),label:Rr(e,t),value:Lr(e,t),index:r}}function Tr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Vr(e,n,t,r)})).filter((function(t){return Fr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Vr(e,n,t,r);return Fr(e,i)?i:void 0})).filter(hn)}function Dr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Fr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Hr(e)||!i)&&$r(e,{label:a,value:s,data:o},r)}var Rr=function(e,t){return e.getOptionLabel(t)},Lr=function(e,t){return e.getOptionValue(t)};function Ar(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Nr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Lr(e,t);return n.some((function(t){return Lr(e,t)===r}))}function $r(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Hr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},jr=1,Ur=function(e){zt(n,e);var t=Jt(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(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,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),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,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.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:i});o?r.setValue([].concat(Zn(a),[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),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=vn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(vn(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),i=vn(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},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 nn.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Rr(r.props,e)},r.getOptionValue=function(e){return Lr(r.props,e)},r.getStyles=function(e,t){var n=Ir[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,qt(qt({},qn),e.components);var e},r.buildCategorizedOptions=function(){return Tr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Dr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:qt({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&&an(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),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>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){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Hr(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!m||d&&r.isOptionSelected(m,h))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!m)return;r.selectOption(m);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.instancePrefix="react-select-"+(r.props.instanceId||++jr),r.state.selectValue=rn(e.value),r}return Ut(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()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?ln(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&ln(t,Math.max(n.offsetTop-i,0)),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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Mr):qt(qt({},Mr),this.props.theme):Mr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:a,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 Ar(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Nr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return $r(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,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=this.getComponents().Input,u=this.state,c=u.inputIsHidden,p=u.ariaSelection,d=this.commonProps,f=r||this.getElementId("input"),m=qt(qt(qt({"aria-autocomplete":"list","aria-expanded":s,"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"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?ne.createElement(l,te({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):ne.createElement(gr,te({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:en,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,p=u.isDisabled,d=u.isMulti,f=u.inputValue,m=u.placeholder,g=this.state,h=g.selectValue,v=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!c)return f?null:ne.createElement(s,te({},l,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return h.map((function(t,a){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return ne.createElement(n,te({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:u,index:a,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(f)return null;var y=h[0];return ne.createElement(a,te({},l,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(e,te({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?ne.createElement(e,te({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return ne.createElement(n,te({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(e,te({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,m=d.inputValue,g=d.isLoading,h=d.loadingMessage,v=d.minMenuHeight,b=d.maxMenuHeight,y=d.menuIsOpen,S=d.menuPlacement,w=d.menuPosition,O=d.menuPortalTarget,E=d.menuShouldBlockScroll,C=d.menuShouldScrollIntoView,x=d.noOptionsMessage,k=d.onMenuScrollToTop,P=d.onMenuScrollToBottom;if(!y)return null;var I,M=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,d=p===o,f=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),h={id:g,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1};return ne.createElement(u,te({},c,{innerProps:h,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return ne.createElement(n,te({},c,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(g){var _=h({inputValue:m});if(null===_)return null;I=ne.createElement(s,c,_)}else{var V=x({inputValue:m});if(null===V)return null;I=ne.createElement(l,c,V)}var T={minMenuHeight:v,maxMenuHeight:b,menuPlacement:S,menuPosition:w,menuShouldScrollIntoView:C},D=ne.createElement(wn,te({},c,T),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return ne.createElement(o,te({},c,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:a}),ne.createElement(Pr,{captureEnabled:f,onTopArrive:k,onBottomArrive:P,lockEnabled:E},(function(t){return ne.createElement(i,te({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:s,focusedOption:p}),I)})))}));return O||"fixed"===w?ne.createElement(a,te({},c,{appendTo:O,controlElement:this.controlRef,menuPlacement:S,menuPosition:w}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return ne.createElement("input",{name:i,type:"hidden",value:s})}var l=a.length>0?a.map((function(t,n){return ne.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):ne.createElement("input",{name:i,type:"hidden"});return ne.createElement("div",null,l)}var u=a[0]?this.getOptionValue(a[0]):"";return ne.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return ne.createElement(rr,te({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused,p=this.commonProps=this.getCommonProps();return ne.createElement(r,te({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),ne.createElement(t,te({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),ne.createElement(o,te({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),ne.createElement(n,te({},p,{isDisabled:l}),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,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,u=e.value,c=e.menuIsOpen,p=e.inputValue,d=e.isMulti,f=rn(u),m={};if(n&&(u!==n.value||l!==n.options||c!==n.menuIsOpen||p!==n.inputValue)){var g=c?function(e,t){return Dr(Tr(e,t))}(e,f):[],h=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,f):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:v,focusedValue:h,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=i,S=a&&s;return a&&!S&&(y={value:vn(d,f,f[0]||null),options:f,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),qt(qt(qt({},m),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:S})}}]),n}(ne.Component);Ur.defaultProps=_r;var Br=(0,ne.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,p=e.onMenuClose,d=e.onMenuOpen,f=e.value,m=Rt(e,Kn),g=Nt((0,ne.useState)(void 0!==s?s:n),2),h=g[0],v=g[1],b=Nt((0,ne.useState)(void 0!==l?l:o),2),y=b[0],S=b[1],w=Nt((0,ne.useState)(void 0!==f?f:a),2),O=w[0],E=w[1],C=(0,ne.useCallback)((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),x=(0,ne.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),k=(0,ne.useCallback)((function(){"function"==typeof d&&d(),S(!0)}),[d]),P=(0,ne.useCallback)((function(){"function"==typeof p&&p(),S(!1)}),[p]),I=void 0!==s?s:h,M=void 0!==l?l:y,_=void 0!==f?f:O;return qt(qt({},m),{},{inputValue:I,menuIsOpen:M,onChange:C,onInputChange:x,onMenuClose:P,onMenuOpen:k,value:_})}(e);return ne.createElement(Ur,te({ref:t},n))}));ne.Component;const zr=Br,{pluginMainFunctionPrefix:Gr}={pluginMainSlug:"gutenify",pluginMainCamelCaseName:"gutenify",pluginMainFunctionPrefix:"gutenify"},Wr=e=>{var t,n;let{value:r="",onChange:o,fontFamilies:a,isMulti:s=!1}=e,l=[];null!==(t=window[`_${Gr}_vars`])&&void 0!==t&&t.font_families&&(l=[...l,...window[`_${Gr}_vars`].font_families]),a||(a=l);let u=[],c={};return null!==(n=window[`_${Gr}_vars`])&&void 0!==n&&n.font_families&&(u=window[`_${Gr}_vars`].font_families.map((e=>(c=r===e.slug?{value:e.slug,label:e.name}:c,{value:e.slug,label:e.name})))),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(zr,{options:u,value:s?r:c,onChange:e=>{o(s?e:e.value)},isMulti:s}))},Yr="gutenify/settings";(0,c.addFilter)("gutenify-admin-settings-design-panel","gutenify-admin-settings-design-panel-typography",((e,t)=>{var n,r;const{updateSiteOptions:o}=(0,d.useDispatch)(Yr),a=(0,d.useSelect)((e=>e(Yr).getSiteOptions()),[]),{siteOptions:s}=t,c=null!=a&&a.styles?a.styles:{},p=!(null==s||null===(n=s.settings)||void 0===n||null===(r=n.styles)||void 0===r||!r.siteFonts)&&s.settings.styles.siteFonts;return[...e,(0,i.createElement)(i.Fragment,{key:"gutenify-admin-settings-design-panel-typography"},(0,i.createElement)(l.PanelBody,{title:(0,u.__)("Typography"),initialOpen:"general"===t.activePanel},(0,i.createElement)("div",{className:"gutenify-field-wrapper gutenify-field-grid"},(0,i.createElement)("div",{className:"gutenify-field-label"},(0,i.createElement)("label",{htmlFor:"text-color-control"},(0,u.__)("Site Fonts"))),(0,i.createElement)("div",{className:"gutenify-field-control"},(0,i.createElement)(Wr,{label:"",value:p,onChange:e=>{var t;t={...{...c,siteFonts:[...e]}},o({...s,settings:{...s.settings,styles:{...s.settings.styles,...t}}})},isMulti:!0}),(0,i.createElement)("p",{className:"description"},(0,u.__)("Select the fonts to be loaded in site."),(0,i.createElement)("em",null," ",(0,i.createElement)("small",null,(0,u.__)("(Loading multiple fonts might affect site speed.)"))))))))]}));const Xr=e=>{document.addEventListener("copy",(function t(n){n.clipboardData.setData("text/plain",JSON.stringify(e)),n.preventDefault(),document.removeEventListener("copy",t,!0)}),!0),document.execCommand("copy")},qr=(0,p.compose)((0,d.withDispatch)(((e,t)=>{const{changeSiteOptions:n,styleId:r,siteOptions:o}=t;return{updateSiteOptions:e=>{o.coreSettings;const t=o.settings;A()({path:"/gutenify/v1/update_site_options",method:"POST",data:{styles:{...t.styles}}}).then((e=>{console.log(e)})).catch((e=>{}));const n=o.coreSettings.styles,r=o.settings.styles,i=ee(n,r),a=ee(n,r,!0);A()({path:"/gutenify/v1/update_global_styles",method:"POST",data:{css:i,adminCss:a}}).then((e=>{})).catch((e=>{console.log(e)}))},resetSiteOptions:e=>{A()({path:`/wp/v2/global-styles/${r}`,method:"POST",data:{styles:{}}}).then((()=>{n((0,g.merge)(o,{coreSettings:{styles:{}}}))})).catch((e=>{console.log(e)})),A()({path:"/gutenify/v1/update_site_options",method:"POST",data:{styles:{}}}).then((()=>{n((0,g.merge)(o,{settings:{styles:{}}}))})).catch((e=>{console.log(e)})),A()({path:"/gutenify/v1/update_global_styles",method:"POST",data:{css:"",adminCss:""}}).then((e=>{console.log(e)})).catch((e=>{console.log(e)}))}}})))((e=>{const{styleId:t,gStyle:n,changeSiteOptions:r,siteOptions:o,updateSiteOptions:a,resetSiteOptions:s}=e;(0,i.useEffect)((()=>{t&&n&&A()({path:`/wp/v2/global-styles/${t}`,method:"get"}).then((e=>{r((0,g.merge)(o,{coreSettings:{styles:(0,g.merge)(n.styles,e.styles),settings:(0,g.merge)(n.settings,e.settings)}}))}))}),[t,n]);const{createSuccessNotice:p}=(0,d.useDispatch)(J.store),{removeNotice:f}=(0,d.useDispatch)(J.store),m=(0,d.useSelect)((e=>e(J.store).getNotices()),[]),h=(0,g.filter)(m,{type:"snackbar"});return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(i.Fragment,{key:"gutenify-admin-settings-panel"},(0,i.createElement)(l.Panel,{className:"gutenify-setting-panel-toolbar-area"},(0,i.createElement)(l.PanelRow,null,(0,i.createElement)("div",null),(0,i.createElement)("div",null,(0,i.createElement)(l.DropdownMenu,{icon:"ellipsis",label:"Select a direction",controls:[{title:"Copy core Options",icon:"admin-page",onClick:()=>{Xr(e.siteOptions.coreSettings),p((0,u.__)("Core Settings copied."),{type:"snackbar"})}},{title:"Copy Gutenify Options",icon:"admin-page",onClick:()=>{Xr(e.siteOptions.settings),p((0,u.__)("Gutenify Settings copied."),{type:"snackbar"})}}]})))),(0,i.createElement)(l.Panel,{header:(0,u.__)("")},(0,c.applyFilters)("gutenify-admin-settings-design-panel",[],e)),(0,i.createElement)(l.Panel,{className:"gutenify-setting-panel-toolbar-area"},(0,i.createElement)(l.PanelRow,null,(0,i.createElement)(l.Button,{variant:"secondary",onClick:()=>{if(!window.confirm("Are you sure to reset design settings?"))return!1;s()}},"Reset"),(0,i.createElement)("div",null,(0,i.createElement)(l.Button,{variant:"primary",onClick:()=>{a(o),p((0,u.__)("Settings saved."),{type:"snackbar"})}},"Save"))))),(0,i.createElement)(l.SnackbarList,{notices:h,className:"edit-navigation-notices__snackbar-list",onRemove:f}))}));(0,c.addFilter)("gutenify-admin-settings","gutenify/admin/settings/heading",((e,t)=>[...e,(0,i.createElement)(i.Fragment,{key:"gutenify-admin-settings-heading"},(0,i.createElement)("h1",null,(0,u.__)("Gutenify Settings")),(0,i.createElement)("p",{className:"description"},(0,u.__)("If you need any help please contact us from our ")," ",(0,i.createElement)("a",{href:I,target:"_blank",rel:"noreferrer"},"support page.")),!b&&(0,i.createElement)(l.Card,{className:"gutenify-template-kit-browser-pro-notice"},(0,i.createElement)(l.CardBody,null,(0,i.RawHTML)({children:R}))),(0,i.createElement)(l.TabPanel,{className:"gutenify-setting-tab-panel",activeClass:"active-tab",initialTabName:"general",tabs:[{name:"general",title:(0,u.__)("General"),className:"tab-one"},{name:"design",title:(0,u.__)("Design"),className:"tab-two"}]},(e=>(0,i.createElement)(i.Fragment,null,"general"===e.name&&(0,i.createElement)(Z,t),"design"===e.name&&(0,i.createElement)(qr,t)))))])),(0,c.addFilter)("gutenify-admin-settings","gutenify/admin/settings/notice",((e,t)=>[...e,(0,i.createElement)("div",{className:"gutenify-setting-panel-notice-area",key:"gutenify-admin-settings-notice"},!(0,g.isEmpty)(t.appState.settingError)&&""!==t.appState.settingError&&(0,i.createElement)(l.Notice,{status:"error",onRemove:()=>{t.setAppState((e=>({...e,settingError:""})))}},t.appState.settingError),!(0,g.isEmpty)(t.appState.settingSuccess)&&""!==t.appState.settingSuccess&&(0,i.createElement)(l.Notice,{status:"success",onRemove:()=>{t.setAppState((e=>({...e,settingSuccess:""})))}},t.appState.settingSuccess))]));const Kr=(0,p.compose)((0,d.withSelect)((e=>{const{getSettings:t,getSiteOptions:n}=e("gutenify/settings"),r=n(),o=e(m.store);return{styleId:o.__experimentalGetCurrentGlobalStylesId(),gStyle:o.__experimentalGetCurrentThemeBaseGlobalStyles(),settings:t(),siteOptions:r}})),(0,d.withDispatch)((e=>{const{setSettings:t,updateSiteOptions:n}=e("gutenify/settings");return{setSettings:t,updateSiteOptions:n}})))((e=>{const[t,n]=(0,i.useState)({hasSettingChange:!1,isSettingsDisabled:!1,settingError:"",settingSuccess:""}),r=(0,f.getFragment)(window.location.href),o=(0,g.replace)(r,"#","");return(0,i.createElement)(l.Disabled,{isDisabled:t.isSettingsDisabled},(0,c.applyFilters)("gutenify-admin-settings",[],{...e,setAppState:n,appState:t,updateSettings:t=>{n((e=>({...e,hasSettingChange:!0}))),e.setSettings(t)},activePanel:o,changeSiteOptions:t=>{e.updateSiteOptions(t)}}))}));s()((function(){const e="gutenify-settings-app";void 0!==document.getElementById(e)&&null!==document.getElementById(e)&&(i.createRoot?(0,i.createRoot)(document.getElementById(e)).render((0,i.createElement)(Kr,null)):(0,i.render)((0,i.createElement)(Kr,null),document.getElementById(e)))}))})()})();