whoami7 - Manager
:
/
home
/
analuakl
/
somethingsmushy.com
/
wp-content
/
plugins
/
user-registration
/
chunks
/
Upload File:
files >> /home/analuakl/somethingsmushy.com/wp-content/plugins/user-registration/chunks/dashboard.js
(()=>{var e,t,r,n,o={1(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(5482),o=r(1609),i=r(1270),a=r(5917),s=o.forwardRef(function(e,t){return o.createElement(i.G,(0,n.Cl)({},e,{ref:t,sideCar:a.A}))});s.classNames=i.G.classNames;const l=s},174(e,t,r){"use strict";function n(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}r.d(t,{o:()=>n})},354(e,t,r){"use strict";r.d(t,{B:()=>d});var n=r(444),o=r(3520),i=r(9049),a=r(1269),s=r(6691),l=r(4403),c=r(1609),u=r(790),d=(0,l.R)((e,t)=>{const{isInline:r,direction:l,align:d,justify:p,spacing:f="0.5rem",wrap:m,children:h,divider:g,className:v,shouldWrapChildren:b,...y}=e,x=r?"row":null!=l?l:"column",w=(0,c.useMemo)(()=>(0,o.s)({spacing:f,direction:x}),[f,x]),_=!!g,C=!b&&!_,S=(0,c.useMemo)(()=>{const e=(0,i.a)(h);return C?e:e.map((t,r)=>{const o=void 0!==t.key?t.key:r,i=r+1===e.length,a=(0,u.jsx)(n.a,{children:t},o),s=b?a:t;if(!_)return s;const l=(0,c.cloneElement)(g,{__css:w}),d=i?null:l;return(0,u.jsxs)(c.Fragment,{children:[s,d]},o)})},[g,w,_,C,b,h]),j=(0,a.cx)("chakra-stack",v);return(0,u.jsx)(s.B.div,{ref:t,display:"flex",alignItems:d,justifyContent:p,flexDirection:x,flexWrap:m,gap:_?void 0:f,className:j,...y,children:S})});d.displayName="Stack"},368(e,t,r){"use strict";r.d(t,{A:()=>Pn});var n=r(1609),o=r.t(n,2),i=r(9576),a=r(7723),s=r(1455),l=r.n(s);const{urRestApiNonce:c}="undefined"!=typeof _URCR_DASHBOARD_&&_URCR_DASHBOARD_,u="user-registration/v1/",d={rules:u+"content-access-rules",getRule:e=>u+`content-access-rules/${e}`,createRule:u+"content-access-rules",toggleStatus:e=>u+`content-access-rules/${e}/toggle-status`,updateRule:e=>u+`content-access-rules/${e}`,duplicateRule:e=>u+`content-access-rules/${e}/duplicate`,deleteRule:e=>u+`content-access-rules/${e}`},p=()=>"undefined"==typeof window?null:void 0!==window.urcr_localized_data?window.urcr_localized_data:null,f=(e,t=null)=>{const r=p();return r&&void 0!==r[e]?r[e]:t},m=()=>{const e=f("is_pro",!1);return!0===e||"1"===e||1===e},h=()=>{const e=f("is_drip_content",!1);return!0===e||"1"===e||1===e},g=()=>{const e=f("is_masteriyo",!1);return!0===e||"1"===e||1===e},v=()=>{const e=f("UR_DEV",!1);return!0===e||"1"===e||1===e};let b=null;const y=(e,t="info",r=5e3)=>{const n=`urcr-toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,o=(b||(b=document.createElement("div"),b.className="urcr-toast-container",document.body.appendChild(b)),b),i=document.createElement("div");i.id=n,i.className=`urcr-toast urcr-toast--${t}`;let a="";a="success"===t?'<span class="dashicons dashicons-yes-alt"></span>':"error"===t?'<span class="dashicons dashicons-warning"></span>':'<span class="dashicons dashicons-info"></span>',i.innerHTML=`\n\t\t<div class="urcr-toast__icon">${a}</div>\n\t\t<div class="urcr-toast__message">${e}</div>\n\t\t<button type="button" class="urcr-toast__close" aria-label="Dismiss">\n\t\t\t<span class="dashicons dashicons-no-alt"></span>\n\t\t</button>\n\t`,o.appendChild(i),requestAnimationFrame(()=>{i.classList.add("urcr-toast--show")});const s=i.querySelector(".urcr-toast__close");return s&&s.addEventListener("click",()=>{x(i)}),r>0&&setTimeout(()=>{x(i)},r),i},x=e=>{e&&e.parentNode&&(e.classList.remove("urcr-toast--show"),e.classList.add("urcr-toast--hide"),setTimeout(()=>{e.parentNode&&e.remove(),b&&0===b.children.length&&(b.remove(),b=null)},300))},w=(e,t=3e3)=>y(e,"success",t),_=(e,t=5e3)=>y(e,"error",t);var C=r(790);const S=({isOpen:e,onClose:t,title:r,icon:o,children:i,footer:a,onKeyDown:s,className:l=""})=>((0,n.useEffect)(()=>{if(e){document.body.style.overflow="hidden";const e=document.querySelector(".urcr-modal");e&&e.focus()}else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[e]),(0,n.useEffect)(()=>{const r=r=>{"Escape"===r.key&&e&&t()};return e&&document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[e,t]),e?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"urcr-modal-backdrop",onClick:e=>{e.target===e.currentTarget&&t()}}),(0,C.jsx)("div",{className:`urcr-modal ${l}`,role:"dialog","aria-modal":"true","aria-labelledby":"urcr-modal-title",tabIndex:-1,onKeyDown:s,children:(0,C.jsxs)("div",{className:"urcr-modal-content",children:[r&&(0,C.jsxs)("div",{className:"urcr-modal-header",children:[o&&(0,C.jsx)("span",{className:`dashicons ${o}`}),(0,C.jsx)("h2",{id:"urcr-modal-title",children:r})]}),i&&(0,C.jsx)("div",{className:"urcr-modal-body",children:i}),a&&(0,C.jsx)("div",{className:"urcr-modal-footer",children:a})]})})]}):null),j=({isOpen:e,onClose:t,rule:r,onDeleteSuccess:o})=>{const[i,s]=(0,n.useState)(!1),u=async()=>{if(r&&r.id){s(!0);try{const e=await((e,t=!1)=>l()({path:d.deleteRule(e)+(t?"?force=true":""),method:"DELETE",headers:{"X-WP-Nonce":c}}).then(e=>e))(r.id,!0);e.success?(w(e.message||(0,a.__)("Rule deleted successfully","user-registration")),t(),o&&o()):_(e.message||(0,a.__)("Failed to delete rule","user-registration"))}catch(e){_(e.message||(0,a.__)("An error occurred","user-registration"))}finally{s(!1)}}},p=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{type:"button",className:"button urcr-modal-cancel",onClick:t,disabled:i,children:(0,a.__)("Cancel","user-registration")}),(0,C.jsx)("button",{type:"button",className:"button button-primary urcr-modal-delete",onClick:u,disabled:i,children:i?(0,a.__)("Deleting...","user-registration"):(0,a.__)("Delete","user-registration")})]});return(0,C.jsx)(S,{isOpen:e,onClose:t,title:(0,a.__)("Delete Content Rule","user-registration"),icon:"dashicons-trash",footer:p,onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(e.preventDefault(),u())},className:"urcr-modal--delete",children:(0,C.jsx)("p",{className:"urcr-modal-message",children:(0,a.__)("Are you sure you want to delete this rule permanently?","user-registration")})})},k=({isOpen:e,onClose:t,rule:r,onDuplicateSuccess:o})=>{const[i,s]=(0,n.useState)(!1),u=async()=>{if(r&&r.id){s(!0);try{const n=await(e=r.id,l()({path:d.duplicateRule(e),method:"POST",headers:{"X-WP-Nonce":c}}).then(e=>e));n.success?(w(n.message||(0,a.__)("Rule duplicated successfully","user-registration")),t(),o&&o()):_(n.message||(0,a.__)("Failed to duplicate rule","user-registration"))}catch(e){_(e.message||(0,a.__)("An error occurred","user-registration"))}finally{s(!1)}var e}},p=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{type:"button",className:"button urcr-modal-cancel",onClick:t,disabled:i,children:(0,a.__)("Cancel","user-registration")}),(0,C.jsx)("button",{type:"button",className:"button button-primary urcr-modal-duplicate",onClick:u,disabled:i,children:i?(0,a.__)("Duplicating...","user-registration"):(0,a.__)("Duplicate","user-registration")})]});return(0,C.jsx)(S,{isOpen:e,onClose:t,title:(0,a.__)("Duplicate Content Rule","user-registration"),icon:"dashicons-admin-page",footer:p,onKeyDown:e=>{"Enter"===e.key&&e.ctrlKey&&(e.preventDefault(),u())},className:"urcr-modal--duplicate",children:(0,C.jsx)("p",{className:"urcr-modal-message",children:(0,a.__)("Are you sure you want to duplicate this rule? A copy will be created with the same settings.","user-registration")})})},R=window.wp.element,E=e=>{if(!e||"object"!=typeof e)return!1;if("group"===e.type){if("AND"!==(e.logic_gate||"AND"))return!0;if(Array.isArray(e.conditions))for(const t of e.conditions){if(t&&"group"===t.type)return!0;if(E(t))return!0}}return!1},A=async({rule:e,onRuleUpdate:t,settingsData:r=null,contentData:n=null})=>{try{const o=e.content||e,i=void 0!==r?.isAdvancedLogicEnabled?r.isAdvancedLogicEnabled:void 0!==e.is_advanced_logic_enabled&&Boolean(e.is_advanced_logic_enabled);let s=[];if(r&&r.actionData)s=[r.actionData];else if(e.content&&e.content.actions&&Array.isArray(e.content.actions)&&e.content.actions.length>0?s=e.content.actions:e.actions&&Array.isArray(e.actions)&&e.actions.length>0?s=e.actions:o.actions&&Array.isArray(o.actions)&&o.actions.length>0&&(s=o.actions),s.length>0&&s.some(e=>e.type&&""!==e.type.trim())){const t=n?.accessControl||e.access_control||"access";s=s.map(e=>({...e,access_control:t}))}else{const t=n?.accessControl||e.access_control||"access";s=[{id:`x${Date.now()}`,type:"message",label:(0,a.__)("Show Message","user-registration"),message:"",redirect_url:"",access_control:t,local_page:"",ur_form:"",shortcode:{tag:"",args:""}}]}let u=[];u=n&&n.contentTargets&&Array.isArray(n.contentTargets)?n.contentTargets.map(e=>{let t=e.type;"pages"===t&&(t="wp_pages"),"posts"===t&&(t="wp_posts");const r={id:e.id||`x${Date.now()}`,type:t,drip:e.drip};return"taxonomy"===t?e.value&&"object"==typeof e.value&&e.value.taxonomy?(r.taxonomy=e.value.taxonomy,r.value=Array.isArray(e.value.value)?e.value.value:[]):(r.taxonomy=e.taxonomy||"",r.value=Array.isArray(e.value)?e.value:[]):"whole_site"!==t&&(r.value=Array.isArray(e.value)?e.value:[]),r}):e.target_contents||e.content&&e.content.target_contents||[];let p={};if(n&&n.rootGroup){const t=n.rootGroup.conditions||[];p={type:"group",id:n.rootGroup.id||e.logic_map?.id||`x${Date.now()}`,conditions:t},i&&(p.logic_gate=n.rootGroup.logic_gate||e.logic_map?.logic_gate||"AND")}else p=e.logic_map||e.content&&e.content.logic_map||{type:"group",id:`x${Date.now()}`,conditions:[]};const f=n?.accessControl||r&&r.accessControl||e.access_control||"access",m={enabled:void 0!==e.enabled?e.enabled:void 0===o.enabled||o.enabled,access_control:f,logic_map:p,target_contents:u,actions:s,is_advanced_logic_enabled:i},h={title:e.title||(0,a.__)("Untitled Rule","user-registration"),access_rule_data:m},g=await((e,t)=>l()({path:d.updateRule(e),method:"POST",headers:{"X-WP-Nonce":c},data:t}).then(e=>e))(e.id,h);if(g.success){w(g.message||(0,a.__)("Rule saved successfully","user-registration"));const r={...e,title:h.title,enabled:m.enabled,access_control:f,logic_map:p,target_contents:u,actions:s,is_advanced_logic_enabled:i,content:{...e.content||{},enabled:m.enabled,access_control:f,logic_map:p,target_contents:u,actions:s,is_advanced_logic_enabled:i}};return t&&t(r),g}throw _(g.message||(0,a.__)("Failed to save rule","user-registration")),new Error(g.message||(0,a.__)("Failed to save rule","user-registration"))}catch(e){throw _(e.message||(0,a.__)("An error occurred while saving","user-registration")),e}},O=({isOpen:e,onClose:t})=>{const r=(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("button",{type:"button",className:"button button-primary",onClick:t,children:(0,a.__)("OK","user-registration")})});return(0,C.jsx)(S,{isOpen:e,onClose:t,title:(0,a.__)("Remove Advanced Logic First","user-registration"),icon:"dashicons-warning",footer:r,className:"urcr-modal--warning",children:(0,C.jsx)("p",{className:"urcr-modal-message",children:(0,a.__)("You're currently using OR, NOT, or subgroups for this rule. Please remove these first, then you can disable Advanced Logic. When disabled, only AND will be used for multiple conditions","user-registration")})})},P=({localPage:e,onLocalPageChange:t})=>{const r=f("pages_for_redirect",{}),n=Object.entries(r).map(([e,t])=>({value:e,label:t}));return(0,C.jsxs)("div",{className:"urcr-title-body-pair urcr-rule-action-input-container urcrra-redirect-to-local-page-input-container ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Redirect to a local page","user-registration")})}),(0,C.jsx)("div",{className:"urcr-body",children:(0,C.jsxs)("select",{className:"urcr-input",value:e||"",onChange:e=>t(e.target.value),children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select a page","user-registration")}),n.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]})})]})},T=({editorId:e})=>(0,C.jsxs)("button",{type:"button",className:"button insert-media add_media","data-editor":e,children:[(0,C.jsx)("span",{className:"wp-media-buttons-icon"}),(0,a.__)("Add Media","user-registration")]}),D=({editorId:e,onTagInsert:t})=>{const[r,o]=(0,n.useState)(!1),[i,s]=(0,n.useState)(""),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=f("smart_tags_list",{}),d=f("show_smart_tags_button",!0),p=f("smart_tags_dropdown_title",(0,a.__)("Smart Tags","user-registration")),m=f("smart_tags_dropdown_search_placeholder",(0,a.__)("Search Tags...","user-registration")),h=Object.entries(u).filter(([e,t])=>{const r=i.toLowerCase();return e.toLowerCase().includes(r)||t.toLowerCase().includes(r)});return(0,n.useEffect)(()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&c.current&&!c.current.contains(e.target)&&(o(!1),s(""))};return r&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),d&&0!==Object.keys(u).length?(0,C.jsxs)("div",{id:`urcr-smart-tags-wrapper-${e}`,className:"urcr-smart-tags-button-wrapper",children:[(0,C.jsxs)("button",{ref:c,type:"button",id:`ur-smart-tags-selector-${e}`,className:"urcr-smart-tags-button",onClick:()=>o(!r),children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,C.jsx)("path",{d:"M10 3.33203L14.2 7.53203C14.3492 7.68068 14.4675 7.85731 14.5483 8.05179C14.629 8.24627 14.6706 8.45478 14.6706 8.66536C14.6706 8.87595 14.629 9.08446 14.5483 9.27894C14.4675 9.47342 14.3492 9.65005 14.2 9.7987L11.3333 12.6654",stroke:"#6B6B6B",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,C.jsx)("path",{d:"M6.39132 3.7227C6.14133 3.47263 5.80224 3.33211 5.44865 3.33203H2.00065C1.82384 3.33203 1.65427 3.40227 1.52925 3.52729C1.40422 3.65232 1.33398 3.82189 1.33398 3.9987V7.4467C1.33406 7.80029 1.47459 8.13938 1.72465 8.38937L5.52732 12.192C5.83033 12.4931 6.24015 12.6621 6.66732 12.6621C7.09449 12.6621 7.50431 12.4931 7.80732 12.192L10.194 9.80537C10.4951 9.50236 10.6641 9.09253 10.6641 8.66537C10.6641 8.2382 10.4951 7.82837 10.194 7.52537L6.39132 3.7227Z",stroke:"#6B6B6B",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,C.jsx)("path",{d:"M4.33333 6.66667C4.51743 6.66667 4.66667 6.51743 4.66667 6.33333C4.66667 6.14924 4.51743 6 4.33333 6C4.14924 6 4 6.14924 4 6.33333C4 6.51743 4.14924 6.66667 4.33333 6.66667Z",fill:"#6B6B6B",stroke:"#6B6B6B",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.__)("Add Smart Tags","user-registration")]}),r&&(0,C.jsxs)("div",{ref:l,className:"urcr-smart-tags-dropdown",children:[(0,C.jsx)("div",{className:"urcr-smart-tags-dropdown-title",children:(0,C.jsx)("p",{children:p})}),(0,C.jsxs)("div",{className:"urcr-smart-tags-search",children:[(0,C.jsx)("span",{className:"urcr-smart-tags-search-icon",children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16px",width:"16px",viewBox:"0 0 24 24",fill:"#a1a4b9",children:(0,C.jsx)("path",{d:"M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"})})}),(0,C.jsx)("input",{type:"text",value:i,onChange:e=>s(e.target.value),placeholder:m,autoFocus:!0})]}),(0,C.jsx)("div",{className:"urcr-smart-tags-list",children:h.length>0?h.map(([r,n])=>(0,C.jsx)("button",{type:"button",className:"urcr-smart-tags-item",onClick:()=>(r=>{if(t)t(r);else if("undefined"!=typeof wp&&wp.editor&&window.tinymce){const t=window.tinymce.get(e);t&&(t.execCommand("mceInsertContent",!1,r),t.fire("change"))}o(!1),s("")})(r),children:n},r)):(0,C.jsx)("div",{className:"urcr-smart-tags-empty",children:(0,a.__)("No tags found","user-registration")})})]})]}):null},M=({rule:e,message:t,onMessageChange:r,isMembershipRule:o,isMigratedCustomRule:i,useGlobalMessage:s,onUseGlobalMessageChange:l})=>{const c=(0,n.useRef)(null),u=`urcr-action-message-editor-${e.id}`,d=(0,n.useRef)(!0),p=(0,n.useRef)(!1),m=(0,n.useRef)(!1),h=(0,n.useRef)(r),g=(0,n.useRef)(s),v=(0,n.useRef)(null),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{h.current=r},[r]);const y=!0;return(0,n.useEffect)(()=>{const e=g.current;s&&!e&&(()=>{if("undefined"!=typeof wp&&wp.editor&&window.tinymce){const e=window.tinymce.get(u);if(e)try{const t=e.getContent();b.current=t,h.current&&h.current(t),wp.editor.remove(u),p.current=!1}catch(e){}}})()},[y,s,u]),(0,n.useEffect)(()=>{if(s)return void(g.current=s);const e=g.current,r=!s&&e;if(p.current&&!r)return void(g.current=s);r&&(p.current=!1,m.current=!1),d.current=!0;let n=t;if(r&&(!t||""===t))if(b.current)n=b.current;else{const e=f("membership_default_message","");e&&(n=e,h.current&&h.current(e))}if(null==n)return;const o=(e=0)=>{p.current&&!r&&window.tinymce&&window.tinymce.get(u)||(document.getElementById(u)&&"undefined"!=typeof wp&&wp.editor?(()=>{const e=document.getElementById(u);if(d.current&&"undefined"!=typeof wp&&wp.editor&&e&&!m.current){if(r&&window.tinymce&&window.tinymce.get(u))try{wp.editor.remove(u),p.current=!1,m.current=!1}catch(e){}if(window.tinymce&&window.tinymce.get(u))return p.current=!0,void(m.current=!1);if(!p.current||r){m.current=!0,v.current&&(clearTimeout(v.current),v.current=null),e&&n&&(e.value=n,r&&b.current&&h.current&&h.current(b.current));try{wp.editor.initialize(u,{quicktags:!1,mediaButtons:!0,tinymce:{toolbar1:"undo,redo,formatselect,fontselect,fontsizeselect,bold,italic,forecolor,alignleft,aligncenter,alignright,alignjustify,bullist,numlist,outdent,indent,removeformat",statusbar:!1,plugins:"wordpress,wpautoresize,wplink,wpdialogs,wptextpattern,wpview,colorpicker,textcolor,hr,charmap,link,fullscreen,lists",min_height:200,autoresize_min_height:200,theme_advanced_buttons1:"bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator",theme_advanced_buttons2:"",setup:e=>{n&&e&&e.on("init",()=>{n&&e.getContent()!==n&&e.setContent(n)})},init_instance_callback:e=>{p.current=!0,m.current=!1,g.current=s,d.current&&(n&&e.getContent()!==n&&e.setContent(n),setTimeout(()=>{e&&e.theme&&e.theme.resizeTo&&e.theme.resizeTo(null,200),e.on("change keyup",()=>{if(d.current){const e=wp.editor.getContent(u);h.current&&h.current(e)}})},150))}}})}catch(e){m.current=!1}}else m.current=!1}})():e<3&&(v.current=setTimeout(()=>o(e+1),0===e?100:1===e?300:500)))};return v.current=setTimeout(()=>o(),100),()=>{v.current&&(clearTimeout(v.current),v.current=null),m.current=!1}},[u,e.id,y,s]),(0,n.useEffect)(()=>()=>{d.current=!1,p.current=!1,m.current=!1,setTimeout(()=>{if("undefined"!=typeof wp&&wp.editor&&window.tinymce){const e=window.tinymce.get(u);if(e)try{const t=e.getContent();h.current&&h.current(t),wp.editor.remove(u)}catch(e){}}},200)},[u]),(0,n.useEffect)(()=>{if(void 0!==window.jQuery&&void 0!==window.jQuery.fn.tooltipster){const e=window.jQuery(".user-registration-help-tip");return e.length>0&&(e.each(function(){const e=window.jQuery(this);e.hasClass("tooltipstered")&&e.tooltipster("destroy")}),e.tooltipster({theme:"tooltipster-borderless",maxWidth:300,multiple:!0,interactive:!0,position:"bottom",contentAsHTML:!0,functionInit:function(e,t){const r=window.jQuery(t.origin).attr("data-tip");r&&e.content(r)}})),()=>{e.each(function(){const e=window.jQuery(this);e.hasClass("tooltipstered")&&e.tooltipster("destroy")})}}},[]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"urcr-label-input-pair urcr-rule-action ur-align-items-center ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Restriction Message","user-registration")})}),(0,C.jsx)("div",{className:"urcr-input-container",children:(0,C.jsxs)("div",{className:"urcr-checkbox-radio-group",children:[(0,C.jsxs)("label",{className:"urcr-checkbox-radio-option "+(s?"is-checked":""),children:[(0,C.jsx)("input",{type:"radio",name:`message-type-${e.id}`,value:"global",checked:s,onChange:()=>l(!0),className:"urcr-checkbox-radio-input"}),(0,C.jsxs)("span",{className:"urcr-checkbox-radio-label",children:[(0,a.__)("Use global restriction message","user-registration"),(0,C.jsx)("span",{className:"user-registration-help-tip user-cr-registration-help",style:{marginLeft:"4px"},"data-tip":(()=>{const e=f("content_restriction_settings_url",""),t=e?`<a href="${e}">Content Restriction Settings</a>`:"Content Restriction Settings";return(0,a.__)("Show visitors the default restricted message. Customize it in %s.","user-registration").replace("%s",t)})()})]})]}),(0,C.jsxs)("label",{className:"urcr-checkbox-radio-option "+(s?"":"is-checked"),children:[(0,C.jsx)("input",{type:"radio",name:`message-type-${e.id}`,value:"custom",checked:!s,onChange:()=>l(!1),className:"urcr-checkbox-radio-input"}),(0,C.jsx)("span",{className:"urcr-checkbox-radio-label",children:(0,a.__)("Custom message","user-registration")})]})]})})]}),!s&&(0,C.jsxs)("div",{className:"urcr-title-body-pair urcr-rule-action-input-container urcrra-message-input-container ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label"})}),(0,C.jsxs)("div",{className:"urcr-body",children:[(0,C.jsxs)("div",{className:"wp-media-buttons",children:[(0,C.jsx)(T,{editorId:u}),(0,C.jsx)(D,{editorId:u,onTagInsert:e=>{if("undefined"!=typeof wp&&wp.editor&&window.tinymce){const t=window.tinymce.get(u);if(t){t.execCommand("mceInsertContent",!1,e),t.fire("change");const n=wp.editor.getContent(u);r&&r(n)}}}})]}),(0,C.jsx)("div",{className:"wp-editor-container",children:(0,C.jsx)("div",{className:"wp-core-ui wp-editor-wrap tmce-active",id:`wp-${u}-wrap`,children:(0,C.jsx)("div",{id:`wp-${u}-editor-container`,children:(0,C.jsx)("textarea",{id:u,ref:c,value:t||"",onChange:e=>{r&&r(e.target.value)},className:"wp-editor-area"})})})})]})]})]})},N=({redirectUrl:e,onRedirectUrlChange:t})=>(0,C.jsxs)("div",{className:"urcr-title-body-pair urcr-rule-action-input-container urcrra-redirect-input-container ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Redirection URL","user-registration")})}),(0,C.jsx)("div",{className:"urcr-body",children:(0,C.jsx)("input",{type:"url",className:"urcr-input",value:e||"",onChange:e=>t(e.target.value),placeholder:(0,a.__)("Enter a URL to redirect to...","user-registration")})})]}),B=({shortcodeTag:e,shortcodeArgs:t,onShortcodeTagChange:r,onShortcodeArgsChange:n})=>{const o=f("shortcodes",{}),i=Object.keys(o).map(e=>({value:e,label:e}));return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:"urcr-title-body-pair urcr-rule-action-input-container urcrra-shortcode-input-container ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Render a Shortcode","user-registration")})}),(0,C.jsx)("div",{className:"urcr-body",children:(0,C.jsxs)("div",{className:"urcrra-shortcode-input",children:[(0,C.jsxs)("select",{className:"urcr-input",value:e||"",onChange:e=>r(e.target.value),style:{marginBottom:"16px"},children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select shortcode","user-registration")}),i.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,C.jsx)("input",{type:"text",className:"urcr-input",value:t||"",onChange:e=>n(e.target.value),placeholder:'Enter shortcode arguments here. Eg: id="345"'})]})})]})})},I=({urForm:e,onUrFormChange:t})=>{const r=f("ur_forms",{}),n=Object.entries(r).map(([e,t])=>({value:e,label:t}));return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:"urcr-title-body-pair urcr-rule-action-input-container urcrra-ur-form-input-container ur-form-group",children:[(0,C.jsx)("label",{className:"urcr-label-container ur-col-4",children:(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Display User Registration & Membership Form","user-registration")})}),(0,C.jsx)("div",{className:"urcr-body",children:(0,C.jsxs)("select",{className:"urcr-input",value:e||"",onChange:e=>t(e.target.value),children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select a form","user-registration")}),n.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]})})]})})},L=({rule:e,onRuleUpdate:t,onGoBack:r,isToggling:o=!1,onSavingChange:i})=>{const s="membership"===e.rule_type,l=Boolean(e.is_migrated)&&!s,[c,u]=(0,n.useState)("message"),[d,p]=(0,n.useState)(""),[h,g]=(0,n.useState)(""),[v,b]=(0,n.useState)(""),[y,x]=(0,n.useState)(""),[w,_]=(0,n.useState)(""),[S,j]=(0,n.useState)(""),[k,T]=(0,n.useState)(!1),[D,L]=(0,n.useState)(!0),[z,F]=(0,n.useState)(Boolean(e.is_advanced_logic_enabled||!1)),[H,V]=(0,n.useState)(!1),$=`urcr-action-message-editor-${e.id}`;(0,n.useEffect)(()=>{const t=(e.content||e).actions||e.actions||[];if(s){if(u("message"),t&&t.length>0&&t[0].message&&""!==t[0].message.trim())try{const e=decodeURIComponent(t[0].message);p(e),L(!1)}catch(e){p(t[0].message),L(!1)}else p(""),L(!0);return g(""),b(""),x(""),_(""),void j("")}if(l){if(u("message"),t&&t.length>0&&t[0].message&&""!==t[0].message.trim())try{const e=decodeURIComponent(t[0].message);p(e),L(!1)}catch(e){p(t[0].message),L(!1)}else p(""),L(!0);return g(""),b(""),x(""),_(""),void j("")}if(t&&t.length>0){const e=t[0];let r="message";if(e.type&&(r="ur_form"===e.type?"ur-form":e.type,"redirect_to_local_page"===r&&(r="local_page"),u(r)),"message"===r)if(e.message)try{const t=decodeURIComponent(e.message);""!==t.trim()?(p(t),L(!1)):(p(""),L(!0))}catch(t){""!==e.message.trim()?(p(e.message),L(!1)):(p(""),L(!0))}else p(""),L(!0);else if(L(!0),e.message)try{const t=decodeURIComponent(e.message);""!==t.trim()?p(t):p("")}catch(t){""!==e.message.trim()?p(e.message):p("")}else p("");e.redirect_url?g(e.redirect_url):g(""),e.local_page?b(e.local_page):b(""),void 0!==e.ur_form&&null!==e.ur_form&&""!==e.ur_form?x(String(e.ur_form)):x(""),e.shortcode?(e.shortcode.tag?_(e.shortcode.tag):_(""),e.shortcode.args?j(e.shortcode.args):j("")):(_(""),j(""))}else u("message"),p(""),L(!0),g(""),b(""),x(""),_(""),j("")},[e.id,e.content,e.actions,s,l]),(0,n.useEffect)(()=>{F(Boolean(e.is_advanced_logic_enabled||!1))},[e.id,e.is_advanced_logic_enabled]),(0,n.useEffect)(()=>{i&&i(k)},[k,i]),(0,n.useEffect)(()=>{if((s||l)&&"message"!==c&&u("message"),!s&&!l&&"message"===c){const t=(e.content||e).actions||e.actions||[];t&&t.length>0&&t[0].message&&""!==t[0].message.trim()?L(!1):L(!0)}},[s,l,c,e.content,e.actions]);const U=(0,n.useRef)(!1),W=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!U.current)return U.current=!0,void(W.current={actionType:c,message:d,redirectUrl:h,localPage:v,urForm:y,shortcodeTag:w,shortcodeArgs:S,useGlobalMessage:D});const r={actionType:c,message:d,redirectUrl:h,localPage:v,urForm:y,shortcodeTag:w,shortcodeArgs:S,useGlobalMessage:D};if(!W.current||W.current.actionType!==r.actionType||W.current.message!==r.message||W.current.redirectUrl!==r.redirectUrl||W.current.localPage!==r.localPage||W.current.urForm!==r.urForm||W.current.shortcodeTag!==r.shortcodeTag||W.current.shortcodeArgs!==r.shortcodeArgs||W.current.useGlobalMessage!==r.useGlobalMessage){let n=c;(s||l)&&(n="message");const{actionData:o,accessControl:i}=(()=>{const t=e.content||e,r=t.actions||e.actions||[];let n=c;(s||l)&&(n="message");let o=d;"message"===n&&"undefined"!=typeof wp&&wp.editor&&document.getElementById($)&&window.tinymce&&window.tinymce.get($)&&(o=wp.editor.getContent($));const i=e.access_control||t.access_control||r&&r.length>0&&r[0].access_control||"restrict";let u={id:r&&r.length>0?r[0].id:`x${Date.now()}`,type:n,access_control:i};switch(n){case"message":if(u.label=(0,a.__)("Show Message","user-registration"),(s||l||!s&&!l)&&D)u.message="";else{const e=f("membership_default_message","");u.message=o||e}u.redirect_url="",u.local_page="",u.ur_form="",u.shortcode={tag:"",args:""};break;case"redirect":u.label=(0,a.__)("Redirect","user-registration"),u.message="",u.redirect_url=h,u.local_page="",u.ur_form="",u.shortcode={tag:"",args:""};break;case"local_page":u.type="redirect_to_local_page",u.label=(0,a.__)("Redirect to a Local Page","user-registration"),u.message="",u.redirect_url="",u.local_page=v,u.ur_form="",u.shortcode={tag:"",args:""};break;case"ur-form":case"ur_form":u.type="ur-form",u.label=(0,a.__)("Show UR Form (Legacy)","user-registration"),u.message="",u.redirect_url="",u.local_page="",u.ur_form=y?String(y):"",u.shortcode={tag:"",args:""};break;case"shortcode":u.label=(0,a.__)("Render Shortcode (Legacy)","user-registration"),u.message="",u.redirect_url="",u.local_page="",u.ur_form="",u.shortcode={tag:w,args:S}}return{actionData:u,accessControl:i}})();(s||l)&&(o.type="message");const u=e.logic_map||e.content&&e.content.logic_map||{type:"group",id:`x${Date.now()}`,conditions:[]},p=e.target_contents||e.content&&e.content.target_contents||[];if(t){const r={...e,access_control:i,actions:[o],content:{...e.content||{},access_control:i,logic_map:u,target_contents:p,actions:[o]}};t(r)}W.current=r}},[c,d,h,v,y,w,S,D]),(0,C.jsxs)("div",{className:"urcr-rule-settings-panel",children:[!s&&!l&&(0,C.jsxs)("div",{className:"urcr-label-input-pair urcr-rule-action ur-align-items-center ur-form-group",children:[(0,C.jsxs)("label",{className:"urcr-label-container ur-col-4",children:[(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Action","user-registration")}),(0,C.jsx)("span",{className:"urcr-puncher"}),(0,C.jsx)("span",{className:"user-registration-help-tip","data-tip":(0,a.__)("Action to perform for restricting the specified contents","user-registration")})]}),(0,C.jsxs)("div",{className:"urcr-input-container",children:[(0,C.jsx)("select",{className:"urcr-action-type-select urcr-condition-value-input",value:c,onChange:e=>{if(s||l)return;const t=e.target.value;u(t)},style:{width:"100%"},children:f("action_type_options",[]).map(e=>{const t="ur-form"===e.value||"shortcode"===e.value?`${e.label} (Legacy)`:e.label;return(0,C.jsx)("option",{value:e.value,children:t},e.value)})}),("ur-form"===c||"ur_form"===c||"shortcode"===c)&&(()=>{const e=f("action_type_options",[]).find(e=>e.value===c||"ur_form"===c&&"ur-form"===e.value),t=e?e.label:"shortcode"===c?"Render Shortcode":"Show UR Form";return(0,C.jsx)("div",{className:"urcr-global-migration-notice",children:(0,C.jsx)("p",{className:"urcr-notice-wrap",children:(0,C.jsx)(R.RawHTML,{children:(0,a.__)(`This legacy <code>${t}</code> setting will be removed in a future version. Please use 'Show Message' and add any shortcodes directly in the editor.`,"user-registration")})})})})()]})]}),"message"===c&&(0,C.jsx)(M,{rule:e,message:d,onMessageChange:p,isMembershipRule:s,isMigratedCustomRule:l,useGlobalMessage:D,onUseGlobalMessageChange:L}),"redirect"===c&&(0,C.jsx)(N,{redirectUrl:h,onRedirectUrlChange:g}),"local_page"===c&&(0,C.jsx)(P,{localPage:v,onLocalPageChange:b}),("ur-form"===c||"ur_form"===c)&&(0,C.jsx)(I,{urForm:y,onUrFormChange:x}),"shortcode"===c&&(0,C.jsx)(B,{shortcodeTag:w,shortcodeArgs:S,onShortcodeTagChange:_,onShortcodeArgsChange:j}),!s&&!l&&m()&&(0,C.jsxs)("div",{className:"urcr-label-input-pair urcr-rule-action ur-align-items-center ur-form-group",children:[(0,C.jsxs)("label",{className:"urcr-label-container ur-col-4",children:[(0,C.jsx)("span",{className:"urcr-target-content-label",children:(0,a.__)("Advanced Logic","user-registration")}),(0,C.jsx)("span",{className:"urcr-puncher"}),(0,C.jsx)("span",{className:"user-registration-help-tip","data-tip":(0,a.__)("Enable advanced logic gates (OR, NOT) and nested groups for complex condition rules","user-registration")})]}),(0,C.jsx)("div",{className:"urcr-input-container",children:(0,C.jsx)("div",{className:"ur-toggle-section",children:(0,C.jsxs)("span",{className:"user-registration-toggle-form",children:[(0,C.jsx)("input",{type:"checkbox",checked:z,onChange:r=>{const n=r.target.checked;if(!n){const t=e.logic_map||e.content&&e.content.logic_map||null;if(E(t))return void V(!0)}if(F(n),t){const r={...e,is_advanced_logic_enabled:n,content:{...e.content||{},is_advanced_logic_enabled:n}};t(r)}}}),(0,C.jsx)("span",{className:"slider round"})]})})})]}),(0,C.jsx)("div",{className:"urcr-settings-actions",style:{marginTop:"20px"},children:(0,C.jsx)("button",{type:"button",className:"button button-primary",onClick:async()=>{T(!0);try{const r=e.content||e,n=r.actions||e.actions||[];let o=c;(s||l)&&(o="message");let i=d;"message"===o&&"undefined"!=typeof wp&&wp.editor&&document.getElementById($)&&window.tinymce&&window.tinymce.get($)&&(i=wp.editor.getContent($));const u=e.access_control||r.access_control||n&&n.length>0&&n[0].access_control||"restrict";let p={id:n&&n.length>0?n[0].id:`x${Date.now()}`,type:o,access_control:u};switch(o){case"message":if(p.label=(0,a.__)("Show Message","user-registration"),(s||l||!s&&!l)&&D)p.message="";else{const e=f("membership_default_message","");p.message=i||e}p.redirect_url="",p.local_page="",p.ur_form="",p.shortcode={tag:"",args:""};break;case"redirect":p.label=(0,a.__)("Redirect","user-registration"),p.message="",p.redirect_url=h,p.local_page="",p.ur_form="",p.shortcode={tag:"",args:""};break;case"local_page":p.type="redirect_to_local_page",p.label=(0,a.__)("Redirect to a Local Page","user-registration"),p.message="",p.redirect_url="",p.local_page=v,p.ur_form="",p.shortcode={tag:"",args:""};break;case"ur-form":case"ur_form":p.type="ur-form",p.label=(0,a.__)("Show UR Form (Legacy)","user-registration"),p.message="",p.redirect_url="",p.local_page="",p.ur_form=y?String(y):"",p.shortcode={tag:"",args:""};break;case"shortcode":p.label=(0,a.__)("Render Shortcode (Legacy)","user-registration"),p.message="",p.redirect_url="",p.local_page="",p.ur_form="",p.shortcode={tag:w,args:S}}await A({rule:{...e,is_advanced_logic_enabled:z,content:{...e.content||{},is_advanced_logic_enabled:z}},onRuleUpdate:t,settingsData:{actionData:p,accessControl:u,isAdvancedLogicEnabled:z}})}catch(e){}finally{T(!1)}},disabled:k||o,children:k?(0,a.__)("Saving...","user-registration"):(0,a.__)("Save","user-registration")})}),(0,C.jsx)(O,{isOpen:H,onClose:()=>V(!1)})]})},{assetsURL:z}="undefined"!=typeof _URCR_DASHBOARD_&&_URCR_DASHBOARD_?_URCR_DASHBOARD_:{},F=({options:e=[],selectedValue:t,onSelect:r,className:n="",grouped:o=!1,renderOption:i,showProOptions:a=!1,proOptions:s=[]})=>{const l=m(),c=(e,t)=>{t.stopPropagation(),r&&r(e)},u=(e,t)=>{e.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),r&&r(e))},d=e=>{if(i)return i(e,c,u,t);const r=t===e.value,n=e.disabled||e.locked||!1,o=e.locked||!1,a=o?"div":"span";return(0,C.jsxs)(a,{role:"button",className:`urcr-dropdown-option ${r?"is-selected":""} ${n?"is-disabled":""} ${o?"is-locked":""}`,onClick:n||o?void 0:t=>c(e,t),onKeyDown:n||o?void 0:t=>u(e,t),children:[e.label,o&&(0,C.jsx)("span",{children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"}),(0,C.jsx)("path",{d:"M5 21h14"})]})})]},e.value)},p=()=>{if(!a||l||!s||0===s.length)return null;const e=(()=>{if(z)return`${z}images/icons/ur-pro-icon.png`;if("undefined"==typeof window)return"";const e=document.getElementsByTagName("script");for(let t=0;t<e.length;t++)if(e[t].src&&-1!==e[t].src.indexOf("urcr-membership-access-rules")){const r=e[t].src.indexOf("assets/js");if(-1!==r){let n=e[t].src.substring(0,r);return n&&!n.endsWith("/")&&(n+="/"),`${n}assets/images/icons/ur-pro-icon.png`}}return""})();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"urcr-dropdown-pro-title",children:[(0,C.jsx)("span",{children:"More in Pro "}),(0,C.jsx)("img",{src:e,alt:"Pro",width:"14",height:"14"})]}),s.map(e=>(0,C.jsx)("span",{className:"urcr-dropdown-option urcr-content-type-option urcr-pro-option urcr-pro-option-disabled","data-content-type":e.value,children:e.label},e.value))]})};return o?(0,C.jsxs)("div",{className:`urcr-dropdown-menu urcr-condition-field-dropdown-menu ${n}`,children:[e.map((e,t)=>(0,C.jsxs)("div",{className:"urcr-dropdown-group urcr-condition-field-dropdown-group",children:[e.group&&(0,C.jsx)("div",{className:"urcr-dropdown-group-label urcr-condition-field-dropdown-group-label",children:e.group}),e.options.map(e=>d(e))]},t)),p()]}):(0,C.jsxs)("div",{className:`urcr-dropdown-menu ${n}`,children:[e.map(e=>d(e)),p()]})},H=({onSelect:e,existingContentTypes:t=[],conditions:r,accessControl:n})=>{const o=f("content_type_options",[{value:"whole_site",label:(0,a.__)("Whole Site","user-registration")},{value:"pages",label:(0,a.__)("Pages","user-registration")},{value:"posts",label:(0,a.__)("Posts","user-registration")},{value:"post_types",label:(0,a.__)("Post Type","user-registration")},{value:"taxonomy",label:(0,a.__)("Taxonomy","user-registration")},{value:"masteriyo_courses",label:(0,a.__)("Courses","user-registration")}]);const i=(m()?o:o.filter(e=>"posts"===e.value||"pages"===e.value||"whole_site"===e.value||"membership"===r[0]?.value&&"access"===n&&"masteriyo_courses"===e.value)).map(e=>{return{...e,disabled:(r=e.value,t.some(e=>e.type===r))};var r}),s=[{value:"post-type",label:(0,a.__)("Post Type","user-registration")},{value:"taxonomy",label:(0,a.__)("Taxonomy","user-registration")},{value:"file_downloads",label:(0,a.__)("File Downloads","user-registration")}];return(0,C.jsx)(F,{options:i,onSelect:e,showProOptions:!0,proOptions:s})},V=()=>(0,C.jsx)("span",{className:"urcr-whole-site-text",children:(0,a.__)("Whole Site","user-registration")}),$=({terms:e,selectedTerms:t,onChange:r,selectRef:o})=>{const i=(0,n.useRef)(!1),s=(0,n.useRef)(r);(0,n.useEffect)(()=>{s.current=r},[r]);const l=(0,n.useCallback)(function(e){if(i.current)return;const t=Array.from(e.target.selectedOptions,e=>e.value);s.current(t)},[]),c=(0,n.useMemo)(()=>JSON.stringify(e.map(e=>e.value).sort()),[e]),u=(0,n.useMemo)(()=>JSON.stringify(Array.isArray(t)?t.sort():[]),[t]);return(0,n.useLayoutEffect)(()=>{if(!o.current)return;const e=window.jQuery(o.current);e.hasClass("select2-hidden-accessible")&&e.select2("destroy");var r=!1,n=!0;return e.select2({containerCssClass:e.data("select2_class")}).on("select2:selecting",function(){r=!0,n=!1}).on("select2:unselecting",function(){r=!0,n=!1}).on("select2:closing",function(){if(r&&this.multiple)return r=!1,!1}).on("change",function(e){n||l(e)}),Array.isArray(t)&&t.length>0?(n=!0,e.val(t).trigger("change.select2"),setTimeout(()=>{n=!1},100)):n=!1,()=>{e&&e.hasClass("select2-hidden-accessible")&&(e.off("change select2:selecting select2:unselecting select2:closing"),e.select2("destroy"))}},[c,u,l]),(0,n.useEffect)(()=>{if(o.current){const e=window.jQuery(o.current);if(e.hasClass("select2-hidden-accessible")){const r=e.val()||[],n=Array.isArray(r)?r:r?[r]:[],o=Array.isArray(t)?t:[];[...n].sort().join(",")!==[...o].sort().join(",")&&(i.current=!0,e.val(t).trigger("change.select2"),i.current=!1)}}},[t]),(0,C.jsx)("select",{ref:o,className:"components-select-control__input urcr-enhanced-select2 urcr-condition-value-select urcr-condition-value-select--multiselect urcr-taxonomy-terms-select",value:t,onChange:e=>{const t=Array.from(e.target.selectedOptions,e=>e.value);r(t)},multiple:!0,children:0===e.length?(0,C.jsx)("option",{value:"",disabled:!0,children:(0,a.__)("No terms available","user-registration")}):e.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))})},U=({value:e,onChange:t})=>{const[r,o]=(0,n.useState)(e&&"object"==typeof e?e:{taxonomy:"",value:[]}),[i,s]=(0,n.useState)(e&&"object"==typeof e&&e.taxonomy||""),l=(0,n.useRef)(null),c=(0,n.useRef)(t);(0,n.useEffect)(()=>{c.current=t},[t]),(0,n.useEffect)(()=>{e&&"object"==typeof e?(o(e),s(e.taxonomy||"")):(o({taxonomy:"",value:[]}),s(""))},[e]);const u=(0,n.useCallback)(e=>{o(e),c.current&&c.current(e)},[]),d=f("taxonomies",{}),p=f("terms_list",{}),m=Object.entries(d).map(([e,t])=>({value:e,label:t||e})),h=(0,n.useCallback)(e=>{const t={...r,value:e};o(t),u(t)},[r,u]),g=(0,n.useMemo)(()=>(()=>{if(!i)return[];if(!p||"object"!=typeof p)return[];const e=p[i];if(!e)return[];if(Array.isArray(e))return e.map((e,t)=>({value:e.term_id||e.id||String(t),label:e.name||e.label||String(e)}));const t=Object.entries(e);return 0===t.length?[]:t.map(([e,t])=>({value:String(e),label:String(t||e)}))})(),[i,p]),v=Array.isArray(r.value)?r.value:[];return(0,C.jsxs)("div",{className:"urcr-taxonomy-select-group",children:[(0,C.jsxs)("select",{className:"urcr-condition-value-input urcr-condition-value-select urcr-taxonomy-select",value:i,onChange:e=>{const t=e.target.value;s(t);const r={taxonomy:t,value:[]};o(r),u(r)},children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select Taxonomy","user-registration")}),m.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]}),i&&(0,C.jsx)($,{terms:g,selectedTerms:v,onChange:h,selectRef:l})]})},W=({contentType:e,value:t,onChange:r})=>{const[o,i]=(0,n.useState)(Array.isArray(t)?t:t?[t]:[]),s=(0,n.useRef)(null),l=(0,n.useRef)(!1),c=(0,n.useRef)(r);(0,n.useEffect)(()=>{c.current=r},[r]),(0,n.useEffect)(()=>{i(Array.isArray(t)?t:t?[t]:[])},[t]);const u=(0,n.useCallback)(e=>{l.current||(i(e),c.current&&c.current(e))},[]),d=(()=>{const t=p()?.[e];return t?Array.isArray(t)?t:Object.entries(t).map(([e="",t=""])=>({value:e,label:t||e})):[]})(),f=(m=d,Array.isArray(m)&&m.length>0&&"object"==typeof m[0]&&null!==m[0]&&"group"in m[0]&&"options"in m[0]&&Array.isArray(m[0].options));var m;const h=Array.isArray(o)?o:o?[o]:[];return(0,n.useLayoutEffect)(()=>{if(s.current){const r=window.jQuery(s.current);r.hasClass("select2-hidden-accessible")&&r.select2("destroy");var e=!1,t=!0;const n=function(e){if(!t&&!l.current){const t=Array.from(e.target.selectedOptions,e=>e.value);u(t)}};return r.select2({containerCssClass:r.data("select2_class")}).on("select2:selecting",function(){e=!0,t=!1}).on("select2:unselecting",function(){e=!0,t=!1}).on("select2:closing",function(){if(e&&this.multiple)return e=!1,!1}).on("change",n),Array.isArray(o)&&o.length>0?(t=!0,r.val(o),setTimeout(()=>{t=!1},50)):t=!1,()=>{r&&r.hasClass("select2-hidden-accessible")&&(r.off("change",n),r.off("select2:selecting select2:unselecting select2:closing"),r.select2("destroy"))}}},[e,u]),(0,n.useEffect)(()=>{if(s.current){const e=window.jQuery(s.current);if(e.hasClass("select2-hidden-accessible")){const t=e.val()||[],r=Array.isArray(t)?t:t?[t]:[],n=Array.isArray(o)?o:o?[o]:[];[...r].sort().join(",")!==[...n].sort().join(",")&&(l.current=!0,e.val(o),setTimeout(()=>{l.current=!1},50))}}},[o,e]),(0,C.jsx)("select",{ref:s,className:"components-select-control__input urcr-enhanced-select2 urcr-condition-value-select urcr-condition-value-select--multiselect",value:h,onChange:e=>{const t=Array.from(e.target.selectedOptions,e=>e.value);u(t)},multiple:!0,children:0===d.length?(0,C.jsx)("option",{value:"",disabled:!0,children:(0,a.__)("No options available","user-registration")}):f?(0,C.jsx)(C.Fragment,{children:d.map(e=>(0,C.jsx)("optgroup",{label:e.group,children:e.options.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))},e.group))}):(0,C.jsx)(C.Fragment,{children:d.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))})})};function q({value:e,onChange:t}){const[r="",n=!1]=Array.isArray(e)?e:["",!1];return(0,C.jsx)("div",{className:"urcr-custom-uri-input",style:{display:"flex",width:"100%",gap:8},children:(0,C.jsx)("input",{type:"text",className:"components-text-control__input urcr-condition-value-input urcr-condition-value-date",value:r,onChange:e=>t([e.target.value,n]),style:{flex:1}})})}const Z=({contentType:e,value:t,onChange:r})=>"whole_site"===e?(0,C.jsx)(V,{}):"taxonomy"===e?(0,C.jsx)(U,{value:t,onChange:r}):"custom_uri"===e?(0,C.jsx)(q,{value:t,onChange:r}):(0,C.jsx)(W,{contentType:e,value:t,onChange:r}),Y=({buttonContent:e,options:t=[],value:r,onSelect:o,buttonClassName:i="",wrapperClassName:a="",menuClassName:s="",grouped:l=!1,renderOption:c,renderDropdown:u,isOpen:d,onToggle:p})=>{const[f,m]=(0,n.useState)(!1),h=(0,n.useRef)(null),g=void 0!==d?d:f,v=e=>{void 0===d&&m(e),p&&p(e)};return(0,n.useEffect)(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&v(!1)};return g&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[g]),(0,C.jsxs)("div",{className:`urcr-dropdown-wrapper ${a}`,ref:h,children:[(0,C.jsx)("button",{type:"button",className:`urcr-dropdown-button ${i}`,onClick:e=>{e.stopPropagation(),v(!g)},children:e}),g&&(u?u():(0,C.jsx)(F,{options:t,selectedValue:r,onSelect:e=>{o&&o(e),v(!1)},className:s,grouped:l,renderOption:c}))]})};function G(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function X(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function K(...e){return t=>{let r=!1;const n=e.map(e=>{const n=X(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():X(e[t],null)}}}}function J(...e){return n.useCallback(K(...e),e)}function Q(e,t=[]){let r=[];const o=()=>{const t=r.map(e=>n.createContext(e));return function(r){const o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){const i=n.createContext(o),a=r.length;r=[...r,o];const s=t=>{const{scope:r,children:o,...s}=t,l=r?.[e]?.[a]||i,c=n.useMemo(()=>s,Object.values(s));return(0,C.jsx)(l.Provider,{value:c,children:o})};return s.displayName=t+"Provider",[s,function(r,s){const l=s?.[e]?.[a]||i,c=n.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},ee(o,...t)]}function ee(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}"undefined"==typeof window||!window.document||window.document.createElement;var te=r(5795);function re(e){const t=ne(e),r=n.forwardRef((e,r)=>{const{children:o,...i}=e,a=n.Children.toArray(o),s=a.find(ie);if(s){const e=s.props.children,o=a.map(t=>t===s?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t);return(0,C.jsx)(t,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,C.jsx)(t,{...i,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function ne(e){const t=n.forwardRef((e,t)=>{const{children:r,...o}=e;if(n.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(r),i=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(i.ref=t?K(t,e):e),n.cloneElement(r,i)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oe=Symbol("radix.slottable");function ie(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===oe}var ae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=re(`Primitive.${t}`),o=n.forwardRef((e,n)=>{const{asChild:o,...i}=e,a=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,C.jsx)(a,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function se(e){const t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}var le,ce="dismissableLayer.update",ue=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),de=n.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=n.useContext(ue),[d,p]=n.useState(null),f=d?.ownerDocument??globalThis?.document,[,m]=n.useState({}),h=J(t,e=>p(e)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),y=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=b,_=function(e,t=globalThis?.document){const r=se(e),o=n.useRef(!1),i=n.useRef(()=>{});return n.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let n=function(){fe("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=n,t.addEventListener("click",i.current,{once:!0})):n()}else t.removeEventListener("click",i.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));w&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},f),S=function(e,t=globalThis?.document){const r=se(e),o=n.useRef(!1);return n.useEffect(()=>{const e=e=>{e.target&&!o.current&&fe("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},f);return function(e,t=globalThis?.document){const r=se(e);n.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{y===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),n.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(le=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pe(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=le)}},[d,f,r,u]),n.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pe())},[d,u]),n.useEffect(()=>{const e=()=>m({});return document.addEventListener(ce,e),()=>document.removeEventListener(ce,e)},[]),(0,C.jsx)(ae.div,{...c,ref:h,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:G(e.onFocusCapture,S.onFocusCapture),onBlurCapture:G(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,_.onPointerDownCapture)})});function pe(){const e=new CustomEvent(ce);document.dispatchEvent(e)}function fe(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&te.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}de.displayName="DismissableLayer",n.forwardRef((e,t)=>{const r=n.useContext(ue),o=n.useRef(null),i=J(t,o);return n.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,C.jsx)(ae.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var me=0;function he(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ge="focusScope.autoFocusOnMount",ve="focusScope.autoFocusOnUnmount",be={bubbles:!1,cancelable:!0},ye=n.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=n.useState(null),u=se(i),d=se(a),p=n.useRef(null),f=J(t,e=>c(e)),m=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(o){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Ce(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Ce(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Ce(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,m.paused]),n.useEffect(()=>{if(l){Se.add(m);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(ge,be);l.addEventListener(ge,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ce(n,{select:t}),document.activeElement!==r)return}(xe(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Ce(l))}return()=>{l.removeEventListener(ge,u),setTimeout(()=>{const t=new CustomEvent(ve,be);l.addEventListener(ve,d),l.dispatchEvent(t),t.defaultPrevented||Ce(e??document.body,{select:!0}),l.removeEventListener(ve,d),Se.remove(m)},0)}}},[l,u,d,m]);const h=n.useCallback(e=>{if(!r&&!o)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=xe(e);return[we(t,e),we(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Ce(i,{select:!0})):(e.preventDefault(),r&&Ce(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,m.paused]);return(0,C.jsx)(ae.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})});function xe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function we(e,t){for(const r of e)if(!_e(r,{upTo:t}))return r}function _e(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Ce(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ye.displayName="FocusScope";var Se=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=je(e,t),e.unshift(t)},remove(t){e=je(e,t),e[0]?.resume()}}}();function je(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var ke=globalThis?.document?n.useLayoutEffect:()=>{},Re=o[" useId ".trim().toString()]||(()=>{}),Ee=0;function Ae(e){const[t,r]=n.useState(Re());return ke(()=>{e||r(e=>e??String(Ee++))},[e]),e||(t?`radix-${t}`:"")}var Oe=r(6789),Pe="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function Te(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Te(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(!("_owner"===r&&e.$$typeof||Te(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function De(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Me(e,t){const r=De(e);return Math.round(t*r)/r}function Ne(e){const t=n.useRef(e);return Pe(()=>{t.current=e}),t}var Be=n.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return(0,C.jsx)(ae.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,C.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Be.displayName="Arrow";var Ie=Be,Le="Popper",[ze,Fe]=Q(Le),[He,Ve]=ze(Le),$e=e=>{const{__scopePopper:t,children:r}=e,[o,i]=n.useState(null);return(0,C.jsx)(He,{scope:t,anchor:o,onAnchorChange:i,children:r})};$e.displayName=Le;var Ue="PopperAnchor",We=n.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Ve(Ue,r),s=n.useRef(null),l=J(t,s),c=n.useRef(null);return n.useEffect(()=>{const e=c.current;c.current=o?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)}),o?null:(0,C.jsx)(ae.div,{...i,ref:l})});We.displayName=Ue;var qe="PopperContent",[Ze,Ye]=ze(qe),Ge=n.forwardRef((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,v=Ve(qe,r),[b,y]=n.useState(null),x=J(t,e=>y(e)),[w,_]=n.useState(null),S=function(e){const[t,r]=n.useState(void 0);return ke(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(w),j=S?.width??0,k=S?.height??0,R=o+("center"!==a?"-"+a:""),E="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},A=Array.isArray(u)?u:[u],O=A.length>0,P={padding:E,boundary:A.filter(Qe),altBoundary:O},{refs:T,floatingStyles:D,placement:M,isPositioned:N,middlewareData:B}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=n.useState(o);Te(f,o)||m(o);const[h,g]=n.useState(null),[v,b]=n.useState(null),y=n.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=n.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),w=a||h,_=s||v,C=n.useRef(null),S=n.useRef(null),j=n.useRef(d),k=null!=c,R=Ne(c),E=Ne(i),A=n.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:r,middleware:f};E.current&&(e.platform=E.current),(0,Oe.rD)(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!0};O.current&&!Te(j.current,t)&&(j.current=t,te.flushSync(()=>{p(t)}))})},[f,t,r,E]);Pe(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const O=n.useRef(!1);Pe(()=>(O.current=!0,()=>{O.current=!1}),[]),Pe(()=>{if(w&&(C.current=w),_&&(S.current=_),w&&_){if(R.current)return R.current(w,_,A);A()}},[w,_,A,R,k]);const P=n.useMemo(()=>({reference:C,floating:S,setReference:y,setFloating:x}),[y,x]),T=n.useMemo(()=>({reference:w,floating:_}),[w,_]),D=n.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Me(T.floating,d.x),n=Me(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...De(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,T.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:A,refs:P,elements:T,floatingStyles:D}),[d,A,P,T,D])}({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>(0,Oe.ll)(...e,{animationFrame:"always"===m}),elements:{reference:v.anchor},middleware:[(0,Oe.cY)({mainAxis:i+k,alignmentAxis:s}),c&&(0,Oe.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(0,Oe.ER)():void 0,...P}),c&&(0,Oe.UU)({...P}),(0,Oe.Ej)({...P,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&(I={element:w,padding:l},{name:"arrow",options:I,fn(e){const{element:t,padding:r}="function"==typeof I?I(e):I;return t&&(n=t,{}.hasOwnProperty.call(n,"current"))?null!=t.current?(0,Oe.UE)({element:t.current,padding:r}).fn(e):{}:t?(0,Oe.UE)({element:t,padding:r}).fn(e):{};var n}}),et({arrowWidth:j,arrowHeight:k}),f&&(0,Oe.jD)({strategy:"referenceHidden",...P})]});var I;const[L,z]=tt(M),F=se(h);ke(()=>{N&&F?.()},[N,F]);const H=B.arrow?.x,V=B.arrow?.y,$=0!==B.arrow?.centerOffset,[U,W]=n.useState();return ke(()=>{b&&W(window.getComputedStyle(b).zIndex)},[b]),(0,C.jsx)("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:N?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,C.jsx)(Ze,{scope:r,placedSide:L,onArrowChange:_,arrowX:H,arrowY:V,shouldHideArrow:$,children:(0,C.jsx)(ae.div,{"data-side":L,"data-align":z,...g,ref:x,style:{...g.style,animation:N?void 0:"none"}})})})});Ge.displayName=qe;var Xe="PopperArrow",Ke={top:"bottom",right:"left",bottom:"top",left:"right"},Je=n.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Ye(Xe,r),i=Ke[o.placedSide];return(0,C.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,C.jsx)(Ie,{...n,ref:t,style:{...n.style,display:"block"}})})});function Qe(e){return null!==e}Je.displayName=Xe;var et=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=tt(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=i?u:`${d}px`,m=-s+"px"):"top"===l?(f=i?u:`${d}px`,m=`${n.floating.height+s}px`):"right"===l?(f=-s+"px",m=i?u:`${p}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=i?u:`${p}px`),{data:{x:f,y:m}}}});function tt(e){const[t,r="center"]=e.split("-");return[t,r]}var rt=$e,nt=We,ot=Ge,it=Je,at=n.forwardRef((e,t)=>{const{container:r,...o}=e,[i,a]=n.useState(!1);ke(()=>a(!0),[]);const s=r||i&&globalThis?.document?.body;return s?te.createPortal((0,C.jsx)(ae.div,{...o,ref:t}),s):null});at.displayName="Portal";var st=e=>{const{present:t,children:r}=e,o=function(e){const[t,r]=n.useState(),o=n.useRef(null),i=n.useRef(e),a=n.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return n.useReducer((e,r)=>t[e][r]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{const e=lt(o.current);a.current="mounted"===l?e:"none"},[l]),ke(()=>{const t=o.current,r=i.current;if(r!==e){const n=a.current,o=lt(t);c(e?"MOUNT":"none"===o||"none"===t?.display?"UNMOUNT":r&&n!==o?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),ke(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,n=n=>{const a=lt(o.current).includes(CSS.escape(n.animationName));if(n.target===t&&a&&(c("ANIMATION_END"),!i.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},s=e=>{e.target===t&&(a.current=lt(o.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",n),t.addEventListener("animationend",n),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",n),t.removeEventListener("animationend",n)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:n.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),a=J(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:a}):null};function lt(e){return e?.animationName||"none"}st.displayName="Presence";var ct=o[" useInsertionEffect ".trim().toString()]||ke;function ut({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[r,o]=n.useState(e),i=n.useRef(r),a=n.useRef(t);return ct(()=>{a.current=t},[t]),n.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:i;{const t=n.useRef(void 0!==e);n.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,o])}const u=n.useCallback(t=>{if(l){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&s.current?.(r)}else a(t)},[l,e,a,s]);return[c,u]}Symbol("RADIX:SYNC_STATE");var dt=r(2694),pt=r(1),ft="Popover",[mt,ht]=Q(ft,[Fe]),gt=Fe(),[vt,bt]=mt(ft),yt=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=gt(t),c=n.useRef(null),[u,d]=n.useState(!1),[p,f]=ut({prop:o,defaultProp:i??!1,onChange:a,caller:ft});return(0,C.jsx)(rt,{...l,children:(0,C.jsx)(vt,{scope:t,contentId:Ae(),triggerRef:c,open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:n.useCallback(()=>d(!0),[]),onCustomAnchorRemove:n.useCallback(()=>d(!1),[]),modal:s,children:r})})};yt.displayName=ft;var xt="PopoverAnchor";n.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=bt(xt,r),a=gt(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,C.jsx)(nt,{...a,...o,ref:t})}).displayName=xt;var wt="PopoverTrigger",_t=n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=bt(wt,r),i=gt(r),a=J(t,o.triggerRef),s=(0,C.jsx)(ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nt(o.open),...n,ref:a,onClick:G(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:(0,C.jsx)(nt,{asChild:!0,...i,children:s})});_t.displayName=wt;var Ct="PopoverPortal",[St,jt]=mt(Ct,{forceMount:void 0}),kt=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=bt(Ct,t);return(0,C.jsx)(St,{scope:t,forceMount:r,children:(0,C.jsx)(st,{present:r||i.open,children:(0,C.jsx)(at,{asChild:!0,container:o,children:n})})})};kt.displayName=Ct;var Rt="PopoverContent",Et=n.forwardRef((e,t)=>{const r=jt(Rt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=bt(Rt,e.__scopePopover);return(0,C.jsx)(st,{present:n||i.open,children:i.modal?(0,C.jsx)(Ot,{...o,ref:t}):(0,C.jsx)(Pt,{...o,ref:t})})});Et.displayName=Rt;var At=re("PopoverContent.RemoveScroll"),Ot=n.forwardRef((e,t)=>{const r=bt(Rt,e.__scopePopover),o=n.useRef(null),i=J(t,o),a=n.useRef(!1);return n.useEffect(()=>{const e=o.current;if(e)return(0,dt.Eq)(e)},[]),(0,C.jsx)(pt.A,{as:At,allowPinchZoom:!0,children:(0,C.jsx)(Tt,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pt=n.forwardRef((e,t)=>{const r=bt(Rt,e.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return(0,C.jsx)(Tt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const n=t.target,a=r.triggerRef.current?.contains(n);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),Tt=n.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...p}=e,f=bt(Rt,r),m=gt(r);return n.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??he()),document.body.insertAdjacentElement("beforeend",e[1]??he()),me++,()=>{1===me&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),me--}},[]),(0,C.jsx)(ye,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,C.jsx)(de,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,C.jsx)(ot,{"data-state":Nt(f.open),role:"dialog",id:f.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Dt="PopoverClose";n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=bt(Dt,r);return(0,C.jsx)(ae.button,{type:"button",...n,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})}).displayName=Dt;var Mt=n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=gt(r);return(0,C.jsx)(it,{...o,...n,ref:t})});function Nt(e){return e?"open":"closed"}Mt.displayName="PopoverArrow";var Bt=yt,It=_t,Lt=kt,zt=Et,Ft=Mt;Map;var Ht=n.createContext(void 0);function Vt(e){const t=n.useContext(Ht);return e||t||"ltr"}var $t="rovingFocusGroup.onEntryFocus",Ut={bubbles:!1,cancelable:!0},Wt="RovingFocusGroup",[qt,Zt,Yt]=function(e){const t=e+"CollectionProvider",[r,o]=Q(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,C.jsx)(i,{scope:t,itemMap:a,collectionRef:o,children:r})};s.displayName=t;const l=e+"CollectionSlot",c=re(l),u=n.forwardRef((e,t)=>{const{scope:r,children:n}=e,o=J(t,a(l,r).collectionRef);return(0,C.jsx)(c,{ref:o,children:n})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",f=re(d),m=n.forwardRef((e,t)=>{const{scope:r,children:o,...i}=e,s=n.useRef(null),l=J(t,s),c=a(d,r);return n.useEffect(()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)})),(0,C.jsx)(f,{[p]:"",ref:l,children:o})});return m.displayName=d,[{Provider:s,Slot:u,ItemSlot:m},function(t){const r=a(e+"CollectionConsumer",t);return n.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},o]}(Wt),[Gt,Xt]=Q(Wt,[Yt]),[Kt,Jt]=Gt(Wt),Qt=n.forwardRef((e,t)=>(0,C.jsx)(qt.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,C.jsx)(qt.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,C.jsx)(er,{...e,ref:t})})}));Qt.displayName=Wt;var er=n.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,f=n.useRef(null),m=J(t,f),h=Vt(a),[g,v]=ut({prop:s,defaultProp:l??null,onChange:c,caller:Wt}),[b,y]=n.useState(!1),x=se(u),w=Zt(r),_=n.useRef(!1),[S,j]=n.useState(0);return n.useEffect(()=>{const e=f.current;if(e)return e.addEventListener($t,x),()=>e.removeEventListener($t,x)},[x]),(0,C.jsx)(Kt,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:g,onItemFocus:n.useCallback(e=>v(e),[v]),onItemShiftTab:n.useCallback(()=>y(!0),[]),onFocusableItemAdd:n.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>j(e=>e-1),[]),children:(0,C.jsx)(ae.div,{tabIndex:b||0===S?-1:0,"data-orientation":o,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:G(e.onMouseDown,()=>{_.current=!0}),onFocus:G(e.onFocus,e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent($t,Ut);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);or([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}_.current=!1}),onBlur:G(e.onBlur,()=>y(!1))})})}),tr="RovingFocusGroupItem",rr=n.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,children:s,...l}=e,c=Ae(),u=a||c,d=Jt(tr,r),p=d.currentTabStopId===u,f=Zt(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return n.useEffect(()=>{if(o)return m(),()=>h()},[o,m,h]),(0,C.jsx)(qt.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:(0,C.jsx)(ae.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:G(e.onMouseDown,e=>{o?d.onItemFocus(u):e.preventDefault()}),onFocus:G(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:G(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:nr[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(n=i+1,(r=o).map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>or(o))}var r,n}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=g}):s})})});rr.displayName=tr;var nr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function or(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var ir=Qt,ar=rr,sr="Tabs",[lr,cr]=Q(sr,[Xt]),ur=Xt(),[dr,pr]=lr(sr),fr=n.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=Vt(s),[d,p]=ut({prop:n,onChange:o,defaultProp:i??"",caller:sr});return(0,C.jsx)(dr,{scope:r,baseId:Ae(),value:d,onValueChange:p,orientation:a,dir:u,activationMode:l,children:(0,C.jsx)(ae.div,{dir:u,"data-orientation":a,...c,ref:t})})});fr.displayName=sr;var mr="TabsList",hr=n.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,i=pr(mr,r),a=ur(r);return(0,C.jsx)(ir,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:n,children:(0,C.jsx)(ae.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});hr.displayName=mr;var gr="TabsTrigger",vr=n.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,a=pr(gr,r),s=ur(r),l=xr(a.baseId,n),c=wr(a.baseId,n),u=n===a.value;return(0,C.jsx)(ar,{asChild:!0,...s,focusable:!o,active:u,children:(0,C.jsx)(ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:G(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:G(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:G(e.onFocus,()=>{const e="manual"!==a.activationMode;u||o||!e||a.onValueChange(n)})})})});vr.displayName=gr;var br="TabsContent",yr=n.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...s}=e,l=pr(br,r),c=xr(l.baseId,o),u=wr(l.baseId,o),d=o===l.value,p=n.useRef(d);return n.useEffect(()=>{const e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,C.jsx)(st,{present:i||d,children:({present:r})=>(0,C.jsx)(ae.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&a})})});function xr(e,t){return`${e}-trigger-${t}`}function wr(e,t){return`${e}-content-${t}`}yr.displayName=br;var _r=fr,Cr=hr,Sr=vr,jr=yr,kr=r(3280),Rr=r(9861),Er=r(9068),Ar=r(8713),Or=e=>(0,C.jsx)(Ar.I,{viewBox:"0 0 24 24",...e,children:(0,C.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Pr=e=>(0,C.jsx)(Ar.I,{viewBox:"0 0 24 24",...e,children:(0,C.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Tr(e,t,r,o){(0,n.useEffect)(()=>{var n;if(!e.current||!o)return;const i=null!=(n=e.current.ownerDocument.defaultView)?n:window,a=Array.isArray(t)?t:[t],s=new i.MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&r(t)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}var Dr=r(1160);function Mr(e,t){const[r,o]=(0,n.useState)(!1),[i,a]=(0,n.useState)(null),[s,l]=(0,n.useState)(!0),c=(0,n.useRef)(null),u=()=>clearTimeout(c.current);!function(r,o){const a=(0,Dr.c)(()=>{"increment"===i&&e(),"decrement"===i&&t()});(0,n.useEffect)(()=>{let e=null;return null!==o&&(e=window.setInterval(()=>a(),o)),()=>{e&&window.clearInterval(e)}},[o,a])}(0,r?50:null);const d=(0,n.useCallback)(()=>{s&&e(),c.current=setTimeout(()=>{l(!1),o(!0),a("increment")},300)},[e,s]),p=(0,n.useCallback)(()=>{s&&t(),c.current=setTimeout(()=>{l(!1),o(!0),a("decrement")},300)},[t,s]),f=(0,n.useCallback)(()=>{l(!0),o(!1),u()},[]);return(0,n.useEffect)(()=>()=>u(),[]),{up:d,down:p,stop:f,isSpinning:r}}function Nr(e,t){let r=function(e){const t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e);const n=10**(null!=t?t:10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Br(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function Ir(e={}){const{onChange:t,precision:r,defaultValue:o,value:i,step:a=1,min:s=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,u=(0,Dr.c)(t),[d,p]=(0,n.useState)(()=>{var e;return null==o?"":null!=(e=Fr(o,a,r))?e:""}),f=void 0!==i,m=f?i:d,h=zr(Lr(m),a),g=null!=r?r:h,v=(0,n.useCallback)(e=>{e!==m&&(f||p(e.toString()),null==u||u(e.toString(),Lr(e)))},[u,f,m]),b=(0,n.useCallback)(e=>{let t=e;return c&&(t=function(e,t,r){return null==e?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}(t,s,l)),Nr(t,g)},[g,c,l,s]),y=(0,n.useCallback)((e=a)=>{let t;t=""===m?Lr(e):Lr(m)+e,t=b(t),v(t)},[b,a,v,m]),x=(0,n.useCallback)((e=a)=>{let t;t=""===m?Lr(-e):Lr(m)-e,t=b(t),v(t)},[b,a,v,m]),w=(0,n.useCallback)(()=>{var e;let t;t=null==o?"":null!=(e=Fr(o,a,r))?e:s,v(t)},[o,r,a,v,s]),_=(0,n.useCallback)(e=>{var t;const r=null!=(t=Fr(e,a,g))?t:s;v(r)},[g,a,v,s]),C=Lr(m);return{isOutOfRange:C>l||C<s,isAtMax:C===l,isAtMin:C===s,precision:g,value:m,valueAsNumber:C,update:v,reset:w,increment:y,decrement:x,clamp:b,cast:_,setValue:p}}function Lr(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function zr(e,t){return Math.max(Br(t),Br(e))}function Fr(e,t,r){const n=Lr(e);if(Number.isNaN(n))return;const o=zr(n,t);return Nr(n,null!=r?r:o)}var Hr=r(2364),Vr=r(6634),$r=r(8424),Ur=r(924),Wr=r(1269),qr=/^[Ee0-9+\-.]$/;function Zr(e){return qr.test(e)}var Yr=r(9918),Gr=r(8558),Xr=r(4403),Kr=r(7652),Jr=r(7907),Qr=r(6691),[en,tn]=(0,Gr.q)({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<NumberInput />\" "}),[rn,nn]=(0,Gr.q)({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),on=(0,Xr.R)(function(e,t){const r=(0,Kr.o5)("NumberInput",e),o=(0,Jr.MN)(e),i=(0,Yr.v)(o),{htmlProps:a,...s}=function(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:o=!0,min:i=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:l,isDisabled:c,isRequired:u,isInvalid:d,pattern:p="[0-9]*(.[0-9]+)?",inputMode:f="decimal",allowMouseWheel:m,id:h,onChange:g,precision:v,name:b,"aria-describedby":y,"aria-label":x,"aria-labelledby":w,onFocus:_,onBlur:C,onInvalid:S,getAriaValueText:j,isValidCharacter:k,format:R,parse:E,...A}=e,O=(0,Dr.c)(_),P=(0,Dr.c)(C),T=(0,Dr.c)(S),D=(0,Dr.c)(null!=k?k:Zr),M=(0,Dr.c)(j),N=Ir(e),{update:B,increment:I,decrement:L}=N,[z,F]=(0,n.useState)(!1),H=!(l||c),V=(0,n.useRef)(null),$=(0,n.useRef)(null),U=(0,n.useRef)(null),W=(0,n.useRef)(null),q=(0,n.useCallback)(e=>e.split("").filter(D).join(""),[D]),Z=(0,n.useCallback)(e=>{var t;return null!=(t=null==E?void 0:E(e))?t:e},[E]),Y=(0,n.useCallback)(e=>{var t;return(null!=(t=null==R?void 0:R(e))?t:e).toString()},[R]);(0,Vr.w)(()=>{(N.valueAsNumber>a||N.valueAsNumber<i)&&(null==T||T("rangeOverflow",Y(N.value),N.valueAsNumber))},[N.valueAsNumber,N.value,Y,T]),(0,$r.U)(()=>{if(V.current&&V.current.value!=N.value){const e=Z(V.current.value);N.setValue(q(e))}},[Z,q]);const G=(0,n.useCallback)((e=s)=>{H&&I(e)},[I,H,s]),X=(0,n.useCallback)((e=s)=>{H&&L(e)},[L,H,s]),K=Mr(G,X);Tr(U,"disabled",K.stop,K.isSpinning),Tr(W,"disabled",K.stop,K.isSpinning);const J=(0,n.useCallback)(e=>{if(e.nativeEvent.isComposing)return;const t=Z(e.currentTarget.value);B(q(t)),$.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}},[B,q,Z]),Q=(0,n.useCallback)(e=>{var t,r,n;null==O||O(e),$.current&&(e.target.selectionStart=null!=(r=$.current.start)?r:null==(t=e.currentTarget.value)?void 0:t.length,e.currentTarget.selectionEnd=null!=(n=$.current.end)?n:e.currentTarget.selectionStart)},[O]),ee=(0,n.useCallback)(e=>{if(e.nativeEvent.isComposing)return;(function(e,t){if(null==e.key)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(1===e.key.length&&!r)||t(e.key)})(e,D)||e.preventDefault();const t=te(e)*s,r={ArrowUp:()=>G(t),ArrowDown:()=>X(t),Home:()=>B(i),End:()=>B(a)}[e.key];r&&(e.preventDefault(),r(e))},[D,s,G,X,B,i,a]),te=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},re=(0,n.useMemo)(()=>{const e=null==M?void 0:M(N.value);return null!=e?e:N.value.toString()||void 0},[N.value,M]),ne=(0,n.useCallback)(()=>{let e=N.value;""!==N.value&&(/^[eE]/.test(N.value.toString())?N.setValue(""):(N.valueAsNumber<i&&(e=i),N.valueAsNumber>a&&(e=a),N.cast(e)))},[N,a,i]),oe=(0,n.useCallback)(()=>{F(!1),r&&ne()},[r,F,ne]),ie=(0,n.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=V.current)||e.focus()})},[t]),ae=(0,n.useCallback)(e=>{e.preventDefault(),K.up(),ie()},[ie,K]),se=(0,n.useCallback)(e=>{e.preventDefault(),K.down(),ie()},[ie,K]);(0,Hr.M)(()=>V.current,"wheel",e=>{var t,r;const n=(null!=(r=null==(t=V.current)?void 0:t.ownerDocument)?r:document).activeElement===V.current;if(!m||!n)return;e.preventDefault();const o=te(e)*s,i=Math.sign(e.deltaY);-1===i?G(o):1===i&&X(o)},{passive:!1});const le=(0,n.useCallback)((e={},t=null)=>{const r=c||o&&N.isAtMax;return{...e,ref:(0,Ur.Px)(t,U),role:"button",tabIndex:-1,onPointerDown:(0,Wr.Hj)(e.onPointerDown,e=>{0!==e.button||r||ae(e)}),onPointerLeave:(0,Wr.Hj)(e.onPointerLeave,K.stop),onPointerUp:(0,Wr.Hj)(e.onPointerUp,K.stop),disabled:r,"aria-disabled":(0,Wr.rq)(r)}},[N.isAtMax,o,ae,K.stop,c]),ce=(0,n.useCallback)((e={},t=null)=>{const r=c||o&&N.isAtMin;return{...e,ref:(0,Ur.Px)(t,W),role:"button",tabIndex:-1,onPointerDown:(0,Wr.Hj)(e.onPointerDown,e=>{0!==e.button||r||se(e)}),onPointerLeave:(0,Wr.Hj)(e.onPointerLeave,K.stop),onPointerUp:(0,Wr.Hj)(e.onPointerUp,K.stop),disabled:r,"aria-disabled":(0,Wr.rq)(r)}},[N.isAtMin,o,se,K.stop,c]),ue=(0,n.useCallback)((e={},t=null)=>{var r,n,o,s;return{name:b,inputMode:f,type:"text",pattern:p,"aria-labelledby":w,"aria-label":x,"aria-describedby":y,id:h,disabled:c,...e,readOnly:null!=(r=e.readOnly)?r:l,"aria-readonly":null!=(n=e.readOnly)?n:l,"aria-required":null!=(o=e.required)?o:u,required:null!=(s=e.required)?s:u,ref:(0,Ur.Px)(V,t),value:Y(N.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Number.isNaN(N.valueAsNumber)?void 0:N.valueAsNumber,"aria-invalid":(0,Wr.rq)(null!=d?d:N.isOutOfRange),"aria-valuetext":re,autoComplete:"off",autoCorrect:"off",onChange:(0,Wr.Hj)(e.onChange,J),onKeyDown:(0,Wr.Hj)(e.onKeyDown,ee),onFocus:(0,Wr.Hj)(e.onFocus,Q,()=>F(!0)),onBlur:(0,Wr.Hj)(e.onBlur,P,oe)}},[b,f,p,w,x,Y,y,h,c,u,l,d,N.value,N.valueAsNumber,N.isOutOfRange,i,a,re,J,ee,Q,P,oe]);return{value:Y(N.value),valueAsNumber:N.valueAsNumber,isFocused:z,isDisabled:c,isReadOnly:l,getIncrementButtonProps:le,getDecrementButtonProps:ce,getInputProps:ue,htmlProps:A}}(i),l=(0,n.useMemo)(()=>s,[s]);return(0,C.jsx)(rn,{value:l,children:(0,C.jsx)(en,{value:r,children:(0,C.jsx)(Qr.B.div,{...a,ref:t,className:(0,Wr.cx)("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...r.root}})})})});on.displayName="NumberInput",(0,Xr.R)(function(e,t){const r=tn();return(0,C.jsx)(Qr.B.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})}).displayName="NumberInputStepper";var an=(0,Xr.R)(function(e,t){const{getInputProps:r}=nn(),n=r(e,t),o=tn();return(0,C.jsx)(Qr.B.input,{...n,className:(0,Wr.cx)("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});an.displayName="NumberInputField";var sn=(0,Qr.B)("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}});(0,Xr.R)(function(e,t){var r;const n=tn(),{getDecrementButtonProps:o}=nn(),i=o(e,t);return(0,C.jsx)(sn,{...i,__css:n.stepper,children:null!=(r=e.children)?r:(0,C.jsx)(Or,{})})}).displayName="NumberDecrementStepper",(0,Xr.R)(function(e,t){var r;const{getIncrementButtonProps:n}=nn(),o=n(e,t),i=tn();return(0,C.jsx)(sn,{...o,__css:i.stepper,children:null!=(r=e.children)?r:(0,C.jsx)(Pr,{})})}).displayName="NumberIncrementStepper";const ln={activeType:"fixed_date",value:{fixed_date:{date:"",time:""},days_after:{days:0}}},cn=({target:e,contentTargets:t,onContentTargetsChange:r})=>{var n;if(["whole_site","masteriyo_courses","whole_site","masteriyo_courses","menu_items","files","custom_uri"].includes(e?.type))return null;const o=null!==(n=e?.drip)&&void 0!==n?n:ln,i=n=>{r(t.map(t=>t.id===e.id?{...t,drip:n}:t))},s=(e,t)=>{i({...o,activeType:"fixed_date",value:{...o.value,fixed_date:{...o?.value?.fixed_date,[e]:t}}})};return(0,C.jsxs)(Bt,{modal:!1,children:[(0,C.jsx)(It,{asChild:!0,children:(0,C.jsxs)("button",{type:"button",className:"urcr-drip__trigger",children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M11.09 6.545a.91.91 0 1 1 1.82 0v4.893l3.133 1.567a.91.91 0 0 1-.813 1.626l-3.637-1.818a.91.91 0 0 1-.502-.813V6.545Z"}),(0,C.jsx)("path",{d:"M20.182 12a8.182 8.182 0 1 0-16.364 0 8.182 8.182 0 0 0 16.364 0ZM22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"})]}),(0,a.__)("Drip This Content","user-registration")]})}),(0,C.jsx)(Lt,{children:(0,C.jsxs)(zt,{className:"urcr-drip__popover",side:"bottom",align:"end",sideOffset:10,collisionPadding:12,children:[(0,C.jsx)(Ft,{className:"urcr-drip__arrow"}),(0,C.jsxs)(_r,{className:"urcr-drip__tabs",value:o.activeType,onValueChange:e=>{i({...o,activeType:e})},children:[(0,C.jsxs)(Cr,{className:"urcr-drip__tabList",children:[(0,C.jsx)(Sr,{value:"fixed_date",className:"urcr-drip__tab",children:(0,a.__)("Fixed Date","user-registration")}),(0,C.jsx)(Sr,{value:"days_after",className:"urcr-drip__tab",children:(0,a.__)("Days After","user-registration")})]}),(0,C.jsxs)("div",{className:"urcr-drip__panels",children:[(0,C.jsx)(jr,{forceMount:!0,value:"fixed_date",hidden:"fixed_date"!==o.activeType,className:"urcr-drip__panel",children:(0,C.jsxs)(kr.T,{spacing:"12px",align:"stretch",children:[(0,C.jsx)(Rr.M,{children:(0,C.jsx)(Er.p,{type:"date",min:(()=>{const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`})(),className:"urcr-drip__input",value:o?.value?.fixed_date?.date,onChange:e=>s("date",e.target.value)})}),(0,C.jsx)(Rr.M,{children:(0,C.jsx)(Er.p,{type:"time",className:"urcr-drip__input",value:o?.value?.fixed_date?.time,onChange:e=>s("time",e.target.value)})})]})}),(0,C.jsx)(jr,{forceMount:!0,value:"days_after",hidden:"days_after"!==o.activeType,className:"urcr-drip__panel",children:(0,C.jsx)(on,{min:0,value:o?.value?.days_after?.days,onChange:(e,t)=>{return r=t,void i({...o,activeType:"days_after",value:{...o?.value,days_after:{days:Number.isFinite(r)?r:0}}});var r},children:(0,C.jsx)(an,{className:"urcr-drip__input"})})})]})]})]})})]})},un=({accessControl:e="access",onAccessControlChange:t,contentTargets:r=[],onContentTargetsChange:o,ruleType:i=null,rule:s=null,conditions:l})=>{const c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=e=>{const t={id:`x${Date.now()}`,type:e.value,label:e.label,value:"whole_site"===e.value?"whole_site":[],taxonomy:"taxonomy"===e.value?"":void 0,drip:{activeType:"fixed_date",value:{fixed_date:{date:"",time:""},days_after:{days:0}}}};o([...r,t])};(0,n.useEffect)(()=>{const r="membership"===i,n=u.current!==i;n&&(u.current=i),r&&"access"!==e?n&&t("access"):r||m()||"restrict"!==e||!n||t("access")},[i]),(0,n.useEffect)(()=>{c.current&&("access"===("membership"===i?"access":e)?(c.current.classList.add("urcr-access-content"),c.current.classList.remove("urcr-restrict-content")):(c.current.classList.add("urcr-restrict-content"),c.current.classList.remove("urcr-access-content")))},[e,i]);const p="membership"===i;return(0,C.jsxs)("div",{className:"urcr-target-selection-section ur-d-flex ur-align-items-start",children:[(0,C.jsx)("div",{className:"urcr-condition-value-input-wrapper",ref:c,children:p?(0,C.jsx)("span",{className:"urcr-access-control-button urcr-condition-value-input urcr-dropdown-button",children:(0,C.jsx)("span",{className:"urcr-dropdown-button-text",children:(0,a.__)("Access","user-registration")})}):(0,C.jsx)(Y,{buttonContent:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"urcr-dropdown-button-text",children:"membership"===i?(0,a.__)("Access","user-registration"):"restrict"===e?(0,a.__)("Restrict","user-registration"):(0,a.__)("Access","user-registration")}),(0,C.jsx)("span",{className:"urcr-dropdown-button-arrow dashicons dashicons-arrow-down-alt2"})]}),options:"membership"===i?[{value:"access",label:(0,a.__)("Access","user-registration")}]:[...m()?[{value:"restrict",label:(0,a.__)("Restrict","user-registration")}]:[],{value:"access",label:(0,a.__)("Access","user-registration")}].map(e=>({...e,disabled:!m()&&"restrict"===e.value})),value:e,onSelect:e=>{const r=e.value,n="membership"===i;n&&"restrict"===r||(n||m()||"restrict"!==r)&&(c.current&&("access"===r?(c.current.classList.add("urcr-access-content"),c.current.classList.remove("urcr-restrict-content")):(c.current.classList.add("urcr-restrict-content"),c.current.classList.remove("urcr-access-content"))),t(r))},buttonClassName:"urcr-access-control-button urcr-condition-value-input",wrapperClassName:"urcr-access-control-dropdown-wrapper"})}),(0,C.jsx)("span",{className:"urcr-arrow-icon","aria-hidden":"true"}),(0,C.jsxs)("div",{className:"ur-d-flex ur-flex-column",children:[r.length>0&&(0,C.jsx)("div",{className:"urcr-target-type-group",children:r.map(e=>{const t="whole_site"===e.type?(0,a.__)("Includes","user-registration"):e.label;return(0,C.jsxs)("div",{className:"urcr-target-item",style:{display:"masteriyo_courses"!==e.type||g()?"":"none"},children:[(0,C.jsxs)("span",{className:"urcr-target-type-label",children:[t.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),":"]}),(0,C.jsxs)("div",{className:"urcr-target-item--content-wrapper",children:[(0,C.jsx)(Z,{contentType:e.type,value:e.value,onChange:t=>((e,t)=>{const n=r.map(r=>r.id===e?{...r,value:t}:r);o(n)})(e.id,t)}),(0,C.jsxs)("div",{className:"urcr-target-item--content-buttons",children:[m()&&h()&&"membership"===i&&(0,C.jsx)(cn,{onContentTargetsChange:o,contentTargets:r,target:e}),(0,C.jsx)("button",{type:"button",className:"button-link urcr-target-remove",onClick:()=>(e=>{const t=r.filter(t=>t.id!==e);o(t)})(e.id),"aria-label":(0,a.__)("Remove","user-registration"),children:(0,C.jsx)("span",{className:"dashicons dashicons-no-alt"})})]})]})]},e.id)})}),(0,C.jsx)(Y,{buttonContent:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"dashicons dashicons-plus-alt2"}),(0,a.__)("Content","user-registration")]}),options:[],onSelect:d,buttonClassName:"button urcr-add-content-button",wrapperClassName:"urcr-content-dropdown-wrapper",renderDropdown:()=>(0,C.jsx)(H,{onSelect:d,existingContentTypes:r,conditions:l,accessControl:e})})]})]})},dn=(e=!1,t=null,r=!1,n=null,o=!1)=>{const i=f("condition_options",[{value:"membership",label:(0,a.__)("Membership","user-registration"),type:"multiselect"},{value:"roles",label:(0,a.__)("Roles","user-registration"),type:"multiselect"},{value:"user_registered_date",label:(0,a.__)("User Registered Date","user-registration"),type:"date"},{value:"access_period",label:(0,a.__)("Period after Registration","user-registration"),type:"period"},{value:"user_state",label:(0,a.__)("User State","user-registration"),type:"checkbox"},{value:"email_domain",label:(0,a.__)("Email Domain","user-registration"),type:"text"},{value:"post_count",label:(0,a.__)("Minimum Public Posts Count","user-registration"),type:"number"},{value:"capabilities",label:(0,a.__)("Capabilities","user-registration"),type:"multiselect"},{value:"registration_source",label:(0,a.__)("Registration Source","user-registration"),type:"multiselect"},{value:"ur_form_field",label:(0,a.__)("UR Form Field","user-registration"),type:"multiselect"}]),s=m(),l="membership"===t,c=o?l&&r||"membership"===n&&o:l&&r;let u;if(u=s?i:i.filter(e=>"roles"===e.value||"user_state"===e.value||c&&"membership"===e.value),c||(u=u.filter(e=>"membership"!==e.value)),o&&n){const e=i.find(e=>e.value===n);e&&!u.find(e=>e.value===n)&&u.push(e)}return u},pn=({onSelect:e,isMigrated:t=!1,ruleType:r=null,isFirstCondition:n=!1})=>{const o=(e=>{const t={Membership:[],"User Based":[],"User Assets Based":[],Others:[]};return e.forEach(e=>{"membership"===e.value?t.Membership.push(e):["roles","user_registered_date","access_period","user_state"].includes(e.value)?t["User Based"].push(e):["email_domain","post_count"].includes(e.value)?t["User Assets Based"].push(e):t.Others.push(e)}),Object.entries(t).filter(([e,t])=>t.length>0).map(([e,t])=>({group:(0,a.__)(e,"user-registration"),options:t}))})(dn(t,r,n,null,!1));return(0,C.jsx)(F,{options:o,onSelect:e,grouped:!0})},fn=({field:e,value:t,onChange:r,uniqueId:n,disabled:o=!1})=>{const i=f("labels",{}),s="user_state"===e?[{value:"logged-in",label:i.logged_in||(0,a.__)("Logged In","user-registration")},{value:"logged-out",label:i.logged_out||(0,a.__)("Logged Out","user-registration")}]:[];let l=Array.isArray(t)?t[0]||"":t||"";"user_state"===e&&("logged_in"===l?l="logged-in":"logged_out"===l&&(l="logged-out"));const c=n?`urcr-radio-${e}-${n}`:`urcr-radio-${e}-${Date.now()}`;return(0,C.jsx)("div",{className:"urcr-checkbox-radio-group",children:s.map(e=>{const t=l===e.value;return(0,C.jsxs)("label",{className:"urcr-checkbox-radio-option "+(t?"is-checked":""),children:[(0,C.jsx)("input",{type:"radio",name:c,value:e.value,checked:t,onChange:e=>{return t=e.target.value,void r(t);var t},className:"urcr-checkbox-radio-input",disabled:o}),(0,C.jsx)("span",{className:"urcr-checkbox-radio-label",children:e.label})]},e.value)})})},mn=({value:e,onChange:t,disabled:r=!1})=>{const[o,i]=(0,n.useState)(e&&"object"==typeof e?{select:e.select||"During",input:e.input||""}:{select:"During",input:""});return(0,n.useEffect)(()=>{i(e&&"object"==typeof e?{select:e.select||"During",input:e.input||""}:{select:"During",input:""})},[e]),(0,C.jsxs)("div",{className:"urcr-period-input-group",children:[(0,C.jsxs)("select",{className:"urcr-period-select urcr-condition-value-select",value:o.select,onChange:e=>{const r={...o,select:e.target.value};i(r),t(r)},disabled:r,children:[(0,C.jsx)("option",{value:"During",children:(0,a.__)("During","user-registration")}),(0,C.jsx)("option",{value:"After",children:(0,a.__)("After","user-registration")})]}),(0,C.jsx)("input",{type:"number",className:"urcr-period-number urcr-condition-value-input urcr-condition-value-number",value:o.input,onChange:e=>{const r={...o,input:e.target.value};i(r),t(r)},min:"0",placeholder:(0,a.__)("Days","user-registration"),disabled:r})]})},hn=({value:e,onChange:t,disabled:r=!1})=>{const o=(0,n.useRef)(null),i=(0,n.useRef)(null),s=(0,n.useRef)(t),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),[d,p]=(0,n.useState)(!1),m=f("condition_options",[]).find(e=>"user_registered_date"===e.value),h=m?.date_type_options||[{value:"before",label:(0,a.__)("Before","user-registration")},{value:"after",label:(0,a.__)("After","user-registration")},{value:"range",label:(0,a.__)("Range","user-registration")}],g=e=>e?"string"==typeof e?{value:e,type:"range"}:"object"==typeof e&&void 0!==e.value&&void 0!==e.type?{value:e.value||"",type:e.type||"range"}:{value:"",type:"range"}:{value:"",type:"range"},v=(e=>{const t=g(e);return{dateType:t.type,dateValue:t.value}})(e),[b,y]=(0,n.useState)(v.dateType),[x,w]=(0,n.useState)(v.dateValue);(0,n.useEffect)(()=>{l.current=b},[b]);const _=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,S=(e,t)=>e&&"string"==typeof e?"range"===t?e.split(" to ").filter(e=>e.trim()):e.trim()?[e.trim()]:[]:[],j=(e,t)=>{const r={value:e||"",type:t||"range"};s.current(r)};return(0,n.useEffect)(()=>{s.current=t},[t]),(0,n.useEffect)(()=>{const t=g(e);t.type===b&&t.value===x||(y(t.type),w(t.value))},[e]),(0,n.useEffect)(()=>{if(!o.current||"undefined"==typeof window)return;const t=()=>{if(!window.flatpickr)return void setTimeout(t,100);i.current&&(i.current.destroy(),i.current=null);const n=g(e),a=null!==c.current?"string"==typeof c.current?c.current:c.current.value:n.value,s=null!==c.current&&"object"==typeof c.current?c.current.type:b,d=null!==c.current,f=S(a,s);i.current=window.flatpickr(o.current,{mode:"range"===s?"range":"single",dateFormat:"Y-m-d",disableMobile:!0,defaultDate:f.length>0?f:null,onChange:e=>{const t=l.current;if("range"===t){if(2===e.length){const t=_(e[0]),r=_(e[1]);j(`${t} to ${r}`,"range"),u.current=null}}else if(1===e.length){const r=_(e[0]);j(r,t)}},onClose:e=>{"range"===l.current&&e&&1===e.length&&setTimeout(()=>{i.current&&!i.current.isOpen&&i.current.open()},50)}}),p(!0),d&&(c.current=null),r&&i.current.set("clickOpens",!1)};return t(),()=>{i.current&&(i.current.destroy(),i.current=null,p(!1))}},[b]),(0,n.useEffect)(()=>{if(!i.current||!d)return;if(null!==c.current)return;const t=g(e),r=S(t.value,t.type);r.length>0?i.current.setDate(r,!1):i.current.clear()},[e,b,d]),(0,n.useEffect)(()=>{i.current&&(r?i.current.set("clickOpens",!1):i.current.set("clickOpens",!0))},[r]),(0,C.jsxs)("div",{className:"urcr-date-input-group ur-d-flex",style:{flexDirection:"column",alignItems:"flex-start",gap:"8px"},children:[(0,C.jsx)("select",{className:"urcr-date-type-select urcr-condition-value-select",value:b,onChange:t=>{const r=t.target.value,n=g(e).value;let o="";if(("before"===r||"after"===r)&&n&&n.includes(" to ")){u.current=n;const e=n.split(" to ");e.length>0&&e[0].trim()&&(o=e[0].trim())}else"range"===r&&n&&!n.includes(" to ")?u.current?(o=u.current,u.current=null):o=n:"range"!==r||n?o=n:(u.current=null,o="");c.current={value:o,type:r},y(r),w(o),j(o,r)},disabled:r,children:h.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,C.jsx)("input",{ref:o,type:"text",className:"urcr-date-range-input urcr-condition-value-input urcr-condition-value-date",readOnly:!0,disabled:r||!d,style:{pointerEvents:d?"auto":"none"},placeholder:"range"===b?(0,a.__)("Select date range","user-registration"):"before"===b?(0,a.__)("Select date (before)","user-registration"):(0,a.__)("Select date (after)","user-registration")})]})},gn=({type:e,field:t,value:r,operator:o,onChange:i,uniqueId:s,disabled:l=!1,placeholder:c=""})=>{p();const u=(e,r)=>{if("multiselect"===r)return Array.isArray(e)?e:e?[e]:[];if("checkbox"===r){let r;return r=Array.isArray(e)?e.length>0?e[0]:"":e||"","user_state"===t&&("logged_in"===r?r="logged-in":"logged_out"===r&&(r="logged-out")),r}return e||""},[d,m]=(0,n.useState)(u(r,e)),h=(0,n.useRef)(null);(0,n.useEffect)(()=>{m(u(r,e))},[r,e]);const g=e=>{m(e),i(e)};if((0,n.useLayoutEffect)(()=>{if("multiselect"===e&&h.current){const e=window.jQuery(h.current);e.hasClass("select2-hidden-accessible")&&e.select2("destroy");var t=!1;return e.select2({containerCssClass:e.data("select2_class"),disabled:l}).on("select2:selecting",function(){t=!0}).on("select2:unselecting",function(){t=!0}).on("select2:closing",function(){if(t&&this.multiple)return t=!1,!1}).on("change",function(e){const t=Array.from(e.target.selectedOptions,e=>e.value);g(t)}),Array.isArray(d)&&d.length>0&&e.val(d).trigger("change"),l?e.prop("disabled",!0):e.prop("disabled",!1),()=>{e&&e.hasClass("select2-hidden-accessible")&&(e.off("change select2:selecting select2:unselecting select2:closing"),e.select2("destroy"))}}},[e,t,l]),(0,n.useEffect)(()=>{if("multiselect"===e&&h.current){const e=window.jQuery(h.current);if(e.hasClass("select2-hidden-accessible")){const t=e.val()||[],r=Array.isArray(t)?t:t?[t]:[],n=Array.isArray(d)?d:d?[d]:[];JSON.stringify(r.sort())!==JSON.stringify(n.sort())&&e.val(d).trigger("change")}}},[d,e]),(0,n.useEffect)(()=>{if("multiselect"===e&&h.current){const e=window.jQuery(h.current);e.hasClass("select2-hidden-accessible")&&(l?e.prop("disabled",!0):e.prop("disabled",!1))}},[l,e]),"empty"===o||"not empty"===o)return null;switch(e){case"checkbox":return(0,C.jsx)(fn,{field:t,value:d,onChange:g,uniqueId:s,disabled:l});case"multiselect":const e=(()=>{const e=f("labels",{});switch(t){case"membership":const t=f("memberships",{});return Object.entries(t).map(([e,t])=>({value:e,label:t||e}));case"roles":const r=f("wp_roles",{});return Object.entries(r).map(([e,t])=>({value:e,label:t||e}));case"capabilities":const n=f("wp_capabilities",{});return Object.entries(n).map(([e,t])=>({value:e,label:t||e}));case"registration_source":const o=f("registration_sources",{});return Object.entries(o).map(([e,t])=>({value:e,label:t||e}));case"ur_form_field":const i=f("ur_forms",{}),s=f("ur_form_data",{}),l=[];return Object.entries(s).forEach(([e,t])=>{t&&"object"==typeof t&&Object.entries(t).forEach(([t,r])=>{l.push({value:`${e}:${t}`,label:`${i[e]||e} - ${r||t}`})})}),l.length>0?l:[];case"user_state":return[{value:"logged-in",label:e.logged_in||(0,a.__)("Logged In","user-registration")},{value:"logged-out",label:e.logged_out||(0,a.__)("Logged Out","user-registration")}];default:return[]}})(),r=Array.isArray(d)?d:d?[d]:[],n=e=>{const t=Array.from(e.target.selectedOptions,e=>e.value);g(t)};return(0,C.jsx)("select",{ref:h,className:"components-select-control__input urcr-enhanced-select2 urcr-condition-value-select urcr-condition-value-select--multiselect",value:r,onChange:n,multiple:!0,disabled:l,children:0===e.length?(0,C.jsx)("option",{value:"",disabled:!0,children:(0,a.__)("No options available","user-registration")}):e.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))});case"date":return"user_registered_date"===t?(0,C.jsx)(hn,{value:d,onChange:g,disabled:l}):(0,C.jsx)("input",{type:"date",className:"components-text-control__input urcr-condition-value-input urcr-condition-value-date",value:d,onChange:e=>g(e.target.value)});case"period":return(0,C.jsx)(mn,{value:d,onChange:g,disabled:l});case"number":return(0,C.jsx)("input",{type:"number",className:"components-text-control__input urcr-condition-value-input urcr-condition-value-number",value:d,onChange:e=>g(e.target.value),placeholder:c||(0,a.__)("Enter value","user-registration"),disabled:l,min:"post_count"===t?0:void 0});default:return(0,C.jsx)("input",{type:"text",className:"components-text-control__input urcr-condition-value-input urcr-condition-value-text",value:d,onChange:e=>g(e.target.value),placeholder:c||(0,a.__)("Enter value","user-registration"),disabled:l})}},vn=({condition:e,onUpdate:t,disabled:r=!1})=>{const[o,i]=(0,n.useState)(""),[s,l]=(0,n.useState)([]),c=(0,n.useRef)(null),u=(0,n.useRef)(!1),d=(0,n.useRef)({formId:"",formFields:[]}),p=f("ur_forms",{}),m=f("ur_form_data",{});(0,n.useEffect)(()=>{const t=e.conditionValue,r=t&&"object"==typeof t?{form_id:t.form_id||"",form_fields:Array.isArray(t.form_fields)?t.form_fields:[]}:{form_id:"",form_fields:[]},n=c.current;if(n&&"object"==typeof n){const e={form_id:n.form_id||"",form_fields:Array.isArray(n.form_fields)?n.form_fields:[]};if(r.form_id===e.form_id&&JSON.stringify(r.form_fields)===JSON.stringify(e.form_fields))return}const o=d.current;r.form_id===o.formId&&JSON.stringify(r.form_fields)===JSON.stringify(o.formFields)||(u.current=!0,i(r.form_id),l(r.form_fields),d.current={formId:r.form_id,formFields:r.form_fields},requestAnimationFrame(()=>{u.current=!1}))},[e.conditionValue]),(0,n.useEffect)(()=>{if(u.current)return;const r={form_id:o||"",form_fields:s};d.current={formId:r.form_id,formFields:r.form_fields};const n=c.current;if(n&&"object"==typeof n){const e=n.form_id||"",t=Array.isArray(n.form_fields)?n.form_fields:[];if(r.form_id===e&&JSON.stringify(r.form_fields)===JSON.stringify(t))return}c.current=r,t({...e,conditionValue:r})},[o,s,e,t]);const h=()=>{l([...s,{field_name:"",operator:"is",value:""}])},g=(e,t)=>{const r=s.map((r,n)=>n===e?{...r,...t}:r);l(r)},v=[{value:"is",label:(0,a.__)("is","user-registration")},{value:"is not",label:(0,a.__)("is not","user-registration")},{value:"empty",label:(0,a.__)("empty","user-registration")},{value:"not empty",label:(0,a.__)("not empty","user-registration")}],b=Object.entries(p).map(([e,t])=>({value:e,label:t||e})),y=(()=>{if(!o||!m[o])return[];const e=m[o];return Object.entries(e).map(([e,t])=>({value:e,label:t||e}))})();return(0,C.jsxs)("div",{className:"urcr-ur-form-field-condition",children:[(0,C.jsx)("div",{className:"urcr-form-selection ur-d-flex ur-align-items-center ur-g-4 ur-mb-2",children:(0,C.jsxs)("select",{className:"components-select-control__input urcr-condition-value-input",value:o,onChange:e=>{const t=e.target.value;i(t),l(t?[{field_name:"",operator:"is",value:""}]:[])},disabled:r,children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select a form","user-registration")}),b.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]})}),o&&(0,C.jsx)("div",{className:"urcr-form-fields-list",children:s.map((e,t)=>(0,C.jsxs)("div",{className:"urcr-form-field-row ur-d-flex ur-align-items-center ur-mb-2",children:[(0,C.jsx)("div",{className:"urcr-form-field-name",children:(0,C.jsxs)("select",{className:"components-select-control__input urcr-condition-value-input",value:e.field_name||"",onChange:e=>g(t,{field_name:e.target.value}),disabled:r,children:[(0,C.jsx)("option",{value:"",children:(0,a.__)("Select field","user-registration")}),y.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))]})}),(0,C.jsx)("div",{className:"urcr-form-field-operator",children:(0,C.jsx)("select",{className:"components-select-control__input urcr-condition-value-input",value:e.operator||"is",onChange:r=>g(t,{operator:r.target.value,value:"empty"===r.target.value||"not empty"===r.target.value?"":e.value}),disabled:r,children:v.map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))})}),"empty"!==e.operator&&"not empty"!==e.operator&&(0,C.jsx)("div",{className:"urcr-form-field-value ur-flex-1",style:{minWidth:0},children:(0,C.jsx)("input",{type:"text",className:"components-text-control__input urcr-condition-value-input urcr-condition-value-text",value:e.value||"",onChange:e=>g(t,{value:e.target.value}),placeholder:(0,a.__)("Enter value","user-registration"),disabled:r,style:{width:"150px"}})}),(0,C.jsx)("button",{type:"button",className:"button urcr-add-field-button",onClick:h,disabled:r,"aria-label":(0,a.__)("Add field","user-registration"),style:{minWidth:"32px",width:"32px",padding:"0"},children:(0,C.jsx)("span",{className:"dashicons dashicons-plus-alt2"})}),(0,C.jsx)("button",{type:"button",className:"button urcr-remove-field-button",onClick:()=>(e=>{l(s.filter((t,r)=>r!==e))})(t),disabled:r||1===s.length,"aria-label":(0,a.__)("Remove field","user-registration"),style:{minWidth:"32px",width:"32px",padding:"0"},children:(0,C.jsx)("span",{className:"dashicons dashicons-minus"})})]},t))})]})},bn=({condition:e,onUpdate:t,isMigrated:r=!1,isLocked:o=!1,ruleType:i=null,isFirstCondition:a=!1})=>{const[s]=(0,n.useState)(e.operator||"is"),[l,c]=(0,n.useState)(e.conditionValue||""),u=(0,n.useRef)(null),d=dn(r,i,a,e.value,!0).find(t=>t.value===e.value),p=d?.operator_label||s,f=d?.placeholder||"";(0,n.useEffect)(()=>{t({...e,operator:s,conditionValue:l})},[s,l]),(0,n.useEffect)(()=>{if(void 0!==e.conditionValue)c(e.conditionValue);else{const t=e.inputType||e.type;c("multiselect"===t?[]:"")}},[e.inputType,e.type,e.value]),(0,n.useEffect)(()=>{u.current&&u.current.value!==e.value&&(u.current.value=e.value||"")},[e.value]);const m=n=>{const o=n.target.value,s=dn(r,i,a,e.value,!0).find(e=>e.value===o);if(s){let r="";r="ur_form_field"===s.value?{form_id:"",form_fields:[]}:"multiselect"===s.type?[]:"";const n={...e,value:s.value,label:s.label,inputType:s.type,type:e.type||"condition",conditionValue:r};c(r),t(n)}};return"ur_form_field"===e.value?(0,C.jsx)("div",{className:"urcr-condition-row ur-d-flex ur-mt-2 ur-align-items-start",children:(0,C.jsx)("div",{className:"urcr-condition-only ur-d-flex ur-align-items-start",children:(0,C.jsxs)("div",{className:"urcr-condition-selection-section ur-d-flex ur-align-items-center ur-g-4",children:[(0,C.jsx)("div",{className:"urcr-condition-field-name",children:(0,C.jsx)("select",{ref:u,className:"components-select-control__input urcr-condition-value-input",value:e.value||"",onChange:m,disabled:o,children:dn(r,i,a,e.value,!0).map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,C.jsx)("div",{className:"urcr-condition-operator ur-align-self-center",children:(0,C.jsx)("span",{children:p})}),(0,C.jsx)("div",{className:"urcr-condition-value ur-flex-1",children:(0,C.jsx)(vn,{condition:e,onUpdate:t,disabled:o})})]})})}):(0,C.jsx)("div",{className:"urcr-condition-row ur-d-flex ur-mt-2 ur-align-items-start",children:(0,C.jsx)("div",{className:"urcr-condition-only ur-d-flex ur-align-items-start",children:(0,C.jsxs)("div",{className:"urcr-condition-selection-section ur-d-flex ur-align-items-center ur-g-4",children:[(0,C.jsx)("div",{className:"urcr-condition-field-name",children:(0,C.jsx)("select",{ref:u,className:"components-select-control__input urcr-condition-value-input",value:e.value||"",onChange:m,disabled:o,children:dn(r,i,a,e.value,!0).map(e=>(0,C.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,C.jsx)("div",{className:"urcr-condition-operator",children:(0,C.jsx)("span",{children:p})}),(0,C.jsx)("div",{className:"urcr-condition-value",children:(0,C.jsx)(gn,{type:e.inputType||e.type,field:e.value,value:l,operator:s,onChange:e=>{c(e)},uniqueId:e.id,disabled:o,placeholder:f})})]})})})},yn=({logicGate:e="AND",onLogicGateChange:t})=>{const r=e=>{t&&t(e)};return(0,C.jsxs)("div",{className:"urcr-advanced-logic-gates",children:[(0,C.jsx)("label",{className:"urcr-advanced-logic-label",children:(0,a.__)("Add Logic:","user-registration")}),(0,C.jsxs)("div",{className:"urcr-logic-gate-buttons",children:[(0,C.jsx)("button",{type:"button",className:"urcr-logic-gate-button "+("AND"===e?"active":""),onClick:()=>r("AND"),title:(0,a.__)("AND","user-registration"),children:(0,a.__)("AND","user-registration")}),(0,C.jsx)("button",{type:"button",className:"urcr-logic-gate-button "+("OR"===e?"active":""),onClick:()=>r("OR"),title:(0,a.__)("OR","user-registration"),children:(0,a.__)("OR","user-registration")}),(0,C.jsx)("button",{type:"button",className:"urcr-logic-gate-button "+("NOT"===e?"active":""),onClick:()=>r("NOT"),title:(0,a.__)("NOT","user-registration"),children:(0,a.__)("NOT","user-registration")})]})]})},xn=({group:e,onGroupUpdate:t,onGroupRemove:r,isNested:o=!1,accessControl:i,onAccessControlChange:s,contentTargets:l,onContentTargetsChange:c,isMigrated:u=!1,ruleType:d=null,rule:p=null})=>{const[f,h]=(0,n.useState)([]),[g,b]=(0,n.useState)(e.logic_gate||"AND"),y=Boolean(p?.is_advanced_logic_enabled||!1),x="membership"===d;(0,n.useEffect)(()=>{if(e.conditions&&e.conditions.length>0){const t=e.conditions.map(e=>{if("group"===e.type)return{type:"group",id:e.id,group:e};{let t=e.value;const r=(e=>({roles:"multiselect",membership:"multiselect",capabilities:"multiselect",registration_source:"multiselect",ur_form_field:"multiselect",user_state:"checkbox",user_registered_date:"date",access_period:"period",email_domain:"text",post_count:"number"}[e]||"text"))(e.type);return"registration_source"===e.type?(Array.isArray(t)||(t=t?[t]:[]),{type:"condition",id:e.id||`x${Date.now()}`,value:"registration_source",label:"registration_source",inputType:"multiselect",operator:"is",conditionValue:t}):"ur_form_field"===e.type?(t=t&&"object"==typeof t&&t.form_id?{form_id:t.form_id||"",form_fields:Array.isArray(t.form_fields)?t.form_fields:[]}:{form_id:"",form_fields:[]},{type:"condition",id:e.id||`x${Date.now()}`,value:"ur_form_field",label:"ur_form_field",inputType:"multiselect",operator:"is",conditionValue:t}):("urm"===e.type?"string"==typeof t&&t||(t=t&&"object"==typeof t&&t.form_id?{form_id:t.form_id||"",form_fields:Array.isArray(t.form_fields)?t.form_fields:[]}:""):"user_state"===e.type?(Array.isArray(t)&&(t=t[0]||""),"logged_in"===t?t="logged-in":"logged_out"===t&&(t="logged-out")):t||(t="multiselect"===r?[]:""),{type:"condition",id:e.id||`x${Date.now()}`,value:e.type,label:e.type,inputType:r,operator:"is",conditionValue:t})}});h(t)}else h([]);!y||x?b("AND"):e.logic_gate&&b(e.logic_gate)},[e.id,y,x]),(0,n.useEffect)(()=>{y||"AND"===g||b("AND")},[y,g]);const w=e=>{let t="";"ur_form_field"===e.value?t={form_id:"",form_fields:[]}:("multiselect"===e.type||"checkbox"===e.type&&"user_state"!==e.value)&&(t=[]);const r={type:"condition",id:`x${Date.now()}`,value:e.value,label:e.label,inputType:e.type,operator:"is",conditionValue:t};h([...f,r])},_=e=>{h(f.map(t=>t.id===e.id?e:t))},S=e=>{h(f.filter(t=>t.id!==e))};return(0,n.useEffect)(()=>{const r=f.map(e=>{if("group"===e.type)return e.group;{let t=e.conditionValue;return"urm"===e.value?"object"==typeof t&&null!==t?t=t.form_id&&Array.isArray(t.form_fields)?{form_id:t.form_id,form_fields:t.form_fields.filter(e=>e.field_name&&e.operator)}:t.form_id?t.form_id:"":"string"==typeof t||(t=""):"registration_source"===e.value?t=Array.isArray(t)?t:t?[t]:[]:"ur_form_field"===e.value&&"object"==typeof t?t=t.form_id&&Array.isArray(t.form_fields)?{form_id:t.form_id,form_fields:t.form_fields.filter(e=>e.field_name&&e.operator)}:{form_id:"",form_fields:[]}:"user_state"===e.value?t=Array.isArray(t)?t[0]||"":t||"":"multiselect"===e.inputType||"checkbox"===e.inputType?t=Array.isArray(t)?t:t?[t]:[]:"empty"!==e.operator&&"not empty"!==e.operator||(t=null),{type:e.value,id:e.id,value:t}}}),n={id:e.id,type:"group",logic_gate:y&&!x?g:"AND",conditions:r};t(n)},[f,g,e.id,y,x]),(0,C.jsxs)("div",{className:"urcr-content-group "+(o?"urcr-nested-group":""),children:[y&&!x&&(0,C.jsx)(yn,{logicGate:g,onLogicGateChange:b}),(0,C.jsxs)("div",{className:"urcr-rule-body ur-p-2",children:[(0,C.jsxs)("div",{className:"urcr-condition-row-parent",children:[f.length>0&&(0,C.jsxs)("div",{className:"urcr-conditions-list "+(y&&!x?"urcr-conditional-logic-definitions":""),children:[y&&!x&&(0,C.jsx)("div",{className:`urcr-condition-logic-gate-wrapper urcr-logic-group-rule-${g} ${1===f.length?"urcr-single-condition":""}`,children:(0,C.jsx)("div",{className:`urcr-condition-logic-gate-button urcr-sub-logic-group-rule-${g}`,children:g})}),f.map((e,t)=>{if("group"===e.type)return y?(0,C.jsxs)("div",{className:"urcr-condition-wrapper",children:[(0,C.jsx)(xn,{group:e.group,onGroupUpdate:t=>((e,t)=>{h(f.map(r=>r.id===e?{...r,group:t}:r))})(e.id,t),onGroupRemove:()=>S(e.id),isNested:!0,isMigrated:u,ruleType:d,rule:p}),!x&&(0,C.jsx)("button",{type:"button",className:"button button-link-delete",onClick:()=>S(e.id),"aria-label":(0,a.__)("Remove group","user-registration"),children:(0,C.jsx)("span",{className:"dashicons dashicons-no-alt"})})]},e.id):null;{const r=(x||u)&&0===t,n=!x&&!u||!r||v();return(0,C.jsxs)("div",{className:"urcr-condition-wrapper",children:[(0,C.jsx)(bn,{condition:e,onUpdate:_,isMigrated:u,isLocked:r,ruleType:d,isFirstCondition:r}),n&&(0,C.jsx)("button",{type:"button",className:"button button-link-delete",onClick:()=>{return t=e.id,void h(f.filter(e=>e.id!==t));var t},"aria-label":(0,a.__)("Remove condition","user-registration"),children:(0,C.jsx)("span",{className:"dashicons dashicons-no-alt"})})]},e.id)}}),p&&p?.is_global&&(0,C.jsx)("div",{className:"urcr-condition-wrapper urcr-global-migration-notice",children:(0,C.jsxs)("p",{className:"urcr-notice-wrap",children:[(0,C.jsx)("span",{style:{fontWeight:"bold"},children:"Note:"}),(0,a.__)(" For partial content restriction with the above condition, use the ","user-registration"),(0,C.jsx)("span",{style:{fontWeight:"bold"},children:"[urcr_restrict]...[/urcr_restrict]"}),(0,a.__)(" shortcode. It may be deprecated","user-registration"),(0,a.__)("—use the Content Restriction block instead","user-registration"),"."]})})]}),!o&&f.length>0&&i&&(0,C.jsx)(un,{accessControl:i,onAccessControlChange:s,contentTargets:l,onContentTargetsChange:c,ruleType:d,rule:p,conditions:f})]}),(0,C.jsxs)("div",{className:"urcr-buttons-wrapper",style:{display:"flex",gap:"10px",marginTop:"10px"},children:[m()&&!x&&!u&&(0,C.jsx)(Y,{buttonContent:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"dashicons dashicons-plus-alt2"}),(0,a.__)("Condition","user-registration")]}),options:[],onSelect:w,buttonClassName:"button urcr-add-condition-button",wrapperClassName:"urcr-condition-dropdown-wrapper",renderDropdown:()=>(0,C.jsx)(pn,{onSelect:w,isMigrated:u,ruleType:d,isFirstCondition:x&&0===f.length})}),m()&&y&&!x&&!u&&(0,C.jsxs)("button",{type:"button",className:"button urcr-add-group-button",onClick:()=>{const e=`x${Date.now()}`,t={type:"group",id:e,group:{id:e,type:"group",logic_gate:"AND",conditions:[]}};h([...f,t])},children:[(0,C.jsx)("span",{className:"dashicons dashicons-plus-alt2"}),(0,a.__)("Group","user-registration")]})]})]})]})},wn=xn,{adminURL:Cn}="undefined"!=typeof _URCR_DASHBOARD_&&_URCR_DASHBOARD_,Sn=({rule:e,onRuleUpdate:t,isToggling:r=!1})=>{const[o,i]=(0,n.useState)(!1),[s,l]=(0,n.useState)(null),[c,u]=(0,n.useState)(e.access_control||e.content&&e.content.access_control||"access"),[d,f]=(0,n.useState)([]),m=(0,n.useRef)(e.id),h=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(m.current!==e.id||null===s)if(m.current=e.id,h.current=!0,e.logic_map){const t={id:e.logic_map.id||`x${Date.now()}`,type:"group",logic_gate:e.logic_map.logic_gate||"AND",conditions:e.logic_map.conditions||[]};l(t);const r=e.access_control||e.content&&e.content.access_control;if(r&&u(r),e.target_contents&&Array.isArray(e.target_contents)&&e.target_contents.length>0){const t=e.target_contents.map(e=>{let t=e.type;"wp_pages"===t&&(t="pages"),"wp_posts"===t&&(t="posts");let r=e.value||("whole_site"===t?"whole_site":[]);return"taxonomy"===t&&e.taxonomy&&(r={taxonomy:e.taxonomy,value:Array.isArray(e.value)?e.value:[]}),{id:e.id||`x${Date.now()}`,type:t,label:g(t),value:r,drip:e.drip}});f(t)}}else l({id:`x${Date.now()}`,type:"group",logic_gate:"AND",conditions:[]})},[e.id]),(0,n.useEffect)(()=>{const t=e.access_control||e.content&&e.content.access_control;t&&t!==c&&(h.current=!0,u(t))},[e.access_control,e.content]),p();const g=e=>({wp_pages:(0,a.__)("Pages","user-registration"),wp_posts:(0,a.__)("Posts","user-registration"),post_types:(0,a.__)("Post Types","user-registration"),taxonomy:(0,a.__)("Taxonomy","user-registration"),whole_site:(0,a.__)("Whole Site","user-registration")}[e]||e),v=Boolean(e.is_advanced_logic_enabled||!1),b=(0,n.useRef)(!1),y=(0,n.useRef)(null);return(0,n.useEffect)(()=>{b.current=!1,y.current=null},[e.id]),(0,n.useEffect)(()=>{if(!s)return;if(h.current)return y.current={rootGroup:JSON.stringify(s),contentTargets:JSON.stringify(d),accessControl:c},b.current=!0,void(h.current=!1);if(!b.current)return b.current=!0,void(y.current={rootGroup:JSON.stringify(s),contentTargets:JSON.stringify(d),accessControl:c});const r={rootGroup:JSON.stringify(s),contentTargets:JSON.stringify(d),accessControl:c};if(y.current&&y.current.rootGroup===r.rootGroup&&y.current.contentTargets===r.contentTargets&&y.current.accessControl===r.accessControl)return;const n=(()=>{if(!s)return null;const t=d.map(e=>{let t=e.type;"pages"===t&&(t="wp_pages"),"posts"===t&&(t="wp_posts");const r={id:e.id||`x${Date.now()}`,type:t,drip:e.drip};return"taxonomy"===t?e.value&&"object"==typeof e.value&&e.value.taxonomy?(r.taxonomy=e.value.taxonomy,r.value=Array.isArray(e.value.value)?e.value.value:[]):(r.taxonomy=e.taxonomy||"",r.value=Array.isArray(e.value)?e.value:[]):"whole_site"!==t&&(r.value=Array.isArray(e.value)?e.value:[]),r}),r=s.conditions||[],n={type:"group",id:s.id||e.logic_map?.id||`x${Date.now()}`,conditions:r};return v&&(n.logic_gate=s.logic_gate||e.logic_map?.logic_gate||"AND"),{targetContents:t,logicMap:n}})();if(n){const r=e.content||e,o=e.actions||e.content&&e.content.actions||r.actions||[];if(t){const r={...e,access_control:c,logic_map:n.logicMap,target_contents:n.targetContents,actions:o,content:{...e.content||{},access_control:c,logic_map:n.logicMap,target_contents:n.targetContents,actions:o}};t(r)}}y.current=r},[s,d,c]),s?(0,C.jsxs)("div",{className:"urcr-rule-content-panel",children:[(0,C.jsx)(wn,{group:s,onGroupUpdate:e=>{l(e)},onGroupRemove:()=>{},isNested:!1,accessControl:c,onAccessControlChange:u,contentTargets:d,onContentTargetsChange:f,isMigrated:Boolean(e.is_migrated),ruleType:e.rule_type,rule:e}),(0,C.jsx)("div",{className:"urcr-rule-actions",children:(0,C.jsx)("button",{className:"urcr-save-rule-btn button button-primary",type:"button",onClick:async()=>{i(!0);try{if(!s)return _((0,a.__)("No group data to save","user-registration")),void i(!1);await A({rule:e,onRuleUpdate:t,contentData:{rootGroup:s,contentTargets:d,accessControl:c}})}catch(e){}finally{i(!1)}},disabled:o||r,"data-rule-id":e.id,children:o?(0,a.__)("Saving...","user-registration"):(0,a.__)("Save","user-registration")})})]}):(0,C.jsx)("div",{children:"Loading..."})},{adminURL:jn}="undefined"!=typeof _URCR_DASHBOARD_&&_URCR_DASHBOARD_,kn=({rule:e,isExpanded:t,isSettingsOpen:r,isHighlighted:o=!1,onToggleExpand:i,onToggleSettings:s,onRuleUpdate:u,onRuleStatusUpdate:p,onRuleDelete:f,onRuleDuplicate:m})=>{const[h,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),[x,S]=(0,n.useState)(!1),[R,E]=(0,n.useState)(!1),[A,O]=(0,n.useState)(!1),[P,T]=(0,n.useState)("rules"),[D,M]=(0,n.useState)(!1),[N,B]=(0,n.useState)(e.title||""),I=(0,n.useRef)(null),z=(0,n.useRef)(null),F="membership"===e.rule_type,H=Boolean(e.is_migrated),V=!v()&&F||H,$=F?(0,a.__)("Restriction Message","user-registration"):(0,a.__)("Settings","user-registration");jn&&e.id,(0,n.useEffect)(()=>{const e=e=>{I.current&&!I.current.contains(e.target)&&S(!1)};return x&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[x]),(0,n.useEffect)(()=>{B(e.title||"")},[e.title]),(0,n.useEffect)(()=>{D&&z.current&&z.current.focus()},[D]),(0,n.useEffect)(()=>{const t=t=>{D&&z.current&&!z.current.contains(t.target)&&!t.target.closest(".user-registration-editable-title__icon")&&(u&&u({...e,title:N.trim()||e.title}),M(!1))};return D&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[D,N,e,u]);const U=String(e.id).padStart(2,"0"),W="user-registration-card__header ur-d-flex ur-align-items-center ur-p-5 integration-header-info accordion"+(t?" active":""),q="user-registration-card ur-mb-2 urcr-rule-card "+(o?"urcr-rule-highlighted":"");return(0,C.jsxs)("div",{id:e.id,className:q,"data-rule-id":e.id,children:[(0,C.jsxs)("div",{className:W,onClick:e=>{e.target.closest(".integration-action")||e.target.closest(".ur-toggle-section")||i()},children:[(0,C.jsxs)("div",{className:"integration-detail urcr-integration-detail",children:[(0,C.jsxs)("div",{className:"user-registration-editable-title urcr-rule-title",children:[(0,C.jsx)("input",{ref:z,type:"text",className:"user-registration-editable-title__input "+(D?"is-editing":""),value:N,onChange:e=>{B(e.target.value)},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),u&&u({...e,title:N.trim()||e.title}),M(!1)):"Escape"===t.key&&(B(e.title||""),M(!1))},onClick:e=>e.stopPropagation(),disabled:!D}),!F&&(0,C.jsx)("span",{className:"user-registration-editable-title__icon dashicons dashicons-edit",onClick:e=>{e.stopPropagation(),D?z.current&&z.current.focus():M(!0)},style:{cursor:"pointer"}})]}),(0,C.jsx)("span",{className:"urcr-separator",children:" | "}),(0,C.jsxs)("span",{className:"urcr-rule-id",children:["ID: ",U]}),(0,C.jsx)("span",{className:"urcr-separator",children:" | "}),(0,C.jsxs)("span",{className:"urcr-status-label",children:[(0,a.__)("Status","user-registration")," :"]}),(0,C.jsxs)("div",{className:"ur-toggle-section",children:[(0,C.jsxs)("span",{className:"user-registration-toggle-form",onClick:e=>e.stopPropagation(),children:[(0,C.jsx)("input",{type:"checkbox",checked:e.enabled,onChange:async()=>{if(h||b)return;const t=!e.enabled;g(!0);try{const o=await(r=e.id,n=t,l()({path:d.toggleStatus(r),method:"POST",headers:{"X-WP-Nonce":c},data:{enabled:n}}).then(e=>e));o.success?(p&&p(e.id,t),w(o.message||(0,a.__)("Rule status updated","user-registration"))):_(o.message||(0,a.__)("Failed to update rule status","user-registration"))}catch(e){_(e.message||(0,a.__)("An error occurred","user-registration"))}finally{g(!1)}var r,n},disabled:h||b}),(0,C.jsx)("span",{className:"slider round"})]}),h&&(0,C.jsx)("span",{className:"urcr-toggle-loader spinner is-active"})]})]}),(0,C.jsxs)("div",{className:"integration-action urcr-integration-action",children:[(0,C.jsxs)("div",{className:"urcr-membership-tabs",children:[(0,C.jsx)("button",{className:"urcr-tab-button "+("rules"===P?"urcr-tab-active":""),type:"button",onClick:e=>{e.stopPropagation(),T("rules")},children:(0,a.__)("Rule","user-registration")}),(0,C.jsx)("button",{className:"urcr-tab-button "+("message"===P?"urcr-tab-active":""),type:"button",onClick:e=>{e.stopPropagation(),T("message")},children:$})]}),!V&&(0,C.jsxs)("div",{className:"urcr-menu-wrapper",ref:I,children:[(0,C.jsx)("button",{className:"urcr-menu-toggle button-link "+(x?"urcr-icon-active":""),type:"button",onClick:e=>{e.stopPropagation(),S(!x)},"aria-label":(0,a.__)("More options","user-registration"),children:(0,C.jsx)("span",{className:"dashicons dashicons-ellipsis"})}),x&&(0,C.jsxs)("div",{className:"urcr-menu-dropdown",children:[(0,C.jsxs)("button",{className:"urcr-menu-item urcr-menu-trash",type:"button",onClick:e=>{e.stopPropagation(),S(!1),E(!0)},children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M9.3 16.546V11.09c0-.502.403-.91.9-.91s.9.408.9.91v5.455a.905.905 0 0 1-.9.909.905.905 0 0 1-.9-.91Zm3.6 0V11.09c0-.502.403-.91.9-.91s.9.408.9.91v5.455a.905.905 0 0 1-.9.909.905.905 0 0 1-.9-.91Z"}),(0,C.jsx)("path",{d:"M4.8 19.273V6.545c0-.502.403-.909.9-.909s.9.407.9.91v12.727c0 .24.095.472.264.643.168.17.397.266.636.266h9a.895.895 0 0 0 .636-.266.914.914 0 0 0 .264-.643V6.545c0-.502.403-.909.9-.909s.9.407.9.91v12.727c0 .723-.285 1.416-.791 1.928A2.686 2.686 0 0 1 16.5 22h-9a2.686 2.686 0 0 1-1.909-.799 2.741 2.741 0 0 1-.791-1.928Z"}),(0,C.jsx)("path",{d:"M20.1 5.636c.497 0 .9.407.9.91a.905.905 0 0 1-.9.909H3.9a.905.905 0 0 1-.9-.91c0-.502.403-.909.9-.909h16.2Z"}),(0,C.jsx)("path",{d:"M14.7 6.545V4.727a.914.914 0 0 0-.264-.642.895.895 0 0 0-.636-.267h-3.6a.895.895 0 0 0-.636.267.914.914 0 0 0-.264.642v1.818c0 .503-.403.91-.9.91a.905.905 0 0 1-.9-.91V4.727c0-.723.285-1.417.791-1.928A2.686 2.686 0 0 1 10.2 2h3.6c.716 0 1.403.288 1.909.799.506.511.791 1.205.791 1.928v1.818c0 .503-.403.91-.9.91a.905.905 0 0 1-.9-.91Z"})]}),(0,a.__)("Trash","user-registration")]}),(0,C.jsxs)("button",{className:"urcr-menu-item urcr-menu-duplicate",type:"button",onClick:e=>{e.stopPropagation(),S(!1),O(!0)},children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,C.jsx)("path",{d:"M13.818 17.454V12a.91.91 0 1 1 1.818 0v5.454a.91.91 0 1 1-1.818 0Z"}),(0,C.jsx)("path",{d:"M17.454 13.818a.91.91 0 1 1 0 1.818H12a.91.91 0 1 1 0-1.818h5.454Z"}),(0,C.jsx)("path",{d:"M20.182 10.182a.91.91 0 0 0-.91-.91h-9.09a.91.91 0 0 0-.91.91v9.09c0 .503.408.91.91.91h9.09a.91.91 0 0 0 .91-.91v-9.09ZM22 19.272A2.727 2.727 0 0 1 19.273 22h-9.091a2.727 2.727 0 0 1-2.727-2.727v-9.091a2.727 2.727 0 0 1 2.727-2.727h9.09A2.727 2.727 0 0 1 22 10.182v9.09Z"}),(0,C.jsx)("path",{d:"M14.727 4.727a.914.914 0 0 0-.909-.909h-9.09a.914.914 0 0 0-.91.91v9.09c0 .498.411.91.91.91a.91.91 0 1 1 0 1.818A2.733 2.733 0 0 1 2 13.818v-9.09A2.733 2.733 0 0 1 4.727 2h9.091a2.733 2.733 0 0 1 2.728 2.727.91.91 0 0 1-1.819 0Z"})]}),(0,a.__)("Duplicate","user-registration")]})]})]}),(0,C.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"css-i6dzq1 "+(t?"urcr-icon-active":""),onClick:e=>{e.stopPropagation(),i()},style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease",cursor:"pointer"},children:(0,C.jsx)("polyline",{points:"6 9 12 15 18 9"})})]})]}),(0,C.jsxs)("div",{className:"user-registration-card__body ur-p-3 integration-body-info",style:{display:t?"block":"none"},children:[(0,C.jsx)("div",{className:"rules"===P?"urcr-tab-content urcr-tab-content-active":"urcr-tab-content",children:(0,C.jsx)(Sn,{rule:e,onRuleUpdate:u,isToggling:h})}),(0,C.jsx)("div",{className:"message"===P?"urcr-tab-content urcr-tab-content-active":"urcr-tab-content",children:(0,C.jsx)(L,{rule:e,onRuleUpdate:u,onGoBack:()=>T("rules"),isToggling:h,onSavingChange:y})})]}),(0,C.jsx)(j,{isOpen:R,onClose:()=>E(!1),rule:e,onDeleteSuccess:()=>{f&&f(e.id)}}),(0,C.jsx)(k,{isOpen:A,onClose:()=>O(!1),rule:e,onDuplicateSuccess:()=>{m&&m()}})]})},Rn=({isOpen:e,onClose:t,onCreateSuccess:r})=>{const[o,i]=(0,n.useState)(""),[s,u]=(0,n.useState)(!1),p=async()=>{const e=o.trim()||(0,a.__)("Untitled Rule","user-registration");u(!0);try{const o=await(n=e,l()({path:d.createRule,method:"POST",headers:{"X-WP-Nonce":c},data:{title:n}}).then(e=>e));o.success?(w(o.message||(0,a.__)("Rule created successfully","user-registration")),i(""),t(),r&&o.rule&&r(o.rule)):_(o.message||(0,a.__)("Failed to create rule","user-registration"))}catch(e){_(e.message||(0,a.__)("An error occurred","user-registration"))}finally{u(!1)}var n},f=e=>{"Enter"===e.key&&e.ctrlKey&&(e.preventDefault(),p())},m=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{type:"button",className:"button urcr-modal-cancel",onClick:t,disabled:s,children:(0,a.__)("Cancel","user-registration")}),(0,C.jsx)("button",{type:"button",className:"button button-primary urcr-modal-continue",onClick:p,disabled:s,children:s?(0,a.__)("Creating...","user-registration"):(0,a.__)("Continue","user-registration")})]});return(0,C.jsxs)(S,{isOpen:e,onClose:t,title:(0,a.__)("Add New Content Rule","user-registration"),icon:"dashicons-plus-alt",footer:m,onKeyDown:f,children:[(0,C.jsx)("label",{htmlFor:"urcr-rule-name",className:"urcr-modal-label",children:(0,a.__)("Content Rule Name","user-registration")}),(0,C.jsx)("input",{id:"urcr-rule-name",type:"text",className:"urcr-modal-input",placeholder:(0,a.__)("Give it a name","user-registration"),value:o,onChange:e=>i(e.target.value),onKeyDown:f,autoFocus:!0})]})},{adminURL:En,assetsURL:An}="undefined"!=typeof _URCR_DASHBOARD_&&_URCR_DASHBOARD_?_URCR_DASHBOARD_:{},On=()=>{const[e,t]=(0,n.useState)([]),[r,o]=(0,n.useState)(!0),[i,s]=(0,n.useState)(null),[u,h]=(0,n.useState)(new Set),[g,v]=(0,n.useState)(new Set),[b,y]=(0,n.useState)(!1),[x,w]=(0,n.useState)("custom"),[S,j]=(0,n.useState)(null),[k,R]=(0,n.useState)(!1),E=p(),A=f("has_multiple_memberships",!1),O=f("is_content_restriction_enabled",!1),P=(0,n.useCallback)(()=>{o(!0),s(null),l()({path:d.rules,method:"GET",headers:{"X-WP-Nonce":c}}).then(e=>e).then(e=>{if(e.success)t(e.rules||[]);else{const t=e.message||(0,a.__)("Failed to load rules","user-registration");s(t),_(t)}}).catch(e=>{const t=e.message||(0,a.__)("An error occurred while loading rules","user-registration");s(t),_(t)}).finally(()=>{o(!1)})},[]);(0,n.useEffect)(()=>{P()},[P]),(0,n.useEffect)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("focus")||e.get("id");if(t){const e=parseInt(t,10);isNaN(e)||j(e)}},[]);const T=e.filter(e=>"membership"===e.rule_type),D=e.filter(e=>"membership"!==e.rule_type||!e.rule_type),M=A&&T.length>1,N=O,B=M,I=O?"membership"===x?T:D:M?T:[],[L,z]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!L&&!r){const e=new URLSearchParams(window.location.search).get("urcr_tab");if("membership"===e||"custom"===e)return w(e),void z(!0);O?M&&T.length>0?(w("membership"),z(!0)):M||(w("custom"),z(!0)):(w("membership"),z(!0))}},[e,r,A,O]),(0,n.useEffect)(()=>{if(!r&&e.length>0){const t=new Set(e.map(e=>e.id));h(t)}},[e,r]),(0,n.useEffect)(()=>{if(S&&!r&&e.length>0&&!k){const t=e.find(e=>e.id===S);if(t){const e="membership"===t.rule_type;e&&M?w("membership"):!e&&N&&w("custom"),h(e=>new Set([...e,S])),setTimeout(()=>{const e=document.querySelector(`.urcr-rule-card[data-rule-id="${S}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"center"})},300),R(!0),setTimeout(()=>{j(null)},3e3)}}},[S,r,e,k]);const F=e=>{e&&t(t=>t.map(t=>t.id===e.id?{...t,...e}:t))},H=e=>{t(t=>t.filter(t=>t.id!==e)),h(t=>{const r=new Set(t);return r.delete(e),r}),v(t=>{const r=new Set(t);return r.delete(e),r})},V=()=>{P()},$=(e,r)=>{t(t=>t.map(t=>t.id===e?{...t,enabled:r,content:{...t.content||{},enabled:r}}:t))},[U,W]=(0,n.useState)(O?"inactive":"active");return r?(0,C.jsx)("div",{className:"user-registration-content-restriction-viewer",children:(0,C.jsx)("div",{className:"urcr-loading-container",children:(0,C.jsx)("span",{className:"spinner is-active"})})}):i&&0===e.length?(0,C.jsx)("div",{className:"user-registration-content-restriction-viewer",children:(0,C.jsxs)("div",{className:"urcr-error-container",children:[(0,C.jsx)("p",{children:i}),(0,C.jsx)("button",{className:"button button-primary",onClick:P,children:(0,a.__)("Retry","user-registration")})]})}):(0,C.jsx)("div",{className:"user-registration-content-restriction-viewer",children:(0,C.jsxs)("div",{className:"urcr-viewer-container",children:[(0,C.jsxs)("div",{className:"urcr-header",children:[(0,C.jsx)("h1",{children:(0,a.__)("Content Rules","user-registration")}),m()&&O&&"custom"===x&&(0,C.jsxs)("button",{type:"button",className:"urcr-add-new-button",onClick:()=>{y(!0)},children:[(0,C.jsx)("span",{className:"dashicons dashicons-plus-alt2"}),(0,a.__)("Add New","user-registration")]})]}),B&&(0,C.jsxs)("div",{className:"urcr-tabs",children:[(0,C.jsx)("button",{type:"button",className:"urcr-tab "+("membership"===x?"urcr-tab-active":""),onClick:()=>w("membership"),children:(0,a.__)("Membership Rules","user-registration")}),(0,C.jsx)("button",{type:"button",className:"urcr-tab "+("custom"===x?"urcr-tab-active":""),onClick:()=>w("custom"),children:(0,a.__)("Custom Rules","user-registration")})]}),(0,C.jsx)(Rn,{isOpen:b,onClose:()=>{y(!1)},onCreateSuccess:e=>{t(t=>[e,...t]),h(t=>new Set([...t,e.id])),w("custom")}}),"custom"!==x||O?(0,C.jsx)(C.Fragment,{children:0===I.length?(0,C.jsx)("div",{className:"user-registration-card ur-text-center urcr-no-rules",children:(0,C.jsx)("img",{src:`${An||""}images/empty-table.png`,alt:(0,a.__)("No rules found","user-registration")})}):(0,C.jsx)("div",{className:"urcr-rules-list",children:I.map(e=>(0,C.jsx)(kn,{rule:e,isExpanded:u.has(e.id),isSettingsOpen:g.has(e.id),isHighlighted:S===e.id,onToggleExpand:()=>{return t=e.id,void h(e=>{const r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r});var t},onToggleSettings:()=>{return t=e.id,void v(e=>{const r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r});var t},onRuleUpdate:F,onRuleStatusUpdate:$,onRuleDelete:H,onRuleDuplicate:V},e.id))})}):(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("div",{className:"ur-feature ur-feature--locked",children:[(0,C.jsx)("div",{style:{pointerEvents:"none"},dangerouslySetInnerHTML:{__html:'<div class="user-registration-card ur-mb-2 urcr-rule-card " style="margin-bottom: 20px !important;" data-rule-id="26"><div class="user-registration-card__header ur-d-flex ur-align-items-center ur-p-5 integration-header-info accordion active"><div class="integration-detail urcr-integration-detail"><h3 class="user-registration-card__title">Access Control</h3><span class="urcr-separator"> | </span><span class="urcr-rule-id">ID: 26</span><span class="urcr-separator"> | </span><span class="urcr-status-label">Status :</span><div class="ur-toggle-section"><span class="user-registration-toggle-form"><input type="checkbox" checked=""><span class="slider round"></span></span></div></div><div class="integration-action urcr-integration-action"><div class="urcr-membership-tabs"><button class="urcr-tab-button urcr-tab-active" type="button">Rule</button><button class="urcr-tab-button " type="button">Settings</button></div><div class="urcr-menu-wrapper"><button class="urcr-menu-toggle button-link " type="button" aria-label="More options"><span class="dashicons dashicons-ellipsis"></span></button></div><svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1 urcr-icon-active" style="transform: rotate(180deg); transition: transform 0.3s; cursor: pointer;"><polyline points="6 9 12 15 18 9"></polyline></svg></div></div><div class="user-registration-card__body ur-p-3 integration-body-info" style="display: block;"><div class="urcr-tab-content urcr-tab-content-active"><div class="urcr-rule-content-panel"><div class="urcr-content-group "><div class="urcr-rule-body ur-p-2"><div class="urcr-condition-row-parent"><div class="urcr-conditions-list "><div class="urcr-condition-wrapper"><div class="urcr-condition-row ur-d-flex ur-mt-2 ur-align-items-start"><div class="urcr-condition-only ur-d-flex ur-align-items-start"><div class="urcr-condition-selection-section ur-d-flex ur-align-items-center ur-g-4"><div class="urcr-condition-field-name"><select class="components-select-control__input urcr-condition-value-input"><option value="user_state">User State</option></select></div><div class="urcr-condition-operator"><span>is</span></div><div class="urcr-condition-value"><div class="urcr-checkbox-radio-group"><label class="urcr-checkbox-radio-option is-checked"><input type="radio" name="urcr-radio-user_state-x1768832321664" class="urcr-checkbox-radio-input" value="logged-in"><span class="urcr-checkbox-radio-label">Logged In</span></label><label class="urcr-checkbox-radio-option "><input type="radio" name="urcr-radio-user_state-x1768832321664" class="urcr-checkbox-radio-input" value="logged-out"><span class="urcr-checkbox-radio-label">Logged Out</span></label></div></div></div></div></div><button type="button" class="button button-link-delete" aria-label="Remove condition"><span class="dashicons dashicons-no-alt"></span></button></div></div><div class="urcr-target-selection-section ur-d-flex ur-align-items-start"><div class="urcr-condition-value-input-wrapper urcr-access-content"><div class="urcr-dropdown-wrapper urcr-access-control-dropdown-wrapper"><button type="button" class="urcr-dropdown-button urcr-access-control-button urcr-condition-value-input"><span class="urcr-dropdown-button-text">Access</span><span class="urcr-dropdown-button-arrow dashicons dashicons-arrow-down-alt2"></span></button></div></div><span class="urcr-arrow-icon" aria-hidden="true"></span><div class="ur-d-flex ur-flex-column"><div class="urcr-dropdown-wrapper urcr-content-dropdown-wrapper"><button type="button" class="urcr-dropdown-button button urcr-add-content-button"><span class="dashicons dashicons-plus-alt2"></span>Content</button></div></div></div></div><div class="urcr-buttons-wrapper" style="display: flex; gap: 10px; margin-top: 10px;"><div class="urcr-dropdown-wrapper urcr-condition-dropdown-wrapper"><button type="button" class="urcr-dropdown-button button urcr-add-condition-button"><span class="dashicons dashicons-plus-alt2"></span>Condition</button></div></div></div></div><div class="urcr-rule-actions"><button class="urcr-save-rule-btn button button-primary" type="button" data-rule-id="26">Save</button></div></div></div></div></div><div class="user-registration-card ur-mb-2 urcr-rule-card " data-rule-id="26"><div class="user-registration-card__header ur-d-flex ur-align-items-center ur-p-5 integration-header-info accordion active"><div class="integration-detail urcr-integration-detail"><h3 class="user-registration-card__title">Access Control</h3><span class="urcr-separator"> | </span><span class="urcr-rule-id">ID: 26</span><span class="urcr-separator"> | </span><span class="urcr-status-label">Status :</span><div class="ur-toggle-section"><span class="user-registration-toggle-form"><input type="checkbox" checked=""><span class="slider round"></span></span></div></div><div class="integration-action urcr-integration-action"><div class="urcr-membership-tabs"><button class="urcr-tab-button urcr-tab-active" type="button">Rule</button><button class="urcr-tab-button " type="button">Settings</button></div><div class="urcr-menu-wrapper"><button class="urcr-menu-toggle button-link " type="button" aria-label="More options"><span class="dashicons dashicons-ellipsis"></span></button></div><svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1 urcr-icon-active" style="transform: rotate(180deg); transition: transform 0.3s; cursor: pointer;"><polyline points="6 9 12 15 18 9"></polyline></svg></div></div><div class="user-registration-card__body ur-p-3 integration-body-info" style="display: block;"><div class="urcr-tab-content urcr-tab-content-active"><div class="urcr-rule-content-panel"><div class="urcr-content-group "><div class="urcr-rule-body ur-p-2"><div class="urcr-condition-row-parent"><div class="urcr-conditions-list "><div class="urcr-condition-wrapper"><div class="urcr-condition-row ur-d-flex ur-mt-2 ur-align-items-start"><div class="urcr-condition-only ur-d-flex ur-align-items-start"><div class="urcr-condition-selection-section ur-d-flex ur-align-items-center ur-g-4"><div class="urcr-condition-field-name"><select class="components-select-control__input urcr-condition-value-input"><option value="user_state">User State</option></select></div><div class="urcr-condition-operator"><span>is</span></div><div class="urcr-condition-value"><div class="urcr-checkbox-radio-group"><label class="urcr-checkbox-radio-option is-checked"><input type="radio" name="urcr-radio-user_state-x1768832321664" class="urcr-checkbox-radio-input" value="logged-in"><span class="urcr-checkbox-radio-label">Logged In</span></label><label class="urcr-checkbox-radio-option "><input type="radio" name="urcr-radio-user_state-x1768832321664" class="urcr-checkbox-radio-input" value="logged-out"><span class="urcr-checkbox-radio-label">Logged Out</span></label></div></div></div></div></div><button type="button" class="button button-link-delete" aria-label="Remove condition"><span class="dashicons dashicons-no-alt"></span></button></div></div><div class="urcr-target-selection-section ur-d-flex ur-align-items-start"><div class="urcr-condition-value-input-wrapper urcr-access-content"><div class="urcr-dropdown-wrapper urcr-access-control-dropdown-wrapper"><button type="button" class="urcr-dropdown-button urcr-access-control-button urcr-condition-value-input"><span class="urcr-dropdown-button-text">Access</span><span class="urcr-dropdown-button-arrow dashicons dashicons-arrow-down-alt2"></span></button></div></div><span class="urcr-arrow-icon" aria-hidden="true"></span><div class="ur-d-flex ur-flex-column"><div class="urcr-dropdown-wrapper urcr-content-dropdown-wrapper"><button type="button" class="urcr-dropdown-button button urcr-add-content-button"><span class="dashicons dashicons-plus-alt2"></span>Content</button></div></div></div></div><div class="urcr-buttons-wrapper" style="display: flex; gap: 10px; margin-top: 10px;"><div class="urcr-dropdown-wrapper urcr-condition-dropdown-wrapper"><button type="button" class="urcr-dropdown-button button urcr-add-condition-button"><span class="dashicons dashicons-plus-alt2"></span>Condition</button></div></div></div></div><div class="urcr-rule-actions"><button class="urcr-save-rule-btn button button-primary" type="button" data-rule-id="26">Save</button></div></div></div></div></div>'}}),(0,C.jsx)("div",{className:"ur-feature__overlay",children:(0,C.jsxs)("div",{className:"ur-feature__overlay-content",children:[(0,C.jsx)("h3",{className:"ur-feature__title",children:(0,a.__)("Unlock Custom Rules","user-registration")}),(0,C.jsx)("div",{className:"ur-feature__desc",children:(0,a.__)("Unlock the ability to add custom rules, based on various user attributes like Roles, User fields, Registration sources and More.")}),m()?(0,C.jsx)("button",{type:"button",onClick:async()=>{W("activating");const e=E?.ajax_url,t=E?.labels?.ajax_all_forms_nonce;if(!e||!t)return _((0,a.__)("Activation failed: AJAX settings are missing. Please refresh the page and try again.","user-registration")),void W("failed");const r=new FormData;r.append("action","user_registration_activate_dependent_module"),r.append("security",t),r.append("slug","user-registration-content-restriction");try{const t=await l()({url:e,method:"POST",body:r});if(t&&t.success){W("active");const e=new URL(window.location.href);e.searchParams.set("urcr_tab","custom"),window.location.href=e.toString()}else W("failed")}catch{W("failed")}},disabled:"activating"===U,className:"ur-feature__btn",children:(0,a.__)("Activate Addon","user-registration")}):(0,C.jsxs)("a",{className:"ur-feature__btn",target:"_blank",href:"https://wpuserregistration.com/upgrade/?utm_source=ur-membership-create&utm_medium=upgrade-link&utm-campaign=lite-version",children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"}),(0,C.jsx)("path",{d:"M5 21h14"})]}),(0,C.jsx)("span",{children:(0,a.__)("Upgrade to Pro","user-registration")})]})]})})]})})]})})};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("user-registration-content-access-rules");e&&(0,i.createRoot)(e).render((0,C.jsx)(On,{}))});const Pn=On},414(e,t,r){"use strict";r.d(t,{MJ:()=>g,TP:()=>f,Uc:()=>h});var n=r(8558),o=r(924),i=r(7652),a=r(6691),s=r(4403),l=r(7907),c=r(1269),u=r(1609),d=r(790),[p,f]=(0,n.q)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,h]=(0,n.q)({strict:!1,name:"FormControlContext"}),g=(0,s.R)(function(e,t){const r=(0,i.o5)("Form",e),n=(0,l.MN)(e),{getRootProps:s,htmlProps:f,...h}=function(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:a,...s}=e,l=(0,u.useId)(),d=t||`field-${l}`,p=`${d}-label`,f=`${d}-feedback`,m=`${d}-helptext`,[h,g]=(0,u.useState)(!1),[v,b]=(0,u.useState)(!1),[y,x]=(0,u.useState)(!1),w=(0,u.useCallback)((e={},t=null)=>({id:m,...e,ref:(0,o.Px)(t,e=>{e&&b(!0)})}),[m]),_=(0,u.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,c.sE)(y),"data-disabled":(0,c.sE)(i),"data-invalid":(0,c.sE)(n),"data-readonly":(0,c.sE)(a),id:void 0!==e.id?e.id:p,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,i,y,n,a,p]),C=(0,u.useCallback)((e={},t=null)=>({id:f,...e,ref:(0,o.Px)(t,e=>{e&&g(!0)}),"aria-live":"polite"}),[f]),S=(0,u.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":(0,c.sE)(y),"data-disabled":(0,c.sE)(i),"data-invalid":(0,c.sE)(n),"data-readonly":(0,c.sE)(a)}),[s,i,y,n,a]),j=(0,u.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!i,isFocused:!!y,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:h,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:b,id:d,labelId:p,feedbackId:f,helpTextId:m,htmlProps:s,getHelpTextProps:w,getErrorMessageProps:C,getRootProps:S,getLabelProps:_,getRequiredIndicatorProps:j}}(n),g=(0,c.cx)("chakra-form-control",e.className);return(0,d.jsx)(m,{value:h,children:(0,d.jsx)(p,{value:r,children:(0,d.jsx)(a.B.div,{...s({},t),className:g,__css:r.container})})})});g.displayName="FormControl",(0,s.R)(function(e,t){const r=h(),n=f(),o=(0,c.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(a.B.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:o})}).displayName="FormHelperText"},444(e,t,r){"use strict";r.d(t,{a:()=>i});var n=r(6691),o=r(790),i=e=>(0,o.jsx)(n.B.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});i.displayName="StackItem"},713(e,t,r){"use strict";r.d(t,{E9:()=>i,Mi:()=>n,pN:()=>o,xi:()=>a});var n="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},715(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,{Tn:()=>n})},790(e){"use strict";e.exports=window.ReactJSXRuntime},924(e,t,r){"use strict";r.d(t,{Px:()=>o,SV:()=>i});var n=r(1609);function o(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function i(...e){return(0,n.useMemo)(()=>o(...e),e)}},1035(e,t,r){"use strict";var n=r(5959),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 n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=f(r);o&&o!==m&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),h=l(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||h&&h[v]||s&&s[v])){var b=p(r,v);try{c(t,v,b)}catch(e){}}}}return t}},1078(e,t,r){"use strict";function n(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}r.d(t,{A:()=>n})},1160(e,t,r){"use strict";r.d(t,{c:()=>o});var n=r(1609);function o(e,t=[]){const r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},1269(e,t,r){"use strict";r.d(t,{Gv:()=>o,Hj:()=>u,Jg:()=>a,OK:()=>d,R8:()=>i,cx:()=>n,rq:()=>c,sE:()=>l});var n=(...e)=>e.filter(Boolean).join(" ");function o(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var i=e=>{const{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0,c=e=>!!e||void 0;function u(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},1270(e,t,r){"use strict";r.d(t,{G:()=>c});var n=r(5482),o=r(1609),i=r(713),a=r(2098),s=r(2287),l=function(){},c=o.forwardRef(function(e,t){var r=o.useRef(null),i=o.useState({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:l}),c=i[0],u=i[1],d=e.forwardProps,p=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,b=e.noRelative,y=e.noIsolation,x=e.inert,w=e.allowPinchZoom,_=e.as,C=void 0===_?"div":_,S=e.gapMode,j=(0,n.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=v,R=(0,a.S)([r,t]),E=(0,n.Cl)((0,n.Cl)({},j),c);return o.createElement(o.Fragment,null,h&&o.createElement(k,{sideCar:s.O,removeScrollBar:m,shards:g,noRelative:b,noIsolation:y,inert:x,setCallbacks:u,allowPinchZoom:!!w,lockRef:r,gapMode:S}),d?o.cloneElement(o.Children.only(p),(0,n.Cl)((0,n.Cl)({},E),{ref:R})):o.createElement(C,(0,n.Cl)({},E,{className:f,ref:R}),p))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:i.pN,zeroRight:i.Mi}},1401(e,t,r){"use strict";r.d(t,{X:()=>i});var n=!1;if("undefined"!=typeof window)try{var o=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch(e){n=!1}var i=!!n&&{passive:!1}},1455(e){"use strict";e.exports=window.wp.apiFetch},1469(e,t,r){"use strict";r.d(t,{B1:()=>O,C0:()=>f,Dz:()=>y,Jx:()=>l,LI:()=>a,PG:()=>h,RI:()=>s,Sg:()=>m,T9:()=>i,TV:()=>b,WJ:()=>w,_3:()=>p,bV:()=>E,jk:()=>o,lP:()=>R,nI:()=>A,qE:()=>d,r_:()=>n,sq:()=>g,w7:()=>x});const n=["top","right","bottom","left"],o=Math.min,i=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t,r){return i(e,o(t,r))}function p(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}const v=new Set(["top","bottom"]);function b(e){return v.has(f(e))?"y":"x"}function y(e){return h(b(e))}function x(e,t,r){void 0===r&&(r=!1);const n=m(e),o=y(e),i=g(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function w(e){const t=E(e);return[_(e),t,_(t)]}function _(e){return e.replace(/start|end/g,e=>u[e])}const C=["left","right"],S=["right","left"],j=["top","bottom"],k=["bottom","top"];function R(e,t,r,n){const o=m(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?S:C:t?C:S;case"left":case"right":return t?j:k;default:return[]}}(f(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(_)))),i}function E(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function A(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function O(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}},1609(e){"use strict";e.exports=window.React},1732(e,t,r){"use strict";r.d(t,{M:()=>a});var n=r(7907),o=new Set([...n.q8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function a(e){return i.has(e)||!o.has(e)}},1812(e,t,r){"use strict";r.d(t,{jp:()=>n.jp});var n=r(2595);r(6397)},2027(e,t,r){"use strict";r.d(t,{A:()=>a,l:()=>i});var n=r(7822),o=r(8975);function i(e,t){for(var r="",n=(0,o.FK)(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function a(e,t,r,a){switch(e.type){case n.IO:if(e.children.length)break;case n.yE:case n.LU:return e.return=e.return||e.value;case n.YK:return"";case n.Sv:return e.return=e.value+"{"+i(e.children,a)+"}";case n.XZ:e.value=e.props.join(",")}return(0,o.b2)(r=i(e.children,a))?e.return=e.value+"{"+r+"}":""}},2098(e,t,r){"use strict";r.d(t,{S:()=>l});var n=r(1609),o=r(7462),i=r(7582),a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,s=new WeakMap;function l(e,t){var r=(0,i.c)(t||null,function(t){return e.forEach(function(e){return(0,o.b)(e,t)})});return a(function(){var t=s.get(r);if(t){var n=new Set(t),i=new Set(e),a=r.current;n.forEach(function(e){i.has(e)||(0,o.b)(e,null)}),i.forEach(function(e){n.has(e)||(0,o.b)(e,a)})}s.set(r,e)},[e]),r}},2287(e,t,r){"use strict";r.d(t,{O:()=>n});var n=(0,r(8555).f)()},2364(e,t,r){"use strict";r.d(t,{M:()=>i});var n=r(1609),o=r(1160);function i(e,t,r,i){const a=(0,o.c)(r);return(0,n.useEffect)(()=>{const n="function"==typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,a,i),()=>{n.removeEventListener(t,a,i)}},[t,e,i,a,r]),()=>{const r="function"==typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,a,i)}}},2576(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(8472),o=(r(6624),r(5035),r(1609),n.A.bind(null));["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){o[e]=o(e)})},2595(e,t,r){"use strict";r.d(t,{jp:()=>d});var n=r(1609),o=r(3914),i=r(713),a=r(6397),s=(0,o.T0)(),l="data-scroll-locked",c=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n .".concat(i.E9," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(c,"px ").concat(n,";\n }\n body[").concat(l,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i.Mi," {\n right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(i.pN," {\n margin-right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(i.Mi," .").concat(i.Mi," {\n right: 0 ").concat(n,";\n }\n \n .").concat(i.pN," .").concat(i.pN," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(l,"] {\n ").concat(i.xi,": ").concat(c,"px;\n }\n")},u=function(){var e=parseInt(document.body.getAttribute(l)||"0",10);return isFinite(e)?e:0},d=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;n.useEffect(function(){return document.body.setAttribute(l,(u()+1).toString()),function(){var e=u()-1;e<=0?document.body.removeAttribute(l):document.body.setAttribute(l,e.toString())}},[]);var d=n.useMemo(function(){return(0,a.P)(i)},[i]);return n.createElement(s,{styles:c(d,!t,i,r?"":"!important")})}},2691(e,t,r){"use strict";r.d(t,{A:()=>n});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},2694(e,t,r){"use strict";r.d(t,{Eq:()=>l});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r){void 0===r&&(r="data-aria-hidden");var l=Array.from(Array.isArray(e)?e:[e]),c=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),function(e,t,r,l){var c=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=s(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);i[r]||(i[r]=new WeakMap);var u=i[r],d=[],p=new Set,f=new Set(c),m=function(e){e&&!p.has(e)&&(p.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){e&&!f.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(p.has(e))h(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(u.get(e)||0)+1;n.set(e,a),u.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),p.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=u.get(e)-1;n.set(e,t),u.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}}(l,c,r,"aria-hidden")):function(){return null}}},2736(e,t,r){e.exports=r(6186)()},2985(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2994(e,t,r){"use strict";function n(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}r.d(t,{I$:()=>i,TB:()=>a,cJ:()=>n,rY:()=>o}),r(8061);var o=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e});function i(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var a=e=>i(e,e=>null!=e)},3042(e,t,r){"use strict";var n=r(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,l,c,u=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},3280(e,t,r){"use strict";r.d(t,{T:()=>a});var n=r(354),o=r(4403),i=r(790),a=(0,o.R)((e,t)=>(0,i.jsx)(n.B,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},3334(e,t,r){"use strict";r.d(t,{a1:()=>a,bk:()=>i,fi:()=>o});var n=r(1269),o=Object.freeze(["base","sm","md","lg","xl","2xl"]);function i(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,n.Gv)(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}function a(e,t=o){const r={};return e.forEach((e,n)=>{const o=t[n];null!=e&&(r[o]=e)}),r}},3520(e,t,r){"use strict";r.d(t,{s:()=>o});var n=r(3334);function o(e){const{spacing:t,direction:r}=e,o={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,n.bk)(r,e=>o[e])}}},3547(e,t,r){"use strict";r.d(t,{Hj:()=>i,Jg:()=>o});var n=r(715);function o(e,...t){return(0,n.Tn)(e)?e(...t):e}function i(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}},3595(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>i});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},3822(e,t,r){"use strict";r.d(t,{C:()=>d,Cv:()=>k,G1:()=>s,K2:()=>m,Nc:()=>C,OW:()=>g,Sh:()=>b,Tb:()=>w,Tp:()=>p,VF:()=>x,YL:()=>f,c4:()=>y,di:()=>v,mw:()=>_,nf:()=>j,rH:()=>u,se:()=>h});var n=r(8975),o=1,i=1,a=0,s=0,l=0,c="";function u(e,t,r,n,a,s,l){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:o,column:i,length:l,return:""}}function d(e,t){return(0,n.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return l}function f(){return l=s>0?(0,n.wN)(c,--s):0,i--,10===l&&(i=1,o--),l}function m(){return l=s<a?(0,n.wN)(c,s++):0,i++,10===l&&(i=1,o++),l}function h(){return(0,n.wN)(c,s)}function g(){return s}function v(e,t){return(0,n.c1)(c,e,t)}function b(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 y(e){return o=i=1,a=(0,n.b2)(c=e),s=0,[]}function x(e){return c="",e}function w(e){return(0,n.Bq)(v(s-1,S(91===e?e+2:40===e?e+1:e)))}function _(e){for(;(l=h())&&l<33;)m();return b(e)>2||b(l)>3?"":" "}function C(e,t){for(;--t&&m()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return v(e,g()+(t<6&&32==h()&&32==m()))}function S(e){for(;m();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&S(l);break;case 40:41===e&&S(e);break;case 92:m()}return s}function j(e,t){for(;m()&&e+l!==57&&(e+l!==84||47!==h()););return"/*"+v(t,s-1)+"*"+(0,n.HT)(47===e?e:m())}function k(e){for(;!b(h());)m();return v(e,s)}},3914(e,t,r){"use strict";r.d(t,{T0:()=>n.T});var n=r(4817);r(6779)},4015(e,t,r){"use strict";r.d(t,{K:()=>o,Q:()=>s});var n=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},o=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),i(e,n)){var o=a(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},i=function(e,t){return"v"===e?function(e){return n(e,"overflowY")}(t):function(e){return n(e,"overflowX")}(t)},a=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},s=function(e,t,r,n,o){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),d=!1,p=l>0,f=0,m=0;do{if(!c)break;var h=a(e,c),g=h[0],v=h[1]-h[2]-s*g;(g||v)&&i(e,c)&&(f+=v,m+=g);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(o&&Math.abs(f)<1||!o&&l>f)||!p&&(o&&Math.abs(m)<1||!o&&-l>m))&&(d=!0),d}},4072(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},4156(e,t,r){"use strict";function n(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}r.d(t,{m:()=>n})},4221(e,t,r){"use strict";r.d(t,{v:()=>n});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}()},4320(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},4403(e,t,r){"use strict";r.d(t,{R:()=>o});var n=r(1609);function o(e){return(0,n.forwardRef)(e)}},4511(e,t,r){"use strict";function n(){return"undefined"!=typeof window}function o(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!n()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!n()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!n()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!n()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}r.d(t,{$4:()=>R,CP:()=>k,L9:()=>j,Lv:()=>m,Tc:()=>_,Tf:()=>g,ZU:()=>p,_m:()=>O,ep:()=>a,eu:()=>S,gJ:()=>w,mq:()=>o,sQ:()=>x,sb:()=>c,v9:()=>A,vq:()=>l,zk:()=>i});const d=new Set(["inline","contents"]);function p(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!d.has(o)}const f=new Set(["table","td","th"]);function m(e){return f.has(o(e))}const h=[":popover-open",":modal"];function g(e){return h.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const v=["transform","translate","scale","rotate","perspective"],b=["transform","translate","scale","rotate","perspective","filter"],y=["paint","layout","strict","content"];function x(e){const t=_(),r=l(e)?j(e):e;return v.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||b.some(e=>(r.willChange||"").includes(e))||y.some(e=>(r.contain||"").includes(e))}function w(e){let t=R(e);for(;c(t)&&!S(t);){if(x(t))return t;if(g(t))return null;t=R(t)}return null}function _(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const C=new Set(["html","body","#document"]);function S(e){return C.has(o(e))}function j(e){return i(e).getComputedStyle(e)}function k(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function E(e){const t=R(e);return S(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:E(t)}function A(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=E(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),s=i(o);if(a){const e=O(s);return t.concat(s,s.visualViewport||[],p(o)?o:[],e&&r?A(e):[])}return t.concat(o,A(o,[],r))}function O(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},4597(e,t,r){"use strict";r.d(t,{BN:()=>m,ER:()=>h,Ej:()=>g,UE:()=>s,UU:()=>l,cY:()=>f,jD:()=>d,rD:()=>i});var n=r(1469);function o(e,t,r){let{reference:o,floating:i}=e;const a=(0,n.TV)(t),s=(0,n.Dz)(t),l=(0,n.sq)(s),c=(0,n.C0)(t),u="y"===a,d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-i.width,y:p};break;default:m={x:o.x,y:o.y}}switch((0,n.Sg)(t)){case"start":m[s]-=f*(r&&u?-1:1);break;case"end":m[s]+=f*(r&&u?-1:1)}return m}const i=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=o(u,n,c),f=n,m={},h=0;for(let r=0;r<l.length;r++){const{name:a,fn:g}=l[r],{x:v,y:b,data:y,reset:x}=await g({x:d,y:p,initialPlacement:n,placement:f,strategy:i,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,p=null!=b?b:p,m={...m,[a]:{...m[a],...y}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:d,y:p}=o(u,f,c))),r=-1)}return{x:d,y:p,placement:f,strategy:i,middlewareData:m}};async function a(e,t){var r;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=(0,n._3)(t,e),h=(0,n.nI)(m),g=l[f?"floating"===p?"reference":"floating":p],v=(0,n.B1)(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),b="floating"===p?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),x=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=(0,n.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-w.top+h.top)/x.y,bottom:(w.bottom-v.bottom+h.bottom)/x.y,left:(v.left-w.left+h.left)/x.x,right:(w.right-v.right+h.right)/x.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=(0,n._3)(e,t)||{};if(null==u)return{};const p=(0,n.nI)(d),f={x:r,y:o},m=(0,n.Dz)(i),h=(0,n.sq)(m),g=await s.getDimensions(u),v="y"===m,b=v?"top":"left",y=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[m]-f[m]-a.floating[h],_=f[m]-a.reference[m],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let S=C?C[x]:0;S&&await(null==s.isElement?void 0:s.isElement(C))||(S=l.floating[x]||a.floating[h]);const j=w/2-_/2,k=S/2-g[h]/2-1,R=(0,n.jk)(p[b],k),E=(0,n.jk)(p[y],k),A=R,O=S-g[h]-E,P=S/2-g[h]/2+j,T=(0,n.qE)(A,P,O),D=!c.arrow&&null!=(0,n.Sg)(i)&&P!==T&&a.reference[h]/2-(P<A?R:E)-g[h]/2<0,M=D?P<A?P-A:P-O:0;return{[m]:f[m]+M,data:{[m]:T,centerOffset:P-T-M,...D&&{alignmentOffset:M}},reset:D}}}),l=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...b}=(0,n._3)(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};const y=(0,n.C0)(i),x=(0,n.TV)(c),w=(0,n.C0)(c)===c,_=await(null==u.isRTL?void 0:u.isRTL(d.floating)),C=m||(w||!v?[(0,n.bV)(c)]:(0,n.WJ)(c)),S="none"!==g;!m&&S&&C.push(...(0,n.lP)(c,v,g,_));const j=[c,...C],k=await a(t,b),R=[];let E=(null==(o=s.flip)?void 0:o.overflows)||[];if(p&&R.push(k[y]),f){const e=(0,n.w7)(i,l,_);R.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:i,overflows:R}],!R.every(e=>e<=0)){var A,O;const e=((null==(A=s.flip)?void 0:A.index)||0)+1,t=j[e];if(t&&("alignment"!==f||x===(0,n.TV)(t)||E.every(e=>(0,n.TV)(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!r)switch(h){case"bestFit":{var P;const e=null==(P=E.filter(e=>{if(S){const t=(0,n.TV)(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(r=e);break}case"initialPlacement":r=c}if(i!==r)return{reset:{placement:r}}}return{}}}};function c(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function u(e){return n.r_.some(t=>e[t]>=0)}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=(0,n._3)(e,t);switch(o){case"referenceHidden":{const e=c(await a(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:u(e)}}}case"escaped":{const e=c(await a(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:u(e)}}}default:return{}}}}},p=new Set(["left","top"]),f=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:a,placement:s,middlewareData:l}=t,c=await async function(e,t){const{placement:r,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,n.C0)(r),l=(0,n.Sg)(r),c="y"===(0,n.TV)(r),u=p.has(s)?-1:1,d=a&&c?-1:1,f=(0,n._3)(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(h="end"===l?-1*g:g),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}(t,e);return s===(null==(r=l.offset)?void 0:r.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},m=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=(0,n._3)(e,t),d={x:r,y:o},p=await a(t,u),f=(0,n.TV)((0,n.C0)(i)),m=(0,n.PG)(f);let h=d[m],g=d[f];if(s){const e="y"===m?"bottom":"right",t=h+p["y"===m?"top":"left"],r=h-p[e];h=(0,n.qE)(t,h,r)}if(l){const e="y"===f?"bottom":"right",t=g+p["y"===f?"top":"left"],r=g-p[e];g=(0,n.qE)(t,g,r)}const v=c.fn({...t,[m]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-o,enabled:{[m]:s,[f]:l}}}}}},h=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,n._3)(e,t),d={x:r,y:o},f=(0,n.TV)(i),m=(0,n.PG)(f);let h=d[m],g=d[f];const v=(0,n._3)(l,t),b="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+b.mainAxis,r=a.reference[m]+a.reference[e]-b.mainAxis;h<t?h=t:h>r&&(h=r)}if(u){var y,x;const e="y"===m?"width":"height",t=p.has((0,n.C0)(i)),r=a.reference[f]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:b.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(x=s.offset)?void 0:x[f])||0)-(t?b.crossAxis:0);g<r?g=r:g>o&&(g=o)}return{[m]:h,[f]:g}}}},g=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:u=()=>{},...d}=(0,n._3)(e,t),p=await a(t,d),f=(0,n.C0)(i),m=(0,n.Sg)(i),h="y"===(0,n.TV)(i),{width:g,height:v}=s.floating;let b,y;"top"===f||"bottom"===f?(b=f,y=m===(await(null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,b="end"===m?"top":"bottom");const x=v-p.top-p.bottom,w=g-p.left-p.right,_=(0,n.jk)(v-p[b],x),C=(0,n.jk)(g-p[y],w),S=!t.middlewareData.shift;let j=_,k=C;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(j=x),S&&!m){const e=(0,n.T9)(p.left,0),t=(0,n.T9)(p.right,0),r=(0,n.T9)(p.top,0),o=(0,n.T9)(p.bottom,0);h?k=g-2*(0!==e||0!==t?e+t:(0,n.T9)(p.left,p.right)):j=v-2*(0!==r||0!==o?r+o:(0,n.T9)(p.top,p.bottom))}await u({...t,availableWidth:k,availableHeight:j});const R=await l.getDimensions(c.floating);return g!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}}},4817(e,t,r){"use strict";r.d(t,{T:()=>o});var n=r(6779),o=function(){var e=(0,n._)();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}}},4938(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(4221),o=r(7822),i=r(8975),a=r(9116),s=r(3822),l=r(2027),c=r(7943),u=function(e,t,r){for(var n=0,o=0;n=o,o=(0,s.se)(),38===n&&12===o&&(t[r]=1),!(0,s.Sh)(o);)(0,s.K2)();return(0,s.di)(e,s.G1)},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(r))&&!n){d.set(e,!0);for(var o=[],a=function(e,t){return(0,s.VF)(function(e,t){var r=-1,n=44;do{switch((0,s.Sh)(n)){case 0:38===n&&12===(0,s.se)()&&(t[r]=1),e[r]+=u(s.G1-1,t,r);break;case 2:e[r]+=(0,s.Tb)(n);break;case 4:if(44===n){e[++r]=58===(0,s.se)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,i.HT)(n)}}while(n=(0,s.K2)());return e}((0,s.c4)(e),t))}(t,o),l=r.props,c=0,p=0;c<a.length;c++)for(var f=0;f<l.length;f++,p++)e.props[p]=o[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function m(e,t){switch((0,i.tW)(e,t)){case 5103:return o.j+"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 o.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o.j+e+o.vd+e+o.MS+e+e;case 6828:case 4268:return o.j+e+o.MS+e+e;case 6165:return o.j+e+o.MS+"flex-"+e+e;case 5187:return o.j+e+(0,i.HC)(e,/(\w+).+(:[^]+)/,o.j+"box-$1$2"+o.MS+"flex-$1$2")+e;case 5443:return o.j+e+o.MS+"flex-item-"+(0,i.HC)(e,/flex-|-self/,"")+e;case 4675:return o.j+e+o.MS+"flex-line-pack"+(0,i.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return o.j+e+o.MS+(0,i.HC)(e,"shrink","negative")+e;case 5292:return o.j+e+o.MS+(0,i.HC)(e,"basis","preferred-size")+e;case 6060:return o.j+"box-"+(0,i.HC)(e,"-grow","")+o.j+e+o.MS+(0,i.HC)(e,"grow","positive")+e;case 4554:return o.j+(0,i.HC)(e,/([^-])(transform)/g,"$1"+o.j+"$2")+e;case 6187:return(0,i.HC)((0,i.HC)((0,i.HC)(e,/(zoom-|grab)/,o.j+"$1"),/(image-set)/,o.j+"$1"),e,"")+e;case 5495:case 3959:return(0,i.HC)(e,/(image-set\([^]*)/,o.j+"$1$`$1");case 4968:return(0,i.HC)((0,i.HC)(e,/(.+:)(flex-)?(.*)/,o.j+"box-pack:$3"+o.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.HC)(e,/(.+)-inline(.+)/,o.j+"$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((0,i.b2)(e)-1-t>6)switch((0,i.wN)(e,t+1)){case 109:if(45!==(0,i.wN)(e,t+4))break;case 102:return(0,i.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+o.j+"$2-$3$1"+o.vd+(108==(0,i.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.K5)(e,"stretch")?m((0,i.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.wN)(e,t+1))break;case 6444:switch((0,i.wN)(e,(0,i.b2)(e)-3-(~(0,i.K5)(e,"!important")&&10))){case 107:return(0,i.HC)(e,":",":"+o.j)+e;case 101:return(0,i.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o.j+(45===(0,i.wN)(e,14)?"inline-":"")+"box$3$1"+o.j+"$2$3$1"+o.MS+"$2box$3")+e}break;case 5936:switch((0,i.wN)(e,t+11)){case 114:return o.j+e+o.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o.j+e+o.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o.j+e+o.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return o.j+e+o.MS+e+e}return e}var h=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case o.LU:e.return=m(e.value,e.length);break;case o.Sv:return(0,l.l)([(0,s.C)(e,{value:(0,i.HC)(e.value,"@","@"+o.j)})],n);case o.XZ:if(e.length)return(0,i.kg)(e.props,function(t){switch((0,i.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.l)([(0,s.C)(e,{props:[(0,i.HC)(t,/:(read-\w+)/,":"+o.vd+"$1")]})],n);case"::placeholder":return(0,l.l)([(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+o.j+"input-$1")]}),(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+o.vd+"$1")]}),(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,o.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,s=e.stylisPlugins||h,u={},d=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)u[t[r]]=!0;d.push(e)});var m,g=[p,f],v=[l.A,(0,c.MY)(function(e){m.insert(e)})],b=(0,c.r1)(g.concat(s,v));i=function(e,t,r,n){var o;m=r,o=e?e+"{"+t.styles+"}":t.styles,(0,l.l)((0,a.wE)(o),b),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new n.v({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:i};return y.sheet.hydrate(d),y}},5035(e,t,r){"use strict";r.d(t,{i:()=>a,s:()=>i});var n=r(1609),o=!!n.useInsertionEffect&&n.useInsertionEffect,i=o||function(e){return e()},a=o||n.useLayoutEffect},5482(e,t,r){"use strict";r.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>l,zs:()=>s});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},5566(e,t,r){"use strict";r.d(t,{A:()=>n});var n=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}}},5664(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},5739(e,t,r){"use strict";r.d(t,{A:()=>o});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=(i={},function(e){return void 0===i[e]&&(i[e]=(t=e,n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),i[e];var t});var i},5795(e){"use strict";e.exports=window.ReactDOM},5843(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},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===d||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},5870(e,t,r){"use strict";r.d(t,{DK:()=>h});var n=r(5482),o=r(1609),i=r(1812),a=r(3914),s=r(1401),l=r(4015),c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},u=function(e){return[e.deltaX,e.deltaY]},d=function(e){return e&&"current"in e?e.current:e},p=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},f=0,m=[];function h(e){var t=o.useRef([]),r=o.useRef([0,0]),h=o.useRef(),v=o.useState(f++)[0],b=o.useState(a.T0)[0],y=o.useRef(e);o.useEffect(function(){y.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(v));var t=(0,n.fX)([e.lockRef.current],(e.shards||[]).map(d),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(v))}),function(){document.body.classList.remove("block-interactivity-".concat(v)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(v))})}}},[e.inert,e.lockRef.current,e.shards]);var x=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!y.current.allowPinchZoom;var n,o=c(e),i=r.current,a="deltaX"in e?e.deltaX:i[0]-o[0],s="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var m=(0,l.K)(d,u);if(!m)return!0;if(m?n=d:(n="v"===d?"h":"v",m=(0,l.K)(d,u)),!m)return!1;if(!h.current&&"changedTouches"in e&&(a||s)&&(h.current=n),!n)return!0;var g=h.current||n;return(0,l.Q)(g,t,e,"h"===g?a:s,!0)},[]),w=o.useCallback(function(e){var r=e;if(m.length&&m[m.length-1]===b){var n="deltaY"in r?u(r):c(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(y.current.shards||[]).map(d).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?x(r,i[0]):!y.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),_=o.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:g(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),C=o.useCallback(function(e){r.current=c(e),h.current=void 0},[]),S=o.useCallback(function(t){_(t.type,u(t),t.target,x(t,e.lockRef.current))},[]),j=o.useCallback(function(t){_(t.type,c(t),t.target,x(t,e.lockRef.current))},[]);o.useEffect(function(){return m.push(b),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:j}),document.addEventListener("wheel",w,s.X),document.addEventListener("touchmove",w,s.X),document.addEventListener("touchstart",C,s.X),function(){m=m.filter(function(e){return e!==b}),document.removeEventListener("wheel",w,s.X),document.removeEventListener("touchmove",w,s.X),document.removeEventListener("touchstart",C,s.X)}},[]);var k=e.removeScrollBar,R=e.inert;return o.createElement(o.Fragment,null,R?o.createElement(b,{styles:p(v)}):null,k?o.createElement(i.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function g(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}},5917(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(8985),o=r(5870),i=r(2287);const a=(0,n.m)(i.O,o.DK)},5959(e,t,r){"use strict";e.exports=r(5843)},6140(e,t,r){"use strict";r.d(t,{UQ:()=>i,gf:()=>s,rd:()=>a});var n=r(7808),o=r(7911);function i(){return{...(0,o.G6)(),theme:(0,n.D)()}}function a(e,t,r){const o=(0,n.D)();return s(e,t,r)(o)}function s(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return r=>{const i=o.filter(Boolean),a=n.map((t,n)=>{var o,a;return"breakpoints"===e?function(e,t,r){var n,o;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(o=null!=(n=i(t))?n:i(r))?o:r}(r,t,null!=(o=i[n])?o:t):function(e,t,r){var n,o;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(o=null!=(n=i(t))?n:i(r))?o:r}(r,`${e}.${t}`,null!=(a=i[n])?a:t)});return Array.isArray(t)?a:a[0]}}},6186(e,t,r){"use strict";var n=r(2985);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},6397(e,t,r){"use strict";r.d(t,{P:()=>i});var n={left:0,top:0,right:0,gap:0},o=function(e){return parseInt(e||"",10)||0},i=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return n;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[o(r),o(n),o(i)]}(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}}},6491(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6606),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,n.A)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})},6606(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},6624(e,t,r){"use strict";r.d(t,{J:()=>h});var n=r(1078),o=r(2691),i=r(6606),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return f={name:t,styles:r,next:f},t})}return 1===o.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)f={name:a.name,styles:a.styles,next:f},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=p(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":c(s)&&(n+=u(i)+":"+d(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=p(e,t,a);switch(i){case"animation":case"animationName":n+=u(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var f=0;f<a.length;f++)c(a[f])&&(n+=u(i)+":"+d(i,a[f])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=f,l=r(e);return f=s,p(e,t,l)}}var m=r;if(null==t)return m;var h=t[m];return void 0!==h?h:m}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function h(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";f=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=p(r,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=p(r,t,e[s]),o&&(i+=a[s]);m.lastIndex=0;for(var l,c="";null!==(l=m.exec(i));)c+="-"+l[1];return{name:(0,n.A)(i)+c,styles:i,next:f}}},6634(e,t,r){"use strict";r.d(t,{w:()=>o});var n=r(1609);function o(e,t){const r=(0,n.useRef)(!1),o=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&o.current)return e();o.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},6691(e,t,r){"use strict";r.d(t,{B:()=>o});var n=r(9418),o=function(){const e=new Map;return new Proxy(n.I,{apply:(e,t,r)=>(0,n.I)(...r),get:(t,r)=>(e.has(r)||e.set(r,(0,n.I)(r)),e.get(r))})}()},6727(e,t,r){"use strict";r.d(t,{m:()=>n});var n=function(){return r.nc}},6779(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(1609),o=r(8255),i=function(){var e=(0,o.i)();return function(t,r){n.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}}},6789(e,t,r){"use strict";r.d(t,{BN:()=>j,ER:()=>O,Ej:()=>R,UE:()=>A,UU:()=>k,cY:()=>S,jD:()=>E,ll:()=>C,rD:()=>P});var n=r(4597),o=r(1469),i=r(4511);function a(e){const t=(0,i.L9)(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=(0,i.sb)(e),s=a?e.offsetWidth:r,l=a?e.offsetHeight:n,c=(0,o.LI)(r)!==s||(0,o.LI)(n)!==l;return c&&(r=s,n=l),{width:r,height:n,$:c}}function s(e){return(0,i.vq)(e)?e:e.contextElement}function l(e){const t=s(e);if(!(0,i.sb)(t))return(0,o.Jx)(1);const r=t.getBoundingClientRect(),{width:n,height:l,$:c}=a(t);let u=(c?(0,o.LI)(r.width):r.width)/n,d=(c?(0,o.LI)(r.height):r.height)/l;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const c=(0,o.Jx)(0);function u(e){const t=(0,i.zk)(e);return(0,i.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:c}function d(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),c=s(e);let d=(0,o.Jx)(1);t&&(n?(0,i.vq)(n)&&(d=l(n)):d=l(e));const p=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==(0,i.zk)(e))&&t}(c,r,n)?u(c):(0,o.Jx)(0);let f=(a.left+p.x)/d.x,m=(a.top+p.y)/d.y,h=a.width/d.x,g=a.height/d.y;if(c){const e=(0,i.zk)(c),t=n&&(0,i.vq)(n)?(0,i.zk)(n):n;let r=e,o=(0,i._m)(r);for(;o&&n&&t!==r;){const e=l(o),t=o.getBoundingClientRect(),n=(0,i.L9)(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;f*=e.x,m*=e.y,h*=e.x,g*=e.y,f+=a,m+=s,r=(0,i.zk)(o),o=(0,i._m)(r)}}return(0,o.B1)({width:h,height:g,x:f,y:m})}function p(e,t){const r=(0,i.CP)(e).scrollLeft;return t?t.left+r:d((0,i.ep)(e)).left+r}function f(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-p(e,r),y:r.top+t.scrollTop}}const m=new Set(["absolute","fixed"]);function h(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=(0,i.zk)(e),n=(0,i.ep)(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;const e=(0,i.Tc)();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}const u=p(n);if(u<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:s,x:l,y:c}}(e,r);else if("document"===t)n=function(e){const t=(0,i.ep)(e),r=(0,i.CP)(e),n=e.ownerDocument.body,a=(0,o.T9)(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=(0,o.T9)(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+p(e);const c=-r.scrollTop;return"rtl"===(0,i.L9)(n).direction&&(l+=(0,o.T9)(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:l,y:c}}((0,i.ep)(e));else if((0,i.vq)(t))n=function(e,t){const r=d(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,s=(0,i.sb)(e)?l(e):(0,o.Jx)(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:a*s.x,y:n*s.y}}(t,r);else{const r=u(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,o.B1)(n)}function g(e,t){const r=(0,i.$4)(e);return!(r===t||!(0,i.vq)(r)||(0,i.eu)(r))&&("fixed"===(0,i.L9)(r).position||g(r,t))}function v(e,t,r){const n=(0,i.sb)(t),a=(0,i.ep)(t),s="fixed"===r,l=d(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=(0,o.Jx)(0);function m(){u.x=p(a)}if(n||!n&&!s)if(("body"!==(0,i.mq)(t)||(0,i.ZU)(a))&&(c=(0,i.CP)(t)),n){const e=d(t,!0,s,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&m();s&&!n&&a&&m();const h=!a||n||s?(0,o.Jx)(0):f(a,c);return{x:l.left+c.scrollLeft-u.x-h.x,y:l.top+c.scrollTop-u.y-h.y,width:l.width,height:l.height}}function b(e){return"static"===(0,i.L9)(e).position}function y(e,t){if(!(0,i.sb)(e)||"fixed"===(0,i.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,i.ep)(e)===r&&(r=r.ownerDocument.body),r}function x(e,t){const r=(0,i.zk)(e);if((0,i.Tf)(e))return r;if(!(0,i.sb)(e)){let t=(0,i.$4)(e);for(;t&&!(0,i.eu)(t);){if((0,i.vq)(t)&&!b(t))return t;t=(0,i.$4)(t)}return r}let n=y(e,t);for(;n&&(0,i.Lv)(n)&&b(n);)n=y(n,t);return n&&(0,i.eu)(n)&&b(n)&&!(0,i.sQ)(n)?r:n||(0,i.gJ)(e)||r}const w={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const s="fixed"===a,c=(0,i.ep)(n),u=!!t&&(0,i.Tf)(t.floating);if(n===c||u&&s)return r;let p={scrollLeft:0,scrollTop:0},m=(0,o.Jx)(1);const h=(0,o.Jx)(0),g=(0,i.sb)(n);if((g||!g&&!s)&&(("body"!==(0,i.mq)(n)||(0,i.ZU)(c))&&(p=(0,i.CP)(n)),(0,i.sb)(n))){const e=d(n);m=l(n),h.x=e.x+n.clientLeft,h.y=e.y+n.clientTop}const v=!c||g||s?(0,o.Jx)(0):f(c,p);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-p.scrollLeft*m.x+h.x+v.x,y:r.y*m.y-p.scrollTop*m.y+h.y+v.y}},getDocumentElement:i.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[..."clippingAncestors"===r?(0,i.Tf)(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=(0,i.v9)(e,[],!1).filter(e=>(0,i.vq)(e)&&"body"!==(0,i.mq)(e)),o=null;const a="fixed"===(0,i.L9)(e).position;let s=a?(0,i.$4)(e):e;for(;(0,i.vq)(s)&&!(0,i.eu)(s);){const t=(0,i.L9)(s),r=(0,i.sQ)(s);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&o&&m.has(o.position)||(0,i.ZU)(s)&&!r&&g(e,s))?n=n.filter(e=>e!==s):o=t,s=(0,i.$4)(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=s[0],c=s.reduce((e,r)=>{const n=h(t,r,a);return e.top=(0,o.T9)(n.top,e.top),e.right=(0,o.jk)(n.right,e.right),e.bottom=(0,o.jk)(n.bottom,e.bottom),e.left=(0,o.T9)(n.left,e.left),e},h(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:x,getElementRects:async function(e){const t=this.getOffsetParent||x,r=this.getDimensions,n=await r(e.floating);return{reference:v(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=a(e);return{width:t,height:r}},getScale:l,isElement:i.vq,isRTL:function(e){return"rtl"===(0,i.L9)(e).direction}};function _(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=s(e),m=a||l?[...f?(0,i.v9)(f):[],...(0,i.v9)(t)]:[];m.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});const h=f&&u?function(e,t){let r,n=null;const a=(0,i.ep)(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:f,height:m}=u;if(l||t(),!f||!m)return;const h={rootMargin:-(0,o.RI)(p)+"px "+-(0,o.RI)(a.clientWidth-(d+f))+"px "+-(0,o.RI)(a.clientHeight-(p+m))+"px "+-(0,o.RI)(d)+"px",threshold:(0,o.T9)(0,(0,o.jk)(1,c))||1};let g=!0;function v(t){const n=t[0].intersectionRatio;if(n!==c){if(!g)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||_(u,e.getBoundingClientRect())||i(),g=!1}try{n=new IntersectionObserver(v,{...h,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,h)}n.observe(e)}(!0),s}(f,r):null;let g,v=-1,b=null;c&&(b=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),r()}),f&&!p&&b.observe(f),b.observe(t));let y=p?d(e):null;return p&&function t(){const n=d(e);y&&!_(y,n)&&r(),y=n,g=requestAnimationFrame(t)}(),r(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=b)||e.disconnect(),b=null,p&&cancelAnimationFrame(g)}}const S=n.cY,j=n.BN,k=n.UU,R=n.Ej,E=n.jD,A=n.UE,O=n.ER,P=(e,t,r)=>{const o=new Map,i={platform:w,...r},a={...i.platform,_c:o};return(0,n.rD)(e,t,{...i,platform:a})}},7462(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}r.d(t,{b:()=>n})},7582(e,t,r){"use strict";r.d(t,{c:()=>o});var n=r(1609);function o(e,t){var r=(0,n.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=t,r.facade}},7652(e,t,r){"use strict";r.d(t,{Vl:()=>u,o5:()=>d});var n=r(6140),o=r(7907),i=r(8061),a=r(2994),s=r(1609),l=r(4072);function c(e,t={}){var r;const{styleConfig:c,...u}=t,{theme:d,colorMode:p}=(0,n.UQ)(),f=e?(0,a.rY)(d,`components.${e}`):void 0,m=c||f,h=i({theme:d,colorMode:p},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,a.TB)((0,a.cJ)(u,["children"]))),g=(0,s.useRef)({});if(m){const e=(0,o.uB)(m)(h);l(g.current,e)||(g.current=e)}return g.current}function u(e,t={}){return c(e,t)}function d(e,t={}){return c(e,t)}},7723(e){"use strict";e.exports=window.wp.i18n},7808(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(8354),o=r(1609);function i(){const e=(0,o.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},7822(e,t,r){"use strict";r.d(t,{IO:()=>d,LU:()=>l,MS:()=>n,Sv:()=>u,XZ:()=>s,YK:()=>a,j:()=>i,vd:()=>o,yE:()=>c});var n="-ms-",o="-moz-",i="-webkit-",a="comm",s="rule",l="decl",c="@import",u="@keyframes",d="@layer"},7907(e,t,r){"use strict";r.d(t,{AH:()=>Be,Dt:()=>Le,H2:()=>Ie,HU:()=>De,MN:()=>$e,Vg:()=>te,YU:()=>ze,f4:()=>Ve,gd:()=>Ee,lL:()=>re,q8:()=>Pe,uB:()=>He});var n=r(1269),o=r(8061),i=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function a(e){const{scale:t,transform:r,compose:o}=e;return(e,a)=>{var s;const l=((e,t)=>r=>{const o=String(t),a=(e=>/!(important)?$/.test(e))(o),s=i(o),l=e?`${e}.${s}`:s;let c=(0,n.Gv)(r.__cssMap)&&l in r.__cssMap?r.__cssMap[l].varRef:t;return c=i(c),a?`${c} !important`:c})(t,e)(a);let c=null!=(s=null==r?void 0:r(l,a))?s:l;return o&&(c=o(c,a)),c}}var s=(...e)=>t=>e.reduce((e,t)=>t(e),t);function l(e,t){return r=>{const n={property:r,scale:e};return n.transform=a({scale:e,transform:t}),n}}var c=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,u=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],d={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},p={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},f={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},h=new Set(Object.values(m)),g=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),v=e=>e.trim(),b=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),y=e=>t=>`${e}(${t})`,x={filter:e=>"auto"!==e?e:d,backdropFilter:e=>"auto"!==e?e:p,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(x.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...u].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...u].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||g.has(e))return e;if(!b(e)&&!g.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],o=null==r?void 0:r[2];if(!n||!o)return e;const i=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=o.split(",").map(v).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in m?m[a]:a;return s.unshift(l),`${i}(${s.map(e=>{if(h.has(e))return e;const r=e.indexOf(" "),[n,o]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],i=b(o)?o:o&&o.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}).join(", ")})`}(e,null!=t?t:{}),blur:y("blur"),opacity:y("opacity"),brightness:y("brightness"),contrast:y("contrast"),dropShadow:y("drop-shadow"),grayscale:y("grayscale"),hueRotate:e=>y("hue-rotate")(x.degree(e)),invert:y("invert"),saturate:y("saturate"),sepia:y("sepia"),bgImage:e=>null==e||b(e)||g.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=null!=(t=f[e])?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:l("borderWidths"),borderStyles:l("borderStyles"),colors:l("colors"),borders:l("borders"),gradients:l("gradients",x.gradient),radii:l("radii",x.px),space:l("space",s(x.vh,x.px)),spaceT:l("space",s(x.vh,x.px)),degreeT:e=>({property:e,transform:x.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:a({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:l("sizes",s(x.vh,x.px)),sizesT:l("sizes",s(x.vh,x.fraction)),shadows:l("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:c(t),transform:r?a({scale:r,compose:n}):n}},blur:l("blur",x.blur)},_={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:x.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:x.bgClip}};Object.assign(_,{bgImage:_.backgroundImage,bgImg:_.backgroundImage});var C={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(C,{rounded:C.borderRadius,roundedTop:C.borderTopRadius,roundedTopLeft:C.borderTopLeftRadius,roundedTopRight:C.borderTopRightRadius,roundedTopStart:C.borderStartStartRadius,roundedTopEnd:C.borderStartEndRadius,roundedBottom:C.borderBottomRadius,roundedBottomLeft:C.borderBottomLeftRadius,roundedBottomRight:C.borderBottomRightRadius,roundedBottomStart:C.borderEndStartRadius,roundedBottomEnd:C.borderEndEndRadius,roundedLeft:C.borderLeftRadius,roundedRight:C.borderRightRadius,roundedStart:C.borderInlineStartRadius,roundedEnd:C.borderInlineEndRadius,borderStart:C.borderInlineStart,borderEnd:C.borderInlineEnd,borderTopStartRadius:C.borderStartStartRadius,borderTopEndRadius:C.borderStartEndRadius,borderBottomStartRadius:C.borderEndStartRadius,borderBottomEndRadius:C.borderEndEndRadius,borderStartRadius:C.borderInlineStartRadius,borderEndRadius:C.borderInlineEndRadius,borderStartWidth:C.borderInlineStartWidth,borderEndWidth:C.borderInlineEndWidth,borderStartColor:C.borderInlineStartColor,borderEndColor:C.borderInlineEndColor,borderStartStyle:C.borderInlineStartStyle,borderEndStyle:C.borderInlineEndStyle});var S={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},j={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var k={filter:{transform:x.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",x.brightness),contrast:w.propT("--chakra-contrast",x.contrast),hueRotate:w.propT("--chakra-hue-rotate",x.hueRotate),invert:w.propT("--chakra-invert",x.invert),saturate:w.propT("--chakra-saturate",x.saturate),dropShadow:w.propT("--chakra-drop-shadow",x.dropShadow),backdropFilter:{transform:x.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",x.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",x.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",x.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",x.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",x.saturate)},R={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:x.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(R,{flexDir:R.flexDirection});var E={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},A={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:x.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},O={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;const i=`@media screen and (min-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;const i=`@media screen and (max-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",x.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(O,{w:O.width,h:O.height,minW:O.minWidth,maxW:O.maxWidth,minH:O.minHeight,maxH:O.maxHeight,overscroll:O.overscrollBehavior,overscrollX:O.overscrollBehaviorX,overscrollY:O.overscrollBehaviorY});var P={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")},T=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e}),D={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},M={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},N=(e,t,r)=>{const n={},o=T(e,t,{});for(const e in o)e in r&&null!=r[e]||(n[e]=o[e]);return n},B={srOnly:{transform:e=>!0===e?D:"focusable"===e?M:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>N(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>N(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>N(t,e,r)}},I={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(I,{insetStart:I.insetInlineStart,insetEnd:I.insetInlineEnd});var L={ring:{transform:x.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},z={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(z,{m:z.margin,mt:z.marginTop,mr:z.marginRight,me:z.marginInlineEnd,marginEnd:z.marginInlineEnd,mb:z.marginBottom,ml:z.marginLeft,ms:z.marginInlineStart,marginStart:z.marginInlineStart,mx:z.marginX,my:z.marginY,p:z.padding,pt:z.paddingTop,py:z.paddingY,px:z.paddingX,pb:z.paddingBottom,pl:z.paddingLeft,ps:z.paddingInlineStart,paddingStart:z.paddingInlineStart,pr:z.paddingRight,pe:z.paddingInlineEnd,paddingEnd:z.paddingInlineEnd});var F={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},H={clipPath:!0,transform:w.propT("transform",x.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},V={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},$={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",x.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},U={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function W(e){return(0,n.Gv)(e)&&e.reference?e.reference:String(e)}var q=(e,...t)=>t.map(W).join(` ${e} `).replace(/calc/g,""),Z=(...e)=>`calc(${q("+",...e)})`,Y=(...e)=>`calc(${q("-",...e)})`,G=(...e)=>`calc(${q("*",...e)})`,X=(...e)=>`calc(${q("/",...e)})`,K=e=>{const t=W(e);return null==t||Number.isNaN(parseFloat(t))?G(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},J=Object.assign(e=>({add:(...t)=>J(Z(e,...t)),subtract:(...t)=>J(Y(e,...t)),multiply:(...t)=>J(G(e,...t)),divide:(...t)=>J(X(e,...t)),negate:()=>J(K(e)),toString:()=>e.toString()}),{add:Z,subtract:Y,multiply:G,divide:X,negate:K});function Q(e,t){return`var(${e}${t?`, ${t}`:""})`}function ee(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function te(e,t,r){const n=ee(e,r);return{variable:n,reference:Q(n,t)}}function re(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[t,o]=n;r[t]=te(`${e}-${t}`,o);continue}r[n]=te(`${e}-${n}`)}return r}function ne(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function oe(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var ie=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ae=e=>Object.fromEntries(Object.entries(e).sort(ie));function se(e){const t=ae(e);return Object.assign(Object.values(t),t)}function le(e){var t;return e?"number"==typeof(e=null!=(t=oe(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function ce(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${oe(e)})`),t&&r.push("and",`(max-width: ${oe(t)})`),r.join(" ")}function ue(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=se(e),o=Object.entries(e).sort(ie).map(([e,t],r,n)=>{var o;let[,i]=null!=(o=n[r+1])?o:[];return i=parseFloat(i)>0?le(i):void 0,{_minW:le(t),breakpoint:e,minW:t,maxW:i,maxWQuery:ce(null,i),minWQuery:ce(t),minMaxQuery:ce(t,i)}}),i=function(e){const t=Object.keys(ae(e));return new Set(t)}(e),a=Array.from(i.values());return{keys:i,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>i.has(e))},asObject:ae(e),asArray:se(e),details:o,get:e=>o.find(t=>t.breakpoint===e),media:[null,...r.map(e=>ce(e)).slice(1)],toArrayValue(e){if(!(0,n.Gv)(e))throw new Error("toArrayValue: value must be an object");const t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===ne(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{const n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}var de=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,pe=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,fe=(e,t)=>`${e}:focus-visible ${t}`,me=(e,t)=>`${e}:focus-within ${t}`,he=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ge=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,ve=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,be=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,ye=e=>we(t=>e(t,"&"),"[role=group]","[data-group]",".group"),xe=e=>we(t=>e(t,"~ &"),"[data-peer]",".peer"),we=(e,...t)=>t.map(e).join(", "),_e={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ye(de),_peerHover:xe(de),_groupFocus:ye(pe),_peerFocus:xe(pe),_groupFocusVisible:ye(fe),_peerFocusVisible:xe(fe),_groupActive:ye(he),_peerActive:xe(he),_groupDisabled:ye(ge),_peerDisabled:xe(ge),_groupInvalid:ye(ve),_peerInvalid:xe(ve),_groupChecked:ye(be),_peerChecked:xe(be),_groupFocusWithin:ye(me),_peerFocusWithin:xe(me),_peerPlaceholderShown:xe((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Ce=Object.keys(_e);function Se(e,t){return te(String(e).replace(/\./g,"-"),void 0,t)}function je(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[l,c]of Object.entries(r)){const u=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,u];if(null==n?void 0:n(r,d))return t(r,i);s[u]=e(c,d)}return s}return t(r,i)}(e)}var ke=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],Re=e=>Ce.includes(e)||"default"===e;function Ee(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}(e),i=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,ke)}(r),a=function(e){return e.semanticTokens}(r),s=function({tokens:e,semanticTokens:t}){const r={};return je(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),je(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(Re)}),r}({tokens:i,semanticTokens:a}),l=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:c,cssVars:u}=function(e,t){let r={};const i={};for(const[a,s]of Object.entries(e)){const{isSemantic:l,value:c}=s,{variable:u,reference:d}=Se(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){const e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,o=J.negate(c),s=J.negate(d);i[n]={value:o,var:u,varRef:s}}r[u]=c,i[a]={value:c,var:u,varRef:d};continue}const p=r=>{const n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;const{reference:o}=Se(n,null==t?void 0:t.cssVarPrefix);return o},f=(0,n.Gv)(c)?c:{default:c};r=o(r,Object.entries(f).reduce((e,[t,r])=>{var n,o;if(!r)return e;const i=p(`${r}`);return"default"===t?(e[u]=i,e):(e[null!=(o=null==(n=_e)?void 0:n[t])?o:t]={[u]:i},e)},{})),i[a]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:i}}(s,{cssVarPrefix:l});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...u},__cssMap:c,__breakpoints:ue(r.breakpoints)}),r}var Ae=o({},_,C,S,R,O,k,L,A,E,B,I,j,z,U,$,F,H,P,V),Oe=Object.assign({},z,O,R,E,I),Pe=(Object.keys(Oe),[...Object.keys(Ae),...Ce]),Te={...Ae,..._e},De=e=>e in Te,Me=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Ne=(e,t)=>{var r,n;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(n=!0,r+=i):")"===i?(n=!1,r+=i):","!==i||n?r+=i:(t.push(r),r="")}return r=r.trim(),r&&t.push(r),t}(t);return null!=(n=null!=(r=o(a))?r:i(s))?n:i(t)};var Be=e=>t=>function(e){const{configs:t={},pseudos:r={},theme:i}=e,a=(e,s=!1)=>{var l,c,u;const d=(0,n.Jg)(e,i),p=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:o,media:i}=t.__breakpoints,a={};for(const s in e){let l=(0,n.Jg)(e[s],t);if(null==l)continue;if(l=(0,n.Gv)(l)&&r(l)?o(l):l,!Array.isArray(l)){a[s]=l;continue}const c=l.slice(0,i.length).length;for(let e=0;e<c;e+=1){const t=null==i?void 0:i[e];t?(a[t]=a[t]||{},null!=l[e]&&(a[t][s]=l[e])):a[s]=l[e]}}return a})(d)(i);let f={};for(let e in p){const m=p[e];let h=(0,n.Jg)(m,i);e in r&&(e=r[e]),Me(e,h)&&(h=Ne(i,h));let g=t[e];if(!0===g&&(g={property:e}),(0,n.Gv)(h)){f[e]=null!=(l=f[e])?l:{},f[e]=o({},f[e],a(h,!0));continue}let v=null!=(u=null==(c=null==g?void 0:g.transform)?void 0:c.call(g,h,i,d))?u:h;v=(null==g?void 0:g.processResult)?a(v,!0):v;const b=(0,n.Jg)(null==g?void 0:g.property,i);if(!s&&(null==g?void 0:g.static)){const e=(0,n.Jg)(g.static,i);f=o({},f,e)}if(b&&Array.isArray(b))for(const e of b)f[e]=v;else b?"&"===b&&(0,n.Gv)(v)?f=o({},f,v):f[b]=v:(0,n.Gv)(v)?f=o({},f,v):f[e]=v}return f};return a}({theme:t,pseudos:_e,configs:Ae})(e);function Ie(e){return e}function Le(e){return e}function ze(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function Fe(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}function He(e){return t=>{var r;const{variant:i,size:a,theme:s}=t,l=function(e){const t=e.__breakpoints;return function(e,r,i,a){var s,l;if(!t)return;const c={},u=function(e,t){return Array.isArray(e)?e:(0,n.Gv)(e)?t(e):null!=e?[e]:void 0}(i,t.toArrayValue);if(!u)return c;const d=u.length,p=1===d,f=!!e.parts;for(let i=0;i<d;i++){const d=t.details[i],m=t.details[Fe(u,i)],h=ce(d.minW,null==m?void 0:m._minW),g=(0,n.Jg)(null==(s=e[r])?void 0:s[u[i]],a);g&&(f?null==(l=e.parts)||l.forEach(e=>{o(c,{[e]:p?g[e]:{[h]:g[e]}})}):f?c[h]=g:p?o(c,g):c[h]=g)}return c}}(s);return o({},(0,n.Jg)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",i,t))}}function Ve(e,t,r){var n,o,i;return null!=(i=null==(o=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:o.varRef)?i:r}function $e(e){return function(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},7911(e,t,r){"use strict";r.d(t,{G6:()=>i,Ig:()=>o,dU:()=>a});var n=r(1609),o=(0,n.createContext)({});function i(){const e=(0,n.useContext)(o);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){const{colorMode:r}=i();return"dark"===r?t:e}o.displayName="ColorModeContext"},7943(e,t,r){"use strict";r.d(t,{MY:()=>i,r1:()=>o});var n=r(8975);function o(e){var t=(0,n.FK)(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},8061(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[i]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d,p,f,m="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,h="object"==typeof self&&self&&self.Object===Object&&self,g=m||h||Function("return this")(),v=t&&!t.nodeType&&t,b=v&&e&&!e.nodeType&&e,y=b&&b.exports===v,x=y&&m.process,w=function(){try{return b&&b.require&&b.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),_=w&&w.isTypedArray,C=Array.prototype,S=Function.prototype,j=Object.prototype,k=g["__core-js_shared__"],R=S.toString,E=j.hasOwnProperty,A=(d=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",O=j.toString,P=R.call(Object),T=RegExp("^"+R.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=y?g.Buffer:void 0,M=g.Symbol,N=g.Uint8Array,B=(D&&D.allocUnsafe,p=Object.getPrototypeOf,f=Object,function(e){return p(f(e))}),I=Object.create,L=j.propertyIsEnumerable,z=C.splice,F=M?M.toStringTag:void 0,H=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),V=D?D.isBuffer:void 0,$=Math.max,U=Date.now,W=se(g,"Map"),q=se(Object,"create"),Z=function(){function e(){}return function(t){if(!ye(t))return{};if(I)return I(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function G(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function K(e){var t=this.__data__=new G(e);this.size=t.size}function J(e,t,r){(void 0!==r&&!pe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function Q(e,t,r){var n=e[t];E.call(e,t)&&pe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(pe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Y.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},Y.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Y.prototype.get=function(e){var t=this.__data__;if(q){var r=t[e];return r===n?void 0:r}return E.call(t,e)?t[e]:void 0},Y.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:E.call(t,e)},Y.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=q&&void 0===t?n:t,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():z.call(t,r,1),--this.size,0))},G.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},G.prototype.has=function(e){return ee(this.__data__,e)>-1},G.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(W||G),string:new Y}},X.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return ae(this,e).get(e)},X.prototype.has=function(e){return ae(this,e).has(e)},X.prototype.set=function(e,t){var r=ae(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new G,this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,t){var r=this.__data__;if(r instanceof G){var n=r.__data__;if(!W||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new X(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=E.call(e,F),r=e[F];try{e[F]=void 0;var n=!0}catch(e){}var o=O.call(e);return n&&(t?e[F]=r:delete e[F]),o}(e):function(e){return O.call(e)}(e)}function ne(e){return xe(e)&&re(e)==i}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}}(t,function(i,a){if(o||(o=new K),ye(i))!function(e,t,r,n,o,i,a){var l=ue(e,r),c=ue(t,r),u=a.get(c);if(u)J(e,r,u);else{var d,p,f,m,h,g=i?i(l,c,r+"",e,t,a):void 0,v=void 0===g;if(v){var b=me(c),y=!b&&ge(c),x=!b&&!y&&we(c);g=c,b||y||x?me(l)?g=l:xe(h=l)&&he(h)?g=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(l):y?(v=!1,g=function(e){return e.slice()}(c)):x?(v=!1,m=new(f=(d=c).buffer).constructor(f.byteLength),new N(m).set(new N(f)),p=m,g=new d.constructor(p,d.byteOffset,d.length)):g=[]:function(e){if(!xe(e)||re(e)!=s)return!1;var t=B(e);if(null===t)return!0;var r=E.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==P}(c)||fe(c)?(g=l,fe(l)?g=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),n?te(r,a,s):Q(r,a,s)}return r}(e,_e(e))}(l):ye(l)&&!ve(l)||(g=function(e){return"function"!=typeof e.constructor||ce(e)?{}:Z(B(e))}(c))):v=!1}v&&(a.set(c,g),o(g,c,n,i,a),a.delete(c)),J(e,r,g)}}(e,t,a,r,oe,n,o);else{var l=n?n(ue(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),J(e,a,l)}},_e)}var ie=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:je;function ae(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!A&&A in e}(e))&&(ve(e)?T:l).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function le(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function ce(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||j)}function ue(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,r=0;return function(){var n=U(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function pe(e,t){return e===t||e!=e&&t!=t}var fe=ne(function(){return arguments}())?ne:function(e){return xe(e)&&E.call(e,"callee")&&!L.call(e,"callee")},me=Array.isArray;function he(e){return null!=e&&be(e.length)&&!ve(e)}var ge=V||function(){return!1};function ve(e){if(!ye(e))return!1;var t=re(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=_?function(e){return function(t){return e(t)}}(_):function(e){return xe(e)&&be(e.length)&&!!u[re(e)]};function _e(e){return he(e)?function(e,t){var r=me(e),n=!r&&fe(e),o=!r&&!n&&ge(e),i=!r&&!n&&!o&&we(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!E.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||le(c,l))||s.push(c);return s}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ce(e),r=[];for(var n in e)("constructor"!=n||!t&&E.call(e,n))&&r.push(n);return r}(e)}var Ce,Se=(Ce=function(e,t,r,n){oe(e,t,r,n)},function(e,t){return de(function(e,t,r){return t=$(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=$(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,je),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Ce.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!ye(r))return!1;var n=typeof t;return!!("number"==n?he(r)&&le(t,r.length):"string"==n&&t in r)&&pe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&Ce(e,a,r,o)}return e}));function je(e){return e}e.exports=Se},8255(e,t,r){"use strict";r.d(t,{i:()=>o});var n=r(6727),o=function(){var e=0,t=null;return{add:function(r){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,n.m)();return t&&e.setAttribute("nonce",t),e}())&&(i=r,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}},8354(e,t,r){"use strict";r.d(t,{E:()=>y,T:()=>p,a:()=>m,c:()=>v,h:()=>h,w:()=>d});var n=r(1609),o=r(4938),i=r(4320),a=r(5566),s=r(3595),l=r(6624),c=r(5035),u=n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),d=(u.Provider,function(e){return(0,n.forwardRef)(function(t,r){var o=(0,n.useContext)(u);return e(t,o,r)})}),p=n.createContext({}),f=(0,a.A)(function(e){return(0,a.A)(function(t){return function(e,t){return"function"==typeof t?t(e):(0,i.A)({},e,t)}(e,t)})}),m=function(e){var t=n.useContext(p);return e.theme!==t&&(t=f(t)(e.theme)),n.createElement(p.Provider,{value:t},e.children)},h={}.hasOwnProperty,g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(e,t){var r={};for(var n in t)h.call(t,n)&&(r[n]=t[n]);return r[g]=e,r},b=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,s.SF)(t,r,n),(0,c.s)(function(){return(0,s.sk)(t,r,n)}),null},y=d(function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[g],a=[o],c="";"string"==typeof e.className?c=(0,s.Rk)(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var u=(0,l.J)(a,void 0,n.useContext(p));c+=t.key+"-"+u.name;var d={};for(var f in e)h.call(e,f)&&"css"!==f&&f!==g&&(d[f]=e[f]);return d.className=c,r&&(d.ref=r),n.createElement(n.Fragment,null,n.createElement(b,{cache:t,serialized:u,isStringTag:"string"==typeof i}),n.createElement(i,d))})},8424(e,t,r){"use strict";r.d(t,{U:()=>o});var n=r(1609),o=Boolean(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},8472(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(4320),o=r(8354),i=r(6624),a=r(5035),s=r(3595),l=r(1609),c=r(6491).A,u=function(e){return"theme"!==e},d=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:u},p=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},f=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,s.SF)(t,r,n),(0,a.s)(function(){return(0,s.sk)(t,r,n)}),null},m=function e(t,r){var a,c,u=t.__emotion_real===t,m=u&&t.__emotion_base||t;void 0!==r&&(a=r.label,c=r.target);var h=p(t,r,u),g=h||d(m),v=!g("as");return function(){var b=arguments,y=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{var x=b[0];y.push(x[0]);for(var w=b.length,_=1;_<w;_++)y.push(b[_],x[_])}var C=(0,o.w)(function(e,t,r){var n=v&&e.as||m,a="",u=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=l.useContext(o.T)}"string"==typeof e.className?a=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var x=(0,i.J)(y.concat(u),t.registered,p);a+=t.key+"-"+x.name,void 0!==c&&(a+=" "+c);var w=v&&void 0===h?d(n):g,_={};for(var C in e)v&&"as"===C||w(C)&&(_[C]=e[C]);return _.className=a,r&&(_.ref=r),l.createElement(l.Fragment,null,l.createElement(f,{cache:t,serialized:x,isStringTag:"string"==typeof n}),l.createElement(n,_))});return C.displayName=void 0!==a?a:"Styled("+("string"==typeof m?m:m.displayName||m.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=m,C.__emotion_styles=y,C.__emotion_forwardProp=h,Object.defineProperty(C,"toString",{value:function(){return"."+c}}),C.withComponent=function(t,o){return e(t,(0,n.A)({},r,o,{shouldForwardProp:p(C,o,!0)})).apply(void 0,y)},C}}},8555(e,t,r){"use strict";r.d(t,{C:()=>a,f:()=>s});var n=r(5482);function o(e){return e}function i(e,t){void 0===t&&(t=o);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function a(e,t){return void 0===t&&(t=o),i(e,t)}function s(e){void 0===e&&(e={});var t=i(null);return t.options=(0,n.Cl)({async:!0,ssr:!1},e),t}},8558(e,t,r){"use strict";r.d(t,{q:()=>o});var n=r(1609);function o(e={}){const{name:t,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;const s=(0,n.useContext)(l);if(!s&&r){const r=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},l]}},8713(e,t,r){"use strict";r.d(t,{I:()=>c});var n=r(7652),o=r(6691),i=r(4403),a=r(1269),s=r(790),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},c=(0,i.R)((e,t)=>{const{as:r,viewBox:i,color:c="currentColor",focusable:u=!1,children:d,className:p,__css:f,...m}=e,h={ref:t,focusable:u,className:(0,a.cx)("chakra-icon",p),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:c,...f,...(0,n.Vl)("Icon",e)}},g=null!=i?i:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.B.svg,{as:r,...h,...m});const v=null!=d?d:l.path;return(0,s.jsx)(o.B.svg,{verticalAlign:"middle",viewBox:g,...h,...m,children:v})});c.displayName="Icon"},8975(e,t,r){"use strict";r.d(t,{BC:()=>h,Bq:()=>s,FK:()=>m,HC:()=>c,HT:()=>o,K5:()=>u,YW:()=>l,b2:()=>f,c1:()=>p,kg:()=>g,kp:()=>i,tW:()=>a,tn:()=>n,wN:()=>d});var n=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,r){return e.slice(t,r)}function f(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},8985(e,t,r){"use strict";r.d(t,{m:()=>a});var n=r(5482),o=r(1609),i=function(e){var t=e.sideCar,r=(0,n.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,(0,n.Cl)({},r))};function a(e,t){return e.useMedium(t),i}i.isSideCarExport=!0},9049(e,t,r){"use strict";r.d(t,{a:()=>o});var n=r(1609);function o(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}},9068(e,t,r){"use strict";r.d(t,{p:()=>u});var n=r(9918),o=r(7652),i=r(6691),a=r(4403),s=r(7907),l=r(1269),c=r(790),u=(0,a.R)(function(e,t){const{htmlSize:r,...a}=e,u=(0,o.o5)("Input",a),d=(0,s.MN)(a),p=(0,n.t)(d),f=(0,l.cx)("chakra-input",e.className);return(0,c.jsx)(i.B.input,{size:r,...p,__css:u.field,ref:t,className:f})});u.displayName="Input",u.id="Input"},9116(e,t,r){"use strict";r.d(t,{wE:()=>a});var n=r(7822),o=r(8975),i=r(3822);function a(e){return(0,i.VF)(s("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function s(e,t,r,n,a,d,p,f,m){for(var h=0,g=0,v=p,b=0,y=0,x=0,w=1,_=1,C=1,S=0,j="",k=a,R=d,E=n,A=j;_;)switch(x=S,S=(0,i.K2)()){case 40:if(108!=x&&58==(0,o.wN)(A,v-1)){-1!=(0,o.K5)(A+=(0,o.HC)((0,i.Tb)(S),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:A+=(0,i.Tb)(S);break;case 9:case 10:case 13:case 32:A+=(0,i.mw)(x);break;case 92:A+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)(c((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,r),m);break;default:A+="/"}break;case 123*w:f[h++]=(0,o.b2)(A)*C;case 125*w:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+g:-1==C&&(A=(0,o.HC)(A,/\f/g,"")),y>0&&(0,o.b2)(A)-v&&(0,o.BC)(y>32?u(A+";",n,r,v-1):u((0,o.HC)(A," ","")+";",n,r,v-2),m);break;case 59:A+=";";default:if((0,o.BC)(E=l(A,t,r,h,g,a,f,j,k=[],R=[],v),d),123===S)if(0===g)s(A,t,E,E,k,d,v,f,R);else switch(99===b&&110===(0,o.wN)(A,3)?100:b){case 100:case 108:case 109:case 115:s(e,E,E,n&&(0,o.BC)(l(e,E,E,0,0,a,f,j,a,k=[],v),R),a,R,v,f,n?k:R);break;default:s(A,E,E,E,[""],R,0,f,R)}}h=g=y=0,w=C=1,j=A="",v=p;break;case 58:v=1+(0,o.b2)(A),y=x;default:if(w<1)if(123==S)--w;else if(125==S&&0==w++&&125==(0,i.YL)())continue;switch(A+=(0,o.HT)(S),S*w){case 38:C=g>0?1:(A+="\f",-1);break;case 44:f[h++]=((0,o.b2)(A)-1)*C,C=1;break;case 64:45===(0,i.se)()&&(A+=(0,i.Tb)((0,i.K2)())),b=(0,i.se)(),g=v=(0,o.b2)(j=A+=(0,i.Cv)((0,i.OW)())),S++;break;case 45:45===x&&2==(0,o.b2)(A)&&(w=0)}}return d}function l(e,t,r,a,s,l,c,u,d,p,f){for(var m=s-1,h=0===s?l:[""],g=(0,o.FK)(h),v=0,b=0,y=0;v<a;++v)for(var x=0,w=(0,o.c1)(e,m+1,m=(0,o.tn)(b=c[v])),_=e;x<g;++x)(_=(0,o.Bq)(b>0?h[x]+" "+w:(0,o.HC)(w,/&\f/g,h[x])))&&(d[y++]=_);return(0,i.rH)(e,t,r,0===s?n.XZ:u,d,p,f)}function c(e,t,r){return(0,i.rH)(e,t,r,n.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,r,a){return(0,i.rH)(e,t,r,n.LU,(0,o.c1)(e,0,a),(0,o.c1)(e,a+1,-1),a)}},9418(e,t,r){"use strict";r.d(t,{I:()=>f});var n,o=r(1732),i=r(7911),a=r(7907),s=r(2994),l=r(3547),c=r(4156),u=r(2576),d=r(1609),p=null!=(n=u.A.default)?n:u.A;function f(e,t){const{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=o.M);const u=(({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:i,...u}=t,d=(0,s.I$)(u,(e,t)=>(0,a.HU)(t)),p=(0,l.Jg)(e,t),f=(0,c.m)({},o,p,(0,s.TB)(d),i),m=(0,a.AH)(f)(t.theme);return n?[m,n]:m})({baseStyle:r}),f=p(e,n)(u);return d.forwardRef(function(e,t){const{colorMode:r,forced:n}=(0,i.G6)();return d.createElement(f,{ref:t,"data-theme":n?r:void 0,...e})})}},9576(e,t,r){"use strict";var n=r(5795);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},9861(e,t,r){"use strict";r.d(t,{M:()=>h,Z:()=>m});var n=r(8558),o=r(9049),i=r(7652),a=r(6691),s=r(4403),l=r(7907),c=r(1269),u=r(174),d=r(1609),p=r(790),[f,m]=(0,n.q)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),h=(0,s.R)(function(e,t){const r=(0,i.o5)("Input",e),{children:n,className:s,...m}=(0,l.MN)(e),h=(0,c.cx)("chakra-input__group",s),g={},v=(0,o.a)(n),b=r.field;v.forEach(e=>{var t,n;r&&(b&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!=(t=b.height)?t:b.h),b&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!=(n=b.height)?n:b.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});const y=v.map(t=>{var r,n;const o=(0,u.o)({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,d.cloneElement)(t,o):(0,d.cloneElement)(t,Object.assign(o,g,t.props))});return(0,p.jsx)(a.B.div,{className:h,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...m,children:(0,p.jsx)(f,{value:r,children:y})})});h.displayName="InputGroup"},9918(e,t,r){"use strict";r.d(t,{t:()=>i,v:()=>a});var n=r(414),o=r(1269);function i(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...s}=a(e);return{...s,disabled:t,readOnly:n,required:i,"aria-invalid":(0,o.rq)(r),"aria-required":(0,o.rq)(i),"aria-readonly":(0,o.rq)(n)}}function a(e){var t,r,i;const a=(0,n.Uc)(),{id:s,disabled:l,readOnly:c,required:u,isRequired:d,isInvalid:p,isReadOnly:f,isDisabled:m,onFocus:h,onBlur:g,...v}=e,b=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&b.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&b.push(a.helpTextId),{...v,"aria-describedby":b.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=l?l:m)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(r=null!=c?c:f)?r:null==a?void 0:a.isReadOnly,isRequired:null!=(i=null!=u?u:d)?i:null==a?void 0:a.isRequired,isInvalid:null!=p?p:null==a?void 0:a.isInvalid,onFocus:(0,o.Hj)(null==a?void 0:a.onFocus,h),onBlur:(0,o.Hj)(null==a?void 0:a.onBlur,g)}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,r)=>(a.f[r](e,t),t),[])),a.u=e=>(({42:"reactPlayerTwitch",85:"reactPlayerTiktok",173:"reactPlayerVimeo",262:"reactPlayerHls",340:"reactPlayerWistia",353:"reactPlayerPreview",395:"reactPlayerDash",446:"reactPlayerYouTube",723:"reactPlayerMux",771:"reactPlayerSpotify"}[e]||e)+".js?ver="+{42:"3b8210e937412d1f54d7",85:"4d8acb552a430f98b9da",166:"167713b46a39d5921ac4",173:"8f93e6699f983839611d",262:"7ccdbb64f8d570d2fe01",340:"a172012bb596957a8438",353:"5cb424663bc7d8e04ee3",370:"25d350ffdf131d5738a0",395:"f30a7515b47cc4430a95",446:"06dc88b0a211abe9df4a",632:"13b2a0f1af8f6edc0c8c",723:"2ed4f1fa07125eb63d8e",771:"1f9deeff67f0b7671ed1"}[e]),a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="user-registration:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),r[e]=[t];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={519:0,945:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,l]=r,c=0;if(i.some(t=>0!==e[t])){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);l&&l(a)}for(t&&t(r);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkuser_registration=globalThis.webpackChunkuser_registration||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0,(()=>{"use strict";var e=a(1609),t=a.t(e,2),r=a.n(e),n=a(9576);function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var i=o()?e.useLayoutEffect:e.useEffect;function s(t,r=[]){const n=(0,e.useRef)(t);return i(()=>{n.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},r)}var l=a(3547);function c(t={}){const{onClose:r,onOpen:n,isOpen:o,id:i}=t,a=s(n),c=s(r),[u,d]=(0,e.useState)(t.defaultIsOpen||!1),[p,f]=function(e,t){const r=void 0!==e;return[r,r&&void 0!==e?e:t]}(o,u),m=function(t,r){const n=(0,e.useId)();return(0,e.useMemo)(()=>t||[r,n].filter(Boolean).join("-"),[t,r,n])}(i,"disclosure"),h=(0,e.useCallback)(()=>{p||d(!1),null==c||c()},[p,c]),g=(0,e.useCallback)(()=>{p||d(!0),null==a||a()},[p,a]),v=(0,e.useCallback)(()=>{(f?h:g)()},[f,g,h]);return{isOpen:!!f,onOpen:g,onClose:h,onToggle:v,isControlled:p,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":m,onClick:(0,l.Hj)(e.onClick,v)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:m})}}var u,d,p=a(8354),f=a(3595),m=a(5035),h=a(6624),g=(a(4938),a(1035),function(t,r){var n=arguments;if(null==r||!p.h.call(r,"css"))return e.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=p.E,i[1]=(0,p.c)(t,r);for(var a=2;a<o;a++)i[a]=n[a];return e.createElement.apply(null,i)});u=g||(g={}),d||(d=u.JSX||(u.JSX={}));var v=(0,p.w)(function(t,r){var n=t.styles,o=(0,h.J)([n],void 0,e.useContext(p.T)),i=e.useRef();return(0,m.i)(function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),i.current=[t,n],function(){t.flush()}},[r]),(0,m.i)(function(){var e=i.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,f.sk)(r,o.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",o,t,!1)}},[r,o.name]),null});function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,h.J)(t)}function y(){var e=b.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_"}}}var x=a(790),w=String.raw,_=w` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,C=()=>(0,x.jsx)(v,{styles:_}),S=({scope:e=""})=>(0,x.jsx)(v,{styles:w` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${_} `}),j=a(8558),[k,R]=(0,j.q)({strict:!1,name:"PortalManagerContext"});function E(e){const{children:t,zIndex:r}=e;return(0,x.jsx)(k,{value:{zIndex:r},children:t})}E.displayName="PortalManager";var A=a(7911),O=a(7907),P=a(2994);function T(t){const{cssVarsRoot:r,theme:n,children:o}=t,i=(0,e.useMemo)(()=>(0,O.gd)(n),[n]);return(0,x.jsxs)(p.a,{theme:i,children:[(0,x.jsx)(D,{root:r}),o]})}function D({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,x.jsx)(v,{styles:e=>({[t]:e.__cssVars})})}var[M,N]=function(t={}){const{strict:r=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,i=(0,e.createContext)(void 0);return i.displayName=o,[i.Provider,function t(){var o;const a=(0,e.useContext)(i);if(!a&&r){const e=new Error(n);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return a},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function B(){const{colorMode:e}=(0,A.G6)();return(0,x.jsx)(v,{styles:t=>{const r=(0,P.rY)(t,"styles.global"),n=(0,l.Jg)(r,{theme:t,colorMode:e});if(n)return(0,O.AH)(n)(t)}})}var I,L="chakra-ui-light",z="chakra-ui-dark",F="chakra-ui-color-mode",H=(I=F,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(I)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(I,e)}catch(e){}}});var V=a(8424),$=()=>{};function U(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function W(t){const{value:r,children:n,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=H}=t,l="dark"===i?"dark":"light",[c,u]=(0,e.useState)(()=>U(s,l)),[d,p]=(0,e.useState)(()=>U(s)),{getSystemTheme:f,setClassName:m,setDataset:h,addListener:g}=(0,e.useMemo)(()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?z:L),document.body.classList.remove(e?L:z)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r}({preventTransition:a}),[a]),v="system"!==i||c?c:d,b=(0,e.useCallback)(e=>{const t="system"===e?f():e;u(t),m("dark"===t),h(t),s.set(t)},[s,f,m,h]);(0,V.U)(()=>{"system"===i&&p(f())},[]),(0,e.useEffect)(()=>{const e=s.get();b(e||("system"!==i?l:"system"))},[s,l,i,b]);const y=(0,e.useCallback)(()=>{b("dark"===v?"light":"dark")},[v,b]);(0,e.useEffect)(()=>{if(o)return g(b)},[o,g,b]);const w=(0,e.useMemo)(()=>({colorMode:null!=r?r:v,toggleColorMode:r?$:y,setColorMode:r?$:b,forced:void 0!==r}),[v,y,b,r]);return(0,x.jsx)(A.Ig.Provider,{value:w,children:n})}W.displayName="ColorModeProvider";var q=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function Z(t){const{children:r,environment:n,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}},[n]),s=!o||!n;return(0,x.jsxs)(q.Provider,{value:a,children:[r,s&&(0,x.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}q.displayName="EnvironmentContext",Z.displayName="EnvironmentProvider";var Y=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=(0,x.jsx)(Z,{environment:s,disabled:c,children:t});return(0,x.jsx)(T,{theme:a,cssVarsRoot:l,children:(0,x.jsxs)(W,{colorModeManager:r,options:a.config,children:[i?(0,x.jsx)(S,{scope:o}):(0,x.jsx)(C,{}),!u&&(0,x.jsx)(B,{}),n?(0,x.jsx)(E,{zIndex:n,children:d}):d]})})},G={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},X={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},K={...X,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},J={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...G,sizes:K,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:X,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},{defineMultiStyleConfig:Q,definePartsStyle:ee}=(0,O.YU)(["stepper","step","title","description","indicator","separator","icon","number"]),te=(0,O.Vg)("stepper-indicator-size"),re=(0,O.Vg)("stepper-icon-size"),ne=(0,O.Vg)("stepper-title-font-size"),oe=(0,O.Vg)("stepper-description-font-size"),ie=(0,O.Vg)("stepper-accent-color"),ae=ee(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ie.variable]:`colors.${e}.500`,_dark:{[ie.variable]:`colors.${e}.200`}},title:{fontSize:ne.reference,fontWeight:"medium"},description:{fontSize:oe.reference,color:"chakra-subtle-text"},number:{fontSize:ne.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:re.reference,height:re.reference},indicator:{flexShrink:0,borderRadius:"full",width:te.reference,height:te.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ie.reference},"&[data-status=complete]":{bg:ie.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ie.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${te.reference} - 8px)`,top:`calc(${te.reference} + 4px)`,insetStart:`calc(${te.reference} / 2 - 1px)`}}})),se=Q({baseStyle:ae,sizes:{xs:ee({stepper:{[te.variable]:"sizes.4",[re.variable]:"sizes.3",[ne.variable]:"fontSizes.xs",[oe.variable]:"fontSizes.xs"}}),sm:ee({stepper:{[te.variable]:"sizes.6",[re.variable]:"sizes.4",[ne.variable]:"fontSizes.sm",[oe.variable]:"fontSizes.xs"}}),md:ee({stepper:{[te.variable]:"sizes.8",[re.variable]:"sizes.5",[ne.variable]:"fontSizes.md",[oe.variable]:"fontSizes.sm"}}),lg:ee({stepper:{[te.variable]:"sizes.10",[re.variable]:"sizes.6",[ne.variable]:"fontSizes.lg",[oe.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function le(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of o)t[e]=n(e);return le(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return le(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var ce=le("accordion").parts("root","container","button","panel").extend("icon"),ue=le("alert").parts("title","description","container").extend("icon","spinner"),de=le("avatar").parts("label","badge","container").extend("excessLabel","group"),pe=le("breadcrumb").parts("link","item","container").extend("separator"),fe=(le("button").parts(),le("checkbox").parts("control","icon","container").extend("label")),me=(le("progress").parts("track","filledTrack").extend("label"),le("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),he=le("editable").parts("preview","input","textarea"),ge=le("form").parts("container","requiredIndicator","helperText"),ve=le("formError").parts("text","icon"),be=le("input").parts("addon","field","element","group"),ye=le("list").parts("container","item","icon"),xe=le("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),we=le("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),_e=le("numberinput").parts("root","field","stepperGroup","stepper"),Ce=(le("pininput").parts("field"),le("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),Se=le("progress").parts("label","filledTrack","track"),je=le("radio").parts("container","control","label"),ke=le("select").parts("field","icon"),Re=le("slider").parts("container","track","thumb","filledTrack","mark"),Ee=le("stat").parts("container","label","helpText","number","icon"),Ae=le("switch").parts("container","track","thumb","label"),Oe=le("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Pe=le("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Te=le("tag").parts("container","label","closeButton"),De=le("card").parts("container","header","body","footer");function Me(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Ne(e,t){return`var(${Me(e)}${t?`, ${t}`:""})`}function Be(e,t){const r=function(e,t=""){return`--${function(e,t=""){return[t,Me(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:r,reference:Ne(r,(n=null==t?void 0:t.fallback,"string"==typeof n?n:null==n?void 0:n.reference))};var n}le("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Ie=a(1269);function Le(e){return(0,Ie.Gv)(e)&&e.reference?e.reference:String(e)}var ze=(e,...t)=>t.map(Le).join(` ${e} `).replace(/calc/g,""),Fe=(...e)=>`calc(${ze("+",...e)})`,He=(...e)=>`calc(${ze("-",...e)})`,Ve=(...e)=>`calc(${ze("*",...e)})`,$e=(...e)=>`calc(${ze("/",...e)})`,Ue=e=>{const t=Le(e);return null==t||Number.isNaN(parseFloat(t))?Ve(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},We=Object.assign(e=>({add:(...t)=>We(Fe(e,...t)),subtract:(...t)=>We(He(e,...t)),multiply:(...t)=>We(Ve(e,...t)),divide:(...t)=>We($e(e,...t)),negate:()=>We(Ue(e)),toString:()=>e.toString()}),{add:Fe,subtract:He,multiply:Ve,divide:$e,negate:Ue}),{defineMultiStyleConfig:qe,definePartsStyle:Ze}=(0,O.YU)(Ae.keys),Ye=Be("switch-track-width"),Ge=Be("switch-track-height"),Xe=Be("switch-track-diff"),Ke=We.subtract(Ye,Ge),Je=Be("switch-thumb-x"),Qe=Be("switch-bg"),et=(0,O.H2)(e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ye.reference],height:[Ge.reference],transitionProperty:"common",transitionDuration:"fast",[Qe.variable]:"colors.gray.300",_dark:{[Qe.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Qe.variable]:`colors.${t}.500`,_dark:{[Qe.variable]:`colors.${t}.200`}},bg:Qe.reference}}),tt=(0,O.H2)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ge.reference],height:[Ge.reference],_checked:{transform:`translateX(${Je.reference})`}}),rt=qe({baseStyle:Ze(e=>({container:{[Xe.variable]:Ke,[Je.variable]:Xe.reference,_rtl:{[Je.variable]:We(Xe).negate().toString()}},track:et(e),thumb:tt})),sizes:{sm:Ze({container:{[Ye.variable]:"1.375rem",[Ge.variable]:"sizes.3"}}),md:Ze({container:{[Ye.variable]:"1.875rem",[Ge.variable]:"sizes.4"}}),lg:Ze({container:{[Ye.variable]:"2.875rem",[Ge.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function nt(e,t){return r=>"dark"===r.colorMode?t:e}function ot(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:it,definePartsStyle:at}=(0,O.YU)(Oe.keys),st=at({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),lt=(0,O.H2)({"&[data-is-numeric=true]":{textAlign:"end"}}),ct=at(e=>{const{colorScheme:t}=e;return{th:{color:nt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:nt(`${t}.100`,`${t}.700`)(e),...lt},td:{borderBottom:"1px",borderColor:nt(`${t}.100`,`${t}.700`)(e),...lt},caption:{color:nt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ut=at(e=>{const{colorScheme:t}=e;return{th:{color:nt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:nt(`${t}.100`,`${t}.700`)(e),...lt},td:{borderBottom:"1px",borderColor:nt(`${t}.100`,`${t}.700`)(e),...lt},caption:{color:nt("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:nt(`${t}.100`,`${t}.700`)(e)},td:{background:nt(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dt=it({baseStyle:st,variants:{simple:ct,striped:ut,unstyled:(0,O.H2)({})},sizes:{sm:at({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:at({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:at({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function pt(e,t,r){return Math.min(Math.max(e,r),t)}class ft extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var mt=ft;function ht(e){if("string"!=typeof e)throw new mt(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Ct.test(e)?function(e){const t=e.toLowerCase().trim(),r=vt[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new mt(e);return`#${r}`}(e):e;const r=yt.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(bt(e,2),16)),parseInt(bt(e[3]||"f",2),16)/255]}const n=xt.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=wt.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}const i=_t.exec(t);if(i){const[t,r,n,o]=Array.from(i).slice(1).map(parseFloat);if(pt(0,100,r)!==r)throw new mt(e);if(pt(0,100,n)!==n)throw new mt(e);return[...jt(t,r,n),Number.isNaN(o)?1:o]}throw new mt(e)}const gt=e=>parseInt(e.replace(/_/g,""),36),vt="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=gt(t.substring(0,3)),n=gt(t.substring(3)).toString(16);let o="";for(let e=0;e<6-n.length;e++)o+="0";return e[r]=`${o}${n}`,e},{}),bt=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),yt=new RegExp(`^#${bt("([a-f0-9])",3)}([a-f0-9])?$`,"i"),xt=new RegExp(`^#${bt("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),wt=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${bt(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),_t=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Ct=/^[a-z]+$/i,St=e=>Math.round(255*e),jt=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(St);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2;return[s+u,l+u,c+u].map(St)};function kt(e,t){const[r,n,o,i]=ht(e);return function(e,t,r,n){return`rgba(${pt(0,255,e).toFixed()}, ${pt(0,255,t).toFixed()}, ${pt(0,255,r).toFixed()}, ${parseFloat(pt(0,1,n).toFixed(3))})`}(r,n,o,i-t)}var Rt=(e,t,r)=>{const n=function(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}(e,`colors.${t}`,t);try{return function(e){const[t,r,n,o]=ht(e);let i=e=>{const t=pt(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(r),i(n),o<1&&i(Math.round(255*o))}(n),n}catch{return null!=r?r:"#000000"}},Et=(e,t)=>r=>kt(Rt(r,e),1-t);function At(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}var Ot=(0,O.Vg)("tabs-color"),Pt=(0,O.Vg)("tabs-bg"),Tt=(0,O.Vg)("tabs-border-color"),{defineMultiStyleConfig:Dt,definePartsStyle:Mt}=(0,O.YU)(Pe.keys),Nt=(0,O.H2)(e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),Bt=(0,O.H2)(e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),It=(0,O.H2)(e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}}),Lt=(0,O.H2)({p:4}),zt=Mt(e=>({root:Nt(e),tab:Bt(e),tablist:It(e),tabpanel:Lt})),Ft={sm:Mt({tab:{py:1,px:4,fontSize:"sm"}}),md:Mt({tab:{fontSize:"md",py:2,px:4}}),lg:Mt({tab:{fontSize:"lg",py:3,px:4}})},Ht=Mt(e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Ot.variable]:`colors.${t}.600`,_dark:{[Ot.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Pt.variable]:"colors.gray.200",_dark:{[Pt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ot.reference,bg:Pt.reference}}}),Vt=Mt(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Tt.variable]:"transparent",_selected:{[Ot.variable]:`colors.${t}.600`,[Tt.variable]:"colors.white",_dark:{[Ot.variable]:`colors.${t}.300`,[Tt.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Tt.reference},color:Ot.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$t=Mt(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Pt.variable]:"colors.gray.50",_dark:{[Pt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Pt.variable]:"colors.white",[Ot.variable]:`colors.${t}.600`,_dark:{[Pt.variable]:"colors.gray.800",[Ot.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ot.reference,bg:Pt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Ut=Mt(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Rt(r,`${t}.700`),bg:Rt(r,`${t}.100`)}}}}),Wt=Mt(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ot.variable]:"colors.gray.600",_dark:{[Ot.variable]:"inherit"},_selected:{[Ot.variable]:"colors.white",[Pt.variable]:`colors.${t}.600`,_dark:{[Ot.variable]:"colors.gray.800",[Pt.variable]:`colors.${t}.300`}},color:Ot.reference,bg:Pt.reference}}}),qt=Dt({baseStyle:zt,sizes:Ft,variants:{line:Ht,enclosed:Vt,"enclosed-colored":$t,"soft-rounded":Ut,"solid-rounded":Wt,unstyled:Mt({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Zt=(0,O.lL)("badge",["bg","color","shadow"]),Yt=(0,O.H2)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference}),Gt=(0,O.H2)(e=>{const{colorScheme:t,theme:r}=e,n=Et(`${t}.500`,.6)(r);return{[Zt.bg.variable]:`colors.${t}.500`,[Zt.color.variable]:"colors.white",_dark:{[Zt.bg.variable]:n,[Zt.color.variable]:"colors.whiteAlpha.800"}}}),Xt=(0,O.H2)(e=>{const{colorScheme:t,theme:r}=e,n=Et(`${t}.200`,.16)(r);return{[Zt.bg.variable]:`colors.${t}.100`,[Zt.color.variable]:`colors.${t}.800`,_dark:{[Zt.bg.variable]:n,[Zt.color.variable]:`colors.${t}.200`}}}),Kt=(0,O.H2)(e=>{const{colorScheme:t,theme:r}=e,n=Et(`${t}.200`,.8)(r);return{[Zt.color.variable]:`colors.${t}.500`,_dark:{[Zt.color.variable]:n},[Zt.shadow.variable]:`inset 0 0 0px 1px ${Zt.color.reference}`}}),Jt={solid:Gt,subtle:Xt,outline:Kt},Qt=(0,O.Dt)({baseStyle:Yt,variants:Jt,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:er,definePartsStyle:tr}=(0,O.YU)(Te.keys),rr=(0,O.Vg)("tag-bg"),nr=(0,O.Vg)("tag-color"),or=(0,O.Vg)("tag-shadow"),ir=(0,O.Vg)("tag-min-height"),ar=(0,O.Vg)("tag-min-width"),sr=(0,O.Vg)("tag-font-size"),lr=(0,O.Vg)("tag-padding-inline"),cr=tr({container:(0,O.H2)({fontWeight:"medium",lineHeight:1.2,outline:0,[nr.variable]:Zt.color.reference,[rr.variable]:Zt.bg.reference,[or.variable]:Zt.shadow.reference,color:nr.reference,bg:rr.reference,boxShadow:or.reference,borderRadius:"md",minH:ir.reference,minW:ar.reference,fontSize:sr.reference,px:lr.reference,_focusVisible:{[or.variable]:"shadows.outline"}}),label:(0,O.H2)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,O.H2)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),ur={sm:tr({container:{[ir.variable]:"sizes.5",[ar.variable]:"sizes.5",[sr.variable]:"fontSizes.xs",[lr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tr({container:{[ir.variable]:"sizes.6",[ar.variable]:"sizes.6",[sr.variable]:"fontSizes.sm",[lr.variable]:"space.2"}}),lg:tr({container:{[ir.variable]:"sizes.8",[ar.variable]:"sizes.8",[sr.variable]:"fontSizes.md",[lr.variable]:"space.3"}})},dr={subtle:tr(e=>{var t;return{container:null==(t=Qt.variants)?void 0:t.subtle(e)}}),solid:tr(e=>{var t;return{container:null==(t=Qt.variants)?void 0:t.solid(e)}}),outline:tr(e=>{var t;return{container:null==(t=Qt.variants)?void 0:t.outline(e)}})},pr=er({variants:dr,baseStyle:cr,sizes:ur,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:fr,defineMultiStyleConfig:mr}=(0,O.YU)(be.keys),hr=(0,O.Vg)("input-height"),gr=(0,O.Vg)("input-font-size"),vr=(0,O.Vg)("input-padding"),br=(0,O.Vg)("input-border-radius"),yr=fr({addon:{height:hr.reference,fontSize:gr.reference,px:vr.reference,borderRadius:br.reference},field:{width:"100%",height:hr.reference,fontSize:gr.reference,px:vr.reference,borderRadius:br.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),xr={lg:(0,O.H2)({[gr.variable]:"fontSizes.lg",[vr.variable]:"space.4",[br.variable]:"radii.md",[hr.variable]:"sizes.12"}),md:(0,O.H2)({[gr.variable]:"fontSizes.md",[vr.variable]:"space.4",[br.variable]:"radii.md",[hr.variable]:"sizes.10"}),sm:(0,O.H2)({[gr.variable]:"fontSizes.sm",[vr.variable]:"space.3",[br.variable]:"radii.sm",[hr.variable]:"sizes.8"}),xs:(0,O.H2)({[gr.variable]:"fontSizes.xs",[vr.variable]:"space.2",[br.variable]:"radii.sm",[hr.variable]:"sizes.6"})},wr={lg:fr({field:xr.lg,group:xr.lg}),md:fr({field:xr.md,group:xr.md}),sm:fr({field:xr.sm,group:xr.sm}),xs:fr({field:xr.xs,group:xr.xs})};function _r(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||nt("blue.500","blue.300")(e),errorBorderColor:r||nt("red.500","red.300")(e)}}var Cr,Sr,jr,kr,Rr,Er,Ar,Or,Pr,Tr,Dr,Mr=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=_r(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:nt("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Rt(t,n),boxShadow:`0 0 0 1px ${Rt(t,n)}`},_focusVisible:{zIndex:1,borderColor:Rt(t,r),boxShadow:`0 0 0 1px ${Rt(t,r)}`}},addon:{border:"1px solid",borderColor:nt("inherit","whiteAlpha.50")(e),bg:nt("gray.100","whiteAlpha.300")(e)}}}),Nr=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=_r(e);return{field:{border:"2px solid",borderColor:"transparent",bg:nt("gray.100","whiteAlpha.50")(e),_hover:{bg:nt("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Rt(t,n)},_focusVisible:{bg:"transparent",borderColor:Rt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:nt("gray.100","whiteAlpha.50")(e)}}}),Br=fr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=_r(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Rt(t,n),boxShadow:`0px 1px 0px 0px ${Rt(t,n)}`},_focusVisible:{borderColor:Rt(t,r),boxShadow:`0px 1px 0px 0px ${Rt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Ir=mr({baseStyle:yr,sizes:wr,variants:{outline:Mr,filled:Nr,flushed:Br,unstyled:fr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Lr=(0,O.H2)({...null==(Cr=Ir.baseStyle)?void 0:Cr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),zr={outline:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=Ir.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=Ir.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=Ir.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(jr=null==(Sr=Ir.variants)?void 0:Sr.unstyled.field)?jr:{}},Fr={xs:null!=(Rr=null==(kr=Ir.sizes)?void 0:kr.xs.field)?Rr:{},sm:null!=(Ar=null==(Er=Ir.sizes)?void 0:Er.sm.field)?Ar:{},md:null!=(Pr=null==(Or=Ir.sizes)?void 0:Or.md.field)?Pr:{},lg:null!=(Dr=null==(Tr=Ir.sizes)?void 0:Tr.lg.field)?Dr:{}},Hr=(0,O.Dt)({baseStyle:Lr,sizes:Fr,variants:zr,defaultProps:{size:"md",variant:"outline"}}),Vr=Be("tooltip-bg"),$r=Be("tooltip-fg"),Ur=Be("popper-arrow-bg"),Wr=(0,O.H2)({bg:Vr.reference,color:$r.reference,[Vr.variable]:"colors.gray.700",[$r.variable]:"colors.whiteAlpha.900",_dark:{[Vr.variable]:"colors.gray.300",[$r.variable]:"colors.gray.900"},[Ur.variable]:Vr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),qr=(0,O.Dt)({baseStyle:Wr}),{defineMultiStyleConfig:Zr,definePartsStyle:Yr}=(0,O.YU)(Se.keys),Gr=(0,O.H2)(e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=nt(At(),At("1rem","rgba(0,0,0,0.1)"))(e),a=nt(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${Rt(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}}),Xr=(0,O.H2)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Kr=(0,O.H2)(e=>({bg:nt("gray.100","whiteAlpha.300")(e)})),Jr=(0,O.H2)(e=>({transitionProperty:"common",transitionDuration:"slow",...Gr(e)})),Qr=Yr(e=>({label:Xr,filledTrack:Jr(e),track:Kr(e)})),en=Zr({sizes:{xs:Yr({track:{h:"1"}}),sm:Yr({track:{h:"2"}}),md:Yr({track:{h:"3"}}),lg:Yr({track:{h:"4"}})},baseStyle:Qr,defaultProps:{size:"md",colorScheme:"blue"}});function tn(e,...t){return"function"==typeof e?e(...t):e}var rn,nn,on,an,sn,ln,cn,un,dn,{definePartsStyle:pn,defineMultiStyleConfig:fn}=(0,O.YU)(fe.keys),mn=(0,O.Vg)("checkbox-size"),hn=(0,O.H2)(e=>{const{colorScheme:t}=e;return{w:mn.reference,h:mn.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:nt(`${t}.500`,`${t}.200`)(e),borderColor:nt(`${t}.500`,`${t}.200`)(e),color:nt("white","gray.900")(e),_hover:{bg:nt(`${t}.600`,`${t}.300`)(e),borderColor:nt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:nt("gray.200","transparent")(e),bg:nt("gray.200","whiteAlpha.300")(e),color:nt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:nt(`${t}.500`,`${t}.200`)(e),borderColor:nt(`${t}.500`,`${t}.200`)(e),color:nt("white","gray.900")(e)},_disabled:{bg:nt("gray.100","whiteAlpha.100")(e),borderColor:nt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:nt("red.500","red.300")(e)}}}),gn=(0,O.H2)({_disabled:{cursor:"not-allowed"}}),vn=(0,O.H2)({userSelect:"none",_disabled:{opacity:.4}}),bn=(0,O.H2)({transitionProperty:"transform",transitionDuration:"normal"}),yn=fn({baseStyle:pn(e=>({icon:bn,container:gn,control:tn(hn,e),label:vn})),sizes:{sm:pn({control:{[mn.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:pn({control:{[mn.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:pn({control:{[mn.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xn,definePartsStyle:wn}=(0,O.YU)(je.keys),Cn=(0,O.H2)(e=>{var t;const r=null==(t=tn(yn.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),Sn=wn(e=>{var t,r,n,o;return{label:null==(r=(t=yn).baseStyle)?void 0:r.call(t,e).label,container:null==(o=(n=yn).baseStyle)?void 0:o.call(n,e).container,control:Cn(e)}}),jn=xn({baseStyle:Sn,sizes:{md:wn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:wn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:wn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kn,definePartsStyle:Rn}=(0,O.YU)(ke.keys),En=(0,O.Vg)("select-bg"),An=Rn({field:(0,O.H2)({...null==(rn=Ir.baseStyle)?void 0:rn.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:En.reference,[En.variable]:"colors.white",_dark:{[En.variable]:"colors.gray.700"},"> option, > optgroup":{bg:En.reference}}),icon:(0,O.H2)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),On=(0,O.H2)({paddingInlineEnd:"8"}),Pn=kn({baseStyle:An,sizes:{lg:{...null==(nn=Ir.sizes)?void 0:nn.lg,field:{...null==(on=Ir.sizes)?void 0:on.lg.field,...On}},md:{...null==(an=Ir.sizes)?void 0:an.md,field:{...null==(sn=Ir.sizes)?void 0:sn.md.field,...On}},sm:{...null==(ln=Ir.sizes)?void 0:ln.sm,field:{...null==(cn=Ir.sizes)?void 0:cn.sm.field,...On}},xs:{...null==(un=Ir.sizes)?void 0:un.xs,field:{...null==(dn=Ir.sizes)?void 0:dn.xs.field,...On},icon:{insetEnd:"1"}}},variants:Ir.variants,defaultProps:Ir.defaultProps}),Tn=(0,O.Vg)("skeleton-start-color"),Dn=(0,O.Vg)("skeleton-end-color"),Mn=(0,O.H2)({[Tn.variable]:"colors.gray.100",[Dn.variable]:"colors.gray.400",_dark:{[Tn.variable]:"colors.gray.800",[Dn.variable]:"colors.gray.600"},background:Tn.reference,borderColor:Dn.reference,opacity:.7,borderRadius:"sm"}),Nn=(0,O.Dt)({baseStyle:Mn}),Bn=(0,O.Vg)("skip-link-bg"),In=(0,O.H2)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Bn.variable]:"colors.white",_dark:{[Bn.variable]:"colors.gray.700"},bg:Bn.reference}}),Ln=(0,O.Dt)({baseStyle:In}),{defineMultiStyleConfig:zn,definePartsStyle:Fn}=(0,O.YU)(Re.keys),Hn=(0,O.Vg)("slider-thumb-size"),Vn=(0,O.Vg)("slider-track-size"),$n=(0,O.Vg)("slider-bg"),Un=(0,O.H2)(e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ot({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),Wn=(0,O.H2)(e=>({...ot({orientation:e.orientation,horizontal:{h:Vn.reference},vertical:{w:Vn.reference}}),overflow:"hidden",borderRadius:"sm",[$n.variable]:"colors.gray.200",_dark:{[$n.variable]:"colors.whiteAlpha.200"},_disabled:{[$n.variable]:"colors.gray.300",_dark:{[$n.variable]:"colors.whiteAlpha.300"}},bg:$n.reference})),qn=(0,O.H2)(e=>{const{orientation:t}=e;return{...ot({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Hn.reference,h:Hn.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),Zn=(0,O.H2)(e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[$n.variable]:`colors.${t}.500`,_dark:{[$n.variable]:`colors.${t}.200`},bg:$n.reference}}),Yn=zn({baseStyle:Fn(e=>({container:Un(e),track:Wn(e),thumb:qn(e),filledTrack:Zn(e)})),sizes:{lg:Fn({container:{[Hn.variable]:"sizes.4",[Vn.variable]:"sizes.1"}}),md:Fn({container:{[Hn.variable]:"sizes.3.5",[Vn.variable]:"sizes.1"}}),sm:Fn({container:{[Hn.variable]:"sizes.2.5",[Vn.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Gn=Be("spinner-size"),Xn=(0,O.H2)({width:[Gn.reference],height:[Gn.reference]}),Kn={xs:(0,O.H2)({[Gn.variable]:"sizes.3"}),sm:(0,O.H2)({[Gn.variable]:"sizes.4"}),md:(0,O.H2)({[Gn.variable]:"sizes.6"}),lg:(0,O.H2)({[Gn.variable]:"sizes.8"}),xl:(0,O.H2)({[Gn.variable]:"sizes.12"})},Jn=(0,O.Dt)({baseStyle:Xn,sizes:Kn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Qn,definePartsStyle:eo}=(0,O.YU)(Ee.keys),to=Qn({baseStyle:eo({container:{},label:(0,O.H2)({fontWeight:"medium"}),helpText:(0,O.H2)({opacity:.8,marginBottom:"2"}),number:(0,O.H2)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,O.H2)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:eo({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),ro=(0,O.Vg)("kbd-bg"),no=(0,O.H2)({[ro.variable]:"colors.gray.100",_dark:{[ro.variable]:"colors.whiteAlpha.100"},bg:ro.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),oo=(0,O.Dt)({baseStyle:no}),io=(0,O.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),ao=(0,O.Dt)({baseStyle:io}),{defineMultiStyleConfig:so,definePartsStyle:lo}=(0,O.YU)(ye.keys),co=so({baseStyle:lo({icon:(0,O.H2)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:uo,definePartsStyle:po}=(0,O.YU)(xe.keys),fo=(0,O.Vg)("menu-bg"),mo=(0,O.Vg)("menu-shadow"),ho=(0,O.H2)({[fo.variable]:"#fff",[mo.variable]:"shadows.sm",_dark:{[fo.variable]:"colors.gray.700",[mo.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:fo.reference,boxShadow:mo.reference}),go=(0,O.H2)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[fo.variable]:"colors.gray.100",_dark:{[fo.variable]:"colors.whiteAlpha.100"}},_active:{[fo.variable]:"colors.gray.200",_dark:{[fo.variable]:"colors.whiteAlpha.200"}},_expanded:{[fo.variable]:"colors.gray.100",_dark:{[fo.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:fo.reference}),vo=(0,O.H2)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),bo=(0,O.H2)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),yo=(0,O.H2)({opacity:.6}),xo=(0,O.H2)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),wo=uo({baseStyle:po({button:(0,O.H2)({transitionProperty:"common",transitionDuration:"normal"}),list:ho,item:go,groupTitle:vo,icon:bo,command:yo,divider:xo})}),{defineMultiStyleConfig:_o,definePartsStyle:Co}=(0,O.YU)(we.keys),So=(0,O.Vg)("modal-bg"),jo=(0,O.Vg)("modal-shadow"),ko=(0,O.H2)({bg:"blackAlpha.600",zIndex:"modal"}),Ro=(0,O.H2)(e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),Eo=(0,O.H2)(e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[So.variable]:"colors.white",[jo.variable]:"shadows.lg",_dark:{[So.variable]:"colors.gray.700",[jo.variable]:"shadows.dark-lg"},bg:So.reference,boxShadow:jo.reference}}),Ao=(0,O.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Oo=(0,O.H2)({position:"absolute",top:"2",insetEnd:"3"}),Po=(0,O.H2)(e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),To=(0,O.H2)({px:"6",py:"4"});function Do(e){return Co("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Mo=_o({baseStyle:Co(e=>({overlay:ko,dialogContainer:tn(Ro,e),dialog:tn(Eo,e),header:Ao,closeButton:Oo,body:tn(Po,e),footer:To})),sizes:{xs:Do("xs"),sm:Do("sm"),md:Do("md"),lg:Do("lg"),xl:Do("xl"),"2xl":Do("2xl"),"3xl":Do("3xl"),"4xl":Do("4xl"),"5xl":Do("5xl"),"6xl":Do("6xl"),full:Do("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:No,definePartsStyle:Bo}=(0,O.YU)(_e.keys),Io=Be("number-input-stepper-width"),Lo=Be("number-input-input-padding"),zo=We(Io).add("0.5rem").toString(),Fo=Be("number-input-bg"),Ho=Be("number-input-color"),Vo=Be("number-input-border-color"),$o=(0,O.H2)({[Io.variable]:"sizes.6",[Lo.variable]:zo}),Uo=(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=tn(Ir.baseStyle,e))?void 0:t.field)?r:{}}),Wo=(0,O.H2)({width:Io.reference}),qo=(0,O.H2)({borderStart:"1px solid",borderStartColor:Vo.reference,color:Ho.reference,bg:Fo.reference,[Ho.variable]:"colors.chakra-body-text",[Vo.variable]:"colors.chakra-border-color",_dark:{[Ho.variable]:"colors.whiteAlpha.800",[Vo.variable]:"colors.whiteAlpha.300"},_active:{[Fo.variable]:"colors.gray.200",_dark:{[Fo.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),Zo=Bo(e=>{var t;return{root:$o,field:null!=(t=tn(Uo,e))?t:{},stepperGroup:Wo,stepper:qo}});function Yo(e){var t,r,n;const o=null==(t=Ir.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=o.field)?void 0:r.fontSize)?n:"md",s=G.fontSizes[a];return Bo({field:{...o.field,paddingInlineEnd:Lo.reference,verticalAlign:"top"},stepper:{fontSize:We(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Go,Xo,Ko,Jo=No({baseStyle:Zo,sizes:{xs:Yo("xs"),sm:Yo("sm"),md:Yo("md"),lg:Yo("lg")},variants:Ir.variants,defaultProps:Ir.defaultProps}),Qo=(0,O.H2)({...null==(Go=Ir.baseStyle)?void 0:Go.field,textAlign:"center"}),ei={lg:(0,O.H2)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,O.H2)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,O.H2)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,O.H2)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},ti={outline:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tn(null==(t=Ir.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tn(null==(t=Ir.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tn(null==(t=Ir.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(Ko=null==(Xo=Ir.variants)?void 0:Xo.unstyled.field)?Ko:{}},ri=(0,O.Dt)({baseStyle:Qo,sizes:ei,variants:ti,defaultProps:Ir.defaultProps}),{defineMultiStyleConfig:ni,definePartsStyle:oi}=(0,O.YU)(Ce.keys),ii=Be("popper-bg"),ai=Be("popper-arrow-bg"),si=Be("popper-arrow-shadow-color"),li=ni({baseStyle:oi({popper:(0,O.H2)({zIndex:10}),content:(0,O.H2)({[ii.variable]:"colors.white",bg:ii.reference,[ai.variable]:ii.reference,[si.variable]:"colors.gray.200",_dark:{[ii.variable]:"colors.gray.700",[si.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,O.H2)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,O.H2)({px:3,py:2}),footer:(0,O.H2)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,O.H2)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:ci,defineMultiStyleConfig:ui}=(0,O.YU)(me.keys),di=(0,O.Vg)("drawer-bg"),pi=(0,O.Vg)("drawer-box-shadow");function fi(e){return ci("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var mi=(0,O.H2)({bg:"blackAlpha.600",zIndex:"modal"}),hi=(0,O.H2)({display:"flex",zIndex:"modal",justifyContent:"center"}),gi=(0,O.H2)(e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[di.variable]:"colors.white",[pi.variable]:"shadows.lg",_dark:{[di.variable]:"colors.gray.700",[pi.variable]:"shadows.dark-lg"},bg:di.reference,boxShadow:pi.reference}}),vi=(0,O.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),bi=(0,O.H2)({position:"absolute",top:"2",insetEnd:"3"}),yi=(0,O.H2)({px:"6",py:"2",flex:"1",overflow:"auto"}),xi=(0,O.H2)({px:"6",py:"4"}),wi=ui({baseStyle:ci(e=>({overlay:mi,dialogContainer:hi,dialog:tn(gi,e),header:vi,closeButton:bi,body:yi,footer:xi})),sizes:{xs:fi("xs"),sm:fi("md"),md:fi("lg"),lg:fi("2xl"),xl:fi("4xl"),full:fi("full")},defaultProps:{size:"xs"}}),{definePartsStyle:_i,defineMultiStyleConfig:Ci}=(0,O.YU)(he.keys),Si=Ci({baseStyle:_i({preview:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:ji,defineMultiStyleConfig:ki}=(0,O.YU)(ge.keys),Ri=(0,O.Vg)("form-control-color"),Ei=ki({baseStyle:ji({container:{width:"100%",position:"relative"},requiredIndicator:(0,O.H2)({marginStart:"1",[Ri.variable]:"colors.red.500",_dark:{[Ri.variable]:"colors.red.300"},color:Ri.reference}),helperText:(0,O.H2)({mt:"2",[Ri.variable]:"colors.gray.600",_dark:{[Ri.variable]:"colors.whiteAlpha.600"},color:Ri.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:Ai,defineMultiStyleConfig:Oi}=(0,O.YU)(ve.keys),Pi=(0,O.Vg)("form-error-color"),Ti=Oi({baseStyle:Ai({text:(0,O.H2)({[Pi.variable]:"colors.red.500",_dark:{[Pi.variable]:"colors.red.300"},color:Pi.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,O.H2)({marginEnd:"0.5em",[Pi.variable]:"colors.red.500",_dark:{[Pi.variable]:"colors.red.300"},color:Pi.reference})})}),Di=(0,O.H2)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),Mi=(0,O.Dt)({baseStyle:Di}),Ni=(0,O.H2)({fontFamily:"heading",fontWeight:"bold"}),Bi={"4xl":(0,O.H2)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,O.H2)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,O.H2)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,O.H2)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,O.H2)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,O.H2)({fontSize:"xl",lineHeight:1.2}),sm:(0,O.H2)({fontSize:"md",lineHeight:1.2}),xs:(0,O.H2)({fontSize:"sm",lineHeight:1.2})},Ii=(0,O.Dt)({baseStyle:Ni,sizes:Bi,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Li,definePartsStyle:zi}=(0,O.YU)(pe.keys),Fi=(0,O.Vg)("breadcrumb-link-decor"),Hi=Li({baseStyle:zi({link:(0,O.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Fi.reference,[Fi.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Fi.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),Vi=(0,O.H2)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),$i=(0,O.H2)(e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:nt("gray.800","whiteAlpha.900")(e),_hover:{bg:nt("gray.100","whiteAlpha.200")(e)},_active:{bg:nt("gray.200","whiteAlpha.300")(e)}};const n=Et(`${t}.200`,.12)(r),o=Et(`${t}.200`,.24)(r);return{color:nt(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:nt(`${t}.50`,n)(e)},_active:{bg:nt(`${t}.100`,o)(e)}}}),Ui=(0,O.H2)(e=>{const{colorScheme:t}=e,r=nt("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tn($i,e)}}),Wi={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qi=(0,O.H2)(e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=nt("gray.100","whiteAlpha.200")(e);return{bg:t,color:nt("gray.800","whiteAlpha.900")(e),_hover:{bg:nt("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:nt("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=Wi[r])?t:{},s=nt(n,`${r}.200`)(e);return{bg:s,color:nt(o,"gray.800")(e),_hover:{bg:nt(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:nt(a,`${r}.400`)(e)}}}),Zi=(0,O.H2)(e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:nt(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:nt(`${t}.700`,`${t}.500`)(e)}}}),Yi=(0,O.H2)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Gi={ghost:$i,outline:Ui,solid:qi,link:Zi,unstyled:Yi},Xi={lg:(0,O.H2)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,O.H2)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,O.H2)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,O.H2)({h:"6",minW:"6",fontSize:"xs",px:"2"})},Ki=(0,O.Dt)({baseStyle:Vi,variants:Gi,sizes:Xi,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:Ji,defineMultiStyleConfig:Qi}=(0,O.YU)(De.keys),ea=(0,O.Vg)("card-bg"),ta=(0,O.Vg)("card-padding"),ra=(0,O.Vg)("card-shadow"),na=(0,O.Vg)("card-radius"),oa=(0,O.Vg)("card-border-width","0"),ia=(0,O.Vg)("card-border-color"),aa=Ji({container:{[ea.variable]:"colors.chakra-body-bg",backgroundColor:ea.reference,boxShadow:ra.reference,borderRadius:na.reference,color:"chakra-body-text",borderWidth:oa.reference,borderColor:ia.reference},body:{padding:ta.reference,flex:"1 1 0%"},header:{padding:ta.reference},footer:{padding:ta.reference}}),sa={sm:Ji({container:{[na.variable]:"radii.base",[ta.variable]:"space.3"}}),md:Ji({container:{[na.variable]:"radii.md",[ta.variable]:"space.5"}}),lg:Ji({container:{[na.variable]:"radii.xl",[ta.variable]:"space.7"}})},la=Qi({baseStyle:aa,variants:{elevated:Ji({container:{[ra.variable]:"shadows.base",_dark:{[ea.variable]:"colors.gray.700"}}}),outline:Ji({container:{[oa.variable]:"1px",[ia.variable]:"colors.chakra-border-color"}}),filled:Ji({container:{[ea.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ta.variable]:0},header:{[ta.variable]:0},footer:{[ta.variable]:0}}},sizes:sa,defaultProps:{variant:"elevated",size:"md"}}),ca=Be("close-button-size"),ua=Be("close-button-bg"),da=(0,O.H2)({w:[ca.reference],h:[ca.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ua.variable]:"colors.blackAlpha.100",_dark:{[ua.variable]:"colors.whiteAlpha.100"}},_active:{[ua.variable]:"colors.blackAlpha.200",_dark:{[ua.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ua.reference}),pa={lg:(0,O.H2)({[ca.variable]:"sizes.10",fontSize:"md"}),md:(0,O.H2)({[ca.variable]:"sizes.8",fontSize:"xs"}),sm:(0,O.H2)({[ca.variable]:"sizes.6",fontSize:"2xs"})},fa=(0,O.Dt)({baseStyle:da,sizes:pa,defaultProps:{size:"md"}}),{variants:ma,defaultProps:ha}=Qt,ga=(0,O.H2)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference}),va=(0,O.Dt)({baseStyle:ga,variants:ma,defaultProps:ha}),ba=(0,O.H2)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),ya=(0,O.Dt)({baseStyle:ba}),xa=(0,O.H2)({opacity:.6,borderColor:"inherit"}),wa={solid:(0,O.H2)({borderStyle:"solid"}),dashed:(0,O.H2)({borderStyle:"dashed"})},_a=(0,O.Dt)({baseStyle:xa,variants:wa,defaultProps:{variant:"solid"}}),{definePartsStyle:Ca,defineMultiStyleConfig:Sa}=(0,O.YU)(ce.keys),ja=Sa({baseStyle:Ca({container:(0,O.H2)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,O.H2)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,O.H2)({pt:"2",px:"4",pb:"5"}),icon:(0,O.H2)({fontSize:"1.25em"})})}),{definePartsStyle:ka,defineMultiStyleConfig:Ra}=(0,O.YU)(ue.keys),Ea=(0,O.Vg)("alert-fg"),Aa=(0,O.Vg)("alert-bg"),Oa=ka({container:{bg:Aa.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ea.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ea.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Pa(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:Et(`${r}.200`,.16)(t)}}var Ta=ka(e=>{const{colorScheme:t}=e,r=Pa(e);return{container:{[Ea.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ea.variable]:`colors.${t}.200`,[Aa.variable]:r.dark}}}}),Da=ka(e=>{const{colorScheme:t}=e,r=Pa(e);return{container:{[Ea.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ea.variable]:`colors.${t}.200`,[Aa.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ea.reference}}}),Ma=ka(e=>{const{colorScheme:t}=e,r=Pa(e);return{container:{[Ea.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ea.variable]:`colors.${t}.200`,[Aa.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ea.reference}}}),Na=ka(e=>{const{colorScheme:t}=e;return{container:{[Ea.variable]:"colors.white",[Aa.variable]:`colors.${t}.600`,_dark:{[Ea.variable]:"colors.gray.900",[Aa.variable]:`colors.${t}.200`},color:Ea.reference}}}),Ba=Ra({baseStyle:Oa,variants:{subtle:Ta,"left-accent":Da,"top-accent":Ma,solid:Na},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Ia,defineMultiStyleConfig:La}=(0,O.YU)(de.keys),za=(0,O.Vg)("avatar-border-color"),Fa=(0,O.Vg)("avatar-bg"),Ha=(0,O.Vg)("avatar-font-size"),Va=(0,O.Vg)("avatar-size"),$a=(0,O.H2)({borderRadius:"full",border:"0.2em solid",borderColor:za.reference,[za.variable]:"white",_dark:{[za.variable]:"colors.gray.800"}}),Ua=(0,O.H2)({bg:Fa.reference,fontSize:Ha.reference,width:Va.reference,height:Va.reference,lineHeight:"1",[Fa.variable]:"colors.gray.200",_dark:{[Fa.variable]:"colors.whiteAlpha.400"}}),Wa=(0,O.H2)(e=>{const{name:t,theme:r}=e,n=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1)r+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return r}(e.string):e.colors&&!e.string?(n=e.colors)[Math.floor(Math.random()*n.length)]:t:t;var r,n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const r=(e=>{const[t,r,n]=ht(e);return(299*t+587*r+114*n)/1e3})(Rt(t,e));return r<128?"dark":"light"})(e)(t))(n)(r);let i="white";return o||(i="gray.800"),{bg:Fa.reference,fontSize:Ha.reference,color:i,borderColor:za.reference,verticalAlign:"top",width:Va.reference,height:Va.reference,"&:not([data-loaded])":{[Fa.variable]:n},[za.variable]:"colors.white",_dark:{[za.variable]:"colors.gray.800"}}}),qa=(0,O.H2)({fontSize:Ha.reference,lineHeight:"1"});function Za(e){const t="100%"!==e?K[e]:void 0;return Ia({container:{[Va.variable]:null!=t?t:e,[Ha.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Va.variable]:null!=t?t:e,[Ha.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var Ya={Accordion:ja,Alert:Ba,Avatar:La({baseStyle:Ia(e=>({badge:tn($a,e),excessLabel:tn(Ua,e),container:tn(Wa,e),label:qa})),sizes:{"2xs":Za(4),xs:Za(6),sm:Za(8),md:Za(12),lg:Za(16),xl:Za(24),"2xl":Za(32),full:Za("100%")},defaultProps:{size:"md"}}),Badge:Qt,Breadcrumb:Hi,Button:Ki,Checkbox:yn,CloseButton:fa,Code:va,Container:ya,Divider:_a,Drawer:wi,Editable:Si,Form:Ei,FormError:Ti,FormLabel:Mi,Heading:Ii,Input:Ir,Kbd:oo,Link:ao,List:co,Menu:wo,Modal:Mo,NumberInput:Jo,PinInput:ri,Popover:li,Progress:en,Radio:jn,Select:Pn,Skeleton:Nn,SkipLink:Ln,Slider:Yn,Spinner:Jn,Stat:to,Switch:rt,Table:dt,Tabs:qt,Tag:pr,Textarea:Hr,Tooltip:qr,Card:la,Stepper:se},Ga={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Xa={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},Ka={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ja={semanticTokens:Ga,direction:"ltr",...J,components:Ya,styles:Xa,config:Ka},Qa={semanticTokens:Ga,direction:"ltr",components:{},...J,styles:Xa,config:Ka},es=(e,t)=>e.find(e=>e.id===t);function ts(e,t){const r=rs(e,t);return{position:r,index:r?e[r].findIndex(e=>e.id===t):-1}}function rs(e,t){for(const[r,n]of Object.entries(e))if(es(n,t))return r}function ns(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}var os=a(1160),is=a(6634),as=(0,e.createContext)(null);function ss(t){var r=(0,e.useRef)(null);return null===r.current&&(r.current=t()),r.current}function ls(){var t=(0,e.useContext)(as);if(null===t)return[!0,null];var r=t.isPresent,n=t.onExitComplete,o=t.register,i=fs();return(0,e.useEffect)(function(){return o(i)},[]),!r&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function cs(){return us((0,e.useContext)(as))}function us(e){return null===e||e.isPresent}var ds=0,ps=function(){return ds++},fs=function(){return ss(ps)},ms=a(5482),hs=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},gs={measureLayout:hs(["layout","layoutId","drag","_layoutResetTransform"]),animation:hs(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:hs(["exit"]),drag:hs(["drag","dragControls"]),focus:hs(["whileFocus"]),hover:hs(["whileHover","onHoverStart","onHoverEnd"]),tap:hs(["whileTap","onTap","onTapStart","onTapCancel"]),pan:hs(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:hs(["layout","layoutId"])},vs=(0,e.createContext)({strict:!1}),bs=Object.keys(gs),ys=bs.length,xs=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),ws=(0,e.createContext)({}),_s=(0,e.createContext)(null),Cs="undefined"!=typeof window,Ss=Cs?e.useLayoutEffect:e.useEffect;function js(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ks(e){return Array.isArray(e)}function Rs(e){return"string"==typeof e||ks(e)}function Es(e,t,r,n,o){var i;return void 0===n&&(n={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t?t(null!=r?r:e.custom,n,o):t}function As(e,t,r){var n=e.getProps();return Es(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function Os(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Rs(e.initial)||Rs(e.animate)||Rs(e.whileHover)||Rs(e.whileDrag)||Rs(e.whileTap)||Rs(e.whileFocus)||Rs(e.exit)}function Ps(e){return Boolean(Os(e)||e.variants)}function Ts(e){return Array.isArray(e)?e.join(" "):e}function Ds(t){var r=t.preloadedFeatures,n=t.createVisualElement,o=t.useRender,i=t.useVisualState,a=t.Component;return r&&function(e){for(var t in e){var r=e[t];null!==r&&(gs[t].Component=r)}}(r),(0,e.forwardRef)(function(t,r){var s=(0,e.useContext)(xs).isStatic,l=null,c=function(t,r){var n=function(e,t){if(Os(e)){var r=e.initial,n=e.animate;return{initial:!1===r||Rs(r)?r:void 0,animate:Rs(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(ws)),o=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:o,animate:i}},r?[Ts(o),Ts(i)]:[])}(t,s),u=i(t,s);return!s&&Cs&&(c.visualElement=function(t,r,n,o){var i=(0,e.useContext)(xs),a=(0,e.useContext)(vs),s=(0,e.useContext)(ws).visualElement,l=(0,e.useContext)(as),c=function(t){var r=t.layoutId,n=(0,e.useContext)(_s);return n&&void 0!==r?n+"-"+r:r}(n),u=(0,e.useRef)(void 0);o||(o=a.renderer),!u.current&&o&&(u.current=o(t,{visualState:r,parent:s,props:(0,ms.Cl)((0,ms.Cl)({},n),{layoutId:c}),presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial)}));var d=u.current;return Ss(function(){d&&(d.setProps((0,ms.Cl)((0,ms.Cl)((0,ms.Cl)({},i),n),{layoutId:c})),d.isPresent=us(l),d.isPresenceRoot=!s||s.presenceId!==(null==l?void 0:l.id),d.syncRender())}),(0,e.useEffect)(function(){var e;d&&(null===(e=d.animationState)||void 0===e||e.animateChanges())}),Ss(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(a,u,t,n),l=function(t,r){var n=[];if((0,e.useContext)(vs),!r)return null;for(var o=0;o<ys;o++){var i=bs[o],a=gs[i],s=a.isEnabled,l=a.Component;s(t)&&l&&n.push(e.createElement(l,(0,ms.Cl)({key:i},t,{visualElement:r})))}return n}(t,c.visualElement)),e.createElement(e.Fragment,null,e.createElement(ws.Provider,{value:c},o(a,t,function(t,r,n){return(0,e.useCallback)(function(e){var o;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):js(n)&&(n.current=e))},[r])}(u,c.visualElement,r),u,s)),l)})}function Ms(e){function t(t,r){return void 0===r&&(r={}),Ds(e(t,r))}var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var Ns=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Bs(e){return"string"==typeof e&&!e.includes("-")&&!!(Ns.indexOf(e)>-1||/[A-Z]/.test(e))}var Is={},Ls=["","X","Y","Z"],zs=["transformPerspective","x","y","z"];function Fs(e,t){return zs.indexOf(e)-zs.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return Ls.forEach(function(t){return zs.push(e+t)})});var Hs=new Set(zs);function Vs(e){return Hs.has(e)}var $s=new Set(["originX","originY","originZ"]);function Us(e){return $s.has(e)}function Ws(e,t){var r=t.layout,n=t.layoutId;return Vs(e)||Us(e)||(r||void 0!==n)&&(!!Is[e]||"opacity"===e)}var qs=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Zs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ys(e){return e.startsWith("--")}var Gs=function(e,t){return t&&"number"==typeof e?t.transform(e):e},Xs=function(e,t){return function(r){return Math.max(Math.min(r,t),e)}},Ks=function(e){return e%1?Number(e.toFixed(5)):e},Js=/(-)?([\d]*\.?[\d])+/g,Qs=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,el=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function tl(e){return"string"==typeof e}var rl=function(e){return{test:function(t){return tl(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},nl=rl("deg"),ol=rl("%"),il=rl("px"),al=rl("vh"),sl=rl("vw"),ll=(0,ms.Cl)((0,ms.Cl)({},ol),{parse:function(e){return ol.parse(e)/100},transform:function(e){return ol.transform(100*e)}}),cl={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},ul=(0,ms.Cl)((0,ms.Cl)({},cl),{transform:Xs(0,1)}),dl=(0,ms.Cl)((0,ms.Cl)({},cl),{default:1}),pl=(0,ms.Cl)((0,ms.Cl)({},cl),{transform:Math.round}),fl={borderWidth:il,borderTopWidth:il,borderRightWidth:il,borderBottomWidth:il,borderLeftWidth:il,borderRadius:il,radius:il,borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomRightRadius:il,borderBottomLeftRadius:il,width:il,maxWidth:il,height:il,maxHeight:il,size:il,top:il,right:il,bottom:il,left:il,padding:il,paddingTop:il,paddingRight:il,paddingBottom:il,paddingLeft:il,margin:il,marginTop:il,marginRight:il,marginBottom:il,marginLeft:il,rotate:nl,rotateX:nl,rotateY:nl,rotateZ:nl,scale:dl,scaleX:dl,scaleY:dl,scaleZ:dl,skew:nl,skewX:nl,skewY:nl,distance:il,translateX:il,translateY:il,translateZ:il,x:il,y:il,z:il,perspective:il,transformPerspective:il,opacity:ul,originX:ll,originY:ll,originZ:il,zIndex:pl,fillOpacity:ul,strokeOpacity:ul,numOctaves:pl};function ml(e,t,r,n,o,i,a,s){var l,c=e.style,u=e.vars,d=e.transform,p=e.transformKeys,f=e.transformOrigin;p.length=0;var m=!1,h=!1,g=!0;for(var v in t){var b=t[v];if(Ys(v))u[v]=b;else{var y=fl[v],x=Gs(b,y);if(Vs(v)){if(m=!0,d[v]=x,p.push(v),!g)continue;b!==(null!==(l=y.default)&&void 0!==l?l:0)&&(g=!1)}else if(Us(v))f[v]=x,h=!0;else if((null==r?void 0:r.isHydrated)&&(null==n?void 0:n.isHydrated)&&Is[v]){var w=Is[v].process(b,n,r),_=Is[v].applyTo;if(_)for(var C=_.length,S=0;S<C;S++)c[_[S]]=w;else c[v]=w}else c[v]=x}}n&&r&&a&&s?(c.transform=a(n.deltaFinal,n.treeScale,m?d:void 0),i&&(c.transform=i(d,c.transform)),c.transformOrigin=s(n)):(m&&(c.transform=function(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";i.sort(Fs);for(var d=!1,p=i.length,f=0;f<p;f++){var m=i[f];u+=(Zs[m]||m)+"("+o[m]+") ","z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),n?u=n(o,r?"":u):c&&r&&(u="none"),u}(e,o,g,i)),h&&(c.transformOrigin=function(e){var t=e.originX,r=void 0===t?"50%":t,n=e.originY,o=void 0===n?"50%":n,i=e.originZ;return r+" "+o+" "+(void 0===i?0:i)}(f)))}function hl(e,t,r){for(var n in t)qs(t[n])||Ws(n,r)||(e[n]=t[n])}function gl(t,r,n){var o={},i=function(t,r,n){var o={};return hl(o,t.style||{},t),Object.assign(o,function(t,r,n){var o=t.transformTemplate;return(0,e.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ml(e,r,void 0,void 0,{enableHardwareAcceleration:!n},o);var t=e.vars,i=e.style;return(0,ms.Cl)((0,ms.Cl)({},t),i)},[r])}(t,r,n)),t.transformValues&&(o=t.transformValues(o)),o}(t,r,n);return Boolean(t.drag)&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}var vl=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function bl(e){return vl.has(e)}var yl=function(e){return!bl(e)};try{var xl=a(5739).A;yl=function(e){return e.startsWith("on")?!bl(e):xl(e)}}catch(Cr){}function wl(e,t,r){return"string"==typeof e?e:il.transform(t+r*e)}var _l=function(e,t){return il.transform(e*t)},Cl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sl={offset:"strokeDashoffset",array:"strokeDasharray"};function jl(e,t,r,n,o,i,a,s){var l=t.attrX,c=t.attrY,u=t.originX,d=t.originY,p=t.pathLength,f=t.pathSpacing,m=void 0===f?1:f,h=t.pathOffset,g=void 0===h?0:h;ml(e,(0,ms.Tt)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n,o,i,a,s),e.attrs=e.style,e.style={};var v=e.attrs,b=e.style,y=e.dimensions,x=e.totalPathLength;v.transform&&(y&&(b.transform=v.transform),delete v.transform),y&&(void 0!==u||void 0!==d||b.transform)&&(b.transformOrigin=function(e,t,r){return wl(t,e.x,e.width)+" "+wl(r,e.y,e.height)}(y,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==l&&(v.x=l),void 0!==c&&(v.y=c),void 0!==x&&void 0!==p&&function(e,t,r,n,o,i){void 0===n&&(n=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?Cl:Sl;e[a.offset]=_l(-o,t);var s=_l(r,t),l=_l(n,t);e[a.array]=s+" "+l}(v,x,p,m,g,!1)}var kl=function(){return(0,ms.Cl)((0,ms.Cl)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Rl(t,r){var n=(0,e.useMemo)(function(){var e=kl();return jl(e,r,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),(0,ms.Cl)((0,ms.Cl)({},e.attrs),{style:(0,ms.Cl)({},e.style)})},[r]);if(t.style){var o={};hl(o,t.style,t),n.style=(0,ms.Cl)((0,ms.Cl)({},o),n.style)}return n}function El(t){return void 0===t&&(t=!1),function(r,n,o,i,a){var s=i.latestValues,l=(Bs(r)?Rl:gl)(n,s,a),c=function(e,t,r){var n={};for(var o in e)(yl(o)||!0===r&&bl(o)||!t&&!bl(o))&&(n[o]=e[o]);return n}(n,"string"==typeof r,t),u=(0,ms.Cl)((0,ms.Cl)((0,ms.Cl)({},c),l),{ref:o});return(0,e.createElement)(r,u)}}var Al=/([a-z])([A-Z])/g,Ol=function(e){return e.replace(Al,"$1-$2").toLowerCase()};function Pl(e,t){var r=t.style,n=t.vars;for(var o in Object.assign(e.style,r),n)e.style.setProperty(o,n[o])}var Tl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Dl(e,t){for(var r in Pl(e,t),t.attrs)e.setAttribute(Tl.has(r)?r:Ol(r),t.attrs[r])}function Ml(e){var t=e.style,r={};for(var n in t)(qs(t[n])||Ws(n,e))&&(r[n]=t[n]);return r}function Nl(e){var t=Ml(e);for(var r in e)qs(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function Bl(e){return"object"==typeof e&&"function"==typeof e.start}var Il=function(e){return Array.isArray(e)},Ll=function(e){return Il(e)?e[e.length-1]||0:e};function zl(e){var t,r=qs(e)?e.get():e;return t=r,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?r.toValue():r}function Fl(e,t,r,n){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Vl(t,r,n,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Hl=function(t){return function(r,n){var o=(0,e.useContext)(ws),i=(0,e.useContext)(as);return n?Fl(t,r,o,i):ss(function(){return Fl(t,r,o,i)})}};function Vl(e,t,r,n){var o={},i=!1===(null==r?void 0:r.initial),a=n(e);for(var s in a)o[s]=zl(a[s]);var l=e.initial,c=e.animate,u=Os(e),d=Ps(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var p=i||!1===l?c:l;return p&&"boolean"!=typeof p&&!Bl(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var r=Es(e,t);if(r){var n=r.transitionEnd;r.transition;var i=(0,ms.Tt)(r,["transitionEnd","transition"]);for(var a in i)o[a]=i[a];for(var a in n)o[a]=n[a]}}),o}var $l,Ul={useVisualState:Hl({scrapeMotionValuesFromProps:Nl,createRenderState:kl,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(n.totalPathLength=t.getTotalLength()),jl(n,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Dl(t,n)}})},Wl={useVisualState:Hl({scrapeMotionValuesFromProps:Ml,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function ql(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}function Zl(t,r,n,o){(0,e.useEffect)(function(){var e=t.current;if(n&&e)return ql(e,r,n,o)},[t,r,n,o])}function Yl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Gl(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}($l||($l={}));var Xl={pageX:0,pageY:0};function Kl(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Xl;return{x:r[t+"X"],y:r[t+"Y"]}}function Jl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ql(e,t){return void 0===t&&(t="page"),{point:Gl(e)?Kl(e,t):Jl(e,t)}}var ec=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,Ql(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},tc={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function nc(e){return Cs&&null===window.onpointerdown?e:Cs&&null===window.ontouchstart?rc[e]:Cs&&null===window.onmousedown?tc[e]:e}function oc(e,t,r,n){return ql(e,nc(t),ec(r,"pointerdown"===t),n)}function ic(e,t,r,n){return Zl(e,nc(t),r&&ec(r,"pointerdown"===t),n)}function ac(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var sc=ac("dragHorizontal"),lc=ac("dragVertical");function cc(e){var t=!1;if("y"===e)t=lc();else if("x"===e)t=sc();else{var r=sc(),n=lc();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function uc(){var e=cc(!0);return!e||(e(),!1)}function dc(e,t,r){return function(n,o){var i;Yl(n)&&!uc()&&(null==r||r(n,o),null===(i=e.animationState)||void 0===i||i.setActive($l.Hover,t))}}var pc=function(e,t){return!!t&&(e===t||pc(e,t.parentElement))};function fc(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}var mc=function(e,t){return function(r){return t(e(r))}},hc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(mc)},gc=function(e){return function(t){return e(t),null}},vc={tap:gc(function(t){var r=t.onTap,n=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=r||n||o||i,l=(0,e.useRef)(!1),c=(0,e.useRef)(null);function u(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return u(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive($l.Tap,!1),!uc()}function p(e,t){d()&&(pc(a.getInstance(),e.target)?null==r||r(e,t):null==o||o(e,t))}function f(e,t){d()&&(null==o||o(e,t))}ic(a,"pointerdown",s?function(e,t){var r;u(),l.current||(l.current=!0,c.current=hc(oc(window,"pointerup",p),oc(window,"pointercancel",f)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive($l.Tap,!0))}:void 0),fc(u)}),focus:gc(function(e){var t=e.whileFocus,r=e.visualElement;Zl(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive($l.Focus,!0)}:void 0),Zl(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive($l.Focus,!1)}:void 0)}),hover:gc(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;ic(o,"pointerenter",t||n?dc(o,!0,t):void 0),ic(o,"pointerleave",r||n?dc(o,!1,r):void 0)})};function bc(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var yc=function(){},xc=function(e,t,r){return Math.min(Math.max(r,e),t)};var wc=12;function _c(e,t){return e*Math.sqrt(1-t*t)}var Cc=["duration","bounce"],Sc=["stiffness","damping","mass"];function jc(e,t){return t.some(function(t){return void 0!==e[t]})}function kc(e){var t=e.from,r=void 0===t?0:t,n=e.to,o=void 0===n?1:n,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,l=(0,ms.Tt)(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:r},u=function(e){var t=(0,ms.Cl)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!jc(e,Sc)&&jc(e,Cc)){var r=function(e){var t,r,n=e.duration,o=void 0===n?800:n,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,l=void 0===s?0:s,c=e.mass,u=void 0===c?1:c,d=1-a;d=xc(.05,1,d),o=xc(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,r=t*o;return.001-(t-l)/_c(e,d)*Math.exp(-r)},r=function(e){var r=e*d*o,n=r*l+l,i=Math.pow(d,2)*Math.pow(e,2)*o,a=Math.exp(-r),s=_c(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((n-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-l)*o+1)-.001},r=function(e){return Math.exp(-e*o)*(o*o*(l-e))});var p=function(e,t,r){for(var n=r,o=1;o<wc;o++)n-=e(n)/t(n);return n}(t,r,5/o);if(o*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:o};var f=Math.pow(p,2)*u;return{stiffness:f,damping:2*d*Math.sqrt(u*f),duration:o}}(e);(t=(0,ms.Cl)((0,ms.Cl)((0,ms.Cl)({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(l),d=u.stiffness,p=u.damping,f=u.mass,m=u.velocity,h=u.duration,g=u.isResolvedFromDuration,v=Rc,b=Rc;function y(){var e=m?-m/1e3:0,t=o-r,n=p/(2*Math.sqrt(d*f)),i=Math.sqrt(d/f)/1e3;if(null!=s||(s=Math.abs(o-r)<=1?.01:.4),n<1){var a=_c(i,n);v=function(r){var s=Math.exp(-n*i*r);return o-s*((e+n*i*t)/a*Math.sin(a*r)+t*Math.cos(a*r))},b=function(r){var o=Math.exp(-n*i*r);return n*i*o*(Math.sin(a*r)*(e+n*i*t)/a+t*Math.cos(a*r))-o*(Math.cos(a*r)*(e+n*i*t)-a*t*Math.sin(a*r))}}else if(1===n)v=function(r){return o-Math.exp(-i*r)*(t+(e+i*t)*r)};else{var l=i*Math.sqrt(n*n-1);v=function(r){var a=Math.exp(-n*i*r),s=Math.min(l*r,300);return o-a*((e+n*i*t)*Math.sinh(s)+l*t*Math.cosh(s))/l}}}return y(),{next:function(e){var t=v(e);if(g)c.done=e>=h;else{var r=1e3*b(e),n=Math.abs(r)<=a,i=Math.abs(o-t)<=s;c.done=n&&i}return c.value=c.done?o:t,c},flipTarget:function(){var e;m=-m,r=(e=[o,r])[0],o=e[1],y()}}}kc.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Rc=function(e){return 0},Ec=function(e,t,r){var n=t-e;return 0===n?1:(r-e)/n},Ac=function(e,t,r){return-r*e+r*t+e},Oc=function(e,t){return function(r){return Boolean(tl(r)&&el.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t))}},Pc=function(e,t,r){return function(n){var o;if(!tl(n))return n;var i=n.match(Js),a=i[0],s=i[1],l=i[2],c=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[r]=parseFloat(l),o.alpha=void 0!==c?parseFloat(c):1,o}},Tc=Xs(0,255),Dc=(0,ms.Cl)((0,ms.Cl)({},cl),{transform:function(e){return Math.round(Tc(e))}}),Mc={test:Oc("rgb","red"),parse:Pc("red","green","blue"),transform:function(e){var t=e.red,r=e.green,n=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+Dc.transform(t)+", "+Dc.transform(r)+", "+Dc.transform(n)+", "+Ks(ul.transform(i))+")"}},Nc={test:Oc("#"),parse:function(e){var t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Mc.transform},Bc={test:Oc("hsl","hue"),parse:Pc("hue","saturation","lightness"),transform:function(e){var t=e.hue,r=e.saturation,n=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+ol.transform(Ks(r))+", "+ol.transform(Ks(n))+", "+Ks(ul.transform(i))+")"}},Ic=function(e,t,r){var n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},Lc=[Nc,Mc,Bc],zc=function(e){return Lc.find(function(t){return t.test(e)})},Fc=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Hc=function(e,t){var r=zc(e),n=zc(t);Fc(e),Fc(t),r.transform,n.transform;var o=r.parse(e),i=n.parse(t),a=(0,ms.Cl)({},o),s=r===Bc?Ac:Ic;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=Ac(o.alpha,i.alpha,e),r.transform(a)}},Vc={test:function(e){return Mc.test(e)||Nc.test(e)||Bc.test(e)},parse:function(e){return Mc.test(e)?Mc.parse(e):Bc.test(e)?Bc.parse(e):Nc.parse(e)},transform:function(e){return tl(e)?e:e.hasOwnProperty("red")?Mc.transform(e):Bc.transform(e)}},$c="${c}",Uc="${n}";function Wc(e){var t=[],r=0,n=e.match(Qs);n&&(r=n.length,e=e.replace(Qs,$c),t.push.apply(t,n.map(Vc.parse)));var o=e.match(Js);return o&&(e=e.replace(Js,Uc),t.push.apply(t,o.map(cl.parse))),{values:t,numColors:r,tokenised:e}}function qc(e){return Wc(e).values}function Zc(e){var t=Wc(e),r=t.values,n=t.numColors,o=t.tokenised,i=r.length;return function(e){for(var t=o,r=0;r<i;r++)t=t.replace(r<n?$c:Uc,r<n?Vc.transform(e[r]):Ks(e[r]));return t}}var Yc=function(e){return"number"==typeof e?0:e},Gc={test:function(e){var t,r,n,o;return isNaN(e)&&tl(e)&&(null!==(r=null===(t=e.match(Js))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(o=null===(n=e.match(Qs))||void 0===n?void 0:n.length)&&void 0!==o?o:0)>0},parse:qc,createTransformer:Zc,getAnimatableNone:function(e){var t=qc(e);return Zc(e)(t.map(Yc))}},Xc=function(e){return"number"==typeof e};function Kc(e,t){return Xc(e)?function(r){return Ac(e,t,r)}:Vc.test(e)?Hc(e,t):tu(e,t)}var Jc=function(e,t){var r=(0,ms.fX)([],e),n=r.length,o=e.map(function(e,r){return Kc(e,t[r])});return function(e){for(var t=0;t<n;t++)r[t]=o[t](e);return r}},Qc=function(e,t){var r=(0,ms.Cl)((0,ms.Cl)({},e),t),n={};for(var o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=Kc(e[o],t[o]));return function(e){for(var t in n)r[t]=n[t](e);return r}};function eu(e){for(var t=Gc.parse(e),r=t.length,n=0,o=0,i=0,a=0;a<r;a++)n||"number"==typeof t[a]?n++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:i}}var tu=function(e,t){var r=Gc.createTransformer(t),n=eu(e),o=eu(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&(n.numNumbers,o.numNumbers),hc(Jc(n.parsed,o.parsed),r)},ru=function(e,t){return function(r){return Ac(e,t,r)}};function nu(e,t,r){var n=void 0===r?{}:r,o=n.clamp,i=void 0===o||o,a=n.ease,s=n.mixer,l=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=function(e,t,r){for(var n,o=[],i=r||("number"==typeof(n=e[0])?ru:"string"==typeof n?Vc.test(n)?Hc:tu:Array.isArray(n)?Jc:"object"==typeof n?Qc:void 0),a=e.length-1,s=0;s<a;s++){var l=i(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;l=hc(c,l)}o.push(l)}return o}(t,a,s),u=2===l?function(e,t){var r=e[0],n=e[1],o=t[0];return function(e){return o(Ec(r,n,e))}}(e,c):function(e,t){var r=e.length,n=r-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){for(var s=1;s<r&&!(e[s]>o||s===n);s++);i=s-1}var l=Ec(e[i],e[i+1],o);return t[i](l)}}(e,c);return i?function(t){return u(xc(e[0],e[l-1],t))}:u}var ou,iu=function(e){return function(t){return 1-e(1-t)}},au=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},su=function(e){return function(t){return t*t*((e+1)*t-e)}},lu=4/11,cu=8/11,uu=function(e){return e},du=function(e){return Math.pow(e,2)},pu=iu(du),fu=au(du),mu=function(e){return 1-Math.sin(Math.acos(e))},hu=iu(mu),gu=au(hu),vu=su(1.525),bu=iu(vu),yu=au(vu),xu=(ou=su(1.525),function(e){return(e*=2)<1?.5*ou(e):.5*(2-Math.pow(2,-10*(e-1)))}),wu=4356/361,_u=35442/1805,Cu=16061/1805,Su=function(e){if(1===e||0===e)return e;var t=e*e;return e<lu?7.5625*t:e<cu?9.075*t-9.9*e+3.4:e<.9?wu*t-_u*e+Cu:10.8*e*e-20.52*e+10.72},ju=iu(Su);function ku(e,t){return e.map(function(){return t||fu}).splice(0,e.length-1)}function Ru(e){var t=e.from,r=void 0===t?0:t,n=e.to,o=void 0===n?1:n,i=e.ease,a=e.offset,s=e.duration,l=void 0===s?300:s,c={done:!1,value:r},u=Array.isArray(o)?o:[r,o],d=function(e,t){return e.map(function(e){return e*t})}(a&&a.length===u.length?a:function(e){var t=e.length;return e.map(function(e,r){return 0!==r?r/(t-1):0})}(u),l);function p(){return nu(d,u,{ease:Array.isArray(i)?i:ku(u,i)})}var f=p();return{next:function(e){return c.value=f(e),c.done=e>=l,c},flipTarget:function(){u.reverse(),f=p()}}}var Eu={keyframes:Ru,spring:kc,decay:function(e){var t=e.velocity,r=void 0===t?0:t,n=e.from,o=void 0===n?0:n,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,l=void 0===s?350:s,c=e.restDelta,u=void 0===c?.5:c,d=e.modifyTarget,p={done:!1,value:o},f=a*r,m=o+f,h=void 0===d?m:d(m);return h!==m&&(f=h-o),{next:function(e){var t=-f*Math.exp(-e/l);return p.done=!(t>u||t<-u),p.value=p.done?h:h+t,p},flipTarget:function(){}}}},Au=1/60*1e3,Ou="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Pu="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(Ou())},Au)},Tu=!0,Du=!1,Mu=!1,Nu={delta:0,timestamp:0},Bu=["read","update","preRender","render","postRender"],Iu=Bu.reduce(function(e,t){return e[t]=function(e){var t=[],r=[],n=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var l=s&&o,c=l?t:r;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(n=t.length)),e},cancel:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:function(s){var l;if(o=!0,t=(l=[r,t])[0],(r=l[1]).length=0,n=t.length)for(var c=0;c<n;c++){var u=t[c];u(s),i.has(u)&&(a.schedule(u),e())}o=!1}};return a}(function(){return Du=!0}),e},{}),Lu=Bu.reduce(function(e,t){var r=Iu[t];return e[t]=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),Du||$u(),r.schedule(e,t,n)},e},{}),zu=Bu.reduce(function(e,t){return e[t]=Iu[t].cancel,e},{}),Fu=Bu.reduce(function(e,t){return e[t]=function(){return Iu[t].process(Nu)},e},{}),Hu=function(e){return Iu[e].process(Nu)},Vu=function(e){Du=!1,Nu.delta=Tu?Au:Math.max(Math.min(e-Nu.timestamp,40),1),Nu.timestamp=e,Mu=!0,Bu.forEach(Hu),Mu=!1,Du&&(Tu=!1,Pu(Vu))},$u=function(){Du=!0,Tu=!0,Mu||Pu(Vu)},Uu=function(){return Nu};const Wu=Lu;function qu(e,t,r){return void 0===r&&(r=0),e-t-r}var Zu=function(e){var t=function(t){var r=t.delta;return e(r)};return{start:function(){return Wu.update(t,!0)},stop:function(){return zu.update(t)}}};function Yu(e){var t,r,n,o,i,a=e.from,s=e.autoplay,l=void 0===s||s,c=e.driver,u=void 0===c?Zu:c,d=e.elapsed,p=void 0===d?0:d,f=e.repeat,m=void 0===f?0:f,h=e.repeatType,g=void 0===h?"loop":h,v=e.repeatDelay,b=void 0===v?0:v,y=e.onPlay,x=e.onStop,w=e.onComplete,_=e.onRepeat,C=e.onUpdate,S=(0,ms.Tt)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),j=S.to,k=0,R=S.duration,E=!1,A=!0,O=function(e){if(Array.isArray(e.to))return Ru;if(Eu[e.type])return Eu[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ru:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?kc:Ru}(S);(null===(r=(t=O).needsInterpolation)||void 0===r?void 0:r.call(t,a,j))&&(i=nu([0,100],[a,j],{clamp:!1}),a=0,j=100);var P=O((0,ms.Cl)((0,ms.Cl)({},S),{from:a,to:j}));return l&&(null==y||y(),(n=u(function(e){if(A||(e=-e),p+=e,!E){var t=P.next(Math.max(0,p));o=t.value,i&&(o=i(o)),E=A?t.done:p<=0}null==C||C(o),E&&(0===k&&(null!=R||(R=p)),k<m?function(e,t,r,n){return n?e>=t+r:e<=-r}(p,R,b,A)&&(k++,"reverse"===g?p=function(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=!0),n?qu(t+-e,t,r):t-(e-t)+r}(p,R,b,A=k%2==0):(p=qu(p,R,b),"mirror"===g&&P.flipTarget()),E=!1,_&&_()):(n.stop(),w&&w()))})).start()),{stop:function(){null==x||x(),n.stop()}}}function Gu(e,t){return t?e*(1e3/t):0}var Xu=function(e){return 1e3*e},Ku=function(e,t){return 1-3*t+3*e},Ju=function(e,t){return 3*t-6*e},Qu=function(e){return 3*e},ed=function(e,t,r){return((Ku(t,r)*e+Ju(t,r))*e+Qu(t))*e},td=function(e,t,r){return 3*Ku(t,r)*e*e+2*Ju(t,r)*e+Qu(t)},rd=.1;function nd(e,t,r,n){if(e===t&&r===n)return uu;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=ed(i*rd,e,r);return function(i){return 0===i||1===i?i:ed(function(t){for(var n=0,i=1;10!==i&&o[i]<=t;++i)n+=rd;--i;var a=n+(t-o[i])/(o[i+1]-o[i])*rd,s=td(a,e,r);return s>=.001?function(e,t,r,n){for(var o=0;o<8;++o){var i=td(t,r,n);if(0===i)return t;t-=(ed(t,r,n)-e)/i}return t}(t,a,e,r):0===s?a:function(e,t,r,n,o){var i,a,s=0;do{(i=ed(a=t+(r-t)/2,n,o)-e)>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,n,n+rd,e,r)}(i),t,n)}}var od={linear:uu,easeIn:du,easeInOut:fu,easeOut:pu,circIn:mu,circInOut:gu,circOut:hu,backIn:vu,backInOut:yu,backOut:bu,anticipate:xu,bounceIn:ju,bounceInOut:function(e){return e<.5?.5*(1-Su(1-2*e)):.5*Su(2*e-1)+.5},bounceOut:Su},id=function(e){if(Array.isArray(e)){e.length;var t=(0,ms.zs)(e,4);return nd(t[0],t[1],t[2],t[3])}return"string"==typeof e?od[e]:e},ad=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Gc.test(t)||t.startsWith("url(")))},sd=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},ld=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},cd=function(){return{type:"keyframes",ease:"linear",duration:.3}},ud=function(e){return{type:"keyframes",duration:.8,values:e}},dd={x:sd,y:sd,z:sd,rotate:sd,rotateX:sd,rotateY:sd,rotateZ:sd,scaleX:ld,scaleY:ld,scale:ld,opacity:cd,backgroundColor:cd,color:cd,default:ld},pd=new Set(["brightness","contrast","saturate","opacity"]);function fd(e){var t=e.slice(0,-1).split("("),r=t[0],n=t[1];if("drop-shadow"===r)return e;var o=(n.match(Js)||[])[0];if(!o)return e;var i=n.replace(o,""),a=pd.has(r)?1:0;return o!==n&&(a*=100),r+"("+a+i+")"}var md=/([a-z-]*)\(.*?\)/g,hd=(0,ms.Cl)((0,ms.Cl)({},Gc),{getAnimatableNone:function(e){var t=e.match(md);return t?t.map(fd).join(" "):e}}),gd=(0,ms.Cl)((0,ms.Cl)({},fl),{color:Vc,backgroundColor:Vc,outlineColor:Vc,fill:Vc,stroke:Vc,borderColor:Vc,borderTopColor:Vc,borderRightColor:Vc,borderBottomColor:Vc,borderLeftColor:Vc,filter:hd,WebkitFilter:hd}),vd=function(e){return gd[e]};function bd(e,t){var r,n=vd(e);return n!==hd&&(n=Gc),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}function yd(e,t,r){var n,o,i,a;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,ms.fX)([],(0,ms.zs)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,ms.Tt)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,ms.Cl)((0,ms.Cl)({},e),(o=r,i=t.to,a=Il(i)?ud:dd[o]||dd.default,(0,ms.Cl)({to:i},a(i))))),(0,ms.Cl)((0,ms.Cl)({},t),function(e){var t=e.ease,r=e.times,n=e.yoyo,o=e.flip,i=e.loop,a=(0,ms.Tt)(e,["ease","times","yoyo","flip","loop"]),s=(0,ms.Cl)({},a);return r&&(s.offset=r),a.duration&&(s.duration=Xu(a.duration)),a.repeatDelay&&(s.repeatDelay=Xu(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(id):id(t)),"tween"===a.type&&(s.type="keyframes"),(n||i||o)&&(n?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||n||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function xd(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function wd(e){return"number"==typeof e?0:bd("",e)}function _d(e,t){return e[t]||e.default||e}function Cd(e,t,r,n){return void 0===n&&(n={}),t.start(function(o){var i,a,s=function(e,t,r,n,o){var i,a=_d(n,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=ad(e,r);return"none"===s&&l&&"string"==typeof r?s=bd(e,r):xd(s)&&"string"==typeof r?s=wd(r):!Array.isArray(r)&&xd(r)&&"string"==typeof s&&(r=wd(s)),ad(e,s)&&l&&!1!==a.type?function(){var n={from:s,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,r=e.from,n=void 0===r?0:r,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,l=e.power,c=void 0===l?.8:l,u=e.timeConstant,d=void 0===u?750:u,p=e.bounceStiffness,f=void 0===p?500:p,m=e.bounceDamping,h=void 0===m?10:m,g=e.restDelta,v=void 0===g?1:g,b=e.modifyTarget,y=e.driver,x=e.onUpdate,w=e.onComplete;function _(e){return void 0!==a&&e<a||void 0!==s&&e>s}function C(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function S(e){null==t||t.stop(),t=Yu((0,ms.Cl)((0,ms.Cl)({},e),{driver:y,onUpdate:function(t){var r;null==x||x(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:w}))}function j(e){S((0,ms.Cl)({type:"spring",stiffness:f,damping:h,restDelta:v},e))}if(_(n))j({from:n,velocity:i,to:C(n)});else{var k=c*i+n;void 0!==b&&(k=b(k));var R,E,A=C(k),O=A===a?-1:1;S({type:"decay",from:n,velocity:i,timeConstant:d,power:c,restDelta:v,modifyTarget:b,onUpdate:_(k)?function(e){R=E,E=e,i=Gu(e-R,Uu().delta),(1===O&&e>A||-1===O&&e<A)&&j({from:e,to:A,velocity:i})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}((0,ms.Cl)((0,ms.Cl)({},n),a)):Yu((0,ms.Cl)((0,ms.Cl)({},yd(a,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;n.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(r),o(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}(e,t,r,n,o),l=function(e,t){var r;return null!==(r=(_d(e,t)||{}).delay)&&void 0!==r?r:0}(n,e),c=function(){return a=s()};return l?i=setTimeout(c,Xu(l)):c(),function(){clearTimeout(i),null==a||a.stop()}})}var Sd=function(e){return/^\-?\d*\.?\d+$/.test(e)};function jd(e,t){-1===e.indexOf(t)&&e.push(t)}function kd(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var Rd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return jd(this.subscriptions,e),function(){return kd(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var o=0;o<n;o++){var i=this.subscriptions[o];i&&i(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ed=function(){function e(e){var t,r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Rd,this.velocityUpdateSubscribers=new Rd,this.renderSubscribers=new Rd,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=e;var n=Uu(),o=n.delta,i=n.timestamp;r.lastUpdated!==i&&(r.timeDelta=o,r.lastUpdated=i,Wu.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),t&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return Wu.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Gu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ad(e){return new Ed(e)}var Od=function(e){return function(t){return t.test(e)}},Pd=[cl,il,ol,nl,sl,al,{test:function(e){return"auto"===e},parse:function(e){return e}}],Td=function(e){return Pd.find(Od(e))},Dd=(0,ms.fX)((0,ms.fX)([],(0,ms.zs)(Pd)),[Vc,Gc]),Md=function(e){return Dd.find(Od(e))};function Nd(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ad(r))}function Bd(e,t){if(t)return(t[e]||t.default||t).from}function Id(e,t,r){var n;void 0===r&&(r={});var o=As(e,t,r.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;r.transitionOverride&&(a=r.transitionOverride);var s=o?function(){return Ld(e,o,r)}:function(){return Promise.resolve()},l=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,r,n,o,i){void 0===r&&(r=0),void 0===n&&(n=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*n,l=1===o?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),s-e*n};return Array.from(e.variantChildren).sort(zd).forEach(function(e,n){a.push(Id(e,t,(0,ms.Cl)((0,ms.Cl)({},i),{delay:r+l(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,i+n,s,l,r)}:function(){return Promise.resolve()},c=a.when;if(c){var u=(0,ms.zs)("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],p=u[1];return d().then(p)}return Promise.all([s(),l(r.delay)])}function Ld(e,t,r){var n,o=void 0===r?{}:r,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,p=c.transitionEnd,f=(0,ms.Tt)(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[l]);for(var g in f){var v=e.getValue(g),b=f[g];if(!(!v||void 0===b||h&&Fd(h,g))){var y=Cd(g,v,b,(0,ms.Cl)({delay:a},d));m.push(y)}}return Promise.all(m).then(function(){p&&function(e,t){var r=As(e,t),n=r?e.makeTargetAnimatable(r,!1):{},o=n.transitionEnd,i=void 0===o?{}:o;n.transition;var a=(0,ms.Tt)(n,["transitionEnd","transition"]);for(var s in a=(0,ms.Cl)((0,ms.Cl)({},a),i))Nd(e,s,Ll(a[s]))}(e,p)})}function zd(e,t){return e.sortNodePosition(t)}function Fd(e,t){var r=e.protectedKeys,n=e.needsAnimating,o=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,o}var Hd=[$l.Animate,$l.Hover,$l.Tap,$l.Drag,$l.Focus,$l.Exit],Vd=(0,ms.fX)([],(0,ms.zs)(Hd)).reverse(),$d=Hd.length;function Ud(e){var t=function(e){return function(t){return Promise.all(t.map(function(t){var r=t.animation,n=t.options;return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map(function(t){return Id(e,t,r)});n=Promise.all(o)}else if("string"==typeof t)n=Id(e,t,r);else{var i="function"==typeof t?As(e,t,r.custom):t;n=Ld(e,i,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,r,n)}))}}(e),r=function(){var e;return(e={})[$l.Animate]=Wd(!0),e[$l.Hover]=Wd(),e[$l.Tap]=Wd(),e[$l.Drag]=Wd(),e[$l.Focus]=Wd(),e[$l.Exit]=Wd(),e}(),n={},o=!0,i=function(t,r){var n=As(e,r);if(n){n.transition;var o=n.transitionEnd,i=(0,ms.Tt)(n,["transition","transitionEnd"]);t=(0,ms.Cl)((0,ms.Cl)((0,ms.Cl)({},t),i),o)}return t};function a(a,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],p=new Set,f={},m=1/0,h=function(t){var n=Vd[t],h=r[n],g=null!==(l=c[n])&&void 0!==l?l:u[n],v=Rs(g),b=n===s?h.isActive:null;!1===b&&(m=t);var y=g===u[n]&&g!==c[n]&&v;if(y&&o&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=(0,ms.Cl)({},f),!h.isActive&&null===b||!g&&!h.prevProp||Bl(g)||"boolean"==typeof g)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!ks(t)&&!bc(t,e)}(h.prevProp,g)||n===s&&h.isActive&&!y&&v||t>m&&v,w=Array.isArray(g)?g:[g],_=w.reduce(i,{});!1===b&&(_={});var C=h.prevResolvedValues,S=void 0===C?{}:C,j=(0,ms.Cl)((0,ms.Cl)({},S),_),k=function(e){x=!0,p.delete(e),h.needsAnimating[e]=!0};for(var R in j){var E=_[R],A=S[R];f.hasOwnProperty(R)||(E!==A?Il(E)&&Il(A)?bc(E,A)?h.protectedKeys[R]=!0:k(R):void 0!==E?k(R):p.add(R):void 0!==E&&p.has(R)?k(R):h.protectedKeys[R]=!0)}h.prevProp=g,h.prevResolvedValues=_,h.isActive&&(f=(0,ms.Cl)((0,ms.Cl)({},f),_)),o&&e.blockInitialAnimation&&(x=!1),x&&!y&&d.push.apply(d,(0,ms.fX)([],(0,ms.zs)(w.map(function(e){return{animation:e,options:(0,ms.Cl)({type:n},a)}}))))},g=0;g<$d;g++)h(g);if(n=(0,ms.Cl)({},f),p.size){var v={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(v[t]=r)}),d.push({animation:v})}var b=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==n[e]},animateChanges:a,setActive:function(t,n,o){var i;return r[t].isActive===n?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n,a(o,t))},setAnimateFunction:function(r){t=r(e)},getState:function(){return r}}}function Wd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var qd={animation:gc(function(t){var r=t.visualElement,n=t.animate;r.animationState||(r.animationState=Ud(r)),Bl(n)&&(0,e.useEffect)(function(){return n.subscribe(r)},[n])}),exit:gc(function(t){var r=t.custom,n=t.visualElement,o=(0,ms.zs)(ls(),2),i=o[0],a=o[1],s=(0,e.useContext)(as);(0,e.useEffect)(function(){var e,t,o=null===(e=n.animationState)||void 0===e?void 0:e.setActive($l.Exit,!i,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:r});!i&&(null==o||o.then(a))},[i])})},Zd=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Yd=function(e){return Zd(e)&&e.hasOwnProperty("z")},Gd=function(e,t){return Math.abs(e-t)};function Xd(e,t){if(Xc(e)&&Xc(t))return Gd(e,t);if(Zd(e)&&Zd(t)){var r=Gd(e.x,t.x),n=Gd(e.y,t.y),o=Yd(e)&&Yd(t)?Gd(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}var Kd=function(){function e(e,t,r){var n=this,o=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=ep(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=Xd(e.offset,{x:0,y:0})>=3;if(t||r){var o=e.point,i=Uu().timestamp;n.history.push((0,ms.Cl)((0,ms.Cl)({},o),{timestamp:i}));var a=n.handlers,s=a.onStart,l=a.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),l&&l(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Jd(t,n.transformPagePoint),Yl(e)&&0===e.buttons?n.handlePointerUp(e,t):Wu.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,o=r.onEnd,i=r.onSessionEnd,a=ep(Jd(t,n.transformPagePoint),n.history);n.startEvent&&o&&o(e,a),i&&i(e,a)},!(Gl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=Jd(Ql(e),this.transformPagePoint),a=i.point,s=Uu().timestamp;this.history=[(0,ms.Cl)((0,ms.Cl)({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ep(i,this.history)),this.removeListeners=hc(oc(window,"pointermove",this.handlePointerMove),oc(window,"pointerup",this.handlePointerUp),oc(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),zu.update(this.updatePoint)},e}();function Jd(e,t){return t?{point:t(e.point)}:e}function Qd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ep(e,t){var r=e.point;return{point:r,delta:Qd(r,rp(t)),offset:Qd(r,tp(t)),velocity:np(t,.1)}}function tp(e){return e[0]}function rp(e){return e[e.length-1]}function np(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=rp(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Xu(t)));)r--;if(!n)return{x:0,y:0};var i=(o.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function op(e){return e}function ip(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var ap={translate:0,scale:1,origin:0,originPoint:0};function sp(){return{x:(0,ms.Cl)({},ap),y:(0,ms.Cl)({},ap)}}function lp(e){return[e("x"),e("y")]}function cp(e,t,r){var n=t.min,o=t.max;return void 0!==n&&e<n?e=r?Ac(n,e,r.min):Math.max(e,n):void 0!==o&&e>o&&(e=r?Ac(o,e,r.max):Math.min(e,o)),e}function up(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function dp(e,t){var r,n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=(0,ms.zs)([o,n],2))[0],o=r[1]),{min:e.min+n,max:e.min+o}}function pp(e,t,r){return{min:fp(e,t),max:fp(e,r)}}function fp(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function mp(e,t){return ip(function(e,t){var r=e.top,n=e.left,o=e.bottom,i=e.right;void 0===t&&(t=op);var a=t({x:n,y:r}),s=t({x:i,y:o});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}function hp(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Xd(e,t)<r}function gp(e){return e.max-e.min}function vp(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=Ac(t.min,t.max,e.origin),e.scale=gp(r)/gp(t),hp(e.scale,1,1e-4)&&(e.scale=1),e.translate=Ac(r.min,r.max,e.origin)-e.originPoint,hp(e.translate)&&(e.translate=0)}function bp(e,t,r,n){vp(e.x,t.x,r.x,yp(n.originX)),vp(e.y,t.y,r.y,yp(n.originY))}function yp(e){return"number"==typeof e?e:.5}function xp(e,t,r){e.min=r.min+t.min,e.max=e.min+gp(t)}var wp=function(e,t){return e.depth-t.depth};function _p(e){return e.projection.isEnabled||e.shouldResetTransform()}function Cp(e,t){void 0===t&&(t=[]);var r=e.parent;return r&&Cp(r,t),_p(e)&&t.push(e),t}function Sp(e){if(!e.shouldResetTransform()){var t,r=e.getLayoutState();e.notifyBeforeLayoutMeasure(r.layout),r.isHydrated=!0,r.layout=e.measureViewportBox(),r.layoutCorrected=(t=r.layout,{x:(0,ms.Cl)({},t.x),y:(0,ms.Cl)({},t.y)}),e.notifyLayoutMeasure(r.layout,e.prevViewportBox||r.layout),Wu.update(function(){return e.rebaseProjectionTarget()})}}function jp(e,t){return{min:t.min-e.min,max:t.max-e.min}}function kp(e,t){return{x:jp(e.x,t.x),y:jp(e.y,t.y)}}function Rp(e){var t=e.getProps(),r=t.drag,n=t._dragX;return r&&!n}function Ep(e,t){e.min=t.min,e.max=t.max}function Ap(e,t,r){return r+t*(e-r)}function Op(e,t,r,n,o){return void 0!==o&&(e=Ap(e,o,n)),Ap(e,r,n)+t}function Pp(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),e.min=Op(e.min,t,r,n,o),e.max=Op(e.max,t,r,n,o)}function Tp(e,t){var r=t.x,n=t.y;Pp(e.x,r.translate,r.scale,r.originPoint),Pp(e.y,n.translate,n.scale,n.originPoint)}function Dp(e,t,r,n){var o=(0,ms.zs)(n,3),i=o[0],a=o[1],s=o[2];e.min=t.min,e.max=t.max;var l=void 0!==r[s]?r[s]:.5,c=Ac(t.min,t.max,l);Pp(e,r[i],r[a],c,r.scale)}var Mp=["x","scaleX","originX"],Np=["y","scaleY","originY"];function Bp(e,t,r){Dp(e.x,t.x,r,Mp),Dp(e.y,t.y,r,Np)}function Ip(e,t,r,n,o){return e=Ap(e-=t,1/r,n),void 0!==o&&(e=Ap(e,1/o,n)),e}function Lp(e,t,r){var n=(0,ms.zs)(r,3),o=n[0],i=n[1],a=n[2];!function(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5);var i=Ac(e.min,e.max,n)-t;e.min=Ip(e.min,t,r,i,o),e.max=Ip(e.max,t,r,i,o)}(e,t[o],t[i],t[a],t.scale)}function zp(e,t){Lp(e.x,t,Mp),Lp(e.y,t,Np)}var Fp=new Set;function Hp(e,t,r){e[r]||(e[r]=[]),e[r].push(t)}function Vp(e){return Fp.add(e),function(){return Fp.delete(e)}}function $p(){if(Fp.size){var e=0,t=[[]],r=[],n=function(r){return Hp(t,r,e)},o=function(t){Hp(r,t,e),e++};Fp.forEach(function(t){t(n,o),e=0}),Fp.clear();for(var i=r.length,a=0;a<=i;a++)t[a]&&t[a].forEach(Wp),r[a]&&r[a].forEach(Wp)}}var Up,Wp=function(e){return e()},qp=new WeakMap,Zp=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),qp.set(t,this)}return e.prototype.start=function(e,t){var r=this,n=void 0===t?{}:t,o=n.snapToCursor,i=void 0!==o&&o,a=n.cursorProgress,s=this.props.transformPagePoint;this.panSession=new Kd(e,{onSessionStart:function(e){var t;r.stopMotion();var n=function(e){return Ql(e,"client")}(e).point;null===(t=r.cancelLayout)||void 0===t||t.call(r),r.cancelLayout=Vp(function(e,t){var o=Cp(r.visualElement),s=function(e){var t=[],r=function(e){_p(e)&&t.push(e),e.children.forEach(r)};return e.children.forEach(r),t.sort(wp)}(r.visualElement),l=(0,ms.fX)((0,ms.fX)([],(0,ms.zs)(o)),(0,ms.zs)(s)),c=!1;r.isLayoutDrag()&&r.visualElement.lockProjectionTarget(),t(function(){l.forEach(function(e){return e.resetTransform()})}),e(function(){Sp(r.visualElement),s.forEach(Sp)}),t(function(){l.forEach(function(e){return e.restoreTransform()}),i&&(c=r.snapToCursor(n))}),e(function(){Boolean(r.getAxisMotionValue("x")&&!r.isExternalDrag())||r.visualElement.rebaseProjectionTarget(!0,r.visualElement.measureViewportBox(!1)),r.visualElement.scheduleUpdateLayoutProjection();var e=r.visualElement.projection;lp(function(t){if(!c){var o=e.target[t],i=o.min,s=o.max;r.cursorProgress[t]=a?a[t]:Ec(i,s,n[t])}var l=r.getAxisMotionValue(t);l&&(r.originPoint[t]=l.get())})}),t(function(){Fu.update(),Fu.preRender(),Fu.render(),Fu.postRender()}),e(function(){return r.resolveDragConstraints()})})},onStart:function(e,t){var n,o,i,a=r.props,s=a.drag,l=a.dragPropagation;(!s||l||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=cc(s),r.openGlobalLock))&&($p(),r.isDragging=!0,r.currentDirection=null,null===(o=(n=r.props).onDragStart)||void 0===o||o.call(n,e,t),null===(i=r.visualElement.animationState)||void 0===i||i.setActive($l.Drag,!0))},onMove:function(e,t){var n,o,i,a,s=r.props,l=s.dragPropagation,c=s.dragDirectionLock;if(l||r.openGlobalLock){var u=t.offset;if(c&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(u),void(null!==r.currentDirection&&(null===(o=(n=r.props).onDirectionLock)||void 0===o||o.call(n,r.currentDirection)));r.updateAxis("x",t.point,u),r.updateAxis("y",t.point,u),null===(a=(i=r.props).onDrag)||void 0===a||a.call(i,e,t),Up=e}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,r=t.dragConstraints,n=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!r&&(js(r)?this.resolveRefConstraints(o,r):function(e,t){var r=t.top,n=t.left,o=t.bottom,i=t.right;return{x:up(e.x,n,i),y:up(e.y,r,o)}}(o,r)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:pp(e,"left","right"),y:pp(e,"top","bottom")}}(n),this.constraints&&!this.hasMutatedConstraints&&lp(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(o[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(e,t){var r=this.props,n=r.onMeasureDragConstraints,o=r.transformPagePoint,i=t.current;this.constraintsBox=mp(i,o);var a=function(e,t){return{x:dp(e.x,t.x),y:dp(e.y,t.y)}}(e,this.constraintsBox);if(n){var s=n(function(e){var t=e.x,r=e.y;return{top:r.min,bottom:r.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=ip(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive($l.Drag,!1)},e.prototype.stop=function(e,t){var r,n,o;null===(r=this.panSession)||void 0===r||r.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=t.velocity;this.animateDragEnd(a),null===(o=(n=this.props).onDragEnd)||void 0===o||o.call(n,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return lp(function(r){if(Yp(r,t.props.drag,t.currentDirection)){var n=t.getAxisMotionValue(r);if(!n)return t.cursorProgress[r]=.5,!0;var o=t.visualElement.getLayoutState().layout,i=o[r].max-o[r].min,a=o[r].min+i/2,s=e[r]-a;t.originPoint[r]=e[r],n.set(s)}}).includes(!0)},e.prototype.updateAxis=function(e,t,r){if(Yp(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,r):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var r=this.getAxisMotionValue(e);if(t&&r){var n=this.originPoint[e]+t[e],o=this.constraints?cp(n,this.constraints[e],this.elastic[e]):n;r.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var r,n=this.visualElement.getLayoutState().layout[e],o=n.max-n.min,i=this.cursorProgress[e],a=function(e,t,r,n,o){var i=e-t*r;return n?cp(i,n,o):i}(t[e],o,i,null===(r=this.constraints)||void 0===r?void 0:r[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,o=void 0!==n&&n,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,p=void 0===d||d,f=(0,ms.Tt)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,ms.Cl)({drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:p},f)},e.prototype.getAxisMotionValue=function(e){var t=this.props,r=t.layout,n=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:r||void 0!==n?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,r=e._dragY;return t||r},e.prototype.animateDragEnd=function(e){var t=this,r=this.props,n=r.drag,o=r.dragMomentum,i=r.dragElastic,a=r.dragTransition,s=function(e,t){void 0===t&&(t=!0);var r,n=e.getProjectionParent();return!!n&&(t?zp(r=kp(n.projection.target,e.projection.target),n.getLatestValues()):r=kp(n.getLayoutState().layout,e.getLayoutState().layout),lp(function(t){return e.setProjectionTargetAxis(t,r[t].min,r[t].max,!0)}),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),l=this.constraints||{};if(s&&Object.keys(l).length&&this.isLayoutDrag()){var c=this.visualElement.getProjectionParent();if(c){var u=kp(c.projection.targetFinal,l);lp(function(e){var t=u[e],r=t.min,n=t.max;l[e]={min:isNaN(r)?void 0:r,max:isNaN(n)?void 0:n}})}}var d=lp(function(r){var c;if(Yp(r,n,t.currentDirection)){var u=null!==(c=null==l?void 0:l[r])&&void 0!==c?c:{},d=i?200:1e6,p=i?40:1e7,f=(0,ms.Cl)((0,ms.Cl)({type:"inertia",velocity:o?e[r]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.getAxisMotionValue(r)?t.startAxisValueAnimation(r,f):t.visualElement.startLayoutAnimation(r,f,s)}});return Promise.all(d).then(function(){var e,r;null===(r=(e=t.props).onDragTransitionEnd)||void 0===r||r.call(e)})},e.prototype.stopMotion=function(){var e=this;lp(function(t){var r=e.getAxisMotionValue(t);r?r.stop():e.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);if(r){var n=r.get();return r.set(n),r.set(n),Cd(e,r,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,r=t.drag;if(js(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var n={x:0,y:0};lp(function(t){var r,o,i,a,s;n[t]=(r=e.visualElement.projection.target[t],o=e.constraintsBox[t],i=.5,a=gp(r),(s=gp(o))>a?i=Ec(o.min,o.max-a,r.min):a>s&&(i=Ec(r.min,r.max-s,o.min)),xc(0,1,i))}),this.updateConstraints(function(){lp(function(t){if(Yp(t,r,null)){var o=function(e,t,r){var n=e.max-e.min,o=Ac(t.min,t.max-n,r);return{min:o,max:o+n}}(e.visualElement.projection.target[t],e.constraintsBox[t],n[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}})}),setTimeout($p,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Vp(function(r,n){var o=Cp(t.visualElement);n(function(){return o.forEach(function(e){return e.resetTransform()})}),r(function(){return Sp(t.visualElement)}),n(function(){return o.forEach(function(e){return e.restoreTransform()})}),r(function(){t.resolveDragConstraints()}),e&&n(e)})},e.prototype.mount=function(e){var t=this,r=oc(e.getInstance(),"pointerdown",function(e){var r=t.props,n=r.drag,o=r.dragListener;n&&(void 0===o||o)&&t.start(e)}),n=ql(window,"resize",function(){t.scalePoint()}),o=e.onLayoutUpdate(function(){t.isDragging&&t.resolveDragConstraints()}),i=e.prevDragCursor;return i&&this.start(Up,{cursorProgress:i}),function(){null==r||r(),null==n||n(),null==o||o(),t.cancelDrag()}},e}();function Yp(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var Gp,Xp,Kp={pan:gc(function(t){var r=t.onPan,n=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=r||n||o||i,l=(0,e.useRef)(null),c=(0,e.useContext)(xs).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:r,onEnd:function(e,t){l.current=null,o&&o(e,t)}};(0,e.useEffect)(function(){null!==l.current&&l.current.updateHandlers(u)}),ic(a,"pointerdown",s&&function(e){l.current=new Kd(e,u,{transformPagePoint:c})}),fc(function(){return l.current&&l.current.end()})}),drag:gc(function(t){var r=t.dragControls,n=t.visualElement,o=(0,e.useContext)(xs).transformPagePoint,i=ss(function(){return new Zp({visualElement:n})});i.setProps((0,ms.Cl)((0,ms.Cl)({},t),{transformPagePoint:o})),(0,e.useEffect)(function(){return r&&r.subscribe(i)},[i]),(0,e.useEffect)(function(){return i.mount(n)},[])})};function Jp(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Gp||(Gp={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(Xp||(Xp={}));var Qp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ef(e,t,r){void 0===r&&(r=1);var n=(0,ms.zs)(function(e){var t=Qp.exec(e);if(!t)return[,];var r=(0,ms.zs)(t,3);return[r[1],r[2]]}(e),2),o=n[0],i=n[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Jp(i)?ef(i,t,r+1):i}}function tf(e,t){return e/(t.max-t.min)*100}var rf="_$css",nf={process:function(e,t,r){var n=r.target;if("string"==typeof e){if(!il.test(e))return e;e=parseFloat(e)}return tf(e,n.x)+"% "+tf(e,n.y)+"%"}},of={borderRadius:(0,ms.Cl)((0,ms.Cl)({},nf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nf,borderTopRightRadius:nf,borderBottomLeftRadius:nf,borderBottomRightRadius:nf,boxShadow:{process:function(e,t){var r=t.delta,n=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Qp,function(e){return a.push(e),rf}));var s=Gc.parse(e);if(s.length>5)return o;var l=Gc.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=Ac(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var f=l(s);if(i){var m=0;f=f.replace(rf,function(){var e=a[m];return m++,e})}return f}}},af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,r,n){void 0===n&&(n={});var o=n.originBox,i=n.targetBox,a=n.visibilityAction,s=n.shouldStackAnimate,l=n.onComplete,c=n.prevParent,u=(0,ms.Tt)(n,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,p=d.visualElement,f=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),r=o||r,e=i||e;var m,h,g,v=!1,b=p.getProjectionParent();if(b){var y=b.prevViewportBox,x=b.getLayoutState().layout;c&&(i&&(x=c.getLayoutState().layout),o&&(h=b,(m=c).getLayoutId()===(g=h.getLayoutId())&&(void 0!==g||m===h))&&c.prevViewportBox&&(y=c.prevViewportBox)),y&&function(e,t,r){return e||!e&&!(t||r)}(c,o,i)&&(v=!0,r=kp(y,r),e=kp(x,e))}var w=function(e,t){return!(lf(e)||lf(t)||cf(e.x,t.x)&&cf(e.y,t.y))}(r,e),_=lp(function(n){var o,i;if("position"===f){var s=e[n].max-e[n].min;r[n].max=r[n].min+s}if(!p.projection.isTargetLocked)return void 0===a?w?t.animateAxis(n,e[n],r[n],(0,ms.Cl)((0,ms.Cl)({},u),{isRelative:v})):(null===(i=(o=t.stopAxisAnimation)[n])||void 0===i||i.call(o),p.setProjectionTargetAxis(n,e[n].min,e[n].max,v)):void p.setVisibility(a===Xp.Show)});return p.syncRender(),Promise.all(_).then(function(){t.isAnimatingTree=!1,l&&l(),p.notifyLayoutAnimationComplete()})}},t}return(0,ms.C6)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Cd,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Is[t]=e[t]}(of)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),lp(function(t){var r,n;return null===(n=(r=e.stopAxisAnimation)[t])||void 0===n?void 0:n.call(r)})},t.prototype.animateAxis=function(e,t,r,n){var o,i,a=this,s=void 0===n?{}:n,l=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!cf(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],p=u.getProjectionAnimationProgress()[e];p.clearListeners(),p.set(0),p.set(0);var f=function(){var n=p.get()/1e3;!function(e,t,r,n){e.min=Ac(t.min,r.min,n),e.max=Ac(t.max,r.max,n)}(d,r,t,n),u.setProjectionTargetAxis(e,d.min,d.max,c)};f();var m=p.onChange(f);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,p.stop(),m()},this.currentAnimationTarget[e]=t;var h=l||u.getDefaultTransition()||uf;return Cd("x"===e?"layoutX":"layoutY",p,1e3,h&&_d(h,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(e.Component),sf={min:0,max:0};function lf(e){return cf(e.x,sf)&&cf(e.y,sf)}function cf(e,t){return e.min===t.min&&e.max===t.max}var uf={duration:.45,ease:[.4,0,.1,1]},df={layoutReady:function(e){return e.notifyLayoutReady()}};function pf(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var r=void 0===t?df:t,n=r.layoutReady,o=r.parent;Vp(function(t,r){var i=Array.from(e).sort(wp),a=o?Cp(o):[];r(function(){(0,ms.fX)((0,ms.fX)([],(0,ms.zs)(a)),(0,ms.zs)(i)).forEach(function(e){return e.resetTransform()})}),t(function(){i.forEach(Sp)}),r(function(){a.forEach(function(e){return e.restoreTransform()}),i.forEach(n)}),t(function(){i.forEach(function(e){e.isPresent&&(e.presence=Gp.Present)})}),r(function(){Fu.preRender(),Fu.render()}),t(function(){Wu.postRender(function(){return i.forEach(ff)}),e.clear()})}),$p()}}}function ff(e){e.prevViewportBox=e.projection.target}var mf=(0,e.createContext)(pf()),hf=(0,e.createContext)(pf());function gf(e){return!!e.forceUpdate}var vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ms.C6)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,r=e.framerSyncLayout,n=e.visualElement;gf(t)&&t.register(n),gf(r)&&r.register(n),n.onUnmount(function(){gf(t)&&t.remove(n),gf(r)&&r.remove(n)})},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,r=e.visualElement;return gf(t)?t.syncUpdate():(function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(r),t.add(r)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;gf(e)||e.flush()},t.prototype.render=function(){return null},t}(r().Component),bf={measureLayout:function(t){var n=(0,e.useContext)(mf),o=(0,e.useContext)(hf);return r().createElement(vf,(0,ms.Cl)({},t,{syncLayout:n,framerSyncLayout:o}))},layoutAnimation:function(t){var r=(0,ms.zs)(ls(),2)[1];return e.createElement(af,(0,ms.Cl)({},t,{safeToRemove:r}))}};function yf(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:sp(),deltaFinal:sp(),deltaTransform:""}}var xf=yf();function wf(e,t,r){var n=e.x,o=e.y,i="translate3d("+n.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(r){var a=r.rotate,s=r.rotateX,l=r.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),l&&(i+="rotateY("+l+") ")}return i+="scale("+n.scale+", "+o.scale+")",r||i!==Cf?i:""}function _f(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Cf=wf(xf.delta,xf.treeScale,{x:1,y:1}),Sf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var jf=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){jd(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){kd(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(wp),this.isDirty=!1,this.children.forEach(e)},e}(),kf=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,p=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,h=e.props,g=e.presenceId,v=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var y,x,w,_,C,S,j=b.latestValues,k=b.renderState,R=function(){var e=Sf.map(function(){return new Rd}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){return Sf.forEach(function(n){var o;null===(o=t[n])||void 0===o||o.call(t);var i="on"+n,a=e[i];a&&(t[n]=r[i](a))})}};return e.forEach(function(e,t){r["on"+Sf[t]]=function(t){return e.add(t)},r["notify"+Sf[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,(0,ms.fX)([],(0,ms.zs)(t)))}}),r}(),E={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},A=E,O=j,P=yf(),T=!1,D=new Map,M=new Map,N={},B=(0,ms.Cl)({},j);function I(){y&&(q.isProjectionReady()&&(Bp(A.targetFinal,A.target,O),bp(P.deltaFinal,P.layoutCorrected,A.targetFinal,j)),L(),s(y,k))}function L(){var e=j;if(_&&_.isActive()){var r=_.getCrossfadeState(q);r&&(e=r)}n(q,k,e,A,P,t,h)}function z(){R.notifyUpdate(j)}function F(){q.layoutTree.forEach(Ef)}var H=f(h);for(var V in H){var $=H[V];void 0!==j[V]&&qs($)&&$.set(j[V],!1)}var U=Os(h),W=Ps(h),q=(0,ms.Cl)((0,ms.Cl)({treeType:r,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,path:m?(0,ms.fX)((0,ms.fX)([],(0,ms.zs)(m.path)),[m]):[],layoutTree:m?m.layoutTree:new jf,presenceId:g,projection:E,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==m?void 0:m.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){y=q.current=e,q.pointTo(q),W&&m&&!U&&(S=null==m?void 0:m.addVariantChild(q)),null==m||m.children.add(q)},unmount:function(){zu.update(z),zu.render(I),zu.preRender(q.updateLayoutProjection),M.forEach(function(e){return e()}),q.stopLayoutAnimation(),q.layoutTree.remove(q),null==S||S(),null==m||m.children.delete(q),null==w||w(),R.clearAllListeners()},addVariantChild:function(e){var t,r=q.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return p&&r===e.treeType?p(q.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return W?q:null==m?void 0:m.getClosestVariantNode()},scheduleUpdateLayoutProjection:m?m.scheduleUpdateLayoutProjection:function(){return Wu.preRender(q.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return h.layoutId},getInstance:function(){return y},getStaticValue:function(e){return j[e]},setStaticValue:function(e,t){return j[e]=t},getLatestValues:function(){return j},setVisibility:function(e){q.isVisible!==e&&(q.isVisible=e,q.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(q,e,h,t)},addValue:function(e,t){q.hasValue(e)&&q.removeValue(e),D.set(e,t),j[e]=t.get(),function(e,t){var r=t.onChange(function(t){j[e]=t,h.onUpdate&&Wu.update(z,!1,!0)}),n=t.onRenderRequest(q.scheduleRender);M.set(e,function(){r(),n()})}(e,t)},removeValue:function(e){var t;D.delete(e),null===(t=M.get(e))||void 0===t||t(),M.delete(e),delete j[e],d(e,k)},hasValue:function(e){return D.has(e)},getValue:function(e,t){var r=D.get(e);return void 0===r&&void 0!==t&&(r=Ad(t),q.addValue(e,r)),r},forEachValue:function(e){return D.forEach(e)},readValue:function(e){var r;return null!==(r=j[e])&&void 0!==r?r:l(y,e,t)},setBaseTarget:function(e,t){B[e]=t},getBaseTarget:function(e){if(o){var t=o(h,e);if(void 0!==t&&!qs(t))return t}return B[e]}},R),{build:function(){return L(),k},scheduleRender:function(){Wu.render(I,!1,!0)},syncRender:I,setProps:function(e){h=e,R.updatePropListeners(e),N=function(e,t,r){var n;for(var o in t){var i=t[o],a=r[o];if(qs(i))e.addValue(o,i);else if(qs(a))e.addValue(o,Ad(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Ad(null!==(n=e.getStaticValue(o))&&void 0!==n?n:i))}for(var o in r)void 0===t[o]&&e.removeValue(o);return t}(q,f(h),N)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==m?void 0:m.getVariantContext();if(!U){var t=(null==m?void 0:m.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var r={},n=0;n<Pf;n++){var o=Of[n],i=h[o];(Rs(i)||!1===i)&&(r[o]=i)}return r},enableLayoutProjection:function(){E.isEnabled=!0,q.layoutTree.add(q)},lockProjectionTarget:function(){E.isTargetLocked=!0},unlockProjectionTarget:function(){q.stopLayoutAnimation(),E.isTargetLocked=!1},getLayoutState:function(){return P},setCrossfader:function(e){_=e},isProjectionReady:function(){return E.isEnabled&&E.isHydrated&&P.isHydrated},startLayoutAnimation:function(e,t,r){void 0===r&&(r=!1);var n=q.getProjectionAnimationProgress()[e],o=r?E.relativeTarget[e]:E.target[e],i=o.min,a=o.max-i;return n.clearListeners(),n.set(i),n.set(i),n.onChange(function(t){q.setProjectionTargetAxis(e,t,t+a,r)}),q.animateMotionValue(e,n,0,t)},stopLayoutAnimation:function(){lp(function(e){return q.getProjectionAnimationProgress()[e].stop()})},measureViewportBox:function(e){void 0===e&&(e=!0);var r=a(y,t);return e||zp(r,j),r},getProjectionAnimationProgress:function(){return C||(C={x:Ad(0),y:Ad(0)}),C},setProjectionTargetAxis:function(e,t,r,n){var o;void 0===n&&(n=!1),n?(E.relativeTarget||(E.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=E.relativeTarget[e]):(E.relativeTarget=void 0,o=E.target[e]),E.isHydrated=!0,o.min=t,o.max=r,T=!0,R.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=P.layout);var r=q.getProjectionAnimationProgress(),n=r.x,o=r.y,i=!(E.relativeTarget||E.isTargetLocked||n.isAnimating()||o.isAnimating());(e||i)&&lp(function(e){var r=t[e],n=r.min,o=r.max;q.setProjectionTargetAxis(e,n,o)})},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var r=kp(t.getLayoutState().layout,e.getLayoutState().layout);lp(function(t){e.setProjectionTargetAxis(t,r[t].min,r[t].max,!0)})}else e.rebaseProjectionTarget()}(q),q.notifyLayoutUpdate(P.layout,q.prevViewportBox||P.layout,e)},resetTransform:function(){return c(q,y,h)},restoreTransform:function(){return u(y,k)},updateLayoutProjection:function(){if(q.isProjectionReady()){var e=P.delta,t=P.treeScale,r=t.x,n=t.y,o=P.deltaTransform;(function(e,t,r,n){var o,i,a=e.delta,s=e.layout,l=e.layoutCorrected,c=e.treeScale,u=t.target;i=s,Ep((o=l).x,i.x),Ep(o.y,i.y),function(e,t,r){var n=r.length;if(n){var o,i;t.x=t.y=1;for(var a=0;a<n;a++)i=(o=r[a]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,Tp(e,i),Rp(o)&&Bp(e,e,o.getLatestValues())}}(l,c,r),bp(a,l,u,n)})(P,A,q.path,j),T&&q.notifyViewportBoxUpdate(A.target,e),T=!1;var i=wf(e,t);i===o&&r===t.x&&n===t.y||q.scheduleRender(),P.deltaTransform=i}},updateTreeLayoutProjection:function(){q.layoutTree.forEach(Rf),Wu.preRender(F,!1,!0)},getProjectionParent:function(){if(void 0===x){for(var e=!1,t=q.path.length-1;t>=0;t--){var r=q.path[t];if(r.projection.isEnabled){e=r;break}}x=e}return x},resolveRelativeTargetBox:function(){var e=q.getProjectionParent();if(E.relativeTarget&&e&&(function(e,t){xp(e.target.x,e.relativeTarget.x,t.target.x),xp(e.target.y,e.relativeTarget.y,t.target.y)}(E,e.projection),Rp(e))){var t=E.target;Bp(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(h._layoutResetTransform)},pointTo:function(e){A=e.projection,O=e.getLatestValues(),null==w||w(),w=hc(e.onSetAxisTarget(q.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete(function(){var e;q.isPresent?q.presence=Gp.Present:null===(e=q.layoutSafeToRemove)||void 0===e||e.call(q)}))},isPresent:!0,presence:Gp.Entering});return q}};function Rf(e){e.resolveRelativeTargetBox()}function Ef(e){e.updateLayoutProjection()}var Af,Of=(0,ms.fX)(["initial"],(0,ms.zs)(Hd)),Pf=Of.length,Tf=new Set(["width","height","top","left","right","bottom","x","y"]),Df=function(e){return Tf.has(e)},Mf=function(e,t){e.set(t,!1),e.set(t)},Nf=function(e){return e===cl||e===il};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Af||(Af={}));var Bf=function(e,t){return parseFloat(e.split(", ")[t])},If=function(e,t){return function(r,n){var o=n.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return Bf(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Bf(a[1],e):0}},Lf=new Set(["x","y","z"]),zf=zs.filter(function(e){return!Lf.has(e)}),Ff={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:If(4,13),y:If(5,14)};function Hf(e,t,r,n){return function(e){return Object.keys(e).some(Df)}(t)?function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=(0,ms.Cl)({},t),n=(0,ms.Cl)({},n);var o=Object.keys(t).filter(Df),i=[],a=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=r[o],d=t[o],p=Td(u);if(Il(d))for(var f=d.length,m=null===d[0]?1:0;m<f;m++)c?yc(Td(d[m])):(c=Td(d[m]),yc(c===p||Nf(p)&&Nf(c)));else c=Td(d);if(p!==c)if(Nf(p)&&Nf(c)){var h=l.get();"string"==typeof h&&l.set(parseFloat(h)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&c===il&&(t[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==c?void 0:c.transform)&&(0===u||0===d)?0===u?l.set(c.transform(u)):t[o]=p.transform(d):(a||(i=function(e){var t=[];return zf.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:t[o],Mf(l,d))}}),s.length){var l=function(e,t,r){var n=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var l=t.measureViewportBox();return r.forEach(function(r){var o=t.getValue(r);Mf(o,Ff[r](n,s)),e[r]=Ff[r](l,i)}),e}(t,e,s);return i.length&&i.forEach(function(t){var r=(0,ms.zs)(t,2),n=r[0],o=r[1];e.getValue(n).set(o)}),e.syncRender(),{target:l,transitionEnd:n}}return{target:t,transitionEnd:n}}(e,t,r,n):{target:t,transitionEnd:n}}var Vf={treeType:"dom",readValueFromInstance:function(e,t){if(Vs(t)){var r=vd(t);return r&&r.default||0}var n,o=(n=e,window.getComputedStyle(n));return(Ys(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return mp(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var o=r.transformValues;void 0===n&&(n=!0);var i=t.transition,a=t.transitionEnd,s=(0,ms.Tt)(t,["transition","transitionEnd"]),l=function(e,t,r){var n,o,i={};for(var a in e)i[a]=null!==(n=Bd(a,t))&&void 0!==n?n:null===(o=r.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),n){!function(e,t,r){var n,o,i,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(o=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==o?o:t[u]),null!=p&&("string"==typeof p&&Sd(p)?p=parseFloat(p):!Md(p)&&Gc.test(d)&&(p=bd(u,d)),e.addValue(u,Ad(p)),null!==(i=(a=r)[u])&&void 0!==i||(a[u]=p),e.setBaseTarget(u,p))}}(e,s,l);var c=function(e,t,r,n){var o=function(e,t,r){var n,o=(0,ms.Tt)(t,[]),i=e.getInstance();if(!(i instanceof HTMLElement))return{target:o,transitionEnd:r};for(var a in r&&(r=(0,ms.Cl)({},r)),e.forEachValue(function(e){var t=e.get();if(Jp(t)){var r=ef(t,i);r&&e.set(r)}}),o){var s=o[a];if(Jp(s)){var l=ef(s,i);l&&(o[a]=l,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=s)))}}return{target:o,transitionEnd:r}}(e,t,n);return Hf(e,t=o.target,r,n=o.transitionEnd)}(e,s,l,a);a=c.transitionEnd,s=c.target}return(0,ms.Cl)({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ml,build:function(e,t,r,n,o,i,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=n.isEnabled&&o.isHydrated;ml(t,r,n,o,i,a.transformTemplate,s?wf:void 0,s?_f:void 0)},render:Pl},$f=kf(Vf),Uf=kf((0,ms.Cl)((0,ms.Cl)({},Vf),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Vs(t)?(null===(r=vd(t))||void 0===r?void 0:r.default)||0:(t=Tl.has(t)?t:Ol(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Nl,build:function(e,t,r,n,o,i,a){var s=n.isEnabled&&o.isHydrated;jl(t,r,n,o,i,a.transformTemplate,s?wf:void 0,s?_f:void 0)},render:Dl})),Wf=function(e,t){return Bs(e)?Uf(t,{enableHardwareAcceleration:!1}):$f(t,{enableHardwareAcceleration:!0})},qf=(0,ms.Cl)((0,ms.Cl)((0,ms.Cl)((0,ms.Cl)({},qd),vc),Kp),bf),Zf=Ms(function(e,t){return function(e,t,r,n){var o=t.forwardMotionProps,i=void 0!==o&&o,a=Bs(e)?Ul:Wl;return(0,ms.Cl)((0,ms.Cl)({},a),{preloadedFeatures:r,useRender:El(i),createVisualElement:n,Component:e})}(e,t,qf,Wf)}),Yf=a(6691),Gf={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Xf=(0,e.memo)(t=>{const{id:r,message:n,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=Gf,toastSpacing:d="0.5rem"}=t,[p,f]=(0,e.useState)(l),m=cs();(0,is.w)(()=>{m||null==o||o()},[m]),(0,is.w)(()=>{f(l)},[l]);const h=()=>{m&&i()};(0,e.useEffect)(()=>{m&&a&&i()},[m,a,i]),function(t,r){const n=(0,os.c)(t);(0,e.useEffect)(()=>{if(null==r)return;let e=null;return e=window.setTimeout(()=>{n()},r),()=>{e&&window.clearTimeout(e)}},[r,n])}(h,p);const g=(0,e.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),v=(0,e.useMemo)(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s),[s]);return(0,x.jsx)(Zf.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(l),custom:{position:s},style:v,children:(0,x.jsx)(Yf.B.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:(0,Ie.Jg)(n,{id:r,onClose:h})})})});function Kf(e,t){var r;const n=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==o?void 0:o[t])?r:n}Xf.displayName="ToastComponent";var Jf=a(8713);function Qf(e){return(0,x.jsx)(Jf.I,{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var em=a(4403),tm=a(7652),rm=y({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),nm=(0,em.R)((e,t)=>{const r=(0,tm.Vl)("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=(0,O.MN)(e),c=(0,Ie.cx)("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${rm} ${i} linear infinite`,...r};return(0,x.jsx)(Yf.B.div,{ref:t,__css:u,className:c,...l,children:n&&(0,x.jsx)(Yf.B.span,{srOnly:!0,children:n})})});nm.displayName="Spinner";var[om,im]=(0,j.q)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[am,sm]=(0,j.q)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),lm={info:{icon:function(e){return(0,x.jsx)(Jf.I,{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Qf,colorScheme:"orange"},success:{icon:function(e){return(0,x.jsx)(Jf.I,{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Qf,colorScheme:"red"},loading:{icon:nm,colorScheme:"blue"}},cm=(0,em.R)(function(e,t){var r;const{status:n="info",addRole:o=!0,...i}=(0,O.MN)(e),a=null!=(r=e.colorScheme)?r:function(e){return lm[e].colorScheme}(n),s=(0,tm.o5)("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,x.jsx)(om,{value:{status:n},children:(0,x.jsx)(am,{value:s,children:(0,x.jsx)(Yf.B.div,{"data-status":n,role:o?"alert":void 0,ref:t,...i,className:(0,Ie.cx)("chakra-alert",e.className),__css:l})})})});function um(e){const{status:t}=im(),r=function(e){return lm[e].icon}(t),n=sm(),o="loading"===t?n.spinner:n.icon;return(0,x.jsx)(Yf.B.span,{display:"inherit","data-status":t,...e,className:(0,Ie.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,x.jsx)(r,{h:"100%",w:"100%"})})}cm.displayName="Alert",um.displayName="AlertIcon";var dm=(0,em.R)(function(e,t){const r=sm(),{status:n}=im();return(0,x.jsx)(Yf.B.div,{ref:t,"data-status":n,...e,className:(0,Ie.cx)("chakra-alert__title",e.className),__css:r.title})});dm.displayName="AlertTitle";var pm=(0,em.R)(function(e,t){const r=sm(),{status:n}=im(),o={display:"inline",...r.description};return(0,x.jsx)(Yf.B.div,{ref:t,"data-status":n,...e,className:(0,Ie.cx)("chakra-alert__desc",e.className),__css:o})});function fm(e){return(0,x.jsx)(Jf.I,{focusable:"false","aria-hidden":!0,...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}pm.displayName="AlertDescription";var mm=(0,em.R)(function(e,t){const r=(0,tm.Vl)("CloseButton",e),{children:n,isDisabled:o,__css:i,...a}=(0,O.MN)(e);return(0,x.jsx)(Yf.B.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...i},...a,children:n||(0,x.jsx)(fm,{width:"1em",height:"1em"})})});mm.displayName="CloseButton";var hm=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n(()=>e),r.delete(t)}),removeToast:(e,t)=>{n(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const r=function(e,t={}){var r,n;gm+=1;const o=null!=(r=t.id)?r:gm,i=null!=(n=t.position)?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>hm.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=r;return n(e=>{var t,n;const i=o.includes("top")?[r,...null!=(t=e[o])?t:[]]:[...null!=(n=e[o])?n:[],r];return{...e,[o]:i}}),i},update:(e,t)=>{e&&n(r=>{const n={...r},{position:o,index:i}=ts(n,e);return o&&-1!==i&&(n[o][i]={...n[o][i],...t,message:bm(t)}),n})},closeAll:({positions:e}={})=>{n(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{n(t=>{const r=rs(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(ts(hm.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),gm=0,vm=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,x.jsxs)(cm,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,x.jsx)(um,{children:c}),(0,x.jsxs)(Yf.B.div,{flex:"1",maxWidth:"100%",children:[o&&(0,x.jsx)(dm,{id:null==u?void 0:u.title,children:o}),s&&(0,x.jsx)(pm,{id:null==u?void 0:u.description,display:"block",children:s})]}),i&&(0,x.jsx)(mm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function bm(e={}){const{render:t,toastComponent:r=vm}=e;return n=>"function"==typeof t?t({...n,...e}):(0,x.jsx)(r,{...n,...e})}var ym=0;function xm(){var e=ym;return ym++,e}var wm=function(t){var r=t.children,n=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=ss(_m),c=ss(xm),u=(0,e.useMemo)(function(){return{id:c,initial:n,isPresent:o,custom:a,onExitComplete:function(e){l.set(e,!0);var t=!0;l.forEach(function(e){e||(t=!1)}),t&&(null==i||i())},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},s?void 0:[o]);return(0,e.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[o]),e.useEffect(function(){!o&&!l.size&&(null==i||i())},[o]),e.createElement(as.Provider,{value:u},r)};function _m(){return new Map}function Cm(e){return e.key||""}var Sm=function(t){var r=t.children,n=t.custom,o=t.initial,i=void 0===o||o,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,c=void 0===l||l,u=function(){var t=(0,e.useRef)(!1),r=(0,ms.zs)((0,e.useState)(0),2),n=r[0],o=r[1];return fc(function(){return t.current=!0}),(0,e.useCallback)(function(){!t.current&&o(n+1)},[n])}(),d=(0,e.useContext)(mf);gf(d)&&(u=d.forceUpdate);var p=(0,e.useRef)(!0),f=function(t){var r=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&r.push(t)}),r}(r),m=(0,e.useRef)(f),h=(0,e.useRef)(new Map).current,g=(0,e.useRef)(new Set).current;if(function(e,t){e.forEach(function(e){var r=Cm(e);t.set(r,e)})}(f,h),p.current)return p.current=!1,e.createElement(e.Fragment,null,f.map(function(t){return e.createElement(wm,{key:Cm(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:c},t)}));for(var v=(0,ms.fX)([],(0,ms.zs)(f)),b=m.current.map(Cm),y=f.map(Cm),x=b.length,w=0;w<x;w++){var _=b[w];-1===y.indexOf(_)?g.add(_):g.delete(_)}return s&&g.size&&(v=[]),g.forEach(function(t){if(-1===y.indexOf(t)){var r=h.get(t);if(r){var o=b.indexOf(t);v.splice(o,0,e.createElement(wm,{key:Cm(r),isPresent:!1,onExitComplete:function(){h.delete(t),g.delete(t);var e=m.current.findIndex(function(e){return e.key===t});m.current.splice(e,1),g.size||(m.current=f,u(),a&&a())},custom:n,presenceAffectsLayout:c},r))}}}),v=v.map(function(t){var r=t.key;return g.has(r)?t:e.createElement(wm,{key:Cm(t),isPresent:!0,presenceAffectsLayout:c},t)}),m.current=v,e.createElement(e.Fragment,null,g.size?v:v.map(function(t){return(0,e.cloneElement)(t)}))},jm=a(5795),[km,Rm]=(0,j.q)({strict:!1,name:"PortalContext"}),Em="chakra-portal",Am=e=>(0,x.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Om=t=>{const{appendToParentPortal:r,children:n}=t,[o,i]=(0,e.useState)(null),a=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)(()=>s({}),[]);const l=Rm(),c=R();(0,V.U)(()=>{if(!o)return;const e=o.ownerDocument,t=r&&null!=l?l:e.body;if(!t)return;a.current=e.createElement("div"),a.current.className=Em,t.appendChild(a.current),s({});const n=a.current;return()=>{t.contains(n)&&t.removeChild(n)}},[o]);const u=(null==c?void 0:c.zIndex)?(0,x.jsx)(Am,{zIndex:null==c?void 0:c.zIndex,children:n}):n;return a.current?(0,jm.createPortal)((0,x.jsx)(km,{value:a.current,children:u}),a.current):(0,x.jsx)("span",{ref:e=>{e&&i(e)}})},Pm=t=>{const{children:r,containerRef:n,appendToParentPortal:o}=t,i=n.current,a=null!=i?i:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)(()=>{const e=null==i?void 0:i.ownerDocument.createElement("div");return e&&(e.className=Em),e},[i]),[,l]=(0,e.useState)({});return(0,V.U)(()=>l({}),[]),(0,V.U)(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?(0,jm.createPortal)((0,x.jsx)(km,{value:o?s:null,children:r}),s):null};function Tm(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,x.jsx)(Pm,{containerRef:r,...n}):(0,x.jsx)(Om,{...n})}Tm.className=Em,Tm.selector=".chakra-portal",Tm.displayName="Portal";var[Dm,Mm]=(0,j.q)({name:"ToastOptionsContext",strict:!1}),Nm=t=>{const r=(0,e.useSyncExternalStore)(hm.subscribe,hm.getState,hm.getState),{motionVariants:n,component:o=Xf,portalProps:i}=t,a=Object.keys(r).map(e=>{const t=r[e];return(0,x.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:ns(e),children:(0,x.jsx)(Sm,{initial:!1,children:t.map(e=>(0,x.jsx)(o,{motionVariants:n,...e},e.id))})},e)});return(0,x.jsx)(Tm,{...i,children:a})},Bm=e=>function({children:t,theme:r=e,toastOptions:n,...o}){return(0,x.jsxs)(Y,{theme:r,...o,children:[(0,x.jsx)(Dm,{value:null==n?void 0:n.defaultOptions,children:t}),(0,x.jsx)(Nm,{...n})]})},Im=Bm(Ja),Lm=(Bm(Qa),Object.defineProperty),zm=new class{constructor(){((e,t,r)=>{((e,t,r)=>{t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r)})(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function Fm(t,r){const[n,o]=(0,e.useState)(0);return(0,e.useEffect)(()=>{const e=t.current;if(e){if(r){const t=zm.add(e);o(t)}return()=>{zm.remove(e),o(0)}}},[r,t]),n}var Hm=a(924),Vm=a(2694);function $m(t){const{isOpen:r,onClose:n,id:o,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:l,onEsc:c}=t,u=(0,e.useRef)(null),d=(0,e.useRef)(null),[p,f,m]=function(t,...r){const n=(0,e.useId)(),o=t||n;return(0,e.useMemo)(()=>r.map(e=>`${e}-${o}`),[o,r])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,r){const n=t.current;(0,e.useEffect)(()=>{if(t.current&&r)return(0,Vm.Eq)(t.current)},[r,t,n])}(u,r&&s);const h=Fm(u,r),g=(0,e.useRef)(null),v=(0,e.useCallback)(e=>{g.current=e.target},[]),b=(0,e.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==n||n()),null==c||c())},[a,n,c]),[y,x]=(0,e.useState)(!1),[w,_]=(0,e.useState)(!1),C=(0,e.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,Hm.Px)(t,u),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?f:void 0,"aria-describedby":w?m:void 0,onClick:(0,Ie.Hj)(e.onClick,e=>e.stopPropagation())}),[m,w,p,f,y]),S=(0,e.useCallback)(e=>{e.stopPropagation(),g.current===e.target&&zm.isTopModal(u.current)&&(i&&(null==n||n()),null==l||l())},[n,i,l]),j=(0,e.useCallback)((e={},t=null)=>({...e,ref:(0,Hm.Px)(t,d),onClick:(0,Ie.Hj)(e.onClick,S),onKeyDown:(0,Ie.Hj)(e.onKeyDown,b),onMouseDown:(0,Ie.Hj)(e.onMouseDown,v)}),[b,v,S]);return{isOpen:r,onClose:n,headerId:f,bodyId:m,setBodyMounted:_,setHeaderMounted:x,dialogRef:u,overlayRef:d,getDialogProps:C,getDialogContainerProps:j,index:h}}var[Um,Wm]=(0,j.q)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[qm,Zm]=(0,j.q)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Ym=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:p,lockFocusAcrossFrames:f,onCloseComplete:m}=t,h=(0,tm.o5)("Modal",t),g={...$m(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:p,lockFocusAcrossFrames:f};return(0,x.jsx)(qm,{value:g,children:(0,x.jsx)(Um,{value:h,children:(0,x.jsx)(Sm,{onExitComplete:m,children:g.isOpen&&(0,x.jsx)(Tm,{...r,children:n})})})})};Ym.displayName="Modal";var Gm=a(7808),[Xm,Km]=(0,j.q)(),Jm={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function Qm(e){var t;const{isOpen:r,onClose:n,placement:o="right",children:i,...a}=e,s=(0,Gm.D)(),l=null==(t=s.components)?void 0:t.Drawer,c=function(e,t){var r,n;if(e)return null!=(n=null==(r=Jm[e])?void 0:r[t])?n:e}(o,s.direction);return(0,x.jsx)(Xm,{value:{placement:c},children:(0,x.jsx)(Ym,{isOpen:r,onClose:n,styleConfig:l,...a,children:i})})}var eh={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},th={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},rh={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},nh={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},oh={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function ih(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return rh;case"left":return th;case"bottom":return oh;case"top":return nh}}var ah={enter:{duration:.2,ease:eh.easeOut},exit:{duration:.1,ease:eh.easeIn}},sh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),lh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),ch={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:sh(ah.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:lh(ah.exit,r),transitionEnd:null==t?void 0:t.exit}}},uh={initial:"exit",animate:"enter",exit:"exit",variants:ch},dh=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,className:o,transition:i,transitionEnd:a,delay:s,...l}=e,c=n||r?"enter":"exit",u=!r||n&&r,d={transition:i,transitionEnd:a,delay:s};return(0,x.jsx)(Sm,{custom:d,children:u&&(0,x.jsx)(Zf.div,{ref:t,className:(0,Ie.cx)("chakra-fade",o),custom:d,...uh,animate:c,...l})})});dh.displayName="Fade";var ph=(0,Yf.B)(Zf.div),fh=(0,em.R)((e,t)=>{const{className:r,transition:n,motionProps:o,...i}=e,a=(0,Ie.cx)("chakra-modal__overlay",r),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Wm().overlay},{motionPreset:l}=Zm(),c=o||("none"===l?{}:uh);return(0,x.jsx)(ph,{...c,__css:s,ref:t,className:a,...i})});function mh(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}fh.displayName="ModalOverlay";var hh=a(4320),gh="data-focus-lock",vh="data-focus-lock-disabled",bh=a(2098),yh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},xh=a(8555),wh=(0,xh.C)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),_h=(0,xh.C)(),Ch=(0,xh.C)(),Sh=(0,xh.f)({async:!0,ssr:"undefined"!=typeof document}),jh=(0,e.createContext)(void 0),kh=[],Rh=(0,e.forwardRef)(function(t,n){var o,i=(0,e.useState)(),a=i[0],s=i[1],l=(0,e.useRef)(),c=(0,e.useRef)(!1),u=(0,e.useRef)(null),d=(0,e.useState)({})[1],p=t.children,f=t.disabled,m=void 0!==f&&f,h=t.noFocusGuards,g=void 0!==h&&h,v=t.persistentFocus,b=void 0!==v&&v,y=t.crossFrame,x=void 0===y||y,w=t.autoFocus,_=void 0===w||w,C=(t.allowTextSelection,t.group),S=t.className,j=t.whiteList,k=t.hasPositiveIndices,R=t.shards,E=void 0===R?kh:R,A=t.as,O=void 0===A?"div":A,P=t.lockProps,T=void 0===P?{}:P,D=t.sideCar,M=t.returnFocus,N=void 0!==M&&M,B=t.focusOptions,I=t.onActivation,L=t.onDeactivation,z=(0,e.useState)({})[0],F=(0,e.useCallback)(function(e){var t=e.captureFocusRestore;if(!u.current){var r,n=null==(r=document)?void 0:r.activeElement;u.current=n,n!==document.body&&(u.current=t(n))}l.current&&I&&I(l.current),c.current=!0,d()},[I]),H=(0,e.useCallback)(function(){c.current=!1,L&&L(l.current),d()},[L]),V=(0,e.useCallback)(function(e){var t=u.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof N?N(r):N;if(n){var o="object"==typeof n?n:void 0;u.current=null,e?Promise.resolve().then(function(){return r.focus(o)}):r.focus(o)}}},[N]),$=(0,e.useCallback)(function(e){c.current&&wh.useMedium(e)},[]),U=_h.useMedium,W=(0,e.useCallback)(function(e){l.current!==e&&(l.current=e,s(e))},[]),q=(0,hh.A)(((o={})[vh]=m&&"disabled",o[gh]=C,o),T),Z=!0!==g,Y=Z&&"tail"!==g,G=(0,bh.S)([n,W]),X=(0,e.useMemo)(function(){return{observed:l,shards:E,enabled:!m,get active(){return c.current}}},[m,c,E,l]);return r().createElement(e.Fragment,null,Z&&[r().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:yh}),k?r().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:yh}):null],!m&&r().createElement(D,{id:z,sideCar:Sh,observed:a,disabled:m,persistentFocus:b,crossFrame:x,autoFocus:_,whiteList:j,shards:E,onActivation:F,onDeactivation:H,returnFocus:V,focusOptions:B,noFocusGuards:g}),r().createElement(O,(0,hh.A)({ref:G},q,{className:S,onBlur:U,onFocus:$}),r().createElement(jh.Provider,{value:X},p)),Y&&r().createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:yh}))});Rh.propTypes={};const Eh=Rh;function Ah(e,t){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ah(e,t)}function Oh(e){return Oh="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},Oh(e)}function Ph(e){var t=function(e){if("object"!=Oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Oh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oh(t)?t:t+""}function Th(e,t,r){return(t=Ph(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dh=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Mh=function(e){return Array.isArray(e)?e:[e]},Nh=function(e){return Array.isArray(e)?e[0]:e},Bh=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Ih=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Lh=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||Ih(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(Bh(e))}(t,Lh.bind(void 0,e));return e.set(t,n),n},zh=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!Ih(e))||!!$h(e)&&t(Bh(e))}(t,zh.bind(void 0,e));return e.set(t,n),n},Fh=function(e){return e.dataset},Hh=function(e){return"INPUT"===e.tagName},Vh=function(e){return Hh(e)&&"radio"===e.type},$h=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},Uh=function(e){var t;return Boolean(e&&(null===(t=Fh(e))||void 0===t?void 0:t.focusGuard))},Wh=function(e){return!Uh(e)},qh=function(e){return Boolean(e)},Zh=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),o=r-n,i=e.index-t.index;if(o){if(!r)return 1;if(!n)return-1}return o||i},Yh=function(e,t,r){return Dh(e).map(function(e,t){var n=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:r&&-1===n?(e.dataset||{}).focusGuard?0:-1:n}}).filter(function(e){return!t||e.tabIndex>=0}).sort(Zh)},Gh=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Xh="".concat(Gh,", [data-focus-guard]"),Kh=function(e,t){return Dh((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?Xh:Gh)?[r]:[],Kh(r))},[])},Jh=function(e,t){return e.reduce(function(e,r){var n,o=Kh(r,t),i=(n=[]).concat.apply(n,o.map(function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Jh([e.contentDocument.body],t):[e]}(e,t)}));return e.concat(i,r.parentNode?Dh(r.parentNode.querySelectorAll(Gh)).filter(function(e){return e===r}):[])},[])},Qh=function(e,t){return Dh(e).filter(function(e){return Lh(t,e)}).filter(function(e){return function(e){return!((Hh(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)})},eg=function(e,t){return void 0===t&&(t=new Map),Dh(e).filter(function(e){return zh(t,e)})},tg=function(e,t,r){return Yh(Qh(Jh(e,r),t),!0,r)},rg=function(e,t){return Yh(Qh(Jh(e),t),!1)},ng=function(e,t){return e.shadowRoot?ng(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Dh(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&ng(n,t)}return ng(e,t)})},og=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?og(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?og(t.contentWindow.document):t}},ig=function(e){return e.parentNode?ig(e.parentNode):e},ag=function(e){return Mh(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(gh);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})}(Dh(ig(t).querySelectorAll("[".concat(gh,'="').concat(r,'"]:not([').concat(vh,'="disabled"])')))):[t]),e},[])},sg=function(e,t){return void 0===t&&(t=og(Nh(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&ag(e).some(function(e){return ng(e,t)||function(e,t){return Boolean(Dh(e.querySelectorAll("iframe")).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,t)})},lg=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},cg=function(e,t){return Vh(e)&&e.name?function(e,t){return t.filter(Vh).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},ug=function(e){return e[0]&&e.length>1?cg(e[0],e):e[0]},dg=function(e,t){return e.indexOf(cg(t,e))},pg="NEW_FOCUS",fg=function(e,t,r){var n,o=e.map(function(e){return e.node}),i=eg(o.filter((n=r,function(e){var t,r=null===(t=Fh(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return i&&i.length?ug(i):ug(eg(t))},mg=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&mg(e.parentNode.host||e.parentNode,t),t},hg=function(e,t){for(var r=mg(e),n=mg(t),o=0;o<r.length;o+=1){var i=r[o];if(n.indexOf(i)>=0)return i}return!1},gg=function(e,t,r){var n=Mh(e),o=Mh(t),i=n[0],a=!1;return o.filter(Boolean).forEach(function(e){a=hg(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=hg(i,e);t&&(a=!a||ng(t,a)?t:hg(t,a))})}),a},vg=function(e,t){return e.reduce(function(e,r){return e.concat(function(e,t){return Qh((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),Dh(r).map(function(e){return Jh([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var r}(r,t))},[])},bg=function(e,t){var r=og(Mh(e).length>0?document:Nh(e).ownerDocument),n=ag(e).filter(Wh),o=gg(r||e,e,n),i=new Map,a=rg(n,i),s=a.filter(function(e){var t=e.node;return Wh(t)});if(s[0]){var l,c,u,d=rg([o],i).map(function(e){return e.node}),p=(l=d,c=s,u=new Map,c.forEach(function(e){return u.set(e.node,e)}),l.map(function(e){return u.get(e)}).filter(qh)),f=p.map(function(e){return e.node}),m=p.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),h=function(e,t,r,n,o){var i=e.length,a=e[0],s=e[i-1],l=Uh(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?r.indexOf(n):-1,u=o?r.indexOf(o):c,d=o?e.indexOf(o):-1;if(-1===c)return-1!==d?d:pg;if(-1===d)return pg;var p,f,m=c-u,h=r.indexOf(a),g=r.indexOf(s),v=(p=r,f=new Set,p.forEach(function(e){return f.add(cg(e,p))}),p.filter(function(e){return f.has(e)})),b=void 0!==n?v.indexOf(n):-1,y=o?v.indexOf(o):b,x=v.filter(function(e){return e.tabIndex>=0}),w=void 0!==n?x.indexOf(n):-1,_=o?x.indexOf(o):w,C=w>=0&&_>=0?_-w:y-b;if(!m&&d>=0)return d;if(0===t.length)return d;var S=dg(e,t[0]),j=dg(e,t[t.length-1]);return c<=h&&l&&Math.abs(m)>1?j:c>=g&&l&&Math.abs(m)>1?S:m&&Math.abs(C)>1?d:c<=h?j:c>g?S:m?Math.abs(m)>1?d:(i+d+m)%i:void 0}}(f,m,d,r,t);if(h===pg){var g=fg(a,m,vg(n,i))||fg(a,f,vg(n,i));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===h?h:p[h]}},yg=0,xg=!1,wg=function(e,t,r){void 0===r&&(r={});var n=bg(e,t);if(!xg&&n){if(yg>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),xg=!0,void setTimeout(function(){xg=!1},1);yg++,lg(n.node,r.focusOptions),yg--}};function _g(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Cg=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:_g(r),parent:_g(r.parentElement),left:_g(r.previousElementSibling),right:_g(r.nextElementSibling)}),r=r.parentElement;return{element:_g(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,r,n,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,c=0,u=a;c<u.length;c++){var d=u[c],p=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(p&&s.contains(p)){for(var f=null===(r=d.left)||void 0===r?void 0:r.call(d),m=d.current(),h=p.contains(m)?m:void 0,g=null===(n=d.right)||void 0===n?void 0:n.call(d),v=tg([p],l),b=null!==(i=null!==(o=null!=h?h:null==f?void 0:f.nextElementSibling)&&void 0!==o?o:g)&&void 0!==i?i:f;b;){for(var y=0,x=v;y<x.length;y++){var w=x[y];if(null==b?void 0:b.contains(w.node))return w.node}b=b.nextElementSibling}if(v.length)return v[0].node}}}(t)}},Sg=function(e,t,r){void 0===t&&(t={});var n=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=Mh(t);if(n.every(function(t){return!ng(t,e)}))return console.error("Active element is not contained in the scope"),{};var o=r?tg(n,new Map):rg(n,new Map),i=o.findIndex(function(t){return t.node===e});return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,n.scope,n.onlyTabbable);if(o){var i=r(o,n.cycle);i&&lg(i.node,n.focusOptions)}},jg=function(e,t,r){var n,o,i,a,s=(o=e,i=null===(n=t.onlyTabbable)||void 0===n||n,{first:(a=i?tg(Mh(o),new Map):rg(Mh(o),new Map))[0],last:a[a.length-1]})[r];s&&lg(s.node,t.focusOptions)};function kg(e){setTimeout(e,1)}var Rg=function(e){return e&&"current"in e?e.current:e},Eg=function(){return document&&document.activeElement===document.body},Ag=null,Og=null,Pg=function(){return null},Tg=null,Dg=!1,Mg=!1,Ng=function(){return!0};function Bg(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var Ig=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Lg=function(e){return rg(e,new Map)},zg=function(){var e,t,r,n,o,i,a,s=!1;if(Ag){var l=Ag,c=l.observed,u=l.persistentFocus,d=l.autoFocus,p=l.shards,f=l.crossFrame,m=l.focusOptions,h=l.noFocusGuards,g=c||Tg&&Tg.portaledElement;if(Eg()&&Og&&Og!==document.body&&(!document.body.contains(Og)||!Lg([(a=Og).parentNode]).some(function(e){return e.node===a}))){var v=Pg();v&&v.focus()}var b=document&&document.activeElement;if(g){var y=[g].concat(p.map(Rg).filter(Boolean));if(b&&!function(e){return(Ag.whiteList||Ng)(e)}(b)||(u||function(){if(!(f?Boolean(Dg):"meanwhile"===Dg)||!h||!Og||Mg)return!1;var e=Lg(y),t=e.findIndex(function(e){return e.node===Og});return 0===t||t===e.length-1}()||!(Eg()||function(e){void 0===e&&(e=document);var t=og(e);return!!t&&Dh(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return ng(e,t)})}())||!Og&&d)&&(g&&!(sg(y)||b&&function(e,t){return t.some(function(t){return Ig(e,t,t)})}(b,y)||(i=b,Tg&&Tg.portaledElement===i))&&(document&&!Og&&b&&!d?(b.blur&&b.blur(),document.body.focus()):(s=wg(y,Og,{focusOptions:m}),Tg={})),(Og=document&&document.activeElement)!==document.body&&(Pg=Cg(Og)),Dg=!1),document&&b!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var x=document&&document.activeElement,w=(t=ag(e=y).filter(Wh),r=gg(e,e,t),n=Yh(Jh([r],!0),!0,!0),o=Jh(t,!1),n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Uh(t)}})),_=w.map(function(e){return e.node}).indexOf(x);_>-1&&(w.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),Bg(_,w.length,1,w),Bg(_,-1,-1,w))}}}return s},Fg=function(e){zg()&&e&&(e.stopPropagation(),e.preventDefault())},Hg=function(){return kg(zg)},Vg=function(){Mg=!0},$g=function(){Mg=!1,Dg="just",kg(function(){Dg="meanwhile"})},Ug={moveFocusInside:wg,focusInside:sg,focusNextElement:function(e,t){void 0===t&&(t={}),Sg(e,t,function(e,t){var r=e.next,n=e.first;return r||t&&n})},focusPrevElement:function(e,t){void 0===t&&(t={}),Sg(e,t,function(e,t){var r=e.prev,n=e.last;return r||t&&n})},focusFirstElement:function(e,t){void 0===t&&(t={}),jg(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),jg(e,t,"last")},captureFocusRestore:Cg};wh.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(Tg={observerNode:r,portaledElement:t})}),_h.assignMedium(Hg),Ch.assignMedium(function(e){return e(Ug)});const Wg=(qg=function(e){return e.filter(function(e){return!e.disabled})},Zg=function(e){var t=e.slice(-1)[0];t&&!Ag&&(document.addEventListener("focusin",Fg),document.addEventListener("focusout",Hg),window.addEventListener("focus",Vg),window.addEventListener("blur",$g));var r=Ag,n=r&&t&&t.id===r.id;Ag=t,r&&!n&&(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(Og=null,n&&r.observed===t.observed||t.onActivation(Ug),zg(),kg(zg)):(document.removeEventListener("focusin",Fg),document.removeEventListener("focusout",Hg),window.removeEventListener("focus",Vg),window.removeEventListener("blur",$g),Og=null)},function(t){var n,o=[];function i(){n=qg(o.map(function(e){return e.props})),Zg(n)}var a=function(e){var a,s;function l(){return e.apply(this,arguments)||this}s=e,(a=l).prototype=Object.create(s.prototype),a.prototype.constructor=a,Ah(a,s),l.peek=function(){return n};var c=l.prototype;return c.componentDidMount=function(){o.push(this),i()},c.componentDidUpdate=function(){i()},c.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},c.render=function(){return r().createElement(t,this.props)},l}(e.PureComponent);return Th(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(t)+")"),a})(function(){return null});var qg,Zg,Yg=(0,e.forwardRef)(function(e,t){return r().createElement(Eh,(0,hh.A)({sideCar:Wg,ref:t},e))}),Gg=Eh.propTypes||{};Gg.sideCar,mh(Gg,["sideCar"]),Yg.propTypes={};const Xg=Yg;function Kg(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Jg(e){var t;return!!Kg(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function Qg(e){return Kg(e)?e.ownerDocument:document}var ev=e=>e.hasAttribute("tabindex");function tv(e){return!(!e.parentElement||!tv(e.parentElement))||e.hidden}function rv(e){if(!Jg(e)||tv(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||ev(e)}var nv,ov=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();var iv=null!=(nv=Xg.default)?nv:Xg,av=t=>{const{initialFocusRef:r,finalFocusRef:n,contentRef:o,restoreFocus:i,children:a,isDisabled:s,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=t,d=(0,e.useCallback)(()=>{(null==r?void 0:r.current)?r.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(ov));return t.unshift(e),t.filter(e=>rv(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e))}(o.current).length&&requestAnimationFrame(()=>{var e;null==(e=o.current)||e.focus()})},[r,o]),p=(0,e.useCallback)(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]),f=i&&!n;return(0,x.jsx)(iv,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:s,onActivation:d,onDeactivation:p,returnFocus:f,children:a})};av.displayName="FocusLock";var sv=a(1);function lv(t){const{autoFocus:r,trapFocus:n,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:p}=Zm(),[f,m]=ls();(0,e.useEffect)(()=>{!f&&m&&setTimeout(m)},[f,m]);const h=Fm(o,p);return(0,x.jsx)(av,{autoFocus:r,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:o,lockFocusAcrossFrames:d,children:(0,x.jsx)(sv.A,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===h&&a,forwardProps:!0,children:t.children})})}var cv={exit:{duration:.15,ease:eh.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},uv={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var o;const{exit:i}=ih({direction:e});return{...i,transition:null!=(o=null==t?void 0:t.exit)?o:lh(cv.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var o;const{enter:i}=ih({direction:e});return{...i,transition:null!=(o=null==r?void 0:r.enter)?o:sh(cv.enter,n),transitionEnd:null==t?void 0:t.enter}}},dv=(0,e.forwardRef)(function(e,t){const{direction:r="right",style:n,unmountOnExit:o,in:i,className:a,transition:s,transitionEnd:l,delay:c,motionProps:u,...d}=e,p=ih({direction:r}),f=Object.assign({position:"fixed"},p.position,n),m=!o||i&&o,h=i||o?"enter":"exit",g={transitionEnd:l,transition:s,direction:r,delay:c};return(0,x.jsx)(Sm,{custom:g,children:m&&(0,x.jsx)(Zf.div,{...d,ref:t,initial:"exit",className:(0,Ie.cx)("chakra-slide",a),animate:h,exit:"exit",custom:g,variants:uv,style:f,...u})})});dv.displayName="Slide";var pv=(0,Yf.B)(dv),fv=(0,em.R)((e,t)=>{const{className:r,children:n,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=Zm(),u=s(a,t),d=l(i),p=(0,Ie.cx)("chakra-modal__content",r),f=Wm(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:g}=Km();return(0,x.jsx)(lv,{children:(0,x.jsx)(Yf.B.div,{...d,className:"chakra-modal__content-container",__css:h,children:(0,x.jsx)(pv,{motionProps:o,direction:g,in:c,className:p,...u,__css:m,children:n})})})});fv.displayName="DrawerContent";var mv=(0,em.R)((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:i}=Zm(),a=(0,Ie.cx)("chakra-modal__close-btn",n),s=Wm();return(0,x.jsx)(mm,{ref:t,__css:s.closeButton,className:a,onClick:(0,Ie.Hj)(r,e=>{e.stopPropagation(),i()}),...o})});mv.displayName="ModalCloseButton";var hv=(0,em.R)((t,r)=>{const{className:n,...o}=t,{headerId:i,setHeaderMounted:a}=Zm();(0,e.useEffect)(()=>(a(!0),()=>a(!1)),[a]);const s=(0,Ie.cx)("chakra-modal__header",n),l={flex:0,...Wm().header};return(0,x.jsx)(Yf.B.header,{ref:r,className:s,id:i,...o,__css:l})});hv.displayName="ModalHeader";var gv=(0,em.R)((t,r)=>{const{className:n,...o}=t,{bodyId:i,setBodyMounted:a}=Zm();(0,e.useEffect)(()=>(a(!0),()=>a(!1)),[a]);const s=(0,Ie.cx)("chakra-modal__body",n),l=Wm();return(0,x.jsx)(Yf.B.div,{ref:r,className:s,id:i,...o,__css:l.body})});gv.displayName="ModalBody";var vv=(0,em.R)(function(e,t){const{className:r,centerContent:n,...o}=(0,O.MN)(e),i=(0,tm.Vl)("Container",e);return(0,x.jsx)(Yf.B.div,{ref:t,className:(0,Ie.cx)("chakra-container",r),...o,__css:{...i,...n&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});vv.displayName="Container";var bv="popstate";function yv(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}function p(e){return function(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),xv(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:Sv(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let f={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(bv,d),l=e,()=>{o.removeEventListener(bv,d),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=Cv(f.location,e,t);r&&r(n,e),c=u()+1;let d=_v(n,c),p=f.createHref(n);try{a.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}i&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let n=Cv(f.location,e,t);r&&r(n,e),c=u();let o=_v(n,c),d=f.createHref(n);a.replaceState(o,"",d),i&&l&&l({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=jv(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),Cv("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:Sv(t))},function(e,t){wv("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function xv(e,t){if(!1===e||null==e)throw new Error(t)}function wv(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function _v(e,t){return{usr:e.state,key:e.key,idx:t}}function Cv(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?jv(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function Sv({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function jv(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function kv(e,t,r="/"){return function(e,t,r,n){let o=Fv(("string"==typeof t?jv(t):t).pathname||"/",r);if(null==o)return null;let i=Rv(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=zv(o);a=Iv(i[e],t,n)}return a}(e,t,r,!1)}function Rv(e,t=[],r=[],n="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;xv(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=qv([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(xv(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Rv(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:Bv(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of Ev(e.path))i(e,t,!0,r);else i(e,t)}),t}function Ev(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=Ev(n.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var Av=/^:[\w-]+$/,Ov=3,Pv=2,Tv=1,Dv=10,Mv=-2,Nv=e=>"*"===e;function Bv(e,t){let r=e.split("/"),n=r.length;return r.some(Nv)&&(n+=Mv),t&&(n+=Pv),r.filter(e=>!Nv(e)).reduce((e,t)=>e+(Av.test(t)?Ov:""===t?Tv:Dv),n)}function Iv(e,t,r=!1){let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=Lv({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=Lv({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:qv([i,u.pathname]),pathnameBase:Zv(qv([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=qv([i,u.pathnameBase]))}return a}function Lv(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){wv("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function zv(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return wv(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fv(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var Hv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Vv(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function $v(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Uv(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function Wv(e,t,r,n=!1){let o;"string"==typeof e?o=jv(e):(o={...e},xv(!o.pathname||!o.pathname.includes("?"),$v("?","pathname","search",o)),xv(!o.pathname||!o.pathname.includes("#"),$v("#","pathname","hash",o)),xv(!o.search||!o.search.includes("#"),$v("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:i=""}="string"==typeof e?jv(e):e;if(n)if(a=n,Hv.test(a))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),wv(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?Vv(n.substring(1),"/"):Vv(n,t)}else r=t;var a;return{pathname:r,search:Yv(o),hash:Gv(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var qv=e=>e.join("/").replace(/\/\/+/g,"/"),Zv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yv=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Gv=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Xv=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Kv(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Jv(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Qv="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function eb(e,t){let r=e;if("string"!=typeof r||!Hv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Qv)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),i=Fv(n.pathname,t);n.origin===e.origin&&null!=i?r=i+n.search+n.hash:o=!0}catch(e){wv(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tb=["POST","PUT","PATCH","DELETE"],rb=(new Set(tb),["GET",...tb]);new Set(rb),Symbol("ResetLoaderData");var nb=e.createContext(null);nb.displayName="DataRouter";var ob=e.createContext(null);ob.displayName="DataRouterState";var ib=e.createContext(!1);var ab=e.createContext({isTransitioning:!1});ab.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var sb=e.createContext(null);sb.displayName="Navigation";var lb=e.createContext(null);lb.displayName="Location";var cb=e.createContext({outlet:null,matches:[],isDataRoute:!1});cb.displayName="Route";var ub=e.createContext(null);ub.displayName="RouteError";var db="REACT_ROUTER_ERROR";function pb(){return null!=e.useContext(lb)}function fb(){return xv(pb(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(lb).location}var mb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hb(t){e.useContext(sb).static||e.useLayoutEffect(t)}function gb(){let{isDataRoute:t}=e.useContext(cb);return t?function(){let{router:t}=function(t){let r=e.useContext(nb);return xv(r,jb(t)),r}("useNavigate"),r=kb("useNavigate"),n=e.useRef(!1);hb(()=>{n.current=!0});let o=e.useCallback(async(e,o={})=>{wv(n.current,mb),n.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:r,...o}))},[t,r]);return o}():function(){xv(pb(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(nb),{basename:r,navigator:n}=e.useContext(sb),{matches:o}=e.useContext(cb),{pathname:i}=fb(),a=JSON.stringify(Uv(o)),s=e.useRef(!1);hb(()=>{s.current=!0});let l=e.useCallback((e,o={})=>{if(wv(s.current,mb),!s.current)return;if("number"==typeof e)return void n.go(e);let l=Wv(e,JSON.parse(a),i,"path"===o.relative);null==t&&"/"!==r&&(l.pathname="/"===l.pathname?r:qv([r,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[r,n,a,i,t]);return l}()}function vb(t,{relative:r}={}){let{matches:n}=e.useContext(cb),{pathname:o}=fb(),i=JSON.stringify(Uv(n));return e.useMemo(()=>Wv(t,JSON.parse(i),o,"path"===r),[t,i,o,r])}function bb(t,r,n,o,i){xv(pb(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=e.useContext(sb),{matches:s}=e.useContext(cb),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";Eb(u,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,m=fb();if(r){let e="string"==typeof r?jv(r):r;xv("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=m;let h=f.pathname||"/",g=h;if("/"!==d){let e=d.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=kv(t,{pathname:g});wv(p||null!=v,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),wv(null==v||void 0!==v[v.length-1].route.element||void 0!==v[v.length-1].route.Component||void 0!==v[v.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(t,r=[],n=null,o=null){if(null==t){if(!n)return null;if(n.errors)t=n.matches;else{if(0!==r.length||n.initialized||!(n.matches.length>0))return null;t=n.matches}}let i=t,a=n?.errors;if(null!=a){let e=i.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);xv(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}let c=n&&o?(e,t)=>{o(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Jv(n.matches),errorInfo:t})}:void 0;return i.reduceRight((t,o,u)=>{let d,p=!1,f=null,m=null;n&&(d=a&&o.route.id?a[o.route.id]:void 0,f=o.route.errorElement||xb,s&&(l<0&&0===u?(Eb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===u&&(p=!0,m=o.route.hydrateFallbackElement||null)));let h=r.concat(i.slice(0,u+1)),g=()=>{let r;return r=d?f:p?m:o.route.Component?e.createElement(o.route.Component,null):o.route.element?o.route.element:t,e.createElement(Sb,{match:o,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===u)?e.createElement(wb,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:c}):g()},null)}(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:qv([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:qv([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,n,o,i);return r&&b?e.createElement(lb.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function yb(){let t=function(){let t=e.useContext(ub),r=function(t){let r=e.useContext(ob);return xv(r,jb(t)),r}("useRouteError"),n=kb("useRouteError");return void 0!==t?t:r.errors?.[n]}(),r=Kv(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:a},"ErrorBoundary")," or"," ",e.createElement("code",{style:a},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:i},n):null,s)}e.createContext(null);var xb=e.createElement(yb,null),wb=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let t=this.state.error;if(this.context&&"object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){const e=function(e){if(e.startsWith(`${db}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new Xv(t.status,t.statusText,t.data)}catch{}}(t.digest);e&&(t=e)}let r=void 0!==t?e.createElement(cb.Provider,{value:this.props.routeContext},e.createElement(ub.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?e.createElement(Cb,{error:t},r):r}};wb.contextType=ib;var _b=new WeakMap;function Cb({children:t,error:r}){let{basename:n}=e.useContext(sb);if("object"==typeof r&&r&&"digest"in r&&"string"==typeof r.digest){let t=function(e){if(e.startsWith(`${db}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(r.digest);if(t){let o=_b.get(r);if(o)throw o;let i=eb(t.location,n);if(Qv&&!_b.get(r)){if(!i.isExternal&&!t.reloadDocument){const e=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:t.replace}));throw _b.set(r,e),e}window.location.href=i.absoluteURL||i.to}return e.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function Sb({routeContext:t,match:r,children:n}){let o=e.useContext(nb);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(cb.Provider,{value:t},n)}function jb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kb(t){let r=function(t){let r=e.useContext(cb);return xv(r,jb(t)),r}(t),n=r.matches[r.matches.length-1];return xv(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}var Rb={};function Eb(e,t,r){t||Rb[e]||(Rb[e]=!0,wv(!1,r))}function Ab(e){xv(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ob({basename:t="/",children:r=null,location:n,navigationType:o="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){xv(!pb(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=e.useMemo(()=>({basename:l,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[l,i,a,s]);"string"==typeof n&&(n=jv(n));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:m="default"}=n,h=e.useMemo(()=>{let e=Fv(u,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:f,key:m},navigationType:o}},[l,u,d,p,f,m,o]);return wv(null!=h,`<Router basename="${l}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:e.createElement(sb.Provider,{value:c},e.createElement(lb.Provider,{children:r,value:h}))}function Pb({children:e,location:t}){return bb(Tb(e),t)}function Tb(t,r=[]){let n=[];return e.Children.forEach(t,(t,o)=>{if(!e.isValidElement(t))return;let i=[...r,o];if(t.type===e.Fragment)return void n.push.apply(n,Tb(t.props.children,i));xv(t.type===Ab,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xv(!t.props.index||!t.props.children,"An index route cannot have child routes.");let a={id:t.props.id||i.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Tb(t.props.children,i)),n.push(a)}),n}t.useOptimistic,e.memo(function({routes:e,future:t,state:r,onError:n}){return bb(e,void 0,r,n,t)}),e.Component;var Db="get",Mb="application/x-www-form-urlencoded";function Nb(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Bb=null,Ib=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lb(e){return null==e||Ib.has(e)?e:(wv(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mb}"`),null)}function zb(e,t){if(!1===e||null==e)throw new Error(t)}function Fb(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Hb(e,t,r,n,o,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Vb(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function $b(){let t=e.useContext(nb);return zb(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Ub(){let t=e.useContext(ob);return zb(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Wb=e.createContext(void 0);function qb(){let t=e.useContext(Wb);return zb(t,"You must render this element inside a <HydratedRouter> element"),t}function Zb(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Yb({page:t,...r}){let{router:n}=$b(),o=e.useMemo(()=>kv(n.routes,t,n.basename),[n.routes,t,n.basename]);return o?e.createElement(Xb,{page:t,matches:o,...r}):null}function Gb(t){let{manifest:r,routeModules:n}=qb(),[o,i]=e.useState([]);return e.useEffect(()=>{let e=!1;return async function(e,t,r){return function(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&(null==(i=o)||"string"!=typeof i.page)&&"script"===o.as&&o.href&&n.has(o.href))return e;var i;let a=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(a)||(r.add(a),e.push({key:a,link:o})),e},[])}((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(Fb).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(t,r,n).then(t=>{e||i(t)}),()=>{e=!0}},[t,r,n]),o}function Xb({page:t,matches:r,...n}){let o=fb(),{manifest:i,routeModules:a}=qb(),{basename:s}=$b(),{loaderData:l,matches:c}=Ub(),u=e.useMemo(()=>Hb(t,r,c,i,o,"data"),[t,r,c,i,o]),d=e.useMemo(()=>Hb(t,r,c,i,o,"assets"),[t,r,c,i,o]),p=e.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let e=new Set,n=!1;if(r.forEach(t=>{let r=i.routes[t.route.id];r&&r.hasLoader&&(!u.some(e=>e.route.id===t.route.id)&&t.route.id in l&&a[t.route.id]?.shouldRevalidate||r.hasClientLoader?n=!0:e.add(t.route.id))}),0===e.size)return[];let c=function(e,t,r){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===Fv(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}(t,s,"data");return n&&e.size>0&&c.searchParams.set("_routes",r.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,l,o,i,u,r,t,a]),f=e.useMemo(()=>Vb(d,i),[d,i]),m=Gb(d);return e.createElement(e.Fragment,null,p.map(t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...n})),f.map(t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...n})),m.map(({key:t,link:r})=>e.createElement("link",{key:t,nonce:n.nonce,...r})))}Wb.displayName="FrameworkContext";function Kb(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}e.Component;var Jb="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Jb&&(window.__reactRouterVersion="7.11.0")}catch(hj){}function Qb({basename:t,children:r,unstable_useTransitions:n,window:o}){let i=e.useRef();null==i.current&&(i.current=yv({window:o,v5Compat:!0}));let a=i.current,[s,l]=e.useState({action:a.action,location:a.location}),c=e.useCallback(t=>{!1===n?l(t):e.startTransition(()=>l(t))},[n]);return e.useLayoutEffect(()=>a.listen(c),[a,c]),e.createElement(Ob,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:n})}var ey=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ty=e.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p,...f},m){let{basename:h,unstable_useTransitions:g}=e.useContext(sb),v="string"==typeof c&&ey.test(c),b=eb(c,h),y=function(t,{relative:r}={}){xv(pb(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=e.useContext(sb),{hash:i,pathname:a,search:s}=vb(t,{relative:r}),l=a;return"/"!==n&&(l="/"===a?n:qv([n,a])),o.createHref({pathname:l,search:s,hash:i})}(c=b.to,{relative:o}),[x,w,_]=function(t,r){let n=e.useContext(Wb),[o,i]=e.useState(!1),[a,s]=e.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=r,f=e.useRef(null);e.useEffect(()=>{if("render"===t&&s(!0),"viewport"===t){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[t]),e.useEffect(()=>{if(o){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[o]);let m=()=>{i(!0)},h=()=>{i(!1),s(!1)};return n?"intent"!==t?[a,f,{}]:[a,f,{onFocus:Zb(l,m),onBlur:Zb(c,h),onMouseEnter:Zb(u,m),onMouseLeave:Zb(d,h),onTouchStart:Zb(p,m)}]:[!1,f,{}]}(n,f),C=function(t,{target:r,replace:n,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=gb(),d=fb(),p=vb(t,{relative:a});return e.useCallback(f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,r)){f.preventDefault();let r=void 0!==n?n:Sv(d)===Sv(p),m=()=>u(t,{replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l});c?e.startTransition(()=>m()):m()}},[d,u,p,n,o,r,t,i,a,s,l,c])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}),S=e.createElement("a",{...f,..._,href:b.absoluteURL||y,onClick:b.isExternal||i?t:function(e){t&&t(e),e.defaultPrevented||C(e)},ref:Kb(m,w),target:l,"data-discover":v||"render"!==r?void 0:"true"});return x&&!v?e.createElement(e.Fragment,null,S,e.createElement(Yb,{page:y})):S});ty.displayName="Link";var ry=e.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let d=vb(a,{relative:c.relative}),p=fb(),f=e.useContext(ob),{navigator:m,basename:h}=e.useContext(sb),g=null!=f&&function(t,{relative:r}={}){let n=e.useContext(ab);xv(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=oy("useViewTransitionState"),i=vb(t,{relative:r});if(!n.isTransitioning)return!1;let a=Fv(n.currentLocation.pathname,o)||n.currentLocation.pathname,s=Fv(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=Lv(i.pathname,s)||null!=Lv(i.pathname,a)}(d)&&!0===s,v=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=p.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(b=b.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&h&&(y=Fv(y,h)||y);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let w,_=b===v||!o&&b.startsWith(v)&&"/"===b.charAt(x),C=null!=y&&(y===v||!o&&y.startsWith(v)&&"/"===y.charAt(v.length)),S={isActive:_,isPending:C,isTransitioning:g},j=_?t:void 0;w="function"==typeof n?n(S):[n,_?"active":null,C?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof i?i(S):i;return e.createElement(ty,{...c,"aria-current":j,className:w,ref:u,style:k,to:a,viewTransition:s},"function"==typeof l?l(S):l)});ry.displayName="NavLink";var ny=e.forwardRef(({discover:t="render",fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:a,method:s=Db,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...m},h)=>{let{unstable_useTransitions:g}=e.useContext(sb),v=function(){let{router:t}=oy("useSubmit"),{basename:r}=e.useContext(sb),n=kb("useRouteId"),o=t.fetch,i=t.navigate;return e.useCallback(async(e,t={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=function(e,t){let r,n,o,i,a;if(Nb(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?Fv(a,t):null,r=e.getAttribute("method")||Db,o=Lb(e.getAttribute("enctype"))||Mb,i=new FormData(e)}else if(function(e){return Nb(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Nb(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?Fv(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Db,o=Lb(e.getAttribute("formenctype"))||Lb(a.getAttribute("enctype"))||Mb,i=new FormData(a,e),!function(){if(null===Bb)try{new FormData(document.createElement("form"),0),Bb=!1}catch(e){Bb=!0}return Bb}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(Nb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Db,n=null,o=Mb,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}(e,r);if(!1===t.navigate){let e=t.fetcherKey||ay();await o(e,n,t.action||a,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||s,formEncType:t.encType||l,flushSync:t.flushSync})}else await i(t.action||a,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||s,formEncType:t.encType||l,replace:t.replace,state:t.state,fromRouteId:n,flushSync:t.flushSync,viewTransition:t.viewTransition})},[o,i,r,n])}(),b=function(t,{relative:r}={}){let{basename:n}=e.useContext(sb),o=e.useContext(cb);xv(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),a={...vb(t||".",{relative:r})},s=fb();if(null==t){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return t&&"."!==t||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:qv([n,a.pathname])),Sv(a)}(l,{relative:u}),y="get"===s.toLowerCase()?"get":"post",x="string"==typeof l&&ey.test(l);return e.createElement("form",{ref:h,method:y,action:b,onSubmit:o?c:t=>{if(c&&c(t),t.defaultPrevented)return;t.preventDefault();let o=t.nativeEvent.submitter,l=o?.getAttribute("formmethod")||s,m=()=>v(o||t.currentTarget,{fetcherKey:r,method:l,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f});g&&!1!==n?e.startTransition(()=>m()):m()},...m,"data-discover":x||"render"!==t?void 0:"true"})});function oy(t){let r=e.useContext(nb);return xv(r,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),r}ny.displayName="Form";var iy=0,ay=()=>`__${String(++iy)}__`;var sy=a(7723);const{isPro:ly}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_;"undefined"==typeof _UR_DASHBOARD_||!_UR_DASHBOARD_.site_assistant_data||!_UR_DASHBOARD_.site_assistant_data.has_default_form||_UR_DASHBOARD_.site_assistant_data.missing_pages.length>0||!_UR_DASHBOARD_.site_assistant_data.test_email_sent||!_UR_DASHBOARD_.site_assistant_data.wordpress_login_handled||!_UR_DASHBOARD_.site_assistant_data.spam_protection_handled||_UR_DASHBOARD_.site_assistant_data.payment_setup_handled;(0,sy.__)("Site Assistant","user-registration"),(0,sy.__)("All Features","user-registration"),(0,sy.__)("Settings","user-registration"),(0,sy.__)("Help","user-registration");const cy={fix:{color:"primary.500",bgColor:"primary.100",scheme:"primary"},feature:{color:"green.500",bgColor:"green.50",scheme:"green"},new:{color:"green.500",bgColor:"green.50",scheme:"green"},enhance:{color:"teal.500",bgColor:"teal.50",scheme:"teal"},refactor:{color:"pink.500",bgColor:"pink.50",scheme:"pink"},security:{color:"pink.500",bgColor:"pink.50",scheme:"pink"},dev:{color:"orange.500",bgColor:"orange.50",scheme:"orange"},tweak:{color:"purple.500",bgColor:"purple.50",scheme:"purple"}},uy=(a.p,r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 36 36",xmlns:"https://www.w3.org/2000/svg",ref:t,...e,children:(0,x.jsx)("path",{fill:"#475BB2",fillRule:"evenodd",d:"M32.8951 2.53619C30.4998 3.94519 28.2454 5.77691 26.2728 7.74951C24.3002 9.72212 22.4685 11.9765 21.0595 14.2309C22.0458 16.2035 22.8912 18.1761 23.5957 20.2896C24.8638 17.6125 26.4137 15.2172 28.3863 13.1037V20.7123C28.3863 25.362 25.2865 29.4481 20.7777 30.7162H20.4959C20.2141 27.0528 19.3687 23.5303 18.1006 20.1487C16.2689 15.499 13.4508 11.272 9.78744 7.74951C7.81484 5.77691 5.56046 4.08609 3.16515 2.53619L2.60156 2.25437V20.5714C2.60156 28.0391 7.95574 34.5205 15.4234 35.7887H15.5644C17.2552 36.0704 18.946 36.0704 20.4959 35.7887H20.6368C28.1045 34.5205 33.4587 28.0391 33.4587 20.5714V2.25437L32.8951 2.53619ZM7.67394 20.5714V13.1037C12.0418 18.0352 14.719 24.0939 15.2826 30.5753C10.7738 29.3072 7.67394 25.2211 7.67394 20.5714ZM17.9597 0C15.8462 0 14.1554 1.69078 14.1554 3.80428C14.1554 5.91778 15.8462 7.6086 17.9597 7.6086C20.0732 7.6086 21.764 5.91778 21.764 3.80428C21.764 1.69078 20.0732 0 17.9597 0Z",clipRule:"evenodd"})}))),dy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 36 36",xmlns:"https://www.w3.org/2000/svg",ref:t,...e,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M23.293 9.96a1 1 0 0 1 1.414 0l5.333 5.332a1 1 0 0 1 0 1.415l-5.333 5.333a1 1 0 0 1-1.414-1.414L27.919 16l-4.626-4.627a1 1 0 0 1 0-1.414Zm-14.587 0a1 1 0 0 1 0 1.413L4.08 16l4.626 4.626a1 1 0 0 1-1.414 1.414L1.96 16.707a1 1 0 0 1 0-1.415L7.292 9.96a1 1 0 0 1 1.414 0Zm10.925-5.582a1 1 0 0 1 .656 1.253l-6.666 21.333a1 1 0 0 1-1.91-.597l6.667-21.333a1 1 0 0 1 1.253-.656Z",clipRule:"evenodd"})})),py=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 36 36",xmlns:"https://www.w3.org/2000/svg",ref:t,...e,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M5.408 2.742A3.667 3.667 0 0 1 8 1.668h12a1 1 0 0 1 .707.293l6.666 6.667a1 1 0 0 1 .293.707v17.333A3.667 3.667 0 0 1 24 30.335H5.334a1 1 0 1 1 0-2h18.667a1.667 1.667 0 0 0 1.666-1.667V9.748l-6.08-6.08H8a1.667 1.667 0 0 0-1.667 1.667v5.333a1 1 0 1 1-2 0V5.335c0-.973.386-1.905 1.074-2.593Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M18.666 1.668a1 1 0 0 1 1 1v5.333a1.667 1.667 0 0 0 1.667 1.667h5.333a1 1 0 0 1 0 2h-5.333a3.666 3.666 0 0 1-3.667-3.667V2.668a1 1 0 0 1 1-1ZM3.683 15.684a2.333 2.333 0 0 1 1.65-.683 1 1 0 1 1 0 2 .333.333 0 0 0-.334.333v1.334c0 .48-.148.944-.418 1.333.27.389.418.853.418 1.333v1.334a.333.333 0 0 0 .334.333 1 1 0 1 1 0 2 2.334 2.334 0 0 1-2.334-2.333v-1.334a.333.333 0 0 0-.333-.333 1 1 0 1 1 0-2 .333.333 0 0 0 .333-.333v-1.334c0-.619.246-1.212.684-1.65Zm5.983.317a1 1 0 0 1 1-1 2.333 2.333 0 0 1 2.333 2.333v1.334a.333.333 0 0 0 .334.333 1 1 0 1 1 0 2 .333.333 0 0 0-.334.333v1.334A2.333 2.333 0 0 1 10.666 25a1 1 0 1 1 0-2 .333.333 0 0 0 .333-.333v-1.334c0-.48.148-.944.419-1.333a2.334 2.334 0 0 1-.419-1.333v-1.334a.333.333 0 0 0-.333-.333 1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),fy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 18 18",xmlns:"https://www.w3.org/2000/svg",ref:t,...e,children:[(0,x.jsx)("path",{fill:"white",fillRule:"evenodd",d:"M7.33333 12.6667C10.2789 12.6667 12.6667 10.2789 12.6667 7.33333C12.6667 4.38781 10.2789 2 7.33333 2C4.38781 2 2 4.38781 2 7.33333C2 10.2789 4.38781 12.6667 7.33333 12.6667Z",stroke:"#909090",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M13.9995 14.0005L11.1328 11.1338",stroke:"#909090",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round",clipRule:"evenodd"})]})),my=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",ref:t,...e,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 9.738a2.262 2.262 0 1 0 0 4.524 2.262 2.262 0 0 0 0-4.524ZM8.833 12a3.167 3.167 0 1 1 6.334 0 3.167 3.167 0 0 1-6.334 0Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 3.405a1.192 1.192 0 0 0-1.193 1.192v.143a1.81 1.81 0 0 1-1.096 1.656.452.452 0 0 1-.154.036 1.81 1.81 0 0 1-1.904-.4l-.003-.003-.05-.05a1.194 1.194 0 1 0-1.688 1.688l.053.053a1.81 1.81 0 0 1 .368 1.983 1.81 1.81 0 0 1-1.651 1.171h-.085a1.192 1.192 0 1 0 0 2.385h.142a1.81 1.81 0 0 1 1.655 1.095 1.81 1.81 0 0 1-.363 1.994l-.003.003-.05.05a1.194 1.194 0 1 0 1.688 1.688l.053-.053a1.81 1.81 0 0 1 1.983-.368 1.81 1.81 0 0 1 1.171 1.651v.084a1.192 1.192 0 1 0 2.385 0v-.143a1.81 1.81 0 0 1 1.095-1.655 1.809 1.809 0 0 1 1.994.363l.003.003.05.05a1.194 1.194 0 1 0 1.688-1.688l-.053-.053a1.81 1.81 0 0 1-.363-1.994 1.81 1.81 0 0 1 1.655-1.094h.076a1.192 1.192 0 1 0 0-2.386h-.143a1.81 1.81 0 0 1-1.656-1.096.453.453 0 0 1-.036-.154 1.81 1.81 0 0 1 .4-1.904l.003-.003.05-.05a1.193 1.193 0 1 0-1.688-1.688l-.053.053a1.81 1.81 0 0 1-1.994.363 1.81 1.81 0 0 1-1.094-1.655v-.076A1.192 1.192 0 0 0 12 3.405Zm-1.483-.29a2.097 2.097 0 0 1 3.58 1.482v.073a.905.905 0 0 0 .549.828l.004.002a.905.905 0 0 0 .997-.18l.047-.047A2.098 2.098 0 1 1 18.66 8.24l-.047.048a.905.905 0 0 0-.18.996c.02.045.033.093.037.142a.904.904 0 0 0 .793.477h.139a2.098 2.098 0 0 1 0 4.194h-.073a.905.905 0 0 0-.828.549l-.002.004a.905.905 0 0 0 .18.997l.047.047a2.097 2.097 0 0 1-1.483 3.582 2.097 2.097 0 0 1-1.484-.615l-.048-.047a.906.906 0 0 0-.996-.18l-.004.003a.905.905 0 0 0-.549.827v.139a2.098 2.098 0 0 1-4.195 0v-.069a.905.905 0 0 0-.618-.834.906.906 0 0 0-.997.18l-.001.001-.046.046a2.097 2.097 0 0 1-3.423-.68 2.098 2.098 0 0 1 .456-2.287l.047-.048a.905.905 0 0 0 .18-.996l-.003-.004a.905.905 0 0 0-.827-.549h-.139a2.098 2.098 0 0 1 0-4.195h.069A.905.905 0 0 0 5.5 9.35a.905.905 0 0 0-.18-.997l-.047-.047A2.098 2.098 0 1 1 8.24 5.34l.048.047a.905.905 0 0 0 .996.18.453.453 0 0 1 .142-.037.905.905 0 0 0 .477-.793v-.139c0-.556.22-1.09.614-1.483Z",clipRule:"evenodd"})]})),hy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M16.425 9.576a.6.6 0 0 1 0 .848l-4 4a.6.6 0 0 1-.849-.848l4-4a.6.6 0 0 1 .849 0Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 4.6a9.4 9.4 0 0 0-8.14 14.1.6.6 0 0 1-1.04.6 10.6 10.6 0 1 1 18.36 0 .6.6 0 0 1-1.04-.6A9.4 9.4 0 0 0 12 4.6Z",clipRule:"evenodd"})]})),gy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M11.998 2.4H12a9.6 9.6 0 0 1 9.6 9.6.6.6 0 1 1-1.2 0 8.4 8.4 0 0 0-8.398-8.4A9.15 9.15 0 0 0 5.68 6.168L3.425 8.425a.6.6 0 0 1-.849-.849L4.843 5.31a10.35 10.35 0 0 1 7.155-2.91Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M3 2.4a.6.6 0 0 1 .6.6v4.4H8a.6.6 0 0 1 0 1.2H3a.6.6 0 0 1-.6-.6V3a.6.6 0 0 1 .6-.6Zm0 9a.6.6 0 0 1 .6.6 8.4 8.4 0 0 0 8.4 8.4 9.15 9.15 0 0 0 6.32-2.567l2.256-2.257a.6.6 0 0 1 .849.849l-2.268 2.267a10.35 10.35 0 0 1-7.154 2.908H12A9.6 9.6 0 0 1 2.4 12a.6.6 0 0 1 .6-.6Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M15.4 16a.6.6 0 0 1 .6-.6h5a.6.6 0 0 1 .6.6v5a.6.6 0 1 1-1.2 0v-4.4H16a.6.6 0 0 1-.6-.6Z",clipRule:"evenodd"})]})),vy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 30 28",fill:"none",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M17.295 19.794a.498.498 0 0 1-.354-.146l-4.706-4.706a.5.5 0 1 1 .707-.707l3.854 3.854V4a.5.5 0 1 1 1 0v14.085l3.85-3.85a.5.5 0 0 1 .708.707l-4.68 4.678a.5.5 0 0 1-.379.174ZM6.325 3.675a.499.499 0 0 1 .734-.028l4.706 4.706a.5.5 0 1 1-.707.707L7.204 5.206v14.09a.5.5 0 1 1-1 0V5.21l-3.85 3.85a.5.5 0 0 1-.708-.707l4.68-4.678Z"})})),by=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M7.5 22c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l8.3-8.3-8.3-8.3c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l9 9c.4.4.4 1 0 1.4l-9 9c-.2.2-.4.3-.7.3z"})})),yy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 18 18",fill:"none",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m6.75 13.5 4.5-4.5-4.5-4.5"})})),xy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",strokeWidth:"0",...e,ref:t,children:(0,x.jsx)("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})),wy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",fill:"none",...e,ref:t,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Zm1.646-7.646a.5.5 0 1 0 .707-.707L10.707 12l3.646-3.646a.5.5 0 1 0-.707-.708l-4 4a.503.503 0 0 0-.146.392c.01.115.059.228.146.316l4 4Z",clipRule:"evenodd"})})),_y=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 35 35",xmlns:"https://www.w3.org/2000/svg",fill:"none",...e,ref:t,children:[(0,x.jsx)("rect",{fillRule:"evenodd",width:"30",height:"30",rx:"15",fill:"#F4F4F4",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M20.2493 14.4164H11.1552L15.4135 10.1639C15.4679 10.1096 15.511 10.045 15.5405 9.97393C15.5699 9.90287 15.5851 9.8267 15.5851 9.74978C15.5851 9.67286 15.5699 9.5967 15.5405 9.52564C15.511 9.45457 15.4679 9.39001 15.4135 9.33562C15.3591 9.28123 15.2946 9.23808 15.2235 9.20865C15.1524 9.17921 15.0763 9.16406 14.9993 9.16406C14.844 9.16406 14.695 9.22577 14.5852 9.33562L9.33518 14.5856C9.28116 14.6404 9.23941 14.706 9.21268 14.7781C9.18279 14.8482 9.16694 14.9236 9.16602 14.9998C9.16747 15.0778 9.18329 15.155 9.21268 15.2273C9.24246 15.2944 9.28394 15.3556 9.33518 15.4081L14.5852 20.6581C14.6394 20.7128 14.7039 20.7562 14.775 20.7858C14.8461 20.8154 14.9223 20.8307 14.9993 20.8307C15.0764 20.8307 15.1526 20.8154 15.2237 20.7858C15.2948 20.7562 15.3593 20.7128 15.4135 20.6581C15.4682 20.6039 15.5116 20.5394 15.5412 20.4683C15.5708 20.3972 15.5861 20.321 15.5861 20.2439C15.5861 20.1669 15.5708 20.0907 15.5412 20.0196C15.5116 19.9485 15.4682 19.884 15.4135 19.8298L11.1552 15.5831H20.2493C20.4041 15.5831 20.5524 15.5217 20.6618 15.4123C20.7712 15.3029 20.8327 15.1545 20.8327 14.9998C20.8327 14.8451 20.7712 14.6967 20.6618 14.5873C20.5524 14.4779 20.4041 14.4164 20.2493 14.4164Z",fill:"#6B6B6B",clipRule:"evenodd"})]})),Cy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",strokeWidth:"0",...e,ref:t,children:(0,x.jsx)("path",{d:"M8 1.332a6.667 6.667 0 1 0 0 13.333A6.667 6.667 0 0 0 8 1.332Zm0 10.333a.667.667 0 1 1 0-1.333.667.667 0 0 1 0 1.333Zm.16-2.433a.793.793 0 0 1-.214.033.675.675 0 1 1-.206-1.333c.433-.147 1.333-.627 1.333-1.167a1.133 1.133 0 0 0-2.2-.38A.667.667 0 0 1 5.62 6a2.467 2.467 0 0 1 4.793.82c0 1.613-2.02 2.333-2.253 2.413Z"})})),Sy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M19.27 12.91H4.73a1.83 1.83 0 0 0-1.82 1.82v5.45A1.83 1.83 0 0 0 4.73 22h14.54a1.83 1.83 0 0 0 1.82-1.82v-5.45a1.83 1.83 0 0 0-1.82-1.82Zm0 7.27H4.73v-5.45h14.54Z"}),(0,x.jsx)("path",{d:"M7.45 18.36h9.1a.91.91 0 0 0 0-1.81h-9.1a.91.91 0 0 0 0 1.81ZM19.27 2H4.73a1.83 1.83 0 0 0-1.82 1.82v5.45a1.83 1.83 0 0 0 1.82 1.82h14.54a1.83 1.83 0 0 0 1.82-1.82V3.82A1.83 1.83 0 0 0 19.27 2Zm0 7.27H4.73V3.82h14.54Z"}),(0,x.jsx)("path",{d:"M7.45 7.45h9.1a.85.85 0 0 0 .9-.9.85.85 0 0 0-.9-.91h-9.1a.85.85 0 0 0-.9.91.85.85 0 0 0 .9.9Z"})]})),jy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 15.6a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8ZM8.4 18a3.6 3.6 0 1 1 7.2 0 3.6 3.6 0 0 1-7.2 0ZM6 3.6a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8ZM2.4 6a3.6 3.6 0 1 1 7.2 0 3.6 3.6 0 0 1-7.2 0ZM18 3.6a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8ZM14.4 6a3.6 3.6 0 1 1 7.2 0 3.6 3.6 0 0 1-7.2 0Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M6 8.4a.6.6 0 0 1 .6.6v1A1.4 1.4 0 0 0 8 11.4h8a1.4 1.4 0 0 0 1.4-1.4V9a.6.6 0 1 1 1.2 0v1a2.6 2.6 0 0 1-2.6 2.6H8A2.6 2.6 0 0 1 5.4 10V9a.6.6 0 0 1 .6-.6Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 11.4a.6.6 0 0 1 .6.6v3a.6.6 0 1 1-1.2 0v-3a.6.6 0 0 1 .6-.6Z",clipRule:"evenodd"})]})),ky=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",xmlSpace:"preserve",...e,ref:t,children:(0,x.jsx)("path",{d:"m20.1 8.8.9-.9c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0l-1 1c-1-.6-2.3-1-3.6-1-3.9 0-7 3.1-7 7.1 0 3.7 3.2 6.9 6.9 6.9 3.9 0 7.1-3.1 7.1-7 0-1.8-.7-3.4-1.9-4.7zM15 18.5c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zm0-8c.6 0 1 .4 1 1v2c0 .5-.4 1-1 1-.5 0-1-.4-1-1v-2c0-.6.4-1 1-1zm-1-7h2c.5 0 1 .4 1 1 0 .5-.4 1-1 1h-2c-.5 0-1-.4-1-1s.4-1 1-1zm-10 5h2c.5 0 1 .4 1 1 0 .5-.4 1-1 1H4c-.5 0-1-.4-1-1s.4-1 1-1zm0 8h2c.5 0 1 .4 1 1 0 .5-.4 1-1 1H4c-.5 0-1-.4-1-1s.4-1 1-1zm-1-4h2c.5 0 1 .4 1 1 0 .5-.4 1-1 1H3c-.5 0-1-.4-1-1s.4-1 1-1z"})})),Ry=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",xmlSpace:"preserve",...e,ref:t,children:(0,x.jsx)("path",{d:"M19.664 17.739V7.646l1.316 1.316a.575.575 0 0 0 .812-.811l-2.296-2.295a.573.573 0 0 0-.403-.169h-.005a.572.572 0 0 0-.406.169l-2.294 2.295a.573.573 0 1 0 .812.811l1.315-1.316v10.092a.574.574 0 0 0 1.149.001zm-15.64-.866a.58.58 0 0 1-.42-.16.527.527 0 0 1-.165-.396v-4.603l.128.201-.667.493a.502.502 0 0 1-.32.101.526.526 0 0 1-.383-.164.537.537 0 0 1-.165-.393c0-.195.094-.353.283-.475L3.63 10.6a.6.6 0 0 1 .206-.091.929.929 0 0 1 .214-.027.56.56 0 0 1 .42.16.548.548 0 0 1 .155.397v5.279c0 .158-.057.29-.169.396a.604.604 0 0 1-.432.159zm6.018-1.005a.496.496 0 0 1 .511.511.472.472 0 0 1-.146.352.502.502 0 0 1-.365.142H6.937a.493.493 0 0 1-.375-.146c-.091-.097-.137-.222-.137-.374s.055-.286.164-.401l1.991-2.129c.225-.242.403-.492.534-.748s.197-.478.197-.667c0-.304-.088-.549-.265-.735s-.411-.278-.703-.278a.86.86 0 0 0-.356.082 1.467 1.467 0 0 0-.352.228c-.113.098-.218.21-.315.338a.482.482 0 0 1-.219.183.547.547 0 0 1-.571-.113.459.459 0 0 1-.169-.352c0-.104.035-.204.105-.302a2.763 2.763 0 0 1 1.355-.972c.2-.064.396-.096.584-.096.408 0 .763.081 1.064.242s.534.39.699.685c.164.295.247.644.247 1.045 0 .335-.099.708-.297 1.119a4.647 4.647 0 0 1-.799 1.155l-1.233 1.315-.1-.083h2.056zm2.493-.283a.662.662 0 0 1 .393.137c.104.079.227.149.369.21.144.061.311.091.498.091.189 0 .367-.047.535-.142a1.138 1.138 0 0 0 .58-1.027c0-.23-.049-.423-.143-.575s-.219-.268-.375-.347a1.073 1.073 0 0 0-.496-.118c-.135 0-.246.012-.334.035-.088.025-.174.051-.256.078s-.178.041-.287.041a.389.389 0 0 1-.325-.146.546.546 0 0 1-.114-.346.51.51 0 0 1 .05-.229c.033-.067.083-.141.151-.22l1.607-1.708.246.21h-2.246a.496.496 0 0 1-.511-.511c0-.14.049-.257.146-.352a.502.502 0 0 1 .365-.142h2.795c.188 0 .33.052.424.155a.555.555 0 0 1 .143.393c0 .079-.021.157-.064.233s-.094.145-.154.206l-1.617 1.735-.246-.311c.066-.03.16-.058.277-.082a1.596 1.596 0 0 1 1.235.242c.264.186.469.426.611.721s.215.613.215.954c0 .451-.102.841-.303 1.169a1.966 1.966 0 0 1-.848.758c-.365.177-.793.266-1.279.266-.226 0-.447-.028-.667-.083a2.213 2.213 0 0 1-.566-.219.626.626 0 0 1-.27-.242.555.555 0 0 1-.068-.251c0-.14.05-.272.151-.397a.465.465 0 0 1 .378-.186z"})})),Ey=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",xmlSpace:"preserve",...e,ref:t,children:[(0,x.jsx)("rect",{width:"32",height:"32",rx:"16",fill:"#F8F8FE"}),(0,x.jsx)("path",{d:"M21.9337 16.6663H10.0671C9.66706 16.6663 9.40039 16.3997 9.40039 15.9997C9.40039 15.5997 9.66706 15.333 10.0671 15.333H21.9337C22.3337 15.333 22.6004 15.5997 22.6004 15.9997C22.6004 16.3997 22.3337 16.6663 21.9337 16.6663Z",fill:"#383838",fillRule:"evenodd",clipRule:"evenodd"})]})),Ay=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",xmlSpace:"preserve",...e,ref:t,children:(0,x.jsx)("path",{d:"M16.0004 23.6329C15.6004 23.6329 15.3337 23.3662 15.3337 22.9662V17.6329H10.0671C9.66706 17.6329 9.40039 17.3662 9.40039 16.9662C9.40039 16.5662 9.66706 16.2995 10.0671 16.2995H15.3337V11.0329C15.3337 10.6329 15.6004 10.3662 16.0004 10.3662C16.4004 10.3662 16.6671 10.6329 16.6671 11.0329V16.2995H21.9337C22.3337 16.2995 22.6004 16.5662 22.6004 16.9662C22.6004 17.3662 22.3337 17.6329 21.9337 17.6329H16.6671V22.9662C16.6671 23.3662 16.4004 23.6329 16.0004 23.6329Z",fill:"#383838",fillRule:"evenodd",clipRule:"evenodd"})})),Oy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M17 19V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v6H9V5a1 1 0 0 0-1-1 .94.94 0 0 0-1 1v14a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-6h6v6a1 1 0 0 0 1 1 .94.94 0 0 0 1-1z"})})),Py=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M9.15 17h2.3v4.1a.9.9 0 0 0 .9.9.9.9 0 0 0 .9-.9v-17h2.8v17a.9.9 0 0 0 .9.9h.1a.9.9 0 0 0 .9-.9v-17h3.1a.9.9 0 0 0 .9-.9V3a.9.9 0 0 0-.9-.9h-12a7.2 7.2 0 0 0-7 7.5 7.2 7.2 0 0 0 7.1 7.4zm-.1-12.9h2.3V15h-2.2a5.79 5.79 0 0 1-5.1-5.5 5.69 5.69 0 0 1 5-5.45z"})})),Ty=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M4 2a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm16 5H4V4h16zM2 12v8a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2zm18 0v8H4v-8zm-9 5H9v-2h2v-2h2v2h2v2h-2v2h-2z"})})),Dy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M21 2H3a1 1 0 0 0-1 1 .94.94 0 0 0 1 1h18a.94.94 0 0 0 1-1 .94.94 0 0 0-1-1ZM2 21a.94.94 0 0 0 1 1h18a.94.94 0 0 0 1-1 .94.94 0 0 0-1-1H3a.94.94 0 0 0-1 1Zm7-6V9a.94.94 0 0 0-1-1 1 1 0 0 0-1 1v6a.94.94 0 0 0 1 1 1 1 0 0 0 1-1Zm8 0V9a.94.94 0 0 0-1-1 .94.94 0 0 0-1 1v6a.94.94 0 0 0 1 1 1.08 1.08 0 0 0 1-1Zm-4 2V7a.94.94 0 0 0-1-1 .94.94 0 0 0-1 1v10a.94.94 0 0 0 1 1 .94.94 0 0 0 1-1Z"})})),My=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M6 10V4H4v16h16V10H6Zm16-2v14H2V2h6v6h14Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M13.5 3.5h-3v2h3v-2ZM9 2v5h6V2H9Zm11.5 1.5h-3v2h3v-2ZM16 2v5h6V2h-6Z",clipRule:"evenodd"})]})),Ny=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M20 4v16H4V4h16m0-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM7 18a1 1 0 0 1 0-2c1.66 0 2.856-2.177 4.124-4.482C12.616 8.805 14.159 6 17 6a1 1 0 0 1 0 2c-1.66 0-2.856 2.177-4.124 4.482C11.384 15.195 9.841 18 7 18z"})})),By=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M22 4V3c0-.6-.4-1-1-1H3c-.6 0-1 .4-1 1v18c0 .6.4 1 1 1h18c.6 0 1-.4 1-1V4zM4 4h16v16H4V4zm8 5.5a2 2 0 1 0 .001-3.999A2 2 0 0 0 12 9.5zm3 1H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.5-1-1-1zm-4 8h2c.6 0 1-.4 1-1s-.4-1-1-1h-2c-.6 0-1 .4-1 1 0 .5.4 1 1 1zm-5-4c0 .6.4 1 1 1h10c.6 0 1-.4 1-1s-.4-1-1-1H7c-.6 0-1 .5-1 1z"})})),Iy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M19.9 2.2H4.3c-1.2 0-2 .8-2 2v15.6c0 1.2.7 2.1 2 2.1h15.6c1.2 0 2-.8 2-2V4.3c-.1-1.3-.8-2.1-2-2.1zM4.3 19.8V4.2h15.6v15.6H4.3z"}),(0,x.jsx)("path",{d:"m10.1 14-1-1-3 4h12l-5-7-3 4z"})]})),Ly=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M16.8 9h-6.5c-.2 0-.3-.1-.3-.2V7.3c0-.2.1-.3.3-.3h6.5c.1 0 .2.1.2.3v1.5c0 .1-.1.2-.2.2zm-.8 3.8v-1.5c0-.1-.1-.3-.3-.3h-5.5c-.1 0-.3.1-.3.3v1.5c0 .1.1.3.3.3h5.5c.2-.1.3-.2.3-.3zm-2 4v-1.5c0-.1-.1-.3-.3-.3h-3.5c-.1 0-.3.1-.3.3v1.5c0 .1.1.3.3.3h3.5c.2-.1.3-.2.3-.3zm-5-8V7.3c0-.2-.1-.3-.2-.3H7.3c-.2 0-.3.1-.3.3v1.5c0 .1.1.2.3.2h1.5c.1 0 .2-.1.2-.2zm0 4v-1.5c0-.2-.1-.3-.2-.3H7.3c-.2 0-.3.1-.3.3v1.5c0 .1.1.2.3.2h1.5c.1 0 .2-.1.2-.2zm0 4v-1.5c0-.2-.1-.3-.2-.3H7.3c-.2 0-.3.1-.3.3v1.5c0 .1.1.2.3.2h1.5c.1 0 .2-.1.2-.2zm9 5.2H6c-1.7 0-3-1.3-3-3V5c0-1.7 1.3-3 3-3h12c1.7 0 3 1.3 3 3v14c0 1.7-1.3 3-3 3zM6 4c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1H6z"})})),zy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M6 15c.9 0 1.7-.3 2.4-.9l6.3 3.6c-.1.3-.1.6-.1.9 0 1.9 1.6 3.5 3.5 3.6 1.9 0 3.5-1.6 3.6-3.5 0-1.9-1.6-3.5-3.5-3.6-.9 0-1.8.3-2.4.9l-6.3-3.6c.1-.2.1-.5.1-.8l6.1-3.5c1.4 1.3 3.6 1.2 4.9-.2 1.3-1.4 1.2-3.6-.2-4.9-1.4-1.3-3.6-1.2-4.9.2-.6.6-.9 1.5-.9 2.4 0 .3 0 .6.1.8L8.9 9.6c-1-1.6-3.2-2.1-4.8-1C2.5 9.7 2 11.8 3 13.4c.7 1 1.8 1.6 3 1.6Zm12 2c.8 0 1.5.7 1.5 1.5S18.8 20 18 20s-1.5-.7-1.5-1.5.6-1.5 1.5-1.5Zm0-13c.8 0 1.5.7 1.5 1.5S18.8 7 18 7s-1.5-.7-1.5-1.5S17.1 4 18 4ZM6 10c.8 0 1.5.7 1.5 1.5S6.8 13 6 13s-1.5-.7-1.5-1.5S5.1 10 6 10Z"})})),Fy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M6.81 14.425a4.077 4.077 0 0 1 2.882-1.194h4.616a4.077 4.077 0 0 1 4.076 4.077v1.538a1 1 0 0 1-2 0v-1.538a2.077 2.077 0 0 0-2.076-2.077H9.692a2.077 2.077 0 0 0-2.077 2.077v1.538a1 1 0 0 1-2 0v-1.538c0-1.082.43-2.119 1.194-2.883ZM12 6a2.077 2.077 0 1 0 0 4.154A2.077 2.077 0 0 0 12 6ZM7.923 8.077a4.077 4.077 0 1 1 8.154 0 4.077 4.077 0 0 1-8.154 0Zm10.801 5.903a1 1 0 0 1 1.218-.718A4.077 4.077 0 0 1 23 17.207v1.54a1 1 0 0 1-2 0v-1.539a2.077 2.077 0 0 0-1.558-2.009 1 1 0 0 1-.718-1.218Zm-2.308-9.228a1 1 0 0 1 1.217-.72 4.077 4.077 0 0 1 0 7.898 1 1 0 1 1-.496-1.937 2.077 2.077 0 0 0 0-4.024 1 1 0 0 1-.721-1.217ZM5.276 13.98a1 1 0 0 0-1.218-.718A4.078 4.078 0 0 0 1 17.207v1.54a1 1 0 0 0 2 0v-1.539A2.077 2.077 0 0 1 4.558 15.2a1 1 0 0 0 .718-1.218Zm2.308-9.228a1 1 0 0 0-1.217-.72 4.077 4.077 0 0 0 0 7.898 1 1 0 1 0 .496-1.937 2.077 2.077 0 0 1 0-4.024 1 1 0 0 0 .721-1.217Z",clipRule:"evenodd"})})),Hy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M11.402 2h1.196c.084.03.17.052.259.067a9.92 9.92 0 0 1 8.745 7.282c.181.67.266 1.368.398 2.053v1.196c-.03.084-.052.17-.067.259a9.923 9.923 0 0 1-7.282 8.745c-.672.18-1.368.266-2.053.398h-1.196a1.511 1.511 0 0 0-.259-.067 9.934 9.934 0 0 1-8.824-7.589c-.14-.574-.215-1.164-.319-1.746v-1.196c.03-.084.052-.17.067-.259A9.931 9.931 0 0 1 9.656 2.32c.575-.14 1.164-.215 1.746-.319Zm-8.545 9.986c-.01 4.965 4.045 9.071 8.88 9.17 5.1.104 9.271-3.97 9.41-8.883.145-5.13-3.99-9.295-8.905-9.422-5.103-.134-9.418 4.028-9.385 9.136Z"}),(0,x.jsx)("path",{d:"M7.258 10.008c1.115.015 1.963.892 1.952 2.024-.011 1.124-.883 1.97-2.013 1.96a1.971 1.971 0 0 1-1.978-2.042c.021-1.11.91-1.957 2.039-1.942Zm1.154 2.005c.006-.697-.498-1.206-1.196-1.207-.68 0-1.182.486-1.195 1.163-.015.697.478 1.216 1.172 1.226.694.01 1.213-.488 1.219-1.182Zm5.58-.011a1.992 1.992 0 1 1-1.98-1.992 1.955 1.955 0 0 1 1.98 1.992Zm-.797 0c0-.696-.508-1.2-1.204-1.195a1.155 1.155 0 0 0-1.185 1.174c-.01.697.491 1.21 1.184 1.215.694.005 1.204-.5 1.204-1.195l.001.001Zm3.585-1.994a1.957 1.957 0 0 1 1.993 1.983c0 1.144-.868 2.01-2.014 2.002a1.992 1.992 0 0 1 .021-3.984Zm-.006 3.187c.697 0 1.203-.5 1.201-1.195a1.155 1.155 0 0 0-1.168-1.191c-.697-.012-1.213.486-1.22 1.178-.008.693.493 1.205 1.187 1.208Z"})]})),Vy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 12 12",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fill:"#64748B",fillRule:"evenodd",d:"M2.5 4a.5.5 0 0 0-.5.5V10a.5.5 0 0 0 .5.5H8a.5.5 0 0 0 .5-.5V7a.5.5 0 0 1 1 0v3A1.5 1.5 0 0 1 8 11.5H2.5A1.5 1.5 0 0 1 1 10V4.5A1.5 1.5 0 0 1 2.5 3h3a.5.5 0 0 1 0 1h-3ZM7 2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V2.5H7.5A.5.5 0 0 1 7 2Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fill:"#64748B",fillRule:"evenodd",d:"M10.854 1.646a.5.5 0 0 1 0 .708l-5.5 5.5a.5.5 0 1 1-.708-.708l5.5-5.5a.5.5 0 0 1 .708 0Z",clipRule:"evenodd"})]})),$y=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 12 12",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M1.94 1.44A1.5 1.5 0 0 1 3 1h4.25a.5.5 0 0 1 .354.146l2.75 2.75a.5.5 0 0 1 .146.354v6.25A1.5 1.5 0 0 1 9 12H3a1.5 1.5 0 0 1-1.5-1.5v-8c0-.398.158-.78.44-1.06ZM3 2a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5V4.457L7.043 2H3Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M7 1a.5.5 0 0 1 .5.5V4H10a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5v-3A.5.5 0 0 1 7 1Z",clipRule:"evenodd"})]})),Uy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 32 32",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M16 3.666c-6.812 0-12.334 5.522-12.334 12.333 0 6.812 5.522 12.334 12.333 12.334 6.812 0 12.334-5.522 12.334-12.334 0-6.811-5.522-12.333-12.334-12.333ZM1.665 15.999c0-7.916 6.417-14.333 14.333-14.333s14.334 6.417 14.334 14.333-6.418 14.334-14.334 14.334c-7.916 0-14.333-6.418-14.333-14.334Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M16.4 10.37a3 3 0 0 0-3.337 1.962 1 1 0 0 1-1.887-.664 5 5 0 0 1 9.716 1.666c0 1.864-1.385 3.125-2.445 3.832a10.409 10.409 0 0 1-2.175 1.094l-.043.015-.013.005-.004.001h-.002s-.001.001-.31-.922l.309.923a1 1 0 0 1-.634-1.897l.004-.001.023-.008a8.193 8.193 0 0 0 .509-.206 8.53 8.53 0 0 0 1.227-.669c.94-.626 1.554-1.365 1.554-2.168v-.001a3 3 0 0 0-2.492-2.961ZM15 22.666a1 1 0 0 1 1-1h.013a1 1 0 1 1 0 2h-.014a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),Wy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 20 20",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M4.167 3.25a.917.917 0 0 0-.917.917v11.666c0 .507.41.917.917.917h11.666c.507 0 .917-.41.917-.917V4.167a.917.917 0 0 0-.917-.917H4.167Zm-2.417.917A2.417 2.417 0 0 1 4.167 1.75h11.666a2.417 2.417 0 0 1 2.417 2.417v11.666a2.417 2.417 0 0 1-2.417 2.417H4.167a2.417 2.417 0 0 1-2.417-2.417V4.167Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M7.146 6.005a.75.75 0 0 1 .77.037l5 3.333a.75.75 0 0 1 0 1.248l-5 3.334a.75.75 0 0 1-1.166-.624V6.666a.75.75 0 0 1 .396-.661ZM8.25 8.067v3.864L11.148 10 8.25 8.067Z",clipRule:"evenodd"})]})),qy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 20 20",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M10 .917a.75.75 0 0 1 .672.418l2.4 4.864 5.37.784a.75.75 0 0 1 .414 1.28l-3.884 3.783.917 5.344a.75.75 0 0 1-1.089.79L10 15.657l-4.802 2.525a.75.75 0 0 1-1.088-.79l.917-5.345-3.884-3.783a.75.75 0 0 1 .415-1.28L6.926 6.2l2.4-4.864A.75.75 0 0 1 10 .917Zm0 2.444L8.096 7.216a.75.75 0 0 1-.564.41l-4.256.622 3.079 2.998a.75.75 0 0 1 .216.664l-.726 4.236 3.804-2.001a.75.75 0 0 1 .698 0l3.805 2-.726-4.235a.75.75 0 0 1 .216-.664l3.078-2.998-4.255-.622a.75.75 0 0 1-.564-.41L9.999 3.36Z",clipRule:"evenodd"})})),Zy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 20 20",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M5.934 2.601a5.75 5.75 0 0 1 9.816 4.066c0 1.262-.483 2.551-1.483 3.46-.608.61-.907 1.064-1.032 1.687a.75.75 0 1 1-1.47-.294c.207-1.04.738-1.75 1.455-2.467a.726.726 0 0 1 .028-.027c.656-.59 1.002-1.461 1.002-2.359a4.25 4.25 0 0 0-8.5 0c0 .687.12 1.477 1.03 2.386.626.626 1.246 1.42 1.455 2.467a.75.75 0 1 1-1.47.294c-.125-.62-.504-1.159-1.045-1.7-1.257-1.257-1.47-2.467-1.47-3.447a5.75 5.75 0 0 1 1.684-4.066ZM6.75 15a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Zm.833 3.333a.75.75 0 0 1 .75-.75h3.334a.75.75 0 0 1 0 1.5H8.333a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"})})),Yy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 32 32",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M5.333 3.666c-.914 0-1.667.753-1.667 1.667v12.252l3.627-3.626A1 1 0 0 1 8 13.666h8A1.666 1.666 0 0 0 17.666 12V5.333A1.667 1.667 0 0 0 16 3.666H5.333ZM1.666 5.333a3.675 3.675 0 0 1 3.667-3.667H16a3.667 3.667 0 0 1 3.666 3.667V12A3.667 3.667 0 0 1 16 15.666H8.414l-5.04 5.04A1 1 0 0 1 1.666 20V5.333Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M23 12a1 1 0 0 1 1-1h2.667a3.667 3.667 0 0 1 3.666 3.667v14.666a1 1 0 0 1-1.707.708L23.586 25H16a3.667 3.667 0 0 1-3.667-3.668V20a1 1 0 1 1 2 0v1.333A1.667 1.667 0 0 0 16 23h8a1 1 0 0 1 .707.293l3.626 3.626V14.667A1.667 1.667 0 0 0 26.667 13H24a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),Gy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 40 40",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fill:"#475BB2",d:"M0 3.636A3.636 3.636 0 0 1 3.636 0h32.728A3.636 3.636 0 0 1 40 3.636v32.728A3.636 3.636 0 0 1 36.364 40H3.636A3.636 3.636 0 0 1 0 36.364V3.636Z"}),(0,x.jsx)("path",{fill:"#fff",d:"M28.99 10.623c-1.45.852-2.813 1.96-4.006 3.154-1.194 1.193-2.301 2.556-3.154 3.92a27.715 27.715 0 0 1 1.534 3.665c.767-1.62 1.705-3.068 2.898-4.347v4.602a6.29 6.29 0 0 1-4.602 6.052h-.17c-.171-2.216-.682-4.347-1.45-6.393a21.151 21.151 0 0 0-5.028-7.5c-1.193-1.193-2.557-2.215-4.006-3.153l-.34-.17v11.08c0 4.516 3.238 8.437 7.755 9.204h.085c1.023.17 2.046.17 2.983 0h.086c4.517-.767 7.755-4.688 7.755-9.205v-11.08l-.34.171Zm-15.256 10.91v-4.518c2.642 2.983 4.261 6.648 4.602 10.568a6.29 6.29 0 0 1-4.602-6.05Zm6.221-12.444a2.292 2.292 0 0 0-2.3 2.301 2.292 2.292 0 0 0 2.3 2.301 2.292 2.292 0 0 0 2.301-2.3 2.292 2.292 0 0 0-2.3-2.302Z"})]})),Xy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 40 40",xmlns:"https://www.w3.org/2000/svg",fill:"none",...e,ref:t,children:(0,x.jsx)("path",{fill:"#2563EB",fillRule:"evenodd",d:"M0 36h38V0H0v36Zm35.946-2.057H2.054V2.057h33.892v31.886Zm-16.611-28.8 2.548 8.561-5.108.023 2.56-8.584Zm-4.232 14.242h8.475l1.508 7.662.14 2.782H13.222l.105-2.816 1.777-7.628Z",clipRule:"evenodd"})})),Ky=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 40 40",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("rect",{width:"40",height:"40",fill:"#8D42CE",rx:"3.636"}),(0,x.jsx)("path",{fill:"#fff",d:"M19.781 26.7h-7.025V13.797l7.025 4.387V26.7Zm7.01 0h-7.01v-8.517l7.01-4.387V26.7Z"}),(0,x.jsx)("path",{fill:"#fff",d:"M30.077 30.576h-21V9.5h21v21.076Zm-20.05-.95h19.115V10.45H10.027v19.176Z"})]})),Jy=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 40 40",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("rect",{width:"40",height:"40",fill:"#7545BB",rx:"3.636"}),(0,x.jsx)("path",{fill:"#fff",d:"M26.72 11h-4.31l1.32 2.224h4.309L26.72 11Zm2.71 4.447h-4.308l1.39 2.224h4.308l-1.39-2.224Zm-.069 11.119h-16.4l6.88-11.258 2.849 4.587h-2.85l-1.32 2.223h8.13l-6.81-10.98L9 28.79h21.751l-1.39-2.223Z"})]})),Qy=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 20 20",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{fillRule:"evenodd",d:"M10 3.25A6.75 6.75 0 0 0 3.25 10v.917H5a2.417 2.417 0 0 1 2.417 2.416v2.5A2.417 2.417 0 0 1 5 18.25h-.833a2.417 2.417 0 0 1-2.417-2.417V10a8.25 8.25 0 1 1 16.5 0v5.833a2.417 2.417 0 0 1-2.417 2.417H15a2.417 2.417 0 0 1-2.417-2.417v-2.5A2.416 2.416 0 0 1 15 10.917h1.75V10A6.75 6.75 0 0 0 10 3.25Zm6.75 9.167H15a.916.916 0 0 0-.917.916v2.5a.917.917 0 0 0 .917.917h.833a.917.917 0 0 0 .917-.917v-3.416Zm-13.5 0v3.416a.917.917 0 0 0 .917.917H5a.917.917 0 0 0 .917-.917v-2.5A.916.916 0 0 0 5 12.417H3.25Z",clipRule:"evenodd"})})),ex=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 40 40",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("rect",{width:"40",height:"40",fill:"#E9E3FD",rx:"3.636"}),(0,x.jsx)("path",{fill:"#787DFF",d:"m14.163 11.898 3.851 4.281c.607.64.946 1.489.946 2.37v10.009l-4.8-3.353.003-13.307Z",opacity:".3"}),(0,x.jsx)("path",{fill:"#787DFF",d:"m11.173 11.3 6.346 4.519a3.373 3.373 0 0 1 1.438 2.559V28.55l-7.785-4.102.001-13.148Z",opacity:".5"}),(0,x.jsx)("path",{fill:"#787DFF",d:"m18.96 28.656-7.014-2.245A3.48 3.48 0 0 1 9.5 23.305V12.953l7.62 2.943a2.831 2.831 0 0 1 1.835 2.452v.16l.005 10.148Z"}),(0,x.jsx)("path",{fill:"#FD739C",d:"m25.837 11.898-3.851 4.281a3.444 3.444 0 0 0-.946 2.364v10.008l4.8-3.353-.003-13.3Z",opacity:".3"}),(0,x.jsx)("path",{fill:"#FD739C",d:"m28.828 11.3-6.346 4.519a3.374 3.374 0 0 0-1.438 2.559V28.55l7.785-4.102-.001-13.148Z",opacity:".5"}),(0,x.jsx)("path",{fill:"#FD739C",d:"m21.04 28.656 7.013-2.245c1.373-.44 2.377-1.667 2.447-3.106V12.953l-7.617 2.943a2.832 2.832 0 0 0-1.836 2.452v.16l-.007 10.148Z"})]})),tx=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",d:"M2 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm5 6a1 1 0 0 1 1-1h13a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h13a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm-4-7a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1Z",clipRule:"evenodd"})})),rx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M11 3a1 1 0 1 1 2 0v18a1 1 0 1 1-2 0V3Z"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M16.037 7.397 15 6.517l.953-.789c.262-.436.74-.728 1.286-.728H20.5a1.5 1.5 0 0 1 0 3h-3.261c-.492 0-.929-.237-1.202-.603Zm0 11L15 17.517l1.025-.898A1.498 1.498 0 0 1 17.239 16H20.5a1.5 1.5 0 0 1 0 3h-3.261c-.492 0-.929-.237-1.202-.603ZM8 12.847l1-.83-.966-.811A1.499 1.499 0 0 0 6.76 10.5H3.5a1.5 1.5 0 0 0 0 3h3.261c.514 0 .968-.259 1.238-.653Z",clipRule:"evenodd"})]})),nx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M20 9.7H4a.3.3 0 0 0-.3.3v4a.3.3 0 0 0 .3.3h16a.3.3 0 0 0 .3-.3v-4a.3.3 0 0 0-.3-.3ZM4 8a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2H4Z",clipRule:"evenodd"}),(0,x.jsx)("path",{d:"M3 9h7v6H3V9Z"})]})),ox=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-4v-2h4V5H5v7h7.5v2H5a2 2 0 0 1-2-2V5Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12.046 9.848a.699.699 0 0 1 .786.124l7.25 6.897a.703.703 0 0 1 .158.793.696.696 0 0 1-.692.413l-3.638-.292-2.085 3.045a.696.696 0 0 1-.753.28.703.703 0 0 1-.52-.617l-.897-9.95a.699.699 0 0 1 .392-.693Zm1.168 2.417.556 6.164 1.215-1.774a.696.696 0 0 1 .63-.301l2.072.166-4.473-4.255Z",clipRule:"evenodd"}),(0,x.jsx)("path",{d:"M7 8.25c0 .45.333.75.833.75h8.334c.5 0 .833-.3.833-.75s-.333-.75-.833-.75H7.833c-.5 0-.833.375-.833.75Z"})]})),ix=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"M16.2 22H7.8c-1 0-1.8-.9-1.8-2V4c0-1.1.8-2 1.8-2h8.3c1 0 1.8.9 1.8 2v16c.1 1.1-.7 2-1.7 2zM8 20h8V4H8v16zm-3-3H4V7h1V5H3.7C2.7 5 2 5.7 2 6.7v10.7c0 .9.7 1.6 1.7 1.6H5v-2zm14 2h1.3c.9 0 1.7-.7 1.7-1.7V6.7c0-1-.7-1.7-1.7-1.7H19v2h1v10h-1v2z"})})),ax=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M12 14c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4Zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2Z"}),(0,x.jsx)("path",{d:"M11.42 21.814a.998.998 0 0 0 1.16 0C12.884 21.599 20.029 16.44 20 10c0-4.411-3.589-8-8-8S4 5.589 4 9.995c-.029 6.445 7.116 11.604 7.42 11.819ZM12 4c3.309 0 6 2.691 6 6.005.021 4.438-4.388 8.423-6 9.73-1.611-1.308-6.021-5.294-6-9.735 0-3.309 2.691-6 6-6Z"})]})),sx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M20.2 1.5H4.8c-1.2 0-2.2 1-2.2 2.2v12.9c0 1.2 1 2.2 2.2 2.2h3.9l3.8 3.7 3.8-3.7h3.9c1.2 0 2.2-1 2.2-2.2V3.7c0-1.2-1-2.2-2.2-2.2Zm0 15.1h-4.9l-2.8 2.8-2.8-2.8H4.8V3.7h15.4v12.9Z"}),(0,x.jsx)("path",{d:"M8 11.6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})]})),lx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 7a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1Zm-1 9a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),cx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{d:"M7.1 9H21c.5 0 1-.5 1-1s-.5-1-1-1H7.1C6.5 7 6 7.4 6 8s.5 1 1.1 1zM21 11H7.1c-.6 0-1.1.4-1.1 1s.5 1 1.1 1H21c.6 0 1.1-.4 1.1-1s-.6-1-1.1-1zM21 15H7.1c-.6 0-1.1.5-1.1 1 0 .6.5 1 1.1 1H21c.6 0 1.1-.4 1.1-1-.1-.5-.6-1-1.1-1zM3.3 7.6L3.1 7H3l-.1.1-.2.5h-.6c-.1 0-.1.1-.1.1v.1l.4.4-.1.7c0 .1 0 .1.1.1h.1l.5-.4.5.4h.1v-.1l-.1-.7.5-.4v-.1s0-.1-.1-.1h-.6zM3.3 11.6l-.2-.5c0-.1-.1-.1-.1-.1l-.1.1-.2.5h-.6c-.1 0-.1.1-.1.2v.1l.4.4-.1.6c0 .1 0 .1.1.1h.1l.5-.4.5.4h.1v-.1l-.2-.6.6-.5v-.1s0-.1-.1-.1h-.6zM3.3 15.6l-.2-.5c0-.1-.1-.1-.1-.1l-.1.1-.2.5h-.6c-.1.1-.1.1-.1.2v.1l.4.4-.1.6c0 .1 0 .1.1.1h.1l.5-.4.5.4h.1v-.1l-.2-.6.6-.5v-.1s0-.1-.1-.1h-.6z"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M12 7a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1Zm-1 9a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),ux=r().forwardRef((e,t)=>(0,x.jsx)(Yf.B.svg,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,x.jsx)("path",{d:"m6.516 14.323-1.49 6.452a.998.998 0 0 0 1.529 1.057L12 18.202l5.445 3.63a1.001 1.001 0 0 0 1.517-1.106l-1.829-6.4 4.536-4.082a1 1 0 0 0-.59-1.74l-5.701-.454-2.467-5.461a.998.998 0 0 0-1.822 0L8.622 8.05l-5.701.453a1 1 0 0 0-.619 1.713l4.214 4.107zm2.853-4.326a.998.998 0 0 0 .832-.586L12 5.43l1.799 3.981a.998.998 0 0 0 .832.586l3.972.315-3.271 2.944c-.284.256-.397.65-.293 1.018l1.253 4.385-3.736-2.491a.995.995 0 0 0-1.109 0l-3.904 2.603 1.05-4.546a1 1 0 0 0-.276-.94l-3.038-2.962 4.09-.326z"})})),dx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 150 131",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fill:"#4584FF",d:"M115.352 14.993 74.652 0l-40.31 14.795c-5.146 2.49-9.66 3.986-9.66 8.9v24.503A94.35 94.35 0 0 0 37.965 96.93c7.517 12.515 19.152 25.401 37.108 33.594 16.477-5.488 28.776-20.122 36.294-32.643a94.32 94.32 0 0 0 13.281-48.725V27.12c-.03-7.015-3.651-10.438-9.295-12.126Z"}),(0,x.jsx)("path",{fill:"#fff",d:"M115.352 14.993 74.652 0l-40.31 14.795c-5.146 2.49-9.66 3.986-9.66 8.9v24.503A94.35 94.35 0 0 0 37.965 96.93c7.517 12.515 19.152 25.401 37.108 33.594 16.477-5.488 28.776-20.122 36.294-32.643a94.32 94.32 0 0 0 13.281-48.725V27.12c-.03-7.015-3.651-10.438-9.295-12.126Z",opacity:".8"}),(0,x.jsx)("path",{fill:"#4584FF",d:"M99.503 76.975h-7.481V36.276a17.378 17.378 0 1 0-34.756 0v40.7h-7.482v-40.7a24.864 24.864 0 0 1 34.463-23.318 24.863 24.863 0 0 1 15.256 23.318v40.7Z"}),(0,x.jsx)("path",{fill:"#000",d:"M99.503 76.975h-7.481V36.276a17.378 17.378 0 1 0-34.756 0v40.7h-7.482v-40.7a24.864 24.864 0 0 1 34.463-23.318 24.863 24.863 0 0 1 15.256 23.318v40.7Z",opacity:".4"}),(0,x.jsx)("path",{fill:"#4584FF",d:"M104.669 58.864H44.62a3.477 3.477 0 0 0-3.477 3.478v36.03a3.478 3.478 0 0 0 3.477 3.478h60.049a3.477 3.477 0 0 0 3.477-3.478v-36.03a3.477 3.477 0 0 0-3.477-3.478Z"}),(0,x.jsx)("path",{fill:"#000",d:"M80.243 74.76a5.603 5.603 0 1 0-7.128 5.388v8.379h3.058v-8.38a5.584 5.584 0 0 0 4.07-5.386Z",opacity:".5"}),(0,x.jsx)("path",{fill:"#FAFAFA",d:"M44.715 97.773c-.156 0-.276-7.182-.276-16.01 0-8.828.12-16.01.276-16.01.155 0 .281 7.182.281 16.01 0 8.828-.126 16.01-.281 16.01ZM70.26 81.936s-.264-.084-.659-.37a6.722 6.722 0 0 1-1.442-1.473 7.847 7.847 0 0 1 2.789-11.779 6.884 6.884 0 0 1 1.975-.664c.246-.068.503-.082.754-.042 0 .108-1.06.21-2.514 1.053a7.781 7.781 0 0 0-2.65 11.21 16.391 16.391 0 0 0 1.747 2.065Z"}),(0,x.jsx)("path",{fill:"#4584FF",d:"M2.58 107.847a2.58 2.58 0 1 0 0-5.16 2.58 2.58 0 0 0 0 5.16ZM150 23.48a2.576 2.576 0 0 1-3.086 2.523 2.581 2.581 0 0 1-1.876-3.517 2.577 2.577 0 0 1 3.371-1.395 2.588 2.588 0 0 1 1.396 1.4c.13.314.196.65.195.99ZM20.697 111.928a.657.657 0 1 1-1.315 0 .657.657 0 0 1 1.315 0Zm14-72.313a.659.659 0 1 1-1.318 0 .659.659 0 0 1 1.318 0Zm102.339 35.152a.655.655 0 0 1-.407.609.66.66 0 0 1-.897-.485.654.654 0 0 1 .285-.675.657.657 0 0 1 .618-.057.653.653 0 0 1 .401.608Zm9.116-25.579a.659.659 0 1 1-1.318.01.659.659 0 0 1 1.318-.01Z"})]})),px=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 42 42",xmlns:"https://www.w3.org/2000/svg",...e,fill:"none",ref:t,children:[(0,x.jsx)("rect",{width:"41",height:"41",x:".5",y:".5",fill:"#fff",rx:"19.5"}),(0,x.jsx)("rect",{width:"41",height:"41",x:".5",y:".5",stroke:"#DDD",rx:"19.5"}),(0,x.jsxs)("g",{clipPath:"url(#a)",children:[(0,x.jsx)("path",{fill:"#fff",d:"M22.394 19.247c-1.098-4.806-.549-9.232 1.176-11.163a1.054 1.054 0 0 0-.502.242l-6.584 5.768-2.23 1.959a6.76 6.76 0 0 0-.497.816c-.66 1.276-1.39 2.887-1.157 4.451.336 2.276 2.13 4.059 3.91 5.049.275.153.56.285.855.395l2.372.359 8.4 1.645.126-.024c-2.38-.995-4.777-4.713-5.87-9.497Z"}),(0,x.jsx)("path",{stroke:"#E2E2E2",strokeMiterlimit:"10",strokeWidth:".068",d:"m30.987 28.236-2.726.509c-2.38-.991-4.775-4.713-5.868-9.497-1.098-4.806-.549-9.23 1.176-11.162l2.069-.38 5.349 20.53Z"}),(0,x.jsx)("path",{fill:"#E2E2E2",d:"m13.812 23.726 9.819-.648 4.63 5.644-11.227-2.053s-3.132-.806-3.222-2.943Z"}),(0,x.jsx)("path",{fill:"#2E5DAD",d:"M30.078 28.938a2.933 2.933 0 0 1-1.817-.193c-2.38-.991-4.775-4.713-5.868-9.497-1.098-4.806-.549-9.23 1.176-11.162.398-.47.932-.802 1.526-.952 2.868-.668 6.308 3.674 7.685 9.69 1.377 6.017.168 11.444-2.702 12.114Z"}),(0,x.jsx)("path",{stroke:"#fff",strokeMiterlimit:"10",strokeWidth:".068",d:"M22.394 19.247c-1.098-4.806-.549-9.232 1.176-11.163l-.284.052-6.802 5.958-2.23 1.959a6.76 6.76 0 0 0-.497.816c-.66 1.276-1.39 2.887-1.157 4.451.336 2.276 2.13 4.059 3.91 5.049.275.153.56.285.855.395l.631.013 1.744.341 8.4 1.646.127-.024c-2.385-.99-4.78-4.709-5.873-9.493Z"}),(0,x.jsx)("path",{fill:"#CBDEFA",d:"M30.415 27.887c-.979.228-2.078-.456-3.101-1.776-.728-.935-1.419-2.19-2.003-3.663a23.67 23.67 0 0 1-1.069-3.465 24.559 24.559 0 0 1-.485-2.906 18.492 18.492 0 0 1-.056-3.417c.206-2.421.983-4.122 2.225-4.413 2.17-.505 4.932 3.48 6.171 8.904 1.24 5.423.486 10.23-1.683 10.736Z"}),(0,x.jsx)("path",{fill:"#B8C9E4",d:"M28.982 25.042c-.492.741-1.243.984-1.668 1.066-1.249-1.606-2.388-4.15-3.068-7.132-.535-2.315-.694-4.519-.541-6.323.419-.416 1.069-.686 1.136-.686 1.71 0 3.448 2.567 4.31 6.341.657 2.889.549 5.507-.169 6.734Z"}),(0,x.jsx)("path",{fill:"#fff",d:"m27.94 20.402-2.63 2.045a23.67 23.67 0 0 1-1.07-3.464 24.559 24.559 0 0 1-.485-2.907l3.116-.104v.018l1.056 4.376.013.036Z"}),(0,x.jsx)("path",{fill:"#2E5DAD",d:"m14.253 16.08-4.918 2.161s-3.207 1.513-1.71 6.915c0 0 1.817 4.539 5.132 3.134l4.32-1.641S9.87 23.21 14.252 16.08Z"}),(0,x.jsx)("path",{fill:"#CEDAF7",d:"M27.71 20.494c.522-.122.716-1.23.432-2.473-.284-1.244-.939-2.153-1.462-2.031-.523.122-.716 1.23-.432 2.473.284 1.244.938 2.153 1.461 2.031Z"}),(0,x.jsx)("path",{stroke:"#2E5DAD",strokeMiterlimit:"10",strokeWidth:".137",d:"M22.914 19.214c-1.098-4.806.856-11.237.856-11.237-.253.07-.49.19-.7.35l-6.584 5.767-2.232 1.96c-.185.26-.35.532-.497.815-.66 1.276-1.39 2.887-1.157 4.452.336 2.275 2.13 4.058 3.91 5.048.275.154.56.286.855.396l2.372.358 8.272 1.621c.19.003.382-.005.572-.022-2.379-.99-4.574-4.725-5.667-9.508Z"}),(0,x.jsx)("path",{fill:"#3C5385",d:"m8.053 26.008 5.757-2.281s1.727 2.51 3.224 2.942l-4.672 1.762s-2.599 1.021-4.31-2.424Z"}),(0,x.jsx)("path",{fill:"#C9DDFB",d:"m12.361 28.432 2 6.109c.125.381.206.821.778.784a1.36 1.36 0 0 1 .278.011l.107.017a.86.86 0 0 1 .673.53c.148.371.252.864-.126 1.051l.346-.027c.227-.017.441-.11.61-.265l.513-.466a.799.799 0 0 0 .25-.735 2.522 2.522 0 0 0-.067-.282.698.698 0 0 0-.582-.494 9.618 9.618 0 0 0-.573-.046.637.637 0 0 1-.578-.448l-.997-3.115-1.969-2.928-.663.304Z"}),(0,x.jsx)("path",{fill:"#2E5DAD",d:"m15.638 30.794-.033.1-.014.044-1.604.432-.934-3.188 2.002-.756v.007l.577 1.713a2.62 2.62 0 0 1 .006 1.648Z"}),(0,x.jsx)("path",{fill:"#3E5589",d:"m15.644 30.792-.034.108-1.57.416c.21-.634.228-1.317.054-1.961l-.374-1.389 1.337-.54.576 1.712c.183.535.186 1.116.011 1.654Z"})]}),(0,x.jsx)("defs",{children:(0,x.jsx)("clipPath",{id:"a",children:(0,x.jsx)("path",{fill:"#fff",d:"M7 7h27v30H7z"})})})]})),fx=r().forwardRef((e,t)=>(0,x.jsxs)(Yf.B.svg,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,x.jsx)("path",{fillRule:"evenodd",d:"M5.333 3.666c-.915 0-1.667.752-1.667 1.667v12.252l3.626-3.626A1 1 0 0 1 8 13.666h8a1.667 1.667 0 0 0 1.667-1.667V5.333A1.667 1.667 0 0 0 16 3.666H5.333ZM1.666 5.333a3.674 3.674 0 0 1 3.667-3.667h10.666a3.667 3.667 0 0 1 3.667 3.667v6.666a3.667 3.667 0 0 1-3.667 3.667H8.414l-5.04 5.04A1 1 0 0 1 1.665 20V5.333Z",clipRule:"evenodd"}),(0,x.jsx)("path",{fillRule:"evenodd",d:"M23 12a1 1 0 0 1 1-1h2.667a3.667 3.667 0 0 1 3.667 3.667v14.666a1 1 0 0 1-1.707.708L23.587 25H16a3.667 3.667 0 0 1-3.667-3.667V20a1 1 0 1 1 2 0v1.333A1.667 1.667 0 0 0 16.001 23h8a1 1 0 0 1 .707.293l3.626 3.626V14.667A1.666 1.666 0 0 0 26.667 13h-2.666a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]})),mx=e=>(0,x.jsxs)(Yf.B.svg,{xmlns:"http://www.w3.org/2000/svg",width:"60px",height:"60px",viewBox:"0 0 60 60",fill:"none",children:[(0,x.jsxs)("g",{clipPath:"url(#clip0_6182_31901)",children:[(0,x.jsx)("path",{d:"M58.2669 58.2843C57.5643 58.9862 56.6117 59.3805 55.6185 59.3805C54.6252 59.3805 53.6727 58.9862 52.97 58.2843L40.9512 46.2618L46.2481 40.9648L58.2669 53.002C58.9644 53.704 59.3559 54.6535 59.3559 55.6431C59.3559 56.6327 58.9644 57.5822 58.2669 58.2843Z",fill:"#D3D3D3"}),(0,x.jsx)("path",{d:"M7.60839 7.627C3.97368 11.2654 1.49924 15.8997 0.497831 20.9441C-0.503575 25.9885 0.0130159 31.2166 1.98231 35.9675C3.9516 40.7184 7.28518 44.7788 11.5617 47.6355C15.8382 50.4921 20.8656 52.0168 26.0084 52.0168C31.1513 52.0168 36.1787 50.4921 40.4552 47.6355C44.7317 44.7788 48.0653 40.7184 50.0346 35.9675C52.0038 31.2166 52.5204 25.9885 51.519 20.9441C50.5176 15.8997 48.0432 11.2654 44.4085 7.627C41.993 5.20911 39.1247 3.29099 35.9675 1.98229C32.8103 0.673599 29.4261 0 26.0084 0C22.5907 0 19.2066 0.673599 16.0494 1.98229C12.8922 3.29099 10.0238 5.20911 7.60839 7.627ZM42.9066 42.9252C39.5648 46.2669 35.3072 48.5426 30.6721 49.4646C26.0369 50.3865 21.2325 49.9133 16.8663 48.1047C12.5002 46.2962 8.76833 43.2335 6.14276 39.3041C3.51719 35.3746 2.1158 30.7548 2.1158 26.0289C2.1158 21.303 3.51719 16.6832 6.14276 12.7537C8.76833 8.82423 12.5002 5.76157 16.8663 3.95302C21.2325 2.14447 26.0369 1.67125 30.6721 2.5932C35.3072 3.51515 39.5648 5.79086 42.9066 9.13256C45.1255 11.3514 46.8856 13.9856 48.0864 16.8846C49.2873 19.7837 49.9053 22.8909 49.9053 26.0289C49.9053 29.1668 49.2873 32.274 48.0864 35.1731C46.8856 38.0722 45.1255 40.7064 42.9066 42.9252Z",fill:"#D3D3D3"})]}),(0,x.jsx)("defs",{children:(0,x.jsx)("clipPath",{id:"clip0_6182_31901",children:(0,x.jsx)("rect",{width:"60",height:"60",fill:"white"})})})]});uy.displayName="Logo",dy.displayName="Shortcode",py.displayName="SmartTag",yy.displayName="ArrowRight",dx.displayName="Lock",px.displayName="Megaphone",lx.displayName="Notice",sx.displayName="Testimonial",ax.displayName="Map",ix.displayName="Slider",ox.displayName="CTA",nx.displayName="Progress",rx.displayName="Timeline",tx.displayName="Blockquote",Qy.displayName="Headphones",Jy.displayName="EVF",Ky.displayName="MagazineBlocks",Xy.displayName="Blockart",ex.displayName="Masteriyo",Gy.displayName="UR",Yy.displayName="Chat",Zy.displayName="Bulb",qy.displayName="Star",Wy.displayName="Video",Uy.displayName="DocsLines",$y.displayName="Docs",Vy.displayName="ExternalLink",Hy.displayName="CirclesInsideCircle",xy.displayName="DotsHorizontal",fy.displayName="Search",my.displayName="Cog",hy.displayName="Meter",gy.displayName="ArrowsRepeat",vy.displayName="ArrowsUpDown",by.displayName="Links",wy.displayName="ArrowRightFill",_y.displayName="ArrowLeftFill",Cy.displayName="QuestionCircleFill",Sy.displayName="Buttons",ky.displayName="Countdown",Ry.displayName="Counter",Ey.displayName="Minus",Ay.displayName="Add",Oy.displayName="Heading",Py.displayName="Paragraph",Ty.displayName="Section",Dy.displayName="Spacing",My.displayName="Tabs",Ny.displayName="Lottie",By.displayName="InfoBox",Iy.displayName="Image",Ly.displayName="TableOfContents",zy.displayName="SocialShare",Fy.displayName="Team",jy.displayName="ThreeCircleNodes",cx.displayName="IconList",ux.displayName="Icon",mx.displayName="PageNotFound",fx.displayName="Support";var hx=a(354),gx=(0,em.R)((e,t)=>(0,x.jsx)(hx.B,{align:"center",...e,direction:"row",ref:t}));function vx(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}gx.displayName="HStack";var bx=Object.defineProperty,yx=(e,t,r)=>(((e,t,r)=>{t in e?bx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);function xx(e){return e.sort((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function wx(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Cx(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var Sx="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,jx=class{constructor(){yx(this,"descendants",new Map),yx(this,"register",e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}}),yx(this,"unregister",e=>{this.descendants.delete(e);const t=xx(Array.from(this.descendants.keys()));this.assignIndex(t)}),yx(this,"destroy",()=>{this.descendants.clear()}),yx(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),yx(this,"count",()=>this.descendants.size),yx(this,"enabledCount",()=>this.enabledValues().length),yx(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),yx(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),yx(this,"item",e=>{if(0!==this.count())return this.values()[e]}),yx(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),yx(this,"first",()=>this.item(0)),yx(this,"firstEnabled",()=>this.enabledItem(0)),yx(this,"last",()=>this.item(this.descendants.size-1)),yx(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),yx(this,"indexOf",e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1}),yx(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),yx(this,"next",(e,t=!0)=>{const r=wx(e,this.count(),t);return this.item(r)}),yx(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=wx(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)}),yx(this,"prev",(e,t=!0)=>{const r=Cx(e,this.count()-1,t);return this.item(r)}),yx(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=Cx(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)}),yx(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=xx(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)})}},[kx,Rx]=(0,j.q)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Ex(){return[kx,()=>Rx(),()=>function(){const t=(0,e.useRef)(new jx);return Sx(()=>()=>t.current.destroy()),t.current}(),t=>function(t){const r=Rx(),[n,o]=(0,e.useState)(-1),i=(0,e.useRef)(null);Sx(()=>()=>{i.current&&r.unregister(i.current)},[]),Sx(()=>{if(!i.current)return;const e=Number(i.current.dataset.index);n==e||Number.isNaN(e)||o(e)});const a=t?r.register(t):r.register;return{descendants:r,index:n,enabledIndex:r.enabledIndexOf(i.current),register:(0,Hm.Px)(a,i)}}(t)]}function Ax(e){const t=e.current;if(!t)return!1;const r=Qg(t).activeElement;return!(!r||t.contains(r)||(n=r,!(n&&Jg(n)&&rv(n))||(e=>ev(e)&&-1===e.tabIndex)(n)));var n}var Ox=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Px={arrowShadowColor:Ox("--popper-arrow-shadow-color"),arrowSize:Ox("--popper-arrow-size","8px"),arrowSizeHalf:Ox("--popper-arrow-size-half"),arrowBg:Ox("--popper-arrow-bg"),transformOrigin:Ox("--popper-transform-origin"),arrowOffset:Ox("--popper-arrow-offset")},Tx={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Dx={scroll:!0,resize:!0};function Mx(e){let t;return t="object"==typeof e?{enabled:!0,options:{...Dx,...e}}:{enabled:e,options:Dx},t}var Nx={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Bx={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ix(e)},effect:({state:e})=>()=>{Ix(e)}},Ix=e=>{var t;e.elements.popper.style.setProperty(Px.transformOrigin.var,(t=e.placement,Tx[t]))},Lx={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{zx(e)}},zx=e=>{var t;if(!e.placement)return;const r=Fx(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Px.arrowSize.varRef,height:Px.arrowSize.varRef,zIndex:-1});const t={[Px.arrowSizeHalf.var]:`calc(${Px.arrowSize.varRef} / 2 - 1px)`,[Px.arrowOffset.var]:`calc(${Px.arrowSizeHalf.varRef} * -1)`};for(const r in t)e.elements.arrow.style.setProperty(r,t[r])}},Fx=e=>e.startsWith("top")?{property:"bottom",value:Px.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:Px.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:Px.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:Px.arrowOffset.varRef}:void 0,Hx={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Vx(e)},effect:({state:e})=>()=>{Vx(e)}},Vx=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=(n=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var n;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Px.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},$x={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ux={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Wx(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qx(e){return e instanceof Wx(e).Element||e instanceof Element}function Zx(e){return e instanceof Wx(e).HTMLElement||e instanceof HTMLElement}function Yx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wx(e).ShadowRoot||e instanceof ShadowRoot)}var Gx=Math.max,Xx=Math.min,Kx=Math.round;function Jx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qx(){return!/^((?!chrome|android).)*safari/i.test(Jx())}function ew(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Zx(e)&&(o=e.offsetWidth>0&&Kx(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Kx(n.height)/e.offsetHeight||1);var a=(qx(e)?Wx(e):window).visualViewport,s=!Qx()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,d=n.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function tw(e){var t=Wx(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rw(e){return e?(e.nodeName||"").toLowerCase():null}function nw(e){return((qx(e)?e.ownerDocument:e.document)||window.document).documentElement}function ow(e){return ew(nw(e)).left+tw(e).scrollLeft}function iw(e){return Wx(e).getComputedStyle(e)}function aw(e){var t=iw(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function sw(e,t,r){void 0===r&&(r=!1);var n,o,i=Zx(t),a=Zx(t)&&function(e){var t=e.getBoundingClientRect(),r=Kx(t.width)/e.offsetWidth||1,n=Kx(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=nw(t),l=ew(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==rw(t)||aw(s))&&(c=(n=t)!==Wx(n)&&Zx(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:tw(n)),Zx(t)?((u=ew(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=ow(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function lw(e){var t=ew(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function cw(e){return"html"===rw(e)?e:e.assignedSlot||e.parentNode||(Yx(e)?e.host:null)||nw(e)}function uw(e){return["html","body","#document"].indexOf(rw(e))>=0?e.ownerDocument.body:Zx(e)&&aw(e)?e:uw(cw(e))}function dw(e,t){var r;void 0===t&&(t=[]);var n=uw(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Wx(n),a=o?[i].concat(i.visualViewport||[],aw(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(dw(cw(a)))}function pw(e){return["table","td","th"].indexOf(rw(e))>=0}function fw(e){return Zx(e)&&"fixed"!==iw(e).position?e.offsetParent:null}function mw(e){for(var t=Wx(e),r=fw(e);r&&pw(r)&&"static"===iw(r).position;)r=fw(r);return r&&("html"===rw(r)||"body"===rw(r)&&"static"===iw(r).position)?t:r||function(e){var t=/firefox/i.test(Jx());if(/Trident/i.test(Jx())&&Zx(e)&&"fixed"===iw(e).position)return null;var r=cw(e);for(Yx(r)&&(r=r.host);Zx(r)&&["html","body"].indexOf(rw(r))<0;){var n=iw(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var hw="top",gw="bottom",vw="right",bw="left",yw="auto",xw=[hw,gw,vw,bw],ww="start",_w="end",Cw="viewport",Sw="popper",jw=xw.reduce(function(e,t){return e.concat([t+"-"+ww,t+"-"+_w])},[]),kw=[].concat(xw,[yw]).reduce(function(e,t){return e.concat([t,t+"-"+ww,t+"-"+_w])},[]),Rw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ew(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var Aw={placement:"bottom",modifiers:[],strategy:"absolute"};function Ow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Pw(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Aw:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Aw,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:qx(e)?dw(e):e.contextElement?dw(e.contextElement):[],popper:dw(t)};var a,c,p=function(e){var t=Ew(e);return Rw.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),c=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:n});l.push(i||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(Ow(t,r)){s.rects={reference:sw(t,mw(r),"fixed"===s.options.strategy),popper:lw(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),c=!0}};if(!Ow(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Tw={passive:!0};const Dw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=Wx(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,Tw)}),s&&l.addEventListener("resize",r.update,Tw),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,Tw)}),s&&l.removeEventListener("resize",r.update,Tw)}},data:{}};function Mw(e){return e.split("-")[0]}function Nw(e){return e.split("-")[1]}function Bw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Iw(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Mw(o):null,a=o?Nw(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case hw:t={x:s,y:r.y-n.height};break;case gw:t={x:s,y:r.y+r.height};break;case vw:t={x:r.x+r.width,y:l};break;case bw:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Bw(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ww:t[c]=t[c]-(r[u]/2-n[u]/2);break;case _w:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}const Lw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Iw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var zw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fw(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=bw,x=hw,w=window;if(c){var _=mw(r),C="clientHeight",S="clientWidth";_===Wx(r)&&"static"!==iw(_=nw(r)).position&&"absolute"===s&&(C="scrollHeight",S="scrollWidth"),(o===hw||(o===bw||o===vw)&&i===_w)&&(x=gw,h-=(d&&_===w&&w.visualViewport?w.visualViewport.height:_[C])-n.height,h*=l?1:-1),o!==bw&&(o!==hw&&o!==gw||i!==_w)||(y=vw,f-=(d&&_===w&&w.visualViewport?w.visualViewport.width:_[S])-n.width,f*=l?1:-1)}var j,k=Object.assign({position:s},c&&zw),R=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Kx(r*o)/o||0,y:Kx(n*o)/o||0}}({x:f,y:h},Wx(r)):{x:f,y:h};return f=R.x,h=R.y,l?Object.assign({},k,((j={})[x]=b?"0":"",j[y]=v?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",j)):Object.assign({},k,((t={})[x]=b?h+"px":"",t[y]=v?f+"px":"",t.transform="",t))}const Hw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:Mw(t.placement),variation:Nw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Fw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Vw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Zx(o)&&rw(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});Zx(n)&&rw(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},$w={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=kw.reduce(function(e,r){return e[r]=function(e,t,r){var n=Mw(e),o=[bw,hw].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[bw,vw].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Uw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ww(e){return e.replace(/left|right|bottom|top/g,function(e){return Uw[e]})}var qw={start:"end",end:"start"};function Zw(e){return e.replace(/start|end/g,function(e){return qw[e]})}function Yw(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Yx(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Gw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xw(e,t,r){return t===Cw?Gw(function(e,t){var r=Wx(e),n=nw(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Qx();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+ow(e),y:l}}(e,r)):qx(t)?function(e,t){var r=ew(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Gw(function(e){var t,r=nw(e),n=tw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Gx(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gx(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ow(e),l=-n.scrollTop;return"rtl"===iw(o||r).direction&&(s+=Gx(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(nw(e)))}function Kw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Jw(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function Qw(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?Cw:c,d=r.elementContext,p=void 0===d?Sw:d,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,g=void 0===h?0:h,v=Kw("number"!=typeof g?g:Jw(g,xw)),b=p===Sw?"reference":Sw,y=e.rects.popper,x=e.elements[m?b:p],w=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=dw(cw(e)),r=["absolute","fixed"].indexOf(iw(e).position)>=0&&Zx(e)?mw(e):e;return qx(r)?t.filter(function(e){return qx(e)&&Yw(e,r)&&"body"!==rw(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Xw(e,r,n);return t.top=Gx(o.top,t.top),t.right=Xx(o.right,t.right),t.bottom=Xx(o.bottom,t.bottom),t.left=Gx(o.left,t.left),t},Xw(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(qx(x)?x:x.contextElement||nw(e.elements.popper),l,u,a),_=ew(e.elements.reference),C=Iw({reference:_,element:y,strategy:"absolute",placement:o}),S=Gw(Object.assign({},y,C)),j=p===Sw?S:_,k={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},R=e.modifiersData.offset;if(p===Sw&&R){var E=R[o];Object.keys(k).forEach(function(e){var t=[vw,gw].indexOf(e)>=0?1:-1,r=[hw,gw].indexOf(e)>=0?"y":"x";k[e]+=E[r]*t})}return k}const e_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,g=t.options.placement,v=Mw(g),b=l||(v!==g&&m?function(e){if(Mw(e)===yw)return[];var t=Ww(e);return[Zw(e),t,Zw(t)]}(g):[Ww(g)]),y=[g].concat(b).reduce(function(e,r){return e.concat(Mw(r)===yw?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?kw:l,u=Nw(n),d=u?s?jw:jw.filter(function(e){return Nw(e)===u}):xw,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,r){return t[r]=Qw(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Mw(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)},[]),x=t.rects.reference,w=t.rects.popper,_=new Map,C=!0,S=y[0],j=0;j<y.length;j++){var k=y[j],R=Mw(k),E=Nw(k)===ww,A=[hw,gw].indexOf(R)>=0,O=A?"width":"height",P=Qw(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=A?E?vw:bw:E?gw:hw;x[O]>w[O]&&(T=Ww(T));var D=Ww(T),M=[];if(i&&M.push(P[R]<=0),s&&M.push(P[T]<=0,P[D]<=0),M.every(function(e){return e})){S=k,C=!1;break}_.set(k,M)}if(C)for(var N=function(e){var t=y.find(function(t){var r=_.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},B=m?3:1;B>0&&"break"!==N(B);B--);t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function t_(e,t,r){return Gx(e,Xx(t,r))}const r_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,g=Qw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Mw(t.placement),b=Nw(t.placement),y=!b,x=Bw(v),w="x"===x?"y":"x",_=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,j="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(_){if(i){var A,O="y"===x?hw:bw,P="y"===x?gw:vw,T="y"===x?"height":"width",D=_[x],M=D+g[O],N=D-g[P],B=f?-S[T]/2:0,I=b===ww?C[T]:S[T],L=b===ww?-S[T]:-C[T],z=t.elements.arrow,F=f&&z?lw(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[O],$=H[P],U=t_(0,C[T],F[T]),W=y?C[T]/2-B-U-V-k.mainAxis:I-U-V-k.mainAxis,q=y?-C[T]/2+B+U+$+k.mainAxis:L+U+$+k.mainAxis,Z=t.elements.arrow&&mw(t.elements.arrow),Y=Z?"y"===x?Z.clientTop||0:Z.clientLeft||0:0,G=null!=(A=null==R?void 0:R[x])?A:0,X=D+q-G,K=t_(f?Xx(M,D+W-G-Y):M,D,f?Gx(N,X):N);_[x]=K,E[x]=K-D}if(s){var J,Q="x"===x?hw:bw,ee="x"===x?gw:vw,te=_[w],re="y"===w?"height":"width",ne=te+g[Q],oe=te-g[ee],ie=-1!==[hw,bw].indexOf(v),ae=null!=(J=null==R?void 0:R[w])?J:0,se=ie?ne:te-C[re]-S[re]-ae+k.altAxis,le=ie?te+C[re]+S[re]-ae-k.altAxis:oe,ce=f&&ie?function(e,t,r){var n=t_(e,t,r);return n>r?r:n}(se,te,le):t_(f?se:ne,te,f?le:oe);_[w]=ce,E[w]=ce-te}t.modifiersData[n]=E}},requiresIfExists:["offset"]},n_={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Mw(r.placement),l=Bw(s),c=[bw,vw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Kw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Jw(e,xw))}(o.padding,r),d=lw(i),p="y"===l?hw:bw,f="y"===l?gw:vw,m=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],h=a[l]-r.rects.reference[l],g=mw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[p],x=v-d[c]-u[f],w=v/2-d[c]/2+b,_=t_(y,w,x),C=l;r.modifiersData[n]=((t={})[C]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Yw(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function o_(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function i_(e){return[hw,vw,gw,bw].some(function(t){return e[t]>=0})}const a_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Qw(t,{elementContext:"reference"}),s=Qw(t,{altBoundary:!0}),l=o_(a,n),c=o_(s,o,i),u=i_(l),d=i_(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var s_=Pw({defaultModifiers:[Dw,Lw,Hw,Vw,$w,e_,r_,n_,a_]});function l_(t={}){const{enabled:r=!0,modifiers:n,placement:o="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:p=!0,matchWidth:f,direction:m="ltr"}=t,h=(0,e.useRef)(null),g=(0,e.useRef)(null),v=(0,e.useRef)(null),b=function(e,t="ltr"){var r,n;const o=(null==(r=$x[e])?void 0:r[t])||e;return"ltr"===t?o:null!=(n=Ux[e])?n:o}(o,m),y=(0,e.useRef)(()=>{}),x=(0,e.useCallback)(()=>{var e;r&&h.current&&g.current&&(null==(e=y.current)||e.call(y),v.current=s_(h.current,g.current,{placement:b,modifiers:[Hx,Lx,Bx,{...Nx,enabled:!!f},{name:"eventListeners",...Mx(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=l?l:[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!p,options:{boundary:d}},...null!=n?n:[]],strategy:i}),v.current.forceUpdate(),y.current=v.current.destroy)},[b,r,n,f,s,a,l,c,u,p,d,i]);(0,e.useEffect)(()=>()=>{var e;h.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)},[]);const w=(0,e.useCallback)(e=>{h.current=e,x()},[x]),_=(0,e.useCallback)((e={},t=null)=>({...e,ref:(0,Hm.Px)(w,t)}),[w]),C=(0,e.useCallback)(e=>{g.current=e,x()},[x]),S=(0,e.useCallback)((e={},t=null)=>({...e,ref:(0,Hm.Px)(C,t),style:{...e.style,position:i,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[i,C,f]),j=(0,e.useCallback)((e={},t=null)=>{const{size:r,shadowColor:n,bg:o,style:i,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:c_(e)}},[]),k=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:Px.transformOrigin.varRef,referenceRef:w,popperRef:C,getPopperProps:S,getArrowProps:j,getArrowInnerProps:k,getReferenceProps:_}}function c_(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function u_(t={}){const{onClose:r,onOpen:n,isOpen:o,id:i}=t,a=(0,os.c)(n),s=(0,os.c)(r),[l,c]=(0,e.useState)(t.defaultIsOpen||!1),u=void 0!==o?o:l,d=void 0!==o,p=(0,e.useId)(),f=null!=i?i:`disclosure-${p}`,m=(0,e.useCallback)(()=>{d||c(!1),null==s||s()},[d,s]),h=(0,e.useCallback)(()=>{d||c(!0),null==a||a()},[d,a]),g=(0,e.useCallback)(()=>{u?m():h()},[u,h,m]);return{isOpen:u,onOpen:h,onClose:m,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":f,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:f}}}}function d_(e,t){var r;const n=e.target;return!(n&&!p_(n).contains(n))&&!(null==(r=t.current)?void 0:r.contains(n))}function p_(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var f_=a(2364);var[m_,h_,g_,v_]=Ex(),[b_,y_]=(0,j.q)({strict:!1,name:"MenuContext"});function x_(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function w_(e){return x_(e).activeElement===e}function C_(t={}){const{id:r,closeOnSelect:n=!0,closeOnBlur:o=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:s,isOpen:l,defaultIsOpen:c,onClose:u,onOpen:d,placement:p="bottom-start",lazyBehavior:f="unmount",direction:m,computePositionOnMount:h=!1,...g}=t,v=(0,e.useRef)(null),b=(0,e.useRef)(null),y=g_(),x=(0,e.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})})},[]),w=(0,e.useCallback)(()=>{const e=setTimeout(()=>{var e;if(i)null==(e=i.current)||e.focus();else{const e=y.firstEnabled();e&&O(e.index)}});N.current.add(e)},[y,i]),_=(0,e.useCallback)(()=>{const e=setTimeout(()=>{const e=y.lastEnabled();e&&O(e.index)});N.current.add(e)},[y]),C=(0,e.useCallback)(()=>{null==d||d(),a?w():x()},[a,w,x,d]),{isOpen:S,onOpen:j,onClose:k,onToggle:R}=u_({isOpen:l,defaultIsOpen:c,onClose:u,onOpen:C});!function(t){const{ref:r,handler:n,enabled:o=!0}=t,i=(0,os.c)(n),a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,e.useEffect)(()=>{if(!o)return;const e=e=>{d_(e,r)&&(a.isPointerDown=!0)},t=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&n&&d_(e,r)&&(a.isPointerDown=!1,i(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&d_(e,r)&&(a.isPointerDown=!1,i(e))},l=p_(r.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",t,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",t,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,r,i,a,o])}({enabled:S&&o,ref:v,handler:e=>{var t;(null==(t=b.current)?void 0:t.contains(e.target))||k()}});const E=l_({...g,enabled:S||h,placement:p,direction:m}),[A,O]=(0,e.useState)(-1);(0,is.w)(()=>{S||O(-1)},[S]),function(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,i=r&&!n;(0,is.w)(()=>{if(!i)return;if(Ax(e))return;const t=(null==o?void 0:o.current)||e.current;let r;return t?(r=requestAnimationFrame(()=>{t.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(r)}):void 0},[i,e,o])}(v,{focusRef:b,visible:S,shouldFocus:!0});const P=function(t){const{isOpen:r,ref:n}=t,[o,i]=(0,e.useState)(r),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{a||(i(r),s(!0))},[r,a,o]),(0,f_.M)(()=>n.current,"animationend",()=>{i(r)}),{present:!(!r&&!o),onComplete(){var e;const t=function(e){var t,r;return null!=(r=null==(t=Qg(e))?void 0:t.defaultView)?r:window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}({isOpen:S,ref:v}),[T,D]=function(t,...r){const n=(0,e.useId)(),o=t||n;return(0,e.useMemo)(()=>r.map(e=>`${e}-${o}`),[o,r])}(r,"menu-button","menu-list"),M=(0,e.useCallback)(()=>{j(),x()},[j,x]),N=(0,e.useRef)(new Set([]));(0,e.useEffect)(()=>{const e=N.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);const B=(0,e.useCallback)(()=>{j(),w()},[w,j]),I=(0,e.useCallback)(()=>{j(),_()},[j,_]),L=(0,e.useCallback)(()=>{var e,t;const r=x_(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!S||n)return;const o=null==(t=y.item(A))?void 0:t.node;null==o||o.focus({preventScroll:!0})},[S,A,y]),z=(0,e.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:B,openAndFocusLastItem:I,onTransitionEnd:L,unstable__animationState:P,descendants:y,popper:E,buttonId:T,menuId:D,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:S,onToggle:R,onOpen:j,onClose:k,menuRef:v,buttonRef:b,focusedIndex:A,closeOnSelect:n,closeOnBlur:o,autoSelect:a,setFocusedIndex:O,isLazy:s,lazyBehavior:f,initialFocusRef:i,rafId:z}}function S_(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;return e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function j_(t={},r=null){const{onMouseEnter:n,onMouseMove:o,onMouseLeave:i,onClick:a,onFocus:s,isDisabled:l,isFocusable:c,closeOnSelect:u,type:d,...p}=t,f=y_(),{setFocusedIndex:m,focusedIndex:h,closeOnSelect:g,onClose:v,menuRef:b,isOpen:y,menuId:x,rafId:w}=f,_=(0,e.useRef)(null),C=`${x}-menuitem-${(0,e.useId)()}`,{index:S,register:j}=v_({disabled:l&&!c}),k=(0,e.useCallback)(e=>{null==n||n(e),l||m(S)},[m,S,l,n]),R=(0,e.useCallback)(e=>{null==o||o(e),_.current&&!w_(_.current)&&k(e)},[k,o]),E=(0,e.useCallback)(e=>{null==i||i(e),l||m(-1)},[m,l,i]),A=(0,e.useCallback)(e=>{null==a||a(e),S_(e.currentTarget)&&(null!=u?u:g)&&v()},[v,a,g,u]),O=(0,e.useCallback)(e=>{null==s||s(e),m(S)},[m,s,S]),P=S===h,T=l&&!c;(0,is.w)(()=>{if(y)return P&&!T&&_.current?(w.current&&cancelAnimationFrame(w.current),w.current=requestAnimationFrame(()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0}),w.current=null})):b.current&&!w_(b.current)&&b.current.focus({preventScroll:!0}),()=>{w.current&&cancelAnimationFrame(w.current)}},[P,T,b,y]);const D=function(t={}){const{ref:r,isDisabled:n,isFocusable:o,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:l,onClick:c,onKeyDown:u,onKeyUp:d,tabIndex:p,onMouseOver:f,onMouseLeave:m,...h}=t,[g,v]=(0,e.useState)(!0),[b,y]=(0,e.useState)(!1),x=function(){const t=(0,e.useRef)(new Map),r=t.current,n=(0,e.useCallback)((e,r,n,o)=>{t.current.set(n,{type:r,el:e,options:o}),e.addEventListener(r,n,o)},[]),o=(0,e.useCallback)((e,r,n,o)=>{e.removeEventListener(r,n,o),t.current.delete(n)},[]);return(0,e.useEffect)(()=>()=>{r.forEach((e,t)=>{o(e.el,e.type,t,e.options)})},[o,r]),{add:n,remove:o}}(),w=g?p:p||0,_=n&&!o,C=(0,e.useCallback)(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==c||c(e)},[n,c]),S=(0,e.useCallback)(e=>{b&&vx(e)&&(e.preventDefault(),e.stopPropagation(),y(!1),x.remove(document,"keyup",S,!1))},[b,x]),j=(0,e.useCallback)(e=>{if(null==u||u(e),n||e.defaultPrevented||e.metaKey)return;if(!vx(e.nativeEvent)||g)return;const t=i&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),y(!0)),t&&(e.preventDefault(),e.currentTarget.click()),x.add(document,"keyup",S,!1)},[n,g,u,i,a,x,S]),k=(0,e.useCallback)(e=>{null==d||d(e),n||e.defaultPrevented||e.metaKey||vx(e.nativeEvent)&&!g&&a&&" "===e.key&&(e.preventDefault(),y(!1),e.currentTarget.click())},[a,g,n,d]),R=(0,e.useCallback)(e=>{0===e.button&&(y(!1),x.remove(document,"mouseup",R,!1))},[x]),E=(0,e.useCallback)(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();g||y(!0),e.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",R,!1),null==s||s(e)}},[n,g,s,x,R]),A=(0,e.useCallback)(e=>{0===e.button&&(g||y(!1),null==l||l(e))},[l,g]),O=(0,e.useCallback)(e=>{n?e.preventDefault():null==f||f(e)},[n,f]),P=(0,e.useCallback)(e=>{b&&(e.preventDefault(),y(!1)),null==m||m(e)},[b,m]),T=(0,Hm.Px)(r,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return g?{...h,ref:T,type:"button","aria-disabled":_?void 0:n,disabled:_,onClick:C,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:u,onMouseOver:f,onMouseLeave:m}:{...h,ref:T,role:"button","data-active":(0,Ie.sE)(b),"aria-disabled":n?"true":void 0,tabIndex:_?void 0:w,onClick:C,onMouseDown:E,onMouseUp:A,onKeyUp:k,onKeyDown:j,onMouseOver:O,onMouseLeave:P}}({onClick:A,onFocus:O,onMouseEnter:k,onMouseMove:R,onMouseLeave:E,ref:(0,Hm.Px)(j,_,r),isDisabled:l,isFocusable:c});return{...p,...D,type:null!=d?d:D.type,id:C,role:"menuitem",tabIndex:P?0:-1}}var[k_,R_]=(0,j.q)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),E_=t=>{const{children:r}=t,n=(0,tm.o5)("Menu",t),o=(0,O.MN)(t),{direction:i}=(0,Gm.D)(),{descendants:a,...s}=C_({...o,direction:i}),l=(0,e.useMemo)(()=>s,[s]),{isOpen:c,onClose:u,forceUpdate:d}=l;return(0,x.jsx)(m_,{value:a,children:(0,x.jsx)(b_,{value:l,children:(0,x.jsx)(k_,{value:n,children:(0,Ie.Jg)(r,{isOpen:c,onClose:u,forceUpdate:d})})})})};E_.displayName="Menu";var A_=(0,em.R)((e,t)=>{const r=R_();return(0,x.jsx)(Yf.B.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),O_=(0,em.R)((t,r)=>{const{children:n,as:o,...i}=t,a=function(t={},r=null){const n=y_(),{onToggle:o,popper:i,openAndFocusFirstItem:a,openAndFocusLastItem:s}=n,l=(0,e.useCallback)(e=>{const t=e.key,r={Enter:a,ArrowDown:a,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))},[a,s]);return{...t,ref:(0,Hm.Px)(n.buttonRef,r,i.referenceRef),id:n.buttonId,"data-active":(0,Ie.sE)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,Ie.Hj)(t.onClick,o),onKeyDown:(0,Ie.Hj)(t.onKeyDown,l)}}(i,r),s=o||A_;return(0,x.jsx)(s,{...a,className:(0,Ie.cx)("chakra-menu__menu-button",t.className),children:(0,x.jsx)(Yf.B.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:t.children})})});O_.displayName="MenuButton";var[P_,T_]=(0,j.q)({strict:!1,name:"ButtonGroupContext"});function D_(t){const{children:r,className:n,...o}=t,i=(0,e.isValidElement)(r)?(0,e.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):r,a=(0,Ie.cx)("chakra-button__icon",n);return(0,x.jsx)(Yf.B.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function M_(t){const{label:r,placement:n,spacing:o="0.5rem",children:i=(0,x.jsx)(nm,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...l}=t,c=(0,Ie.cx)("chakra-button__spinner",a),u="start"===n?"marginEnd":"marginStart",d=(0,e.useMemo)(()=>({display:"flex",alignItems:"center",position:r?"relative":"absolute",[u]:r?o:0,fontSize:"1em",lineHeight:"normal",...s}),[s,r,u,o]);return(0,x.jsx)(Yf.B.div,{className:c,...l,__css:d,children:i})}D_.displayName="ButtonIcon",M_.displayName="ButtonSpinner";var N_=(0,em.R)((t,r)=>{const n=T_(),o=(0,tm.Vl)("Button",{...n,...t}),{isDisabled:i=(null==n?void 0:n.isDisabled),isLoading:a,isActive:s,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:p="0.5rem",type:f,spinner:m,spinnerPlacement:h="start",className:g,as:v,...b}=(0,O.MN)(t),y=(0,e.useMemo)(()=>{const e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:e}}},[o,n]),{ref:w,type:_}=function(t){const[r,n]=(0,e.useState)(!t);return{ref:(0,e.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:r?"button":void 0}}(v),C={rightIcon:u,leftIcon:c,iconSpacing:p,children:l};return(0,x.jsxs)(Yf.B.button,{ref:(0,Hm.SV)(r,w),as:v,type:null!=f?f:_,"data-active":(0,Ie.sE)(s),"data-loading":(0,Ie.sE)(a),__css:y,className:(0,Ie.cx)("chakra-button",g),...b,disabled:i||a,children:[a&&"start"===h&&(0,x.jsx)(M_,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:p,children:m}),a?d||(0,x.jsx)(Yf.B.span,{opacity:0,children:(0,x.jsx)(B_,{...C})}):(0,x.jsx)(B_,{...C}),a&&"end"===h&&(0,x.jsx)(M_,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:p,children:m})]})});function B_(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return(0,x.jsxs)(x.Fragment,{children:[t&&(0,x.jsx)(D_,{marginEnd:o,children:t}),n,r&&(0,x.jsx)(D_,{marginStart:o,children:r})]})}N_.displayName="Button";var I_=(0,em.R)((t,r)=>{const{icon:n,children:o,isRound:i,"aria-label":a,...s}=t,l=n||o,c=(0,e.isValidElement)(l)?(0,e.cloneElement)(l,{"aria-hidden":!0,focusable:!1}):null;return(0,x.jsx)(N_,{padding:"0",borderRadius:i?"full":void 0,ref:r,"aria-label":a,...s,children:c})});I_.displayName="IconButton";var L_={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},z_=(0,Yf.B)(Zf.div),F_=(0,em.R)(function(t,r){var n,o;const{rootProps:i,motionProps:a,...s}=t,{isOpen:l,onTransitionEnd:c,unstable__animationState:u}=y_(),d=function(t={},r=null){const n=y_();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:o,setFocusedIndex:i,menuRef:a,isOpen:s,onClose:l,menuId:c,isLazy:u,lazyBehavior:d,unstable__animationState:p}=n,f=h_(),m=function(t={}){const{timeout:r=300,preventDefault:n=()=>!0}=t,[o,i]=(0,e.useState)([]),a=(0,e.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return(0,e.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){const e=[...o];return e.pop(),void i(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){const l=o.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(l),e(l.join("")),s(),a.current=setTimeout(()=>{i([]),a.current=null},r)}}}}({preventDefault:e=>" "!==e.key&&S_(e.target)}),h=(0,e.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;const t=e.key,r={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{const e=f.nextEnabled(o);e&&i(e.index)},ArrowUp:()=>{const e=f.prevEnabled(o);e&&i(e.index)}}[t];if(r)return e.preventDefault(),void r(e);const n=m(e=>{const t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(n)?(t=o.indexOf(n)+1,t===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return n}(f.values(),e,e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""},f.item(o));if(t){const e=f.indexOf(t.node);i(e)}});S_(e.target)&&n(e)},[f,o,m,l,i]),g=(0,e.useRef)(!1);s&&(g.current=!0);const v=function(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!r||!!n||!("keepMounted"!==o||!t)}({wasSelected:g.current,enabled:u,mode:d,isSelected:p.present});return{...t,ref:(0,Hm.Px)(a,r),children:v?t.children:null,tabIndex:-1,role:"menu",id:c,style:{...t.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,Ie.Hj)(t.onKeyDown,h)}}(s,r),p=function(e={}){const{popper:t,isOpen:r}=y_();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(i),f=R_();return(0,x.jsx)(Yf.B.div,{...p,__css:{zIndex:null!=(o=t.zIndex)?o:null==(n=f.list)?void 0:n.zIndex},children:(0,x.jsx)(z_,{variants:L_,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...f.list},...a,className:(0,Ie.cx)("chakra-menu__menu-list",d.className),...d,onUpdate:c,onAnimationComplete:(0,Ie.OK)(u.onComplete,d.onAnimationComplete)})})});F_.displayName="MenuList";var H_=(0,em.R)((e,t)=>{const r=R_();return(0,x.jsx)(Yf.B.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});H_.displayName="MenuCommand";var V_=(0,em.R)((t,r)=>{const{type:n,...o}=t,i=R_(),a=o.as||n?null!=n?n:void 0:"button",s=(0,e.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return(0,x.jsx)(Yf.B.button,{ref:r,type:a,...o,__css:s})}),$_=t=>{const{className:r,children:n,...o}=t,i=R_(),a=e.Children.only(n),s=(0,e.isValidElement)(a)?(0,e.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:(0,Ie.cx)("chakra-menu__icon",a.props.className)}):null,l=(0,Ie.cx)("chakra-menu__icon-wrapper",r);return(0,x.jsx)(Yf.B.span,{className:l,...o,__css:i.icon,children:s})};$_.displayName="MenuIcon";var U_=(0,em.R)((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:i="0.75rem",children:a,...s}=e,l=j_(s,t),c=r||o?(0,x.jsx)("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return(0,x.jsxs)(V_,{...l,className:(0,Ie.cx)("chakra-menu__menuitem",l.className),children:[r&&(0,x.jsx)($_,{fontSize:"0.8em",marginEnd:n,children:r}),c,o&&(0,x.jsx)(H_,{marginStart:i,children:o})]})});U_.displayName="MenuItem";var W_=a(2736),q_=a.n(W_);q_().any,q_().arrayOf(q_().shape({label:q_().string.isRequired,route:q_().string.isRequired})).isRequired;var Z_=(0,Yf.B)("div");Z_.displayName="Box";var Y_=(0,em.R)(function(e,t){const{size:r,centerContent:n=!0,...o}=e,i=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,x.jsx)(Z_,{ref:t,boxSize:r,__css:{...i,flexShrink:0,flexGrow:0},...o})});Y_.displayName="Square";var G_=(0,em.R)(function(e,t){const{size:r,...n}=e;return(0,x.jsx)(Y_,{size:r,ref:t,borderRadius:"9999px",...n})});G_.displayName="Circle";var X_=(0,em.R)(function(e,t){const r=(0,tm.Vl)("Heading",e),{className:n,...o}=(0,O.MN)(e);return(0,x.jsx)(Yf.B.h2,{ref:t,className:(0,Ie.cx)("chakra-heading",e.className),...o,__css:r})});X_.displayName="Heading";var K_=a(174),J_=(0,em.R)(function(e,t){const r=(0,tm.Vl)("Text",e),{className:n,align:o,decoration:i,casing:a,...s}=(0,O.MN)(e),l=(0,K_.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,x.jsx)(Yf.B.p,{ref:t,className:(0,Ie.cx)("chakra-text",e.className),...l,...s,__css:r})});J_.displayName="Text";var[Q_,eC]=(0,j.q)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tag />\" "}),tC=(0,em.R)((e,t)=>{const r=(0,tm.o5)("Tag",e),n=(0,O.MN)(e),o={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return(0,x.jsx)(Q_,{value:r,children:(0,x.jsx)(Yf.B.span,{ref:t,...n,__css:o})})});tC.displayName="Tag";var rC=(0,em.R)((e,t)=>{const r=eC();return(0,x.jsx)(Yf.B.span,{ref:t,noOfLines:1,...e,__css:r.label})});rC.displayName="TagLabel",(0,em.R)((e,t)=>(0,x.jsx)(Jf.I,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e})).displayName="TagLeftIcon",(0,em.R)((e,t)=>(0,x.jsx)(Jf.I,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var nC=e=>(0,x.jsx)(Jf.I,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});nC.displayName="TagCloseIcon",(0,em.R)((e,t)=>{const{isDisabled:r,children:n,...o}=e,i={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...eC().closeButton};return(0,x.jsx)(Yf.B.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:r,__css:i,children:n||(0,x.jsx)(nC,{})})}).displayName="TagCloseButton";var oC=a(1455),iC=a.n(oC),aC=a(6140),sC=(0,Yf.B)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),lC=(0,O.Vg)("skeleton-start-color"),cC=(0,O.Vg)("skeleton-end-color"),uC=y({from:{opacity:0},to:{opacity:1}}),dC=y({from:{borderColor:lC.reference,background:lC.reference},to:{borderColor:cC.reference,background:cC.reference}}),pC=(0,em.R)((t,r)=>{const n={...t,fadeDuration:"number"==typeof t.fadeDuration?t.fadeDuration:.4,speed:"number"==typeof t.speed?t.speed:.8},o=(0,tm.Vl)("Skeleton",n),i=function(){const t=(0,e.useRef)(!0);return(0,e.useEffect)(()=>{t.current=!1},[]),t.current}(),{startColor:a="",endColor:s="",isLoaded:l,fadeDuration:c,speed:u,className:d,fitContent:p,...f}=(0,O.MN)(n),[m,h]=(0,aC.rd)("colors",[a,s]),g=function(t){const r=(0,e.useRef)();return(0,e.useEffect)(()=>{r.current=t},[t]),r.current}(l),v=(0,Ie.cx)("chakra-skeleton",d),b={...m&&{[lC.variable]:m},...h&&{[cC.variable]:h}};if(l){const e=i||g?"none":`${uC} ${c}s`;return(0,x.jsx)(Yf.B.div,{ref:r,className:v,__css:{animation:e},...f})}return(0,x.jsx)(sC,{ref:r,className:v,...f,__css:{width:p?"fit-content":void 0,...o,...b,_dark:{...o._dark,...b},animation:`${u}s linear infinite alternate ${dC}`}})});pC.displayName="Skeleton";var fC=a(3334);function mC(t,r){var n;const o=function(t){var r,n;const o=(0,Ie.Gv)(t)?t:{fallback:null!=t?t:"base"},i=(0,Gm.D)().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),a=i.map(e=>e.breakpoint===o.fallback),s=function(t,r={}){const{ssr:n=!0,fallback:o}=r,{getWindow:i}=function({defer:t}={}){const[,r]=(0,e.useReducer)(e=>e+1,0);return(0,V.U)(()=>{t&&r()},[t]),(0,e.useContext)(q)}(),a=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter(e=>null!=e);const[l,c]=(0,e.useState)(()=>a.map((e,t)=>({media:e,matches:n?!!s[t]:i().matchMedia(e).matches})));return(0,e.useEffect)(()=>{const e=i();c(a.map(t=>({media:t,matches:e.matchMedia(t).matches})));const t=a.map(t=>e.matchMedia(t)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(r):e.addEventListener("change",r)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)})}},[i]),l.map(e=>e.matches)}(i.map(e=>e.query),{fallback:a,ssr:o.ssr});return null!=(n=null==(r=i[s.findIndex(e=>1==e)])?void 0:r.breakpoint)?n:o.fallback}((0,Ie.Gv)(r)?r:{fallback:null!=r?r:"base"}),i=(0,Gm.D)();if(!o)return;const a=Array.from((null==(n=i.__breakpoints)?void 0:n.keys)||[]),s=Array.isArray(t)?Object.fromEntries(Object.entries((0,fC.a1)(t,a)).map(([e,t])=>[e,t])):t;return function(e,t,r=fC.fi){let n=Object.keys(e).indexOf(t);if(-1!==n)return e[t];let o=r.indexOf(t);for(;o>=0;){const t=r[o];if(e.hasOwnProperty(t)){n=o;break}o-=1}return-1!==n?e[r[n]]:void 0}(s,o,a)}var hC=3,gC=e=>{const{noOfLines:t=hC,spacing:r="0.5rem",skeletonHeight:n="0.5rem",className:o,startColor:i,endColor:a,isLoaded:s,fadeDuration:l,speed:c,variant:u,size:d,colorScheme:p,children:f,...m}=e,h=mC("number"==typeof t?[t]:t)||hC,g=Array(h).fill(1).map((e,t)=>t+1),v=e=>h>1&&e===g.length?"80%":"100%",b=(0,Ie.cx)("chakra-skeleton__group",o);return(0,x.jsx)(Yf.B.div,{className:b,...m,children:g.map((e,t)=>{if(s&&t>0)return null;const o=s?null:{mb:e===g.length?"0":r,width:v(e),height:n};return(0,x.jsx)(pC,{startColor:i,endColor:a,isLoaded:s,fadeDuration:l,speed:c,variant:u,size:d,colorScheme:p,...o,children:0===t?f:void 0},g.length.toString()+e)})})};gC.displayName="SkeletonText";const vC=()=>(0,x.jsx)(x.Fragment,{children:Array.from({length:5}).map((e,t)=>(0,x.jsxs)(Z_,{mt:t>0?"20px":void 0,children:[(0,x.jsxs)(hx.B,{direction:"row",align:"center",justify:"space-between",children:[(0,x.jsx)(pC,{height:"17px",width:"80px"}),(0,x.jsx)(pC,{height:"10px",width:"57px"})]}),(0,x.jsx)(pC,{height:"26px",width:"60px",mt:"20px"}),(0,x.jsx)(gC,{mt:"20px",noOfLines:5,spacing:"1"})]},t))}),bC=()=>{const{urRestApiNonce:t}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,[r,n]=(0,e.useState)(!1),[o,i]=(0,e.useState)({});return(0,e.useEffect)(()=>{r||iC()({path:"user-registration/v1/changelog",method:"GET",headers:{"X-WP-Nonce":t}}).then(e=>{e.success&&(i(e.changelog),n(!0))})},[]),r?(0,x.jsx)(x.Fragment,{children:o?.map(e=>(0,x.jsxs)(Z_,{mb:"7",children:[(0,x.jsxs)(gx,{justify:"space-between",children:[(0,x.jsx)(X_,{as:"h4",fontSize:"sm",fontWeight:"semibold",children:(0,sy.sprintf)((0,sy.__)("Version %s"),e.version)}),(0,x.jsx)(J_,{children:e.date})]}),(0,x.jsx)(Z_,{children:Object.entries(e.changes).map(([t,r],n)=>{var o;return(0,x.jsxs)(Z_,{position:"relative",_after:{bgColor:null!==(o=cy?.[t.trim().toLowerCase()]?.bgColor)&&void 0!==o?o:"gray",bottom:0,content:'""',height:"full",left:"12px",position:"absolute",top:0,width:"2px"},mb:"10",mt:"8",children:[(0,x.jsx)(tC,{colorScheme:cy?.[t.trim().toLowerCase()]?.scheme,position:"sticky",zIndex:2,top:"0",fontWeight:"normal",children:t}),(0,x.jsx)(Z_,{pt:"10px",children:r.map((r,o)=>(0,x.jsx)(J_,{pl:"10",position:"relative",mb:"4",_after:{bgColor:cy?.[t.trim().toLowerCase()]?.bgColor,bgPosition:"50%",borderRadius:"50%",content:'""',height:"20px",width:"20px",position:"absolute",top:"50%",transform:"translateY(-50%)",left:"2px"},_before:{color:cy?.[t.trim().toLowerCase()]?.color,content:'"\\2713"',position:"absolute",left:"9px",top:"50%",transform:"translateY(-50%)",fontSize:"10px",fontWeight:"bold",zIndex:1},children:r},`${e.version}${t}${n}${o}`))})]},`${e.version}${t}${n}`)})})]},e.version))}):(0,x.jsx)(vC,{})};var yC=(0,em.R)(function(e,t){const{templateAreas:r,gap:n,rowGap:o,columnGap:i,column:a,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:p,...f}=e,m={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:o,gridColumnGap:i,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p};return(0,x.jsx)(Yf.B.div,{ref:t,__css:m,...f})});yC.displayName="Grid";var xC=(0,em.R)(function(e,t){const r=(0,tm.Vl)("Link",e),{className:n,isExternal:o,...i}=(0,O.MN)(e);return(0,x.jsx)(Yf.B.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:(0,Ie.cx)("chakra-link",n),...i,__css:r})});xC.displayName="Link";var wC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_C=e.createContext&&e.createContext(wC),CC=["attr","size","title"];function SC(){return SC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SC.apply(this,arguments)}function jC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jC(Object(r),!0).forEach(function(t){RC(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jC(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function RC(e,t,r){return t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EC(t){return t&&t.map((t,r)=>e.createElement(t.tag,kC({key:r},t.attr),EC(t.child)))}function AC(t){return r=>e.createElement(OC,SC({attr:kC({},t.attr)},r),EC(t.child))}function OC(t){var r=r=>{var n,{attr:o,size:i,title:a}=t,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,CC),l=i||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",SC({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:kC(kC({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==_C?e.createElement(_C.Consumer,null,e=>r(e)):r(wC)}function PC(e){return AC({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 20h6v2H9zm7.906-6.288C17.936 12.506 19 11.259 19 9c0-3.859-3.141-7-7-7S5 5.141 5 9c0 2.285 1.067 3.528 2.101 4.73.358.418.729.851 1.084 1.349.144.206.38.996.591 1.921H8v2h8v-2h-.774c.213-.927.45-1.719.593-1.925.352-.503.726-.94 1.087-1.363zm-2.724.213c-.434.617-.796 2.075-1.006 3.075h-2.351c-.209-1.002-.572-2.463-1.011-3.08a20.502 20.502 0 0 0-1.196-1.492C7.644 11.294 7 10.544 7 9c0-2.757 2.243-5 5-5s5 2.243 5 5c0 1.521-.643 2.274-1.615 3.413-.373.438-.796.933-1.203 1.512z"},child:[]}]})(e)}function TC(e){return AC({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z"},child:[]}]})(e)}function DC(e){return AC({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m6.293 13.293 1.414 1.414L12 10.414l4.293 4.293 1.414-1.414L12 7.586z"},child:[]}]})(e)}function MC(t){const{theme:r}=(0,aC.UQ)(),n=Mm();return(0,e.useMemo)(()=>function(e,t){const r=r=>{var n;return{...t,...r,position:Kf(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=bm(t);return hm.notify(n,t)};return n.update=(e,t)=>{hm.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...(0,Ie.Jg)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,Ie.Jg)(t.error,e)}))},n.closeAll=hm.closeAll,n.close=hm.close,n.isActive=hm.isActive,n}(r.direction,{...n,...t}),[t,r.direction,n])}var NC={exit:{height:{duration:.2,ease:eh.ease},opacity:{duration:.3,ease:eh.ease}},enter:{height:{duration:.3,ease:eh.ease},opacity:{duration:.4,ease:eh.ease}}},BC={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var i,a;return{...e&&{opacity:(a=t,null!=a&&parseInt(a.toString(),10)>0?1:0)},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(i=null==r?void 0:r.exit)?i:lh(NC.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(i=null==r?void 0:r.enter)?i:sh(NC.enter,o)}}},IC=(0,e.forwardRef)((t,r)=>{const{in:n,unmountOnExit:o,animateOpacity:i=!0,startingHeight:a=0,endingHeight:s="auto",style:l,className:c,transition:u,transitionEnd:d,...p}=t,[f,m]=(0,e.useState)(!1);(0,e.useEffect)(()=>{const e=setTimeout(()=>{m(!0)});return()=>clearTimeout(e)},[]),(0,Ie.R8)({condition:Number(a)>0&&!!o,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const h=parseFloat(a.toString())>0,g={startingHeight:a,endingHeight:s,animateOpacity:i,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:o?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:h?"block":"none"}}},v=!o||n,b=n||o?"enter":"exit";return(0,x.jsx)(Sm,{initial:!1,custom:g,children:v&&(0,x.jsx)(Zf.div,{ref:r,...p,className:(0,Ie.cx)("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:g,variants:BC,initial:!!o&&"exit",animate:b,exit:"exit"})})});IC.displayName="Collapse";const LC=({isOpen:t,onToggle:r,numbering:n})=>{const[o,i]=(0,e.useState)(!1),a=MC();return(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:n+") "+(0,sy.__)("Default Form Missing","user-registration")}),(0,x.jsx)(I_,{"aria-label":"defaultForm",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("To start using User Registration & Membership, you first need to create a registration form.","user-registration")}),(0,x.jsx)(N_,{colorScheme:"primary",rounded:"base",width:"fit-content",onClick:async()=>{i(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_create_default_form",security:window._UR_DASHBOARD_?.urRestApiNonce||""})}),r=await t.json();if(!r.success)throw new Error(r.data?.message||"Failed to create default form");a({title:(0,sy.__)("Success","user-registration"),description:r.data.message,status:"success",duration:3e3,isClosable:!0}),window.location.reload()}catch(e){a({title:(0,sy.__)("Error","user-registration"),description:e.message||(0,sy.__)("Failed to create default form. Please try again.","user-registration"),status:"error",duration:3e3,isClosable:!0})}finally{i(!1)}},py:5,size:"sm",fontSize:"14px",isLoading:o,loadingText:(0,sy.__)("Creating...","user-registration"),children:(0,sy.__)("Create Default Form","user-registration")})]})})]})},zC=({isOpen:t,onToggle:r,missingPagesData:n=[],numbering:o})=>{const[i,a]=(0,e.useState)(!1),s=MC(),l=n.map(e=>e.name),c=n.map(e=>e.option);return(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:o+") "+(0,sy.__)("Required Pages Missing","user-registration")}),(0,x.jsx)(I_,{"aria-label":"requiredPages",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("Some essential pages are missing. These pages are needed to make your website work correctly. The following pages need to be created:","user-registration")}),(0,x.jsx)(Z_,{bg:"blue.50",p:"4",borderRadius:"md",border:"1px",borderColor:"blue.200",children:(0,x.jsx)(J_,{fontSize:"15px !important",color:"blue.800",children:l.join(", ")})}),(0,x.jsx)(N_,{colorScheme:"primary",rounded:"base",width:"fit-content",fontSize:"14px",onClick:async()=>{a(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_generate_required_pages",security:window._UR_DASHBOARD_?.urRestApiNonce||"",missing_pages:JSON.stringify(c)})}),r=await t.json();if(!r.success)throw new Error(r.data?.message||"Failed to generate pages");s({title:(0,sy.__)("Success","user-registration"),description:r.data.message,status:"success",duration:3e3,isClosable:!0}),window.location.reload()}catch(e){s({title:(0,sy.__)("Error","user-registration"),description:e.message||(0,sy.__)("Failed to generate pages. Please try again.","user-registration"),status:"error",duration:3e3,isClosable:!0})}finally{a(!1)}},isLoading:i,loadingText:(0,sy.__)("Generating...","user-registration"),children:(0,sy.__)("Generate Pages","user-registration")})]})})]})};var FC=a(3280),HC=(0,em.R)(function(e,t){const{direction:r,align:n,justify:o,wrap:i,basis:a,grow:s,shrink:l,...c}=e,u={display:"flex",flexDirection:r,alignItems:n,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return(0,x.jsx)(Yf.B.div,{ref:t,__css:u,...c})});HC.displayName="Flex";var VC=(0,em.R)(function(e,t){const{htmlWidth:r,htmlHeight:n,alt:o,...i}=e;return(0,x.jsx)("img",{width:r,height:n,ref:t,alt:o,...i})});function $C(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}VC.displayName="NativeImage";var UC=(0,em.R)(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:c,ignoreFallback:u,crossOrigin:d,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:f,...m}=t,h=null!=c||u||!(void 0!==n||void 0!==o),g=function(t){const{loading:r,src:n,srcSet:o,onLoad:i,onError:a,crossOrigin:s,sizes:l,ignoreFallback:c}=t,[u,d]=(0,e.useState)("pending");(0,e.useEffect)(()=>{d(n?"loading":"pending")},[n]);const p=(0,e.useRef)(),f=(0,e.useCallback)(()=>{if(!n)return;m();const e=new Image;e.src=n,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),r&&(e.loading=r),e.onload=e=>{m(),d("loaded"),null==i||i(e)},e.onerror=e=>{m(),d("failed"),null==a||a(e)},p.current=e},[n,s,o,l,i,a,r]),m=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,V.U)(()=>{if(!c)return"loading"===u&&f(),()=>{m()}},[u,f,c]),c?"loaded":u}({...t,crossOrigin:d,ignoreFallback:h}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,p),b={ref:r,objectFit:l,objectPosition:s,...h?m:$C(m,["onError","onLoad"])};return v?o||(0,x.jsx)(Yf.B.img,{as:VC,className:"chakra-image__placeholder",src:n,...b}):(0,x.jsx)(Yf.B.img,{as:VC,src:i,srcSet:a,crossOrigin:d,loading:c,referrerPolicy:f,className:"chakra-image",...b})});UC.displayName="Image";var WC=(0,em.R)(function(e,t){const r=(0,tm.Vl)("Badge",e),{className:n,...o}=(0,O.MN)(e);return(0,x.jsx)(Yf.B.span,{ref:t,className:(0,Ie.cx)("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});WC.displayName="Badge";const qC=({isOpen:t,onToggle:r,onSkipped:n,numbering:o})=>{const[i,a]=(0,e.useState)(!1),s=MC(),l=window._UR_DASHBOARD_?.site_assistant_data?.payment_connections||{},c=Object.values(l).some(e=>e.is_connected),u=Object.values(l).every(e=>e.is_connected),d=Object.keys(l).length>0;return window._UR_DASHBOARD_,(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:o+") "+(0,sy.__)("Payment Setup","user-registration")}),(0,x.jsx)(I_,{"aria-label":"paymentSetup",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("Configure payment methods to start selling your memberships. You can set up multiple payment options for your members.","user-registration")}),(0,x.jsx)(FC.T,{spacing:3,align:"stretch",children:Object.entries(l).map(([e,t])=>{const r={stripe:"stripe.png",paypal:"paypal.png",bank:"bank.png"}[e]||"payment.png",n=window._UR_DASHBOARD_?.assetsURL||"";return(0,x.jsx)(Z_,{p:"4",borderRadius:"md",border:"1px",borderColor:"gray.200",_hover:{borderColor:"gray.300"},transition:"border-color 0.2s",children:(0,x.jsxs)(HC,{justify:"space-between",align:"center",children:[(0,x.jsxs)(gx,{spacing:3,children:[(0,x.jsx)(UC,{src:`${n}images/settings-icons/${r}`,alt:t.name,w:"24px",h:"24px",objectFit:"contain"}),(0,x.jsxs)(gx,{spacing:2,align:"center",children:[(0,x.jsx)(J_,{fontWeight:"medium",fontSize:"16px !important",children:t.name}),t.is_connected&&(0,x.jsx)(WC,{colorScheme:"green",variant:"subtle",px:2,py:.5,borderRadius:"md",fontSize:"14px",fontWeight:"normal",color:"green.600",bg:"green.50",children:(0,sy.__)("Connected","user-registration")})]})]}),(0,x.jsx)(xC,{color:"primary.500",fontSize:"14px",textDecoration:"underline",onClick:()=>{return e=t.settings_url,void window.open(e,"_blank");var e},cursor:"pointer",_hover:{color:"primary.600"},children:(0,sy.__)("Settings","user-registration")})]})},e)})}),d&&c&&!u&&(0,x.jsxs)(gx,{justifyContent:"space-between",alignItems:"flex-end",children:[(0,x.jsxs)(J_,{fontSize:"14px",color:"gray.600",children:[(0,sy.__)("Additional payment setup can be configured from ","user-registration"),(0,x.jsx)(xC,{color:"primary.500",textDecoration:"underline",onClick:()=>{const e=window._UR_DASHBOARD_?.settingsURL||`${window.location.origin}/wp-admin/admin.php?page=user-registration-settings`;window.open(`${e}&tab=payment`,"_blank")},cursor:"pointer",children:(0,sy.__)("Payment > Settings","user-registration")}),"."]}),(0,x.jsx)(xC,{color:"gray.500",fontSize:"14px",textDecoration:"underline",onClick:async()=>{a(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_skip_site_assistant_section",section:"payment_setup",security:window._UR_DASHBOARD_?.urRestApiNonce||""})}),r=await t.json();if(!r.success)throw new Error(r.data?.message||"Failed to skip payment setup");s({title:(0,sy.__)("Skipped","user-registration"),description:r.data?.message||(0,sy.__)("Payment setup has been acknowledged and skipped.","user-registration"),status:"success",duration:3e3,isClosable:!0}),n&&n()}catch(e){s({title:(0,sy.__)("Error","user-registration"),description:e.message||(0,sy.__)("Failed to skip payment setup. Please try again.","user-registration"),status:"error",duration:5e3,isClosable:!0})}finally{a(!1)}},cursor:"pointer",width:"fit-content",opacity:i?.6:1,pointerEvents:i?"none":"auto",children:i?(0,sy.__)("Skipping...","user-registration"):(0,sy.__)("Skip Setup","user-registration")})]})]})})]})};var ZC=a(414),YC=(0,em.R)(function(e,t){var r;const n=(0,tm.Vl)("FormLabel",e),o=(0,O.MN)(e),{className:i,children:a,requiredIndicator:s=(0,x.jsx)(GC,{}),optionalIndicator:l=null,...c}=o,u=(0,ZC.Uc)(),d=null!=(r=null==u?void 0:u.getLabelProps(c,t))?r:{ref:t,...c};return(0,x.jsxs)(Yf.B.label,{...d,className:(0,Ie.cx)("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...n},children:[a,(null==u?void 0:u.isRequired)?s:l]})});YC.displayName="FormLabel";var GC=(0,em.R)(function(e,t){const r=(0,ZC.Uc)(),n=(0,ZC.TP)();if(!(null==r?void 0:r.isRequired))return null;const o=(0,Ie.cx)("chakra-form__required-indicator",e.className);return(0,x.jsx)(Yf.B.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:o})});GC.displayName="RequiredIndicator";var XC=a(9068);const KC=({isOpen:t,onToggle:r,onEmailSent:n,numbering:o})=>{const i=window._UR_DASHBOARD_?.adminEmail||"test@example.com",[a,s]=(0,e.useState)(i),[l,c]=(0,e.useState)(!1),u=MC();return(0,e.useEffect)(()=>{const e="ur-toast-anchor-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="\n\t\t\t\t.ur-toast-error-content a {\n\t\t\t\t\tcolor: white !important;\n\t\t\t\t\ttext-decoration: underline !important;\n\t\t\t\t}\n\t\t\t\t.ur-toast-error-content a:hover {\n\t\t\t\t\tcolor: #ffd700 !important;\n\t\t\t\t\ttext-decoration: underline !important;\n\t\t\t\t}\n\t\t\t",document.head.appendChild(t)}},[]),(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:o+") "+(0,sy.__)("Send Test Email","user-registration")}),(0,x.jsx)(I_,{"aria-label":"sendTestEmail",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("Make sure emails are being sent to your users during registration. Test by sending a sample email to yourself.","user-registration")}),(0,x.jsxs)(ZC.MJ,{children:[(0,x.jsx)(YC,{fontSize:"15px !important",fontWeight:"medium",children:(0,sy.__)("Email Address (To send test email to)","user-registration")}),(0,x.jsx)(XC.p,{type:"email",value:a,onChange:e=>s(e.target.value),placeholder:i,borderColor:"gray.300",fontSize:"15px !important",_focus:{borderColor:"primary.500",boxShadow:"0 0 0 1px var(--chakra-colors-primary-500)"}})]}),(0,x.jsx)(N_,{colorScheme:"primary",rounded:"base",width:"fit-content",fontSize:"14px",onClick:async()=>{if(a&&a.includes("@")){c(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_send_test_email",email:a,nonce:window._UR_DASHBOARD_?.testEmailNonce||""})}),r=await t.json();if(!r.success)throw new Error(r.data.message||(0,sy.__)("Test email has was unsuccessfully.","user-registration"));u({title:(0,sy.__)("Test Email Sent","user-registration"),description:r.data?.message||(0,sy.__)("Test email has been sent successfully.","user-registration"),status:"success",duration:3e3,isClosable:!0}),n&&n()}catch(e){const t=e.message||(0,sy.__)("Failed to send test email. Please try again.","user-registration"),r=/<[^>]*>/g.test(t);u({title:(0,sy.__)("Error","user-registration"),description:r?(0,x.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:"ur-toast-error-content"}):t,status:"error",duration:3e3,isClosable:!0})}finally{c(!1)}}else u({title:(0,sy.__)("Invalid Email","user-registration"),description:(0,sy.__)("Please enter a valid email address.","user-registration"),status:"error",duration:3e3,isClosable:!0})},isLoading:l,loadingText:(0,sy.__)("Sending...","user-registration"),children:(0,sy.__)("Send Test Email","user-registration")})]})})]})},JC=({isOpen:t,onToggle:r,onSkipped:n,numbering:o})=>{const[i,a]=(0,e.useState)(!1),s=MC();return(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:o+") "+(0,sy.__)("Spam Protection","user-registration")}),(0,x.jsx)(I_,{"aria-label":"spamProtection",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("Set up protection against spam registrations. We recommend enabling reCaptcha v2.","user-registration")}),(0,x.jsxs)(HC,{bg:"#f9fafc",p:"4",borderRadius:"md",justify:"space-between",align:"center",children:[(0,x.jsxs)(Z_,{children:[(0,x.jsx)(J_,{fontSize:"15px !important",fontWeight:"bold",mb:1,className:"ur-recaptcha-bold",sx:{fontWeight:"bold","&.ur-recaptcha-bold":{fontWeight:"bold"}},children:(0,sy.__)("reCaptcha v2","user-registration")}),(0,x.jsx)(J_,{fontSize:"14px",color:"gray.600",children:(0,sy.__)("Enable Google reCaptcha protection","user-registration")})]}),(0,x.jsx)(xC,{color:"primary.500",textDecoration:"underline",onClick:()=>{const e=window._UR_DASHBOARD_?.settingsURL||`${window.location.origin}/wp-admin/admin.php?page=user-registration-settings`;window.open(`${e}&tab=registration_login§ion=captcha&method=v2`,"_blank")},cursor:"pointer",children:(0,sy.__)("Configure Settings","user-registration")})]}),(0,x.jsxs)(gx,{justifyContent:"space-between",alignItems:"flex-end",children:[(0,x.jsxs)(J_,{color:"gray.600",fontSize:"14px",children:[(0,sy.__)("You can also set up other spam protection features from ","user-registration"),(0,x.jsx)(xC,{color:"primary.500",textDecoration:"underline",onClick:()=>{const e=window._UR_DASHBOARD_?.settingsURL||`${window.location.origin}/wp-admin/admin.php?page=user-registration-settings`;window.open(`${e}&tab=registration_login§ion=captcha`,"_blank")},cursor:"pointer",children:(0,sy.__)("here","user-registration")}),"."]}),(0,x.jsx)(xC,{fontSize:"14px",color:"gray.500",textDecoration:"underline",onClick:async()=>{a(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_skip_site_assistant_section",section:"spam_protection",security:window._UR_DASHBOARD_?.urRestApiNonce||""})}),r=await t.json();if(!r.success)throw new Error(r.data?.message||"Failed to skip settings");s({title:(0,sy.__)("Skipped","user-registration"),description:r.data?.message||(0,sy.__)("Spam protection setting has been acknowledged and skipped.","user-registration"),status:"success",duration:3e3,isClosable:!0}),n&&n()}catch(e){s({title:(0,sy.__)("Error","user-registration"),description:e.message||(0,sy.__)("Failed to skip settings. Please try again.","user-registration"),status:"error",duration:3e3,isClosable:!0})}finally{a(!1)}},cursor:"pointer",width:"fit-content",opacity:i?.6:1,pointerEvents:i?"none":"auto",children:i?(0,sy.__)("Skipping...","user-registration"):(0,sy.__)("Skip Setup","user-registration")})]})]})})]})},QC=({isOpen:t,onToggle:r,numbering:n,onHandled:o})=>{const[i,a]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),c=MC();return(0,x.jsxs)(hx.B,{p:"6",gap:"5",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{justify:"space-between",onClick:r,borderBottom:t&&"1px solid #dcdcde",paddingBottom:t&&5,_hover:{cursor:"pointer"},children:[(0,x.jsx)(X_,{as:"h3",fontSize:"18px",fontWeight:"semibold",lineHeight:"1.2",children:n+") "+(0,sy.__)("Add Membership Field","user-registration")}),(0,x.jsx)(I_,{"aria-label":"membershipField",icon:(0,x.jsx)(Jf.I,{as:t?DC:TC,fontSize:"2xl",fill:t?"primary.500":"black"}),cursor:"pointer",fontSize:"xl",size:"sm",boxShadow:"none",borderRadius:"base",variant:t?"solid":"link",border:"none"})]}),(0,x.jsx)(IC,{in:t,children:(0,x.jsxs)(hx.B,{gap:5,children:[(0,x.jsx)(J_,{fontWeight:"light",fontSize:"15px !important",children:(0,sy.__)("Your default registration form is missing a membership field. Add a membership field to allow users to select membership plans during registration.","user-registration")}),(0,x.jsx)(N_,{colorScheme:"primary",rounded:"base",width:"fit-content",onClick:async()=>{a(!0);try{const e=window._UR_DASHBOARD_?.adminURL||window.location.origin+"/wp-admin/",t=await fetch(`${e}admin-ajax.php`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"user_registration_create_default_form",security:window._UR_DASHBOARD_?.urRestApiNonce||""})}),r=await t.json();if(!r.success)throw new Error(r.data?.message||"Failed to add membership field");c({title:(0,sy.__)("Success","user-registration"),description:r.data.message,status:"success",duration:3e3,isClosable:!0}),o&&o(),setTimeout(()=>{window.location.reload()},1e3)}catch(e){c({title:(0,sy.__)("Error","user-registration"),description:e.message||(0,sy.__)("Failed to add membership field. Please try again.","user-registration"),status:"error",duration:3e3,isClosable:!0})}finally{a(!1)}},py:5,size:"sm",fontSize:"14px",isLoading:i,loadingText:(0,sy.__)("Adding...","user-registration"),children:(0,sy.__)("Add Membership Field","user-registration")}),(0,x.jsx)(gx,{justify:"space-between",borderTop:"1px solid",borderColor:"gray.100",pt:4,children:(0,x.jsx)(J_,{fontSize:"14px",color:"gray.600",children:(0,sy.__)("You can also add the membership field manually from the form builder.","user-registration")})})]})})]})},eS="#475bb2",tS=()=>{const[t,r]=(0,e.useState)({defaultForm:!1,requiredPages:!1,paymentSetup:!1,sendTestEmail:!1,spamProtection:!1,membershipField:!1}),n="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.has_default_form,o="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.missing_pages?_UR_DASHBOARD_.site_assistant_data.missing_pages:[],i="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.test_email_sent,[a,s]=(0,e.useState)(i),l="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.spam_protection_handled,[c,u]=(0,e.useState)(l),d="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.payment_connections||{},p=Object.values(d).every(e=>e.is_connected),f="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&!0===_UR_DASHBOARD_.site_assistant_data.payment_setup_handled&&!p,m=p||f,[h,g]=(0,e.useState)(m),v="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.membership_enabled,b="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.has_membership_plans,y="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_.site_assistant_data&&_UR_DASHBOARD_.site_assistant_data.membership_field_handled,[w,_]=(0,e.useState)(y),C=n&&v&&b&&!w,[S,j]=(0,e.useState)(!1),k=(0,e.useCallback)(()=>{s(!0)},[]),R=(0,e.useCallback)(()=>{u(!0)},[]),E=(0,e.useCallback)(()=>{g(!0)},[]),A=(0,e.useCallback)(()=>{_(!0)},[]),O=(0,e.useCallback)(e=>{if(void 0===e){const t=["defaultForm","requiredPages","membershipField","paymentSetup","sendTestEmail","spamProtection"],r=[n,0===o.length,!C,h,a,c].findIndex(e=>!1===e),i=-1!==r?t[r]:null;e=i}r(t=>{const r=Object.keys(t).reduce((r,n)=>(r[n]=n===e&&!t[e],r),{});return r})},[n,o.length,C,h,a,c]);(0,e.useEffect)(()=>{n&&0===o.length&&!C&&a&&c&&h&&!S&&(j(!0),setTimeout(()=>{window.location.href=window._UR_DASHBOARD_?.adminURL+"admin.php?page=user-registration"},2e3));const e=[n,0===o.length,!C,a,c,h],t=e.length-e.filter(Boolean).length,r=document.querySelector("#toplevel_page_user-registration");if(r){const e=r.querySelector(".wp-submenu .ur-site-config-count");if(t>0)if(e)e.textContent=t;else{const e=document.createElement("span");e.classList.add("ur-site-config-count"),e.textContent=t;const n=r.querySelector(".wp-submenu");n?.appendChild(e)}else e?.remove();window.wp?.heartbeat&&window.wp.heartbeat.interval("standard")}O()},[n,o.length,C,a,c,h,S]);let P=0;return(0,x.jsx)(vv,{maxW:"100%",py:1,marginLeft:"10px",children:(0,x.jsxs)(yC,{gridGap:"5",gridTemplateColumns:{sm:"1fr",md:"2fr 2fr",lg:"3fr 2fr",xl:"3fr 1fr"},children:[S&&(0,x.jsxs)(Z_,{p:"4",bgColor:"transparent",borderRadius:"base",border:"1px",borderColor:"gray.100",textAlign:"center",children:[(0,x.jsx)(X_,{as:"h3",fontSize:"md",fontWeight:"semibold",color:"green.600",mb:"1",children:(0,sy.__)("Setup Complete!","user-registration")}),(0,x.jsx)(J_,{fontSize:"xs",color:"gray.600",children:(0,sy.__)("Redirecting to All forms...","user-registration")})]}),!S&&(0,x.jsxs)(hx.B,{gap:"5",children:[!n&&(0,x.jsx)(LC,{isOpen:t.defaultForm,onToggle:()=>O("defaultForm"),numbering:++P}),o.length>0&&(0,x.jsx)(zC,{isOpen:t.requiredPages,onToggle:()=>O("requiredPages"),missingPagesData:o,numbering:++P}),C&&(0,x.jsx)(QC,{isOpen:t.membershipField,onToggle:()=>O("membershipField"),onHandled:A,numbering:++P}),!h&&(0,x.jsx)(qC,{isOpen:t.paymentSetup,onToggle:()=>O("paymentSetup"),onSkipped:E,numbering:++P}),!a&&(0,x.jsx)(KC,{isOpen:t.sendTestEmail,onToggle:()=>O("sendTestEmail"),onEmailSent:k,numbering:++P}),!c&&(0,x.jsx)(JC,{isOpen:t.spamProtection,onToggle:()=>O("spamProtection"),onSkipped:R,numbering:++P})]}),(0,x.jsxs)(hx.B,{gap:"5",children:[(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(Fy,{w:"5",h:"5",fill:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("User Registration & Membership Community","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Join our exclusive group and connect with fellow User Registration & Membership members. Ask questions, contribute to discussions, and share feedback!","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://www.facebook.com/groups/userregistration",isExternal:!0,children:(0,sy.__)("Join our Facebook Group","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(Uy,{w:"5",h:"5",fill:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Getting Started","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Check our documentation for detailed information on User Registration & Membership features and how to use them.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://docs.wpuserregistration.com/",isExternal:!0,children:(0,sy.__)("View Documentation","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(Qy,{w:"5",h:"5",fill:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Support","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Submit a ticket for encountered issues and get help from our support team instantly.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://wordpress.org/support/plugin/user-registration/#new-topic-0",isExternal:!0,children:(0,sy.__)("Create a Ticket","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(PC,{size:20,color:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Feature Request","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Don't find a feature you're looking for? Suggest any features you think would enhance our product.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://wpuserregistration.com/feature-requests/",isExternal:!0,children:(0,sy.__)("Request a Feature","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(qy,{w:"5",h:"5",fill:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Submit a Review","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Please take a moment to give us a review. We appreciate honest feedback that'll help us improve our plugin.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://wordpress.org/support/plugin/user-registration/reviews/?rate=5#new-post",isExternal:!0,children:(0,sy.__)("Submit a Review","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(Wy,{w:"5",h:"5",fill:eS}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Video Tutorials","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Watch our step-by-step video tutorials that'll help you get the best out of User Registration & Membership's features.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",isExternal:!0,href:"https://www.youtube.com/@UserRegistration",children:(0,sy.__)("Watch Videos","user-registration")})]})]})]})})},rS=window.lodash;function nS(e){return AC({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}function oS(e){return AC({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},child:[]}]})(e)}function iS(e){return AC({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function aS(e){return AC({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(e)}window.wp.data;const{urRestApiNonce:sS}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,lS="user-registration/v1/",cS={modules:lS+"modules",activateModule:lS+"modules/activate",deactivateModule:lS+"modules/deactivate",bulkActivateModules:lS+"modules/bulk-activate",bulkDeactivateModules:lS+"modules/bulk-deactivate",activateLicense:lS+"modules/activate-license"},uS=(e,t)=>iC()({path:`${cS.deactivateModule}`,method:"POST",headers:{"X-WP-Nonce":sS},data:{slug:e,type:t}}).then(e=>e);var dS=(0,em.R)(function(e,t){const{columns:r,spacingX:n,spacingY:o,spacing:i,minChildWidth:a,...s}=e,l=(0,Gm.D)(),c=a?function(e,t){return(0,fC.bk)(e,e=>{const r=(0,aC.gf)("sizes",e,"number"==typeof(n=e)?`${n}px`:n)(t);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(a,l):(u=r,(0,fC.bk)(u,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));var u;return(0,x.jsx)(yC,{ref:t,gap:i,columnGap:n,rowGap:o,templateColumns:c,...s})});dS.displayName="SimpleGrid";const pS=()=>(0,x.jsxs)(Z_,{bg:"white",borderRadius:"xl",border:"1px solid",borderColor:"gray.200",p:"6",boxShadow:"sm",position:"relative",height:"100%",display:"flex",flexDirection:"column",children:[(0,x.jsxs)(gx,{align:"start",spacing:"4",flex:"1",mb:"6",children:[(0,x.jsx)(Z_,{w:"12",h:"12",bg:"white",borderRadius:"lg",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"sm",flexShrink:0,children:(0,x.jsx)(pC,{width:"24px",height:"24px",borderRadius:"md"})}),(0,x.jsxs)(FC.T,{align:"start",spacing:"3",flex:"1",children:[(0,x.jsxs)(gx,{justify:"space-between",w:"full",align:"start",children:[(0,x.jsx)(pC,{height:"20px",width:"60%"}),(0,x.jsx)(pC,{height:"16px",width:"60px",borderRadius:"sm"})]}),(0,x.jsx)(gC,{width:"100%",noOfLines:3,spacing:"2",skeletonHeight:"12px",flex:"1"})]})]}),(0,x.jsxs)(gx,{justify:"space-between",align:"center",children:[(0,x.jsxs)(gx,{spacing:"3",children:[(0,x.jsx)(pC,{height:"16px",width:"40px"}),(0,x.jsx)(Z_,{color:"gray.300",children:"|"}),(0,x.jsx)(pC,{height:"16px",width:"16px",borderRadius:"md"}),(0,x.jsx)(Z_,{color:"gray.300",children:"|"}),(0,x.jsx)(pC,{height:"16px",width:"16px",borderRadius:"md"})]}),(0,x.jsx)(gx,{spacing:"2",children:(0,x.jsx)(pC,{height:"24px",width:"80px",borderRadius:"md"})})]})]}),fS=()=>(0,x.jsx)(Z_,{children:(0,x.jsxs)(Z_,{mb:"8",background:"white",p:10,borderRadius:12,children:[(0,x.jsxs)(gx,{justify:"space-between",mb:"4",children:[(0,x.jsx)(pC,{height:"24px",width:"120px"}),(0,x.jsx)(pC,{height:"16px",width:"60px"})]}),(0,x.jsx)(Z_,{w:"full",h:"1px",bg:"gray.200",mb:"6"}),(0,x.jsx)(dS,{columns:{base:1,md:2,lg:3},spacing:"6",children:Array(6).fill(1).map((e,t)=>(0,x.jsx)(pS,{},t))})]})}),mS=(0,e.createContext)(),hS=({reducer:t,initialState:r,children:n})=>(0,x.jsx)(mS.Provider,{value:(0,e.useReducer)(t,r),children:n}),gS=()=>(0,e.useContext)(mS),vS="GET_PLUGINS_STATUS",bS="GET_THEMES_STATUS",yS="GET_ALL_MODULES";var xS={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function wS(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Jg(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}(e)?e:wS(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var _S=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},CS=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window};function SS(t={}){const{openDelay:r=0,closeDelay:n=0,closeOnClick:o=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:s=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:p,isOpen:f,defaultIsOpen:m,arrowSize:h=10,arrowShadowColor:g,arrowPadding:v,modifiers:b,isDisabled:y,gutter:x,offset:w,direction:_,...C}=t,{isOpen:S,onOpen:j,onClose:k}=u_({isOpen:f,defaultIsOpen:m,onOpen:c,onClose:u}),{referenceRef:R,getPopperProps:E,getArrowInnerProps:A,getArrowProps:O}=l_({enabled:S,placement:d,arrowPadding:v,modifiers:b,gutter:x,offset:w,direction:_}),P=(0,e.useId)(),T=`tooltip-${null!=p?p:P}`,D=(0,e.useRef)(null),M=(0,e.useRef)(),N=(0,e.useCallback)(()=>{M.current&&(clearTimeout(M.current),M.current=void 0)},[]),B=(0,e.useRef)(),I=(0,e.useCallback)(()=>{B.current&&(clearTimeout(B.current),B.current=void 0)},[]),L=(0,e.useCallback)(()=>{I(),k()},[k,I]),z=function(t,r){return(0,e.useEffect)(()=>{const e=_S(t);return e.addEventListener(jS,r),()=>e.removeEventListener(jS,r)},[r,t]),()=>{const e=_S(t),r=CS(t);e.dispatchEvent(new r.CustomEvent(jS))}}(D,L),F=(0,e.useCallback)(()=>{if(!y&&!M.current){S&&z();const e=CS(D);M.current=e.setTimeout(j,r)}},[z,y,S,j,r]),H=(0,e.useCallback)(()=>{N();const e=CS(D);B.current=e.setTimeout(L,n)},[n,L,N]),V=(0,e.useCallback)(()=>{S&&o&&H()},[o,H,S]),$=(0,e.useCallback)(()=>{S&&s&&H()},[s,H,S]),U=(0,e.useCallback)(e=>{S&&"Escape"===e.key&&H()},[S,H]);(0,f_.M)(()=>_S(D),"keydown",l?U:void 0),(0,f_.M)(()=>{if(!a)return null;const e=D.current;if(!e)return null;const t=wS(e);return"body"===t.localName?CS(D):t},"scroll",()=>{S&&a&&L()},{passive:!0,capture:!0}),(0,e.useEffect)(()=>{y&&(N(),S&&k())},[y,S,k,N]),(0,e.useEffect)(()=>()=>{N(),I()},[N,I]),(0,f_.M)(()=>D.current,"pointerleave",H);const W=(0,e.useCallback)((e={},t=null)=>({...e,ref:(0,Hm.Px)(D,t,R),onPointerEnter:(0,Ie.Hj)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&F()}),onClick:(0,Ie.Hj)(e.onClick,V),onPointerDown:(0,Ie.Hj)(e.onPointerDown,$),onFocus:(0,Ie.Hj)(e.onFocus,F),onBlur:(0,Ie.Hj)(e.onBlur,H),"aria-describedby":S?T:void 0}),[F,H,$,S,T,V,R]),q=(0,e.useCallback)((e={},t=null)=>E({...e,style:{...e.style,[Px.arrowSize.var]:h?`${h}px`:void 0,[Px.arrowShadowColor.var]:g}},t),[E,h,g]),Z=(0,e.useCallback)((e={},t=null)=>{const r={...e.style,position:"relative",transformOrigin:Px.transformOrigin.varRef};return{ref:t,...C,...e,id:T,role:"tooltip",style:r}},[C,T]);return{isOpen:S,show:F,hide:H,getTriggerProps:W,getTooltipProps:Z,getTooltipPositionerProps:q,getArrowProps:O,getArrowInnerProps:A}}var jS="chakra-ui:close-tooltip",kS=(0,Yf.B)(Zf.div),RS=(0,em.R)((t,r)=>{var n,o;const i=(0,tm.Vl)("Tooltip",t),a=(0,O.MN)(t),s=(0,Gm.D)(),{children:l,label:c,shouldWrapChildren:u,"aria-label":d,hasArrow:p,bg:f,portalProps:m,background:h,backgroundColor:g,bgColor:v,motionProps:b,...y}=a,w=null!=(o=null!=(n=null!=h?h:g)?n:f)?o:v;if(w){i.bg=w;const e=(0,O.f4)(s,"colors",w);i[Px.arrowBg.var]=e}const _=SS({...y,direction:s.direction});let C;if("string"==typeof l||u)C=(0,x.jsx)(Yf.B.span,{display:"inline-block",tabIndex:0,..._.getTriggerProps(),children:l});else{const t=e.Children.only(l);C=(0,e.cloneElement)(t,_.getTriggerProps(t.props,t.ref))}const S=!!d,j=_.getTooltipProps({},r),k=S?function(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}(j,["role","id"]):j,R=function(e){const t={};for(const r of["role","id"])r in e&&(t[r]=e[r]);return t}(j);return c?(0,x.jsxs)(x.Fragment,{children:[C,(0,x.jsx)(Sm,{children:_.isOpen&&(0,x.jsx)(Tm,{...m,children:(0,x.jsx)(Yf.B.div,{..._.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:(0,x.jsxs)(kS,{variants:xS,initial:"exit",animate:"enter",exit:"exit",...b,...k,__css:i,children:[c,S&&(0,x.jsx)(Yf.B.span,{srOnly:!0,...R,children:d}),p&&(0,x.jsx)(Yf.B.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,x.jsx)(Yf.B.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):(0,x.jsx)(x.Fragment,{children:l})});RS.displayName="Tooltip";var ES=a(9861),AS=(0,Yf.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),OS=(0,em.R)(function(e,t){var r,n;const{placement:o="left",...i}=e,a=(0,ES.Z)(),s=a.field,l="left"===o?"insetStart":"insetEnd",c={[l]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,x.jsx)(AS,{ref:t,__css:c,...i})});OS.id="InputElement",OS.displayName="InputElement";var PS=(0,em.R)(function(e,t){const{className:r,...n}=e,o=(0,Ie.cx)("chakra-input__left-element",r);return(0,x.jsx)(OS,{ref:t,placement:"left",className:o,...n})});PS.id="InputLeftElement",PS.displayName="InputLeftElement";var TS=(0,em.R)(function(e,t){const{className:r,...n}=e,o=(0,Ie.cx)("chakra-input__right-element",r);return(0,x.jsx)(OS,{ref:t,placement:"right",className:o,...n})});function DS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function MS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DS(Object(r),!0).forEach(function(t){Th(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function NS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function BS(e,t){if(e){if("string"==typeof e)return NS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?NS(e,t):void 0}}function IS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||BS(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 LS(e,t){if(null==e)return{};var r,n,o=mh(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}TS.id="InputRightElement",TS.displayName="InputRightElement";var zS=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function FS(t){var r=t.defaultInputValue,n=void 0===r?"":r,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,m=t.value,h=LS(t,zS),g=IS((0,e.useState)(void 0!==l?l:n),2),v=g[0],b=g[1],y=IS((0,e.useState)(void 0!==c?c:i),2),x=y[0],w=y[1],_=IS((0,e.useState)(void 0!==m?m:s),2),C=_[0],S=_[1],j=(0,e.useCallback)(function(e,t){"function"==typeof u&&u(e,t),S(e)},[u]),k=(0,e.useCallback)(function(e,t){var r;"function"==typeof d&&(r=d(e,t)),b(void 0!==r?r:e)},[d]),R=(0,e.useCallback)(function(){"function"==typeof f&&f(),w(!0)},[f]),E=(0,e.useCallback)(function(){"function"==typeof p&&p(),w(!1)},[p]),A=void 0!==l?l:v,O=void 0!==c?c:x,P=void 0!==m?m:C;return MS(MS({},h),{},{inputValue:A,menuIsOpen:O,onChange:j,onInputChange:k,onMenuClose:E,onMenuOpen:R,value:P})}function HS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ph(n.key),n)}}function VS(e){return VS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VS(e)}function $S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($S=function(){return!!e})()}function US(e){return function(e){if(Array.isArray(e))return NS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||BS(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 WS=a(6789),qS=e.useLayoutEffect,ZS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],YS=function(){};function GS(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function XS(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(GS(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var KS=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Oh(e)&&null!==e?[e]:[];var t},JS=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,MS({},LS(e,ZS))},QS=function(e,t,r){var n=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:n(null!=r?r:{},i(t,e),a)}};function ej(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function tj(e){return ej(e)?window.pageYOffset:e.scrollTop}function rj(e,t){ej(e)?window.scrollTo(0,t):e.scrollTop=t}function nj(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:YS,o=tj(e),i=t-o,a=0;!function t(){var s=function(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}(a+=10,o,i,r);rj(e,s),a<r?window.requestAnimationFrame(t):n(e)}()}function oj(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?rj(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&rj(e,Math.max(t.offsetTop-o,0))}function ij(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var aj=!1,sj={get passive(){return aj=!0}},lj="undefined"!=typeof window?window:{};lj.addEventListener&&lj.removeEventListener&&(lj.addEventListener("p",YS,sj),lj.removeEventListener("p",YS,!1));var cj=aj;function uj(e){return null!=e}function dj(e,t,r){return e?t:r}var pj=["children","innerProps"],fj=["children","innerProps"];var mj,hj,gj,vj=function(e){return"auto"===e?"bottom":e},bj=(0,e.createContext)(null),yj=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=((0,e.useContext)(bj)||{}).setPortalPlacement,u=(0,e.useRef)(null),d=IS((0,e.useState)(o),2),p=d[0],f=d[1],m=IS((0,e.useState)(null),2),h=m[0],g=m[1],v=l.spacing.controlHeight;return qS(function(){var e=u.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=r.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,g=r.offsetParent.getBoundingClientRect().top,v=a||ej(u=l)?window.innerHeight:u.clientHeight,b=tj(l),y=parseInt(getComputedStyle(r).marginBottom,10),x=parseInt(getComputedStyle(r).marginTop,10),w=g-x,_=v-h,C=w+b,S=d-b-h,j=f-v+b+y,k=b+h-x,R=160;switch(o){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:t};if(S>=m&&!a)return i&&nj(l,j,R),{placement:"bottom",maxHeight:t};if(!a&&S>=n||a&&_>=n)return i&&nj(l,j,R),{placement:"bottom",maxHeight:a?_-y:S-y};if("auto"===o||a){var E=t,A=a?w:C;return A>=n&&(E=Math.min(A-y-s,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return i&&rj(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(C>=m&&!a)return i&&nj(l,k,R),{placement:"top",maxHeight:t};if(!a&&C>=n||a&&w>=n){var O=t;return(!a&&C>=n||a&&w>=n)&&(O=a?w-x:C-x),i&&nj(l,k,R),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});f(r.maxHeight),g(r.placement),null==c||c(r.placement)}},[o,i,a,s,n,c,v]),r({ref:u,placerProps:MS(MS({},t),{},{placement:h||vj(i),maxHeight:p})})},xj=function(e,t){var r=e.theme,n=r.spacing.baseUnit,o=r.colors;return MS({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px")})},wj=xj,_j=xj,Cj=["size"],Sj=["innerProps","isRtl","size"],jj={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},kj=function(e){var t=e.size,r=LS(e,Cj);return g("svg",(0,hh.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:jj},r))},Rj=function(e){return g(kj,(0,hh.A)({size:20},e),g("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"}))},Ej=function(e){return g(kj,(0,hh.A)({size:20},e),g("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"}))},Aj=function(e,t){var r=e.isFocused,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return MS({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*o,":hover":{color:r?i.neutral80:i.neutral40}})},Oj=Aj,Pj=Aj,Tj=y(mj||(hj=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],gj||(gj=hj.slice(0)),mj=Object.freeze(Object.defineProperties(hj,{raw:{value:Object.freeze(gj)}})))),Dj=function(e){var t=e.delay,r=e.offset;return g("span",{css:b({animation:"".concat(Tj," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mj=["data"],Nj=["innerRef","isDisabled","isHidden","inputClassName"],Bj={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ij={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":MS({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Bj)},Lj=function(e){return MS({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Bj)},zj=function(e){var t=e.children,r=e.innerProps;return g("div",r,t)},Fj={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return g("div",(0,hh.A)({},QS(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||g(Rj,null))},Control:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return g("div",(0,hh.A)({ref:o},QS(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":a}),i,{"aria-disabled":r||void 0}),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return g("div",(0,hh.A)({},QS(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||g(Ej,null))},DownChevron:Ej,CrossIcon:Rj,Group:function(e){var t=e.children,r=e.cx,n=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return g("div",(0,hh.A)({},QS(e,"group",{group:!0}),s),g(i,(0,hh.A)({},a,{selectProps:u,theme:c,getStyles:n,getClassNames:o,cx:r}),l),g("div",null,t))},GroupHeading:function(e){var t=JS(e);t.data;var r=LS(t,Mj);return g("div",(0,hh.A)({},QS(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return g("div",(0,hh.A)({},QS(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){var t=e.innerProps;return g("span",(0,hh.A)({},t,QS(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,n=JS(e),o=n.innerRef,i=n.isDisabled,a=n.isHidden,s=n.inputClassName,l=LS(n,Nj);return g("div",(0,hh.A)({},QS(e,"input",{"input-container":!0}),{"data-value":r||""}),g("input",(0,hh.A)({className:t({input:!0},s),ref:o,style:Lj(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,r=e.isRtl,n=e.size,o=void 0===n?4:n,i=LS(e,Sj);return g("div",(0,hh.A)({},QS(MS(MS({},i),{},{innerProps:t,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),g(Dj,{delay:0,offset:r}),g(Dj,{delay:160,offset:!0}),g(Dj,{delay:320,offset:!r}))},Menu:function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return g("div",(0,hh.A)({},QS(e,"menu",{menu:!0}),{ref:r},n),t)},MenuList:function(e){var t=e.children,r=e.innerProps,n=e.innerRef,o=e.isMulti;return g("div",(0,hh.A)({},QS(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},r),t)},MenuPortal:function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=(0,e.useRef)(null),c=(0,e.useRef)(null),u=IS((0,e.useState)(vj(a)),2),d=u[0],p=u[1],f=(0,e.useMemo)(function(){return{setPortalPlacement:p}},[]),m=IS((0,e.useState)(null),2),h=m[0],v=m[1],b=(0,e.useCallback)(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,r=e[d]+t;r===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||v({offset:r,rect:e})}},[o,s,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);qS(function(){b()},[b]);var y=(0,e.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&l.current&&(c.current=(0,WS.ll)(o,l.current,b,{elementResize:"ResizeObserver"in window}))},[o,b]);qS(function(){y()},[y]);var x=(0,e.useCallback)(function(e){l.current=e,y()},[y]);if(!r&&"fixed"!==s||!h)return null;var w=g("div",(0,hh.A)({ref:x},QS(MS(MS({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return g(bj.Provider,{value:f},r?(0,jm.createPortal)(w,r):w)},LoadingMessage:function(e){var t=e.children,r=void 0===t?"Loading...":t,n=e.innerProps,o=LS(e,fj);return g("div",(0,hh.A)({},QS(MS(MS({},o),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},NoOptionsMessage:function(e){var t=e.children,r=void 0===t?"No options":t,n=e.innerProps,o=LS(e,pj);return g("div",(0,hh.A)({},QS(MS(MS({},o),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},MultiValue:function(e){var t=e.children,r=e.components,n=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=r.Container,c=r.Label,u=r.Remove;return g(l,{data:n,innerProps:MS(MS({},QS(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},g(c,{data:n,innerProps:MS({},QS(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),g(u,{data:n,innerProps:MS(MS({},QS(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:zj,MultiValueLabel:zj,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return g("div",(0,hh.A)({role:"button"},r),t||g(Rj,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return g("div",(0,hh.A)({},QS(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":o}),{ref:i,"aria-disabled":r},a),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return g("div",(0,hh.A)({},QS(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,o=e.isRtl;return g("div",(0,hh.A)({},QS(e,"container",{"--is-disabled":n,"--is-rtl":o}),r),t)},SingleValue:function(e){var t=e.children,r=e.isDisabled,n=e.innerProps;return g("div",(0,hh.A)({},QS(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps,n=e.isMulti,o=e.hasValue;return g("div",(0,hh.A)({},QS(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),r),t)}},Hj=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vj(e,t){return e===t||!(!Hj(e)||!Hj(t))}function $j(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Vj(e[r],t[r]))return!1;return!0}for(var Uj={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"},Wj=function(e){return g("span",(0,hh.A)({css:Uj},e))},qj={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", 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(n,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,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,r),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},Zj=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,v=l.isSearchable,b=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,w=l.tabSelectsValue,_=l.isLoading,C=l["aria-label"],S=l["aria-live"],j=(0,e.useMemo)(function(){return MS(MS({},qj),d||{})},[d]),k=(0,e.useMemo)(function(){var e,t="";if(r&&j.onChange){var n=r.option,o=r.options,i=r.removedValue,a=r.removedValues,l=r.value,c=i||n||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=o||a||void 0,f=d?d.map(p):[],m=MS({isDisabled:c&&h(c,s),label:u,labels:f},r);t=j.onChange(m)}return t},[r,j,h,s,p]),R=(0,e.useMemo)(function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&j.onFocus){var a={focused:t,label:p(t),isDisabled:h(t,s),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=j.onFocus(a)}return e},[n,o,p,h,j,i,s,u]),E=(0,e.useMemo)(function(){var e="";if(b&&y.length&&!_&&j.onFilter){var t=x({count:i.length});e=j.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,b,j,y,x,_]),A="initial-input-focus"===(null==r?void 0:r.action),O=(0,e.useMemo)(function(){var e="";if(j.guidance){var t=o?"value":b?"menu":"input";e=j.guidance({"aria-label":C,context:t,isDisabled:n&&h(n,s),isMulti:m,isSearchable:v,tabSelectsValue:w,isInitialFocus:A})}return e},[C,n,o,m,h,v,b,j,s,w,A]),P=g(e.Fragment,null,g("span",{id:"aria-selection"},k),g("span",{id:"aria-focused"},R),g("span",{id:"aria-results"},E),g("span",{id:"aria-guidance"},O));return g(e.Fragment,null,g(Wj,{id:c},A&&P),g(Wj,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&P))},Yj=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Gj=new RegExp("["+Yj.map(function(e){return e.letters}).join("")+"]","g"),Xj={},Kj=0;Kj<Yj.length;Kj++)for(var Jj=Yj[Kj],Qj=0;Qj<Jj.letters.length;Qj++)Xj[Jj.letters[Qj]]=Jj.base;var ek=function(e){return e.replace(Gj,function(e){return Xj[e]})},tk=function(e,t){void 0===t&&(t=$j);var r=null;function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}(ek),rk=function(e){return e.replace(/^\s+|\s+$/g,"")},nk=function(e){return"".concat(e.label," ").concat(e.value)},ok=["innerRef"];function ik(e){var t=e.innerRef,r=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Object.entries(e).filter(function(e){var t=IS(e,1)[0];return!r.includes(t)});return o.reduce(function(e,t){var r=IS(t,2),n=r[0],o=r[1];return e[n]=o,e},{})}(LS(e,ok),"onExited","in","enter","exit","appear");return g("input",(0,hh.A)({ref:t},r,{css:b({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 ak=["boxSizing","height","overflow","paddingRight","position"],sk={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function lk(e){e.cancelable&&e.preventDefault()}function ck(e){e.stopPropagation()}function uk(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function dk(){return"ontouchstart"in window||navigator.maxTouchPoints}var pk=!("undefined"==typeof window||!window.document||!window.document.createElement),fk=0,mk={capture:!1,passive:!1},hk=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},gk={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function vk(t){var r=t.children,n=t.lockEnabled,o=t.captureEnabled,i=function(t){var r=t.isEnabled,n=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),d=(0,e.useCallback)(function(e,t){if(null!==u.current){var r=u.current,c=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=u.current,m=t>0,h=d-p-c,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!m&&-t>c&&(i&&!l.current&&i(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,o,i,a]),p=(0,e.useCallback)(function(e){d(e,e.deltaY)},[d]),f=(0,e.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,e.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),h=(0,e.useCallback)(function(e){if(e){var t=!!cj&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}},[m,f,p]),g=(0,e.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))},[m,f,p]);return(0,e.useEffect)(function(){if(r){var e=u.current;return h(e),function(){g(e)}}},[r,h,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var r=t.isEnabled,n=t.accountForScrollbars,o=void 0===n||n,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)(function(e){if(pk){var t=document.body,r=t&&t.style;if(o&&ak.forEach(function(e){var t=r&&r[e];i.current[e]=t}),o&&fk<1){var n=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+n||0;Object.keys(sk).forEach(function(e){var t=sk[e];r&&(r[e]=t)}),r&&(r.paddingRight="".concat(s,"px"))}t&&dk()&&(t.addEventListener("touchmove",lk,mk),e&&(e.addEventListener("touchstart",uk,mk),e.addEventListener("touchmove",ck,mk))),fk+=1}},[o]),l=(0,e.useCallback)(function(e){if(pk){var t=document.body,r=t&&t.style;fk=Math.max(fk-1,0),o&&fk<1&&ak.forEach(function(e){var t=i.current[e];r&&(r[e]=t)}),t&&dk()&&(t.removeEventListener("touchmove",lk,mk),e&&(e.removeEventListener("touchstart",uk,mk),e.removeEventListener("touchmove",ck,mk)))}},[o]);return(0,e.useEffect)(function(){if(r){var e=a.current;return s(e),function(){l(e)}}},[r,s,l]),function(e){a.current=e}}({isEnabled:n});return g(e.Fragment,null,n&&g("div",{onClick:hk,css:gk}),r(function(e){i(e),a(e)}))}var bk={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},yk=function(e){var t=e.name,r=e.onFocus;return g("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:bk,value:"",onChange:function(){}})};function xk(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function wk(){return xk(/^Mac/i)}var _k=function(e){return e.label},Ck=function(e){return e.value},Sk={clearIndicator:Pj,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var r=e.isDisabled,n=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return MS({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:n?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},dropdownIndicator:Oj,group:function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},groupHeading:function(e,t){var r=e.theme,n=r.colors,o=r.spacing;return MS({label:"group",cursor:"default",display:"block"},t?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var r=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,i=n.colors;return MS({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var r=e.isDisabled,n=e.value,o=e.theme,i=o.spacing,a=o.colors;return MS(MS({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},Ij),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var r=e.isFocused,n=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return MS({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:_j,menu:function(e,t){var r,n=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return MS((Th(r={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Th(r,"position","absolute"),Th(r,"width","100%"),Th(r,"zIndex",1),r),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return MS({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e,t){var r=e.theme,n=r.spacing,o=r.borderRadius,i=r.colors;return MS({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},multiValueLabel:function(e,t){var r=e.theme,n=r.borderRadius,o=r.colors,i=e.cropWithEllipsis;return MS({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var r=e.theme,n=r.spacing,o=r.borderRadius,i=r.colors,a=e.isFocused;return MS({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:wj,option:function(e,t){var r=e.isDisabled,n=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return MS({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:r?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:r?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var r=e.theme,n=r.spacing,o=r.colors;return MS({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},singleValue:function(e,t){var r=e.isDisabled,n=e.theme,o=n.spacing,i=n.colors;return MS({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var r=e.theme.spacing,n=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return MS({alignItems:"center",display:n&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})}},jk={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}},kk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ij(),captureMenuScroll:!ij(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=MS({ignoreCase:!0,ignoreAccents:!0,stringify:nk,trim:!0,matchFrom:"any"},void 0),n=r.ignoreCase,o=r.ignoreAccents,i=r.stringify,a=r.trim,s=r.matchFrom,l=a?rk(t):t,c=a?rk(i(e)):i(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=tk(l),c=ek(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:_k,getOptionValue:Ck,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Rk(e,t,r,n){return{type:"option",data:t,isDisabled:Nk(e,t,r),isSelected:Bk(e,t,r),label:Dk(e,t),value:Mk(e,t),index:n}}function Ek(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(r,n){return Rk(e,r,t,n)}).filter(function(t){return Pk(e,t)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Rk(e,r,t,n);return Pk(e,i)?i:void 0}).filter(uj)}function Ak(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,US(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Ok(e,t){return e.reduce(function(e,r){return"group"===r.type?e.push.apply(e,US(r.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(r.index,"-").concat(e.index)}}))):e.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),e},[])}function Pk(e,t){var r=e.inputValue,n=void 0===r?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Lk(e)||!i)&&Ik(e,{label:a,value:s,data:o},n)}var Tk=function(e,t){var r;return(null===(r=e.find(function(e){return e.data===t}))||void 0===r?void 0:r.id)||null},Dk=function(e,t){return e.getOptionLabel(t)},Mk=function(e,t){return e.getOptionValue(t)};function Nk(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Bk(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=Mk(e,t);return r.some(function(t){return Mk(e,t)===n})}function Ik(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Lk=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},zk=1,Fk=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ah(e,t)}(n,t);var r=function(e){var t=$S();return function(){var r,n=VS(e);if(t){var o=VS(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==Oh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}(n);function n(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,r){var n=t.props,o=n.onChange,i=n.name;r.name=i,t.ariaOnChange(e,r),o(e,r)},t.setValue=function(e,r,n){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:r,option:n})},t.selectOption=function(e){var r=t.props,n=r.blurInputOnSelect,o=r.isMulti,i=r.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(US(a),[e]),"select-option",e):t.setValue(e,"select-option")}n&&t.blurInput()},t.removeValue=function(e){var r=t.props.isMulti,n=t.state.selectValue,o=t.getOptionValue(e),i=n.filter(function(e){return t.getOptionValue(e)!==o}),a=dj(r,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(dj(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,r=t.state.selectValue,n=r[r.length-1],o=r.slice(0,r.length-1),i=dj(e,o,o[0]||null);n&&t.onChange(i,{action:"pop-value",removedValue:n})},t.getFocusedOptionId=function(e){return Tk(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Ok(Ek(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return XS.apply(void 0,[t.props.classNamePrefix].concat(r))},t.getOptionLabel=function(e){return Dk(t.props,e)},t.getOptionValue=function(e){return Mk(t.props,e)},t.getStyles=function(e,r){var n=t.props.unstyled,o=Sk[e](r,n);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,r):o},t.getClassNames=function(e,r){var n,o;return null===(n=(o=t.props.classNames)[e])||void 0===n?void 0:n.call(o,r)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,MS(MS({},Fj),e.components);var e},t.buildCategorizedOptions=function(){return Ek(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ak(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,r){t.setState({ariaSelection:MS({value:e},r)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var r=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():r&&t.openMenu("first"):(r&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var r=t.props,n=r.isMulti,o=r.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!n}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ej(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var r=e.touches,n=r&&r.item(0);n&&(t.initialTouchX=n.clientX,t.initialTouchY=n.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var r=e.touches,n=r&&r.item(0);if(n){var o=Math.abs(n.clientX-t.initialTouchX),i=Math.abs(n.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var r=t.props.inputValue,n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change",prevInputValue:r}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var r=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:r}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var r=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Lk(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var r=t.props,n=r.isMulti,o=r.backspaceRemovesValue,i=r.escapeClearsValue,a=r.inputValue,s=r.isClearable,l=r.isDisabled,c=r.menuIsOpen,u=r.onKeyDown,d=r.tabSelectsValue,p=r.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;t.focusValue("previous");break;case"ArrowRight":if(!n||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!o)return;n?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++zk),t.state.selectValue=KS(e.value),e.menuIsOpen&&t.state.selectValue.length){var o=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),a=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=o,t.state.focusedOption=i[a],t.state.focusedOptionId=Tk(o,i[a])}return t}return function(e,t,r){t&&HS(e.prototype,t),r&&HS(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&oj(this.menuListRef,this.focusedOptionRef),(wk()||xk(/^iPhone/i)||xk(/^iPad/i)||wk()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,o=this.state.isFocused;(o&&!r&&e.isDisabled||o&&n&&!e.menuIsOpen)&&this.focusInput(),o&&r&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||r||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(oj(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,o=r.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(n[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=r.indexOf(n);n||(o=-1);var i=r.length-1,a=-1;if(r.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:r[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var o=0,i=n.indexOf(r);r||(i=-1),"up"===e?o=i>0?i-1:n.length-1:"down"===e?o=(i+1)%n.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>n.length-1&&(o=n.length-1):"last"===e&&(o=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(n[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(jk):MS(MS({},jk),this.props.theme):jk}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:r,getClassNames:n,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,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,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return Nk(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Bk(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ik(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,r=t.isDisabled,n=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,s=t.form,l=t.menuIsOpen,c=t.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,h=o||this.getElementId("input"),g=MS(MS(MS({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?e.createElement(u,(0,hh.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:r,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):e.createElement(ik,(0,hh.A)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:YS,onFocus:this.onInputFocus,disabled:r,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,r=this.getComponents(),n=r.MultiValue,o=r.MultiValueContainer,i=r.MultiValueLabel,a=r.MultiValueRemove,s=r.SingleValue,l=r.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(l,(0,hh.A)({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map(function(r,s){var l=r===b,u="".concat(t.getOptionLabel(r),"-").concat(t.getOptionValue(r));return e.createElement(n,(0,hh.A)({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(r)},onTouchEnd:function(){return t.removeValue(r)},onMouseDown:function(e){e.preventDefault()}},data:r}),t.formatOptionLabel(r,"value"))});if(m)return null;var x=v[0];return e.createElement(s,(0,hh.A)({},c,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,r=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,hh.A)({},r,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,r=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,(0,hh.A)({},r,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),r=t.DropdownIndicator,n=t.IndicatorSeparator;if(!r||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(n,(0,hh.A)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var r=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,hh.A)({},r,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,r=this.getComponents(),n=r.Group,o=r.GroupHeading,i=r.Menu,a=r.MenuList,s=r.MenuPortal,l=r.LoadingMessage,c=r.NoOptionsMessage,u=r.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,g=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,w=f.menuPlacement,_=f.menuPosition,C=f.menuPortalTarget,S=f.menuShouldBlockScroll,j=f.menuShouldScrollIntoView,k=f.noOptionsMessage,R=f.onMenuScrollToTop,E=f.onMenuScrollToBottom;if(!x)return null;var A,O=function(r,n){var o=r.type,i=r.data,a=r.isDisabled,s=r.isSelected,l=r.label,c=r.value,f=p===i,m=a?void 0:function(){return t.onOptionHover(i)},h=a?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(n),v={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:s};return e.createElement(u,(0,hh.A)({},d,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:o,value:c,isFocused:f,innerRef:f?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(r.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map(function(r){if("group"===r.type){var i=r.data,a=r.options,s=r.index,l="".concat(t.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return e.createElement(n,(0,hh.A)({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:r.data},label:t.formatGroupLabel(r.data)}),r.options.map(function(e){return O(e,"".concat(s,"-").concat(e.index))}))}if("option"===r.type)return O(r,"".concat(r.index))});else if(g){var P=v({inputValue:h});if(null===P)return null;A=e.createElement(l,d,P)}else{var T=k({inputValue:h});if(null===T)return null;A=e.createElement(c,d,T)}var D={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:_,menuShouldScrollIntoView:j},M=e.createElement(yj,(0,hh.A)({},d,D),function(r){var n=r.ref,o=r.placerProps,s=o.placement,l=o.maxHeight;return e.createElement(i,(0,hh.A)({},d,D,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),e.createElement(vk,{captureEnabled:m,onTopArrive:R,onBottomArrive:E,lockEnabled:S},function(r){return e.createElement(a,(0,hh.A)({},d,{innerRef:function(e){t.getMenuListRef(e),r(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),A)}))});return C||"fixed"===_?e.createElement(s,(0,hh.A)({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:w,menuPosition:_}),M):M}},{key:"renderFormField",value:function(){var t=this,r=this.props,n=r.delimiter,o=r.isDisabled,i=r.isMulti,a=r.name,s=r.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return e.createElement(yk,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=l.map(function(e){return t.getOptionValue(e)}).join(n);return e.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map(function(r,n){return e.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:t.getOptionValue(r)})}):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,r=this.state,n=r.ariaSelection,o=r.focusedOption,i=r.focusedValue,a=r.isFocused,s=r.selectValue,l=this.getFocusableOptions();return e.createElement(Zj,(0,hh.A)({},t,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),r=t.Control,n=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(o,(0,hh.A)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(r,(0,hh.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),e.createElement(i,(0,hh.A)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(n,(0,hh.A)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=KS(u),h={};if(r&&(u!==r.value||c!==r.options||d!==r.menuIsOpen||p!==r.inputValue)){var g=d?function(e,t){return Ak(Ek(e,t))}(e,m):[],v=d?Ok(Ek(e,m),"".concat(l,"-option")):[],b=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,m):null,y=function(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:Tk(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,_=a&&s;return a&&!_&&(w={value:dj(f,m,m[0]||null),options:m,action:"initial-input-focus"},_=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),MS(MS(MS({},h),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:_})}}]),n}(e.Component);Fk.defaultProps=kk;var Hk=(0,e.forwardRef)(function(t,r){var n=FS(t);return e.createElement(Fk,(0,hh.A)({ref:r},n))}),Vk=(0,em.R)(function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:s,borderColor:l,...c}=(0,tm.Vl)("Divider",e),{className:u,orientation:d="horizontal",__css:p,...f}=(0,O.MN)(e),m={vertical:{borderLeftWidth:r||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||o||a||"1px",width:"100%"}};return(0,x.jsx)(Yf.B.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...m[d],...p},className:(0,Ie.cx)("chakra-divider",u)})});Vk.displayName="Divider";var $k=a(9918),Uk=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Wk=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),n=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return n===r||o===r},qk={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r,n){return!(!e||t.some(function(t){return Wk(e,t,n)})||r.some(function(t){return Wk(e,t,n)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function Zk(t){var r=t.allowCreateWhileLoading,n=void 0!==r&&r,o=t.createOptionPosition,i=void 0===o?"last":o,a=t.formatCreateLabel,s=void 0===a?qk.formatCreateLabel:a,l=t.isValidNewOption,c=void 0===l?qk.isValidNewOption:l,u=t.getNewOptionData,d=void 0===u?qk.getNewOptionData:u,p=t.onCreateOption,f=t.options,m=void 0===f?[]:f,h=t.onChange,g=LS(t,Uk),v=g.getOptionValue,b=void 0===v?Ck:v,y=g.getOptionLabel,x=void 0===y?_k:y,w=g.inputValue,_=g.isLoading,C=g.isMulti,S=g.value,j=g.name,k=(0,e.useMemo)(function(){return c(w,KS(S),m,{getOptionValue:b,getOptionLabel:x})?d(w,s(w)):void 0},[s,d,x,b,w,c,m,S]),R=(0,e.useMemo)(function(){return!n&&_||!k?m:"first"===i?[k].concat(US(m)):[].concat(US(m),[k])},[n,i,_,k,m]),E=(0,e.useCallback)(function(e,t){if("select-option"!==t.action)return h(e,t);var r=Array.isArray(e)?e:[e];if(r[r.length-1]!==k)h(e,t);else if(p)p(w);else{var n=d(w,w),o={action:"create-option",name:j,option:n};h(dj(C,[].concat(US(KS(S)),[n]),n),o)}},[d,w,C,j,k,p,h,S]);return MS(MS({},g),{},{options:R,onChange:E})}var Yk=(0,e.forwardRef)(function(t,r){var n=Zk(FS(t));return e.createElement(Fk,(0,hh.A)({ref:r},n))}),Gk=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Xk(t){var r=t.defaultOptions,n=void 0!==r&&r,o=t.cacheOptions,i=void 0!==o&&o,a=t.loadOptions;t.options;var s=t.isLoading,l=void 0!==s&&s,c=t.onInputChange,u=t.filterOption,d=void 0===u?null:u,p=LS(t,Gk),f=p.inputValue,m=(0,e.useRef)(void 0),h=(0,e.useRef)(!1),g=IS((0,e.useState)(Array.isArray(n)?n:void 0),2),v=g[0],b=g[1],y=IS((0,e.useState)(void 0!==f?f:""),2),x=y[0],w=y[1],_=IS((0,e.useState)(!0===n),2),C=_[0],S=_[1],j=IS((0,e.useState)(void 0),2),k=j[0],R=j[1],E=IS((0,e.useState)([]),2),A=E[0],O=E[1],P=IS((0,e.useState)(!1),2),T=P[0],D=P[1],M=IS((0,e.useState)({}),2),N=M[0],B=M[1],I=IS((0,e.useState)(void 0),2),L=I[0],z=I[1],F=IS((0,e.useState)(void 0),2),H=F[0],V=F[1];i!==H&&(B({}),V(i)),n!==L&&(b(Array.isArray(n)?n:void 0),z(n)),(0,e.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]);var $=(0,e.useCallback)(function(e,t){if(!a)return t();var r=a(e,t);r&&"function"==typeof r.then&&r.then(t,function(){return t()})},[a]);(0,e.useEffect)(function(){!0===n&&$(x,function(e){h.current&&(b(e||[]),S(!!m.current))})},[]);var U=(0,e.useCallback)(function(e,t){var r=function(e,t,r){if(r){var n=r(e,t);if("string"==typeof n)return n}return e}(e,t,c);if(!r)return m.current=void 0,w(""),R(""),O([]),S(!1),void D(!1);if(i&&N[r])w(r),R(r),O(N[r]),S(!1),D(!1);else{var n=m.current={};w(r),S(!0),D(!k),$(r,function(e){h&&n===m.current&&(m.current=void 0,S(!1),R(r),O(e||[]),D(!1),B(e?MS(MS({},N),{},Th({},r,e)):N))})}},[i,$,k,N,c]),W=T?[]:x&&k?A:v||[];return MS(MS({},p),{},{options:W,isLoading:C||l,onInputChange:U,filterOption:d})}var Kk=(0,e.forwardRef)(function(t,r){var n=FS(Xk(t));return e.createElement(Fk,(0,hh.A)({ref:r},n))}),Jk=(0,e.forwardRef)(function(t,r){var n=Zk(FS(Xk(t)));return e.createElement(Fk,(0,hh.A)({ref:r},n))}),Qk=e=>{const{className:t,clearValue:r,cx:n,getStyles:o,getClassNames:i,getValue:a,hasValue:s,isMulti:l,isRtl:c,options:u,selectOption:d,selectProps:p,setValue:f,theme:m,...h}=e;return{...h}},eR=e=>{const t=(e=>(e=>"string"==typeof e&&["sm","md","lg"].includes(e))(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md")((0,Gm.D)().components.Input.defaultProps.size),r=null!=e?e:t;return mC("string"==typeof r?[r]:r,{fallback:"md"})||t},tR=e=>(0,x.jsx)(Jf.I,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),rR=e=>(0,x.jsx)(Jf.I,{focusable:"false","aria-hidden":!0,...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),nR=e=>e?{bottom:"top",top:"bottom"}[e]:"top",oR=e=>(0,x.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,x.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),iR=e=>(0,x.jsx)(Jf.I,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),aR={ClearIndicator:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s=eR(a),l={...(0,tm.Vl)("CloseButton",{size:s}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},c=(null==i?void 0:i.clearIndicator)?i.clearIndicator(l,e):l,u={width:"1em",height:"1em"},d=(null==i?void 0:i.crossIcon)?i.crossIcon(u,e):u;return(0,x.jsx)(Z_,{role:"button",className:n({indicator:!0,"clear-indicator":!0},r),sx:c,"aria-label":"Clear selected options",...o,children:t||(0,x.jsx)(rR,{sx:d})})},Control:e=>{const{className:t,cx:r,children:n,innerRef:o,innerProps:i,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:c,size:u,variant:d,focusBorderColor:p,errorBorderColor:f,isInvalid:m,isReadOnly:h}}=e,g=eR(u),{field:{height:v,h:b,...y}}=(0,tm.o5)("Input",{size:g,variant:d,focusBorderColor:p,errorBorderColor:f}),w={...y,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:v||b,...a?{pointerEvents:"none"}:{}},_=(null==c?void 0:c.control)?c.control(w,e):w;return(0,x.jsx)(Z_,{ref:o,className:r({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),sx:_,...i,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!m||void 0,"data-disabled":!!a||void 0,"data-readonly":!!h||void 0,children:n})},DropdownIndicator:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i,size:a,focusBorderColor:s,errorBorderColor:l,variant:c}}=e,u=eR(a),d={...(0,tm.o5)("Select",{size:u,variant:c,focusBorderColor:s,errorBorderColor:l}).icon,display:"inline-flex",alignItems:"center",justifyContent:"center",position:"static",marginRight:2,marginLeft:1,pointerEvents:"none"},p=(null==i?void 0:i.dropdownIndicator)?i.dropdownIndicator(d,e):d,f={height:"1em",width:"1em"},m=(null==i?void 0:i.downChevron)?i.downChevron(f,e):f;return(0,x.jsx)(Z_,{...o,className:n({indicator:!0,"dropdown-indicator":!0},r),sx:p,children:t||(0,x.jsx)(tR,{sx:m})})},Group:e=>{const{children:t,className:r,cx:n,theme:o,getStyles:i,Heading:a,headingProps:s,label:l,selectProps:c,innerProps:u,getClassNames:d}=e,{chakraStyles:p}=c,f={},m=(null==p?void 0:p.group)?p.group(f,e):f;return(0,x.jsxs)(Z_,{...u,className:n({group:!0},r),sx:m,children:[(0,x.jsx)(a,{...s,selectProps:c,cx:n,theme:o,getStyles:i,getClassNames:d,children:l}),(0,x.jsx)(Z_,{children:t})]})},GroupHeading:e=>{const{cx:t,className:r,selectProps:{chakraStyles:n,size:o}}=e,{data:i,...a}=Qk(e),s=(0,tm.o5)("Menu"),l=eR(o),c={...s.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[l],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[l],margin:0},u=(null==n?void 0:n.groupHeading)?n.groupHeading(c,e):c;return(0,x.jsx)(Z_,{...a,className:t({"group-heading":!0},r),sx:u})},IndicatorSeparator:e=>{const{className:t,cx:r,selectProps:{chakraStyles:n}}=e,o={opacity:1,display:"none"},i=(null==n?void 0:n.indicatorSeparator)?n.indicatorSeparator(o,e):o;return(0,x.jsx)(Vk,{className:r({"indicator-separator":!0},t),sx:i,orientation:"vertical"})},IndicatorsContainer:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=(null==i?void 0:i.indicatorsContainer)?i.indicatorsContainer(a,e):a;return(0,x.jsx)(Z_,{...o,className:n({indicators:!0},r),sx:s,children:t})},Input:e=>{const{className:t,cx:r,value:n,selectProps:{chakraStyles:o,isReadOnly:i}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:c,...u}=Qk(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},p={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:n?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},f=(null==o?void 0:o.inputContainer)?o.inputContainer(p,e):p,m={background:0,opacity:l?0:1,width:"100%",...d},h=(null==o?void 0:o.input)?o.input(m,e):m;return(0,x.jsx)(Z_,{className:r({"input-container":!0},t),"data-value":n||"",sx:f,children:(0,x.jsx)(Yf.B.input,{className:r({input:!0},c),ref:a,sx:h,disabled:s,readOnly:!!i||void 0,...u})})},LoadingIndicator:e=>{const{className:t,cx:r,innerProps:n,selectProps:{chakraStyles:o,size:i},color:a,emptyColor:s,speed:l,thickness:c,spinnerSize:u}=e,d={sm:"xs",md:"sm",lg:"md"}[eR(i)],p={marginRight:3},f=(null==o?void 0:o.loadingIndicator)?o.loadingIndicator(p,e):p;return(0,x.jsx)(nm,{className:r({indicator:!0,"loading-indicator":!0},t),sx:f,...n,size:u||d,color:a,emptyColor:s,speed:l,thickness:c})},LoadingMessage:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s=eR(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},c=(null==i?void 0:i.loadingMessage)?i.loadingMessage(l,e):l;return(0,x.jsx)(Z_,{...o,className:n({"menu-notice":!0,"menu-notice--loading":!0},r),sx:c,children:t})},Menu:e=>{const{className:t,cx:r,children:n,innerProps:o,innerRef:i,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",[nR(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},c=(null==s?void 0:s.menu)?s.menu(l,e):l;return(0,x.jsx)(E_,{children:(0,x.jsx)(Z_,{...o,ref:i,className:r({menu:!0},t),sx:c,children:n})})},MenuList:e=>{var t;const{className:r,cx:n,innerRef:o,children:i,maxHeight:a,isMulti:s,innerProps:l,selectProps:{chakraStyles:c,size:u,variant:d,focusBorderColor:p,errorBorderColor:f}}=e,m=(0,tm.o5)("Menu"),h=eR(u),g=(0,tm.o5)("Input",{size:h,variant:d,focusBorderColor:p,errorBorderColor:f}).field,v={...m.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(t=m.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},b=(null==c?void 0:c.menuList)?c.menuList(v,e):v;return(0,x.jsx)(Z_,{...l,className:n({"menu-list":!0,"menu-list--is-multi":s},r),sx:b,ref:o,children:i})},MultiValue:e=>{const{children:t,className:r,components:n,cx:o,data:i,innerProps:a,isDisabled:s,isFocused:l,removeProps:c,selectProps:u,cropWithEllipsis:d}=e,{Container:p,Label:f,Remove:m}=n,{chakraStyles:h,tagColorScheme:g,tagVariant:v,size:b}=u,y=eR(b);let w="",_="";var C;"object"==typeof(C=i)&&null!==C&&"colorScheme"in C&&"string"==typeof C.colorScheme&&(w=i.colorScheme),(e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant)(i)&&(_=i.variant);const S=(0,tm.o5)("Tag",{size:y,colorScheme:w||g,variant:_||v}),j={...S.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},k=(null==h?void 0:h.multiValue)?h.multiValue(j,e):j,R={...S.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},E=(null==h?void 0:h.multiValueLabel)?h.multiValueLabel(R,e):R,A={...S.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},O=(null==h?void 0:h.multiValueRemove)?h.multiValueRemove(A,e):A;return(0,x.jsxs)(p,{data:i,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":s},r),...a},sx:k,selectProps:u,children:[(0,x.jsx)(f,{data:i,innerProps:{className:o({"multi-value__label":!0},r)},sx:E,selectProps:u,children:t}),(0,x.jsx)(m,{data:i,innerProps:{className:o({"multi-value__remove":!0},r),"aria-label":`Remove ${t||"option"}`,...c},sx:O,selectProps:u,isFocused:l})]})},MultiValueContainer:e=>{const{children:t,innerProps:r,sx:n}=e;return(0,x.jsx)(Yf.B.span,{...r,sx:n,children:t})},MultiValueLabel:e=>{const{children:t,innerProps:r,sx:n}=e;return(0,x.jsx)(Yf.B.span,{...r,sx:n,children:t})},MultiValueRemove:e=>{const{children:t,innerProps:r,isFocused:n,sx:o}=e;return(0,x.jsx)(Z_,{...r,role:"button",sx:o,"data-focus":!!n||void 0,"data-focus-visible":!!n||void 0,children:t||(0,x.jsx)(iR,{})})},NoOptionsMessage:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i,size:a}}=e,s=eR(a),l={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},c=(null==i?void 0:i.noOptionsMessage)?i.noOptionsMessage(l,e):l;return(0,x.jsx)(Z_,{...o,className:n({"menu-notice":!0,"menu-notice--no-options":!0},r),sx:c,children:t})},Option:e=>{const{className:t,cx:r,innerRef:n,innerProps:o,children:i,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:c,size:u,isMulti:d,hideSelectedOptions:p,selectedOptionStyle:f,selectedOptionColorScheme:m}}=e,h=(0,tm.o5)("Menu").item,g=eR(u),v=(0,A.dU)(`${m}.500`,`${m}.300`),b=(0,A.dU)("white","black"),y="check"===f&&(!d||!1===p),w={...h,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:g,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[g],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[g],..."color"===f&&l?{bg:v,color:b,_active:{bg:v}}:{}},_=(null==c?void 0:c.option)?c.option(w,e):w;return(0,x.jsxs)(Z_,{...o,className:r({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),sx:_,ref:n,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:[y&&(0,x.jsx)($_,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:l?1:0,children:(0,x.jsx)(oR,{})}),i]})},Placeholder:e=>{const{children:t,className:r,cx:n,innerProps:o,selectProps:{chakraStyles:i}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=(null==i?void 0:i.placeholder)?i.placeholder(a,e):a;return(0,x.jsx)(Z_,{...o,className:n({placeholder:!0},r),sx:s,children:t})},SelectContainer:e=>{const{children:t,className:r,cx:n,innerProps:o,isDisabled:i,isRtl:a,hasValue:s,selectProps:{chakraStyles:l}}=e,c={position:"relative",direction:a?"rtl":void 0,...i?{cursor:"not-allowed"}:{}},u=(null==l?void 0:l.container)?l.container(c,e):c;return(0,x.jsx)(Z_,{...o,className:n({"--is-disabled":i,"--is-rtl":a,"--has-value":s},r),sx:u,children:t})},SingleValue:e=>{const{children:t,className:r,cx:n,isDisabled:o,innerProps:i,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=(null==a?void 0:a.singleValue)?a.singleValue(s,e):s;return(0,x.jsx)(Z_,{className:n({"single-value":!0,"single-value--is-disabled":o},r),sx:l,...i,children:t})},ValueContainer:e=>{const{children:t,className:r,cx:n,isMulti:o,hasValue:i,innerProps:a,selectProps:{chakraStyles:s,size:l,variant:c,focusBorderColor:u,errorBorderColor:d,controlShouldRenderValue:p}}=e,f=eR(l),m={display:o&&i&&p?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,tm.o5)("Input",{size:f,variant:c,focusBorderColor:u,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},h=(null==s?void 0:s.valueContainer)?s.valueContainer(m,e):m;return(0,x.jsx)(Z_,{...a,className:n({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},r),sx:h,children:t})}},sR=aR,lR=({components:e={},theme:t,size:r,isDisabled:n,isInvalid:o,isReadOnly:i,required:a,isRequired:s,inputId:l,selectedOptionStyle:c="color",selectedOptionColorScheme:u="blue",variant:d,tagColorScheme:p,tagVariant:f,focusBorderColor:m,errorBorderColor:h,chakraStyles:g={},onFocus:v,onBlur:b,menuIsOpen:y,...x})=>{var w,_,C,S,j,k,R;const E=(0,Gm.D)(),{variant:A="outline"}=null!=(C=null==(_=null==(w=null==E?void 0:E.components)?void 0:w.Input)?void 0:_.defaultProps)?C:{},{colorScheme:O="gray",variant:P="subtle"}=null!=(k=null==(j=null==(S=null==E?void 0:E.components)?void 0:S.Tag)?void 0:j.defaultProps)?k:{},T=(0,$k.t)({id:l,isDisabled:n,isInvalid:o,isRequired:s,isReadOnly:i,onFocus:v,onBlur:b}),D=null!=y?y:!T.readOnly&&void 0;let M=c;["color","check"].includes(c)||(M="color");let N=u;return"string"!=typeof N&&(N="blue"),{components:{...sR,...e},size:r,selectedOptionStyle:M,selectedOptionColorScheme:N,variant:null!=d?d:A,tagColorScheme:null!=p?p:O,tagVariant:null!=f?f:P,chakraStyles:g,focusBorderColor:m,errorBorderColor:h,onFocus:T.onFocus,onBlur:T.onBlur,isDisabled:T.disabled,isInvalid:!!T["aria-invalid"],inputId:T.id,isReadOnly:T.readOnly,required:null!=a?a:T.required,menuIsOpen:D,...x,"aria-invalid":null!=(R=x["aria-invalid"])?R:T["aria-invalid"]}},cR=(0,e.forwardRef)((e,t)=>{const r=lR(e);return(0,x.jsx)(Hk,{ref:t,...r})});(0,e.forwardRef)((e,t)=>{const r=lR(e);return(0,x.jsx)(Yk,{ref:t,...r})}),(0,e.forwardRef)((e,t)=>{const r=lR(e);return(0,x.jsx)(Kk,{ref:t,...r})}),(0,e.forwardRef)((e,t)=>{const r=lR(e);return(0,x.jsx)(Jk,{ref:t,...r})});const uR=({sortOptions:e,statusOptions:t,planOptions:r,selectedSortValue:n,selectedStatusValue:o,selectedPlanValue:i,onSortChange:a,onStatusChange:s,onPlanChange:l,searchValue:c,onSearchChange:u,onReset:d})=>(0,x.jsxs)(hx.B,{direction:"row",justify:"space-between",align:"center",mb:"4",children:[(0,x.jsxs)(gx,{spacing:"3",children:[(0,x.jsx)(cR,{instanceId:"plan-select",options:r,value:i,placeholder:"All Plans",isSearchable:!1,isClearable:!1,onChange:l,menuPortalTarget:document.body,menuPosition:"fixed",menuShouldBlockScroll:!1,onMenuOpen:()=>{},onMenuClose:()=>{},chakraStyles:{control:e=>({...e,backgroundColor:"white",borderColor:"#DFDFE0",width:"140px",minHeight:"36px",cursor:"pointer",borderRadius:"6px",fontSize:"14px",pointerEvents:"auto"}),valueContainer:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),input:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),placeholder:e=>({...e,color:"#9CA3AF",fontSize:"14px"}),singleValue:e=>({...e,color:"#374151",fontSize:"14px"}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:e=>({...e,color:"#6B7280",backgroundColor:"white",width:"20px",height:"20px",cursor:"pointer"})}}),(0,x.jsx)(cR,{instanceId:"sort-select",options:e,value:n,placeholder:"All",isSearchable:!1,isClearable:!1,onChange:a,menuPortalTarget:document.body,menuPosition:"fixed",menuShouldBlockScroll:!1,onMenuOpen:()=>{},onMenuClose:()=>{},chakraStyles:{control:e=>({...e,backgroundColor:"white",borderColor:"#DFDFE0",width:"140px",minHeight:"36px",cursor:"pointer",borderRadius:"6px",fontSize:"14px",pointerEvents:"auto"}),valueContainer:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),input:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),placeholder:e=>({...e,color:"#9CA3AF",fontSize:"14px"}),singleValue:e=>({...e,color:"#374151",fontSize:"14px"}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:e=>({...e,color:"#6B7280",backgroundColor:"white",width:"20px",height:"20px",cursor:"pointer"})}}),(0,x.jsx)(cR,{instanceId:"status-select",options:t,value:o,placeholder:"All Status",isSearchable:!1,isClearable:!1,onChange:s,menuPortalTarget:document.body,menuPosition:"fixed",menuShouldBlockScroll:!1,onMenuOpen:()=>{},onMenuClose:()=>{},chakraStyles:{control:e=>({...e,backgroundColor:"white",borderColor:"#DFDFE0",width:"140px",minHeight:"36px",cursor:"pointer",borderRadius:"6px",fontSize:"14px",pointerEvents:"auto"}),valueContainer:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),input:e=>({...e,cursor:"pointer",pointerEvents:"auto"}),placeholder:e=>({...e,color:"#9CA3AF",fontSize:"14px"}),singleValue:e=>({...e,color:"#374151",fontSize:"14px"}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:e=>({...e,color:"#6B7280",backgroundColor:"white",width:"20px",height:"20px",cursor:"pointer"})}})]}),(0,x.jsxs)(gx,{spacing:"3",children:[(0,x.jsx)(RS,{label:"Reset all filters",placement:"top",children:(0,x.jsx)(I_,{"aria-label":"Reset filters",icon:(0,x.jsx)(aS,{}),size:"sm",variant:"outline",bg:"white",borderColor:"#DFDFE0",color:"gray.600",borderRadius:"6px",height:"36px",width:"36px",_hover:{bg:"gray.50",borderColor:"#9CA3AF",color:"gray.700"},_focus:{boxShadow:"0 0 0 1px #DFDFE0"},onClick:d})}),(0,x.jsxs)(ES.M,{maxW:"300px",children:[(0,x.jsx)(PS,{pointerEvents:"none",children:(0,x.jsx)(fy,{h:"4",w:"4",color:"gray.400"})}),(0,x.jsx)(XC.p,{placeholder:"Search (min 3 characters)...",value:c,onChange:u,bg:"white",borderColor:"#DFDFE0",borderRadius:"6px",height:"36px",fontSize:"14px"},"search-input")]})]})]}),dR=({categories:e,selectedCategory:t,highlightedCategories:r=[],onCategoryChange:n})=>(0,x.jsx)(Z_,{p:"4",textAlign:"center",children:(0,x.jsx)(Z_,{display:"inline-block",borderBottom:"1px solid",borderColor:"gray.200",pb:"4",children:(0,x.jsx)(gx,{spacing:"8",align:"center",justifyContent:"center",children:e.map((e,o)=>{const i=t===e.value,a=r.length>0&&r.includes(e.internalValue),s=r.length>0?a:i;return(0,x.jsxs)(Z_,{position:"relative",cursor:"pointer",onClick:()=>n(e.value,e.internalValue),_hover:{opacity:.8},children:[(0,x.jsx)(J_,{fontSize:"sm",fontWeight:"600",color:s?"#4263EB":"#4A5568",transition:"color 0.2s",sx:{color:s?"#4263EB !important":"#4A5568 !important",fontWeight:s?"600 !important":"500 !important"},children:e.label}),s&&(0,x.jsx)(Z_,{position:"absolute",bottom:"-17px",left:"0",right:"0",height:"2px",bg:"#4263EB",borderRadius:"1px"})]},`${e.value}-${e.internalValue}-${o}`)})})})});var pR={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},fR=!1,mR=null,hR=!1,gR=!1,vR=new Set;function bR(e,t){vR.forEach(r=>r(e,t))}var yR="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function xR(e){hR=!0,function(e){return!(e.metaKey||!yR&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(mR="keyboard",bR("keyboard",e))}function wR(e){if(mR="pointer","mousedown"===e.type||"pointerdown"===e.type){hR=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;bR("pointer",e)}}function _R(e){(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType})(e)&&(hR=!0,mR="virtual")}function CR(e){e.target!==window&&e.target!==document&&(hR||gR||(mR="virtual",bR("virtual",e)),hR=!1,gR=!1)}function SR(){hR=!1,gR=!0}function jR(){return"pointer"!==mR}function kR(){if("undefined"==typeof document||fR)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){hR=!0,e.apply(this,t)},document.addEventListener("keydown",xR,!0),document.addEventListener("keyup",xR,!0),document.addEventListener("click",_R,!0),window.addEventListener("focus",CR,!0),window.addEventListener("blur",SR,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",wR,!0),document.addEventListener("pointermove",wR,!0),document.addEventListener("pointerup",wR,!0)):(document.addEventListener("mousedown",wR,!0),document.addEventListener("mousemove",wR,!0),document.addEventListener("mouseup",wR,!0)),fR=!0}function RR(e){kR(),e(jR());const t=()=>e(jR());return vR.add(t),()=>{vR.delete(t)}}function ER(e){e.preventDefault(),e.stopPropagation()}var AR=(0,em.R)(function(t,r){const n=(0,tm.o5)("Switch",t),{spacing:o="0.5rem",children:i,...a}=(0,O.MN)(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:u,getLabelProps:d}=function(t={}){const r=(0,$k.v)(t),{isDisabled:n,isReadOnly:o,isRequired:i,isInvalid:a,id:s,onBlur:l,onFocus:c,"aria-describedby":u}=r,{defaultChecked:d,isChecked:p,isFocusable:f,onChange:m,isIndeterminate:h,name:g,value:v,tabIndex:b,"aria-label":y,"aria-labelledby":x,"aria-invalid":w,..._}=t,C=function(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),S=(0,os.c)(m),j=(0,os.c)(l),k=(0,os.c)(c),[R,E]=(0,e.useState)(!1),[A,O]=(0,e.useState)(!1),[P,T]=(0,e.useState)(!1),[D,M]=(0,e.useState)(!1);(0,e.useEffect)(()=>RR(E),[]);const N=(0,e.useRef)(null),[B,I]=(0,e.useState)(!0),[L,z]=(0,e.useState)(!!d),F=void 0!==p,H=F?p:L,$=(0,e.useCallback)(e=>{o||n?e.preventDefault():(F||z(H?e.target.checked:!!h||e.target.checked),null==S||S(e))},[o,n,H,F,h,S]);(0,V.U)(()=>{N.current&&(N.current.indeterminate=Boolean(h))},[h]),(0,is.w)(()=>{n&&O(!1)},[n,O]),(0,V.U)(()=>{const e=N.current;if(!(null==e?void 0:e.form))return;const t=()=>{z(!!d)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}},[]);const U=n&&!f,W=(0,e.useCallback)(e=>{" "===e.key&&M(!0)},[M]),q=(0,e.useCallback)(e=>{" "===e.key&&M(!1)},[M]);(0,V.U)(()=>{N.current&&N.current.checked!==H&&z(N.current.checked)},[N.current]);const Z=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,Ie.sE)(D),"data-hover":(0,Ie.sE)(P),"data-checked":(0,Ie.sE)(H),"data-focus":(0,Ie.sE)(A),"data-focus-visible":(0,Ie.sE)(A&&R),"data-indeterminate":(0,Ie.sE)(h),"data-disabled":(0,Ie.sE)(n),"data-invalid":(0,Ie.sE)(a),"data-readonly":(0,Ie.sE)(o),"aria-hidden":!0,onMouseDown:(0,Ie.Hj)(e.onMouseDown,e=>{A&&e.preventDefault(),M(!0)}),onMouseUp:(0,Ie.Hj)(e.onMouseUp,()=>M(!1)),onMouseEnter:(0,Ie.Hj)(e.onMouseEnter,()=>T(!0)),onMouseLeave:(0,Ie.Hj)(e.onMouseLeave,()=>T(!1))}),[D,H,n,A,R,P,h,a,o]),Y=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,Ie.sE)(D),"data-hover":(0,Ie.sE)(P),"data-checked":(0,Ie.sE)(H),"data-focus":(0,Ie.sE)(A),"data-focus-visible":(0,Ie.sE)(A&&R),"data-indeterminate":(0,Ie.sE)(h),"data-disabled":(0,Ie.sE)(n),"data-invalid":(0,Ie.sE)(a),"data-readonly":(0,Ie.sE)(o)}),[D,H,n,A,R,P,h,a,o]),G=(0,e.useCallback)((e={},t=null)=>({...C,...e,ref:(0,Hm.Px)(t,e=>{e&&I("LABEL"===e.tagName)}),onClick:(0,Ie.Hj)(e.onClick,()=>{var e;B||(null==(e=N.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=N.current)||e.focus({preventScroll:!0})}))}),"data-disabled":(0,Ie.sE)(n),"data-checked":(0,Ie.sE)(H),"data-invalid":(0,Ie.sE)(a)}),[C,n,H,a,B]),X=(0,e.useCallback)((e={},t=null)=>({...e,ref:(0,Hm.Px)(N,t),type:"checkbox",name:g,value:v,id:s,tabIndex:b,onChange:(0,Ie.Hj)(e.onChange,$),onBlur:(0,Ie.Hj)(e.onBlur,j,()=>O(!1)),onFocus:(0,Ie.Hj)(e.onFocus,k,()=>O(!0)),onKeyDown:(0,Ie.Hj)(e.onKeyDown,W),onKeyUp:(0,Ie.Hj)(e.onKeyUp,q),required:i,checked:H,disabled:U,readOnly:o,"aria-label":y,"aria-labelledby":x,"aria-invalid":w?Boolean(w):a,"aria-describedby":u,"aria-disabled":n,style:pR}),[g,v,s,$,j,k,W,q,i,H,U,o,y,x,w,a,u,n,b]),K=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,onMouseDown:(0,Ie.Hj)(e.onMouseDown,ER),"data-disabled":(0,Ie.sE)(n),"data-checked":(0,Ie.sE)(H),"data-invalid":(0,Ie.sE)(a)}),[H,n,a]);return{state:{isInvalid:a,isFocused:A,isChecked:H,isActive:D,isHovered:P,isIndeterminate:h,isDisabled:n,isReadOnly:o,isRequired:i},getRootProps:G,getCheckboxProps:Z,getIndicatorProps:Y,getInputProps:X,getLabelProps:K,htmlProps:C}}(a),p=(0,e.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),f=(0,e.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),m=(0,e.useMemo)(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return(0,x.jsxs)(Yf.B.label,{...u(),className:(0,Ie.cx)("chakra-switch",t.className),__css:p,children:[(0,x.jsx)("input",{className:"chakra-switch__input",...l({},r)}),(0,x.jsx)(Yf.B.span,{...c(),className:"chakra-switch__track",__css:f,children:(0,x.jsx)(Yf.B.span,{__css:n.thumb,className:"chakra-switch__thumb",...s()})}),i&&(0,x.jsx)(Yf.B.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});AR.displayName="Switch";var OR={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:null!=(i=null==r?void 0:r.exit)?i:lh(ah.exit,o),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:sh(ah.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:lh(ah.exit,i),...o?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},PR={initial:"initial",animate:"enter",exit:"exit",variants:OR},TR=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:c,delay:u,...d}=e,p=!r||n&&r,f=n||r?"enter":"exit",m={offsetX:a,offsetY:s,reverse:o,transition:l,transitionEnd:c,delay:u};return(0,x.jsx)(Sm,{custom:m,children:p&&(0,x.jsx)(Zf.div,{ref:t,className:(0,Ie.cx)("chakra-offset-slide",i),custom:m,...PR,animate:f,...d})})});TR.displayName="SlideFade";var DR={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(i=null==r?void 0:r.exit)?i:lh(ah.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:sh(ah.enter,r),transitionEnd:null==e?void 0:e.enter}}},MR={initial:"exit",animate:"enter",exit:"exit",variants:DR},NR=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:l,delay:c,...u}=e,d=!r||n&&r,p=n||r?"enter":"exit",f={initialScale:i,reverse:o,transition:s,transitionEnd:l,delay:c};return(0,x.jsx)(Sm,{custom:f,children:d&&(0,x.jsx)(Zf.div,{ref:t,className:(0,Ie.cx)("chakra-offset-slide",a),...MR,animate:p,custom:f,...u})})});NR.displayName="ScaleFade";var BR={slideInBottom:{...PR,custom:{offsetY:16,reverse:!0}},slideInRight:{...PR,custom:{offsetX:16,reverse:!0}},slideInTop:{...PR,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...PR,custom:{offsetX:-16,reverse:!0}},scale:{...MR,custom:{initialScale:.95,reverse:!0}},none:{}},IR=(0,Yf.B)(Zf.section),LR=e=>BR[e||"none"],zR=(0,e.forwardRef)((e,t)=>{const{preset:r,motionProps:n=LR(r),...o}=e;return(0,x.jsx)(IR,{ref:t,...n,...o})});zR.displayName="ModalTransition";var FR=(0,em.R)((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Zm(),c=s(a,t),u=l(o),d=(0,Ie.cx)("chakra-modal__content",r),p=Wm(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:h}=Zm();return(0,x.jsx)(lv,{children:(0,x.jsx)(Yf.B.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:m,children:(0,x.jsx)(zR,{preset:h,motionProps:i,className:d,...c,__css:f,children:n})})})});FR.displayName="ModalContent";var HR=(0,em.R)((e,t)=>{const{className:r,...n}=e,o=(0,Ie.cx)("chakra-modal__footer",r),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Wm().footer};return(0,x.jsx)(Yf.B.footer,{ref:t,...n,__css:i,className:o})});HR.displayName="ModalFooter";const VR=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,$R=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,UR=/\.(m3u8)($|\?)/i,WR=/\.(mpd)($|\?)/i,qR=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,ZR=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,YR=/vimeo\.com\/(?!progressive_redirect).+/,GR=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,XR=/open\.spotify\.com\/(\w+)\/(\w+)/i,KR=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,JR=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,QR=(e,t)=>{if(Array.isArray(e)){for(const r of e){if("string"==typeof r&&QR(r,t))return!0;if(QR(r.src,t))return!0}return!1}return t(e)},eE={html:e=>QR(e,e=>VR.test(e)||$R.test(e)),hls:e=>QR(e,e=>UR.test(e)),dash:e=>QR(e,e=>WR.test(e)),mux:e=>qR.test(e),youtube:e=>ZR.test(e),vimeo:e=>YR.test(e)&&!$R.test(e)&&!UR.test(e),wistia:e=>GR.test(e),spotify:e=>XR.test(e),twitch:e=>KR.test(e),tiktok:e=>JR.test(e)};var tE=e.forwardRef((t,r)=>{const n=VR.test(`${t.src}`)?"audio":"video";return e.createElement(n,{...t,ref:r},t.children)}),rE=[{key:"hls",name:"hls.js",canPlay:eE.hls,canEnablePIP:()=>!0,player:(0,e.lazy)(()=>Promise.all([a.e(632),a.e(166),a.e(262)]).then(a.bind(a,2752)))},{key:"dash",name:"dash.js",canPlay:eE.dash,canEnablePIP:()=>!0,player:(0,e.lazy)(()=>Promise.all([a.e(632),a.e(395)]).then(a.bind(a,5542)))},{key:"mux",name:"Mux",canPlay:eE.mux,canEnablePIP:()=>!0,player:(0,e.lazy)(()=>Promise.all([a.e(632),a.e(166),a.e(723)]).then(a.bind(a,9041)))},{key:"youtube",name:"YouTube",canPlay:eE.youtube,player:(0,e.lazy)(()=>a.e(446).then(a.bind(a,5774)))},{key:"vimeo",name:"Vimeo",canPlay:eE.vimeo,player:(0,e.lazy)(()=>a.e(173).then(a.bind(a,5324)))},{key:"wistia",name:"Wistia",canPlay:eE.wistia,canEnablePIP:()=>!0,player:(0,e.lazy)(()=>a.e(340).then(a.bind(a,1850)))},{key:"spotify",name:"Spotify",canPlay:eE.spotify,canEnablePIP:()=>!1,player:(0,e.lazy)(()=>a.e(771).then(a.bind(a,8284)))},{key:"twitch",name:"Twitch",canPlay:eE.twitch,canEnablePIP:()=>!1,player:(0,e.lazy)(()=>a.e(42).then(a.bind(a,8815)))},{key:"tiktok",name:"TikTok",canPlay:eE.tiktok,canEnablePIP:()=>!1,player:(0,e.lazy)(()=>a.e(85).then(a.bind(a,5104)))},{key:"html",name:"html",canPlay:eE.html,canEnablePIP:()=>!0,player:tE}];const nE={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},oE=e.forwardRef((t,r)=>{const{playing:n,pip:o}=t,i=t.activePlayer,a=(0,e.useRef)(null),s=(0,e.useRef)(!0);if((0,e.useEffect)(()=>{var e,r;a.current&&(a.current.paused&&!0===n&&a.current.play(),a.current.paused||!1!==n||a.current.pause(),a.current.playbackRate=null!=(e=t.playbackRate)?e:1,a.current.volume=null!=(r=t.volume)?r:1)}),(0,e.useEffect)(()=>{var e,t,r,n,i;if(a.current&&globalThis.document){if(o&&!document.pictureInPictureElement)try{null==(t=(e=a.current).requestPictureInPicture)||t.call(e)}catch(e){}if(!o&&document.pictureInPictureElement)try{null==(n=(r=a.current).exitPictureInPicture)||n.call(r),null==(i=document.exitPictureInPicture)||i.call(document)}catch(e){}}},[o]),!i)return null;const l={},c=["onReady","onStart"];for(const e in t)e.startsWith("on")&&!c.includes(e)&&(l[e]=t[e]);return e.createElement(i,{...l,style:t.style,className:t.className,slot:t.slot,ref:(0,e.useCallback)(e=>{a.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e)},[r]),src:t.src,crossOrigin:t.crossOrigin,preload:t.preload,controls:t.controls,muted:t.muted,autoPlay:t.autoPlay,loop:t.loop,playsInline:t.playsInline,disableRemotePlayback:t.disableRemotePlayback,config:t.config,onLoadStart:e=>{var r,n;s.current=!0,null==(r=t.onReady)||r.call(t),null==(n=t.onLoadStart)||n.call(t,e)},onPlay:e=>{var r,n;s.current&&(s.current=!1,null==(r=t.onStart)||r.call(t,e)),null==(n=t.onPlay)||n.call(t,e)}},t.children)});oE.displayName="Player";var iE=oE;const aE=(0,e.lazy)(()=>a.e(353).then(a.bind(a,8454))),sE=[],lE=({children:e})=>e;var cE=((t,r)=>{const n=e.forwardRef((n,o)=>{const i={...nE,...n},{src:a,slot:s,className:l,style:c,width:u,height:d,fallback:p,wrapper:f}=i,[m,h]=(0,e.useState)(!!i.light);(0,e.useEffect)(()=>{i.light?h(!0):h(!1)},[i.light]);const g=e=>{var t;h(!1),null==(t=i.onClickPreview)||t.call(i,e)},v=null==f?lE:f,b=!1===p?lE:e.Suspense;return e.createElement(v,{slot:s,className:l,style:{width:u,height:d,...c}},e.createElement(b,{fallback:p},m?(t=>{if(!t)return null;const{light:r,playIcon:n,previewTabIndex:o,oEmbedUrl:a,previewAriaLabel:s}=i;return e.createElement(aE,{src:t,light:r,playIcon:n,previewTabIndex:o,previewAriaLabel:s,oEmbedUrl:a,onClickPreview:g})})(a):(n=>{var a,c;const u=(e=>{for(const r of[...sE,...t])if(e&&r.canPlay(e))return r;return r||null})(n);if(!u)return null;const{style:d,width:p,height:f,wrapper:m}=i,h=null==(a=i.config)?void 0:a[u.key];return e.createElement(iE,{...i,ref:o,activePlayer:null!=(c=u.player)?c:u,slot:m?void 0:s,className:m?void 0:l,style:m?{display:"block",width:"100%",height:"100%"}:{display:"block",width:p,height:f,...d},config:h})})(a)))});return n.displayName="ReactPlayer",n.addCustomPlayer=e=>{sE.push(e)},n.removeCustomPlayers=()=>{sE.length=0},n.canPlay=e=>{if(e)for(const r of[...sE,...t])if(r.canPlay(e))return!0;return!1},n.canEnablePIP=e=>{var r;if(e)for(const n of[...sE,...t])if(n.canPlay(e)&&(null==(r=n.canEnablePIP)?void 0:r.call(n)))return!0;return!1},n})(rE,rE[rE.length-1]);const{isMasteriyoActive:uE}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,dE=({addon:t,showToast:r})=>{const[n,o]=(0,e.useState)("active"===t.status),[i,a]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),{isOpen:p,onOpen:f,onClose:m}=c(),{isOpen:h,onOpen:g,onClose:v}=c(),{isPro:b,licensePlan:y,urm_is_new_installation:w,urcr_custom_rules_count:_}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_?_UR_DASHBOARD_:{};(0,e.useEffect)(()=>{if("user-registration-content-restriction"===t.slug)if(w)if(t.plan&&t.plan.includes("free"))l(!0);else if(b&&y){const e=y.item_plan.replace(" lifetime","");t.plan&&t.plan.includes(e.trim())?l(!0):l(!1)}else l(!1);else if(!b&&n)l(!0);else if(t.plan&&t.plan.includes("free"))l(!0);else if(b&&y){const e=y.item_plan.replace(" lifetime","");t.plan&&t.plan.includes(e.trim())?l(!0):l(!1)}else l(!1);else if(t.plan&&t.plan.includes("free"))l(!0);else if(b&&y){const e=y.item_plan.replace(" lifetime","");t.plan&&t.plan.includes(e.trim())?l(!0):l(!1)}else l(!1)},[t.plan,t.slug,t.status,n]);const C=async()=>{const e=!0===b||"true"===String(b).toLowerCase();if(console.log(b),"user-registration-content-restriction"===t.slug&&n&&e){a(!0);try{const e=await uS(t.slug,t.type);e.success?(o(!1),r(e.message||"Module deactivated successfully","success")):r(e.message||"Failed to deactivate module","error")}catch(e){r(e.message||"An error occurred","error")}a(!1)}else if("user-registration-content-restriction"===t.slug&&n&&!w&&!e&&_>=1)g();else{a(!0);try{let e;n?(e=await uS(t.slug,t.type),e.success?(o(!1),r(e.message||"Module deactivated successfully","success")):r(e.message||"Failed to deactivate module","error")):(e=await(i=t.slug,s=t.name,l=t.type,iC()({path:cS.activateModule,method:"POST",headers:{"X-WP-Nonce":sS},data:{slug:i,name:s,type:l}}).then(e=>e)),e.success?(o(!0),r(e.message||"Module activated successfully","success")):r(e.message||"Failed to activate module","error"))}catch(e){r(e.message||"An error occurred","error")}var i,s,l;a(!1)}},S=e=>e.includes("free")?"Free":e.includes("personal")?"Personal":e.includes("plus")?"Plus":e.includes("professional")?"Professional":"Pro";if("user-registration-membership"===t.slug){if(w)return null;if(n||"active"===t.status)return null}return(0,x.jsxs)(Z_,{bg:"white",borderRadius:"lg",border:"1px solid",borderColor:"gray.200",p:"6",boxShadow:"sm",_hover:{boxShadow:"md"},transition:"all 0.2s",position:"relative",height:"100%",display:"flex",flexDirection:"column",children:[i&&(0,x.jsx)(HC,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0",bg:"rgba(255, 255, 255, 0.8)",borderRadius:"xl",alignItems:"center",justifyContent:"center",zIndex:"10",children:(0,x.jsx)(nm,{size:"lg",color:"gray.500",thickness:"3px"})}),(0,x.jsxs)(gx,{align:"start",spacing:"4",flex:"1",mb:"6",children:[(0,x.jsxs)(Z_,{w:"10",h:"10",bg:"white",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"sm",flexShrink:0,overflow:"hidden",children:[t.image?(0,x.jsx)("img",{src:(e=>{const{assetsURL:t}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_;return e&&t?t+e:e})(t.image),alt:t.title,style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:"50%"},onError:e=>{e.target.style.display="none",e.target.nextSibling.style.display="flex"}}):null,(0,x.jsx)(Z_,{display:t.image?"none":"flex",alignItems:"center",justifyContent:"center",fontSize:"2xl",width:"100%",height:"100%",children:"🔧"})]}),(0,x.jsxs)(FC.T,{align:"start",spacing:"3",flex:"1",children:[(0,x.jsxs)(gx,{justify:"space-between",w:"full",align:"start",children:[(0,x.jsx)(X_,{size:"sm",color:"gray.800",fontWeight:"600",fontSize:"16px",children:t.title}),(0,x.jsx)(WC,{fontSize:"10px",px:"2",py:"1",borderRadius:"base",bg:"Free"===S(t.plan)?"transparent":"Personal"===S(t.plan)?"#F0FDF4":"Plus"===S(t.plan)?"#f0f3fa":(S(t.plan),"#EFF6FF"),border:"Free"===S(t.plan)?"1px solid #D1D5DB":"Personal"===S(t.plan)?"1px solid #16A34A":"Plus"===S(t.plan)?"1px solid #92a2e4":(S(t.plan),"1px solid #BFDBFE"),color:"Free"===S(t.plan)?"#4B5563":"Personal"===S(t.plan)?"#16A34A":"Plus"===S(t.plan)?"#92a2e4":(S(t.plan),"#3B82F6"),children:S(t.plan)})]}),(0,x.jsx)(RS,{label:t.excerpt,placement:"top",hasArrow:!0,isDisabled:t.excerpt.length<=120,backgroundColor:"white",color:"gray.500",borderRadius:"sm",p:"5",cursor:"default",children:(0,x.jsx)(J_,{fontSize:"13px !important",color:"gray.500 !important",lineHeight:"1.5",flex:"1",noOfLines:2,cursor:"text",sx:{color:"gray.500 !important",fontSize:"13px !important"},children:t.excerpt})})]})]}),(0,x.jsxs)(gx,{justify:"space-between",align:"center",children:[(0,x.jsxs)(gx,{spacing:"3",children:[(0,x.jsx)(xC,{href:t.link,fontSize:"13px",color:"#6B7280",textDecoration:"underline",isExternal:!0,children:"Docs"}),t.setting_url&&n&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(J_,{color:"gray.300",children:"|"}),(0,x.jsx)(I_,{size:"sm",icon:(0,x.jsx)(oS,{}),"aria-label":"Settings",variant:"ghost",onClick:()=>window.open(t.setting_url,"_blank")})]}),t.demo_video_url&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(J_,{color:"gray.300",children:"|"}),(0,x.jsx)(I_,{size:"sm",icon:(0,x.jsx)(Jf.I,{as:iS}),"aria-label":"Video Tutorial",variant:"ghost",onClick:()=>{d(!0),f()}})]})]}),(0,x.jsx)(gx,{spacing:"2",children:s?(0,x.jsxs)(x.Fragment,{children:[" ","user-registration-masteriyo-course-integration"===t.slug?uE?(0,x.jsx)(AR,{isChecked:n,onChange:C,isDisabled:i,sx:{"& .chakra-switch__track[data-checked]":{bg:"#475bb2"}}}):(0,x.jsx)(RS,{hasArrow:!0,placement:"top",label:(0,sy.__)("Masteriyo plugin must be activated to enable this module","user-registration"),"aria-label":"A tooltip",children:(0,x.jsx)("span",{children:(0,x.jsx)(AR,{isChecked:!1,onChange:C,isDisabled:!0,sx:{"& .chakra-switch__track[data-checked]":{bg:"#475bb2"}}})})}):(0,x.jsx)(AR,{isChecked:n,onChange:C,isDisabled:i,sx:{"& .chakra-switch__track[data-checked]":{bg:"#475bb2"}}})]}):(0,x.jsx)(N_,{size:"sm",variant:"solid",fontSize:"xs",fontWeight:"normal",bg:"#475bb2",color:"white",borderColor:"#475bb2",_hover:{bg:"#3a4a8f",borderColor:"#3a4a8f"},onClick:()=>{const{upgradeURL:e}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_;if(e){const t=e+"&utm_source=dashboard-all-feature&utm_medium=dashboard-upgrade-plan";window.open(t,"_blank")}},children:"Upgrade Plan"})})]}),p&&t.demo_video_url&&(0,x.jsxs)(Ym,{isOpen:p,onClose:m,size:"3xl",isCentered:!0,children:[(0,x.jsx)(fh,{}),(0,x.jsxs)(FR,{px:4,pb:4,children:[(0,x.jsx)(hv,{textAlign:"center",children:t.title}),(0,x.jsx)(mv,{}),(0,x.jsxs)(Z_,{position:"relative",children:[(0,x.jsx)(cE,{src:`https://www.youtube.com/embed/${t.demo_video_url}`,playing:!0,width:"100%",controls:!0,onReady:()=>d(!1),onPlaying:()=>d(!1),height:360}),u&&(0,x.jsx)(Z_,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",children:(0,x.jsx)(nm,{size:"lg"})})]})]})]}),(0,x.jsxs)(Ym,{isOpen:h,onClose:v,size:"md",isCentered:!0,children:[(0,x.jsx)(fh,{}),(0,x.jsxs)(FR,{children:[(0,x.jsx)(hv,{color:"red.600",children:"Warning: Potential Data Loss"}),(0,x.jsx)(mv,{}),(0,x.jsx)(gv,{children:(0,x.jsxs)(FC.T,{spacing:"4",align:"start",children:[(0,x.jsx)(J_,{color:"gray.700",lineHeight:"1.6",children:"You are about to disable the Content Restriction addon. Please be aware that:"}),(0,x.jsxs)(Z_,{as:"ul",pl:"5",color:"gray.600",children:[(0,x.jsx)(J_,{as:"li",mb:"2",children:"There might be existing content restriction rules in your system"}),(0,x.jsx)(J_,{as:"li",mb:"2",children:"If you continue, you may lose access to these rules"}),(0,x.jsx)(J_,{as:"li",children:"You will need to upgrade to a higher plan to access them again"})]}),(0,x.jsx)(J_,{color:"gray.700",fontWeight:"medium",children:"Are you sure you want to continue?"})]})}),(0,x.jsxs)(HR,{children:[(0,x.jsx)(N_,{variant:"ghost",mr:3,onClick:v,isDisabled:i,children:"Cancel"}),(0,x.jsx)(N_,{colorScheme:"red",onClick:async()=>{a(!0);try{const e=await uS(t.slug,t.type);e.success?(o(!1),r(e.message||"Module deactivated successfully","success")):r(e.message||"Failed to deactivate module","error")}catch(e){r(e.message||"An error occurred","error")}a(!1),v()},isLoading:i,children:"Continue Anyway"})]})]})]})]})},pE=({modules:e,selectedCategory:t,showToast:r})=>{if("All"===t){const t=(()=>{const t=new Map,r={};e.forEach(e=>{const r=e.category||"Uncategorized";t.has(r)||t.set(r,[]),t.get(r).push(e)});const n=[];return t.has("Membership")&&n.push(["Membership",t.get("Membership")]),t.forEach((e,t)=>{"Membership"!==t&&n.push([t,e])}),n.map(([e,t])=>({category:e,displayName:r[e]||e,modules:t}))})();return(0,x.jsx)(Z_,{children:t.map(({category:e,displayName:t,modules:n})=>(0,x.jsxs)(Z_,{mb:"8",background:"white",p:10,borderRadius:12,children:[(0,x.jsxs)(gx,{justify:"space-between",mb:"4",children:[(0,x.jsx)(X_,{size:"md",color:"gray.800",children:t}),(0,x.jsxs)(J_,{fontSize:"sm",color:"gray.500",children:[n.length," ",1===n.length?"Item":"Items"]})]}),(0,x.jsx)(Vk,{mb:"6",borderColor:"gray.200"}),(0,x.jsx)(dS,{columns:{base:1,md:2,lg:3},spacing:"6",children:n.map(e=>(0,x.jsx)(dE,{addon:e,showToast:r},e.slug))})]},e))})}const n="All"!==t?t:e.length>0&&e[0].category||"Uncategorized";return(0,x.jsx)(Z_,{children:(0,x.jsxs)(Z_,{mb:"8",background:"white",p:10,borderRadius:12,children:[(0,x.jsxs)(gx,{justify:"space-between",mb:"4",children:[(0,x.jsx)(X_,{size:"md",color:"gray.800",children:n}),(0,x.jsxs)(J_,{fontSize:"sm",color:"gray.500",children:[e.length," ",1===e.length?"Item":"Items"]})]}),(0,x.jsx)(Vk,{mb:"6",borderColor:"gray.200"}),e.length>0?(0,x.jsx)(dS,{columns:{base:1,md:2,lg:3},spacing:"6",children:e.map(e=>(0,x.jsx)(dE,{addon:e,showToast:r},e.slug))}):(0,x.jsx)(Z_,{display:"flex",justifyContent:"center",flexDirection:"column",padding:"60px",gap:"10px",alignItems:"center",textAlign:"center",children:(0,x.jsxs)(J_,{fontSize:"14px",color:"gray.500",children:["No addons are available in the ",n," category."]})})]})})},fE=()=>{const t=MC(),[{allModules:r,isMembershipActivated:n,isPaymentAddonActivated:o,upgradeModal:i},a]=gS(),[s,l]=(0,e.useState)({modules:[],originalModules:[],modulesLoaded:!1,selectedModuleData:[],bulkAction:"",isPerformingBulkAction:!1,searchItem:"",noItemFound:!1,error:null,selectedCategory:"All",selectedSort:"default",selectedStatus:"all",selectedPlan:"all",isLoading:!1,highlightedCategories:[]}),[c,u]=(0,e.useState)(0),[d,p]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),h=(0,e.useRef)(s.searchItem),g=(0,e.useRef)(!0),v=(0,e.useMemo)(()=>(()=>{if(!s.originalModules||0===s.originalModules.length)return["All"];const e=[...new Set(s.originalModules.map(e=>e.category).filter(Boolean))],t={Membership:"Membership","Smart Fields":"Smart Fields","User Management":"User Management","E-Commerce":"E-Commerce",Design:"Design",Integrations:"Integrations",Security:"Security","Email Marketing":"Email Marketing",Others:"Others"},r=[{value:"All",label:"All",internalValue:"All"}];return e.forEach(e=>{r.push({value:t[e]||e,label:t[e]||e,internalValue:e})}),r})(),[s.originalModules]),b=[{label:"All Status",value:"all"},{label:"Active",value:"active"},{label:"Inactive",value:"inactive"}],y=[{label:"All Plans",value:"all"},{label:"Free",value:"free"},{label:"Personal",value:"personal"},{label:"Plus",value:"plus"},{label:"Professional",value:"professional"}],w=[{label:(0,sy.__)("All","user-registration"),value:"default"},{label:(0,sy.__)("Newest","user-registration"),value:"newest"},{label:(0,sy.__)("Oldest","user-registration"),value:"oldest"},{label:(0,sy.__)("Ascending","user-registration"),value:"asc"},{label:(0,sy.__)("Descending","user-registration"),value:"desc"}],_=(0,e.useMemo)(()=>w.find(e=>e.value===s.selectedSort)||null,[s.selectedSort]),C=(0,e.useMemo)(()=>b.find(e=>e.value===s.selectedStatus)||null,[s.selectedStatus]),S=(0,e.useMemo)(()=>y.find(e=>e.value===s.selectedPlan)||null,[s.selectedPlan]),j=(0,e.useCallback)((e=!1)=>{l(e=>({...e,isLoading:!0})),iC()({path:`${cS.modules}`,method:"get",headers:{"X-WP-Nonce":sS}}).then(e=>e).then(t=>{if(t.success){const r=(e=>{const t=new Set;return e.filter(e=>!t.has(e.slug)&&(t.add(e.slug),!0))})(t.modules_lists);a({type:yS,allModules:r}),l(e=>({...e,originalModules:r,modulesLoaded:!0,isLoading:!1})),k(r,c,!1),e&&p(!0)}}).catch(e=>l(t=>({...t,error:e.message,modulesLoaded:!0,isLoading:!1})))},[a]);(0,e.useEffect)(()=>{l(e=>({...e,isLoading:!0})),j()},[j]),(0,e.useEffect)(()=>{g.current?g.current=!1:j(!0)},[n,o]),(0,e.useEffect)(()=>{const e=()=>{const e=window.pageYOffset||document.documentElement.scrollTop;m(e>300)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);const k=(e,t,r=!1,n=null,o=null)=>{r&&l(e=>({...e,isLoading:!0}));const i=()=>{let r=e;t&&"All"!==t&&(r=r.filter(e=>e.category===t));const i=null!==n?n:s.selectedStatus;i&&"all"!==i&&(r=r.filter(e=>e.status===i));const a=null!==o?o:s.selectedPlan;a&&"all"!==a&&(r=r.filter(e=>"free"===a?e.plan&&e.plan.includes("free"):"personal"===a?e.plan&&e.plan.includes("personal"):"plus"===a?e.plan&&e.plan.includes("plus"):"professional"!==a||e.plan&&e.plan.includes("professional")));const{urm_is_new_installation:c}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_?_UR_DASHBOARD_:{};r=r.filter(e=>{if("user-registration-membership"===e.slug){if(c)return!1;if("active"===e.status)return!1}return!0});const u=h.current.toLowerCase();r=r.filter(e=>e.title.toLowerCase().includes(u));let d=[];if(u&&u.length>=3){const e=[...new Set(r.map(e=>e.category).filter(Boolean))];d=e}l(e=>({...e,modules:r,noItemFound:0===r.length,isLoading:!1,highlightedCategories:d}))};r?setTimeout(i,150):i()},R=(0,e.useCallback)((0,rS.debounce)(e=>{e.toLowerCase(),k(s.originalModules,"All",!1)},300)),E=e=>{const[t,r,n]=e.split("/").map(Number);return new Date(n,r-1,t)};return(0,sy.__)("Activate","user-registration"),(0,sy.__)("Deactivate","user-registration"),(0,x.jsxs)(Z_,{top:"var(--wp-admin--admin-bar--height, 0)",zIndex:1,minH:"100vh",children:[(0,x.jsxs)(vv,{maxW:"100%",p:"20px",children:[(0,x.jsxs)(Z_,{mb:"6",children:[(0,x.jsx)(uR,{sortOptions:w,statusOptions:b,planOptions:y,selectedSortValue:_,selectedStatusValue:C,selectedPlanValue:S,onSortChange:e=>{l(t=>({...t,selectedSort:e?.value||"default"})),((e,t)=>{switch(e){case"newest":l(e=>({...e,modules:[...t].sort((e,t)=>E(t.released_date)-E(e.released_date))}));break;case"oldest":l(e=>({...e,modules:[...t].sort((e,t)=>E(e.released_date)-E(t.released_date))}));break;case"asc":l(e=>({...e,modules:[...t].sort((e,t)=>e.title.localeCompare(t.title))}));break;case"desc":l(e=>({...e,modules:[...t].sort((e,t)=>t.title.localeCompare(e.title))}));break;case"default":k(t,s.selectedCategory,!1,s.selectedStatus,s.selectedPlan);break;default:l(e=>({...e,modulesLoaded:!1}))}})(e?.value,s.originalModules)},onStatusChange:e=>{const t=e?.value||"all";l(e=>({...e,selectedStatus:t})),k(s.originalModules,s.selectedCategory,!1,t,null)},onPlanChange:e=>{const t=e?.value||"all";l(e=>({...e,selectedPlan:t})),k(s.originalModules,s.selectedCategory,!1,null,t)},searchValue:s.searchItem,onSearchChange:e=>{const t=e.target.value;l(e=>({...e,searchItem:t,selectedCategory:t.length>=3?"All":e.selectedCategory})),h.current=t,t.length>=3?R(t):0===t.length&&(l(e=>({...e,highlightedCategories:[]})),k(s.originalModules,s.selectedCategory,!1,s.selectedStatus,s.selectedPlan))},onReset:()=>{l(e=>({...e,selectedCategory:"All",selectedSort:"default",selectedStatus:"all",selectedPlan:"all",searchItem:"",highlightedCategories:[]})),h.current="",k(s.originalModules,"All",!1,"all","all")}}),(0,x.jsx)(dR,{categories:v,selectedCategory:s.selectedCategory,highlightedCategories:s.highlightedCategories,onCategoryChange:(e,t)=>{l(t=>({...t,selectedCategory:e})),k(s.originalModules,t,!0)}})]}),s.isLoading||!s.modulesLoaded?(0,x.jsx)(fS,{}):s.noItemFound&&s.searchItem?(0,x.jsxs)(Z_,{display:"flex",justifyContent:"center",flexDirection:"column",padding:"100px",gap:"10px",alignItems:"center",children:[(0,x.jsx)(mx,{color:"gray.300"}),(0,x.jsx)(J_,{fontSize:"20px",fontWeight:"600",children:(0,sy.__)("Sorry, no result found.","user-registration")}),(0,x.jsx)(J_,{fontSize:"14px",color:"gray.500",children:(0,sy.__)("Please try another search","user-registration")})]}):(0,x.jsx)(pE,{modules:s.modules,selectedCategory:s.selectedCategory,showToast:(e,r)=>{t({title:(0,sy.__)(e,"user-registration"),status:r,duration:3e3})}})]}),f&&(0,x.jsx)(I_,{position:"fixed",bottom:"6",right:"6",zIndex:"1000","aria-label":"Scroll to top",icon:(0,x.jsx)(nS,{}),size:"md",variant:"outline",bg:"white",borderColor:"gray.300",color:"gray.600",borderRadius:"lg",boxShadow:"sm",_hover:{bg:"gray.50",borderColor:"gray.400",transform:"translateY(-1px)",boxShadow:"md"},_focus:{boxShadow:"outline"},transition:"all 0.2s",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}})]})},mE=a.p+"images/facebook.73e84ecf.webp",hE=a.p+"images/x.49f9520e.webp",gE=a.p+"images/youtube.bf7d11b1.webp",vE=function(t){const{viewBox:r="0 0 24 24",d:n,displayName:o,defaultProps:i={}}=t,a=e.Children.toArray(t.path),s=(0,em.R)((e,t)=>(0,x.jsx)(Jf.I,{ref:t,viewBox:r,...i,...e,children:a.length?a:(0,x.jsx)("path",{fill:"currentColor",d:n})}));return s.displayName=o,s}({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});var bE=a(3042),[yE,xE]=(0,j.q)({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[wE,_E]=(0,j.q)({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[CE,SE,jE,kE]=Ex();var[RE,EE]=(0,j.q)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});var AE=(0,em.R)(function({children:t,reduceMotion:r,...n},o){const i=(0,tm.o5)("Accordion",n),a=(0,O.MN)(n),{htmlProps:s,descendants:l,...c}=function(t){const{onChange:r,defaultIndex:n,index:o,allowMultiple:i,allowToggle:a,...s}=t;!function(e){const t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,Ie.R8)({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}(t),function(e){(0,Ie.R8)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(t);const l=jE(),[c,u]=(0,e.useState)(-1);(0,e.useEffect)(()=>()=>{u(-1)},[]);const[d,p]=function(t){const{value:r,defaultValue:n,onChange:o,shouldUpdate:i=(e,t)=>e!==t}=t,a=(0,os.c)(o),s=(0,os.c)(i),[l,c]=(0,e.useState)(n),u=void 0!==r,d=u?r:l,p=(0,os.c)(e=>{const t="function"==typeof e?e(d):e;s(d,t)&&(u||c(t),a(t))},[u,a,d,s]);return[d,p]}({value:o,defaultValue:()=>i?null!=n?n:[]:null!=n?n:-1,onChange:r});return{index:d,setIndex:p,htmlProps:s,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(d)?d.includes(e):d===e),{isOpen:t,onChange:t=>{if(null!==e)if(i&&Array.isArray(d)){const r=t?d.concat(e):d.filter(t=>t!==e);p(r)}else t?p(e):a&&p(-1)}}},focusedIndex:c,setFocusedIndex:u,descendants:l}}(a),u=(0,e.useMemo)(()=>({...c,reduceMotion:!!r}),[c,r]);return(0,x.jsx)(CE,{value:l,children:(0,x.jsx)(RE,{value:u,children:(0,x.jsx)(yE,{value:i,children:(0,x.jsx)(Yf.B.div,{ref:o,...s,className:(0,Ie.cx)("chakra-accordion",n.className),__css:i.root,children:t})})})})});AE.displayName="Accordion";var OE=(0,em.R)(function(t,r){const{children:n,className:o}=t,{htmlProps:i,...a}=function(t){const{isDisabled:r,isFocusable:n,id:o,...i}=t,{getAccordionItemProps:a,setFocusedIndex:s}=EE(),l=(0,e.useRef)(null),c=(0,e.useId)(),u=null!=o?o:c,d=`accordion-button-${u}`,p=`accordion-panel-${u}`;!function(e){(0,Ie.R8)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(t);const{register:f,index:m,descendants:h}=kE({disabled:r&&!n}),{isOpen:g,onChange:v}=a(-1===m?null:m);!function(e){(0,Ie.R8)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:g,isDisabled:r});const b=(0,e.useCallback)(()=>{null==v||v(!g),s(m)},[m,s,g,v]),y=(0,e.useCallback)(e=>{const t={ArrowDown:()=>{const e=h.nextEnabled(m);null==e||e.node.focus()},ArrowUp:()=>{const e=h.prevEnabled(m);null==e||e.node.focus()},Home:()=>{const e=h.firstEnabled();null==e||e.node.focus()},End:()=>{const e=h.lastEnabled();null==e||e.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[h,m]),x=(0,e.useCallback)(()=>{s(m)},[s,m]),w=(0,e.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,Hm.Px)(f,l,t),id:d,disabled:!!r,"aria-expanded":!!g,"aria-controls":p,onClick:(0,Ie.Hj)(e.onClick,b),onFocus:(0,Ie.Hj)(e.onFocus,x),onKeyDown:(0,Ie.Hj)(e.onKeyDown,y)}},[d,r,g,b,x,y,p,f]),_=(0,e.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:p,"aria-labelledby":d,hidden:!g}},[d,g,p]);return{isOpen:g,isDisabled:r,isFocusable:n,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:w,getPanelProps:_,htmlProps:i}}(t),s={...xE().container,overflowAnchor:"none"},l=(0,e.useMemo)(()=>a,[a]);return(0,x.jsx)(wE,{value:l,children:(0,x.jsx)(Yf.B.div,{ref:r,...i,className:(0,Ie.cx)("chakra-accordion__item",o),__css:s,children:"function"==typeof n?n({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):n})})});OE.displayName="AccordionItem";var PE=(0,em.R)(function(e,t){const{getButtonProps:r}=_E(),n=r(e,t),o={display:"flex",alignItems:"center",width:"100%",outline:0,...xE().button};return(0,x.jsx)(Yf.B.button,{...n,className:(0,Ie.cx)("chakra-accordion__button",e.className),__css:o})});PE.displayName="AccordionButton";var TE=(0,em.R)(function(e,t){const{className:r,motionProps:n,...o}=e,{reduceMotion:i}=EE(),{getPanelProps:a,isOpen:s}=_E(),l=a(o,t),c=(0,Ie.cx)("chakra-accordion__panel",r),u=xE();i||delete l.hidden;const d=(0,x.jsx)(Yf.B.div,{...l,__css:u.panel,className:c});return i?d:(0,x.jsx)(IC,{in:s,...n,children:d})});TE.displayName="AccordionPanel";var[DE,ME]=(0,j.q)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),NE=(0,em.R)((e,t)=>{const r=(0,tm.o5)("Table",e),{className:n,layout:o,...i}=(0,O.MN)(e);return(0,x.jsx)(DE,{value:r,children:(0,x.jsx)(Yf.B.table,{ref:t,__css:{tableLayout:o,...r.table},className:(0,Ie.cx)("chakra-table",n),...i})})});NE.displayName="Table";var BE=(0,em.R)((e,t)=>{const r=ME();return(0,x.jsx)(Yf.B.thead,{...e,ref:t,__css:r.thead})}),IE=(0,em.R)((e,t)=>{const r=ME();return(0,x.jsx)(Yf.B.tr,{...e,ref:t,__css:r.tr})}),LE=(0,em.R)(({isNumeric:e,...t},r)=>{const n=ME();return(0,x.jsx)(Yf.B.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),zE=(0,em.R)((e,t)=>{const r=ME();return(0,x.jsx)(Yf.B.tbody,{...e,ref:t,__css:r.tbody})});const FE=({setIsListViewerOpen:t})=>{const r=[{id:"[user_registration_form]",description:(0,sy.__)("Displays registration form in the front end.","user-registration"),params:[{param_name:"id",param_description:(0,sy.__)("ID of the form to display.","user-registration"),required:!0}],example:[{example_name:'[user_registration_form id="5"]',example_description:(0,sy.__)("Displays Registration form with id 5","user-registration")}]},{id:"[user_registration_login]",description:(0,sy.__)("Displays login form in the front end.","user-registration"),params:[{param_name:"redirect_url",param_description:(0,sy.__)("Slug or Link of the page to redirect users to after login.","user-registration")}],example:[{example_name:'[user_registration_login redirect_url="sample-page"]',example_description:(0,sy.__)("Redirects to the page with the slug sample-page, i.e., Sample Page after login.","user-registration")},{example_name:'[user_registration_login redirect_url="https://wpuserregistration.com"]',example_description:(0,sy.__)("Redirects to User Registration & Membership website after login.","user-registration")}]},{id:"[user_registration_my_account]",description:(0,sy.__)("Displays My Account page in the front end when the user is logged in and the login page when the user is logged out.","user-registration"),params:[{param_name:"form_id",param_description:(0,sy.__)("Displays registration form of provided ID along with login form.","user-registration")},{param_name:"redirect_url",param_description:(0,sy.__)("Slug or Link of the page to redirect users to after login.","user-registration")},{param_name:"logout_redirect",param_description:(0,sy.__)("Slug or Link of the page to redirect users to after logout.","user-registration")}],example:[{example_name:'[user_registration_my_account form_id="5"]',example_description:(0,sy.__)("Renders login form and registration form with form ID 5 on the same page.","user-registration")},{example_name:'[user_registration_my_account redirect_url="sample-page" logout_redirect="hello-world"]',example_description:(0,sy.__)("Redirects to page with the slug sample-page, i.e., Sample Page after login. Redirects to page with the slug hello-world after user logout.","user-registration")},{example_name:'[user_registration_my_account redirect_url="https://wpuserregistration.com" logout_redirect="https://everestforms.net"]',example_description:(0,sy.__)("Redirects to the User Registration & Membership website on login and redirects to the Everest Forms website after user logout.","user-registration")}]},{id:"[user_registration_edit_profile]",description:(0,sy.__)("Displays the Edit Profile form in the front end.","user-registration")},{id:"[user_registration_edit_password]",description:(0,sy.__)("Displays the Password Change form in the front end.","user-registration")},{id:"[user_registration_view_profile_details]",description:(0,sy.__)("Displays profile details of the logged-in user in the front end.","user-registration"),requires:(0,sy.__)("Requires User Registration & Membership Pro to be activated.","user-registration")},{id:"[user_registration_popup]",description:(0,sy.__)("Displays the registration form as a popup in the front end.","user-registration"),params:[{param_name:"id",param_description:(0,sy.__)("ID of the form to display as a popup.","user-registration"),required:!0},{param_name:"type",param_description:(0,sy.__)("Type of the popup to be displayed. (It will be rendered by default on page load. But, if you set it to ‘button,’ a button that opens the popup when clicked will be displayed.)","user-registration")}],example:[{example_name:'[user_registration_popup id="1"]',example_description:(0,sy.__)("Displays User Registration & Membership popup with id 1","user-registration")},{example_name:'[user_registration_popup type="button"]',example_description:(0,sy.__)("Displays a button on the area where this shortcode is used which will display the popup when clicked.","user-registration")}],requires:(0,sy.__)("Requires User Registration & Membership Pro to be activated.","user-registration")},{id:"[urcr_restrict]...[/urcr_restrict]",description:(0,sy.__)("Restricts the text inside the shortcode.","user-registration"),params:[{param_name:"access_role",param_description:(0,sy.__)("Allow access to the mentioned user role only.","user-registration")}],example:[{example_name:'[urcr_restrict access_role="Administrator"] Content to restrict [/urcr_restrict]',example_description:(0,sy.__)("Restricts the text inside the shortcode for all users except Administrators.","user-registration")}],requires:(0,sy.__)("Requires User Registration & Membership Pro to be activated.","user-registration")},{id:"[user_registration_frontend_listing]",description:(0,sy.__)("Displays member directories in the front end.","user-registration"),params:[{param_name:"id",param_description:(0,sy.__)("Frontend Listing ID to render.","user-registration"),required:!0}],example:[{example_name:'[user_registration_frontend_listing id="1"]',example_description:(0,sy.__)("Displays user listing with ID 1 in the front end.","user-registration")}],requires:(0,sy.__)("Requires User Registration & Membership Pro to be activated.","user-registration")},{id:"[user_registration_member_directory]",description:(0,sy.__)("Displays member directories in the front end.","user-registration"),params:[{param_name:"id",param_description:(0,sy.__)("Frontend Listing ID to render.","user-registration"),required:!0}],example:[{example_name:'[user_registration_member_directory id="1"]',example_description:(0,sy.__)("Displays user listing with ID 1 in the front end.","user-registration")}],requires:(0,sy.__)("Requires User Registration & Membership Pro to be activated.","user-registration")},{id:"[user_registration_download_pdf_button]",description:(0,sy.__)("Show a Download PDF button on your site. The PDF will have the user details for that specific user. This button will only be visible once the users are logged in.","user-registration"),requires:(0,sy.__)("Requires User Registration & Membership Pro and PDF Form Submission add-on to be activated.","user-registration")},{id:"[user_registration_groups]",description:(0,sy.__)("Shows a list of available membership options for users to browse.","user-registration"),params:[{param_name:"id",param_description:(0,sy.__)("ID of the membership group to display.","user-registration"),required:!1},{param_name:"button_text",param_description:(0,sy.__)("Override the signup button text.","user-registration"),required:!1}],example:[{example_name:'[user_registration_groups id="5" button_text="Join Now"]',example_description:(0,sy.__)("Displays Membership listing attached to group with id 5","user-registration")}]},{id:"[user_registration_membership_thank_you]",description:(0,sy.__)("Displays a thank you message to users after successfully registering for a membership.","user-registration")},{id:"[user_registration_lost_password]",description:(0,sy.__)("Displays a section for recovering a lost password.","user-registration")}],[n,o]=(0,e.useState)({}),[i,a]=(0,e.useState)({}),{onCopy:s,hasCopied:l}=function(t,r={}){const[n,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(t);(0,e.useEffect)(()=>a(t),[t]);const{timeout:s=1500,...l}="number"==typeof r?{timeout:r}:r,c=(0,e.useCallback)(()=>{const e=bE(i,l);o(e)},[i,l]);return(0,e.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},s)),()=>{e&&window.clearTimeout(e)}},[s,n]),{value:i,setValue:a,onCopy:c,hasCopied:n}}(),[c,u]=(0,e.useState)(""),d=MC();(0,e.useEffect)(()=>{const e={...n};r.map(t=>{e[t.id]=!1}),o(e)},[]),(0,e.useEffect)(()=>{const e=i;r.map(t=>{e[t.id]=!1}),a(e)},[i]);const p=e=>{try{const t=document.createElement("textarea");t.innerText=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove(),u(e),event.stopPropagation(),setTimeout(()=>{u("")},1e3),d({description:`${e} copied to clipboard`,position:"bottom-right",status:"success",duration:1500})}catch(e){console.error("Error copying shortcode:",e)}};return(0,x.jsxs)(hx.B,{px:"6",py:"8",direction:"column",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsx)(hx.B,{direction:"row",children:(0,x.jsx)(N_,{leftIcon:(0,x.jsx)(_y,{w:"30",h:"30",position:"relative",top:"2px"}),variant:"outline",border:"none",size:"md",fontSize:"16px",fontWeight:"600",onClick:()=>t(!1),boxShadow:"none !important",children:(0,sy.__)("All Shortcodes","user-registration")})}),(0,x.jsx)(AE,{allowMultiple:!0,children:r.map(e=>(0,x.jsxs)(OE,{p:"16px",children:[(0,x.jsxs)(PE,{justifyContent:"space-between",_expanded:{bg:"#F8F8FE"},onClick:()=>{var t;t=e.id,o({...n,[t]:!n[t]})},boxShadow:"none !important",children:[(0,x.jsx)(Z_,{flex:"1",textAlign:"left",bgColor:"#EDEFF7",color:"#475bb2",maxWidth:"fit-content",p:"4px 8px",fontWeight:"600",fontSize:"14px",children:e.id}),(0,x.jsx)(Z_,{textAlign:"right",children:(0,x.jsxs)(gx,{children:[(0,x.jsx)(I_,{size:"md",icon:(0,x.jsx)(vE,{}),onClick:t=>((e,t)=>{try{const r=document.createElement("textarea");r.innerText=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove(),a({...i,[e]:!i[e]}),d({description:`${e} copied to clipboard`,status:"success",position:"bottom-right",duration:1500}),t.stopPropagation()}catch(e){console.error("Error copying shortcode:",e)}})(e.id,t)}),n[e.id]?(0,x.jsx)(Ey,{h:"5",w:"5"}):(0,x.jsx)(Ay,{h:"5",w:"5"})]})})]}),(0,x.jsxs)(TE,{pb:4,bgColor:"#F8F8FE",sx:{display:"flex",flexDirection:"column",gap:"20px"},children:[(0,x.jsx)(J_,{fontSize:"14px",children:e.description}),e.params&&(0,x.jsxs)(NE,{variant:"simple",fontSize:"14px",size:"sm",sx:{display:"flex",flexDirection:"column",gap:"16px"},children:[(0,x.jsx)(BE,{children:(0,x.jsx)(IE,{border:"none",children:(0,x.jsx)(LE,{sx:{fontWeight:"600",paddingLeft:"0px",border:"none"},children:(0,sy.__)("Parameters:","user-registration")})})}),(0,x.jsx)(zE,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:e.params.map(({param_name:e,param_description:t,required:r},n)=>(0,x.jsxs)(IE,{children:[(0,x.jsx)(LE,{px:"0px",borderBottom:"0px",width:"200px",children:(0,x.jsx)(Z_,{flex:"1",textAlign:"left",bgColor:"#EDEFF7",color:"#475bb2",maxWidth:"fit-content",p:"4px 8px",fontWeight:"600",children:e})}),(0,x.jsx)(LE,{borderBottom:"0px",children:(0,x.jsxs)(J_,{children:[r&&(0,x.jsx)("strong",{children:(0,sy.__)("REQUIRED.","user-registration")})," ",t]})})]},n))})]}),e.example&&(0,x.jsxs)(NE,{variant:"simple",fontSize:"14px",size:"sm",sx:{display:"flex",flexDirection:"column",gap:"16px"},children:[(0,x.jsx)(BE,{children:(0,x.jsx)(IE,{children:(0,x.jsx)(LE,{sx:{fontWeight:"600",paddingLeft:"0px",border:"none"},children:(0,sy.__)("Examples:","user-registration")})})}),(0,x.jsx)(zE,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:e.example.map(({example_name:e,example_description:t},r)=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(IE,{children:[(0,x.jsx)(LE,{paddingLeft:"0px",paddingTop:"2",paddingBottom:"2",borderBottom:"0px",children:(0,x.jsx)(Z_,{flex:"1",textAlign:"left",bgColor:"#EDEFF7",color:"#475bb2",maxWidth:"fit-content",p:"4px 8px",fontWeight:"600",children:e})}),(0,x.jsx)(LE,{children:e&&(0,x.jsx)(Z_,{children:(0,x.jsx)(I_,{size:"md",icon:(0,x.jsx)(vE,{}),onClick:t=>p(e)})})})]},r),(0,x.jsx)(IE,{children:(0,x.jsx)(LE,{paddingLeft:"0px",paddingTop:"2",paddingBottom:"2",borderBottom:"0px",children:t})})]}))})]}),e.requires&&(0,x.jsx)(J_,{fontSize:"14px",color:"red",fontWeight:"500",marginTop:"10px",children:e.requires})]})]},e.id))})]})},HE=({setIsListViewerOpen:t})=>{const r=[{id:(0,sy.__)("Smart Tags to parse some data before registration"),description:(0,sy.__)("The Smart Tags listed below can be used to parse user data that doesn’t require user to be registered in the email content.","user-registration"),smartTag:[{id:"{{blog_info}}",description:(0,sy.__)("Retrieves information about the current site.","user-registration")},{id:"{{home_url}}",description:(0,sy.__)("Retrieves the URL for a given site where the front end is accessible.","user-registration")},{id:"{{admin_email}}",description:(0,sy.__)("Site admin email.","user-registration")},{id:"{{site_name}}",description:(0,sy.__)("Name of the website.","user-registration")},{id:"{{site_url}}",description:(0,sy.__)("URL of the website.","user-registration")},{id:"{{page_title}}",description:(0,sy.__)("Current Page title.","user-registration")},{id:"{{page_url}}",description:(0,sy.__)("Current Page URL.","user-registration")},{id:"{{page_id}}",description:(0,sy.__)("Current Page ID.","user-registration")},{id:"{{post_title}}",description:(0,sy.__)("Current Post title.","user-registration")},{id:"{{current_date}}",description:(0,sy.__)("Current date.","user-registration")},{id:"{{current_time}}",description:(0,sy.__)("Current time.","user-registration")},{id:"{{current_language}}",description:(0,sy.__)("Current language of the site.","user-registration")},{id:"{{email_token}}",description:(0,sy.__)("Token generated for an email confirmation.","user-registration")},{id:"{{user_ip_address}}",description:(0,sy.__)("Current user's ip address.","user-registration")},{id:"{{referrer_url}}",description:(0,sy.__)("URL of the referrer page from where users landed on the form.","user-registration")},{id:"{{form_id}}",description:(0,sy.__)("Current form ID.","user-registration")},{id:"{{form_name}}",description:(0,sy.__)("Current form name.","user-registration")},{id:"{{author_name}}",description:(0,sy.__)("Current page or post's author name.","user-registration")},{id:"{{author_email}}",description:(0,sy.__)("Current page or post's author email.","user-registration")},{id:"{{unique_id}}",description:(0,sy.__)("Generates a unique string that can be used as an ID.","user-registration")}]},{id:(0,sy.__)("Smart Tags to parse registered users data"),description:(0,sy.__)("The Smart Tags listed below can be used to parse a registered user’s submitted field value and other data in the email content.","user-registration"),smartTag:[{id:"{{user_id}}",description:(0,sy.__)("ID of the registered user.","user-registration")},{id:"{{user_login}}",description:(0,sy.__)("Username of the registered user.","user-registration")},{id:"{{user_pass}}",description:(0,sy.__)("Password of the registered user.","user-registration")},{id:"{{first_name}}",description:(0,sy.__)("First name of the registered user.","user-registration")},{id:"{{description}}",description:(0,sy.__)("Bio of the registered user.","user-registration")},{id:"{{nickname}}",description:(0,sy.__)("Nickname of the registered user","user-registration")},{id:"{{user_url}}",description:(0,sy.__)("Website/URL of the registered user.","user-registration")},{id:"{{display_name}}",description:(0,sy.__)("Display name of the registered user.","user-registration")},{id:"{{email}}",description:(0,sy.__)("Email of the registered user.","user-registration")},{id:"{{all_fields}}",description:(0,sy.__)("All form field values filled and submitted by the user.","user-registration")},{id:"{{user_roles}}",description:(0,sy.__)("The user’s assigned role.","user-registration")},{id:"{{auto_pass}}",description:(0,sy.__)("Auto generated password for the user. It works only if auto-generated password feature is enabled in User Registration & Membership Pro","user-registration")}]}],[n,o]=(0,e.useState)({});return(0,e.useEffect)(()=>{const e={...n};r.map(t=>{e[t.id]=!1}),o(e)},[]),(0,x.jsxs)(hx.B,{px:"6",py:"8",direction:"column",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsx)(hx.B,{direction:"row",children:(0,x.jsx)(N_,{leftIcon:(0,x.jsx)(_y,{w:"30",h:"30",position:"relative",top:"2px"}),variant:"outline",border:"none",size:"md",fontSize:"16px",fontWeight:"600",onClick:()=>t(!1),children:(0,sy.__)("All Smart Tags","user-registration")})}),(0,x.jsx)(AE,{allowMultiple:!0,children:r.map(e=>(0,x.jsxs)(OE,{p:"16px",children:[(0,x.jsxs)(PE,{justifyContent:"space-between",_expanded:{bg:"#F8F8FE"},onClick:()=>{var t;t=e.id,o({...n,[t]:!n[t]})},boxShadow:"none !important",children:[(0,x.jsx)(Z_,{flex:"1",textAlign:"left",bgColor:"#F8F2FF",color:"#A975E8",maxWidth:"fit-content",p:"4px 8px",fontWeight:"600",fontSize:"14px",children:e.id}),n[e.id]?(0,x.jsx)(Ey,{h:"5",w:"5"}):(0,x.jsx)(Ay,{h:"5",w:"5"})]}),(0,x.jsxs)(TE,{pb:4,bgColor:"#FBF8FE",sx:{display:"flex",flexDirection:"column",gap:"20px"},children:[(0,x.jsx)(J_,{fontSize:"14px",children:e.description}),e.smartTag&&(0,x.jsx)(NE,{variant:"simple",fontSize:"14px",size:"sm",sx:{display:"flex",flexDirection:"column",gap:"16px"},children:(0,x.jsx)(zE,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:e.smartTag.map(({id:e,description:t},r)=>(0,x.jsxs)(IE,{children:[(0,x.jsx)(LE,{px:"0px",borderBottom:"0px",width:"200px",children:(0,x.jsx)(Z_,{flex:"1",textAlign:"left",bgColor:"#F8F2FF",color:"#A975E8",maxWidth:"fit-content",p:"4px 8px",fontWeight:"600",children:e})}),(0,x.jsx)(LE,{borderBottom:"0px",children:t})]},r))})})]})]},e.id))})]})},VE="#475bb2",$E=()=>{const{newFormURL:t,allFormsURL:r,utmCampaign:n}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,[o,i]=(0,e.useState)(!1),[a,s]=(0,e.useState)("");(0,e.useEffect)(()=>{},[o]);const l="https://wpuserregistration.com/feature-requests/?utm_source=dashboard-help&utm_medium=sidebar-link&utm_campaign="+n;return(0,x.jsxs)(yC,{my:"8",mx:"6",gridGap:"5",gridTemplateColumns:{sm:"1fr",md:"3fr 1fr"},children:[(0,x.jsxs)(hx.B,{gap:"5",children:[o?"shortcodes"===a?(0,x.jsx)(FE,{setIsListViewerOpen:i}):(0,x.jsx)(HE,{setIsListViewerOpen:i}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(yC,{gridTemplateColumns:{sm:"1fr",md:"1fr 1fr"},gridGap:"5",children:[(0,x.jsxs)(hx.B,{px:"6",py:"8",align:"center",gap:"3",bgColor:"white",borderRadius:"base",fontSize:"14px",fontWeight:"normal",children:[(0,x.jsx)(Uy,{w:"5",h:"5",fill:VE}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Getting Started","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Check our documentation for detailed information on User Registration & Membership features and how to use them.","user-registration")}),(0,x.jsx)(N_,{mt:"10",variant:"outline",color:"#475bb2",borderColor:"#475bb2",borderRadius:"base",fontSize:"14px",fontWeight:"normal",children:(0,x.jsx)(xC,{href:"https://docs.wpuserregistration.com/",isExternal:!0,textDecoration:"none",_hover:{textDecoration:"none"},fontSize:"13px",fontWeight:"normal",children:(0,sy.__)("View Documentation","user-registration")})})]}),(0,x.jsxs)(hx.B,{px:"6",py:"8",align:"center",gap:"3",bgColor:"white",borderRadius:"base",fontSize:"14px",fontWeight:"normal",children:[(0,x.jsx)(Qy,{w:"5",h:"5",fill:VE}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Support","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Submit a ticket for encountered issues and get help from our support team instantly.","user-registration")}),(0,x.jsx)(N_,{mt:"10",variant:"outline",color:"#475bb2",borderColor:"#475bb2",borderRadius:"base",fontSize:"14px",fontWeight:"normal",children:(0,x.jsx)(xC,{href:"https://wpuserregistration.com/support/",isExternal:!0,textDecoration:"none",_hover:{textDecoration:"none"},fontSize:"13px",fontWeight:"normal",children:(0,sy.__)("Create a Ticket","user-registration")})})]})]}),(0,x.jsxs)(yC,{gridTemplateColumns:{sm:"1fr",md:"1fr 1fr"},gridGap:"5",children:[(0,x.jsxs)(hx.B,{px:"6",py:"8",align:"center",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",textAlign:"center",children:[(0,x.jsx)(dy,{w:"8",h:"8",fill:"#475bb2"}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Shortcodes","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Find the complete list of shortcodes with their usage information and parameter details.","user-registration")}),(0,x.jsx)(N_,{mt:"10",variant:"outline",color:"#475bb2",borderColor:"#475bb2",borderRadius:"base",fontSize:"14px",fontWeight:"normal",onClick:()=>{i(!0),s("shortcodes")},children:(0,sy.__)("View all Shortcodes","user-registration")})]}),(0,x.jsxs)(hx.B,{px:"6",py:"8",align:"center",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",textAlign:"center",children:[(0,x.jsx)(py,{w:"8",h:"8",fill:"#475bb2"}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Smart Tags","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Find the complete list of smart tags with their usage information and parameter details.","user-registration")}),(0,x.jsx)(N_,{mt:"10",variant:"outline",color:"#475bb2",borderColor:"#475bb2",borderRadius:"base",fontSize:"14px",fontWeight:"normal",onClick:()=>{i(!0),s("smartTags")},children:(0,sy.__)("View Tags","user-registration")})]})]})]}),(0,x.jsx)(hx.B,{marginTop:"25px",children:(0,x.jsx)(X_,{as:"h3",fontSize:"lg",fontWeight:"semibold",children:(0,sy.__)("Join Our Community","user-registration")})}),(0,x.jsxs)(yC,{gridTemplateColumns:"repeat(3, 1fr)",gap:"6",marginTop:"20px",children:[(0,x.jsxs)(hx.B,{bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",overflow:"hidden",boxShadow:"sm",h:"100%",children:[(0,x.jsx)(Z_,{p:"6",textAlign:"center",position:"relative",children:(0,x.jsx)(UC,{src:mE})}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",flex:"1",justify:"space-between",children:[(0,x.jsxs)(hx.B,{gap:"3",children:[(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",color:"gray.800",children:(0,sy.__)("Facebook Community","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Join our exclusive group and connect with fellow members. Ask questions, contribute to discussions, and share feedback!","user-registration")})]}),(0,x.jsx)(N_,{as:xC,bgColor:"#1877F2",color:"white",borderRadius:"base",fontSize:"14px",fontWeight:"normal",_hover:{bgColor:"#166FE5"},isExternal:!0,href:"https://www.facebook.com/groups/userregistration",textDecor:"none !important",alignSelf:"flex-start",mt:"auto",children:(0,sy.__)("Join Group","user-registration")})]})]}),(0,x.jsxs)(hx.B,{bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",overflow:"hidden",boxShadow:"sm",h:"100%",children:[(0,x.jsx)(Z_,{p:"6",textAlign:"center",position:"relative",children:(0,x.jsx)(UC,{src:hE})}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",flex:"1",justify:"space-between",children:[(0,x.jsxs)(hx.B,{gap:"3",children:[(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",color:"gray.800",children:(0,sy.__)("X ( Twitter )","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Follow us on X to get the latest news and updates about User Registration & Membership.","user-registration")})]}),(0,x.jsx)(N_,{as:xC,bgColor:"black",color:"white",borderRadius:"base",fontSize:"14px",fontWeight:"normal",_hover:{bgColor:"#333"},isExternal:!0,href:"https://twitter.com/user_register",textDecor:"none !important",alignSelf:"flex-start",mt:"auto",children:(0,sy.__)("Follow","user-registration")})]})]}),(0,x.jsxs)(hx.B,{bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",overflow:"hidden",boxShadow:"sm",h:"100%",children:[(0,x.jsx)(Z_,{p:"6",textAlign:"center",position:"relative",children:(0,x.jsx)(UC,{src:gE})}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",flex:"1",justify:"space-between",children:[(0,x.jsxs)(hx.B,{gap:"3",children:[(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",color:"gray.800",children:(0,sy.__)("YouTube","user-registration")}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Subscribe to our YouTube channel, where we guide you on using User Registration & Membership features and add-ons.","user-registration")})]}),(0,x.jsx)(N_,{as:xC,bgColor:"#FF0000",color:"white",borderRadius:"base",fontSize:"14px",fontWeight:"normal",_hover:{bgColor:"#CC0000"},isExternal:!0,href:"https://www.youtube.com/@UserRegistration",textDecor:"none !important",alignSelf:"flex-start",mt:"auto",children:(0,sy.__)("Subscribe","user-registration")})]})]})]})]}),(0,x.jsxs)(hx.B,{gap:"5",children:[(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(PC,{size:20,color:VE}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Feature Request","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Don't find a feature you're looking for? Suggest any features you think would enhance our product.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:l,isExternal:!0,children:(0,sy.__)("Request a Feature","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(qy,{w:"5",h:"5",fill:VE}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Submit a Review","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Please take a moment to give us a review. We appreciate honest feedback that'll help us improve our plugin.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",href:"https://wordpress.org/support/plugin/user-registration/reviews/?rate=5#new-post",isExternal:!0,children:(0,sy.__)("Submit a Review","user-registration")})]}),(0,x.jsxs)(hx.B,{p:"6",gap:"3",bgColor:"white",borderRadius:"base",border:"1px",borderColor:"gray.100",children:[(0,x.jsxs)(gx,{gap:"2",children:[(0,x.jsx)(Wy,{w:"5",h:"5",fill:VE}),(0,x.jsx)(X_,{as:"h3",size:"sm",fontWeight:"semibold",children:(0,sy.__)("Video Tutorials","user-registration")})]}),(0,x.jsx)(J_,{fontSize:"13px",color:"gray.700",children:(0,sy.__)("Watch our step-by-step video tutorials that'll help you get the best out of User Registration & Membership's features.","user-registration")}),(0,x.jsx)(xC,{color:"var(--chakra-colors-primary-500) !important",textDecor:"underline",isExternal:!0,href:"https://www.youtube.com/@UserRegistration",children:(0,sy.__)("Watch Videos","user-registration")})]})]})]})},UE=a.p+"images/colormag.95355511.webp",WE=a.p+"images/evf.5e0119d5.webp",qE=a.p+"images/magazine-blocks.ec5d28fd.webp",ZE=a.p+"images/masteriyo.edefcb9e.webp",YE=a.p+"images/blockart-blocks.6f863fcb.webp",GE=a.p+"images/zakra.6ec9d263.webp",XE=[{label:"Masteriyo",slug:"learning-management-system/lms.php",description:(0,sy.__)("Revolutionize e-learning effortlessly with Masteriyo, a WordPress LMS plugin. Sell courses with quizzes, assignments, etc., for a dynamic learning experience.","user-registration"),type:"plugin",image:ZE,website:"https://masteriyo.com/",shortDescription:(0,sy.__)("WordPress LMS plugin with Quiz Builder","user-registration"),logo:ex,liveDemoURL:"https://masteriyo.demoswp.net/"},{label:"BlockArt Blocks",slug:"blockart-blocks/blockart.php",description:(0,sy.__)("Fuel your digital creativity with BlockArt Blocks, a dynamic collection of custom Gutenberg blocks for designing captivating WordPress sites.","user-registration"),type:"plugin",image:YE,website:"https://wpblockart.com/blockart-blocks/",shortDescription:(0,sy.__)("Custom Gutenberg Blocks Plugin","user-registration"),logo:Xy,liveDemoURL:"https://tastewp.com/template/blockartblocks"},{label:"Everest Forms",slug:"everest-forms/everest-forms.php",description:(0,sy.__)("Manage online communication with Everest Forms, a lightning-fast and secure contact form plugin offering beautiful templates for professional forms.","user-registration"),type:"plugin",image:WE,website:"https://everestforms.net/",shortDescription:(0,sy.__)("User-friendly Contact Form Plugin for WordPress","user-registration"),logo:Jy,liveDemoURL:"https://everestforms.demoswp.net/"},{label:"Magazine Blocks",slug:"magazine-blocks/magazine-blocks.php",description:(0,sy.__)("Experience advanced Gutenberg blocks with Magazine Blocks, designed for crafting stunning magazine and news websites.","user-registration"),type:"plugin",image:qE,website:"https://wpblockart.com/magazine-blocks/",shortDescription:(0,sy.__)("Gutenberg Blocks for Magazine-style Websites","user-registration"),logo:Ky,liveDemoURL:"https://tastewp.com/template/magazineblocks"}],KE=[{label:"Zakra",slug:"zakra",description:(0,sy.__)("Unlock boundless website possibilities with Zakra, a versatile multipurpose theme offering over 40 free starter sites for a tailored web experience.","user-registration"),type:"theme",image:GE,website:"https://zakratheme.com/",liveDemoURL:"https://zakratheme.com/demos/#/"},{label:"ColorMag",slug:"colormag",description:(0,sy.__)("Elevate your website's style with Colormag, the go-to choice for news, blogs, and magazines. Embark on a digital spectacle of website-building excellence! ","user-registration"),type:"theme",image:UE,website:"https://themegrill.com/themes/colormag/",liveDemoURL:"https://themegrilldemos.com/colormag-demos/#/"}];function JE(e){const{leastDestructiveRef:t,...r}=e;return(0,x.jsx)(Ym,{...r,initialFocusRef:t})}var QE=(0,em.R)((e,t)=>(0,x.jsx)(FR,{ref:t,role:"alertdialog",...e}));const eA=({cancelRef:e,onClose:t,slug:r,isPluginStatusLoading:n,setIsPluginStatusLoading:o})=>{const i=MC(),[{pluginsStatus:a},s]=gS(),{urRestApiNonce:l}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,c=e=>{"function"==typeof e&&e()},u=e=>{"function"==typeof e&&e()};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(N_,{size:"sm",fontSize:"xs",fontWeight:"normal",variant:"outline",colorScheme:"primary",isDisabled:n,ref:e,onClick:t,children:(0,sy.__)("Cancel","user-registration")}),(0,x.jsx)(N_,{size:"sm",fontSize:"xs",fontWeight:"normal",colorScheme:"primary",onClick:()=>{(e=>{const r=e.split("/")[0];"not-installed"===a[e]?(async e=>{o(!0);try{const r=await iC()({path:"wp/v2/plugins",method:"POST",headers:{"X-WP-Nonce":l},data:{slug:e,status:"active"}});a[`${r.plugin}.php`]=r.status,s({type:vS,pluginsStatus:a}),i({title:"Success",description:(0,sy.sprintf)((0,sy.__)("%s plugin installed and activated successfully","user-registration"),r.name),status:"success",duration:9e3,isClosable:!0}),c(t)}catch(e){i({title:"Error",description:e.message||"An error occurred",status:"error",duration:9e3,isClosable:!0}),u(t)}finally{o(!1)}t()})(r):"inactive"===a[e]&&(async({slug:e,file:r})=>{o(!0);try{const n=await iC()({path:`wp/v2/plugins/${e}`,method:"POST",headers:{"X-WP-Nonce":l},data:{plugin:r.replace(".php",""),status:"active"}});a[`${n.plugin}.php`]=n.status,s({type:vS,pluginsStatus:a}),i({title:"Success",description:(0,sy.sprintf)((0,sy.__)("%s plugin activated successfully","user-registration"),n.name),status:"success",duration:5e3,isClosable:!0}),c(t)}catch(e){i({title:"Error",description:e.message||(0,sy.__)("An error occurred","user-registration"),status:"error",duration:5e3,isClosable:!0}),u(t)}finally{o(!1),t()}})({slug:r,file:e})})(r)},ml:3,isLoading:n,children:"inactive"===a[r]?(0,sy.__)("Activate","user-registration"):(0,sy.__)("Install","user-registration")})]})},tA=t=>{const{adminURL:r}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,[{pluginsStatus:n,themesStatus:o},i]=gS(),{label:a,description:s,image:l,website:u,slug:d,type:p,liveDemoURL:f}=t,{isOpen:m,onOpen:h,onClose:g}=c(),[v,b]=(0,e.useState)("inactive"),[y,w]=(0,e.useState)(!1);(0,e.useEffect)(()=>{const e="theme"===p?o[d]:n[d];b(e)},[n[d],o[d]]);const _=(0,e.useRef)();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(Z_,{overflow:"hidden",boxShadow:"none",border:"1px",borderRadius:"base",borderColor:"gray.100",display:"flex",flexDir:"column",backgroundColor:"#ffffff",children:[(0,x.jsxs)(Z_,{p:"0",flex:"1 1 0%",children:[(0,x.jsx)(UC,{w:"full",src:l}),(0,x.jsxs)(hx.B,{gap:"2",px:"4",py:"5",children:[(0,x.jsx)(X_,{as:"h3",size:"md",m:"0",fontSize:"md",fontWeight:"semibold",children:a}),(0,x.jsx)(J_,{m:"0",color:"gray.600",fontSize:"13px",children:s})]})]}),(0,x.jsx)(Vk,{color:"gray.300"}),(0,x.jsxs)(Z_,{px:"4",py:"5",justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,x.jsxs)(gx,{gap:"1",align:"center",children:[(0,x.jsx)(xC,{href:u,fontSize:"xs",color:"gray.500",textDecoration:"underline",isExternal:!0,children:(0,sy.__)("Learn More","user-registration")}),(0,x.jsx)(J_,{as:"span",lineHeight:"1",color:"gray.500",children:"|"}),(0,x.jsx)(xC,{href:f,fontSize:"xs",color:"gray.500",textDecoration:"underline",isExternal:!0,children:(0,sy.__)("Live Demo","user-registration")})]}),(0,x.jsx)(N_,{backgroundColor:"#475bb2",color:"white",size:"sm",fontSize:"xs",borderRadius:"base",fontWeight:"semibold",_hover:{color:"white",textDecoration:"none"},_focus:{color:"white",textDecoration:"none"},isDisabled:"active"===v,as:"theme"===p?xC:void 0,href:"theme"===p?"inactive"===v?`${r}themes.php?search=${d}`:`${r}/theme-install.php?search=${d}`:void 0,onClick:"plugin"===p?h:void 0,isLoading:"plugin"===p?y:void 0,children:"active"===v?(0,sy.__)("Active","user-registration"):"inactive"===v?(0,sy.__)("Activate","user-registration"):(0,sy.__)("Install","user-registration")})]})]}),"plugin"===p&&(0,x.jsx)(JE,{isOpen:m,leastDestructiveRef:_,onClose:g,isCentered:!0,children:(0,x.jsx)(fh,{children:(0,x.jsxs)(QE,{children:[(0,x.jsx)(hv,{fontSize:"lg",fontWeight:"semibold",children:"inactive"===n[d]?(0,sy.__)("Activate Plugin","user-registration"):(0,sy.__)("Install Plugin","user-registration")}),(0,x.jsx)(gv,{children:"inactive"===n[d]?(0,sy.sprintf)((0,sy.__)("Are you sure? You want to activate %s plugin.","user-registration"),a):(0,sy.sprintf)((0,sy.__)("Are you sure? You want to install and activate %s plugin.","user-registration"),a)}),(0,x.jsx)(HR,{children:(0,x.jsx)(eA,{cancelRef:_,onClose:g,slug:d,isPluginStatusLoading:y,setIsPluginStatusLoading:w})})]})})})]})},rA=()=>{const[{pluginsStatus:e,themesStatus:t},r]=gS();return(0,x.jsxs)(hx.B,{my:"8",mx:"6",children:[(0,x.jsxs)(Z_,{children:[(0,x.jsx)(X_,{size:"md",fontSize:"xl",fontWeight:"semibold",mb:"8",children:(0,sy.__)("Plugins","user-registration")}),(0,x.jsx)(dS,{columns:{base:1,md:2,lg:3,xl:4},spacing:"5",children:XE.map(r=>(0,x.jsx)(tA,{...r,pluginsStatus:e,themesStatus:t},r.slug))})]}),(0,x.jsxs)(Z_,{children:[(0,x.jsx)(X_,{size:"md",fontSize:"xl",fontWeight:"semibold",my:"8",children:(0,sy.__)("Themes","user-registration")}),(0,x.jsx)(dS,{columns:{base:1,md:2,lg:3,xl:4},spacing:"5",children:KE.map(r=>(0,x.jsx)(tA,{...r,pluginsStatus:e,themesStatus:t},r.slug))})]})]})},nA=()=>{const{isPro:t,settingsURL:r}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_;return(0,e.useEffect)(()=>{window.open(r),window.history.back()},[r]),null};var oA=a(368);const iA=()=>{const{isPro:e,settingsURL:t}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_;return(0,x.jsxs)(Pb,{children:[(0,x.jsx)(Ab,{path:"/",element:(0,x.jsx)(tS,{})}),(0,x.jsx)(Ab,{path:"/settings",element:(0,x.jsx)(nA,{to:t})}),(0,x.jsx)(Ab,{path:"/features",element:(0,x.jsx)(fE,{})}),(0,x.jsx)(Ab,{path:"/products",element:(0,x.jsx)(rA,{})}),(0,x.jsx)(Ab,{path:"/content-access-rules",element:(0,x.jsx)(oA.A,{})}),(0,x.jsx)(Ab,{path:"/help",element:(0,x.jsx)($E,{})}),(0,x.jsx)(Ab,{path:"*",element:(0,x.jsx)(tS,{})})]})};var aA=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],sA=a(8061);function lA(e){return"function"==typeof e}var cA=e=>function(...t){let r=[...t],n=t[t.length-1];var o;return o=n,(0,Ie.Gv)(o)&&aA.every(e=>Object.prototype.hasOwnProperty.call(o,e))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce((e,t)=>t(e),t)}(...r.map(e=>t=>lA(e)?e(t):function(...e){return sA({},...e,dA)}(t,e)))(n)},uA=cA(Ja);function dA(e,t,r,n){if((lA(e)||lA(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=lA(e)?e(...r):e,o=lA(t)?t(...r):t;return sA({},n,o,dA)}}cA(Qa);const pA=uA({colors:{primary:{50:"#fafafc",100:"#e8eefd",200:"#b9cdf9",300:"#8aabf4",400:"#5c8af0",500:"#2563eb",600:"#134fd2",700:"#0f3ea3",800:"#0b2c75",900:"#061a46"}},styles:{global:{".wp-admin #user-registration":{ms:"-20px"},".user-registration-membership_page_user-registration-dashboard #wpwrap":{bgColor:"primary.50"},".ba-modal-open":{"#adminmenuwrap":{zIndex:999}}}},components:{Button:{baseStyle:{borderRadius:"base"}},Heading:{baseStyle:{margin:0}},Text:{baseStyle:{margin:0}}}}),fA=()=>{const{plugins:t,themes:r}="undefined"!=typeof _UR_DASHBOARD_&&_UR_DASHBOARD_,[{pluginsStatus:n,themesStatus:o},i]=gS(),{isOpen:a,onOpen:s,onClose:l}=c(),u=(0,e.useRef)();return(0,e.useEffect)(()=>{i({type:vS,pluginsStatus:t},{type:bS,themeStatus:r})},[n,o]),(0,e.useEffect)(()=>(a?document.body.classList.add("ur-modal-open"):document.body.classList.remove("ur-modal-open"),()=>{document.body.classList.remove("ur-modal-open")}),[a]),(0,e.useEffect)(()=>{const e=document.querySelector(".ur-announcement-button");if(e){const t=()=>{s()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[]),(0,x.jsx)(Qb,{children:(0,x.jsxs)(Im,{theme:pA,children:[(0,x.jsxs)(Qm,{isOpen:a,placement:"right",onClose:l,finalFocusRef:u,size:"md",children:[(0,x.jsx)(fh,{bgColor:"rgb(0,0,0,0.05)",sx:{backdropFilter:"blur(1px)"}}),(0,x.jsxs)(fv,{className:"user-registration-announcement",top:"var(--wp-admin--admin-bar--height, 0) !important",children:[(0,x.jsx)(mv,{}),(0,x.jsx)(hv,{children:(0,sy.__)("Latest Updates","user-registration")}),(0,x.jsx)(gv,{children:(0,x.jsx)(bC,{})})]})]}),(0,x.jsx)(vv,{maxW:"100%",children:(0,x.jsx)(iA,{})})]})})},mA=document.getElementById("user-registration-dashboard"),hA=n.createRoot(mA);hA&&hA.render((0,x.jsx)(hS,{initialState:{pluginsStatus:"",themesStatus:"",upgradeModal:{enable:!1,type:"",moduleType:"",moduleName:""},allModules:[],isMembershipActivated:!1,isPaymentAddonActivated:!1},reducer:(e,t)=>{switch(t.type){case vS:return{...e,pluginsStatus:t.pluginsStatus};case bS:return{...e,themesStatus:t.themesStatus};case"GET_UPGRADE_MODAL":return{...e,upgradeModal:t.upgradeModal};case yS:return{...e,allModules:t.allModules};case"GET_IS_MEMBERSHIP_ACTIVATED":return{...e,isMembershipActivated:t.isMembershipActivated};case"GET_IS_PAYMENT_ADDON_ACTIVATED":return{...e,isPaymentAddonActivated:t.isPaymentAddonActivated};default:return e}},children:(0,x.jsx)(fA,{})}))})()})();
Copyright ©2021 || Defacer Indonesia