From f7ddbdf5d51d6130b1ba80dcde8d0cdb046a9f13 Mon Sep 17 00:00:00 2001 From: Batyr Date: Sat, 8 Feb 2025 12:46:07 +0500 Subject: [PATCH] build --- .../{about-D1w5CB-w.js => about-CyhPheJh.js} | 2 +- dist/assets/b2b---yoxHki.js | 1 + dist/assets/b2b-BEse7PSz.js | 1 - ...C99BC0Jw.js => become-sponsor-DBJUad-C.js} | 2 +- dist/assets/contacts-Bqc1YEeT.js | 1 - dist/assets/contacts-CsOXm81r.js | 1 + .../{home-B0pTdQtC.js => home-yPOYoEfY.js} | 2 +- .../{index-BuLq38EW.js => index-C3XY1fyd.js} | 4 +-- ...{index-D6te4toP.css => index-DXwC7bDy.css} | 2 +- ...up-ZjbLf0Ae.js => radio-group-n_F2-7rq.js} | 2 +- ...orm-D4sH47rQ.js => stend-form-bsCmglGy.js} | 2 +- dist/assets/stend.data-DKNyBYOr.js | 1 + dist/assets/stend.data-MYN6KI5Y.js | 1 - ...ary-BSxTsZf7.js => ui-library-DhIsR_nY.js} | 29 +++++++++---------- dist/en.svg | 29 +++++-------------- dist/index.html | 6 ++-- dist/pdf.svg | 3 ++ 17 files changed, 38 insertions(+), 51 deletions(-) rename dist/assets/{about-D1w5CB-w.js => about-CyhPheJh.js} (85%) create mode 100644 dist/assets/b2b---yoxHki.js delete mode 100644 dist/assets/b2b-BEse7PSz.js rename dist/assets/{become-sponsor-C99BC0Jw.js => become-sponsor-DBJUad-C.js} (94%) delete mode 100644 dist/assets/contacts-Bqc1YEeT.js create mode 100644 dist/assets/contacts-CsOXm81r.js rename dist/assets/{home-B0pTdQtC.js => home-yPOYoEfY.js} (76%) rename dist/assets/{index-BuLq38EW.js => index-C3XY1fyd.js} (62%) rename dist/assets/{index-D6te4toP.css => index-DXwC7bDy.css} (80%) rename dist/assets/{radio-group-ZjbLf0Ae.js => radio-group-n_F2-7rq.js} (99%) rename dist/assets/{stend-form-D4sH47rQ.js => stend-form-bsCmglGy.js} (94%) create mode 100644 dist/assets/stend.data-DKNyBYOr.js delete mode 100644 dist/assets/stend.data-MYN6KI5Y.js rename dist/assets/{ui-library-BSxTsZf7.js => ui-library-DhIsR_nY.js} (55%) create mode 100644 dist/pdf.svg diff --git a/dist/assets/about-D1w5CB-w.js b/dist/assets/about-CyhPheJh.js similarity index 85% rename from dist/assets/about-D1w5CB-w.js rename to dist/assets/about-CyhPheJh.js index b650042..883fafa 100644 --- a/dist/assets/about-D1w5CB-w.js +++ b/dist/assets/about-CyhPheJh.js @@ -1 +1 @@ -import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,k as l,l as j}from"./ui-library-BSxTsZf7.js";import"./react-vendor-ERTQd_Nj.js";import{u as m}from"./use-scroll-top-CJJ8CWfz.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(j,{})]})}export{f as default}; +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,k as l,l as j}from"./ui-library-DhIsR_nY.js";import"./react-vendor-ERTQd_Nj.js";import{u as m}from"./use-scroll-top-CJJ8CWfz.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(j,{})]})}export{f as default}; diff --git a/dist/assets/b2b---yoxHki.js b/dist/assets/b2b---yoxHki.js new file mode 100644 index 0000000..9a39a0a --- /dev/null +++ b/dist/assets/b2b---yoxHki.js @@ -0,0 +1 @@ +import{z as l,m as B,u as f,j as e,n as S,o as r,p as R,q as j,r as y,L as u,s as v,t as o,B as h,v as D,w as V,x as E,y as N,D as q,E as z,C as H,G as L}from"./ui-library-DhIsR_nY.js";import{a as w}from"./react-vendor-ERTQd_Nj.js";import{a as U}from"./index-DW_MHI2K.js";import{R as A,a as C}from"./radio-group-n_F2-7rq.js";import{u as T}from"./use-scroll-top-CJJ8CWfz.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(D,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=V({resolver:z(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(E,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(q,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(H,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/b2b-BEse7PSz.js b/dist/assets/b2b-BEse7PSz.js deleted file mode 100644 index 808835f..0000000 --- a/dist/assets/b2b-BEse7PSz.js +++ /dev/null @@ -1 +0,0 @@ -import{z as l,m as B,u as f,j as e,n as S,o as r,p as R,q as j,r as y,L as u,s as v,t as o,B as h,v as D,w as V,x as E,y as N,D as q,E as z,C as H,G as L}from"./ui-library-BSxTsZf7.js";import{a as w}from"./react-vendor-ERTQd_Nj.js";import{a as U}from"./index-DW_MHI2K.js";import{R as A,a as C}from"./radio-group-ZjbLf0Ae.js";import{u as T}from"./use-scroll-top-CJJ8CWfz.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(D,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=V({resolver:z(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(E,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(q,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(H,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-C99BC0Jw.js b/dist/assets/become-sponsor-DBJUad-C.js similarity index 94% rename from dist/assets/become-sponsor-C99BC0Jw.js rename to dist/assets/become-sponsor-DBJUad-C.js index 4d4121a..be186f0 100644 --- a/dist/assets/become-sponsor-C99BC0Jw.js +++ b/dist/assets/become-sponsor-DBJUad-C.js @@ -1 +1 @@ -import{z as t,u as h,w as _,j as e,C as g,L as f,y,x as S,n as v,t as l,o,p as F,q as c,r as i,s as p,B as N,v as w,D as C,E as L}from"./ui-library-BSxTsZf7.js";import{a as R}from"./react-vendor-ERTQd_Nj.js";import{R as B,a as j}from"./radio-group-ZjbLf0Ae.js";import{p as V}from"./service-BFT831D0.js";import{u as D}from"./use-scroll-top-CJJ8CWfz.js";import{s as r}from"./stend.data-MYN6KI5Y.js";import"./index-DW_MHI2K.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),T={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){D();const a=h(n=>n.lang),[x,b]=R.useState(!1),s=_({resolver:L(E),defaultValues:T}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(B,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; +import{z as t,u as h,w as _,j as e,C as g,L as f,y,x as S,n as v,t as l,o,p as F,q as c,r as i,s as p,B as N,v as w,D as C,E as L}from"./ui-library-DhIsR_nY.js";import{a as R}from"./react-vendor-ERTQd_Nj.js";import{R as B,a as j}from"./radio-group-n_F2-7rq.js";import{p as V}from"./service-BFT831D0.js";import{u as D}from"./use-scroll-top-CJJ8CWfz.js";import{s as r}from"./stend.data-DKNyBYOr.js";import"./index-DW_MHI2K.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),T={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){D();const a=h(n=>n.lang),[x,b]=R.useState(!1),s=_({resolver:L(E),defaultValues:T}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(B,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/contacts-Bqc1YEeT.js b/dist/assets/contacts-Bqc1YEeT.js deleted file mode 100644 index 75b9e52..0000000 --- a/dist/assets/contacts-Bqc1YEeT.js +++ /dev/null @@ -1 +0,0 @@ -import{z as a,w as x,E as d,j as s,f as h,x as u,t as l,B as p,T as g,U as j}from"./ui-library-BSxTsZf7.js";import{a as f}from"./react-vendor-ERTQd_Nj.js";import{b}from"./service-BFT831D0.js";import{u as N}from"./use-scroll-top-CJJ8CWfz.js";import"./index-DW_MHI2K.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:d(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:h("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(u,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(p,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(g,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function E(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(j,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{E as default}; diff --git a/dist/assets/contacts-CsOXm81r.js b/dist/assets/contacts-CsOXm81r.js new file mode 100644 index 0000000..8f2d504 --- /dev/null +++ b/dist/assets/contacts-CsOXm81r.js @@ -0,0 +1 @@ +import{z as t,T as m,w as h,E as u,j as s,f as p,x as g,t as n,B as f,U as j,V as b}from"./ui-library-DhIsR_nY.js";import{a as N}from"./react-vendor-ERTQd_Nj.js";import{b as v}from"./service-BFT831D0.js";import{u as C}from"./use-scroll-top-CJJ8CWfz.js";import"./index-DW_MHI2K.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=N.useState(!1),e=h({resolver:u(w),defaultValues:y});async function x(d){try{const o=await v(d);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:p("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(g,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(x),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(f,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(j,{className:"animate-spin text-white"}):a("button")})]})]})})})};function _(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(b,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("phone")}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{_ as default}; diff --git a/dist/assets/home-B0pTdQtC.js b/dist/assets/home-yPOYoEfY.js similarity index 76% rename from dist/assets/home-B0pTdQtC.js rename to dist/assets/home-yPOYoEfY.js index 17cec99..f786be9 100644 --- a/dist/assets/home-B0pTdQtC.js +++ b/dist/assets/home-yPOYoEfY.js @@ -1 +1 @@ -import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-BSxTsZf7.js";import"./react-vendor-ERTQd_Nj.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-DhIsR_nY.js";import"./react-vendor-ERTQd_Nj.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-BuLq38EW.js b/dist/assets/index-C3XY1fyd.js similarity index 62% rename from dist/assets/index-BuLq38EW.js rename to dist/assets/index-C3XY1fyd.js index 8b03897..04d2db4 100644 --- a/dist/assets/index-BuLq38EW.js +++ b/dist/assets/index-C3XY1fyd.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-B0pTdQtC.js","assets/ui-library-BSxTsZf7.js","assets/react-vendor-ERTQd_Nj.js","assets/about-D1w5CB-w.js","assets/use-scroll-top-CJJ8CWfz.js","assets/b2b-BEse7PSz.js","assets/index-DW_MHI2K.js","assets/radio-group-ZjbLf0Ae.js","assets/become-sponsor-C99BC0Jw.js","assets/service-BFT831D0.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-D4sH47rQ.js","assets/contacts-Bqc1YEeT.js"])))=>i.map(i=>d[i]); -import{u as ve,i as we,j as S,H as ke,F as Re}from"./ui-library-BSxTsZf7.js";import{f as Pe,a as N,O as $e,g as Ce,h as Ee}from"./react-vendor-ERTQd_Nj.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const Te="modulepreload",Ne=function(a){return"/"+a},ae={},V=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ne(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Te,u||(h.as="script"),h.crossOrigin="",h.href=o,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((c,p)=>{h.addEventListener("load",c),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var W={},oe;function je(){if(oe)return W;oe=1;var a=Pe();return W.createRoot=a.createRoot,W.hydrateRoot=a.hydrateRoot,W}var Fe=je();const g=a=>typeof a=="string",H=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ae=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ie=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ie,"."):a,ce=a=>!a||g(a),z=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=z(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=z(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=z(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},De=(a,e,t,n)=>{const{obj:s,k:i}=z(a,e,Object);s[i]=s[i]||[],s[i].push(t)},Y=(a,e)=>{const{obj:t,k:n}=z(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ve=(a,e,t)=>{const n=Y(a,t);return n!==void 0?n:Y(e,t)},Oe=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Oe(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Be={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ke=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Be[e]):a;class Ue{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Me=[" ",",","?","!",";"],He=new Ue(20),ze=(a,e,t)=>{e=e||"",t=t||"";const n=Me.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=He.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Je={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Z{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Je,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,f;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=Y(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((f=(u=this.data)==null?void 0:u[e])==null?void 0:f[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),fe(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=Y(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Oe(o,n,i):o={...o,...n},fe(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Le={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const de={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class X extends _{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ae(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ze(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(f){const w=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${w}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const h=this.resolve(e,t);let c=h==null?void 0:h.res;const p=(h==null?void 0:h.usedKey)||r,d=(h==null?void 0:h.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,O=t.count!==void 0&&!g(t.count),$=X.hasDefaultValue(t),R=O?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&O?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=O&&!t.ordinal&&t.count===0,y=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${B}`]||t.defaultValue;let L=c;v&&!c&&$&&(L=y);const F=ge(L),A=Object.prototype.toString.apply(L);if(v&&L&&F&&m.indexOf(A)<0&&!(g(x)&&Array.isArray(L))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,L,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(h.res=w,h.usedParams=this.getUsedParamsDetails(t),h):w}if(i){const w=Array.isArray(L),P=w?[]:{},ne=w?d:p;for(const C in L)if(Object.prototype.hasOwnProperty.call(L,C)){const T=`${ne}${i}${C}`;$&&!c?P[C]=this.translate(T,{...t,defaultValue:ge(y)?y[C]:void 0,joinArrays:!1,ns:l}):P[C]=this.translate(T,{...t,joinArrays:!1,ns:l}),P[C]===T&&(P[C]=L[C])}c=P}}else if(v&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let w=!1,P=!1;!this.isValidLookup(c)&&$&&(w=!0,c=y),this.isValidLookup(c)||(P=!0,c=r);const C=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:c,T=$&&y!==c&&this.options.updateMissing;if(P||w||T){if(this.logger.log(T?"updateKey":"missingKey",u,o,r,T?y:c),i){const k=this.resolve(r,{...t,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let k=0;k{var re;const ie=$&&M!==c?M:C;this.options.missingKeyHandler?this.options.missingKeyHandler(k,o,j,ie,T,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(k,o,j,ie,T,t),this.emit("missingKey",k,o,j,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach(k=>{const j=this.pluralResolver.getSuffixes(k,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(M=>{se([k],r+M,t[`defaultValue${M}`]||y)})}):se(U,r,y))}c=this.extendTranslation(c,e,t,h,n),P&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),(P||w)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,w?c:void 0))}return s?(h.res=c,h.usedParams=this.getUsedParamsDetails(t),h):c}extendTranslation(e,t,n,s,i){var u,f;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const h=g(e)&&(((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(h){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),h){const d=e.match(this.interpolator.nestingRegexp),m=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),f=u.key;s=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,d=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(x=>{var v,O;this.isValidLookup(n)||(l=x,!de[`${m[0]}-${x}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(l))&&(de[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach($=>{var K;if(this.isValidLookup(n))return;r=$;const R=[f];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(R,f,$,x,t);else{let y;c&&(y=this.pluralResolver.getSuffix($,t.count,t));const L=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(R.push(f+y),t.ordinal&&y.indexOf(F)===0&&R.push(f+y.replace(F,this.options.pluralSeparator)),p&&R.push(f+L)),d){const A=`${f}${this.options.contextSeparator}${t.context}`;R.push(A),c&&(R.push(A+y),t.ordinal&&y.indexOf(F)===0&&R.push(A+y.replace(F,this.options.pluralSeparator)),p&&R.push(A+L))}}let B;for(;B=R.pop();)this.isValidLookup(n)||(i=B,n=this.getResource($,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ge{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ve(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class We{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:d,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:O}=e.interpolation;this.escape=t!==void 0?t:Ke,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=d?I(d):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const O=be(t,o,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...s,...t,interpolationkey:d}):O}const m=d.split(this.formatSeparator),x=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const f=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>ee(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?ee(this.escape(d)):ee(d)}].forEach(d=>{for(l=0;i=d.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof f=="function"){const v=f(e,i,s);r=g(v)?v:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(h){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=d.safeValue(r);if(e=e.replace(i[0],x),h?(d.regex.lastIndex+=r.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const f=this.nestingOptionsSeparator;if(o.indexOf(f)<0)return o;const h=o.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;o=h[0],c=this.interpolate(c,r);const p=c.match(/'/g),d=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!d||d.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${f}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=f.shift(),o=f,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((f,h)=>this.format(f,h,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();t[f]||(t[f]=u),u==="false"&&(t[f]=!1),u==="true"&&(t[f]=!0),isNaN(u)||(t[f]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},D=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:D((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:D((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:D((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var h;const{formatName:u,formatOptions:f}=qe(o);if(this.formats[u]){let c=l;try{const p=((h=s==null?void 0:s.formatParams)==null?void 0:h[s.interpolationkey])||{},d=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,d,{...f,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Qe=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Ze extends _{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let f=!0;t.forEach(h=>{const c=`${u}|${h}`;!n.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,f=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[h]===void 0&&(o[h]=!0)))}),f||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{De(o.loaded,[i],r),Qe(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const f=o.loaded[u];f.length&&f.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,f)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,f,h,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((h=(f=this.services)==null?void 0:f.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let m;d.length===5?m=d(e,t,n,s,p):m=d(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else d(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Se=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},q=()=>{},Xe=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class J extends _{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Se(e),this.services={},this.logger=E,this.modules={external:[]},Xe(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...Se(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=Ye;const h=new pe(this.options);this.store=new he(this.options.resources,this.options);const c=this.services;c.logger=E,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new Ge(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new We(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ze(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var d=arguments.length,m=new Array(d>1?d-1:0),x=1;x1?d-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return e.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return e.store[f](...arguments),e}});const o=H(),u=()=>{const f=(h,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(h,c)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&l.indexOf(h)<0&&l.push(h)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>o(f)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=H();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=q),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Le.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=H();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var f,h;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(h=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||h.call(f,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h`${o.keyPrefix}${c}${d}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=H();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=H();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new J(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new J(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((f,h)=>(f[h]={...o[u][h]},f),{})),{});i.store=new he(l,s),i.services.resourceStore=i.store}return i.translator=new X(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),f=1;f{const a=ve(e=>e.lang);return N.useEffect(()=>{b.changeLanguage(a)},[a]),null};function Ct(){return S.jsxs("main",{className:"flex flex-col min-h-screen",children:[S.jsx($t,{}),S.jsx(ke,{}),S.jsx("div",{className:"flex-auto",children:S.jsx($e,{})}),S.jsx(Re,{})]})}const Et=N.lazy(()=>V(()=>import("./home-B0pTdQtC.js"),__vite__mapDeps([0,1,2]))),Tt=N.lazy(()=>V(()=>import("./about-D1w5CB-w.js"),__vite__mapDeps([3,1,2,4]))),Nt=N.lazy(()=>V(()=>import("./b2b-BEse7PSz.js"),__vite__mapDeps([5,1,2,6,7,4]))),jt=N.lazy(()=>V(()=>import("./become-sponsor-C99BC0Jw.js"),__vite__mapDeps([8,1,2,7,9,6,4,10]))),Ft=N.lazy(()=>V(()=>import("./stend-form-D4sH47rQ.js"),__vite__mapDeps([11,1,2,7,9,6,10]))),At=N.lazy(()=>V(()=>import("./contacts-Bqc1YEeT.js"),__vite__mapDeps([12,1,2,9,6,4]))),It=Ce([{element:S.jsx(Ct,{}),path:"/",children:[{element:S.jsx(Et,{}),path:""},{element:S.jsx(Tt,{}),path:"/about"},{element:S.jsx(Nt,{}),path:"/B2B-B2G"},{element:S.jsx(jt,{}),path:"/become-sponsor"},{element:S.jsx(Ft,{}),path:"/stend-form"},{element:S.jsx(At,{}),path:"/contacts"}]}]);Fe.createRoot(document.getElementById("root")).render(S.jsx(N.StrictMode,{children:S.jsx(Ee,{router:It})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-yPOYoEfY.js","assets/ui-library-DhIsR_nY.js","assets/react-vendor-ERTQd_Nj.js","assets/about-CyhPheJh.js","assets/use-scroll-top-CJJ8CWfz.js","assets/b2b---yoxHki.js","assets/index-DW_MHI2K.js","assets/radio-group-n_F2-7rq.js","assets/become-sponsor-DBJUad-C.js","assets/service-BFT831D0.js","assets/stend.data-DKNyBYOr.js","assets/stend-form-bsCmglGy.js","assets/contacts-CsOXm81r.js"])))=>i.map(i=>d[i]); +import{u as ve,i as we,j as S,H as ke,F as Re}from"./ui-library-DhIsR_nY.js";import{f as $e,a as N,O as Pe,g as Ce,h as Ee}from"./react-vendor-ERTQd_Nj.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const Te="modulepreload",Ne=function(a){return"/"+a},ae={},V=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ne(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Te,u||(f.as="script"),f.crossOrigin="",f.href=o,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var W={},oe;function je(){if(oe)return W;oe=1;var a=$e();return W.createRoot=a.createRoot,W.hydrateRoot=a.hydrateRoot,W}var Fe=je();const g=a=>typeof a=="string",H=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ae=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ie=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ie,"."):a,ce=a=>!a||g(a),z=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=z(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=z(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=z(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},De=(a,e,t,n)=>{const{obj:s,k:i}=z(a,e,Object);s[i]=s[i]||[],s[i].push(t)},Y=(a,e)=>{const{obj:t,k:n}=z(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ve=(a,e,t)=>{const n=Y(a,t);return n!==void 0?n:Y(e,t)},Oe=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Oe(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Be={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ke=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Be[e]):a;class Ue{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Me=[" ",",","?","!",";"],He=new Ue(20),ze=(a,e,t)=>{e=e||"",t=t||"";const n=Me.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=He.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Je={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Z{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Je,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,d;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=Y(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((d=(u=this.data)==null?void 0:u[e])==null?void 0:d[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),de(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=Y(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Oe(o,n,i):o={...o,...n},de(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Le={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const he={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class X extends _{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ae(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ze(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(d){const w=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${w}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||r,h=(f==null?void 0:f.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,O=t.count!==void 0&&!g(t.count),P=X.hasDefaultValue(t),R=O?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&O?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=O&&!t.ordinal&&t.count===0,y=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${B}`]||t.defaultValue;let L=c;v&&!c&&P&&(L=y);const F=ge(L),A=Object.prototype.toString.apply(L);if(v&&L&&F&&m.indexOf(A)<0&&!(g(x)&&Array.isArray(L))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,L,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(f.res=w,f.usedParams=this.getUsedParamsDetails(t),f):w}if(i){const w=Array.isArray(L),$=w?[]:{},ne=w?h:p;for(const C in L)if(Object.prototype.hasOwnProperty.call(L,C)){const T=`${ne}${i}${C}`;P&&!c?$[C]=this.translate(T,{...t,defaultValue:ge(y)?y[C]:void 0,joinArrays:!1,ns:l}):$[C]=this.translate(T,{...t,joinArrays:!1,ns:l}),$[C]===T&&($[C]=L[C])}c=$}}else if(v&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let w=!1,$=!1;!this.isValidLookup(c)&&P&&(w=!0,c=y),this.isValidLookup(c)||($=!0,c=r);const C=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,T=P&&y!==c&&this.options.updateMissing;if($||w||T){if(this.logger.log(T?"updateKey":"missingKey",u,o,r,T?y:c),i){const k=this.resolve(r,{...t,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let k=0;k{var re;const ie=P&&M!==c?M:C;this.options.missingKeyHandler?this.options.missingKeyHandler(k,o,j,ie,T,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(k,o,j,ie,T,t),this.emit("missingKey",k,o,j,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach(k=>{const j=this.pluralResolver.getSuffixes(k,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(M=>{se([k],r+M,t[`defaultValue${M}`]||y)})}):se(U,r,y))}c=this.extendTranslation(c,e,t,f,n),$&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),($||w)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,w?c:void 0))}return s?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,n,s,i){var u,d;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=g(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),f){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var v,O;this.isValidLookup(n)||(l=x,!he[`${m[0]}-${x}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(l))&&(he[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(P=>{var K;if(this.isValidLookup(n))return;r=P;const R=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,P,x,t);else{let y;c&&(y=this.pluralResolver.getSuffix(P,t.count,t));const L=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(R.push(d+y),t.ordinal&&y.indexOf(F)===0&&R.push(d+y.replace(F,this.options.pluralSeparator)),p&&R.push(d+L)),h){const A=`${d}${this.options.contextSeparator}${t.context}`;R.push(A),c&&(R.push(A+y),t.ordinal&&y.indexOf(F)===0&&R.push(A+y.replace(F,this.options.pluralSeparator)),p&&R.push(A+L))}}let B;for(;B=R.pop();)this.isValidLookup(n)||(i=B,n=this.getResource(P,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ge{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ve(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class We{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:O}=e.interpolation;this.escape=t!==void 0?t:Ke,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=h?I(h):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const O=be(t,o,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...s,...t,interpolationkey:h}):O}const m=h.split(this.formatSeparator),x=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const d=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ee(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ee(this.escape(h)):ee(h)}].forEach(h=>{for(l=0;i=h.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof d=="function"){const v=d(e,i,s);r=g(v)?v:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(f){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=h.safeValue(r);if(e=e.replace(i[0],x),f?(h.regex.lastIndex+=r.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const d=this.nestingOptionsSeparator;if(o.indexOf(d)<0)return o;const f=o.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;o=f[0],c=this.interpolate(c,r);const p=c.match(/'/g),h=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${d}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),o=d,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},D=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:D((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:D((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:D((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:D((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var f;const{formatName:u,formatOptions:d}=qe(o);if(this.formats[u]){let c=l;try{const p=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},h=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,h,{...d,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Qe=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Ze extends _{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const c=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,d=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[f]===void 0&&(o[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{De(o.loaded,[i],r),Qe(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const d=o.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,d)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,d,f,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(e,t,n,s,p):m=h(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else h(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Se=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},q=()=>{},Xe=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class J extends _{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Se(e),this.services={},this.logger=E,this.modules={external:[]},Xe(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...Se(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ye;const f=new pe(this.options);this.store=new fe(this.options.resources,this.options);const c=this.services;c.logger=E,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Ge(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new We(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ze(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const o=H(),u=()=>{const d=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(f,c)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>o(d)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=H();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=q),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Le.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=H();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var d,f;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${o.keyPrefix}${c}${h}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=H();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=H();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new J(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new J(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((d,f)=>(d[f]={...o[u][f]},d),{})),{});i.store=new fe(l,s),i.services.resourceStore=i.store}return i.translator=new X(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d{const a=ve(e=>e.lang);return N.useEffect(()=>{b.changeLanguage(a)},[a]),null};function Zt(){return S.jsxs("main",{className:"flex flex-col min-h-screen",children:[S.jsx(Qt,{}),S.jsx(ke,{}),S.jsx("div",{className:"flex-auto",children:S.jsx(Pe,{})}),S.jsx(Re,{})]})}const Xt=N.lazy(()=>V(()=>import("./home-yPOYoEfY.js"),__vite__mapDeps([0,1,2]))),_t=N.lazy(()=>V(()=>import("./about-CyhPheJh.js"),__vite__mapDeps([3,1,2,4]))),en=N.lazy(()=>V(()=>import("./b2b---yoxHki.js"),__vite__mapDeps([5,1,2,6,7,4]))),tn=N.lazy(()=>V(()=>import("./become-sponsor-DBJUad-C.js"),__vite__mapDeps([8,1,2,7,9,6,4,10]))),nn=N.lazy(()=>V(()=>import("./stend-form-bsCmglGy.js"),__vite__mapDeps([11,1,2,7,9,6,10]))),sn=N.lazy(()=>V(()=>import("./contacts-CsOXm81r.js"),__vite__mapDeps([12,1,2,9,6,4]))),rn=Ce([{element:S.jsx(Zt,{}),path:"/",children:[{element:S.jsx(Xt,{}),path:""},{element:S.jsx(_t,{}),path:"/about"},{element:S.jsx(en,{}),path:"/B2B-B2G"},{element:S.jsx(tn,{}),path:"/become-sponsor"},{element:S.jsx(nn,{}),path:"/stend-form"},{element:S.jsx(sn,{}),path:"/contacts"}]}]);Fe.createRoot(document.getElementById("root")).render(S.jsx(N.StrictMode,{children:S.jsx(Ee,{router:rn})})); diff --git a/dist/assets/index-D6te4toP.css b/dist/assets/index-DXwC7bDy.css similarity index 80% rename from dist/assets/index-D6te4toP.css rename to dist/assets/index-DXwC7bDy.css index b5f4aeb..910188d 100644 --- a/dist/assets/index-D6te4toP.css +++ b/dist/assets/index-DXwC7bDy.css @@ -1 +1 @@ -@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-bottom-6{bottom:-1.5rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.input{display:flex;height:3.5rem;border-radius:2px;border-width:1px;background-color:transparent;padding:1rem;font-size:1rem;line-height:1.5rem;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(161 167 178 / var(--tw-ring-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;font-family:Gilroy-Regular;font-weight:400}.input::file-selector-button{width:-moz-fit-content;width:fit-content;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.input:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(44 40 40 / var(--tw-ring-opacity, 1))}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(153 16 29 / var(--tw-ring-opacity, 1))}.input:focus-visible{outline:2px solid transparent;outline-offset:2px}.input:disabled{cursor:not-allowed;opacity:.5}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:w-\[220px\]{width:220px}.lg\:w-\[320px\]{width:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:hidden{display:none}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} +@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-bottom-6{bottom:-1.5rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.input{display:flex;height:3.5rem;border-radius:2px;border-width:1px;background-color:transparent;padding:1rem;font-size:1rem;line-height:1.5rem;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(161 167 178 / var(--tw-ring-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;font-family:Gilroy-Regular;font-weight:400}.input::file-selector-button{width:-moz-fit-content;width:fit-content;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.input:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(44 40 40 / var(--tw-ring-opacity, 1))}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(153 16 29 / var(--tw-ring-opacity, 1))}.input:focus-visible{outline:2px solid transparent;outline-offset:2px}.input:disabled{cursor:not-allowed;opacity:.5}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-slate-300\/50:hover{background-color:#cbd5e180}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[80px\]{padding-top:80px;padding-bottom:80px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:w-\[220px\]{width:220px}.lg\:w-\[320px\]{width:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:hidden{display:none}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/radio-group-ZjbLf0Ae.js b/dist/assets/radio-group-n_F2-7rq.js similarity index 99% rename from dist/assets/radio-group-ZjbLf0Ae.js rename to dist/assets/radio-group-n_F2-7rq.js index dc3f8e5..ca20f56 100644 --- a/dist/assets/radio-group-ZjbLf0Ae.js +++ b/dist/assets/radio-group-n_F2-7rq.js @@ -1 +1 @@ -import{I as N,J as F,j as d,S as L,K as fe,P as A,M as y,N as K,O as pe,Q as me,R as Re,f as U}from"./ui-library-BSxTsZf7.js";import{d as w,a as s}from"./react-vendor-ERTQd_Nj.js";function ve(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),R=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:R,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,R=i(C,l),I=F(r,R.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",v=w.forwardRef((c,r)=>{const{scope:l,children:m,...R}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...R}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});v.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const R=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>R.indexOf(S.ref.current)-R.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:v},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[G,B,Ce]=ve(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...v}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[R,I]=s.useState(!1),h=pe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(k,h),()=>x.removeEventListener(k,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:R||ae===0?-1:0,"data-orientation":n,...v,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!R){const O=new CustomEvent(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=fe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,v=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(G.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let R=v().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")R.reverse();else if(l==="prev"||l==="next"){l==="prev"&&R.reverse();const I=R.indexOf(r.currentTarget);R=u.loop?_e(R,I+1):R.slice(I+1)}setTimeout(()=>H(R))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,ke]=Pe(M),Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[v,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=v?u||!!v.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(Ge,{control:v,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});Q.displayName=M;var W="RadioIndicator",X=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(W,t);return d.jsx(Re,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});X.displayName=W;var Ge=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=me(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&v){const b=new Event("click",{bubbles:n});v.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:v,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:v});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),v=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:v,children:d.jsx(Q,{disabled:p,required:i.required,checked:v,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(X,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; +import{I as N,J as F,j as d,S as L,K as fe,P as A,M as y,N as K,O as pe,Q as me,R as Re,f as U}from"./ui-library-DhIsR_nY.js";import{d as w,a as s}from"./react-vendor-ERTQd_Nj.js";function ve(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),R=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:R,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,R=i(C,l),I=F(r,R.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",v=w.forwardRef((c,r)=>{const{scope:l,children:m,...R}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...R}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});v.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const R=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>R.indexOf(S.ref.current)-R.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:v},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[G,B,Ce]=ve(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...v}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[R,I]=s.useState(!1),h=pe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(k,h),()=>x.removeEventListener(k,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:R||ae===0?-1:0,"data-orientation":n,...v,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!R){const O=new CustomEvent(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=fe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,v=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(G.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let R=v().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")R.reverse();else if(l==="prev"||l==="next"){l==="prev"&&R.reverse();const I=R.indexOf(r.currentTarget);R=u.loop?_e(R,I+1):R.slice(I+1)}setTimeout(()=>H(R))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,ke]=Pe(M),Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[v,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=v?u||!!v.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(Ge,{control:v,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});Q.displayName=M;var W="RadioIndicator",X=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(W,t);return d.jsx(Re,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});X.displayName=W;var Ge=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=me(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&v){const b=new Event("click",{bubbles:n});v.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:v,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:v});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),v=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:v,children:d.jsx(Q,{disabled:p,required:i.required,checked:v,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(X,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/stend-form-D4sH47rQ.js b/dist/assets/stend-form-bsCmglGy.js similarity index 94% rename from dist/assets/stend-form-D4sH47rQ.js rename to dist/assets/stend-form-bsCmglGy.js index f45441b..62b549f 100644 --- a/dist/assets/stend-form-D4sH47rQ.js +++ b/dist/assets/stend-form-bsCmglGy.js @@ -1 +1 @@ -import{z as o,u as g,w as f,j as e,C as y,o as s,y as v,x as N,n as S,p as d,q as m,r as i,s as p,t as l,B as F,v as k,D as w,E as C}from"./ui-library-BSxTsZf7.js";import{a as j}from"./react-vendor-ERTQd_Nj.js";import{R as b,a as x}from"./radio-group-ZjbLf0Ae.js";import{a as V}from"./service-BFT831D0.js";import{s as t}from"./stend.data-MYN6KI5Y.js";import"./index-DW_MHI2K.js";const E=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(E),defaultValues:R}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; +import{z as o,u as g,w as f,j as e,C as y,o as s,y as v,x as N,n as S,p as d,q as m,r as i,s as p,t as l,B as F,v as k,D as w,E as C}from"./ui-library-DhIsR_nY.js";import{a as j}from"./react-vendor-ERTQd_Nj.js";import{R as b,a as x}from"./radio-group-n_F2-7rq.js";import{a as V}from"./service-BFT831D0.js";import{s as t}from"./stend.data-DKNyBYOr.js";import"./index-DW_MHI2K.js";const E=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(E),defaultValues:R}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; diff --git a/dist/assets/stend.data-DKNyBYOr.js b/dist/assets/stend.data-DKNyBYOr.js new file mode 100644 index 0000000..9e42997 --- /dev/null +++ b/dist/assets/stend.data-DKNyBYOr.js @@ -0,0 +1 @@ +const a=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Только стенд",radio_2:"Комплексное предложение",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Вебсайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email address",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];export{a as s}; diff --git a/dist/assets/stend.data-MYN6KI5Y.js b/dist/assets/stend.data-MYN6KI5Y.js deleted file mode 100644 index 1881d8d..0000000 --- a/dist/assets/stend.data-MYN6KI5Y.js +++ /dev/null @@ -1 +0,0 @@ -const a=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Только стенд",radio_2:"Комплексное предложение",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"E-mail адрес",label_6:"Номер телефона",label_7:"Вебсайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book your stand",h2:"Select one of the options:",radio:"Space Only",radio_2:"Stand Package",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"E-mail address",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];export{a as s}; diff --git a/dist/assets/ui-library-BSxTsZf7.js b/dist/assets/ui-library-DhIsR_nY.js similarity index 55% rename from dist/assets/ui-library-BSxTsZf7.js rename to dist/assets/ui-library-DhIsR_nY.js index 8921904..0b2df43 100644 --- a/dist/assets/ui-library-BSxTsZf7.js +++ b/dist/assets/ui-library-DhIsR_nY.js @@ -1,4 +1,4 @@ -import{r as rm,a as y,R as sm,b as eu,c as im,d as de,L as Ce,e as ns}from"./react-vendor-ERTQd_Nj.js";var ci={exports:{}},er={};/** +import{r as rm,a as y,R as sm,b as eu,c as im,d as de,L as Ae,e as ns}from"./react-vendor-ERTQd_Nj.js";var li={exports:{}},er={};/** * @license React * react-jsx-runtime.production.min.js * @@ -6,7 +6,7 @@ import{r as rm,a as y,R as sm,b as eu,c as im,d as de,L as Ce,e as ns}from"./rea * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fa;function om(){if(Fa)return er;Fa=1;var e=rm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,p=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:s.current}}return er.Fragment=n,er.jsx=o,er.jsxs=o,er}var Ba;function am(){return Ba||(Ba=1,ci.exports=om()),ci.exports}var m=am();function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function $a(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tu(...e){return t=>{let n=!1;const r=e.map(s=>{const i=$a(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,c=y.useMemo(()=>a,Object.values(a));return m.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function bo(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:p,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,x=y.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:x,children:p})};l.displayName=i+"Provider";function u(d,f){var h;const p=((h=f==null?void 0:f[e])==null?void 0:h[c])||a,g=y.useContext(p);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,lm(s,...t)]}function lm(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var mn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},um=sm.useId||(()=>{}),dm=0;function ms(e){const[t,n]=y.useState(um());return mn(()=>{n(r=>r??String(dm++))},[e]),t?`radix-${t}`:""}function Zt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=fm({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=Zt(n),c=y.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else s(l)},[i,e,s,a]);return[o,c]}function fm({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=Zt(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var Zn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(mm);if(i){const o=i.props.children,a=s.map(c=>c===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:c);return m.jsx(Vi,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return m.jsx(Vi,{...r,ref:t,children:n})});Zn.displayName="Slot";var Vi=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=gm(n),i=pm(r,n.props);return n.type!==y.Fragment&&(i.ref=t?tu(t,s):s),y.cloneElement(n,i)}return y.Children.count(n)>1?y.Children.only(null):null});Vi.displayName="SlotClone";var hm=({children:e})=>m.jsx(m.Fragment,{children:e});function mm(e){return y.isValidElement(e)&&e.type===hm}function pm(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function gm(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ym=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],We=ym.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?Zn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vm(e,t){e&&eu.flushSync(()=>e.dispatchEvent(t))}function xm(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bm="DismissableLayer",Li="dismissableLayer.update",wm="dismissableLayer.pointerDownOutside",_m="dismissableLayer.focusOutside",za,ru=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wo=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=y.useContext(ru),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),g=pt(t,C=>d(C)),h=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,A=b>=v,_=Am(C=>{const P=C.target,j=[...l.branches].some(D=>D.contains(P));!A||j||(s==null||s(C),o==null||o(C),C.defaultPrevented||a==null||a())},f),E=Cm(C=>{const P=C.target;[...l.branches].some(D=>D.contains(P))||(i==null||i(C),o==null||o(C),C.defaultPrevented||a==null||a())},f);return xm(C=>{b===l.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(za=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ua(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=za)}},[u,f,n,l]),y.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ua())},[u,l]),y.useEffect(()=>{const C=()=>p({});return document.addEventListener(Li,C),()=>document.removeEventListener(Li,C)},[]),m.jsx(We.div,{...c,ref:g,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,_.onPointerDownCapture)})});wo.displayName=bm;var Sm="DismissableLayerBranch",Tm=y.forwardRef((e,t)=>{const n=y.useContext(ru),r=y.useRef(null),s=pt(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),m.jsx(We.div,{...e,ref:s})});Tm.displayName=Sm;function Am(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){su(wm,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cm(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&su(_m,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ua(){const e=new CustomEvent(Li);document.dispatchEvent(e)}function su(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?vm(s,i):s.dispatchEvent(i)}var li="focusScope.autoFocusOnMount",ui="focusScope.autoFocusOnUnmount",Wa={bubbles:!1,cancelable:!0},Em="FocusScope",_o=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=y.useState(null),l=Zt(s),u=Zt(i),d=y.useRef(null),f=pt(t,h=>c(h)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(S){if(p.paused||!a)return;const A=S.target;a.contains(A)?d.current=A:zt(d.current,{select:!0})},x=function(S){if(p.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||zt(d.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&zt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,p.paused]),y.useEffect(()=>{if(a){Ha.add(p);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(li,Wa);a.addEventListener(li,l),a.dispatchEvent(v),v.defaultPrevented||(Pm(Dm(iu(a)),{select:!0}),document.activeElement===h&&zt(a))}return()=>{a.removeEventListener(li,l),setTimeout(()=>{const v=new CustomEvent(ui,Wa);a.addEventListener(ui,u),a.dispatchEvent(v),v.defaultPrevented||zt(h??document.body,{select:!0}),a.removeEventListener(ui,u),Ha.remove(p)},0)}}},[a,l,u,p]);const g=y.useCallback(h=>{if(!n&&!r||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[S,A]=km(b);S&&A?!h.shiftKey&&v===A?(h.preventDefault(),n&&zt(S,{select:!0})):h.shiftKey&&v===S&&(h.preventDefault(),n&&zt(A,{select:!0})):v===b&&h.preventDefault()}},[n,r,p.paused]);return m.jsx(We.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});_o.displayName=Em;function Pm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(zt(r,{select:t}),document.activeElement!==n)return}function km(e){const t=iu(e),n=Za(t,e),r=Za(t.reverse(),e);return[n,r]}function iu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Za(e,t){for(const n of e)if(!Rm(n,{upTo:t}))return n}function Rm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nm(e){return e instanceof HTMLInputElement&&"select"in e}function zt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Nm(e)&&t&&e.select()}}var Ha=jm();function jm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ga(e,t),e.unshift(t)},remove(t){var n;e=Ga(e,t),(n=e[0])==null||n.resume()}}}function Ga(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Dm(e){return e.filter(t=>t.tagName!=="A")}var Mm="Portal",So=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);mn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?im.createPortal(m.jsx(We.div,{...r,ref:t}),o):null});So.displayName=Mm;function Om(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Hn=e=>{const{present:t,children:n}=e,r=Vm(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=pt(r.ref,Lm(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};Hn.displayName="Presence";function Vm(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Om(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=rs(r.current);i.current=a==="mounted"?l:"none"},[a]),mn(()=>{const l=r.current,u=s.current;if(u!==e){const f=i.current,p=rs(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),mn(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const h=rs(r.current).includes(p.animationName);if(p.target===t&&h&&(c("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=rs(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function rs(e){return(e==null?void 0:e.animationName)||"none"}function Lm(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var di=0;function ou(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ka()),document.body.insertAdjacentElement("beforeend",e[1]??Ka()),di++,()=>{di===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),di--}},[])}function Ka(){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 xt=function(){return xt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return ep;var t=tp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rp=uu(),Dn="data-scroll-locked",sp=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + */var Fa;function om(){if(Fa)return er;Fa=1;var e=rm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,p=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:s.current}}return er.Fragment=n,er.jsx=o,er.jsxs=o,er}var Ba;function am(){return Ba||(Ba=1,li.exports=om()),li.exports}var m=am();function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function $a(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tu(...e){return t=>{let n=!1;const r=e.map(s=>{const i=$a(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,c=y.useMemo(()=>a,Object.values(a));return m.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function bo(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:p,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,x=y.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:x,children:p})};l.displayName=i+"Provider";function u(d,f){var h;const p=((h=f==null?void 0:f[e])==null?void 0:h[c])||a,g=y.useContext(p);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,lm(s,...t)]}function lm(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var mn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},um=sm.useId||(()=>{}),dm=0;function ms(e){const[t,n]=y.useState(um());return mn(()=>{n(r=>r??String(dm++))},[e]),t?`radix-${t}`:""}function Zt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=fm({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=Zt(n),c=y.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else s(l)},[i,e,s,a]);return[o,c]}function fm({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=Zt(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var Zn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(mm);if(i){const o=i.props.children,a=s.map(c=>c===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:c);return m.jsx(Li,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return m.jsx(Li,{...r,ref:t,children:n})});Zn.displayName="Slot";var Li=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=gm(n),i=pm(r,n.props);return n.type!==y.Fragment&&(i.ref=t?tu(t,s):s),y.cloneElement(n,i)}return y.Children.count(n)>1?y.Children.only(null):null});Li.displayName="SlotClone";var hm=({children:e})=>m.jsx(m.Fragment,{children:e});function mm(e){return y.isValidElement(e)&&e.type===hm}function pm(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function gm(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ym=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],We=ym.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?Zn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vm(e,t){e&&eu.flushSync(()=>e.dispatchEvent(t))}function xm(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bm="DismissableLayer",Ii="dismissableLayer.update",wm="dismissableLayer.pointerDownOutside",_m="dismissableLayer.focusOutside",za,ru=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wo=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=y.useContext(ru),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),g=pt(t,k=>d(k)),h=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=b>=v,_=Cm(k=>{const E=k.target,j=[...l.branches].some(D=>D.contains(E));!C||j||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},f),A=Am(k=>{const E=k.target;[...l.branches].some(D=>D.contains(E))||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},f);return xm(k=>{b===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(za=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ua(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=za)}},[u,f,n,l]),y.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ua())},[u,l]),y.useEffect(()=>{const k=()=>p({});return document.addEventListener(Ii,k),()=>document.removeEventListener(Ii,k)},[]),m.jsx(We.div,{...c,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,_.onPointerDownCapture)})});wo.displayName=bm;var Sm="DismissableLayerBranch",Tm=y.forwardRef((e,t)=>{const n=y.useContext(ru),r=y.useRef(null),s=pt(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),m.jsx(We.div,{...e,ref:s})});Tm.displayName=Sm;function Cm(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){su(wm,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Am(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&su(_m,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ua(){const e=new CustomEvent(Ii);document.dispatchEvent(e)}function su(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?vm(s,i):s.dispatchEvent(i)}var ui="focusScope.autoFocusOnMount",di="focusScope.autoFocusOnUnmount",Wa={bubbles:!1,cancelable:!0},Em="FocusScope",_o=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=y.useState(null),l=Zt(s),u=Zt(i),d=y.useRef(null),f=pt(t,h=>c(h)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(S){if(p.paused||!a)return;const C=S.target;a.contains(C)?d.current=C:zt(d.current,{select:!0})},x=function(S){if(p.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||zt(d.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&zt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,p.paused]),y.useEffect(()=>{if(a){Ha.add(p);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(ui,Wa);a.addEventListener(ui,l),a.dispatchEvent(v),v.defaultPrevented||(km(Dm(iu(a)),{select:!0}),document.activeElement===h&&zt(a))}return()=>{a.removeEventListener(ui,l),setTimeout(()=>{const v=new CustomEvent(di,Wa);a.addEventListener(di,u),a.dispatchEvent(v),v.defaultPrevented||zt(h??document.body,{select:!0}),a.removeEventListener(di,u),Ha.remove(p)},0)}}},[a,l,u,p]);const g=y.useCallback(h=>{if(!n&&!r||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[S,C]=Pm(b);S&&C?!h.shiftKey&&v===C?(h.preventDefault(),n&&zt(S,{select:!0})):h.shiftKey&&v===S&&(h.preventDefault(),n&&zt(C,{select:!0})):v===b&&h.preventDefault()}},[n,r,p.paused]);return m.jsx(We.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});_o.displayName=Em;function km(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(zt(r,{select:t}),document.activeElement!==n)return}function Pm(e){const t=iu(e),n=Za(t,e),r=Za(t.reverse(),e);return[n,r]}function iu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Za(e,t){for(const n of e)if(!Rm(n,{upTo:t}))return n}function Rm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nm(e){return e instanceof HTMLInputElement&&"select"in e}function zt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Nm(e)&&t&&e.select()}}var Ha=jm();function jm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ga(e,t),e.unshift(t)},remove(t){var n;e=Ga(e,t),(n=e[0])==null||n.resume()}}}function Ga(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Dm(e){return e.filter(t=>t.tagName!=="A")}var Om="Portal",So=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);mn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?im.createPortal(m.jsx(We.div,{...r,ref:t}),o):null});So.displayName=Om;function Mm(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Hn=e=>{const{present:t,children:n}=e,r=Vm(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=pt(r.ref,Lm(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};Hn.displayName="Presence";function Vm(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Mm(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=rs(r.current);i.current=a==="mounted"?l:"none"},[a]),mn(()=>{const l=r.current,u=s.current;if(u!==e){const f=i.current,p=rs(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),mn(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const h=rs(r.current).includes(p.animationName);if(p.target===t&&h&&(c("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=rs(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function rs(e){return(e==null?void 0:e.animationName)||"none"}function Lm(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fi=0;function ou(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ka()),document.body.insertAdjacentElement("beforeend",e[1]??Ka()),fi++,()=>{fi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fi--}},[])}function Ka(){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 xt=function(){return xt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return ep;var t=tp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rp=uu(),Dn="data-scroll-locked",sp=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(Fm,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; @@ -43,34 +43,34 @@ import{r as rm,a as y,R as sm,b as eu,c as im,d as de,L as Ce,e as ns}from"./rea body[`).concat(Dn,`] { `).concat(Bm,": ").concat(a,`px; } -`)},Ya=function(){var e=parseInt(document.body.getAttribute(Dn)||"0",10);return isFinite(e)?e:0},ip=function(){y.useEffect(function(){return document.body.setAttribute(Dn,(Ya()+1).toString()),function(){var e=Ya()-1;e<=0?document.body.removeAttribute(Dn):document.body.setAttribute(Dn,e.toString())}},[])},op=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;ip();var i=y.useMemo(function(){return np(s)},[s]);return y.createElement(rp,{styles:sp(i,!t,s,n?"":"!important")})},Ii=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return Ii=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Ii=!1}var _n=Ii?{passive:!1}:!1,ap=function(e){return e.tagName==="TEXTAREA"},du=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ap(e)&&n[t]==="visible")},cp=function(e){return du(e,"overflowY")},lp=function(e){return du(e,"overflowX")},Xa=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=fu(e,r);if(s){var i=hu(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},up=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fu=function(e,t){return e==="v"?cp(t):lp(t)},hu=function(e,t){return e==="v"?up(t):dp(t)},fp=function(e,t){return e==="h"&&t==="rtl"?-1:1},hp=function(e,t,n,r,s){var i=fp(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var p=hu(e,a),g=p[0],h=p[1],x=p[2],v=h-x-i*g;(g||v)&&fu(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ja=function(e){return[e.deltaX,e.deltaY]},Qa=function(e){return e&&"current"in e?e.current:e},mp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pp=function(e){return` +`)},Ya=function(){var e=parseInt(document.body.getAttribute(Dn)||"0",10);return isFinite(e)?e:0},ip=function(){y.useEffect(function(){return document.body.setAttribute(Dn,(Ya()+1).toString()),function(){var e=Ya()-1;e<=0?document.body.removeAttribute(Dn):document.body.setAttribute(Dn,e.toString())}},[])},op=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;ip();var i=y.useMemo(function(){return np(s)},[s]);return y.createElement(rp,{styles:sp(i,!t,s,n?"":"!important")})},Fi=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return Fi=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Fi=!1}var _n=Fi?{passive:!1}:!1,ap=function(e){return e.tagName==="TEXTAREA"},du=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ap(e)&&n[t]==="visible")},cp=function(e){return du(e,"overflowY")},lp=function(e){return du(e,"overflowX")},Xa=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=fu(e,r);if(s){var i=hu(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},up=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fu=function(e,t){return e==="v"?cp(t):lp(t)},hu=function(e,t){return e==="v"?up(t):dp(t)},fp=function(e,t){return e==="h"&&t==="rtl"?-1:1},hp=function(e,t,n,r,s){var i=fp(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var p=hu(e,a),g=p[0],h=p[1],x=p[2],v=h-x-i*g;(g||v)&&fu(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ja=function(e){return[e.deltaX,e.deltaY]},Qa=function(e){return e&&"current"in e?e.current:e},mp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pp=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},gp=0,Sn=[];function yp(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(gp++)[0],i=y.useState(uu)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Im([e.lockRef.current],(e.shards||[]).map(Qa),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=is(h),b=n.current,S="deltaX"in h?h.deltaX:b[0]-v[0],A="deltaY"in h?h.deltaY:b[1]-v[1],_,E=h.target,C=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in h&&C==="h"&&E.type==="range")return!1;var P=Xa(C,E);if(!P)return!0;if(P?_=C:(_=C==="v"?"h":"v",P=Xa(C,E)),!P)return!1;if(!r.current&&"changedTouches"in h&&(S||A)&&(r.current=_),!_)return!0;var j=r.current||_;return hp(j,x,h,j==="h"?S:A)},[]),c=y.useCallback(function(h){var x=h;if(!(!Sn.length||Sn[Sn.length-1]!==i)){var v="deltaY"in x?Ja(x):is(x),b=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&mp(_.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(Qa).filter(Boolean).filter(function(_){return _.contains(x.target)}),A=S.length>0?a(x,S[0]):!o.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),l=y.useCallback(function(h,x,v,b){var S={name:h,delta:x,target:v,should:b,shadowParent:vp(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(A){return A!==S})},1)},[]),u=y.useCallback(function(h){n.current=is(h),r.current=void 0},[]),d=y.useCallback(function(h){l(h.type,Ja(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){l(h.type,is(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Sn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,_n),document.addEventListener("touchmove",c,_n),document.addEventListener("touchstart",u,_n),function(){Sn=Sn.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,_n),document.removeEventListener("touchmove",c,_n),document.removeEventListener("touchstart",u,_n)}},[]);var p=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:pp(s)}):null,p?y.createElement(op,{gapMode:e.gapMode}):null)}function vp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xp=Gm(lu,yp);var To=y.forwardRef(function(e,t){return y.createElement(Gs,xt({},e,{ref:t,sideCar:xp}))});To.classNames=Gs.classNames;var bp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tn=new WeakMap,os=new WeakMap,as={},pi=0,mu=function(e){return e&&(e.host||mu(e.parentNode))},wp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mu(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_p=function(e,t,n,r){var s=wp(t,Array.isArray(e)?e:[e]);as[n]||(as[n]=new WeakMap);var i=as[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",h=(Tn.get(f)||0)+1,x=(i.get(f)||0)+1;Tn.set(f,h),i.set(f,x),o.push(f),h===1&&g&&os.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),pi++,function(){o.forEach(function(d){var f=Tn.get(d)-1,p=i.get(d)-1;Tn.set(d,f),i.set(d,p),f||(os.has(d)||d.removeAttribute(r),os.delete(d)),p||d.removeAttribute(n)}),pi--,pi||(Tn=new WeakMap,Tn=new WeakMap,os=new WeakMap,as={})}},pu=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=bp(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),_p(r,s,n,"aria-hidden")):function(){return null}},Ao="Dialog",[gu,RT]=bo(Ao),[Sp,gt]=gu(Ao),yu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),c=y.useRef(null),[l=!1,u]=nu({prop:r,defaultProp:s,onChange:i});return m.jsx(Sp,{scope:t,triggerRef:a,contentRef:c,contentId:ms(),titleId:ms(),descriptionId:ms(),open:l,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};yu.displayName=Ao;var vu="DialogTrigger",xu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(vu,n),i=pt(t,s.triggerRef);return m.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Po(s.open),...r,ref:i,onClick:Je(e.onClick,s.onOpenToggle)})});xu.displayName=vu;var Co="DialogPortal",[Tp,bu]=gu(Co,{forceMount:void 0}),wu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=gt(Co,t);return m.jsx(Tp,{scope:t,forceMount:n,children:y.Children.map(r,o=>m.jsx(Hn,{present:n||i.open,children:m.jsx(So,{asChild:!0,container:s,children:o})}))})};wu.displayName=Co;var Ss="DialogOverlay",_u=y.forwardRef((e,t)=>{const n=bu(Ss,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(Ss,e.__scopeDialog);return i.modal?m.jsx(Hn,{present:r||i.open,children:m.jsx(Ap,{...s,ref:t})}):null});_u.displayName=Ss;var Ap=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Ss,n);return m.jsx(To,{as:Zn,allowPinchZoom:!0,shards:[s.contentRef],children:m.jsx(We.div,{"data-state":Po(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pn="DialogContent",Su=y.forwardRef((e,t)=>{const n=bu(pn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(pn,e.__scopeDialog);return m.jsx(Hn,{present:r||i.open,children:i.modal?m.jsx(Cp,{...s,ref:t}):m.jsx(Ep,{...s,ref:t})})});Su.displayName=pn;var Cp=y.forwardRef((e,t)=>{const n=gt(pn,e.__scopeDialog),r=y.useRef(null),s=pt(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return pu(i)},[]),m.jsx(Tu,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,i=>i.preventDefault())})}),Ep=y.forwardRef((e,t)=>{const n=gt(pn,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return m.jsx(Tu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Tu=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=gt(pn,n),c=y.useRef(null),l=pt(t,c);return ou(),m.jsxs(m.Fragment,{children:[m.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:m.jsx(wo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Po(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Pp,{titleId:a.titleId}),m.jsx(Rp,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Eo="DialogTitle",Au=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Eo,n);return m.jsx(We.h2,{id:s.titleId,...r,ref:t})});Au.displayName=Eo;var Cu="DialogDescription",Eu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Cu,n);return m.jsx(We.p,{id:s.descriptionId,...r,ref:t})});Eu.displayName=Cu;var Pu="DialogClose",ku=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Pu,n);return m.jsx(We.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>s.onOpenChange(!1))})});ku.displayName=Pu;function Po(e){return e?"open":"closed"}var Ru="DialogTitleWarning",[NT,Nu]=cm(Ru,{contentName:pn,titleName:Eo,docsSlug:"dialog"}),Pp=({titleId:e})=>{const t=Nu(Ru),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},gp=0,Sn=[];function yp(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(gp++)[0],i=y.useState(uu)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Im([e.lockRef.current],(e.shards||[]).map(Qa),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=is(h),b=n.current,S="deltaX"in h?h.deltaX:b[0]-v[0],C="deltaY"in h?h.deltaY:b[1]-v[1],_,A=h.target,k=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in h&&k==="h"&&A.type==="range")return!1;var E=Xa(k,A);if(!E)return!0;if(E?_=k:(_=k==="v"?"h":"v",E=Xa(k,A)),!E)return!1;if(!r.current&&"changedTouches"in h&&(S||C)&&(r.current=_),!_)return!0;var j=r.current||_;return hp(j,x,h,j==="h"?S:C)},[]),c=y.useCallback(function(h){var x=h;if(!(!Sn.length||Sn[Sn.length-1]!==i)){var v="deltaY"in x?Ja(x):is(x),b=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&mp(_.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(Qa).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=S.length>0?a(x,S[0]):!o.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),l=y.useCallback(function(h,x,v,b){var S={name:h,delta:x,target:v,should:b,shadowParent:vp(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),u=y.useCallback(function(h){n.current=is(h),r.current=void 0},[]),d=y.useCallback(function(h){l(h.type,Ja(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){l(h.type,is(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Sn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,_n),document.addEventListener("touchmove",c,_n),document.addEventListener("touchstart",u,_n),function(){Sn=Sn.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,_n),document.removeEventListener("touchmove",c,_n),document.removeEventListener("touchstart",u,_n)}},[]);var p=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:pp(s)}):null,p?y.createElement(op,{gapMode:e.gapMode}):null)}function vp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xp=Gm(lu,yp);var To=y.forwardRef(function(e,t){return y.createElement(Ks,xt({},e,{ref:t,sideCar:xp}))});To.classNames=Ks.classNames;var bp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tn=new WeakMap,os=new WeakMap,as={},gi=0,mu=function(e){return e&&(e.host||mu(e.parentNode))},wp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mu(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_p=function(e,t,n,r){var s=wp(t,Array.isArray(e)?e:[e]);as[n]||(as[n]=new WeakMap);var i=as[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",h=(Tn.get(f)||0)+1,x=(i.get(f)||0)+1;Tn.set(f,h),i.set(f,x),o.push(f),h===1&&g&&os.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),gi++,function(){o.forEach(function(d){var f=Tn.get(d)-1,p=i.get(d)-1;Tn.set(d,f),i.set(d,p),f||(os.has(d)||d.removeAttribute(r),os.delete(d)),p||d.removeAttribute(n)}),gi--,gi||(Tn=new WeakMap,Tn=new WeakMap,os=new WeakMap,as={})}},pu=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=bp(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),_p(r,s,n,"aria-hidden")):function(){return null}},Co="Dialog",[gu,RT]=bo(Co),[Sp,gt]=gu(Co),yu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),c=y.useRef(null),[l=!1,u]=nu({prop:r,defaultProp:s,onChange:i});return m.jsx(Sp,{scope:t,triggerRef:a,contentRef:c,contentId:ms(),titleId:ms(),descriptionId:ms(),open:l,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};yu.displayName=Co;var vu="DialogTrigger",xu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(vu,n),i=pt(t,s.triggerRef);return m.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ko(s.open),...r,ref:i,onClick:Je(e.onClick,s.onOpenToggle)})});xu.displayName=vu;var Ao="DialogPortal",[Tp,bu]=gu(Ao,{forceMount:void 0}),wu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=gt(Ao,t);return m.jsx(Tp,{scope:t,forceMount:n,children:y.Children.map(r,o=>m.jsx(Hn,{present:n||i.open,children:m.jsx(So,{asChild:!0,container:s,children:o})}))})};wu.displayName=Ao;var Ts="DialogOverlay",_u=y.forwardRef((e,t)=>{const n=bu(Ts,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(Ts,e.__scopeDialog);return i.modal?m.jsx(Hn,{present:r||i.open,children:m.jsx(Cp,{...s,ref:t})}):null});_u.displayName=Ts;var Cp=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Ts,n);return m.jsx(To,{as:Zn,allowPinchZoom:!0,shards:[s.contentRef],children:m.jsx(We.div,{"data-state":ko(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pn="DialogContent",Su=y.forwardRef((e,t)=>{const n=bu(pn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(pn,e.__scopeDialog);return m.jsx(Hn,{present:r||i.open,children:i.modal?m.jsx(Ap,{...s,ref:t}):m.jsx(Ep,{...s,ref:t})})});Su.displayName=pn;var Ap=y.forwardRef((e,t)=>{const n=gt(pn,e.__scopeDialog),r=y.useRef(null),s=pt(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return pu(i)},[]),m.jsx(Tu,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,i=>i.preventDefault())})}),Ep=y.forwardRef((e,t)=>{const n=gt(pn,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return m.jsx(Tu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Tu=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=gt(pn,n),c=y.useRef(null),l=pt(t,c);return ou(),m.jsxs(m.Fragment,{children:[m.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:m.jsx(wo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ko(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(kp,{titleId:a.titleId}),m.jsx(Rp,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Eo="DialogTitle",Cu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Eo,n);return m.jsx(We.h2,{id:s.titleId,...r,ref:t})});Cu.displayName=Eo;var Au="DialogDescription",Eu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Au,n);return m.jsx(We.p,{id:s.descriptionId,...r,ref:t})});Eu.displayName=Au;var ku="DialogClose",Pu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(ku,n);return m.jsx(We.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>s.onOpenChange(!1))})});Pu.displayName=ku;function ko(e){return e?"open":"closed"}var Ru="DialogTitleWarning",[NT,Nu]=cm(Ru,{contentName:pn,titleName:Eo,docsSlug:"dialog"}),kp=({titleId:e})=>{const t=Nu(Ru),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},kp="DialogDescriptionWarning",Rp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nu(kp).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Np=yu,jp=xu,Dp=wu,ju=_u,Du=Su,Mu=Au,Ou=Eu,Vu=ku;function Lu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,tc=Iu,ko=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=ec(u)||ec(d);return s[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...l,d,f]:l},[]);return tc(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Pp="DialogDescriptionWarning",Rp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nu(Pp).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Np=yu,jp=xu,Dp=wu,ju=_u,Du=Su,Ou=Cu,Mu=Eu,Vu=Pu;function Lu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,tc=Iu,Po=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=ec(u)||ec(d);return s[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...l,d,f]:l},[]);return tc(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Mp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + */const Op=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Op={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"};/** + */var Mp={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"};/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Vp=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>y.createElement("svg",{ref:c,...Op,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Fu("lucide",s),...a},[...o.map(([l,u])=>y.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** + */const Vp=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>y.createElement("svg",{ref:c,...Mp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Fu("lucide",s),...a},[...o.map(([l,u])=>y.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const tn=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Vp,{ref:i,iconNode:t,className:Fu(`lucide-${Mp(e)}`,r),...s}));return n.displayName=`${e}`,n};/** + */const tn=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Vp,{ref:i,iconNode:t,className:Fu(`lucide-${Op(e)}`,r),...s}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. @@ -110,7 +110,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yp=tn("X",qp),Ro="-",Xp=e=>{const t=Qp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Ro);return a[0]===""&&a.length!==1&&a.shift(),Bu(a,t)||Jp(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Bu=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Bu(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Ro);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},nc=/^\[(.+)\]$/,Jp=e=>{if(nc.test(e)){const t=nc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qp=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return tg(Object.entries(e.classGroups),n).forEach(([i,o])=>{Fi(o,r,i,t)}),r},Fi=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:rc(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(eg(s)){Fi(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Fi(o,rc(t,i),n,r)})})},rc=(e,t)=>{let n=e;return t.split(Ro).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},eg=e=>e.isThemeGetter,tg=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,ng=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},$u="!",rg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},sg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},ig=e=>({cache:ng(e.cacheSize),parseClassName:rg(e),...Xp(e)}),og=/\s+/,ag=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(og);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let g=!!p,h=r(g?f.substring(0,p):f);if(!h){if(!g){a=l+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=l+(a.length>0?" "+a:a);continue}g=!1}const x=sg(u).join(":"),v=d?x+$u:x,b=v+h;if(i.includes(b))continue;i.push(b);const S=s(h,g);for(let A=0;A0?" "+a:a)}return a};function cg(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=ig(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=ag(c,n);return s(c,u),u}return function(){return i(cg.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Uu=/^\[(?:([a-z-]+):)?(.+)\]$/i,ug=/^\d+\/\d+$/,dg=new Set(["px","full","screen"]),fg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>Mn(e)||dg.has(e)||ug.test(e),Bt=e=>Gn(e,"length",Tg),Mn=e=>!!e&&!Number.isNaN(Number(e)),gi=e=>Gn(e,"number",Mn),tr=e=>!!e&&Number.isInteger(Number(e)),yg=e=>e.endsWith("%")&&Mn(e.slice(0,-1)),re=e=>Uu.test(e),$t=e=>fg.test(e),vg=new Set(["length","size","percentage"]),xg=e=>Gn(e,vg,Wu),bg=e=>Gn(e,"position",Wu),wg=new Set(["image","url"]),_g=e=>Gn(e,wg,Cg),Sg=e=>Gn(e,"",Ag),nr=()=>!0,Gn=(e,t,n)=>{const r=Uu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Tg=e=>hg.test(e)&&!mg.test(e),Wu=()=>!1,Ag=e=>pg.test(e),Cg=e=>gg.test(e),Eg=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),s=ye("borderColor"),i=ye("borderRadius"),o=ye("borderSpacing"),a=ye("borderWidth"),c=ye("contrast"),l=ye("grayscale"),u=ye("hueRotate"),d=ye("invert"),f=ye("gap"),p=ye("gradientColorStops"),g=ye("gradientColorStopPositions"),h=ye("inset"),x=ye("margin"),v=ye("opacity"),b=ye("padding"),S=ye("saturate"),A=ye("scale"),_=ye("sepia"),E=ye("skew"),C=ye("space"),P=ye("translate"),j=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",re,t],R=()=>[re,t],F=()=>["",Rt,Bt],$=()=>["auto",Mn,re],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",re],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[Mn,re];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[Rt,Bt],blur:["none","",$t,re],brightness:le(),borderColor:[e],borderRadius:["none","","full",$t,re],borderSpacing:R(),borderWidth:F(),contrast:le(),grayscale:Q(),hueRotate:le(),invert:Q(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[yg,Bt],inset:z(),margin:z(),opacity:le(),padding:R(),saturate:le(),scale:le(),sepia:Q(),skew:le(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),re]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tr,re]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",tr,re]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",tr,re]},re]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[tr,re]},re]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gi]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Mn,gi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rt,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rt,Bt]}],"underline-offset":[{"underline-offset":["auto",Rt,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),bg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_g]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Rt,re]}],"outline-w":[{outline:[Rt,Bt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Rt,Bt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$t,Sg]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",$t,re]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[S]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[tr,re]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rt,Bt,gi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Pg=lg(Eg);function ee(...e){return Pg(Iu(e))}const kg=Np,Rg=jp,Ng=Vu,jg=Dp,Zu=y.forwardRef(({className:e,...t},n)=>m.jsx(ju,{className:ee("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Zu.displayName=ju.displayName;const Dg=ko("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Hu=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>m.jsxs(jg,{children:[m.jsx(Zu,{}),m.jsxs(Du,{ref:s,className:ee(Dg({side:e}),t),...r,children:[m.jsxs(Vu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[m.jsx(Yp,{className:"size-8"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Hu.displayName=Du.displayName;const Gu=({className:e,...t})=>m.jsx("div",{className:ee("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gu.displayName="SheetHeader";const Mg=y.forwardRef(({className:e,...t},n)=>m.jsx(Mu,{ref:n,className:ee("text-lg font-semibold text-foreground",e),...t}));Mg.displayName=Mu.displayName;const Og=y.forwardRef(({className:e,...t},n)=>m.jsx(Ou,{ref:n,className:ee("text-sm text-muted-foreground",e),...t}));Og.displayName=Ou.displayName;const Vg=ko("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ge=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?Zn:"button";return m.jsx(o,{className:ee(Vg({variant:t,size:n,className:e})),ref:i,...s})});Ge.displayName="Button";const Bi=[{data:[{title:"Путеводитель",link:""},{title:"Контакты",link:"/contacts"},{title:"Новости",dropDown:!0,dropDownText:"Подписаться на новости"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{data:[{title:"Guide",link:""},{title:"Contacts",link:"/contacts"},{title:"News",dropDown:!0,dropDownText:"Subscribe to the news"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],sc=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,s,a);return a},Lg=e=>e?sc(e):sc,Ig=e=>e;function Fg(e,t=Ig){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const Bg=e=>{const t=Lg(e),n=r=>Fg(t,r);return Object.assign(n,t),n},$g=e=>Bg;function zg(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const $i=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return $i(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return $i(r)(n)}}}},Ug=(e,t)=>(n,r,s)=>{let i={storage:zg(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return l.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let p;const g=()=>{var h,x;if(!l)return;o=!1,a.forEach(b=>{var S;return b((S=r())!=null?S:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return $i(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const S=i.migrate(b.state,b.version);return S instanceof Promise?S.then(A=>[!0,A]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var S;const[A,_]=b;if(p=i.merge(_,(S=r())!=null?S:f),n(p,!0),A)return u()}).then(()=>{v==null||v(p,void 0),p=r(),o=!0,c.forEach(b=>b(p))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||g(),p||f},Wg=Ug;var Ve=(e=>(e.EN="en",e.RU="ru",e))(Ve||{});const ze=$g()(Wg(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),pe=e=>e===Ve.RU?0:1,Zg=()=>{const[e,t]=y.useState(!1),n=ze(r=>r.lang);return m.jsxs(kg,{onOpenChange:()=>t(!e),open:e,children:[m.jsx(Rg,{children:m.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),m.jsxs(Hu,{className:"overflow-y-auto",children:[m.jsx(Ng,{}),m.jsxs(Gu,{className:"mt-16 flex flex-col gap-2",children:[m.jsx(Ce,{to:"",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),m.jsx(Ce,{to:"/B2B-B2G",onClick:()=>t(!1),children:m.jsx(Ge,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),m.jsx("hr",{className:"border-slate-500/20 my-8"}),m.jsx("div",{className:"flex flex-col gap-6",children:Bi[pe(n)].data.map(r=>m.jsx(Ce,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link||"",children:r.title},r.title))})]})]})},Ku=({className:e})=>m.jsx("div",{className:ee("",e),children:m.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),qu=({className:e,img:t,title:n,iconClassName:r})=>m.jsxs("article",{className:ee("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[m.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),m.jsx("div",{className:ee("md:size-[84px] size-12 bg-teritary p-3",r),children:m.jsx("img",{src:t,alt:"theme icon"})}),m.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Hg=({className:e,nums:t,text:n})=>m.jsxs("article",{className:ee("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[m.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),m.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),m.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Gg=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>m.jsxs("article",{className:ee("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[m.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),m.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),m.jsxs("div",{className:"relative z-20 h-full",children:[m.jsxs("div",{className:"",children:[m.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),m.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),m.jsx(Ce,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:m.jsxs(Ge,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",m.jsx(Ip,{})]})})]})]}),Yu=({className:e,name:t,date:n,bottomClassName:r})=>m.jsxs("div",{className:ee("rounded-t-[4px] overflow-hidden",e),children:[m.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),m.jsx("div",{className:ee("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),Kg=({className:e,subtitle:t,title:n,img:r})=>m.jsxs("div",{className:ee("flex items-center gap-4",e),children:[m.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:m.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("h5",{className:"text-sm text-[#454545]",children:t}),m.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),No=y.createContext({});function jo(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ks=y.createContext(null),Do=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class qg extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Yg({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(Do);return y.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!s.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` + */const qp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yp=tn("X",qp),Ro="-",Xp=e=>{const t=Qp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Ro);return a[0]===""&&a.length!==1&&a.shift(),Bu(a,t)||Jp(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Bu=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Bu(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Ro);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},nc=/^\[(.+)\]$/,Jp=e=>{if(nc.test(e)){const t=nc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qp=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return tg(Object.entries(e.classGroups),n).forEach(([i,o])=>{Bi(o,r,i,t)}),r},Bi=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:rc(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(eg(s)){Bi(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Bi(o,rc(t,i),n,r)})})},rc=(e,t)=>{let n=e;return t.split(Ro).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},eg=e=>e.isThemeGetter,tg=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,ng=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},$u="!",rg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},sg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},ig=e=>({cache:ng(e.cacheSize),parseClassName:rg(e),...Xp(e)}),og=/\s+/,ag=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(og);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let g=!!p,h=r(g?f.substring(0,p):f);if(!h){if(!g){a=l+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=l+(a.length>0?" "+a:a);continue}g=!1}const x=sg(u).join(":"),v=d?x+$u:x,b=v+h;if(i.includes(b))continue;i.push(b);const S=s(h,g);for(let C=0;C0?" "+a:a)}return a};function cg(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=ig(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=ag(c,n);return s(c,u),u}return function(){return i(cg.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Uu=/^\[(?:([a-z-]+):)?(.+)\]$/i,ug=/^\d+\/\d+$/,dg=new Set(["px","full","screen"]),fg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>On(e)||dg.has(e)||ug.test(e),Bt=e=>Gn(e,"length",Tg),On=e=>!!e&&!Number.isNaN(Number(e)),yi=e=>Gn(e,"number",On),tr=e=>!!e&&Number.isInteger(Number(e)),yg=e=>e.endsWith("%")&&On(e.slice(0,-1)),re=e=>Uu.test(e),$t=e=>fg.test(e),vg=new Set(["length","size","percentage"]),xg=e=>Gn(e,vg,Wu),bg=e=>Gn(e,"position",Wu),wg=new Set(["image","url"]),_g=e=>Gn(e,wg,Ag),Sg=e=>Gn(e,"",Cg),nr=()=>!0,Gn=(e,t,n)=>{const r=Uu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Tg=e=>hg.test(e)&&!mg.test(e),Wu=()=>!1,Cg=e=>pg.test(e),Ag=e=>gg.test(e),Eg=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),s=ye("borderColor"),i=ye("borderRadius"),o=ye("borderSpacing"),a=ye("borderWidth"),c=ye("contrast"),l=ye("grayscale"),u=ye("hueRotate"),d=ye("invert"),f=ye("gap"),p=ye("gradientColorStops"),g=ye("gradientColorStopPositions"),h=ye("inset"),x=ye("margin"),v=ye("opacity"),b=ye("padding"),S=ye("saturate"),C=ye("scale"),_=ye("sepia"),A=ye("skew"),k=ye("space"),E=ye("translate"),j=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",re,t],R=()=>[re,t],B=()=>["",Rt,Bt],z=()=>["auto",On,re],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",re],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[On,re];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[Rt,Bt],blur:["none","",$t,re],brightness:le(),borderColor:[e],borderRadius:["none","","full",$t,re],borderSpacing:R(),borderWidth:B(),contrast:le(),grayscale:Q(),hueRotate:le(),invert:Q(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[yg,Bt],inset:I(),margin:I(),opacity:le(),padding:R(),saturate:le(),scale:le(),sepia:Q(),skew:le(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),re]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tr,re]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",tr,re]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",tr,re]},re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[tr,re]},re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yi]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",On,yi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rt,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rt,Bt]}],"underline-offset":[{"underline-offset":["auto",Rt,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),bg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_g]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Rt,re]}],"outline-w":[{outline:[Rt,Bt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Rt,Bt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$t,Sg]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",$t,re]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[S]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[tr,re]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rt,Bt,yi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},kg=lg(Eg);function ee(...e){return kg(Iu(e))}const Pg=Np,Rg=jp,Ng=Vu,jg=Dp,Zu=y.forwardRef(({className:e,...t},n)=>m.jsx(ju,{className:ee("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Zu.displayName=ju.displayName;const Dg=Po("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Hu=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>m.jsxs(jg,{children:[m.jsx(Zu,{}),m.jsxs(Du,{ref:s,className:ee(Dg({side:e}),t),...r,children:[m.jsxs(Vu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[m.jsx(Yp,{className:"size-8"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Hu.displayName=Du.displayName;const Gu=({className:e,...t})=>m.jsx("div",{className:ee("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gu.displayName="SheetHeader";const Og=y.forwardRef(({className:e,...t},n)=>m.jsx(Ou,{ref:n,className:ee("text-lg font-semibold text-foreground",e),...t}));Og.displayName=Ou.displayName;const Mg=y.forwardRef(({className:e,...t},n)=>m.jsx(Mu,{ref:n,className:ee("text-sm text-muted-foreground",e),...t}));Mg.displayName=Mu.displayName;const Vg=Po("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ge=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?Zn:"button";return m.jsx(o,{className:ee(Vg({variant:t,size:n,className:e})),ref:i,...s})});Ge.displayName="Button";const ys=[{data:[{title:"Путеводитель",link:""},{title:"Новости",dropDown:!0,dropDownContent:[{text:"Новости",link:""},{text:"Подписаться на новости"}]},{title:"Контакты",link:"/contacts"},{title:"О выставке",dropDown:!0,dropDownContent:[{text:"О выставке",link:"/about"},{text:"Медиа",link:""}]},{title:"Посетителям",dropDown:!0,dropDownContent:[{text:"Почему стоит посетить?",link:"",blank:!0},{text:"Список участников",link:"",blank:!0},{text:"Путеводитель",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf",blank:!0}]},{title:"Участникам",dropdown:!0,dropDownContent:[{text:"Забронировать стенд",link:"/stend-form"},{text:"Почему стоить участвовать?",link:""},{text:"Тематические разделы ",link:""}]}]},{data:[{title:"Travel Guide",link:""},{title:"Contacts",link:"/contacts"},{title:"News",dropDown:!0,dropDownContent:[{text:"News",link:""},{text:"Subscribe to the news"}]},{title:"About exhibition",dropDown:!0,dropDownContent:[{text:"About exhibition",link:"/about"},{text:"Media",link:""}]},{title:"Visitors",dropDown:!0,dropDownContent:[{text:"Why visit?",link:""},{text:"List of Participants",link:"",blank:!0},{text:"Programme",link:"",blank:!0},{text:"Travel Guide",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf",blank:!0}]},{title:"Exhibitors",dropDown:!0,dropDownContent:[{text:"Book a stand",link:"/stend-form"},{text:"Why exhibit?",link:""},{text:"Thematic areas of the exhibition",link:""}]}]}],sc=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,s,a);return a},Lg=e=>e?sc(e):sc,Ig=e=>e;function Fg(e,t=Ig){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const Bg=e=>{const t=Lg(e),n=r=>Fg(t,r);return Object.assign(n,t),n},$g=e=>Bg;function zg(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const $i=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return $i(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return $i(r)(n)}}}},Ug=(e,t)=>(n,r,s)=>{let i={storage:zg(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return l.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let p;const g=()=>{var h,x;if(!l)return;o=!1,a.forEach(b=>{var S;return b((S=r())!=null?S:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return $i(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const S=i.migrate(b.state,b.version);return S instanceof Promise?S.then(C=>[!0,C]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var S;const[C,_]=b;if(p=i.merge(_,(S=r())!=null?S:f),n(p,!0),C)return u()}).then(()=>{v==null||v(p,void 0),p=r(),o=!0,c.forEach(b=>b(p))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||g(),p||f},Wg=Ug;var Ve=(e=>(e.EN="en",e.RU="ru",e))(Ve||{});const ze=$g()(Wg(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),pe=e=>e===Ve.RU?0:1,Zg=()=>{const[e,t]=y.useState(!1),n=ze(r=>r.lang);return m.jsxs(Pg,{onOpenChange:()=>t(!e),open:e,children:[m.jsx(Rg,{children:m.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),m.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),m.jsxs(Hu,{className:"overflow-y-auto",children:[m.jsx(Ng,{}),m.jsxs(Gu,{className:"mt-16 flex flex-col gap-2",children:[m.jsx(Ae,{to:"",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),m.jsx(Ae,{to:"/B2B-B2G",onClick:()=>t(!1),children:m.jsx(Ge,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),m.jsx("hr",{className:"border-slate-500/20 my-8"}),m.jsx("div",{className:"flex flex-col gap-6",children:ys[pe(n)].data.map(r=>m.jsx(Ae,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link||"",children:r.title},r.title))})]})]})},Ku=({className:e})=>m.jsx("div",{className:ee("",e),children:m.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),qu=({className:e,img:t,title:n,iconClassName:r})=>m.jsxs("article",{className:ee("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[m.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),m.jsx("div",{className:ee("md:size-[84px] size-12 bg-teritary p-3",r),children:m.jsx("img",{src:t,alt:"theme icon"})}),m.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Hg=({className:e,nums:t,text:n})=>m.jsxs("article",{className:ee("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[m.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),m.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),m.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Gg=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>m.jsxs("article",{className:ee("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[m.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),m.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),m.jsxs("div",{className:"relative z-20 h-full",children:[m.jsxs("div",{className:"",children:[m.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),m.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),m.jsx(Ae,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:m.jsxs(Ge,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",m.jsx(Ip,{})]})})]})]}),Yu=({className:e,name:t,date:n,bottomClassName:r})=>m.jsxs("div",{className:ee("rounded-t-[4px] overflow-hidden",e),children:[m.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),m.jsx("div",{className:ee("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),Kg=({className:e,subtitle:t,title:n,img:r})=>m.jsxs("div",{className:ee("flex items-center gap-4",e),children:[m.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:m.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("h5",{className:"text-sm text-[#454545]",children:t}),m.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),No=y.createContext({});function jo(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const qs=y.createContext(null),Do=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class qg extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Yg({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(Do);return y.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!s.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${a}px !important; @@ -118,13 +118,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do ${f}px !important; top: ${l}px !important; } - `),()=>{document.head.removeChild(p)}},[t]),m.jsx(qg,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const Xg=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=jo(Jg),l=y.useId(),u=y.useCallback(f=>{c.set(f,!0);for(const p of c.values())if(!p)return;r&&r()},[c,r]),d=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{c.forEach((f,p)=>c.set(p,!1))},[n]),y.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=m.jsx(Yg,{isPresent:n,anchorX:a,children:e})),m.jsx(Ks.Provider,{value:d,children:e})};function Jg(){return new Map}function Xu(e=!0){const t=y.useContext(Ks);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const cs=e=>e.key||"";function ic(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Mo=typeof window<"u",Ju=Mo?y.useLayoutEffect:y.useEffect,MT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Xu(o),u=y.useMemo(()=>ic(e),[e]),d=o&&!c?[]:u.map(cs),f=y.useRef(!0),p=y.useRef(u),g=jo(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Ju(()=>{f.current=!1,p.current=u;for(let _=0;_{const E=cs(_),C=o&&!c?!1:u===v||d.includes(E),P=()=>{if(g.has(E))g.set(E,!0);else return;let j=!0;g.forEach(D=>{D||(j=!1)}),j&&(A==null||A(),b(p.current),o&&(l==null||l()),r&&r())};return m.jsx(Xg,{isPresent:C,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,onExitComplete:C?void 0:P,anchorX:a,children:_},E)})})},Qe=e=>e;let Qu=Qe;const Qg={useManualTiming:!1},ls=["read","resolveKeyframes","update","preRender","render","postRender"],oc={value:null};function ey(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function l(d){o.has(d)&&(u.schedule(d),e()),c++,d(a)}const u={schedule:(d,f=!1,p=!1)=>{const h=p&&s?n:r;return f&&o.add(d),h.has(d)||h.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),t&&oc.value&&oc.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const ty=40;function ed(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ls.reduce((v,b)=>(v[b]=ey(i,t?b:void 0),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,ty),1),s.timestamp=v,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},g=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:ls.reduce((v,b)=>{const S=o[b];return v[b]=(A,_=!1,E=!1)=>(n||g(),S.schedule(A,_,E)),v},{}),cancel:v=>{for(let b=0;bac[e].some(n=>!!t[n])};function ny(e){for(const t in e)Ln[t]={...Ln[t],...e[t]}}const ry=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ts(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ry.has(e)}let nd=e=>!Ts(e);function sy(e){e&&(nd=t=>t.startsWith("on")?!Ts(t):e(t))}try{sy(require("@emotion/is-prop-valid").default)}catch{}function iy(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(nd(s)||n===!0&&Ts(s)||!t&&!Ts(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function oy(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const qs=y.createContext({});function Ys(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function br(e){return typeof e=="string"||Array.isArray(e)}const Oo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vo=["initial",...Oo];function Xs(e){return Ys(e.animate)||Vo.some(t=>br(e[t]))}function rd(e){return!!(Xs(e)||e.variants)}function ay(e,t){if(Xs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||br(n)?n:void 0,animate:br(r)?r:void 0}}return e.inherit!==!1?t:{}}function cy(e){const{initial:t,animate:n}=ay(e,y.useContext(qs));return y.useMemo(()=>({initial:t,animate:n}),[cc(t),cc(n)])}function cc(e){return Array.isArray(e)?e.join(" "):e}const ly=Symbol.for("motionComponentSymbol");function En(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uy(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):En(n)&&(n.current=r))},[t])}const Lo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dy="framerAppearId",sd="data-"+Lo(dy),{schedule:Io}=ed(queueMicrotask,!1),id=y.createContext({});function fy(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(qs),c=y.useContext(td),l=y.useContext(Ks),u=y.useContext(Do).reducedMotion,d=y.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,p=y.useContext(id);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&hy(d.current,n,s,p);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const h=n[sd],x=y.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return Ju(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Io.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function hy(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:od(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&En(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function od(e){if(e)return e.options.allowProjection!==!1?e.projection:od(e.parent)}function my({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&ny(e);function a(l,u){let d;const f={...y.useContext(Do),...l,layoutId:py(l)},{isStatic:p}=f,g=cy(l),h=r(l,p);if(!p&&Mo){gy();const x=yy(f);d=x.MeasureLayout,g.visualElement=fy(s,h,f,t,x.ProjectionNode)}return m.jsxs(qs.Provider,{value:g,children:[d&&g.visualElement?m.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,l,uy(h,g.visualElement,u),h,p,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=y.forwardRef(a);return c[ly]=s,c}function py({layoutId:e}){const t=y.useContext(No).id;return t&&e!==void 0?t+"-"+e:e}function gy(e,t){y.useContext(td).strict}function yy(e){const{drag:t,layout:n}=Ln;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ad=e=>t=>typeof t=="string"&&t.startsWith(e),Fo=ad("--"),vy=ad("var(--"),Bo=e=>vy(e)?xy.test(e.split("/*")[0].trim()):!1,xy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wr={};function by(e){for(const t in e)wr[t]=e[t],Fo(t)&&(wr[t].isCSSVariable=!0)}const Kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(Kn);function cd(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wr[e]||e==="opacity")}const Le=e=>!!(e&&e.getVelocity),ld=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},_r={...qn,transform:e=>Vt(0,1,e)},us={...qn,default:1},Zr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ut=Zr("deg"),_t=Zr("%"),q=Zr("px"),wy=Zr("vh"),_y=Zr("vw"),lc={..._t,parse:e=>_t.parse(e)/100,transform:e=>_t.transform(e*100)},Sy={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q},Ty={rotate:Ut,rotateX:Ut,rotateY:Ut,rotateZ:Ut,scale:us,scaleX:us,scaleY:us,scaleZ:us,skew:Ut,skewX:Ut,skewY:Ut,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:_r,originX:lc,originY:lc,originZ:q},uc={...qn,transform:Math.round},$o={...Sy,...Ty,zIndex:uc,size:q,fillOpacity:_r,strokeOpacity:_r,numOctaves:uc},Ay={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cy=Kn.length;function Ey(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function ud(e,t,n){for(const r in t)!Le(t[r])&&!cd(r,n)&&(e[r]=t[r])}function Py({transformTemplate:e},t){return y.useMemo(()=>{const n=Uo();return zo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ky(e,t){const n=e.style||{},r={};return ud(r,n,e),Object.assign(r,Py(e,t)),r}function Ry(e,t){const n={},r=ky(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ny=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wo(e){return typeof e!="string"||e.includes("-")?!1:!!(Ny.indexOf(e)>-1||/[A-Z]/u.test(e))}const jy={offset:"stroke-dashoffset",array:"stroke-dasharray"},Dy={offset:"strokeDashoffset",array:"strokeDasharray"};function My(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jy:Dy;e[i.offset]=q.transform(-r);const o=q.transform(t),a=q.transform(n);e[i.array]=`${o} ${a}`}function dc(e,t,n){return typeof e=="string"?e:q.transform(t+n*e)}function Oy(e,t,n){const r=dc(t,e.x,e.width),s=dc(n,e.y,e.height);return`${r} ${s}`}function Zo(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(zo(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:g}=e;f.transform&&(g&&(p.transform=f.transform),delete f.transform),g&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=Oy(g,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&My(f,o,a,c,!1)}const dd=()=>({...Uo(),attrs:{}}),Ho=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vy(e,t,n,r){const s=y.useMemo(()=>{const i=dd();return Zo(i,t,Ho(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ud(i,e.style,e),s.style={...i,...s.style}}return s}function Ly(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(Wo(n)?Vy:Ry)(r,i,o,n),l=iy(r,typeof n=="string",e),u=n!==y.Fragment?{...l,...c,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Le(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function fc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Go(e,t,n,r){if(typeof t=="function"){const[s,i]=fc(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=fc(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const zi=e=>Array.isArray(e),Iy=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Fy=e=>zi(e)?e[e.length-1]||0:e;function ys(e){const t=Le(e)?e.get():e;return Iy(t)?t.toValue():t}function By({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:$y(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const fd=e=>(t,n)=>{const r=y.useContext(qs),s=y.useContext(Ks),i=()=>By(e,t,r,s);return n?i():jo(i)};function $y(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=ys(i[f]);let{initial:o,animate:a}=e;const c=Xs(e),l=rd(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Ys(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(wn.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{hd(n,r),ge.render(()=>{Zo(r,s,Ho(n.tagName),e.transformTemplate),gd(n,r)})})}})};function Wy(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Wo(r)?Uy:zy,preloadedFeatures:e,useRender:Ly(s),createVisualElement:t,Component:r};return my(o)}}function Sr(e,t,n){const r=e.getProps();return Go(r,t,n!==void 0?n:r.custom,e)}function qo(e,t){return e?e[t]||e.default||e:void 0}const vd=new Set(["width","height","top","left","right","bottom",...Kn]);let vs;function Zy(){vs=void 0}const St={now:()=>(vs===void 0&&St.set(je.isProcessing||Qg.useManualTiming?je.timestamp:performance.now()),vs),set:e=>{vs=e,queueMicrotask(Zy)}};function Yo(e,t){e.indexOf(t)===-1&&e.push(t)}function Xo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jo{constructor(){this.subscriptions=[]}add(t){return Yo(this.subscriptions,t),()=>Xo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Gy{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=St.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=St.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hy(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jo);const r=this.events[t].add(n);return t==="change"?()=>{r(),ge.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=St.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mc);return xd(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tr(e,t){return new Gy(e,t)}function Ky(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tr(n))}function qy(e,t){const n=Sr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Fy(i[o]);Ky(e,o,a)}}function Yy(e){return!!(Le(e)&&e.add)}function Ui(e,t){const n=e.getValue("willChange");if(Yy(n))return n.add(t)}function bd(e){return e.props[sd]}function Qo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xy=Qo(()=>window.ScrollTimeline!==void 0);class Jy{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(Xy()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Qy extends Jy{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Mt=e=>e*1e3,Ot=e=>e/1e3;function ea(e){return typeof e=="function"}function pc(e,t){e.timeline=t,e.onfinish=null}const ta=e=>Array.isArray(e)&&typeof e[0]=="number",ev={linearEasing:void 0};function tv(e,t){const n=Qo(e);return()=>{var r;return(r=ev[t])!==null&&r!==void 0?r:n()}}const As=tv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),In=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wd=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function Sd(e,t){if(e)return typeof e=="function"&&As()?wd(e,t):ta(e)?ar(e):Array.isArray(e)?e.map(n=>Sd(n,t)||Wi.easeOut):Wi[e]}const Td=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nv=1e-7,rv=12;function sv(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Td(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>nv&&++asv(i,0,1,e,n);return i=>i===0||i===1?i:Td(s(i),t,r)}const Ad=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cd=e=>t=>1-e(1-t),Ed=Hr(.33,1.53,.69,.99),na=Cd(Ed),Pd=Ad(na),kd=e=>(e*=2)<1?.5*na(e):.5*(2-Math.pow(2,-10*(e-1))),ra=e=>1-Math.sin(Math.acos(e)),Rd=Cd(ra),Nd=Ad(ra),jd=e=>/^0[^.\s]+$/u.test(e);function iv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jd(e):!0}const fr=e=>Math.round(e*1e5)/1e5,sa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ov(e){return e==null}const av=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ia=(e,t)=>n=>!!(typeof n=="string"&&av.test(n)&&n.startsWith(e)||t&&!ov(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dd=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(sa);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},cv=e=>Vt(0,255,e),vi={...qn,transform:e=>Math.round(cv(e))},ln={test:ia("rgb","red"),parse:Dd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vi.transform(e)+", "+vi.transform(t)+", "+vi.transform(n)+", "+fr(_r.transform(r))+")"};function lv(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Zi={test:ia("#"),parse:lv,transform:ln.transform},Pn={test:ia("hsl","hue"),parse:Dd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_t.transform(fr(t))+", "+_t.transform(fr(n))+", "+fr(_r.transform(r))+")"},Oe={test:e=>ln.test(e)||Zi.test(e)||Pn.test(e),parse:e=>ln.test(e)?ln.parse(e):Pn.test(e)?Pn.parse(e):Zi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ln.transform(e):Pn.transform(e)},uv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sa))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(uv))===null||n===void 0?void 0:n.length)||0)>0}const Md="number",Od="color",fv="var",hv="var(",gc="${}",mv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ar(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(mv,c=>(Oe.test(c)?(r.color.push(i),s.push(Od),n.push(Oe.parse(c))):c.startsWith(hv)?(r.var.push(i),s.push(fv),n.push(c)):(r.number.push(i),s.push(Md),n.push(parseFloat(c))),++i,gc)).split(gc);return{values:n,split:a,indexes:r,types:s}}function Vd(e){return Ar(e).values}function Ld(e){const{split:t,types:n}=Ar(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function gv(e){const t=Vd(e);return Ld(e)(t.map(pv))}const Gt={test:dv,parse:Vd,createTransformer:Ld,getAnimatableNone:gv},yv=new Set(["brightness","contrast","saturate","opacity"]);function vv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(sa)||[];if(!r)return e;const s=n.replace(r,"");let i=yv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const xv=/\b([a-z-]*)\(.*?\)/gu,Hi={...Gt,getAnimatableNone:e=>{const t=e.match(xv);return t?t.map(vv).join(" "):e}},bv={...$o,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Hi,WebkitFilter:Hi},oa=e=>bv[e];function Id(e,t){let n=oa(e);return n!==Hi&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wv=new Set(["auto","none","0"]);function _v(e,t,n){let r=0,s;for(;re===qn||e===q,vc=(e,t)=>parseFloat(e.split(", ")[t]),xc=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return vc(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?vc(i[1],e):0}},Sv=new Set(["x","y","z"]),Tv=Kn.filter(e=>!Sv.has(e));function Av(e){const t=[];return Tv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:xc(4,13),y:xc(5,14)};Fn.translateX=Fn.x;Fn.translateY=Fn.y;const dn=new Set;let Gi=!1,Ki=!1;function Fd(){if(Ki){const e=Array.from(dn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Av(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ki=!1,Gi=!1,dn.forEach(e=>e.complete()),dn.clear()}function Bd(){dn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ki=!0)})}function Cv(){Bd(),Fd()}class aa{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dn.add(this),Gi||(Gi=!0,ge.read(Bd),ge.resolveKeyframes(Fd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ev=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pv(e){const t=Ev.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function zd(e,t,n=1){const[r,s]=Pv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return $d(o)?parseFloat(o):o}return Bo(s)?zd(s,t,n+1):s}const Ud=e=>t=>t.test(e),kv={test:e=>e==="auto",parse:e=>e},Wd=[qn,q,_t,Ut,_y,wy,kv],bc=e=>Wd.find(Ud(e));class Zd extends aa{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const wc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function Rv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Js(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(jv),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Dv=40;class Hd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=St.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Dv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Cv(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=St.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!Nv(t,r,s,i))if(o)this.options.duration=0;else{c&&c(Js(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const qi=2e4;function Gd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=qi?1/0:t}const xe=(e,t,n)=>e+(t-e)*n;function xi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mv({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=xi(c,a,e+1/3),i=xi(c,a,e),o=xi(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Cs(e,t){return n=>n>0?t:e}const bi=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Ov=[Zi,ln,Pn],Vv=e=>Ov.find(t=>t.test(e));function _c(e){const t=Vv(e);if(!t)return!1;let n=t.parse(e);return t===Pn&&(n=Mv(n)),n}const Sc=(e,t)=>{const n=_c(e),r=_c(t);if(!n||!r)return Cs(e,t);const s={...n};return i=>(s.red=bi(n.red,r.red,i),s.green=bi(n.green,r.green,i),s.blue=bi(n.blue,r.blue,i),s.alpha=xe(n.alpha,r.alpha,i),ln.transform(s))},Lv=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce(Lv),Yi=new Set(["none","hidden"]);function Iv(e,t){return Yi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Fv(e,t){return n=>xe(e,t,n)}function ca(e){return typeof e=="number"?Fv:typeof e=="string"?Bo(e)?Cs:Oe.test(e)?Sc:zv:Array.isArray(e)?Kd:typeof e=="object"?Oe.test(e)?Sc:Bv:Cs}function Kd(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>ca(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function $v(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Gt.createTransformer(t),r=Ar(e),s=Ar(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Yi.has(e)&&!s.values.length||Yi.has(t)&&!r.values.length?Iv(e,t):Gr(Kd($v(r,s),s.values),n):Cs(e,t)};function qd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xe(e,t,n):ca(e)(e,t)}const Uv=5;function Yd(e,t,n){const r=Math.max(t-Uv,0);return xd(n-e(r),t-r)}const we={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tc=.001;function Wv({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let s,i,o=1-t;o=Vt(we.minDamping,we.maxDamping,o),e=Vt(we.minDuration,we.maxDuration,Ot(e)),o<1?(s=l=>{const u=l*o,d=u*e,f=u-n,p=Xi(l,o),g=Math.exp(-d);return Tc-f/p*g},i=l=>{const d=l*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),h=Xi(Math.pow(l,2),o);return(-s(l)+Tc>0?-1:1)*((f-p)*g)/h}):(s=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=Hv(s,i,a);if(e=Mt(e),isNaN(c))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const Zv=12;function Hv(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function qv(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!Ac(e,Kv)&&Ac(e,Gv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Vt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:we.mass,stiffness:s,damping:i}}else{const n=Wv(e);t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function Xd(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=qv({...n,velocity:-Ot(n.velocity||0)}),g=f||0,h=l/(2*Math.sqrt(c*u)),x=o-i,v=Ot(Math.sqrt(c/u)),b=Math.abs(x)<5;r||(r=b?we.restSpeed.granular:we.restSpeed.default),s||(s=b?we.restDelta.granular:we.restDelta.default);let S;if(h<1){const _=Xi(v,h);S=E=>{const C=Math.exp(-h*v*E);return o-C*((g+h*v*x)/_*Math.sin(_*E)+x*Math.cos(_*E))}}else if(h===1)S=_=>o-Math.exp(-v*_)*(x+(g+v*x)*_);else{const _=v*Math.sqrt(h*h-1);S=E=>{const C=Math.exp(-h*v*E),P=Math.min(_*E,300);return o-C*((g+h*v*x)*Math.sinh(P)+_*x*Math.cosh(P))/_}}const A={calculatedDuration:p&&d||null,next:_=>{const E=S(_);if(p)a.done=_>=d;else{let C=0;h<1&&(C=_===0?Mt(g):Yd(S,_,E));const P=Math.abs(C)<=r,j=Math.abs(o-E)<=s;a.done=P&&j}return a.value=a.done?o:E,a},toString:()=>{const _=Math.min(Gd(A),qi),E=wd(C=>A.next(_*C).value,_,30);return _+"ms "+E}};return A}function Cc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pc,g=P=>a===void 0?c:c===void 0||Math.abs(a-P)-h*Math.exp(-P/r),S=P=>v+b(P),A=P=>{const j=b(P),D=S(P);f.done=Math.abs(j)<=l,f.value=f.done?v:D};let _,E;const C=P=>{p(f.value)&&(_=P,E=Xd({keyframes:[f.value,g(f.value)],velocity:Yd(S,P,f.value),damping:s,stiffness:i,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:P=>{let j=!1;return!E&&_===void 0&&(j=!0,A(P),C(P)),_!==void 0&&P>=_?E.next(P-_):(!j&&A(P),f)}}}const Yv=Hr(.42,0,1,1),Xv=Hr(0,0,.58,1),Jd=Hr(.42,0,.58,1),Jv=e=>Array.isArray(e)&&typeof e[0]!="number",Qv={linear:Qe,easeIn:Yv,easeInOut:Jd,easeOut:Xv,circIn:ra,circInOut:Nd,circOut:Rd,backIn:na,backInOut:Pd,backOut:Ed,anticipate:kd},Ec=e=>{if(ta(e)){Qu(e.length===4);const[t,n,r,s]=e;return Hr(t,n,r,s)}else if(typeof e=="string")return Qv[e];return e};function ex(e,t,n){const r=[],s=n||qd,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ex(t,r,s),c=a.length,l=u=>{if(o&&u1)for(;dl(Vt(e[0],e[i-1],u)):l}function nx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=In(0,t,r);e.push(xe(n,1,s))}}function rx(e){const t=[0];return nx(t,e.length-1),t}function sx(e,t){return e.map(n=>n*t)}function ix(e,t){return e.map(()=>t||Jd).splice(0,e.length-1)}function Es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Jv(r)?r.map(Ec):Ec(r),i={done:!1,value:t[0]},o=sx(n&&n.length===t.length?n:rx(t),e),a=tx(o,t,{ease:Array.isArray(s)?s:ix(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const ox=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ge.update(t,!0),stop:()=>Ht(t),now:()=>je.isProcessing?je.timestamp:St.now()}},ax={decay:Cc,inertia:Cc,tween:Es,keyframes:Es,spring:Xd},cx=e=>e/100;class la extends Hd{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||aa,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=ea(n)?n:ax[n]||Es;let c,l;a!==Es&&typeof t[0]!="number"&&(c=Gr(cx,qd(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Gd(u));const{calculatedDuration:d}=u,f=d+s,p=f*(r+1)-s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:g,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let S=this.currentTime,A=i;if(p){const P=Math.min(this.currentTime,u)/d;let j=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&j--,j=Math.min(j,p+1),!!(j%2)&&(g==="reverse"?(D=1-D,h&&(D-=h/d)):g==="mirror"&&(A=o)),S=Vt(0,1,D)*d}const _=b?{done:!1,value:c[0]}:A.next(S);a&&(_.value=a(_.value));let{done:E}=_;!b&&l!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return C&&s!==void 0&&(_.value=Js(c,this.options,s)),x&&x(_.value),C&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Ot(t.calculatedDuration):0}get time(){return Ot(this.currentTime)}set time(t){t=Mt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ot(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ox,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const lx=new Set(["opacity","clipPath","filter","transform"]);function ux(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Sd(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const dx=Qo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ps=10,fx=2e4;function hx(e){return ea(e.type)||e.type==="spring"||!_d(e.ease)}function mx(e,t){const n=new la({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&As()&&px(i)&&(i=Qd[i]),hx(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:g,...h}=this.options,x=mx(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=ux(a.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(pc(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Js(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ot(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ot(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Qe;const{animation:r}=n;pc(r,t)}return Qe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...p}=this.options,g=new la({...p,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=Mt(this.time);l.setWithVelocity(g.sample(h-Ps).value,g.sample(h).value,Ps)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return dx()&&r&&lx.has(r)&&!c&&!l&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const gx={type:"spring",stiffness:500,damping:25,restSpeed:10},yx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vx={type:"keyframes",duration:.8},xx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bx=(e,{keyframes:t})=>t.length>2?vx:wn.has(e)?e.startsWith("scale")?yx(t[1]):gx:xx;function wx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ua=(e,t,n,r={},s,i)=>o=>{const a=qo(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Mt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};wx(a)||(u={...u,...bx(e,u)}),u.duration&&(u.duration=Mt(u.duration)),u.repeatDelay&&(u.repeatDelay=Mt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Js(u.keyframes,a);if(f!==void 0)return ge.update(()=>{u.onUpdate(f),u.onComplete()}),new Qy([])}return!i&&Pc.supports(u)?new Pc(u):new la(u)};function _x({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ef(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=c[d];if(p===void 0||u&&_x(u,d))continue;const g={delay:n,...qo(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=bd(e);if(v){const b=window.MotionHandoffAnimation(v,d,ge);b!==null&&(g.startTime=b,h=!0)}}Ui(e,d),f.start(ua(d,f,p,e.shouldReduceMotion&&vd.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&l.push(x)}return a&&Promise.all(l).then(()=>{ge.update(()=>{a&&qy(e,a)})}),l}function Ji(e,t,n={}){var r;const s=Sr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(ef(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Sx(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Sx(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(Tx).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(Ji(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function Tx(e,t){return e.sortNodePosition(t)}function Ax(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Ji(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Ji(e,t,n);else{const s=typeof t=="function"?Sr(e,t,n.custom):t;r=Promise.all(ef(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tf(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Ax(e,n,r)))}function Rx(e){let t=kx(e),n=kc(),r=!0;const s=c=>(l,u)=>{var d;const f=Sr(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:g,...h}=f;l={...l,...h,...g}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=nf(e.parent)||{},d=[],f=new Set;let p={},g=1/0;for(let x=0;xg&&A,j=!1;const D=Array.isArray(S)?S:[S];let z=D.reduce(s(v),{});_===!1&&(z={});const{prevResolvedValues:R={}}=b,F={...R,...z},$=W=>{P=!0,f.has(W)&&(j=!0,f.delete(W)),b.needsAnimating[W]=!0;const U=e.getValue(W);U&&(U.liveStyle=!1)};for(const W in F){const U=z[W],Q=R[W];if(p.hasOwnProperty(W))continue;let ce=!1;zi(U)&&zi(Q)?ce=!tf(U,Q):ce=U!==Q,ce?U!=null?$(W):f.add(W):U!==void 0&&f.has(W)?$(W):b.protectedKeys[W]=!0}b.prevProp=S,b.prevResolvedValues=z,b.isActive&&(p={...p,...z}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(E&&C)||j)&&d.push(...D.map(W=>({animation:W,options:{type:v}})))}if(f.size){const x={};if(typeof l.initial!="boolean"){const v=Sr(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(x.transition=v.transition)}f.forEach(v=>{const b=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=kc(),r=!0}}}function Nx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tf(t,e):!1}function an(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kc(){return{animate:an(!0),whileInView:an(),whileHover:an(),whileTap:an(),whileDrag:an(),whileFocus:an(),exit:an()}}class nn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class jx extends nn{constructor(t){super(t),t.animationState||(t.animationState=Rx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ys(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Dx=0;class Mx extends nn{constructor(){super(...arguments),this.id=Dx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ox={animation:{Feature:jx},exit:{Feature:Mx}},at={x:!1,y:!1};function rf(){return at.x||at.y}function Vx(e){return e==="x"||e==="y"?at[e]?null:(at[e]=!0,()=>{at[e]=!1}):at.x||at.y?null:(at.x=at.y=!0,()=>{at.x=at.y=!1})}const da=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Kr(e){return{point:{x:e.pageX,y:e.pageY}}}const Lx=e=>t=>da(t)&&e(t,Kr(t));function hr(e,t,n,r){return Cr(e,t,Lx(n),r)}const Rc=(e,t)=>Math.abs(e-t);function Ix(e,t){const n=Rc(e.x,t.x),r=Rc(e.y,t.y);return Math.sqrt(n**2+r**2)}class sf{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=_i(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=Ix(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:g}=d,{timestamp:h}=je;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=wi(f,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_i(d.type==="pointercancel"?this.lastMoveEventInfo:wi(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),g&&g(d,x)},!da(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Kr(t),a=wi(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=je;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,_i(a,this.history)),this.removeListeners=Gr(hr(this.contextWindow,"pointermove",this.handlePointerMove),hr(this.contextWindow,"pointerup",this.handlePointerUp),hr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ht(this.updatePoint)}}function wi(e,t){return t?{point:t(e.point)}:e}function Nc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _i({point:e},t){return{point:e,delta:Nc(e,of(t)),offset:Nc(e,Fx(t)),velocity:Bx(t,.1)}}function Fx(e){return e[0]}function of(e){return e[e.length-1]}function Bx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=of(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Mt(t)));)n--;if(!r)return{x:0,y:0};const i=Ot(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const af=1e-4,$x=1-af,zx=1+af,cf=.01,Ux=0-cf,Wx=0+cf;function $e(e){return e.max-e.min}function Zx(e,t,n){return Math.abs(e-t)<=n}function jc(e,t,n,r=.5){e.origin=r,e.originPoint=xe(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=xe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$x&&e.scale<=zx||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ux&&e.translate<=Wx||isNaN(e.translate))&&(e.translate=0)}function mr(e,t,n,r){jc(e.x,t.x,n.x,r?r.originX:void 0),jc(e.y,t.y,n.y,r?r.originY:void 0)}function Dc(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function Hx(e,t,n){Dc(e.x,t.x,n.x),Dc(e.y,t.y,n.y)}function Mc(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function pr(e,t,n){Mc(e.x,t.x,n.x),Mc(e.y,t.y,n.y)}function Gx(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?xe(n,e,r.max):Math.min(e,n)),e}function Oc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Kx(e,{top:t,left:n,bottom:r,right:s}){return{x:Oc(e.x,n,s),y:Oc(e.y,t,r)}}function Vc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=In(t.min,t.max-r,e.min):r>s&&(n=In(e.min,e.max-s,t.min)),Vt(0,1,n)}function Xx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qi=.35;function Jx(e=Qi){return e===!1?e=0:e===!0&&(e=Qi),{x:Lc(e,"left","right"),y:Lc(e,"top","bottom")}}function Lc(e,t,n){return{min:Ic(e,t),max:Ic(e,n)}}function Ic(e,t){return typeof e=="number"?e:e[t]||0}const Fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),kn=()=>({x:Fc(),y:Fc()}),Bc=()=>({min:0,max:0}),Te=()=>({x:Bc(),y:Bc()});function st(e){return[e("x"),e("y")]}function lf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function eb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Si(e){return e===void 0||e===1}function eo({scale:e,scaleX:t,scaleY:n}){return!Si(e)||!Si(t)||!Si(n)}function cn(e){return eo(e)||uf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uf(e){return $c(e.x)||$c(e.y)}function $c(e){return e&&e!=="0%"}function ks(e,t,n){const r=e-n,s=t*r;return n+s}function zc(e,t,n,r,s){return s!==void 0&&(e=ks(e,s,r)),ks(e,n,r)+t}function to(e,t=0,n=1,r,s){e.min=zc(e.min,t,n,r,s),e.max=zc(e.max,t,n,r,s)}function df(e,{x:t,y:n}){to(e.x,t.translate,t.scale,t.originPoint),to(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Wc=1.0000000000001;function tb(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aUc&&(t.x=1),t.yUc&&(t.y=1)}function Rn(e,t){e.min=e.min+t,e.max=e.max+t}function Zc(e,t,n,r,s=.5){const i=xe(e.min,e.max,s);to(e,t,n,i,r)}function Nn(e,t){Zc(e.x,t.x,t.scaleX,t.scale,t.originX),Zc(e.y,t.y,t.scaleY,t.scale,t.originY)}function ff(e,t){return lf(eb(e.getBoundingClientRect(),t))}function nb(e,t,n){const r=ff(e,n),{scroll:s}=t;return s&&(Rn(r.x,s.offset.x),Rn(r.y,s.offset.y)),r}const hf=({current:e})=>e?e.ownerDocument.defaultView:null,rb=new WeakMap;class sb{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kr(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vx(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(x=>{let v=this.getAxisMotionValue(x).get()||0;if(_t.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[x];S&&(v=$e(S)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ge.postRender(()=>g(u,d)),Ui(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=ib(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>st(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new sf(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:hf(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ge.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!ds(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Gx(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&En(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Kx(s.layoutBox,n):this.constraints=!1,this.elastic=Jx(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Xx(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!En(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=nb(r,s.root,this.visualElement.getTransformPagePoint());let o=qx(s.layout.layoutBox,i);if(n){const a=n(Qx(o));this.hasMutatedConstraints=!!a,a&&(o=lf(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=st(u=>{if(!ds(u,n,this.currentDirection))return;let d=c&&c[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ui(this.visualElement,t),r.start(ua(t,r,0,n,this.visualElement,!1))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ds(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-xe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!En(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=Yx({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!ds(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(xe(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;rb.set(this.visualElement,this);const t=this.visualElement.current,n=hr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();En(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ge.read(r);const o=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(st(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Qi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ds(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ib(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ob extends nn{constructor(t){super(t),this.removeGroupControls=Qe,this.removeListeners=Qe,this.controls=new sb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hc=e=>(t,n)=>{e&&ge.postRender(()=>e(t,n))};class ab extends nn{constructor(){super(...arguments),this.removePointerDownListener=Qe}onPointerDown(t){this.session=new sf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Hc(t),onStart:Hc(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ge.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=hr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;const n=Gc(e,t.target.x),r=Gc(e,t.target.y);return`${n}% ${r}%`}},cb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Gt.parse(e);if(s.length>5)return r;const i=Gt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=c;const l=xe(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}};class lb extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;by(ub),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ge.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Io.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mf(e){const[t,n]=Xu(),r=y.useContext(No);return m.jsx(lb,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(id),isPresent:t,safeToRemove:n})}const ub={borderRadius:{...rr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rr,borderTopRightRadius:rr,borderBottomLeftRadius:rr,borderBottomRightRadius:rr,boxShadow:cb};function db(e,t,n){const r=Le(e)?e:Tr(e);return r.start(ua("",r,t,n)),r.animation}function fb(e){return e instanceof SVGElement&&e.tagName!=="svg"}const hb=(e,t)=>e.depth-t.depth;class mb{constructor(){this.children=[],this.isDirty=!1}add(t){Yo(this.children,t),this.isDirty=!0}remove(t){Xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hb),this.isDirty=!1,this.children.forEach(t)}}function pb(e,t){const n=St.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ht(r),e(i-t))};return ge.read(r,!0),()=>Ht(r)}const pf=["TopLeft","TopRight","BottomLeft","BottomRight"],gb=pf.length,Kc=e=>typeof e=="string"?parseFloat(e):e,qc=e=>typeof e=="number"||q.test(e);function yb(e,t,n,r,s,i){s?(e.opacity=xe(0,n.opacity!==void 0?n.opacity:1,vb(r)),e.opacityExit=xe(t.opacity!==void 0?t.opacity:1,0,xb(r))):i&&(e.opacity=xe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(In(e,t,r))}function Xc(e,t){e.min=t.min,e.max=t.max}function rt(e,t){Xc(e.x,t.x),Xc(e.y,t.y)}function Jc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Qc(e,t,n,r,s){return e-=t,e=ks(e,1/n,r),s!==void 0&&(e=ks(e,1/s,r)),e}function bb(e,t=0,n=1,r=.5,s,i=e,o=e){if(_t.test(t)&&(t=parseFloat(t),t=xe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=xe(i.min,i.max,r);e===i&&(a-=t),e.min=Qc(e.min,t,n,a,s),e.max=Qc(e.max,t,n,a,s)}function el(e,t,[n,r,s],i,o){bb(e,t[n],t[r],t[s],t.scale,i,o)}const wb=["x","scaleX","originX"],_b=["y","scaleY","originY"];function tl(e,t,n,r){el(e.x,t,wb,n?n.x:void 0,r?r.x:void 0),el(e.y,t,_b,n?n.y:void 0,r?r.y:void 0)}function nl(e){return e.translate===0&&e.scale===1}function yf(e){return nl(e.x)&&nl(e.y)}function rl(e,t){return e.min===t.min&&e.max===t.max}function Sb(e,t){return rl(e.x,t.x)&&rl(e.y,t.y)}function sl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vf(e,t){return sl(e.x,t.x)&&sl(e.y,t.y)}function il(e){return $e(e.x)/$e(e.y)}function ol(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Tb{constructor(){this.members=[]}add(t){Yo(this.members,t),t.scheduleRender()}remove(t){if(Xo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ab(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Ti=["","X","Y","Z"],Cb={visibility:"hidden"},al=1e3;let Eb=0;function Ai(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ge,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xf(r)}function bf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Eb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Rb),this.nodes.forEach(Ob),this.nodes.forEach(Vb),this.nodes.forEach(Nb)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=pb(f,250),xs.hasAnimatedSinceResize&&(xs.hasAnimatedSinceResize=!1,this.nodes.forEach(ll))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||$b,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!vf(this.targetLayout,g),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,S);const A={...qo(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||ll(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ht(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Lb),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$e(this.snapshot.measuredBox.x)&&!$e(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const _=A/1e3;ul(d.x,o.x,_),ul(d.y,o.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fb(this.relativeTarget,this.relativeTargetOrigin,f,_),S&&Sb(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Te()),rt(S,this.relativeTarget)),h&&(this.animationValues=u,yb(u,l,this.latestValues,_,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{xs.hasAnimatedSinceResize=!0,this.currentAnimation=db(0,al,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(al),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&wf(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Te();const d=$e(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=$e(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}rt(a,c),Nn(a,u),mr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Tb),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ai("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cl),this.root.sharedNodes.clear()}}}function Pb(e){e.updateLayout()}function kb(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=$e(f);f.min=r[d].min,f.max=f.min+p}):wf(i,n.layoutBox,r)&&st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=$e(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=kn();mr(a,r,n.layoutBox);const c=kn();o?mr(c,e.applyTransform(s,!0),n.measuredBox):mr(c,r,n.layoutBox);const l=!yf(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=Te();pr(g,n.layoutBox,f.layoutBox);const h=Te();pr(h,r,p.layoutBox),vf(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Rb(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Nb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jb(e){e.clearSnapshot()}function cl(e){e.clearMeasurements()}function Db(e){e.isLayoutDirty=!1}function Mb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ll(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ob(e){e.resolveTargetDelta()}function Vb(e){e.calcProjection()}function Lb(e){e.resetSkewAndRotation()}function Ib(e){e.removeLeadSnapshot()}function ul(e,t,n){e.translate=xe(t.translate,0,n),e.scale=xe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dl(e,t,n,r){e.min=xe(t.min,n.min,r),e.max=xe(t.max,n.max,r)}function Fb(e,t,n,r){dl(e.x,t.x,n.x,r),dl(e.y,t.y,n.y,r)}function Bb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $b={duration:.45,ease:[.4,0,.1,1]},fl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hl=fl("applewebkit/")&&!fl("chrome/")?Math.round:Qe;function ml(e){e.min=hl(e.min),e.max=hl(e.max)}function zb(e){ml(e.x),ml(e.y)}function wf(e,t,n){return e==="position"||e==="preserve-aspect"&&!Zx(il(t),il(n),.2)}function Ub(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Wb=bf({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ci={current:void 0},_f=bf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ci.current){const e=new Wb({});e.mount(window),e.setOptions({layoutScroll:!0}),Ci.current=e}return Ci.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Zb={pan:{Feature:ab},drag:{Feature:ob,ProjectionNode:_f,MeasureLayout:mf}};function Hb(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Sf(e,t){const n=Hb(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function pl(e){return!(e.pointerType==="touch"||rf())}function Gb(e,t,n={}){const[r,s,i]=Sf(e,n),o=a=>{if(!pl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{pl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function gl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ge.postRender(()=>i(t,Kr(t)))}class Kb extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=Gb(t,(n,r)=>(gl(this.node,r,"Start"),s=>gl(this.node,s,"End"))))}unmount(){}}class qb extends nn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gr(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tf=(e,t)=>t?e===t?!0:Tf(e,t.parentElement):!1,Yb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xb(e){return Yb.has(e.tagName)||e.tabIndex!==-1}const cr=new WeakSet;function yl(e){return t=>{t.key==="Enter"&&e(t)}}function Ei(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Jb=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yl(()=>{if(cr.has(n))return;Ei(n,"down");const s=yl(()=>{Ei(n,"up")}),i=()=>Ei(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function vl(e){return da(e)&&!rf()}function Qb(e,t,n={}){const[r,s,i]=Sf(e,n),o=a=>{const c=a.currentTarget;if(!vl(a)||cr.has(c))return;cr.add(c);const l=t(c,a),u=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!vl(p)||!cr.has(c))&&(cr.delete(c),typeof l=="function"&&l(p,{success:g}))},d=p=>{u(p,n.useGlobalTarget||Tf(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!Xb(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",l=>Jb(l,s),s)}),i}function xl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ge.postRender(()=>i(t,Kr(t)))}class ew extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=Qb(t,(n,r)=>(xl(this.node,r,"Start"),(s,{success:i})=>xl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const no=new WeakMap,Pi=new WeakMap,tw=e=>{const t=no.get(e.target);t&&t(e)},nw=e=>{e.forEach(tw)};function rw({root:e,...t}){const n=e||document;Pi.has(n)||Pi.set(n,{});const r=Pi.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(nw,{root:e,...t})),r[s]}function sw(e,t,n){const r=rw(t);return no.set(e,n),r.observe(e),()=>{no.delete(e),r.unobserve(e)}}const iw={some:0,all:1};class ow extends nn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:iw[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return sw(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(aw(t,n))&&this.startObserver()}unmount(){}}function aw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cw={inView:{Feature:ow},tap:{Feature:ew},focus:{Feature:qb},hover:{Feature:Kb}},lw={layout:{ProjectionNode:_f,MeasureLayout:mf}},ro={current:null},Af={current:!1};function uw(){if(Af.current=!0,!!Mo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ro.current=e.matches;e.addListener(t),t()}else ro.current=!1}const dw=[...Wd,Oe,Gt],fw=e=>dw.find(Ud(e)),hw=new WeakMap;function mw(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Le(s))e.addValue(r,s);else if(Le(i))e.addValue(r,Tr(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Tr(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=aa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=St.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Af.current||uw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ro.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ht(this.notifyUpdate),Ht(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=wn.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ln){const n=Ln[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&($d(s)||jd(s))?s=parseFloat(s):!fw(s)&&Gt.test(n)&&(s=Id(t,n)),this.setBaseTarget(t,Le(s)?s.get():s)),Le(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Go(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Le(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Cf extends pw{constructor(){super(...arguments),this.KeyframeResolver=Zd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gw(e){return window.getComputedStyle(e)}class yw extends Cf{constructor(){super(...arguments),this.type="html",this.renderInstance=md}readValueFromInstance(t,n){if(wn.has(n)){const r=oa(n);return r&&r.default||0}else{const r=gw(t),s=(Fo(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ff(t,n)}build(t,n,r){zo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ko(t,n,r)}}class vw extends Cf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&hd(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=oa(n);return r&&r.default||0}return n=pd.has(n)?n:Lo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yd(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ge.postRender(this.updateDimensions)}build(t,n,r){Zo(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){gd(t,n,r,s)}mount(t){this.isSVGTag=Ho(t.tagName),super.mount(t)}}const xw=(e,t)=>Wo(e)?new vw(t):new yw(t,{allowProjection:e!==y.Fragment}),bw=Wy({...Ox,...cw,...Zb,...lw},xw),bs=oy(bw);var ki,wl;function ww(){if(wl)return ki;wl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof ns=="object"&&ns&&ns.Object===Object&&ns,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(_,E,C){var P,j,D,z,R,F,$=0,J=!1,K=!1,W=!0;if(typeof _!="function")throw new TypeError(e);E=A(E)||0,v(C)&&(J=!!C.leading,K="maxWait"in C,D=K?p(A(C.maxWait)||0,E):D,W="trailing"in C?!!C.trailing:W);function U(ie){var ue=P,_e=j;return P=j=void 0,$=ie,z=_.apply(_e,ue),z}function Q(ie){return $=ie,R=setTimeout(De,E),J?U(ie):z}function ce(ie){var ue=ie-F,_e=ie-$,Pe=E-ue;return K?g(Pe,D-_e):Pe}function le(ie){var ue=ie-F,_e=ie-$;return F===void 0||ue>=E||ue<0||K&&_e>=D}function De(){var ie=h();if(le(ie))return qe(ie);R=setTimeout(De,ce(ie))}function qe(ie){return R=void 0,W&&P?U(ie):(P=j=void 0,z)}function Me(){R!==void 0&&clearTimeout(R),$=0,P=F=j=R=void 0}function ot(){return R===void 0?z:qe(h())}function Fe(){var ie=h(),ue=le(ie);if(P=arguments,j=this,F=ie,ue){if(R===void 0)return Q(F);if(K)return R=setTimeout(De,E),U(F)}return R===void 0&&(R=setTimeout(De,E)),z}return Fe.cancel=Me,Fe.flush=ot,Fe}function v(_){var E=typeof _;return!!_&&(E=="object"||E=="function")}function b(_){return!!_&&typeof _=="object"}function S(_){return typeof _=="symbol"||b(_)&&f.call(_)==n}function A(_){if(typeof _=="number")return _;if(S(_))return t;if(v(_)){var E=typeof _.valueOf=="function"?_.valueOf():_;_=v(E)?E+"":E}if(typeof _!="string")return _===0?_:+_;_=_.replace(r,"");var C=i.test(_);return C||o.test(_)?a(_.slice(2),C?2:8):s.test(_)?t:+_}return ki=x,ki}ww();var _w=typeof window<"u"?y.useLayoutEffect:y.useEffect,Sw=typeof window>"u";function so(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>Sw?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return _w(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const VT=({className:e,stage:t})=>{const n=so("(min-width: 768px");return m.jsx("div",{className:e,children:m.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:m.jsxs("div",{className:"relative h-14 w-full",children:[m.jsx("div",{className:ee("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),m.jsx(bs.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:ee("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),m.jsx(bs.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:ee("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),m.jsx(bs.div,{className:ee("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),m.jsx("div",{className:ee("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),m.jsx("div",{className:ee("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var qr=e=>e.type==="checkbox",un=e=>e instanceof Date,Be=e=>e==null;const Ef=e=>typeof e=="object";var Ee=e=>!Be(e)&&!Array.isArray(e)&&Ef(e)&&!un(e),Pf=e=>Ee(e)&&e.target?qr(e.target)?e.target.checked:e.target.value:e,Tw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,kf=(e,t)=>e.has(Tw(t)),Aw=e=>{const t=e.constructor&&e.constructor.prototype;return Ee(t)&&t.hasOwnProperty("isPrototypeOf")},fa=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ze(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(fa&&(e instanceof Blob||r))&&(n||Ee(e)))if(t=n?[]:{},!n&&!Aw(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ze(e[s]));else return e;return t}var Qs=e=>Array.isArray(e)?e.filter(Boolean):[],Ae=e=>e===void 0,V=(e,t,n)=>{if(!t||!Ee(e))return n;const r=Qs(t.split(/[,[\].]+?/)).reduce((s,i)=>Be(s)?s:s[i],e);return Ae(r)||r===e?Ae(e[t])?n:e[t]:r},it=e=>typeof e=="boolean",ha=e=>/^\w*$/.test(e),Rf=e=>Qs(e.replace(/["|']|\]/g,"").split(/\.|\[/)),fe=(e,t,n)=>{let r=-1;const s=ha(t)?[t]:Rf(t),i=s.length,o=i-1;for(;++rde.useContext(Nf),Cw=e=>{const{children:t,...n}=e;return de.createElement(Nf.Provider,{value:n},t)};var jf=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==ct.all&&(t._proxyFormState[o]=!r||ct.all),n&&(n[o]=!0),e[o]}});return s},He=e=>Ee(e)&&!Object.keys(e).length,Df=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return He(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||ct.all))},gr=e=>Array.isArray(e)?e:[e],Mf=(e,t,n)=>!e||!t||e===t||gr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ma(e){const t=de.useRef(e);t.current=e,de.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Ew(e){const t=ei(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=de.useState(n._formState),c=de.useRef(!0),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=de.useRef(s);return u.current=s,ma({disabled:r,next:d=>c.current&&Mf(u.current,d.name,i)&&Df(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),de.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),de.useMemo(()=>jf(o,n,l.current,!1),[o,n])}var wt=e=>typeof e=="string",Of=(e,t,n,r,s)=>wt(e)?(r&&t.watch.add(e),V(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),V(n,i))):(r&&(t.watchAll=!0),n);function Pw(e){const t=ei(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=de.useRef(r);a.current=r,ma({disabled:i,subject:n._subjects.values,next:u=>{Mf(a.current,u.name,o)&&l(Ze(Of(a.current,n._names,u.values||n._formValues,!1,s)))}});const[c,l]=de.useState(n._getWatch(r,s));return de.useEffect(()=>n._removeUnmounted()),c}function kw(e){const t=ei(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=kf(s._names.array,n),a=Pw({control:s,name:n,defaultValue:V(s._formValues,n,V(s._defaultValues,n,e.defaultValue)),exact:!0}),c=Ew({control:s,name:n,exact:!0}),l=de.useRef(s.register(n,{...e.rules,value:a,...it(e.disabled)?{disabled:e.disabled}:{}})),u=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!V(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!V(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!V(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!V(c.validatingFields,n)},error:{enumerable:!0,get:()=>V(c.errors,n)}}),[c,n]),d=de.useMemo(()=>({name:n,value:a,...it(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:f=>l.current.onChange({target:{value:Pf(f),name:n},type:Rs.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:V(s._formValues,n),name:n},type:Rs.BLUR}),ref:f=>{const p=V(s._fields,n);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,c.disabled,a,s._fields]);return de.useEffect(()=>{const f=s._options.shouldUnregister||i,p=(g,h)=>{const x=V(s._fields,g);x&&x._f&&(x._f.mount=h)};if(p(n,!0),f){const g=Ze(V(s._options.defaultValues,n));fe(s._defaultValues,n,g),Ae(V(s._formValues,n))&&fe(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):p(n,!1)}},[n,s,o,i]),de.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const Rw=e=>e.render(kw(e));var Vf=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},_l=e=>({isOnSubmit:!e||e===ct.onSubmit,isOnBlur:e===ct.onBlur,isOnChange:e===ct.onChange,isOnAll:e===ct.all,isOnTouch:e===ct.onTouched}),Sl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const yr=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=V(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(yr(a,t))break}else if(Ee(a)&&yr(a,t))break}}};var Nw=(e,t,n)=>{const r=gr(V(e,n));return fe(r,"root",t[n]),fe(e,n,r),e},pa=e=>e.type==="file",bt=e=>typeof e=="function",Ns=e=>{if(!fa)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ws=e=>wt(e),ga=e=>e.type==="radio",js=e=>e instanceof RegExp;const Tl={value:!1,isValid:!1},Al={value:!0,isValid:!0};var Lf=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ae(e[0].attributes.value)?Ae(e[0].value)||e[0].value===""?Al:{value:e[0].value,isValid:!0}:Al:Tl}return Tl};const Cl={isValid:!1,value:null};var If=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Cl):Cl;function El(e,t,n="validate"){if(ws(e)||Array.isArray(e)&&e.every(ws)||it(e)&&!e)return{type:n,message:ws(e)?e:"",ref:t}}var An=e=>Ee(e)&&!js(e)?e:{value:e,message:""},Pl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=V(n,h);if(!v||t.has(h))return{};const S=a?a[0]:o,A=R=>{s&&S.reportValidity&&(S.setCustomValidity(it(R)?"":R||""),S.reportValidity())},_={},E=ga(o),C=qr(o),P=E||C,j=(x||pa(o))&&Ae(o.value)&&Ae(b)||Ns(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=Vf.bind(null,h,r,_),z=(R,F,$,J=Nt.maxLength,K=Nt.minLength)=>{const W=R?F:$;_[h]={type:R?J:K,message:W,ref:o,...D(R?J:K,W)}};if(i?!Array.isArray(b)||!b.length:c&&(!P&&(j||Be(b))||it(b)&&!b||C&&!Lf(a).isValid||E&&!If(a).isValid)){const{value:R,message:F}=ws(c)?{value:!!c,message:c}:An(c);if(R&&(_[h]={type:Nt.required,message:F,ref:S,...D(Nt.required,F)},!r))return A(F),_}if(!j&&(!Be(d)||!Be(f))){let R,F;const $=An(f),J=An(d);if(!Be(b)&&!isNaN(b)){const K=o.valueAsNumber||b&&+b;Be($.value)||(R=K>$.value),Be(J.value)||(F=Knew Date(new Date().toDateString()+" "+ce),U=o.type=="time",Q=o.type=="week";wt($.value)&&b&&(R=U?W(b)>W($.value):Q?b>$.value:K>new Date($.value)),wt(J.value)&&b&&(F=U?W(b)+R.value,J=!Be(F.value)&&b.length<+F.value;if(($||J)&&(z($,R.message,F.message),!r))return A(_[h].message),_}if(p&&!j&&wt(b)){const{value:R,message:F}=An(p);if(js(R)&&!b.match(R)&&(_[h]={type:Nt.pattern,message:F,ref:o,...D(Nt.pattern,F)},!r))return A(F),_}if(g){if(bt(g)){const R=await g(b,n),F=El(R,S);if(F&&(_[h]={...F,...D(Nt.validate,F.message)},!r))return A(F.message),_}else if(Ee(g)){let R={};for(const F in g){if(!He(R)&&!r)break;const $=El(await g[F](b,n),S,F);$&&(R={...$,...D(F,$.message)},A($.message),r&&(_[h]=R))}if(!He(R)&&(_[h]={ref:S,...R},!r))return _}}return A(!0),_};function jw(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},io=e=>Be(e)||!Ef(e);function Wt(e,t){if(io(e)||io(t))return e===t;if(un(e)&&un(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(un(i)&&un(o)||Ee(i)&&Ee(o)||Array.isArray(i)&&Array.isArray(o)?!Wt(i,o):i!==o)return!1}}return!0}var Ff=e=>e.type==="select-multiple",Mw=e=>ga(e)||qr(e),Ni=e=>Ns(e)&&e.isConnected,Bf=e=>{for(const t in e)if(bt(e[t]))return!0;return!1};function Ds(e,t={}){const n=Array.isArray(e);if(Ee(e)||n)for(const r in e)Array.isArray(e[r])||Ee(e[r])&&!Bf(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ds(e[r],t[r])):Be(e[r])||(t[r]=!0);return t}function $f(e,t,n){const r=Array.isArray(e);if(Ee(e)||r)for(const s in e)Array.isArray(e[s])||Ee(e[s])&&!Bf(e[s])?Ae(t)||io(n[s])?n[s]=Array.isArray(e[s])?Ds(e[s],[]):{...Ds(e[s])}:$f(e[s],Be(t)?{}:t[s],n[s]):n[s]=!Wt(e[s],t[s]);return n}var sr=(e,t)=>$f(e,t,Ds(t)),zf=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ae(e)?e:t?e===""?NaN:e&&+e:n&&wt(e)?new Date(e):r?r(e):e;function ji(e){const t=e.ref;return pa(t)?t.files:ga(t)?If(e.refs).value:Ff(t)?[...t.selectedOptions].map(({value:n})=>n):qr(t)?Lf(e.refs).value:zf(Ae(t.value)?e.ref.value:t.value,e)}var Ow=(e,t,n,r)=>{const s={};for(const i of e){const o=V(t,i);o&&fe(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},ir=e=>Ae(e)?e:js(e)?e.source:Ee(e)?js(e.value)?e.value.source:e.value:e;const kl="AsyncFunction";var Vw=e=>!!e&&!!e.validate&&!!(bt(e.validate)&&e.validate.constructor.name===kl||Ee(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===kl)),Lw=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Rl(e,t,n){const r=V(e,n);if(r||ha(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=V(t,i),a=V(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Iw=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Fw=(e,t)=>!Qs(V(e,t)).length&&Re(e,t);const Bw={mode:ct.onSubmit,reValidateMode:ct.onChange,shouldFocusError:!0};function $w(e={}){let t={...Bw,...e},n={submitCount:0,isDirty:!1,isLoading:bt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ee(t.defaultValues)||Ee(t.values)?Ze(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ze(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ri(),array:Ri(),state:Ri()},f=_l(t.mode),p=_l(t.reValidateMode),g=t.criteriaMode===ct.all,h=w=>T=>{clearTimeout(l),l=setTimeout(w,T)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const T=t.resolver?He((await P()).errors):await D(r,!0);T!==n.isValid&&d.state.next({isValid:T})}},v=(w,T)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(k=>{k&&(T?fe(n.validatingFields,k,T):Re(n.validatingFields,k))}),d.state.next({validatingFields:n.validatingFields,isValidating:!He(n.validatingFields)}))},b=(w,T=[],k,L,O=!0,M=!0)=>{if(L&&k&&!t.disabled){if(o.action=!0,M&&Array.isArray(V(r,w))){const G=k(V(r,w),L.argA,L.argB);O&&fe(r,w,G)}if(M&&Array.isArray(V(n.errors,w))){const G=k(V(n.errors,w),L.argA,L.argB);O&&fe(n.errors,w,G),Fw(n.errors,w)}if(u.touchedFields&&M&&Array.isArray(V(n.touchedFields,w))){const G=k(V(n.touchedFields,w),L.argA,L.argB);O&&fe(n.touchedFields,w,G)}u.dirtyFields&&(n.dirtyFields=sr(s,i)),d.state.next({name:w,isDirty:R(w,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else fe(i,w,T)},S=(w,T)=>{fe(n.errors,w,T),d.state.next({errors:n.errors})},A=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},_=(w,T,k,L)=>{const O=V(r,w);if(O){const M=V(i,w,Ae(k)?V(s,w):k);Ae(M)||L&&L.defaultChecked||T?fe(i,w,T?M:ji(O._f)):J(w,M),o.mount&&x()}},E=(w,T,k,L,O)=>{let M=!1,G=!1;const ne={name:w};if(!t.disabled){const ke=!!(V(r,w)&&V(r,w)._f&&V(r,w)._f.disabled);if(!k||L){u.isDirty&&(G=n.isDirty,n.isDirty=ne.isDirty=R(),M=G!==ne.isDirty);const Se=ke||Wt(V(s,w),T);G=!!(!ke&&V(n.dirtyFields,w)),Se||ke?Re(n.dirtyFields,w):fe(n.dirtyFields,w,!0),ne.dirtyFields=n.dirtyFields,M=M||u.dirtyFields&&G!==!Se}if(k){const Se=V(n.touchedFields,w);Se||(fe(n.touchedFields,w,k),ne.touchedFields=n.touchedFields,M=M||u.touchedFields&&Se!==k)}M&&O&&d.state.next(ne)}return M?ne:{}},C=(w,T,k,L)=>{const O=V(n.errors,w),M=u.isValid&&it(T)&&n.isValid!==T;if(t.delayError&&k?(c=h(()=>S(w,k)),c(t.delayError)):(clearTimeout(l),c=null,k?fe(n.errors,w,k):Re(n.errors,w)),(k?!Wt(O,k):O)||!He(L)||M){const G={...L,...M&&it(T)?{isValid:T}:{},errors:n.errors,name:w};n={...n,...G},d.state.next(G)}},P=async w=>{v(w,!0);const T=await t.resolver(i,t.context,Ow(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),T},j=async w=>{const{errors:T}=await P(w);if(w)for(const k of w){const L=V(T,k);L?fe(n.errors,k,L):Re(n.errors,k)}else n.errors=T;return T},D=async(w,T,k={valid:!0})=>{for(const L in w){const O=w[L];if(O){const{_f:M,...G}=O;if(M){const ne=a.array.has(M.name),ke=O._f&&Vw(O._f);ke&&u.validatingFields&&v([L],!0);const Se=await Pl(O,a.disabled,i,g,t.shouldUseNativeValidation&&!T,ne);if(ke&&u.validatingFields&&v([L]),Se[M.name]&&(k.valid=!1,T))break;!T&&(V(Se,M.name)?ne?Nw(n.errors,Se,M.name):fe(n.errors,M.name,Se[M.name]):Re(n.errors,M.name))}!He(G)&&await D(G,T,k)}}return k.valid},z=()=>{for(const w of a.unMount){const T=V(r,w);T&&(T._f.refs?T._f.refs.every(k=>!Ni(k)):!Ni(T._f.ref))&&Fe(w)}a.unMount=new Set},R=(w,T)=>!t.disabled&&(w&&T&&fe(i,w,T),!Wt(le(),s)),F=(w,T,k)=>Of(w,a,{...o.mount?i:Ae(T)?s:wt(w)?{[w]:T}:T},k,T),$=w=>Qs(V(o.mount?i:s,w,t.shouldUnregister?V(s,w,[]):[])),J=(w,T,k={})=>{const L=V(r,w);let O=T;if(L){const M=L._f;M&&(!M.disabled&&fe(i,w,zf(T,M)),O=Ns(M.ref)&&Be(T)?"":T,Ff(M.ref)?[...M.ref.options].forEach(G=>G.selected=O.includes(G.value)):M.refs?qr(M.ref)?M.refs.length>1?M.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(O)?!!O.find(ne=>ne===G.value):O===G.value)):M.refs[0]&&(M.refs[0].checked=!!O):M.refs.forEach(G=>G.checked=G.value===O):pa(M.ref)?M.ref.value="":(M.ref.value=O,M.ref.type||d.values.next({name:w,values:{...i}})))}(k.shouldDirty||k.shouldTouch)&&E(w,O,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&ce(w)},K=(w,T,k)=>{for(const L in T){const O=T[L],M=`${w}.${L}`,G=V(r,M);(a.array.has(w)||Ee(O)||G&&!G._f)&&!un(O)?K(M,O,k):J(M,O,k)}},W=(w,T,k={})=>{const L=V(r,w),O=a.array.has(w),M=Ze(T);fe(i,w,M),O?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&k.shouldDirty&&d.state.next({name:w,dirtyFields:sr(s,i),isDirty:R(w,M)})):L&&!L._f&&!Be(M)?K(w,M,k):J(w,M,k),Sl(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},U=async w=>{o.mount=!0;const T=w.target;let k=T.name,L=!0;const O=V(r,k),M=()=>T.type?ji(O._f):Pf(w),G=ne=>{L=Number.isNaN(ne)||un(ne)&&isNaN(ne.getTime())||Wt(ne,V(i,k,ne))};if(O){let ne,ke;const Se=M(),yt=w.type===Rs.BLUR||w.type===Rs.FOCUS_OUT,Jn=!Lw(O._f)&&!t.resolver&&!V(n.errors,k)&&!O._f.deps||Iw(yt,V(n.touchedFields,k),n.isSubmitted,p,f),vt=Sl(k,a,yt);fe(i,k,Se),yt?(O._f.onBlur&&O._f.onBlur(w),c&&c(0)):O._f.onChange&&O._f.onChange(w);const sn=E(k,Se,yt,!1),Qn=!He(sn)||vt;if(!yt&&d.values.next({name:k,type:w.type,values:{...i}}),Jn)return u.isValid&&(t.mode==="onBlur"&&yt?x():yt||x()),Qn&&d.state.next({name:k,...vt?{}:sn});if(!yt&&vt&&d.state.next({...n}),t.resolver){const{errors:on}=await P([k]);if(G(Se),L){const ai=Rl(n.errors,r,k),ts=Rl(on,r,ai.name||k);ne=ts.error,k=ts.name,ke=He(on)}}else v([k],!0),ne=(await Pl(O,a.disabled,i,g,t.shouldUseNativeValidation))[k],v([k]),G(Se),L&&(ne?ke=!1:u.isValid&&(ke=await D(r,!0)));L&&(O._f.deps&&ce(O._f.deps),C(k,ke,ne,sn))}},Q=(w,T)=>{if(V(n.errors,T)&&w.focus)return w.focus(),1},ce=async(w,T={})=>{let k,L;const O=gr(w);if(t.resolver){const M=await j(Ae(w)?w:O);k=He(M),L=w?!O.some(G=>V(M,G)):k}else w?(L=(await Promise.all(O.map(async M=>{const G=V(r,M);return await D(G&&G._f?{[M]:G}:G)}))).every(Boolean),!(!L&&!n.isValid)&&x()):L=k=await D(r);return d.state.next({...!wt(w)||u.isValid&&k!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:k}:{},errors:n.errors}),T.shouldFocus&&!L&&yr(r,Q,w?O:a.mount),L},le=w=>{const T={...o.mount?i:s};return Ae(w)?T:wt(w)?V(T,w):w.map(k=>V(T,k))},De=(w,T)=>({invalid:!!V((T||n).errors,w),isDirty:!!V((T||n).dirtyFields,w),error:V((T||n).errors,w),isValidating:!!V(n.validatingFields,w),isTouched:!!V((T||n).touchedFields,w)}),qe=w=>{w&&gr(w).forEach(T=>Re(n.errors,T)),d.state.next({errors:w?n.errors:{}})},Me=(w,T,k)=>{const L=(V(r,w,{_f:{}})._f||{}).ref,O=V(n.errors,w)||{},{ref:M,message:G,type:ne,...ke}=O;fe(n.errors,w,{...ke,...T,ref:L}),d.state.next({name:w,errors:n.errors,isValid:!1}),k&&k.shouldFocus&&L&&L.focus&&L.focus()},ot=(w,T)=>bt(w)?d.values.subscribe({next:k=>w(F(void 0,T),k)}):F(w,T,!0),Fe=(w,T={})=>{for(const k of w?gr(w):a.mount)a.mount.delete(k),a.array.delete(k),T.keepValue||(Re(r,k),Re(i,k)),!T.keepError&&Re(n.errors,k),!T.keepDirty&&Re(n.dirtyFields,k),!T.keepTouched&&Re(n.touchedFields,k),!T.keepIsValidating&&Re(n.validatingFields,k),!t.shouldUnregister&&!T.keepDefaultValue&&Re(s,k);d.values.next({values:{...i}}),d.state.next({...n,...T.keepDirty?{isDirty:R()}:{}}),!T.keepIsValid&&x()},ie=({disabled:w,name:T,field:k,fields:L})=>{(it(w)&&o.mount||w||a.disabled.has(T))&&(w?a.disabled.add(T):a.disabled.delete(T),E(T,ji(k?k._f:V(L,T)._f),!1,!1,!0))},ue=(w,T={})=>{let k=V(r,w);const L=it(T.disabled)||it(t.disabled);return fe(r,w,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:w}},name:w,mount:!0,...T}}),a.mount.add(w),k?ie({field:k,disabled:it(T.disabled)?T.disabled:t.disabled,name:w}):_(w,!0,T.value),{...L?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:ir(T.min),max:ir(T.max),minLength:ir(T.minLength),maxLength:ir(T.maxLength),pattern:ir(T.pattern)}:{},name:w,onChange:U,onBlur:U,ref:O=>{if(O){ue(w,T),k=V(r,w);const M=Ae(O.value)&&O.querySelectorAll&&O.querySelectorAll("input,select,textarea")[0]||O,G=Mw(M),ne=k._f.refs||[];if(G?ne.find(ke=>ke===M):M===k._f.ref)return;fe(r,w,{_f:{...k._f,...G?{refs:[...ne.filter(Ni),M,...Array.isArray(V(s,w))?[{}]:[]],ref:{type:M.type,name:w}}:{ref:M}}}),_(w,!1,void 0,M)}else k=V(r,w,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(kf(a.array,w)&&o.action)&&a.unMount.add(w)}}},_e=()=>t.shouldFocusError&&yr(r,Q,a.mount),Pe=w=>{it(w)&&(d.state.next({disabled:w}),yr(r,(T,k)=>{const L=V(r,k);L&&(T.disabled=L._f.disabled||w,Array.isArray(L._f.refs)&&L._f.refs.forEach(O=>{O.disabled=L._f.disabled||w}))},0,!1))},he=(w,T)=>async k=>{let L;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let O=Ze(i);if(a.disabled.size)for(const M of a.disabled)fe(O,M,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:M,values:G}=await P();n.errors=M,O=G}else await D(r);if(Re(n.errors,"root"),He(n.errors)){d.state.next({errors:{}});try{await w(O,k)}catch(M){L=M}}else T&&await T({...n.errors},k),_e(),setTimeout(_e);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:He(n.errors)&&!L,submitCount:n.submitCount+1,errors:n.errors}),L)throw L},Z=(w,T={})=>{V(r,w)&&(Ae(T.defaultValue)?W(w,Ze(V(s,w))):(W(w,T.defaultValue),fe(s,w,Ze(T.defaultValue))),T.keepTouched||Re(n.touchedFields,w),T.keepDirty||(Re(n.dirtyFields,w),n.isDirty=T.defaultValue?R(w,Ze(V(s,w))):R()),T.keepError||(Re(n.errors,w),u.isValid&&x()),d.state.next({...n}))},oe=(w,T={})=>{const k=w?Ze(w):s,L=Ze(k),O=He(w),M=O?s:L;if(T.keepDefaultValues||(s=k),!T.keepValues){if(T.keepDirtyValues){const G=new Set([...a.mount,...Object.keys(sr(s,i))]);for(const ne of Array.from(G))V(n.dirtyFields,ne)?fe(M,ne,V(i,ne)):W(ne,V(M,ne))}else{if(fa&&Ae(w))for(const G of a.mount){const ne=V(r,G);if(ne&&ne._f){const ke=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Ns(ke)){const Se=ke.closest("form");if(Se){Se.reset();break}}}}r={}}i=t.shouldUnregister?T.keepDefaultValues?Ze(s):{}:Ze(M),d.array.next({values:{...M}}),d.values.next({values:{...M}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:O?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!Wt(w,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:O?{}:T.keepDirtyValues?T.keepDefaultValues&&i?sr(s,i):n.dirtyFields:T.keepDefaultValues&&w?sr(s,w):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},me=(w,T)=>oe(bt(w)?w(i):w,T);return{control:{register:ue,unregister:Fe,getFieldState:De,handleSubmit:he,setError:Me,_executeSchema:P,_getWatch:F,_getDirty:R,_updateValid:x,_removeUnmounted:z,_updateFieldArray:b,_updateDisabledField:ie,_getFieldArray:$,_reset:oe,_resetDefaultValues:()=>bt(t.defaultValues)&&t.defaultValues().then(w=>{me(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:Pe,_subjects:d,_proxyFormState:u,_setErrors:A,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:ce,register:ue,handleSubmit:he,watch:ot,setValue:W,getValues:le,reset:me,resetField:Z,clearErrors:qe,unregister:Fe,setError:Me,setFocus:(w,T={})=>{const k=V(r,w),L=k&&k._f;if(L){const O=L.refs?L.refs[0]:L.ref;O.focus&&(O.focus(),T.shouldSelect&&bt(O.select)&&O.select())}},getFieldState:De}}function zw(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[r,s]=de.useState({isDirty:!1,isValidating:!1,isLoading:bt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:bt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$w(e),formState:r});const i=t.current.control;return i._options=e,ma({subject:i._subjects.state,next:o=>{Df(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),de.useEffect(()=>{e.values&&!Wt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),de.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),de.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),de.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=jf(r,i),t.current}var Uw="Label",Uf=y.forwardRef((e,t)=>m.jsx(We.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Uf.displayName=Uw;var Wf=Uf;const Ww=ko("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zf=y.forwardRef(({className:e,...t},n)=>m.jsx(Wf,{ref:n,className:ee(Ww(),e),...t}));Zf.displayName=Wf.displayName;const LT=Cw,Hf=y.createContext({}),Zw=({...e})=>m.jsx(Hf.Provider,{value:{name:e.name},children:m.jsx(Rw,{...e})}),ti=()=>{const e=y.useContext(Hf),t=y.useContext(Gf),{getFieldState:n,formState:r}=ei(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Gf=y.createContext({}),Kf=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return m.jsx(Gf.Provider,{value:{id:r},children:m.jsx("div",{ref:n,className:ee("space-y-2",e),...t})})});Kf.displayName="FormItem";const qf=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=ti();return m.jsx(Zf,{ref:n,className:ee(r&&"text-destructive",e),htmlFor:s,...t})});qf.displayName="FormLabel";const Yf=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=ti();return m.jsx(Zn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});Yf.displayName="FormControl";const Hw=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=ti();return m.jsx("p",{ref:n,id:r,className:ee("text-[0.8rem] text-muted-foreground",e),...t})});Hw.displayName="FormDescription";const Xf=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=ti(),o=s?String(s==null?void 0:s.message):t;return o?m.jsx("p",{ref:r,id:i,className:ee("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Xf.displayName="FormMessage";const oo=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?m.jsx("input",{type:t,className:ee("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):m.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[m.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:ee("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),m.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[m.jsx(Kp,{className:"cursor-pointer",size:16})," Upload file"]})]}));oo.displayName="Input";const Jf=y.forwardRef(({className:e,...t},n)=>m.jsx("textarea",{className:ee("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Jf.displayName="Textarea";const IT=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>m.jsx(Zw,{control:e,name:t,render:({field:p})=>m.jsxs(Kf,{className:ee(o,"flex flex-col w-full relative"),children:[m.jsx(qf,{className:ee("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),m.jsx(Yf,{children:m.jsx(m.Fragment,{children:c?m.jsx(Jf,{rows:3,...p,placeholder:r,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?m.jsx(oo,{...p,type:i,placeholder:r,disabled:a,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):m.jsxs("div",{className:"relative",children:[m.jsx(oo,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),p.onChange(h),d&&d(g)},disabled:a}),p.value&&m.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",p.value.name]})]})})}),m.jsx(Xf,{className:ee("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),FT=({className:e,delay:t=.15})=>m.jsxs(bs.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:ee("flex flex-col gap-8 my-16",e),children:[m.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),m.jsx(Ce,{className:"w-fit mx-auto",to:"/",children:m.jsx(Ge,{variant:"outline",children:"Вернуться на главную"})})]}),Gw=({className:e,slides:t,active:n,scrollTo:r})=>m.jsx("div",{className:ee("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>m.jsx("span",{onClick:()=>r==null?void 0:r(i),className:ee(n===i?"dot-active":"dot")},i))}),Kw=["top","right","bottom","left"],Kt=Math.min,Xe=Math.max,Ms=Math.round,fs=Math.floor,Tt=e=>({x:e,y:e}),qw={left:"right",right:"left",bottom:"top",top:"bottom"},Yw={start:"end",end:"start"};function ao(e,t,n){return Xe(e,Kt(t,n))}function Lt(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function Yn(e){return e.split("-")[1]}function ya(e){return e==="x"?"y":"x"}function va(e){return e==="y"?"height":"width"}function qt(e){return["top","bottom"].includes(It(e))?"y":"x"}function xa(e){return ya(qt(e))}function Xw(e,t,n){n===void 0&&(n=!1);const r=Yn(e),s=xa(e),i=va(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Os(o)),[o,Os(o)]}function Jw(e){const t=Os(e);return[co(e),t,co(t)]}function co(e){return e.replace(/start|end/g,t=>Yw[t])}function Qw(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function e0(e,t,n,r){const s=Yn(e);let i=Qw(It(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(co)))),i}function Os(e){return e.replace(/left|right|bottom|top/g,t=>qw[t])}function t0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qf(e){return typeof e!="number"?t0(e):{top:e,right:e,bottom:e,left:e}}function Vs(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Nl(e,t,n){let{reference:r,floating:s}=e;const i=qt(t),o=xa(t),a=va(o),c=It(t),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Yn(t)){case"start":p[o]-=f*(n&&l?-1:1);break;case"end":p[o]+=f*(n&&l?-1:1);break}return p}const n0=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Nl(l,r,c),f=r,p={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Lt(e,t)||{};if(l==null)return{};const d=Qf(u),f={x:n,y:r},p=xa(s),g=va(p),h=await o.getDimensions(l),x=p==="y",v=x?"top":"left",b=x?"bottom":"right",S=x?"clientHeight":"clientWidth",A=i.reference[g]+i.reference[p]-f[p]-i.floating[g],_=f[p]-i.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let C=E?E[S]:0;(!C||!await(o.isElement==null?void 0:o.isElement(E)))&&(C=a.floating[S]||i.floating[g]);const P=A/2-_/2,j=C/2-h[g]/2-1,D=Kt(d[v],j),z=Kt(d[b],j),R=D,F=C-h[g]-z,$=C/2-h[g]/2+P,J=ao(R,$,F),K=!c.arrow&&Yn(s)!=null&&$!==J&&i.reference[g]/2-($$<=0)){var z,R;const $=(((z=i.flip)==null?void 0:z.index)||0)+1,J=C[$];if(J)return{data:{index:$,overflows:D},reset:{placement:J}};let K=(R=D.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:R.placement;if(!K)switch(p){case"bestFit":{var F;const W=(F=D.filter(U=>{if(E){const Q=qt(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,ce)=>Q+ce,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:F[0];W&&(K=W);break}case"initialPlacement":K=a;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function jl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dl(e){return Kw.some(t=>e[t]>=0)}const i0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Lt(e,t);switch(r){case"referenceHidden":{const i=await Er(t,{...s,elementContext:"reference"}),o=jl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Dl(o)}}}case"escaped":{const i=await Er(t,{...s,altBoundary:!0}),o=jl(i,n.floating);return{data:{escapedOffsets:o,escaped:Dl(o)}}}default:return{}}}}};async function o0(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=It(n),a=Yn(n),c=qt(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Lt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const a0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await o0(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},c0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...c}=Lt(e,t),l={x:n,y:r},u=await Er(t,c),d=qt(It(s)),f=ya(d);let p=l[f],g=l[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=p+u[x],S=p-u[v];p=ao(b,p,S)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],S=g-u[v];g=ao(b,g,S)}const h=a.fn({...t,[f]:p,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},l0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Lt(e,t),u={x:n,y:r},d=qt(s),f=ya(d);let p=u[f],g=u[d];const h=Lt(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const S=f==="y"?"height":"width",A=i.reference[f]-i.floating[S]+x.mainAxis,_=i.reference[f]+i.reference[S]-x.mainAxis;p_&&(p=_)}if(l){var v,b;const S=f==="y"?"width":"height",A=["top","left"].includes(It(s)),_=i.reference[d]-i.floating[S]+(A&&((v=o.offset)==null?void 0:v[d])||0)+(A?0:x.crossAxis),E=i.reference[d]+i.reference[S]+(A?0:((b=o.offset)==null?void 0:b[d])||0)-(A?x.crossAxis:0);g<_?g=_:g>E&&(g=E)}return{[f]:p,[d]:g}}}},u0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Lt(e,t),u=await Er(t,l),d=It(s),f=Yn(s),p=qt(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,S=g-u.left-u.right,A=Kt(h-u[x],b),_=Kt(g-u[v],S),E=!t.middlewareData.shift;let C=A,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=b),E&&!f){const D=Xe(u.left,0),z=Xe(u.right,0),R=Xe(u.top,0),F=Xe(u.bottom,0);p?P=g-2*(D!==0||z!==0?D+z:Xe(u.left,u.right)):C=h-2*(R!==0||F!==0?R+F:Xe(u.top,u.bottom))}await c({...t,availableWidth:P,availableHeight:C});const j=await o.getDimensions(a.floating);return g!==j.width||h!==j.height?{reset:{rects:!0}}:{}}}};function ni(){return typeof window<"u"}function Xn(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kt(e){var t;return(t=(eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eh(e){return ni()?e instanceof Node||e instanceof et(e).Node:!1}function ft(e){return ni()?e instanceof Element||e instanceof et(e).Element:!1}function Ct(e){return ni()?e instanceof HTMLElement||e instanceof et(e).HTMLElement:!1}function Ml(e){return!ni()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof et(e).ShadowRoot}function Yr(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function d0(e){return["table","td","th"].includes(Xn(e))}function ri(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ba(e){const t=wa(),n=ft(e)?ht(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function f0(e){let t=Yt(e);for(;Ct(t)&&!Bn(t);){if(ba(t))return t;if(ri(t))return null;t=Yt(t)}return null}function wa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bn(e){return["html","body","#document"].includes(Xn(e))}function ht(e){return et(e).getComputedStyle(e)}function si(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ml(e)&&e.host||kt(e);return Ml(t)?t.host:t}function th(e){const t=Yt(e);return Bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&Yr(t)?t:th(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=th(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=et(s);if(i){const a=lo(o);return t.concat(o,o.visualViewport||[],Yr(s)?s:[],a&&n?Pr(a):[])}return t.concat(s,Pr(s,[],n))}function lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nh(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function _a(e){return ft(e)?e:e.contextElement}function On(e){const t=_a(e);if(!Ct(t))return Tt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=nh(t);let o=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const h0=Tt(0);function rh(e){const t=et(e);return!wa()||!t.visualViewport?h0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==et(e)?!1:t}function gn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=_a(e);let o=Tt(1);t&&(r?ft(r)&&(o=On(r)):o=On(e));const a=m0(i,n,r)?rh(i):Tt(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=et(i),p=r&&ft(r)?et(r):r;let g=f,h=lo(g);for(;h&&r&&p!==g;){const x=On(h),v=h.getBoundingClientRect(),b=ht(h),S=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,A=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,l*=x.y,u*=x.x,d*=x.y,c+=S,l+=A,g=et(h),h=lo(g)}}return Vs({width:u,height:d,x:c,y:l})}function Sa(e,t){const n=si(e).scrollLeft;return t?t.left+n:gn(kt(e)).left+n}function sh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Sa(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function p0(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=kt(r),a=t?ri(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Tt(1);const u=Tt(0),d=Ct(r);if((d||!d&&!i)&&((Xn(r)!=="body"||Yr(o))&&(c=si(r)),Ct(r))){const p=gn(r);l=On(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=o&&!d&&!i?sh(o,c,!0):Tt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function g0(e){return Array.from(e.getClientRects())}function y0(e){const t=kt(e),n=si(e),r=e.ownerDocument.body,s=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Sa(e);const a=-n.scrollTop;return ht(r).direction==="rtl"&&(o+=Xe(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function v0(e,t){const n=et(e),r=kt(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=wa();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function x0(e,t){const n=gn(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Ct(e)?On(e):Tt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function Ol(e,t,n){let r;if(t==="viewport")r=v0(e,n);else if(t==="document")r=y0(kt(e));else if(ft(t))r=x0(t,n);else{const s=rh(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Vs(r)}function ih(e,t){const n=Yt(e);return n===t||!ft(n)||Bn(n)?!1:ht(n).position==="fixed"||ih(n,t)}function b0(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(a=>ft(a)&&Xn(a)!=="body"),s=null;const i=ht(e).position==="fixed";let o=i?Yt(e):e;for(;ft(o)&&!Bn(o);){const a=ht(o),c=ba(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Yr(o)&&!c&&ih(e,o))?r=r.filter(u=>u!==o):s=a,o=Yt(o)}return t.set(e,r),r}function w0(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ri(t)?[]:b0(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=Ol(t,u,s);return l.top=Xe(d.top,l.top),l.right=Kt(d.right,l.right),l.bottom=Kt(d.bottom,l.bottom),l.left=Xe(d.left,l.left),l},Ol(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _0(e){const{width:t,height:n}=nh(e);return{width:t,height:n}}function S0(e,t,n){const r=Ct(t),s=kt(t),i=n==="fixed",o=gn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Tt(0);if(r||!r&&!i)if((Xn(t)!=="body"||Yr(s))&&(a=si(t)),r){const f=gn(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=Sa(s));const l=s&&!r&&!i?sh(s,a):Tt(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Di(e){return ht(e).position==="static"}function Vl(e,t){if(!Ct(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kt(e)===n&&(n=n.ownerDocument.body),n}function oh(e,t){const n=et(e);if(ri(e))return n;if(!Ct(e)){let s=Yt(e);for(;s&&!Bn(s);){if(ft(s)&&!Di(s))return s;s=Yt(s)}return n}let r=Vl(e,t);for(;r&&d0(r)&&Di(r);)r=Vl(r,t);return r&&Bn(r)&&Di(r)&&!ba(r)?n:r||f0(e)||n}const T0=async function(e){const t=this.getOffsetParent||oh,n=this.getDimensions,r=await n(e.floating);return{reference:S0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function A0(e){return ht(e).direction==="rtl"}const C0={convertOffsetParentRelativeRectToViewportRelativeRect:p0,getDocumentElement:kt,getClippingRect:w0,getOffsetParent:oh,getElementRects:T0,getClientRects:g0,getDimensions:_0,getScale:On,isElement:ft,isRTL:A0};function ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function E0(e,t){let n=null,r;const s=kt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const g=fs(d),h=fs(s.clientWidth-(u+f)),x=fs(s.clientHeight-(d+p)),v=fs(u),S={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:Xe(0,Kt(1,c))||1};let A=!0;function _(E){const C=E[0].intersectionRatio;if(C!==c){if(!A)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}C===1&&!ah(l,e.getBoundingClientRect())&&o(),A=!1}try{n=new IntersectionObserver(_,{...S,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return o(!0),i}function P0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=_a(e),u=s||i?[...l?Pr(l):[],...Pr(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?E0(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g,h=c?gn(e):null;c&&x();function x(){const v=gn(e);h&&!ah(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const k0=a0,R0=c0,N0=s0,j0=u0,D0=i0,Ll=r0,M0=l0,O0=(e,t,n)=>{const r=new Map,s={platform:C0,...n},i={...s.platform,_c:r};return n0(e,t,{...s,platform:i})};var _s=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Ls(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ls(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Ls(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ch(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Il(e,t){const n=ch(e);return Math.round(t*n)/n}function Mi(e){const t=y.useRef(e);return _s(()=>{t.current=e}),t}function V0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);Ls(f,r)||p(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(U=>{U!==E.current&&(E.current=U,h(U))},[]),S=y.useCallback(U=>{U!==C.current&&(C.current=U,v(U))},[]),A=i||g,_=o||x,E=y.useRef(null),C=y.useRef(null),P=y.useRef(u),j=c!=null,D=Mi(c),z=Mi(s),R=Mi(l),F=y.useCallback(()=>{if(!E.current||!C.current)return;const U={placement:t,strategy:n,middleware:f};z.current&&(U.platform=z.current),O0(E.current,C.current,U).then(Q=>{const ce={...Q,isPositioned:R.current!==!1};$.current&&!Ls(P.current,ce)&&(P.current=ce,eu.flushSync(()=>{d(ce)}))})},[f,t,n,z,R]);_s(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(U=>({...U,isPositioned:!1})))},[l]);const $=y.useRef(!1);_s(()=>($.current=!0,()=>{$.current=!1}),[]),_s(()=>{if(A&&(E.current=A),_&&(C.current=_),A&&_){if(D.current)return D.current(A,_,F);F()}},[A,_,F,D,j]);const J=y.useMemo(()=>({reference:E,floating:C,setReference:b,setFloating:S}),[b,S]),K=y.useMemo(()=>({reference:A,floating:_}),[A,_]),W=y.useMemo(()=>{const U={position:n,left:0,top:0};if(!K.floating)return U;const Q=Il(K.floating,u.x),ce=Il(K.floating,u.y);return a?{...U,transform:"translate("+Q+"px, "+ce+"px)",...ch(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:ce}},[n,a,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:J,elements:K,floatingStyles:W}),[u,F,J,K,W])}const L0=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ll({element:r.current,padding:s}).fn(n):{}:r?Ll({element:r,padding:s}).fn(n):{}}}},I0=(e,t)=>({...k0(e),options:[e,t]}),F0=(e,t)=>({...R0(e),options:[e,t]}),B0=(e,t)=>({...M0(e),options:[e,t]}),$0=(e,t)=>({...N0(e),options:[e,t]}),z0=(e,t)=>({...j0(e),options:[e,t]}),U0=(e,t)=>({...D0(e),options:[e,t]}),W0=(e,t)=>({...L0(e),options:[e,t]});var Z0="Arrow",lh=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return m.jsx(We.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});lh.displayName=Z0;var H0=lh;function G0(e){const[t,n]=y.useState(void 0);return mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ta="Popper",[uh,dh]=bo(Ta),[K0,fh]=uh(Ta),hh=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return m.jsx(K0,{scope:t,anchor:r,onAnchorChange:s,children:n})};hh.displayName=Ta;var mh="PopperAnchor",ph=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=fh(mh,n),o=y.useRef(null),a=pt(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:m.jsx(We.div,{...s,ref:a})});ph.displayName=mh;var Aa="PopperContent",[q0,Y0]=uh(Aa),gh=y.forwardRef((e,t)=>{var ie,ue,_e,Pe,he,Z;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,x=fh(Aa,n),[v,b]=y.useState(null),S=pt(t,oe=>b(oe)),[A,_]=y.useState(null),E=G0(A),C=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,j=r+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(l)?l:[l],R=z.length>0,F={padding:D,boundary:z.filter(J0),altBoundary:R},{refs:$,floatingStyles:J,placement:K,isPositioned:W,middlewareData:U}=V0({strategy:"fixed",placement:j,whileElementsMounted:(...oe)=>P0(...oe,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[I0({mainAxis:s+P,alignmentAxis:o}),c&&F0({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?B0():void 0,...F}),c&&$0({...F}),z0({...F,apply:({elements:oe,rects:me,availableWidth:Ne,availableHeight:Ye})=>{const{width:nt,height:w}=me.reference,T=oe.floating.style;T.setProperty("--radix-popper-available-width",`${Ne}px`),T.setProperty("--radix-popper-available-height",`${Ye}px`),T.setProperty("--radix-popper-anchor-width",`${nt}px`),T.setProperty("--radix-popper-anchor-height",`${w}px`)}}),A&&W0({element:A,padding:a}),Q0({arrowWidth:C,arrowHeight:P}),f&&U0({strategy:"referenceHidden",...F})]}),[Q,ce]=xh(K),le=Zt(g);mn(()=>{W&&(le==null||le())},[W,le]);const De=(ie=U.arrow)==null?void 0:ie.x,qe=(ue=U.arrow)==null?void 0:ue.y,Me=((_e=U.arrow)==null?void 0:_e.centerOffset)!==0,[ot,Fe]=y.useState();return mn(()=>{v&&Fe(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:W?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ot,"--radix-popper-transform-origin":[(Pe=U.transformOrigin)==null?void 0:Pe.x,(he=U.transformOrigin)==null?void 0:he.y].join(" "),...((Z=U.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(q0,{scope:n,placedSide:Q,onArrowChange:_,arrowX:De,arrowY:qe,shouldHideArrow:Me,children:m.jsx(We.div,{"data-side":Q,"data-align":ce,...h,ref:S,style:{...h.style,animation:W?void 0:"none"}})})})});gh.displayName=Aa;var yh="PopperArrow",X0={top:"bottom",right:"left",bottom:"top",left:"right"},vh=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=Y0(yh,r),o=X0[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(H0,{...s,ref:n,style:{...s.style,display:"block"}})})});vh.displayName=yh;function J0(e){return e!==null}var Q0=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=xh(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,p=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let g="",h="";return l==="bottom"?(g=o?d:`${f}px`,h=`${-c}px`):l==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,h=o?d:`${p}px`):l==="left"&&(g=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:g,y:h}}}});function xh(e){const[t,n="center"]=e.split("-");return[t,n]}var e_=hh,bh=ph,t_=gh,n_=vh,Ca="Popover",[wh,BT]=bo(Ca,[dh]),Xr=dh(),[r_,rn]=wh(Ca),_h=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Xr(t),c=y.useRef(null),[l,u]=y.useState(!1),[d=!1,f]=nu({prop:r,defaultProp:s,onChange:i});return m.jsx(e_,{...a,children:m.jsx(r_,{scope:t,contentId:ms(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};_h.displayName=Ca;var Sh="PopoverAnchor",s_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(Sh,n),i=Xr(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),m.jsx(bh,{...i,...r,ref:t})});s_.displayName=Sh;var Th="PopoverTrigger",Ah=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(Th,n),i=Xr(n),o=pt(t,s.triggerRef),a=m.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Rh(s.open),...r,ref:o,onClick:Je(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:m.jsx(bh,{asChild:!0,...i,children:a})});Ah.displayName=Th;var Ea="PopoverPortal",[i_,o_]=wh(Ea,{forceMount:void 0}),Ch=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=rn(Ea,t);return m.jsx(i_,{scope:t,forceMount:n,children:m.jsx(Hn,{present:n||i.open,children:m.jsx(So,{asChild:!0,container:s,children:r})})})};Ch.displayName=Ea;var $n="PopoverContent",Eh=y.forwardRef((e,t)=>{const n=o_($n,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=rn($n,e.__scopePopover);return m.jsx(Hn,{present:r||i.open,children:i.modal?m.jsx(a_,{...s,ref:t}):m.jsx(c_,{...s,ref:t})})});Eh.displayName=$n;var a_=y.forwardRef((e,t)=>{const n=rn($n,e.__scopePopover),r=y.useRef(null),s=pt(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return pu(o)},[]),m.jsx(To,{as:Zn,allowPinchZoom:!0,children:m.jsx(Ph,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Je(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),c_=y.forwardRef((e,t)=>{const n=rn($n,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return m.jsx(Ph,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Ph=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=rn($n,n),p=Xr(n);return ou(),m.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:m.jsx(wo,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(t_,{"data-state":Rh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.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)"}})})})}),kh="PopoverClose",l_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(kh,n);return m.jsx(We.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>s.onOpenChange(!1))})});l_.displayName=kh;var u_="PopoverArrow",d_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Xr(n);return m.jsx(n_,{...s,...r,ref:t})});d_.displayName=u_;function Rh(e){return e?"open":"closed"}var f_=_h,h_=Ah,m_=Ch,Nh=Eh;const jh=f_,Dh=h_,Pa=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>m.jsx(m_,{children:m.jsx(Nh,{ref:s,align:t,sideOffset:n,className:ee("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Pa.displayName=Nh.displayName;const Fl=[{lang:Ve.RU},{lang:Ve.EN}],Bl=({className:e})=>{const t=ze(i=>i.lang),n=ze(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Fl.filter(i=>i.lang===t)),m.jsxs(jh,{open:r,onOpenChange:()=>s(!r),children:[m.jsxs(Dh,{className:ee("flex items-center gap-2",e),children:[m.jsx("img",{src:t===Ve.RU?"/ru.svg":"/en.svg",alt:""}),t===Ve.RU?"Ру":"En",m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:"#2C2828"})})]}),m.jsx(Pa,{className:"flex flex-col gap-6",children:Fl.filter(i=>i.lang!==t).map((i,o)=>m.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[m.jsx("img",{src:i.lang===Ve.RU?"/ru.svg":"/en.svg",alt:"flag"}),m.jsx("h5",{children:i.lang===Ve.RU?"Русский":"English"})]},o))})]})},$l=({title:e,dropDownText:t,color:n,items:r})=>m.jsxs(jh,{children:[m.jsxs(Dh,{className:"flex items-center gap-2",children:[e,m.jsx(p_,{color:n})]}),m.jsxs(Pa,{className:"w-fit cursor-pointer bg-surface_container",children:[t,r&&r.map(s=>m.jsx(Ce,{target:"_blank",to:s.link,children:s.title},s.title))]})]}),p_=({color:e="white"})=>m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})}),vr=[{title:"Тематические направления выставки",bottom_text:` + `),()=>{document.head.removeChild(p)}},[t]),m.jsx(qg,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const Xg=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=jo(Jg),l=y.useId(),u=y.useCallback(f=>{c.set(f,!0);for(const p of c.values())if(!p)return;r&&r()},[c,r]),d=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{c.forEach((f,p)=>c.set(p,!1))},[n]),y.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=m.jsx(Yg,{isPresent:n,anchorX:a,children:e})),m.jsx(qs.Provider,{value:d,children:e})};function Jg(){return new Map}function Xu(e=!0){const t=y.useContext(qs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const cs=e=>e.key||"";function ic(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Oo=typeof window<"u",Ju=Oo?y.useLayoutEffect:y.useEffect,OT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Xu(o),u=y.useMemo(()=>ic(e),[e]),d=o&&!c?[]:u.map(cs),f=y.useRef(!0),p=y.useRef(u),g=jo(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Ju(()=>{f.current=!1,p.current=u;for(let _=0;_{const A=cs(_),k=o&&!c?!1:u===v||d.includes(A),E=()=>{if(g.has(A))g.set(A,!0);else return;let j=!0;g.forEach(D=>{D||(j=!1)}),j&&(C==null||C(),b(p.current),o&&(l==null||l()),r&&r())};return m.jsx(Xg,{isPresent:k,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,onExitComplete:k?void 0:E,anchorX:a,children:_},A)})})},Qe=e=>e;let Qu=Qe;const Qg={useManualTiming:!1},ls=["read","resolveKeyframes","update","preRender","render","postRender"],oc={value:null};function ey(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function l(d){o.has(d)&&(u.schedule(d),e()),c++,d(a)}const u={schedule:(d,f=!1,p=!1)=>{const h=p&&s?n:r;return f&&o.add(d),h.has(d)||h.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),t&&oc.value&&oc.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const ty=40;function ed(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ls.reduce((v,b)=>(v[b]=ey(i,t?b:void 0),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,ty),1),s.timestamp=v,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},g=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:ls.reduce((v,b)=>{const S=o[b];return v[b]=(C,_=!1,A=!1)=>(n||g(),S.schedule(C,_,A)),v},{}),cancel:v=>{for(let b=0;bac[e].some(n=>!!t[n])};function ny(e){for(const t in e)Ln[t]={...Ln[t],...e[t]}}const ry=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Cs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ry.has(e)}let nd=e=>!Cs(e);function sy(e){e&&(nd=t=>t.startsWith("on")?!Cs(t):e(t))}try{sy(require("@emotion/is-prop-valid").default)}catch{}function iy(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(nd(s)||n===!0&&Cs(s)||!t&&!Cs(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function oy(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Ys=y.createContext({});function Xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function br(e){return typeof e=="string"||Array.isArray(e)}const Mo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vo=["initial",...Mo];function Js(e){return Xs(e.animate)||Vo.some(t=>br(e[t]))}function rd(e){return!!(Js(e)||e.variants)}function ay(e,t){if(Js(e)){const{initial:n,animate:r}=e;return{initial:n===!1||br(n)?n:void 0,animate:br(r)?r:void 0}}return e.inherit!==!1?t:{}}function cy(e){const{initial:t,animate:n}=ay(e,y.useContext(Ys));return y.useMemo(()=>({initial:t,animate:n}),[cc(t),cc(n)])}function cc(e){return Array.isArray(e)?e.join(" "):e}const ly=Symbol.for("motionComponentSymbol");function En(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uy(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):En(n)&&(n.current=r))},[t])}const Lo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dy="framerAppearId",sd="data-"+Lo(dy),{schedule:Io}=ed(queueMicrotask,!1),id=y.createContext({});function fy(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(Ys),c=y.useContext(td),l=y.useContext(qs),u=y.useContext(Do).reducedMotion,d=y.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,p=y.useContext(id);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&hy(d.current,n,s,p);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const h=n[sd],x=y.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return Ju(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Io.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function hy(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:od(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&En(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function od(e){if(e)return e.options.allowProjection!==!1?e.projection:od(e.parent)}function my({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&ny(e);function a(l,u){let d;const f={...y.useContext(Do),...l,layoutId:py(l)},{isStatic:p}=f,g=cy(l),h=r(l,p);if(!p&&Oo){gy();const x=yy(f);d=x.MeasureLayout,g.visualElement=fy(s,h,f,t,x.ProjectionNode)}return m.jsxs(Ys.Provider,{value:g,children:[d&&g.visualElement?m.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,l,uy(h,g.visualElement,u),h,p,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=y.forwardRef(a);return c[ly]=s,c}function py({layoutId:e}){const t=y.useContext(No).id;return t&&e!==void 0?t+"-"+e:e}function gy(e,t){y.useContext(td).strict}function yy(e){const{drag:t,layout:n}=Ln;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ad=e=>t=>typeof t=="string"&&t.startsWith(e),Fo=ad("--"),vy=ad("var(--"),Bo=e=>vy(e)?xy.test(e.split("/*")[0].trim()):!1,xy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wr={};function by(e){for(const t in e)wr[t]=e[t],Fo(t)&&(wr[t].isCSSVariable=!0)}const Kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(Kn);function cd(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wr[e]||e==="opacity")}const Le=e=>!!(e&&e.getVelocity),ld=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},_r={...qn,transform:e=>Vt(0,1,e)},us={...qn,default:1},Zr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ut=Zr("deg"),_t=Zr("%"),q=Zr("px"),wy=Zr("vh"),_y=Zr("vw"),lc={..._t,parse:e=>_t.parse(e)/100,transform:e=>_t.transform(e*100)},Sy={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q},Ty={rotate:Ut,rotateX:Ut,rotateY:Ut,rotateZ:Ut,scale:us,scaleX:us,scaleY:us,scaleZ:us,skew:Ut,skewX:Ut,skewY:Ut,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:_r,originX:lc,originY:lc,originZ:q},uc={...qn,transform:Math.round},$o={...Sy,...Ty,zIndex:uc,size:q,fillOpacity:_r,strokeOpacity:_r,numOctaves:uc},Cy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ay=Kn.length;function Ey(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function ud(e,t,n){for(const r in t)!Le(t[r])&&!cd(r,n)&&(e[r]=t[r])}function ky({transformTemplate:e},t){return y.useMemo(()=>{const n=Uo();return zo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Py(e,t){const n=e.style||{},r={};return ud(r,n,e),Object.assign(r,ky(e,t)),r}function Ry(e,t){const n={},r=Py(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ny=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wo(e){return typeof e!="string"||e.includes("-")?!1:!!(Ny.indexOf(e)>-1||/[A-Z]/u.test(e))}const jy={offset:"stroke-dashoffset",array:"stroke-dasharray"},Dy={offset:"strokeDashoffset",array:"strokeDasharray"};function Oy(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jy:Dy;e[i.offset]=q.transform(-r);const o=q.transform(t),a=q.transform(n);e[i.array]=`${o} ${a}`}function dc(e,t,n){return typeof e=="string"?e:q.transform(t+n*e)}function My(e,t,n){const r=dc(t,e.x,e.width),s=dc(n,e.y,e.height);return`${r} ${s}`}function Zo(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(zo(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:g}=e;f.transform&&(g&&(p.transform=f.transform),delete f.transform),g&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=My(g,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Oy(f,o,a,c,!1)}const dd=()=>({...Uo(),attrs:{}}),Ho=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vy(e,t,n,r){const s=y.useMemo(()=>{const i=dd();return Zo(i,t,Ho(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ud(i,e.style,e),s.style={...i,...s.style}}return s}function Ly(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(Wo(n)?Vy:Ry)(r,i,o,n),l=iy(r,typeof n=="string",e),u=n!==y.Fragment?{...l,...c,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Le(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function fc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Go(e,t,n,r){if(typeof t=="function"){const[s,i]=fc(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=fc(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const zi=e=>Array.isArray(e),Iy=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Fy=e=>zi(e)?e[e.length-1]||0:e;function vs(e){const t=Le(e)?e.get():e;return Iy(t)?t.toValue():t}function By({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:$y(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const fd=e=>(t,n)=>{const r=y.useContext(Ys),s=y.useContext(qs),i=()=>By(e,t,r,s);return n?i():jo(i)};function $y(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=vs(i[f]);let{initial:o,animate:a}=e;const c=Js(e),l=rd(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Xs(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(wn.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{hd(n,r),ge.render(()=>{Zo(r,s,Ho(n.tagName),e.transformTemplate),gd(n,r)})})}})};function Wy(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Wo(r)?Uy:zy,preloadedFeatures:e,useRender:Ly(s),createVisualElement:t,Component:r};return my(o)}}function Sr(e,t,n){const r=e.getProps();return Go(r,t,n!==void 0?n:r.custom,e)}function qo(e,t){return e?e[t]||e.default||e:void 0}const vd=new Set(["width","height","top","left","right","bottom",...Kn]);let xs;function Zy(){xs=void 0}const St={now:()=>(xs===void 0&&St.set(je.isProcessing||Qg.useManualTiming?je.timestamp:performance.now()),xs),set:e=>{xs=e,queueMicrotask(Zy)}};function Yo(e,t){e.indexOf(t)===-1&&e.push(t)}function Xo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jo{constructor(){this.subscriptions=[]}add(t){return Yo(this.subscriptions,t),()=>Xo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Gy{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=St.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=St.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hy(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jo);const r=this.events[t].add(n);return t==="change"?()=>{r(),ge.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=St.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mc);return xd(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tr(e,t){return new Gy(e,t)}function Ky(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tr(n))}function qy(e,t){const n=Sr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Fy(i[o]);Ky(e,o,a)}}function Yy(e){return!!(Le(e)&&e.add)}function Ui(e,t){const n=e.getValue("willChange");if(Yy(n))return n.add(t)}function bd(e){return e.props[sd]}function Qo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xy=Qo(()=>window.ScrollTimeline!==void 0);class Jy{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(Xy()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Qy extends Jy{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ot=e=>e*1e3,Mt=e=>e/1e3;function ea(e){return typeof e=="function"}function pc(e,t){e.timeline=t,e.onfinish=null}const ta=e=>Array.isArray(e)&&typeof e[0]=="number",ev={linearEasing:void 0};function tv(e,t){const n=Qo(e);return()=>{var r;return(r=ev[t])!==null&&r!==void 0?r:n()}}const As=tv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),In=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wd=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function Sd(e,t){if(e)return typeof e=="function"&&As()?wd(e,t):ta(e)?ar(e):Array.isArray(e)?e.map(n=>Sd(n,t)||Wi.easeOut):Wi[e]}const Td=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nv=1e-7,rv=12;function sv(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Td(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>nv&&++asv(i,0,1,e,n);return i=>i===0||i===1?i:Td(s(i),t,r)}const Cd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ad=e=>t=>1-e(1-t),Ed=Hr(.33,1.53,.69,.99),na=Ad(Ed),kd=Cd(na),Pd=e=>(e*=2)<1?.5*na(e):.5*(2-Math.pow(2,-10*(e-1))),ra=e=>1-Math.sin(Math.acos(e)),Rd=Ad(ra),Nd=Cd(ra),jd=e=>/^0[^.\s]+$/u.test(e);function iv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jd(e):!0}const fr=e=>Math.round(e*1e5)/1e5,sa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ov(e){return e==null}const av=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ia=(e,t)=>n=>!!(typeof n=="string"&&av.test(n)&&n.startsWith(e)||t&&!ov(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dd=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(sa);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},cv=e=>Vt(0,255,e),xi={...qn,transform:e=>Math.round(cv(e))},ln={test:ia("rgb","red"),parse:Dd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xi.transform(e)+", "+xi.transform(t)+", "+xi.transform(n)+", "+fr(_r.transform(r))+")"};function lv(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Zi={test:ia("#"),parse:lv,transform:ln.transform},kn={test:ia("hsl","hue"),parse:Dd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_t.transform(fr(t))+", "+_t.transform(fr(n))+", "+fr(_r.transform(r))+")"},Me={test:e=>ln.test(e)||Zi.test(e)||kn.test(e),parse:e=>ln.test(e)?ln.parse(e):kn.test(e)?kn.parse(e):Zi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ln.transform(e):kn.transform(e)},uv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sa))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(uv))===null||n===void 0?void 0:n.length)||0)>0}const Od="number",Md="color",fv="var",hv="var(",gc="${}",mv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Cr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(mv,c=>(Me.test(c)?(r.color.push(i),s.push(Md),n.push(Me.parse(c))):c.startsWith(hv)?(r.var.push(i),s.push(fv),n.push(c)):(r.number.push(i),s.push(Od),n.push(parseFloat(c))),++i,gc)).split(gc);return{values:n,split:a,indexes:r,types:s}}function Vd(e){return Cr(e).values}function Ld(e){const{split:t,types:n}=Cr(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function gv(e){const t=Vd(e);return Ld(e)(t.map(pv))}const Gt={test:dv,parse:Vd,createTransformer:Ld,getAnimatableNone:gv},yv=new Set(["brightness","contrast","saturate","opacity"]);function vv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(sa)||[];if(!r)return e;const s=n.replace(r,"");let i=yv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const xv=/\b([a-z-]*)\(.*?\)/gu,Hi={...Gt,getAnimatableNone:e=>{const t=e.match(xv);return t?t.map(vv).join(" "):e}},bv={...$o,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:Hi,WebkitFilter:Hi},oa=e=>bv[e];function Id(e,t){let n=oa(e);return n!==Hi&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wv=new Set(["auto","none","0"]);function _v(e,t,n){let r=0,s;for(;re===qn||e===q,vc=(e,t)=>parseFloat(e.split(", ")[t]),xc=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return vc(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?vc(i[1],e):0}},Sv=new Set(["x","y","z"]),Tv=Kn.filter(e=>!Sv.has(e));function Cv(e){const t=[];return Tv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:xc(4,13),y:xc(5,14)};Fn.translateX=Fn.x;Fn.translateY=Fn.y;const dn=new Set;let Gi=!1,Ki=!1;function Fd(){if(Ki){const e=Array.from(dn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Cv(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ki=!1,Gi=!1,dn.forEach(e=>e.complete()),dn.clear()}function Bd(){dn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ki=!0)})}function Av(){Bd(),Fd()}class aa{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dn.add(this),Gi||(Gi=!0,ge.read(Bd),ge.resolveKeyframes(Fd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ev=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kv(e){const t=Ev.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function zd(e,t,n=1){const[r,s]=kv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return $d(o)?parseFloat(o):o}return Bo(s)?zd(s,t,n+1):s}const Ud=e=>t=>t.test(e),Pv={test:e=>e==="auto",parse:e=>e},Wd=[qn,q,_t,Ut,_y,wy,Pv],bc=e=>Wd.find(Ud(e));class Zd extends aa{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const wc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function Rv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Qs(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(jv),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Dv=40;class Hd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=St.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Dv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Av(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=St.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!Nv(t,r,s,i))if(o)this.options.duration=0;else{c&&c(Qs(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const qi=2e4;function Gd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=qi?1/0:t}const xe=(e,t,n)=>e+(t-e)*n;function bi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ov({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=bi(c,a,e+1/3),i=bi(c,a,e),o=bi(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Es(e,t){return n=>n>0?t:e}const wi=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Mv=[Zi,ln,kn],Vv=e=>Mv.find(t=>t.test(e));function _c(e){const t=Vv(e);if(!t)return!1;let n=t.parse(e);return t===kn&&(n=Ov(n)),n}const Sc=(e,t)=>{const n=_c(e),r=_c(t);if(!n||!r)return Es(e,t);const s={...n};return i=>(s.red=wi(n.red,r.red,i),s.green=wi(n.green,r.green,i),s.blue=wi(n.blue,r.blue,i),s.alpha=xe(n.alpha,r.alpha,i),ln.transform(s))},Lv=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce(Lv),Yi=new Set(["none","hidden"]);function Iv(e,t){return Yi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Fv(e,t){return n=>xe(e,t,n)}function ca(e){return typeof e=="number"?Fv:typeof e=="string"?Bo(e)?Es:Me.test(e)?Sc:zv:Array.isArray(e)?Kd:typeof e=="object"?Me.test(e)?Sc:Bv:Es}function Kd(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>ca(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function $v(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Gt.createTransformer(t),r=Cr(e),s=Cr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Yi.has(e)&&!s.values.length||Yi.has(t)&&!r.values.length?Iv(e,t):Gr(Kd($v(r,s),s.values),n):Es(e,t)};function qd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xe(e,t,n):ca(e)(e,t)}const Uv=5;function Yd(e,t,n){const r=Math.max(t-Uv,0);return xd(n-e(r),t-r)}const we={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tc=.001;function Wv({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let s,i,o=1-t;o=Vt(we.minDamping,we.maxDamping,o),e=Vt(we.minDuration,we.maxDuration,Mt(e)),o<1?(s=l=>{const u=l*o,d=u*e,f=u-n,p=Xi(l,o),g=Math.exp(-d);return Tc-f/p*g},i=l=>{const d=l*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),h=Xi(Math.pow(l,2),o);return(-s(l)+Tc>0?-1:1)*((f-p)*g)/h}):(s=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=Hv(s,i,a);if(e=Ot(e),isNaN(c))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const Zv=12;function Hv(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function qv(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!Cc(e,Kv)&&Cc(e,Gv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Vt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:we.mass,stiffness:s,damping:i}}else{const n=Wv(e);t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function Xd(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=qv({...n,velocity:-Mt(n.velocity||0)}),g=f||0,h=l/(2*Math.sqrt(c*u)),x=o-i,v=Mt(Math.sqrt(c/u)),b=Math.abs(x)<5;r||(r=b?we.restSpeed.granular:we.restSpeed.default),s||(s=b?we.restDelta.granular:we.restDelta.default);let S;if(h<1){const _=Xi(v,h);S=A=>{const k=Math.exp(-h*v*A);return o-k*((g+h*v*x)/_*Math.sin(_*A)+x*Math.cos(_*A))}}else if(h===1)S=_=>o-Math.exp(-v*_)*(x+(g+v*x)*_);else{const _=v*Math.sqrt(h*h-1);S=A=>{const k=Math.exp(-h*v*A),E=Math.min(_*A,300);return o-k*((g+h*v*x)*Math.sinh(E)+_*x*Math.cosh(E))/_}}const C={calculatedDuration:p&&d||null,next:_=>{const A=S(_);if(p)a.done=_>=d;else{let k=0;h<1&&(k=_===0?Ot(g):Yd(S,_,A));const E=Math.abs(k)<=r,j=Math.abs(o-A)<=s;a.done=E&&j}return a.value=a.done?o:A,a},toString:()=>{const _=Math.min(Gd(C),qi),A=wd(k=>C.next(_*k).value,_,30);return _+"ms "+A}};return C}function Ac({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=E=>a!==void 0&&Ec,g=E=>a===void 0?c:c===void 0||Math.abs(a-E)-h*Math.exp(-E/r),S=E=>v+b(E),C=E=>{const j=b(E),D=S(E);f.done=Math.abs(j)<=l,f.value=f.done?v:D};let _,A;const k=E=>{p(f.value)&&(_=E,A=Xd({keyframes:[f.value,g(f.value)],velocity:Yd(S,E,f.value),damping:s,stiffness:i,restDelta:l,restSpeed:u}))};return k(0),{calculatedDuration:null,next:E=>{let j=!1;return!A&&_===void 0&&(j=!0,C(E),k(E)),_!==void 0&&E>=_?A.next(E-_):(!j&&C(E),f)}}}const Yv=Hr(.42,0,1,1),Xv=Hr(0,0,.58,1),Jd=Hr(.42,0,.58,1),Jv=e=>Array.isArray(e)&&typeof e[0]!="number",Qv={linear:Qe,easeIn:Yv,easeInOut:Jd,easeOut:Xv,circIn:ra,circInOut:Nd,circOut:Rd,backIn:na,backInOut:kd,backOut:Ed,anticipate:Pd},Ec=e=>{if(ta(e)){Qu(e.length===4);const[t,n,r,s]=e;return Hr(t,n,r,s)}else if(typeof e=="string")return Qv[e];return e};function ex(e,t,n){const r=[],s=n||qd,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ex(t,r,s),c=a.length,l=u=>{if(o&&u1)for(;dl(Vt(e[0],e[i-1],u)):l}function nx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=In(0,t,r);e.push(xe(n,1,s))}}function rx(e){const t=[0];return nx(t,e.length-1),t}function sx(e,t){return e.map(n=>n*t)}function ix(e,t){return e.map(()=>t||Jd).splice(0,e.length-1)}function ks({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Jv(r)?r.map(Ec):Ec(r),i={done:!1,value:t[0]},o=sx(n&&n.length===t.length?n:rx(t),e),a=tx(o,t,{ease:Array.isArray(s)?s:ix(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const ox=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ge.update(t,!0),stop:()=>Ht(t),now:()=>je.isProcessing?je.timestamp:St.now()}},ax={decay:Ac,inertia:Ac,tween:ks,keyframes:ks,spring:Xd},cx=e=>e/100;class la extends Hd{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||aa,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=ea(n)?n:ax[n]||ks;let c,l;a!==ks&&typeof t[0]!="number"&&(c=Gr(cx,qd(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Gd(u));const{calculatedDuration:d}=u,f=d+s,p=f*(r+1)-s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:g,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let S=this.currentTime,C=i;if(p){const E=Math.min(this.currentTime,u)/d;let j=Math.floor(E),D=E%1;!D&&E>=1&&(D=1),D===1&&j--,j=Math.min(j,p+1),!!(j%2)&&(g==="reverse"?(D=1-D,h&&(D-=h/d)):g==="mirror"&&(C=o)),S=Vt(0,1,D)*d}const _=b?{done:!1,value:c[0]}:C.next(S);a&&(_.value=a(_.value));let{done:A}=_;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return k&&s!==void 0&&(_.value=Qs(c,this.options,s)),x&&x(_.value),k&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Mt(t.calculatedDuration):0}get time(){return Mt(this.currentTime)}set time(t){t=Ot(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ox,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const lx=new Set(["opacity","clipPath","filter","transform"]);function ux(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Sd(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const dx=Qo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ps=10,fx=2e4;function hx(e){return ea(e.type)||e.type==="spring"||!_d(e.ease)}function mx(e,t){const n=new la({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&As()&&px(i)&&(i=Qd[i]),hx(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:g,...h}=this.options,x=mx(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=ux(a.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(pc(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Qs(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Mt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Mt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ot(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Qe;const{animation:r}=n;pc(r,t)}return Qe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...p}=this.options,g=new la({...p,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=Ot(this.time);l.setWithVelocity(g.sample(h-Ps).value,g.sample(h).value,Ps)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return dx()&&r&&lx.has(r)&&!c&&!l&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const gx={type:"spring",stiffness:500,damping:25,restSpeed:10},yx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vx={type:"keyframes",duration:.8},xx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bx=(e,{keyframes:t})=>t.length>2?vx:wn.has(e)?e.startsWith("scale")?yx(t[1]):gx:xx;function wx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ua=(e,t,n,r={},s,i)=>o=>{const a=qo(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ot(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};wx(a)||(u={...u,...bx(e,u)}),u.duration&&(u.duration=Ot(u.duration)),u.repeatDelay&&(u.repeatDelay=Ot(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Qs(u.keyframes,a);if(f!==void 0)return ge.update(()=>{u.onUpdate(f),u.onComplete()}),new Qy([])}return!i&&kc.supports(u)?new kc(u):new la(u)};function _x({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ef(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=c[d];if(p===void 0||u&&_x(u,d))continue;const g={delay:n,...qo(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=bd(e);if(v){const b=window.MotionHandoffAnimation(v,d,ge);b!==null&&(g.startTime=b,h=!0)}}Ui(e,d),f.start(ua(d,f,p,e.shouldReduceMotion&&vd.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&l.push(x)}return a&&Promise.all(l).then(()=>{ge.update(()=>{a&&qy(e,a)})}),l}function Ji(e,t,n={}){var r;const s=Sr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(ef(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Sx(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Sx(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(Tx).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(Ji(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function Tx(e,t){return e.sortNodePosition(t)}function Cx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Ji(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Ji(e,t,n);else{const s=typeof t=="function"?Sr(e,t,n.custom):t;r=Promise.all(ef(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tf(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Cx(e,n,r)))}function Rx(e){let t=Px(e),n=Pc(),r=!0;const s=c=>(l,u)=>{var d;const f=Sr(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:g,...h}=f;l={...l,...h,...g}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=nf(e.parent)||{},d=[],f=new Set;let p={},g=1/0;for(let x=0;xg&&C,j=!1;const D=Array.isArray(S)?S:[S];let I=D.reduce(s(v),{});_===!1&&(I={});const{prevResolvedValues:R={}}=b,B={...R,...I},z=W=>{E=!0,f.has(W)&&(j=!0,f.delete(W)),b.needsAnimating[W]=!0;const U=e.getValue(W);U&&(U.liveStyle=!1)};for(const W in B){const U=I[W],Q=R[W];if(p.hasOwnProperty(W))continue;let ce=!1;zi(U)&&zi(Q)?ce=!tf(U,Q):ce=U!==Q,ce?U!=null?z(W):f.add(W):U!==void 0&&f.has(W)?z(W):b.protectedKeys[W]=!0}b.prevProp=S,b.prevResolvedValues=I,b.isActive&&(p={...p,...I}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(A&&k)||j)&&d.push(...D.map(W=>({animation:W,options:{type:v}})))}if(f.size){const x={};if(typeof l.initial!="boolean"){const v=Sr(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(x.transition=v.transition)}f.forEach(v=>{const b=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Pc(),r=!0}}}function Nx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tf(t,e):!1}function an(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pc(){return{animate:an(!0),whileInView:an(),whileHover:an(),whileTap:an(),whileDrag:an(),whileFocus:an(),exit:an()}}class nn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class jx extends nn{constructor(t){super(t),t.animationState||(t.animationState=Rx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Dx=0;class Ox extends nn{constructor(){super(...arguments),this.id=Dx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Mx={animation:{Feature:jx},exit:{Feature:Ox}},at={x:!1,y:!1};function rf(){return at.x||at.y}function Vx(e){return e==="x"||e==="y"?at[e]?null:(at[e]=!0,()=>{at[e]=!1}):at.x||at.y?null:(at.x=at.y=!0,()=>{at.x=at.y=!1})}const da=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ar(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Kr(e){return{point:{x:e.pageX,y:e.pageY}}}const Lx=e=>t=>da(t)&&e(t,Kr(t));function hr(e,t,n,r){return Ar(e,t,Lx(n),r)}const Rc=(e,t)=>Math.abs(e-t);function Ix(e,t){const n=Rc(e.x,t.x),r=Rc(e.y,t.y);return Math.sqrt(n**2+r**2)}class sf{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Si(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=Ix(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:g}=d,{timestamp:h}=je;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=_i(f,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Si(d.type==="pointercancel"?this.lastMoveEventInfo:_i(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),g&&g(d,x)},!da(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Kr(t),a=_i(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=je;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Si(a,this.history)),this.removeListeners=Gr(hr(this.contextWindow,"pointermove",this.handlePointerMove),hr(this.contextWindow,"pointerup",this.handlePointerUp),hr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ht(this.updatePoint)}}function _i(e,t){return t?{point:t(e.point)}:e}function Nc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si({point:e},t){return{point:e,delta:Nc(e,of(t)),offset:Nc(e,Fx(t)),velocity:Bx(t,.1)}}function Fx(e){return e[0]}function of(e){return e[e.length-1]}function Bx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=of(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ot(t)));)n--;if(!r)return{x:0,y:0};const i=Mt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const af=1e-4,$x=1-af,zx=1+af,cf=.01,Ux=0-cf,Wx=0+cf;function $e(e){return e.max-e.min}function Zx(e,t,n){return Math.abs(e-t)<=n}function jc(e,t,n,r=.5){e.origin=r,e.originPoint=xe(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=xe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$x&&e.scale<=zx||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ux&&e.translate<=Wx||isNaN(e.translate))&&(e.translate=0)}function mr(e,t,n,r){jc(e.x,t.x,n.x,r?r.originX:void 0),jc(e.y,t.y,n.y,r?r.originY:void 0)}function Dc(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function Hx(e,t,n){Dc(e.x,t.x,n.x),Dc(e.y,t.y,n.y)}function Oc(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function pr(e,t,n){Oc(e.x,t.x,n.x),Oc(e.y,t.y,n.y)}function Gx(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?xe(n,e,r.max):Math.min(e,n)),e}function Mc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Kx(e,{top:t,left:n,bottom:r,right:s}){return{x:Mc(e.x,n,s),y:Mc(e.y,t,r)}}function Vc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=In(t.min,t.max-r,e.min):r>s&&(n=In(e.min,e.max-s,t.min)),Vt(0,1,n)}function Xx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qi=.35;function Jx(e=Qi){return e===!1?e=0:e===!0&&(e=Qi),{x:Lc(e,"left","right"),y:Lc(e,"top","bottom")}}function Lc(e,t,n){return{min:Ic(e,t),max:Ic(e,n)}}function Ic(e,t){return typeof e=="number"?e:e[t]||0}const Fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pn=()=>({x:Fc(),y:Fc()}),Bc=()=>({min:0,max:0}),Te=()=>({x:Bc(),y:Bc()});function st(e){return[e("x"),e("y")]}function lf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function eb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ti(e){return e===void 0||e===1}function eo({scale:e,scaleX:t,scaleY:n}){return!Ti(e)||!Ti(t)||!Ti(n)}function cn(e){return eo(e)||uf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uf(e){return $c(e.x)||$c(e.y)}function $c(e){return e&&e!=="0%"}function Rs(e,t,n){const r=e-n,s=t*r;return n+s}function zc(e,t,n,r,s){return s!==void 0&&(e=Rs(e,s,r)),Rs(e,n,r)+t}function to(e,t=0,n=1,r,s){e.min=zc(e.min,t,n,r,s),e.max=zc(e.max,t,n,r,s)}function df(e,{x:t,y:n}){to(e.x,t.translate,t.scale,t.originPoint),to(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Wc=1.0000000000001;function tb(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aUc&&(t.x=1),t.yUc&&(t.y=1)}function Rn(e,t){e.min=e.min+t,e.max=e.max+t}function Zc(e,t,n,r,s=.5){const i=xe(e.min,e.max,s);to(e,t,n,i,r)}function Nn(e,t){Zc(e.x,t.x,t.scaleX,t.scale,t.originX),Zc(e.y,t.y,t.scaleY,t.scale,t.originY)}function ff(e,t){return lf(eb(e.getBoundingClientRect(),t))}function nb(e,t,n){const r=ff(e,n),{scroll:s}=t;return s&&(Rn(r.x,s.offset.x),Rn(r.y,s.offset.y)),r}const hf=({current:e})=>e?e.ownerDocument.defaultView:null,rb=new WeakMap;class sb{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kr(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:p,onDragStart:g}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vx(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(x=>{let v=this.getAxisMotionValue(x).get()||0;if(_t.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[x];S&&(v=$e(S)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ge.postRender(()=>g(u,d)),Ui(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=ib(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>st(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new sf(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:hf(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ge.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!ds(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Gx(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&En(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Kx(s.layoutBox,n):this.constraints=!1,this.elastic=Jx(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Xx(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!En(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=nb(r,s.root,this.visualElement.getTransformPagePoint());let o=qx(s.layout.layoutBox,i);if(n){const a=n(Qx(o));this.hasMutatedConstraints=!!a,a&&(o=lf(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=st(u=>{if(!ds(u,n,this.currentDirection))return;let d=c&&c[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ui(this.visualElement,t),r.start(ua(t,r,0,n,this.visualElement,!1))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ds(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-xe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!En(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=Yx({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!ds(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(xe(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;rb.set(this.visualElement,this);const t=this.visualElement.current,n=hr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();En(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ge.read(r);const o=Ar(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(st(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Qi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ds(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ib(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ob extends nn{constructor(t){super(t),this.removeGroupControls=Qe,this.removeListeners=Qe,this.controls=new sb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hc=e=>(t,n)=>{e&&ge.postRender(()=>e(t,n))};class ab extends nn{constructor(){super(...arguments),this.removePointerDownListener=Qe}onPointerDown(t){this.session=new sf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Hc(t),onStart:Hc(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ge.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=hr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;const n=Gc(e,t.target.x),r=Gc(e,t.target.y);return`${n}% ${r}%`}},cb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Gt.parse(e);if(s.length>5)return r;const i=Gt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=c;const l=xe(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}};class lb extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;by(ub),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ge.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Io.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mf(e){const[t,n]=Xu(),r=y.useContext(No);return m.jsx(lb,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(id),isPresent:t,safeToRemove:n})}const ub={borderRadius:{...rr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rr,borderTopRightRadius:rr,borderBottomLeftRadius:rr,borderBottomRightRadius:rr,boxShadow:cb};function db(e,t,n){const r=Le(e)?e:Tr(e);return r.start(ua("",r,t,n)),r.animation}function fb(e){return e instanceof SVGElement&&e.tagName!=="svg"}const hb=(e,t)=>e.depth-t.depth;class mb{constructor(){this.children=[],this.isDirty=!1}add(t){Yo(this.children,t),this.isDirty=!0}remove(t){Xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hb),this.isDirty=!1,this.children.forEach(t)}}function pb(e,t){const n=St.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ht(r),e(i-t))};return ge.read(r,!0),()=>Ht(r)}const pf=["TopLeft","TopRight","BottomLeft","BottomRight"],gb=pf.length,Kc=e=>typeof e=="string"?parseFloat(e):e,qc=e=>typeof e=="number"||q.test(e);function yb(e,t,n,r,s,i){s?(e.opacity=xe(0,n.opacity!==void 0?n.opacity:1,vb(r)),e.opacityExit=xe(t.opacity!==void 0?t.opacity:1,0,xb(r))):i&&(e.opacity=xe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(In(e,t,r))}function Xc(e,t){e.min=t.min,e.max=t.max}function rt(e,t){Xc(e.x,t.x),Xc(e.y,t.y)}function Jc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Qc(e,t,n,r,s){return e-=t,e=Rs(e,1/n,r),s!==void 0&&(e=Rs(e,1/s,r)),e}function bb(e,t=0,n=1,r=.5,s,i=e,o=e){if(_t.test(t)&&(t=parseFloat(t),t=xe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=xe(i.min,i.max,r);e===i&&(a-=t),e.min=Qc(e.min,t,n,a,s),e.max=Qc(e.max,t,n,a,s)}function el(e,t,[n,r,s],i,o){bb(e,t[n],t[r],t[s],t.scale,i,o)}const wb=["x","scaleX","originX"],_b=["y","scaleY","originY"];function tl(e,t,n,r){el(e.x,t,wb,n?n.x:void 0,r?r.x:void 0),el(e.y,t,_b,n?n.y:void 0,r?r.y:void 0)}function nl(e){return e.translate===0&&e.scale===1}function yf(e){return nl(e.x)&&nl(e.y)}function rl(e,t){return e.min===t.min&&e.max===t.max}function Sb(e,t){return rl(e.x,t.x)&&rl(e.y,t.y)}function sl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vf(e,t){return sl(e.x,t.x)&&sl(e.y,t.y)}function il(e){return $e(e.x)/$e(e.y)}function ol(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Tb{constructor(){this.members=[]}add(t){Yo(this.members,t),t.scheduleRender()}remove(t){if(Xo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Cb(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Ci=["","X","Y","Z"],Ab={visibility:"hidden"},al=1e3;let Eb=0;function Ai(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ge,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xf(r)}function bf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Eb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Rb),this.nodes.forEach(Mb),this.nodes.forEach(Vb),this.nodes.forEach(Nb)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=pb(f,250),bs.hasAnimatedSinceResize&&(bs.hasAnimatedSinceResize=!1,this.nodes.forEach(ll))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||$b,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!vf(this.targetLayout,g),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,S);const C={...qo(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||ll(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ht(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Lb),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$e(this.snapshot.measuredBox.x)&&!$e(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const _=C/1e3;ul(d.x,o.x,_),ul(d.y,o.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fb(this.relativeTarget,this.relativeTargetOrigin,f,_),S&&Sb(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Te()),rt(S,this.relativeTarget)),h&&(this.animationValues=u,yb(u,l,this.latestValues,_,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{bs.hasAnimatedSinceResize=!0,this.currentAnimation=db(0,al,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(al),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&wf(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Te();const d=$e(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=$e(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}rt(a,c),Nn(a,u),mr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Tb),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ai("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cl),this.root.sharedNodes.clear()}}}function kb(e){e.updateLayout()}function Pb(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=$e(f);f.min=r[d].min,f.max=f.min+p}):wf(i,n.layoutBox,r)&&st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=$e(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Pn();mr(a,r,n.layoutBox);const c=Pn();o?mr(c,e.applyTransform(s,!0),n.measuredBox):mr(c,r,n.layoutBox);const l=!yf(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=Te();pr(g,n.layoutBox,f.layoutBox);const h=Te();pr(h,r,p.layoutBox),vf(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Rb(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Nb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jb(e){e.clearSnapshot()}function cl(e){e.clearMeasurements()}function Db(e){e.isLayoutDirty=!1}function Ob(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ll(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mb(e){e.resolveTargetDelta()}function Vb(e){e.calcProjection()}function Lb(e){e.resetSkewAndRotation()}function Ib(e){e.removeLeadSnapshot()}function ul(e,t,n){e.translate=xe(t.translate,0,n),e.scale=xe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dl(e,t,n,r){e.min=xe(t.min,n.min,r),e.max=xe(t.max,n.max,r)}function Fb(e,t,n,r){dl(e.x,t.x,n.x,r),dl(e.y,t.y,n.y,r)}function Bb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $b={duration:.45,ease:[.4,0,.1,1]},fl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hl=fl("applewebkit/")&&!fl("chrome/")?Math.round:Qe;function ml(e){e.min=hl(e.min),e.max=hl(e.max)}function zb(e){ml(e.x),ml(e.y)}function wf(e,t,n){return e==="position"||e==="preserve-aspect"&&!Zx(il(t),il(n),.2)}function Ub(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Wb=bf({attachResizeListener:(e,t)=>Ar(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ei={current:void 0},_f=bf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ei.current){const e=new Wb({});e.mount(window),e.setOptions({layoutScroll:!0}),Ei.current=e}return Ei.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Zb={pan:{Feature:ab},drag:{Feature:ob,ProjectionNode:_f,MeasureLayout:mf}};function Hb(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Sf(e,t){const n=Hb(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function pl(e){return!(e.pointerType==="touch"||rf())}function Gb(e,t,n={}){const[r,s,i]=Sf(e,n),o=a=>{if(!pl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{pl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function gl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ge.postRender(()=>i(t,Kr(t)))}class Kb extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=Gb(t,(n,r)=>(gl(this.node,r,"Start"),s=>gl(this.node,s,"End"))))}unmount(){}}class qb extends nn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gr(Ar(this.node.current,"focus",()=>this.onFocus()),Ar(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tf=(e,t)=>t?e===t?!0:Tf(e,t.parentElement):!1,Yb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xb(e){return Yb.has(e.tagName)||e.tabIndex!==-1}const cr=new WeakSet;function yl(e){return t=>{t.key==="Enter"&&e(t)}}function ki(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Jb=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yl(()=>{if(cr.has(n))return;ki(n,"down");const s=yl(()=>{ki(n,"up")}),i=()=>ki(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function vl(e){return da(e)&&!rf()}function Qb(e,t,n={}){const[r,s,i]=Sf(e,n),o=a=>{const c=a.currentTarget;if(!vl(a)||cr.has(c))return;cr.add(c);const l=t(c,a),u=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!vl(p)||!cr.has(c))&&(cr.delete(c),typeof l=="function"&&l(p,{success:g}))},d=p=>{u(p,n.useGlobalTarget||Tf(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!Xb(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",l=>Jb(l,s),s)}),i}function xl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ge.postRender(()=>i(t,Kr(t)))}class ew extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=Qb(t,(n,r)=>(xl(this.node,r,"Start"),(s,{success:i})=>xl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const no=new WeakMap,Pi=new WeakMap,tw=e=>{const t=no.get(e.target);t&&t(e)},nw=e=>{e.forEach(tw)};function rw({root:e,...t}){const n=e||document;Pi.has(n)||Pi.set(n,{});const r=Pi.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(nw,{root:e,...t})),r[s]}function sw(e,t,n){const r=rw(t);return no.set(e,n),r.observe(e),()=>{no.delete(e),r.unobserve(e)}}const iw={some:0,all:1};class ow extends nn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:iw[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return sw(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(aw(t,n))&&this.startObserver()}unmount(){}}function aw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cw={inView:{Feature:ow},tap:{Feature:ew},focus:{Feature:qb},hover:{Feature:Kb}},lw={layout:{ProjectionNode:_f,MeasureLayout:mf}},ro={current:null},Cf={current:!1};function uw(){if(Cf.current=!0,!!Oo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ro.current=e.matches;e.addListener(t),t()}else ro.current=!1}const dw=[...Wd,Me,Gt],fw=e=>dw.find(Ud(e)),hw=new WeakMap;function mw(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Le(s))e.addValue(r,s);else if(Le(i))e.addValue(r,Tr(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Tr(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=aa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=St.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Cf.current||uw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ro.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ht(this.notifyUpdate),Ht(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=wn.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ln){const n=Ln[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&($d(s)||jd(s))?s=parseFloat(s):!fw(s)&&Gt.test(n)&&(s=Id(t,n)),this.setBaseTarget(t,Le(s)?s.get():s)),Le(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Go(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Le(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Af extends pw{constructor(){super(...arguments),this.KeyframeResolver=Zd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gw(e){return window.getComputedStyle(e)}class yw extends Af{constructor(){super(...arguments),this.type="html",this.renderInstance=md}readValueFromInstance(t,n){if(wn.has(n)){const r=oa(n);return r&&r.default||0}else{const r=gw(t),s=(Fo(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ff(t,n)}build(t,n,r){zo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ko(t,n,r)}}class vw extends Af{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&hd(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=oa(n);return r&&r.default||0}return n=pd.has(n)?n:Lo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yd(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ge.postRender(this.updateDimensions)}build(t,n,r){Zo(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){gd(t,n,r,s)}mount(t){this.isSVGTag=Ho(t.tagName),super.mount(t)}}const xw=(e,t)=>Wo(e)?new vw(t):new yw(t,{allowProjection:e!==y.Fragment}),bw=Wy({...Mx,...cw,...Zb,...lw},xw),ws=oy(bw);var Ri,wl;function ww(){if(wl)return Ri;wl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof ns=="object"&&ns&&ns.Object===Object&&ns,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(_,A,k){var E,j,D,I,R,B,z=0,J=!1,K=!1,W=!0;if(typeof _!="function")throw new TypeError(e);A=C(A)||0,v(k)&&(J=!!k.leading,K="maxWait"in k,D=K?p(C(k.maxWait)||0,A):D,W="trailing"in k?!!k.trailing:W);function U(ie){var ue=E,_e=j;return E=j=void 0,z=ie,I=_.apply(_e,ue),I}function Q(ie){return z=ie,R=setTimeout(De,A),J?U(ie):I}function ce(ie){var ue=ie-B,_e=ie-z,ke=A-ue;return K?g(ke,D-_e):ke}function le(ie){var ue=ie-B,_e=ie-z;return B===void 0||ue>=A||ue<0||K&&_e>=D}function De(){var ie=h();if(le(ie))return qe(ie);R=setTimeout(De,ce(ie))}function qe(ie){return R=void 0,W&&E?U(ie):(E=j=void 0,I)}function Oe(){R!==void 0&&clearTimeout(R),z=0,E=B=j=R=void 0}function ot(){return R===void 0?I:qe(h())}function Fe(){var ie=h(),ue=le(ie);if(E=arguments,j=this,B=ie,ue){if(R===void 0)return Q(B);if(K)return R=setTimeout(De,A),U(B)}return R===void 0&&(R=setTimeout(De,A)),I}return Fe.cancel=Oe,Fe.flush=ot,Fe}function v(_){var A=typeof _;return!!_&&(A=="object"||A=="function")}function b(_){return!!_&&typeof _=="object"}function S(_){return typeof _=="symbol"||b(_)&&f.call(_)==n}function C(_){if(typeof _=="number")return _;if(S(_))return t;if(v(_)){var A=typeof _.valueOf=="function"?_.valueOf():_;_=v(A)?A+"":A}if(typeof _!="string")return _===0?_:+_;_=_.replace(r,"");var k=i.test(_);return k||o.test(_)?a(_.slice(2),k?2:8):s.test(_)?t:+_}return Ri=x,Ri}ww();var _w=typeof window<"u"?y.useLayoutEffect:y.useEffect,Sw=typeof window>"u";function so(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>Sw?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return _w(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const VT=({className:e,stage:t})=>{const n=so("(min-width: 768px");return m.jsx("div",{className:e,children:m.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:m.jsxs("div",{className:"relative h-14 w-full",children:[m.jsx("div",{className:ee("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),m.jsx(ws.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:ee("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),m.jsx(ws.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:ee("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),m.jsx(ws.div,{className:ee("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),m.jsx("div",{className:ee("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),m.jsx("div",{className:ee("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var qr=e=>e.type==="checkbox",un=e=>e instanceof Date,Be=e=>e==null;const Ef=e=>typeof e=="object";var Ee=e=>!Be(e)&&!Array.isArray(e)&&Ef(e)&&!un(e),kf=e=>Ee(e)&&e.target?qr(e.target)?e.target.checked:e.target.value:e,Tw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Pf=(e,t)=>e.has(Tw(t)),Cw=e=>{const t=e.constructor&&e.constructor.prototype;return Ee(t)&&t.hasOwnProperty("isPrototypeOf")},fa=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ze(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(fa&&(e instanceof Blob||r))&&(n||Ee(e)))if(t=n?[]:{},!n&&!Cw(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ze(e[s]));else return e;return t}var ei=e=>Array.isArray(e)?e.filter(Boolean):[],Ce=e=>e===void 0,V=(e,t,n)=>{if(!t||!Ee(e))return n;const r=ei(t.split(/[,[\].]+?/)).reduce((s,i)=>Be(s)?s:s[i],e);return Ce(r)||r===e?Ce(e[t])?n:e[t]:r},it=e=>typeof e=="boolean",ha=e=>/^\w*$/.test(e),Rf=e=>ei(e.replace(/["|']|\]/g,"").split(/\.|\[/)),fe=(e,t,n)=>{let r=-1;const s=ha(t)?[t]:Rf(t),i=s.length,o=i-1;for(;++rde.useContext(Nf),Aw=e=>{const{children:t,...n}=e;return de.createElement(Nf.Provider,{value:n},t)};var jf=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==ct.all&&(t._proxyFormState[o]=!r||ct.all),n&&(n[o]=!0),e[o]}});return s},He=e=>Ee(e)&&!Object.keys(e).length,Df=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return He(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||ct.all))},gr=e=>Array.isArray(e)?e:[e],Of=(e,t,n)=>!e||!t||e===t||gr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ma(e){const t=de.useRef(e);t.current=e,de.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Ew(e){const t=ti(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=de.useState(n._formState),c=de.useRef(!0),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=de.useRef(s);return u.current=s,ma({disabled:r,next:d=>c.current&&Of(u.current,d.name,i)&&Df(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),de.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),de.useMemo(()=>jf(o,n,l.current,!1),[o,n])}var wt=e=>typeof e=="string",Mf=(e,t,n,r,s)=>wt(e)?(r&&t.watch.add(e),V(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),V(n,i))):(r&&(t.watchAll=!0),n);function kw(e){const t=ti(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=de.useRef(r);a.current=r,ma({disabled:i,subject:n._subjects.values,next:u=>{Of(a.current,u.name,o)&&l(Ze(Mf(a.current,n._names,u.values||n._formValues,!1,s)))}});const[c,l]=de.useState(n._getWatch(r,s));return de.useEffect(()=>n._removeUnmounted()),c}function Pw(e){const t=ti(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Pf(s._names.array,n),a=kw({control:s,name:n,defaultValue:V(s._formValues,n,V(s._defaultValues,n,e.defaultValue)),exact:!0}),c=Ew({control:s,name:n,exact:!0}),l=de.useRef(s.register(n,{...e.rules,value:a,...it(e.disabled)?{disabled:e.disabled}:{}})),u=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!V(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!V(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!V(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!V(c.validatingFields,n)},error:{enumerable:!0,get:()=>V(c.errors,n)}}),[c,n]),d=de.useMemo(()=>({name:n,value:a,...it(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:f=>l.current.onChange({target:{value:kf(f),name:n},type:Ns.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:V(s._formValues,n),name:n},type:Ns.BLUR}),ref:f=>{const p=V(s._fields,n);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,c.disabled,a,s._fields]);return de.useEffect(()=>{const f=s._options.shouldUnregister||i,p=(g,h)=>{const x=V(s._fields,g);x&&x._f&&(x._f.mount=h)};if(p(n,!0),f){const g=Ze(V(s._options.defaultValues,n));fe(s._defaultValues,n,g),Ce(V(s._formValues,n))&&fe(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):p(n,!1)}},[n,s,o,i]),de.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const Rw=e=>e.render(Pw(e));var Vf=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},_l=e=>({isOnSubmit:!e||e===ct.onSubmit,isOnBlur:e===ct.onBlur,isOnChange:e===ct.onChange,isOnAll:e===ct.all,isOnTouch:e===ct.onTouched}),Sl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const yr=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=V(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(yr(a,t))break}else if(Ee(a)&&yr(a,t))break}}};var Nw=(e,t,n)=>{const r=gr(V(e,n));return fe(r,"root",t[n]),fe(e,n,r),e},pa=e=>e.type==="file",bt=e=>typeof e=="function",js=e=>{if(!fa)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_s=e=>wt(e),ga=e=>e.type==="radio",Ds=e=>e instanceof RegExp;const Tl={value:!1,isValid:!1},Cl={value:!0,isValid:!0};var Lf=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ce(e[0].attributes.value)?Ce(e[0].value)||e[0].value===""?Cl:{value:e[0].value,isValid:!0}:Cl:Tl}return Tl};const Al={isValid:!1,value:null};var If=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Al):Al;function El(e,t,n="validate"){if(_s(e)||Array.isArray(e)&&e.every(_s)||it(e)&&!e)return{type:n,message:_s(e)?e:"",ref:t}}var Cn=e=>Ee(e)&&!Ds(e)?e:{value:e,message:""},kl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=V(n,h);if(!v||t.has(h))return{};const S=a?a[0]:o,C=R=>{s&&S.reportValidity&&(S.setCustomValidity(it(R)?"":R||""),S.reportValidity())},_={},A=ga(o),k=qr(o),E=A||k,j=(x||pa(o))&&Ce(o.value)&&Ce(b)||js(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=Vf.bind(null,h,r,_),I=(R,B,z,J=Nt.maxLength,K=Nt.minLength)=>{const W=R?B:z;_[h]={type:R?J:K,message:W,ref:o,...D(R?J:K,W)}};if(i?!Array.isArray(b)||!b.length:c&&(!E&&(j||Be(b))||it(b)&&!b||k&&!Lf(a).isValid||A&&!If(a).isValid)){const{value:R,message:B}=_s(c)?{value:!!c,message:c}:Cn(c);if(R&&(_[h]={type:Nt.required,message:B,ref:S,...D(Nt.required,B)},!r))return C(B),_}if(!j&&(!Be(d)||!Be(f))){let R,B;const z=Cn(f),J=Cn(d);if(!Be(b)&&!isNaN(b)){const K=o.valueAsNumber||b&&+b;Be(z.value)||(R=K>z.value),Be(J.value)||(B=Knew Date(new Date().toDateString()+" "+ce),U=o.type=="time",Q=o.type=="week";wt(z.value)&&b&&(R=U?W(b)>W(z.value):Q?b>z.value:K>new Date(z.value)),wt(J.value)&&b&&(B=U?W(b)+R.value,J=!Be(B.value)&&b.length<+B.value;if((z||J)&&(I(z,R.message,B.message),!r))return C(_[h].message),_}if(p&&!j&&wt(b)){const{value:R,message:B}=Cn(p);if(Ds(R)&&!b.match(R)&&(_[h]={type:Nt.pattern,message:B,ref:o,...D(Nt.pattern,B)},!r))return C(B),_}if(g){if(bt(g)){const R=await g(b,n),B=El(R,S);if(B&&(_[h]={...B,...D(Nt.validate,B.message)},!r))return C(B.message),_}else if(Ee(g)){let R={};for(const B in g){if(!He(R)&&!r)break;const z=El(await g[B](b,n),S,B);z&&(R={...z,...D(B,z.message)},C(z.message),r&&(_[h]=R))}if(!He(R)&&(_[h]={ref:S,...R},!r))return _}}return C(!0),_};function jw(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},io=e=>Be(e)||!Ef(e);function Wt(e,t){if(io(e)||io(t))return e===t;if(un(e)&&un(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(un(i)&&un(o)||Ee(i)&&Ee(o)||Array.isArray(i)&&Array.isArray(o)?!Wt(i,o):i!==o)return!1}}return!0}var Ff=e=>e.type==="select-multiple",Ow=e=>ga(e)||qr(e),ji=e=>js(e)&&e.isConnected,Bf=e=>{for(const t in e)if(bt(e[t]))return!0;return!1};function Os(e,t={}){const n=Array.isArray(e);if(Ee(e)||n)for(const r in e)Array.isArray(e[r])||Ee(e[r])&&!Bf(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Os(e[r],t[r])):Be(e[r])||(t[r]=!0);return t}function $f(e,t,n){const r=Array.isArray(e);if(Ee(e)||r)for(const s in e)Array.isArray(e[s])||Ee(e[s])&&!Bf(e[s])?Ce(t)||io(n[s])?n[s]=Array.isArray(e[s])?Os(e[s],[]):{...Os(e[s])}:$f(e[s],Be(t)?{}:t[s],n[s]):n[s]=!Wt(e[s],t[s]);return n}var sr=(e,t)=>$f(e,t,Os(t)),zf=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ce(e)?e:t?e===""?NaN:e&&+e:n&&wt(e)?new Date(e):r?r(e):e;function Di(e){const t=e.ref;return pa(t)?t.files:ga(t)?If(e.refs).value:Ff(t)?[...t.selectedOptions].map(({value:n})=>n):qr(t)?Lf(e.refs).value:zf(Ce(t.value)?e.ref.value:t.value,e)}var Mw=(e,t,n,r)=>{const s={};for(const i of e){const o=V(t,i);o&&fe(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},ir=e=>Ce(e)?e:Ds(e)?e.source:Ee(e)?Ds(e.value)?e.value.source:e.value:e;const Pl="AsyncFunction";var Vw=e=>!!e&&!!e.validate&&!!(bt(e.validate)&&e.validate.constructor.name===Pl||Ee(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Pl)),Lw=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Rl(e,t,n){const r=V(e,n);if(r||ha(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=V(t,i),a=V(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Iw=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Fw=(e,t)=>!ei(V(e,t)).length&&Re(e,t);const Bw={mode:ct.onSubmit,reValidateMode:ct.onChange,shouldFocusError:!0};function $w(e={}){let t={...Bw,...e},n={submitCount:0,isDirty:!1,isLoading:bt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ee(t.defaultValues)||Ee(t.values)?Ze(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ze(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ni(),array:Ni(),state:Ni()},f=_l(t.mode),p=_l(t.reValidateMode),g=t.criteriaMode===ct.all,h=w=>T=>{clearTimeout(l),l=setTimeout(w,T)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const T=t.resolver?He((await E()).errors):await D(r,!0);T!==n.isValid&&d.state.next({isValid:T})}},v=(w,T)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(P=>{P&&(T?fe(n.validatingFields,P,T):Re(n.validatingFields,P))}),d.state.next({validatingFields:n.validatingFields,isValidating:!He(n.validatingFields)}))},b=(w,T=[],P,L,M=!0,O=!0)=>{if(L&&P&&!t.disabled){if(o.action=!0,O&&Array.isArray(V(r,w))){const G=P(V(r,w),L.argA,L.argB);M&&fe(r,w,G)}if(O&&Array.isArray(V(n.errors,w))){const G=P(V(n.errors,w),L.argA,L.argB);M&&fe(n.errors,w,G),Fw(n.errors,w)}if(u.touchedFields&&O&&Array.isArray(V(n.touchedFields,w))){const G=P(V(n.touchedFields,w),L.argA,L.argB);M&&fe(n.touchedFields,w,G)}u.dirtyFields&&(n.dirtyFields=sr(s,i)),d.state.next({name:w,isDirty:R(w,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else fe(i,w,T)},S=(w,T)=>{fe(n.errors,w,T),d.state.next({errors:n.errors})},C=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},_=(w,T,P,L)=>{const M=V(r,w);if(M){const O=V(i,w,Ce(P)?V(s,w):P);Ce(O)||L&&L.defaultChecked||T?fe(i,w,T?O:Di(M._f)):J(w,O),o.mount&&x()}},A=(w,T,P,L,M)=>{let O=!1,G=!1;const ne={name:w};if(!t.disabled){const Pe=!!(V(r,w)&&V(r,w)._f&&V(r,w)._f.disabled);if(!P||L){u.isDirty&&(G=n.isDirty,n.isDirty=ne.isDirty=R(),O=G!==ne.isDirty);const Se=Pe||Wt(V(s,w),T);G=!!(!Pe&&V(n.dirtyFields,w)),Se||Pe?Re(n.dirtyFields,w):fe(n.dirtyFields,w,!0),ne.dirtyFields=n.dirtyFields,O=O||u.dirtyFields&&G!==!Se}if(P){const Se=V(n.touchedFields,w);Se||(fe(n.touchedFields,w,P),ne.touchedFields=n.touchedFields,O=O||u.touchedFields&&Se!==P)}O&&M&&d.state.next(ne)}return O?ne:{}},k=(w,T,P,L)=>{const M=V(n.errors,w),O=u.isValid&&it(T)&&n.isValid!==T;if(t.delayError&&P?(c=h(()=>S(w,P)),c(t.delayError)):(clearTimeout(l),c=null,P?fe(n.errors,w,P):Re(n.errors,w)),(P?!Wt(M,P):M)||!He(L)||O){const G={...L,...O&&it(T)?{isValid:T}:{},errors:n.errors,name:w};n={...n,...G},d.state.next(G)}},E=async w=>{v(w,!0);const T=await t.resolver(i,t.context,Mw(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),T},j=async w=>{const{errors:T}=await E(w);if(w)for(const P of w){const L=V(T,P);L?fe(n.errors,P,L):Re(n.errors,P)}else n.errors=T;return T},D=async(w,T,P={valid:!0})=>{for(const L in w){const M=w[L];if(M){const{_f:O,...G}=M;if(O){const ne=a.array.has(O.name),Pe=M._f&&Vw(M._f);Pe&&u.validatingFields&&v([L],!0);const Se=await kl(M,a.disabled,i,g,t.shouldUseNativeValidation&&!T,ne);if(Pe&&u.validatingFields&&v([L]),Se[O.name]&&(P.valid=!1,T))break;!T&&(V(Se,O.name)?ne?Nw(n.errors,Se,O.name):fe(n.errors,O.name,Se[O.name]):Re(n.errors,O.name))}!He(G)&&await D(G,T,P)}}return P.valid},I=()=>{for(const w of a.unMount){const T=V(r,w);T&&(T._f.refs?T._f.refs.every(P=>!ji(P)):!ji(T._f.ref))&&Fe(w)}a.unMount=new Set},R=(w,T)=>!t.disabled&&(w&&T&&fe(i,w,T),!Wt(le(),s)),B=(w,T,P)=>Mf(w,a,{...o.mount?i:Ce(T)?s:wt(w)?{[w]:T}:T},P,T),z=w=>ei(V(o.mount?i:s,w,t.shouldUnregister?V(s,w,[]):[])),J=(w,T,P={})=>{const L=V(r,w);let M=T;if(L){const O=L._f;O&&(!O.disabled&&fe(i,w,zf(T,O)),M=js(O.ref)&&Be(T)?"":T,Ff(O.ref)?[...O.ref.options].forEach(G=>G.selected=M.includes(G.value)):O.refs?qr(O.ref)?O.refs.length>1?O.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(M)?!!M.find(ne=>ne===G.value):M===G.value)):O.refs[0]&&(O.refs[0].checked=!!M):O.refs.forEach(G=>G.checked=G.value===M):pa(O.ref)?O.ref.value="":(O.ref.value=M,O.ref.type||d.values.next({name:w,values:{...i}})))}(P.shouldDirty||P.shouldTouch)&&A(w,M,P.shouldTouch,P.shouldDirty,!0),P.shouldValidate&&ce(w)},K=(w,T,P)=>{for(const L in T){const M=T[L],O=`${w}.${L}`,G=V(r,O);(a.array.has(w)||Ee(M)||G&&!G._f)&&!un(M)?K(O,M,P):J(O,M,P)}},W=(w,T,P={})=>{const L=V(r,w),M=a.array.has(w),O=Ze(T);fe(i,w,O),M?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&P.shouldDirty&&d.state.next({name:w,dirtyFields:sr(s,i),isDirty:R(w,O)})):L&&!L._f&&!Be(O)?K(w,O,P):J(w,O,P),Sl(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},U=async w=>{o.mount=!0;const T=w.target;let P=T.name,L=!0;const M=V(r,P),O=()=>T.type?Di(M._f):kf(w),G=ne=>{L=Number.isNaN(ne)||un(ne)&&isNaN(ne.getTime())||Wt(ne,V(i,P,ne))};if(M){let ne,Pe;const Se=O(),yt=w.type===Ns.BLUR||w.type===Ns.FOCUS_OUT,Jn=!Lw(M._f)&&!t.resolver&&!V(n.errors,P)&&!M._f.deps||Iw(yt,V(n.touchedFields,P),n.isSubmitted,p,f),vt=Sl(P,a,yt);fe(i,P,Se),yt?(M._f.onBlur&&M._f.onBlur(w),c&&c(0)):M._f.onChange&&M._f.onChange(w);const sn=A(P,Se,yt,!1),Qn=!He(sn)||vt;if(!yt&&d.values.next({name:P,type:w.type,values:{...i}}),Jn)return u.isValid&&(t.mode==="onBlur"&&yt?x():yt||x()),Qn&&d.state.next({name:P,...vt?{}:sn});if(!yt&&vt&&d.state.next({...n}),t.resolver){const{errors:on}=await E([P]);if(G(Se),L){const ci=Rl(n.errors,r,P),ts=Rl(on,r,ci.name||P);ne=ts.error,P=ts.name,Pe=He(on)}}else v([P],!0),ne=(await kl(M,a.disabled,i,g,t.shouldUseNativeValidation))[P],v([P]),G(Se),L&&(ne?Pe=!1:u.isValid&&(Pe=await D(r,!0)));L&&(M._f.deps&&ce(M._f.deps),k(P,Pe,ne,sn))}},Q=(w,T)=>{if(V(n.errors,T)&&w.focus)return w.focus(),1},ce=async(w,T={})=>{let P,L;const M=gr(w);if(t.resolver){const O=await j(Ce(w)?w:M);P=He(O),L=w?!M.some(G=>V(O,G)):P}else w?(L=(await Promise.all(M.map(async O=>{const G=V(r,O);return await D(G&&G._f?{[O]:G}:G)}))).every(Boolean),!(!L&&!n.isValid)&&x()):L=P=await D(r);return d.state.next({...!wt(w)||u.isValid&&P!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:P}:{},errors:n.errors}),T.shouldFocus&&!L&&yr(r,Q,w?M:a.mount),L},le=w=>{const T={...o.mount?i:s};return Ce(w)?T:wt(w)?V(T,w):w.map(P=>V(T,P))},De=(w,T)=>({invalid:!!V((T||n).errors,w),isDirty:!!V((T||n).dirtyFields,w),error:V((T||n).errors,w),isValidating:!!V(n.validatingFields,w),isTouched:!!V((T||n).touchedFields,w)}),qe=w=>{w&&gr(w).forEach(T=>Re(n.errors,T)),d.state.next({errors:w?n.errors:{}})},Oe=(w,T,P)=>{const L=(V(r,w,{_f:{}})._f||{}).ref,M=V(n.errors,w)||{},{ref:O,message:G,type:ne,...Pe}=M;fe(n.errors,w,{...Pe,...T,ref:L}),d.state.next({name:w,errors:n.errors,isValid:!1}),P&&P.shouldFocus&&L&&L.focus&&L.focus()},ot=(w,T)=>bt(w)?d.values.subscribe({next:P=>w(B(void 0,T),P)}):B(w,T,!0),Fe=(w,T={})=>{for(const P of w?gr(w):a.mount)a.mount.delete(P),a.array.delete(P),T.keepValue||(Re(r,P),Re(i,P)),!T.keepError&&Re(n.errors,P),!T.keepDirty&&Re(n.dirtyFields,P),!T.keepTouched&&Re(n.touchedFields,P),!T.keepIsValidating&&Re(n.validatingFields,P),!t.shouldUnregister&&!T.keepDefaultValue&&Re(s,P);d.values.next({values:{...i}}),d.state.next({...n,...T.keepDirty?{isDirty:R()}:{}}),!T.keepIsValid&&x()},ie=({disabled:w,name:T,field:P,fields:L})=>{(it(w)&&o.mount||w||a.disabled.has(T))&&(w?a.disabled.add(T):a.disabled.delete(T),A(T,Di(P?P._f:V(L,T)._f),!1,!1,!0))},ue=(w,T={})=>{let P=V(r,w);const L=it(T.disabled)||it(t.disabled);return fe(r,w,{...P||{},_f:{...P&&P._f?P._f:{ref:{name:w}},name:w,mount:!0,...T}}),a.mount.add(w),P?ie({field:P,disabled:it(T.disabled)?T.disabled:t.disabled,name:w}):_(w,!0,T.value),{...L?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:ir(T.min),max:ir(T.max),minLength:ir(T.minLength),maxLength:ir(T.maxLength),pattern:ir(T.pattern)}:{},name:w,onChange:U,onBlur:U,ref:M=>{if(M){ue(w,T),P=V(r,w);const O=Ce(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,G=Ow(O),ne=P._f.refs||[];if(G?ne.find(Pe=>Pe===O):O===P._f.ref)return;fe(r,w,{_f:{...P._f,...G?{refs:[...ne.filter(ji),O,...Array.isArray(V(s,w))?[{}]:[]],ref:{type:O.type,name:w}}:{ref:O}}}),_(w,!1,void 0,O)}else P=V(r,w,{}),P._f&&(P._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(Pf(a.array,w)&&o.action)&&a.unMount.add(w)}}},_e=()=>t.shouldFocusError&&yr(r,Q,a.mount),ke=w=>{it(w)&&(d.state.next({disabled:w}),yr(r,(T,P)=>{const L=V(r,P);L&&(T.disabled=L._f.disabled||w,Array.isArray(L._f.refs)&&L._f.refs.forEach(M=>{M.disabled=L._f.disabled||w}))},0,!1))},he=(w,T)=>async P=>{let L;P&&(P.preventDefault&&P.preventDefault(),P.persist&&P.persist());let M=Ze(i);if(a.disabled.size)for(const O of a.disabled)fe(M,O,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:O,values:G}=await E();n.errors=O,M=G}else await D(r);if(Re(n.errors,"root"),He(n.errors)){d.state.next({errors:{}});try{await w(M,P)}catch(O){L=O}}else T&&await T({...n.errors},P),_e(),setTimeout(_e);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:He(n.errors)&&!L,submitCount:n.submitCount+1,errors:n.errors}),L)throw L},Z=(w,T={})=>{V(r,w)&&(Ce(T.defaultValue)?W(w,Ze(V(s,w))):(W(w,T.defaultValue),fe(s,w,Ze(T.defaultValue))),T.keepTouched||Re(n.touchedFields,w),T.keepDirty||(Re(n.dirtyFields,w),n.isDirty=T.defaultValue?R(w,Ze(V(s,w))):R()),T.keepError||(Re(n.errors,w),u.isValid&&x()),d.state.next({...n}))},oe=(w,T={})=>{const P=w?Ze(w):s,L=Ze(P),M=He(w),O=M?s:L;if(T.keepDefaultValues||(s=P),!T.keepValues){if(T.keepDirtyValues){const G=new Set([...a.mount,...Object.keys(sr(s,i))]);for(const ne of Array.from(G))V(n.dirtyFields,ne)?fe(O,ne,V(i,ne)):W(ne,V(O,ne))}else{if(fa&&Ce(w))for(const G of a.mount){const ne=V(r,G);if(ne&&ne._f){const Pe=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(js(Pe)){const Se=Pe.closest("form");if(Se){Se.reset();break}}}}r={}}i=t.shouldUnregister?T.keepDefaultValues?Ze(s):{}:Ze(O),d.array.next({values:{...O}}),d.values.next({values:{...O}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:M?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!Wt(w,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&i?sr(s,i):n.dirtyFields:T.keepDefaultValues&&w?sr(s,w):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},me=(w,T)=>oe(bt(w)?w(i):w,T);return{control:{register:ue,unregister:Fe,getFieldState:De,handleSubmit:he,setError:Oe,_executeSchema:E,_getWatch:B,_getDirty:R,_updateValid:x,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:ie,_getFieldArray:z,_reset:oe,_resetDefaultValues:()=>bt(t.defaultValues)&&t.defaultValues().then(w=>{me(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:ke,_subjects:d,_proxyFormState:u,_setErrors:C,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:ce,register:ue,handleSubmit:he,watch:ot,setValue:W,getValues:le,reset:me,resetField:Z,clearErrors:qe,unregister:Fe,setError:Oe,setFocus:(w,T={})=>{const P=V(r,w),L=P&&P._f;if(L){const M=L.refs?L.refs[0]:L.ref;M.focus&&(M.focus(),T.shouldSelect&&bt(M.select)&&M.select())}},getFieldState:De}}function zw(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[r,s]=de.useState({isDirty:!1,isValidating:!1,isLoading:bt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:bt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$w(e),formState:r});const i=t.current.control;return i._options=e,ma({subject:i._subjects.state,next:o=>{Df(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),de.useEffect(()=>{e.values&&!Wt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),de.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),de.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),de.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=jf(r,i),t.current}var Uw="Label",Uf=y.forwardRef((e,t)=>m.jsx(We.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Uf.displayName=Uw;var Wf=Uf;const Ww=Po("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zf=y.forwardRef(({className:e,...t},n)=>m.jsx(Wf,{ref:n,className:ee(Ww(),e),...t}));Zf.displayName=Wf.displayName;const LT=Aw,Hf=y.createContext({}),Zw=({...e})=>m.jsx(Hf.Provider,{value:{name:e.name},children:m.jsx(Rw,{...e})}),ni=()=>{const e=y.useContext(Hf),t=y.useContext(Gf),{getFieldState:n,formState:r}=ti(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Gf=y.createContext({}),Kf=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return m.jsx(Gf.Provider,{value:{id:r},children:m.jsx("div",{ref:n,className:ee("space-y-2",e),...t})})});Kf.displayName="FormItem";const qf=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=ni();return m.jsx(Zf,{ref:n,className:ee(r&&"text-destructive",e),htmlFor:s,...t})});qf.displayName="FormLabel";const Yf=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=ni();return m.jsx(Zn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});Yf.displayName="FormControl";const Hw=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=ni();return m.jsx("p",{ref:n,id:r,className:ee("text-[0.8rem] text-muted-foreground",e),...t})});Hw.displayName="FormDescription";const Xf=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=ni(),o=s?String(s==null?void 0:s.message):t;return o?m.jsx("p",{ref:r,id:i,className:ee("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Xf.displayName="FormMessage";const oo=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?m.jsx("input",{type:t,className:ee("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):m.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[m.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:ee("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),m.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[m.jsx(Kp,{className:"cursor-pointer",size:16})," Upload file"]})]}));oo.displayName="Input";const Jf=y.forwardRef(({className:e,...t},n)=>m.jsx("textarea",{className:ee("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Jf.displayName="Textarea";const IT=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>m.jsx(Zw,{control:e,name:t,render:({field:p})=>m.jsxs(Kf,{className:ee(o,"flex flex-col w-full relative"),children:[m.jsx(qf,{className:ee("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),m.jsx(Yf,{children:m.jsx(m.Fragment,{children:c?m.jsx(Jf,{rows:3,...p,placeholder:r,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?m.jsx(oo,{...p,type:i,placeholder:r,disabled:a,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):m.jsxs("div",{className:"relative",children:[m.jsx(oo,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),p.onChange(h),d&&d(g)},disabled:a}),p.value&&m.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",p.value.name]})]})})}),m.jsx(Xf,{className:ee("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),FT=({className:e,delay:t=.15})=>m.jsxs(ws.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:ee("flex flex-col gap-8 my-16",e),children:[m.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),m.jsx(Ae,{className:"w-fit mx-auto",to:"/",children:m.jsx(Ge,{variant:"outline",children:"Вернуться на главную"})})]}),Gw=({className:e,slides:t,active:n,scrollTo:r})=>m.jsx("div",{className:ee("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>m.jsx("span",{onClick:()=>r==null?void 0:r(i),className:ee(n===i?"dot-active":"dot")},i))}),Kw=["top","right","bottom","left"],Kt=Math.min,Xe=Math.max,Ms=Math.round,fs=Math.floor,Tt=e=>({x:e,y:e}),qw={left:"right",right:"left",bottom:"top",top:"bottom"},Yw={start:"end",end:"start"};function ao(e,t,n){return Xe(e,Kt(t,n))}function Lt(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function Yn(e){return e.split("-")[1]}function ya(e){return e==="x"?"y":"x"}function va(e){return e==="y"?"height":"width"}function qt(e){return["top","bottom"].includes(It(e))?"y":"x"}function xa(e){return ya(qt(e))}function Xw(e,t,n){n===void 0&&(n=!1);const r=Yn(e),s=xa(e),i=va(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Vs(o)),[o,Vs(o)]}function Jw(e){const t=Vs(e);return[co(e),t,co(t)]}function co(e){return e.replace(/start|end/g,t=>Yw[t])}function Qw(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function e0(e,t,n,r){const s=Yn(e);let i=Qw(It(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(co)))),i}function Vs(e){return e.replace(/left|right|bottom|top/g,t=>qw[t])}function t0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qf(e){return typeof e!="number"?t0(e):{top:e,right:e,bottom:e,left:e}}function Ls(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Nl(e,t,n){let{reference:r,floating:s}=e;const i=qt(t),o=xa(t),a=va(o),c=It(t),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Yn(t)){case"start":p[o]-=f*(n&&l?-1:1);break;case"end":p[o]+=f*(n&&l?-1:1);break}return p}const n0=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Nl(l,r,c),f=r,p={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Lt(e,t)||{};if(l==null)return{};const d=Qf(u),f={x:n,y:r},p=xa(s),g=va(p),h=await o.getDimensions(l),x=p==="y",v=x?"top":"left",b=x?"bottom":"right",S=x?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-f[p]-i.floating[g],_=f[p]-i.reference[p],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let k=A?A[S]:0;(!k||!await(o.isElement==null?void 0:o.isElement(A)))&&(k=a.floating[S]||i.floating[g]);const E=C/2-_/2,j=k/2-h[g]/2-1,D=Kt(d[v],j),I=Kt(d[b],j),R=D,B=k-h[g]-I,z=k/2-h[g]/2+E,J=ao(R,z,B),K=!c.arrow&&Yn(s)!=null&&z!==J&&i.reference[g]/2-(zz<=0)){var I,R;const z=(((I=i.flip)==null?void 0:I.index)||0)+1,J=k[z];if(J)return{data:{index:z,overflows:D},reset:{placement:J}};let K=(R=D.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:R.placement;if(!K)switch(p){case"bestFit":{var B;const W=(B=D.filter(U=>{if(A){const Q=qt(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,ce)=>Q+ce,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:B[0];W&&(K=W);break}case"initialPlacement":K=a;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function jl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dl(e){return Kw.some(t=>e[t]>=0)}const i0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Lt(e,t);switch(r){case"referenceHidden":{const i=await Er(t,{...s,elementContext:"reference"}),o=jl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Dl(o)}}}case"escaped":{const i=await Er(t,{...s,altBoundary:!0}),o=jl(i,n.floating);return{data:{escapedOffsets:o,escaped:Dl(o)}}}default:return{}}}}};async function o0(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=It(n),a=Yn(n),c=qt(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Lt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const a0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await o0(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},c0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...c}=Lt(e,t),l={x:n,y:r},u=await Er(t,c),d=qt(It(s)),f=ya(d);let p=l[f],g=l[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=p+u[x],S=p-u[v];p=ao(b,p,S)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],S=g-u[v];g=ao(b,g,S)}const h=a.fn({...t,[f]:p,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},l0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Lt(e,t),u={x:n,y:r},d=qt(s),f=ya(d);let p=u[f],g=u[d];const h=Lt(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const S=f==="y"?"height":"width",C=i.reference[f]-i.floating[S]+x.mainAxis,_=i.reference[f]+i.reference[S]-x.mainAxis;p_&&(p=_)}if(l){var v,b;const S=f==="y"?"width":"height",C=["top","left"].includes(It(s)),_=i.reference[d]-i.floating[S]+(C&&((v=o.offset)==null?void 0:v[d])||0)+(C?0:x.crossAxis),A=i.reference[d]+i.reference[S]+(C?0:((b=o.offset)==null?void 0:b[d])||0)-(C?x.crossAxis:0);g<_?g=_:g>A&&(g=A)}return{[f]:p,[d]:g}}}},u0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Lt(e,t),u=await Er(t,l),d=It(s),f=Yn(s),p=qt(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,S=g-u.left-u.right,C=Kt(h-u[x],b),_=Kt(g-u[v],S),A=!t.middlewareData.shift;let k=C,E=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=b),A&&!f){const D=Xe(u.left,0),I=Xe(u.right,0),R=Xe(u.top,0),B=Xe(u.bottom,0);p?E=g-2*(D!==0||I!==0?D+I:Xe(u.left,u.right)):k=h-2*(R!==0||B!==0?R+B:Xe(u.top,u.bottom))}await c({...t,availableWidth:E,availableHeight:k});const j=await o.getDimensions(a.floating);return g!==j.width||h!==j.height?{reset:{rects:!0}}:{}}}};function ri(){return typeof window<"u"}function Xn(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pt(e){var t;return(t=(eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eh(e){return ri()?e instanceof Node||e instanceof et(e).Node:!1}function ft(e){return ri()?e instanceof Element||e instanceof et(e).Element:!1}function At(e){return ri()?e instanceof HTMLElement||e instanceof et(e).HTMLElement:!1}function Ol(e){return!ri()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof et(e).ShadowRoot}function Yr(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function d0(e){return["table","td","th"].includes(Xn(e))}function si(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ba(e){const t=wa(),n=ft(e)?ht(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function f0(e){let t=Yt(e);for(;At(t)&&!Bn(t);){if(ba(t))return t;if(si(t))return null;t=Yt(t)}return null}function wa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bn(e){return["html","body","#document"].includes(Xn(e))}function ht(e){return et(e).getComputedStyle(e)}function ii(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ol(e)&&e.host||Pt(e);return Ol(t)?t.host:t}function th(e){const t=Yt(e);return Bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&Yr(t)?t:th(t)}function kr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=th(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=et(s);if(i){const a=lo(o);return t.concat(o,o.visualViewport||[],Yr(s)?s:[],a&&n?kr(a):[])}return t.concat(s,kr(s,[],n))}function lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nh(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=At(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Ms(n)!==i||Ms(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function _a(e){return ft(e)?e:e.contextElement}function Mn(e){const t=_a(e);if(!At(t))return Tt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=nh(t);let o=(i?Ms(n.width):n.width)/r,a=(i?Ms(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const h0=Tt(0);function rh(e){const t=et(e);return!wa()||!t.visualViewport?h0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==et(e)?!1:t}function gn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=_a(e);let o=Tt(1);t&&(r?ft(r)&&(o=Mn(r)):o=Mn(e));const a=m0(i,n,r)?rh(i):Tt(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=et(i),p=r&&ft(r)?et(r):r;let g=f,h=lo(g);for(;h&&r&&p!==g;){const x=Mn(h),v=h.getBoundingClientRect(),b=ht(h),S=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,C=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,l*=x.y,u*=x.x,d*=x.y,c+=S,l+=C,g=et(h),h=lo(g)}}return Ls({width:u,height:d,x:c,y:l})}function Sa(e,t){const n=ii(e).scrollLeft;return t?t.left+n:gn(Pt(e)).left+n}function sh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Sa(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function p0(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Pt(r),a=t?si(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Tt(1);const u=Tt(0),d=At(r);if((d||!d&&!i)&&((Xn(r)!=="body"||Yr(o))&&(c=ii(r)),At(r))){const p=gn(r);l=Mn(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=o&&!d&&!i?sh(o,c,!0):Tt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function g0(e){return Array.from(e.getClientRects())}function y0(e){const t=Pt(e),n=ii(e),r=e.ownerDocument.body,s=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Sa(e);const a=-n.scrollTop;return ht(r).direction==="rtl"&&(o+=Xe(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function v0(e,t){const n=et(e),r=Pt(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=wa();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function x0(e,t){const n=gn(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=At(e)?Mn(e):Tt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function Ml(e,t,n){let r;if(t==="viewport")r=v0(e,n);else if(t==="document")r=y0(Pt(e));else if(ft(t))r=x0(t,n);else{const s=rh(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ls(r)}function ih(e,t){const n=Yt(e);return n===t||!ft(n)||Bn(n)?!1:ht(n).position==="fixed"||ih(n,t)}function b0(e,t){const n=t.get(e);if(n)return n;let r=kr(e,[],!1).filter(a=>ft(a)&&Xn(a)!=="body"),s=null;const i=ht(e).position==="fixed";let o=i?Yt(e):e;for(;ft(o)&&!Bn(o);){const a=ht(o),c=ba(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Yr(o)&&!c&&ih(e,o))?r=r.filter(u=>u!==o):s=a,o=Yt(o)}return t.set(e,r),r}function w0(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?si(t)?[]:b0(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=Ml(t,u,s);return l.top=Xe(d.top,l.top),l.right=Kt(d.right,l.right),l.bottom=Kt(d.bottom,l.bottom),l.left=Xe(d.left,l.left),l},Ml(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _0(e){const{width:t,height:n}=nh(e);return{width:t,height:n}}function S0(e,t,n){const r=At(t),s=Pt(t),i=n==="fixed",o=gn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Tt(0);if(r||!r&&!i)if((Xn(t)!=="body"||Yr(s))&&(a=ii(t)),r){const f=gn(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=Sa(s));const l=s&&!r&&!i?sh(s,a):Tt(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Oi(e){return ht(e).position==="static"}function Vl(e,t){if(!At(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pt(e)===n&&(n=n.ownerDocument.body),n}function oh(e,t){const n=et(e);if(si(e))return n;if(!At(e)){let s=Yt(e);for(;s&&!Bn(s);){if(ft(s)&&!Oi(s))return s;s=Yt(s)}return n}let r=Vl(e,t);for(;r&&d0(r)&&Oi(r);)r=Vl(r,t);return r&&Bn(r)&&Oi(r)&&!ba(r)?n:r||f0(e)||n}const T0=async function(e){const t=this.getOffsetParent||oh,n=this.getDimensions,r=await n(e.floating);return{reference:S0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C0(e){return ht(e).direction==="rtl"}const A0={convertOffsetParentRelativeRectToViewportRelativeRect:p0,getDocumentElement:Pt,getClippingRect:w0,getOffsetParent:oh,getElementRects:T0,getClientRects:g0,getDimensions:_0,getScale:Mn,isElement:ft,isRTL:C0};function ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function E0(e,t){let n=null,r;const s=Pt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const g=fs(d),h=fs(s.clientWidth-(u+f)),x=fs(s.clientHeight-(d+p)),v=fs(u),S={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:Xe(0,Kt(1,c))||1};let C=!0;function _(A){const k=A[0].intersectionRatio;if(k!==c){if(!C)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!ah(l,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(_,{...S,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return o(!0),i}function k0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=_a(e),u=s||i?[...l?kr(l):[],...kr(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?E0(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g,h=c?gn(e):null;c&&x();function x(){const v=gn(e);h&&!ah(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const P0=a0,R0=c0,N0=s0,j0=u0,D0=i0,Ll=r0,O0=l0,M0=(e,t,n)=>{const r=new Map,s={platform:A0,...n},i={...s.platform,_c:r};return n0(e,t,{...s,platform:i})};var Ss=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Is(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ch(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Il(e,t){const n=ch(e);return Math.round(t*n)/n}function Mi(e){const t=y.useRef(e);return Ss(()=>{t.current=e}),t}function V0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);Is(f,r)||p(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(U=>{U!==A.current&&(A.current=U,h(U))},[]),S=y.useCallback(U=>{U!==k.current&&(k.current=U,v(U))},[]),C=i||g,_=o||x,A=y.useRef(null),k=y.useRef(null),E=y.useRef(u),j=c!=null,D=Mi(c),I=Mi(s),R=Mi(l),B=y.useCallback(()=>{if(!A.current||!k.current)return;const U={placement:t,strategy:n,middleware:f};I.current&&(U.platform=I.current),M0(A.current,k.current,U).then(Q=>{const ce={...Q,isPositioned:R.current!==!1};z.current&&!Is(E.current,ce)&&(E.current=ce,eu.flushSync(()=>{d(ce)}))})},[f,t,n,I,R]);Ss(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(U=>({...U,isPositioned:!1})))},[l]);const z=y.useRef(!1);Ss(()=>(z.current=!0,()=>{z.current=!1}),[]),Ss(()=>{if(C&&(A.current=C),_&&(k.current=_),C&&_){if(D.current)return D.current(C,_,B);B()}},[C,_,B,D,j]);const J=y.useMemo(()=>({reference:A,floating:k,setReference:b,setFloating:S}),[b,S]),K=y.useMemo(()=>({reference:C,floating:_}),[C,_]),W=y.useMemo(()=>{const U={position:n,left:0,top:0};if(!K.floating)return U;const Q=Il(K.floating,u.x),ce=Il(K.floating,u.y);return a?{...U,transform:"translate("+Q+"px, "+ce+"px)",...ch(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:ce}},[n,a,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:B,refs:J,elements:K,floatingStyles:W}),[u,B,J,K,W])}const L0=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ll({element:r.current,padding:s}).fn(n):{}:r?Ll({element:r,padding:s}).fn(n):{}}}},I0=(e,t)=>({...P0(e),options:[e,t]}),F0=(e,t)=>({...R0(e),options:[e,t]}),B0=(e,t)=>({...O0(e),options:[e,t]}),$0=(e,t)=>({...N0(e),options:[e,t]}),z0=(e,t)=>({...j0(e),options:[e,t]}),U0=(e,t)=>({...D0(e),options:[e,t]}),W0=(e,t)=>({...L0(e),options:[e,t]});var Z0="Arrow",lh=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return m.jsx(We.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});lh.displayName=Z0;var H0=lh;function G0(e){const[t,n]=y.useState(void 0);return mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ta="Popper",[uh,dh]=bo(Ta),[K0,fh]=uh(Ta),hh=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return m.jsx(K0,{scope:t,anchor:r,onAnchorChange:s,children:n})};hh.displayName=Ta;var mh="PopperAnchor",ph=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=fh(mh,n),o=y.useRef(null),a=pt(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:m.jsx(We.div,{...s,ref:a})});ph.displayName=mh;var Ca="PopperContent",[q0,Y0]=uh(Ca),gh=y.forwardRef((e,t)=>{var ie,ue,_e,ke,he,Z;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,x=fh(Ca,n),[v,b]=y.useState(null),S=pt(t,oe=>b(oe)),[C,_]=y.useState(null),A=G0(C),k=(A==null?void 0:A.width)??0,E=(A==null?void 0:A.height)??0,j=r+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],R=I.length>0,B={padding:D,boundary:I.filter(J0),altBoundary:R},{refs:z,floatingStyles:J,placement:K,isPositioned:W,middlewareData:U}=V0({strategy:"fixed",placement:j,whileElementsMounted:(...oe)=>k0(...oe,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[I0({mainAxis:s+E,alignmentAxis:o}),c&&F0({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?B0():void 0,...B}),c&&$0({...B}),z0({...B,apply:({elements:oe,rects:me,availableWidth:Ne,availableHeight:Ye})=>{const{width:nt,height:w}=me.reference,T=oe.floating.style;T.setProperty("--radix-popper-available-width",`${Ne}px`),T.setProperty("--radix-popper-available-height",`${Ye}px`),T.setProperty("--radix-popper-anchor-width",`${nt}px`),T.setProperty("--radix-popper-anchor-height",`${w}px`)}}),C&&W0({element:C,padding:a}),Q0({arrowWidth:k,arrowHeight:E}),f&&U0({strategy:"referenceHidden",...B})]}),[Q,ce]=xh(K),le=Zt(g);mn(()=>{W&&(le==null||le())},[W,le]);const De=(ie=U.arrow)==null?void 0:ie.x,qe=(ue=U.arrow)==null?void 0:ue.y,Oe=((_e=U.arrow)==null?void 0:_e.centerOffset)!==0,[ot,Fe]=y.useState();return mn(()=>{v&&Fe(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:W?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ot,"--radix-popper-transform-origin":[(ke=U.transformOrigin)==null?void 0:ke.x,(he=U.transformOrigin)==null?void 0:he.y].join(" "),...((Z=U.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(q0,{scope:n,placedSide:Q,onArrowChange:_,arrowX:De,arrowY:qe,shouldHideArrow:Oe,children:m.jsx(We.div,{"data-side":Q,"data-align":ce,...h,ref:S,style:{...h.style,animation:W?void 0:"none"}})})})});gh.displayName=Ca;var yh="PopperArrow",X0={top:"bottom",right:"left",bottom:"top",left:"right"},vh=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=Y0(yh,r),o=X0[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(H0,{...s,ref:n,style:{...s.style,display:"block"}})})});vh.displayName=yh;function J0(e){return e!==null}var Q0=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=xh(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,p=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let g="",h="";return l==="bottom"?(g=o?d:`${f}px`,h=`${-c}px`):l==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,h=o?d:`${p}px`):l==="left"&&(g=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:g,y:h}}}});function xh(e){const[t,n="center"]=e.split("-");return[t,n]}var e_=hh,bh=ph,t_=gh,n_=vh,Aa="Popover",[wh,BT]=bo(Aa,[dh]),Xr=dh(),[r_,rn]=wh(Aa),_h=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Xr(t),c=y.useRef(null),[l,u]=y.useState(!1),[d=!1,f]=nu({prop:r,defaultProp:s,onChange:i});return m.jsx(e_,{...a,children:m.jsx(r_,{scope:t,contentId:ms(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};_h.displayName=Aa;var Sh="PopoverAnchor",s_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(Sh,n),i=Xr(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),m.jsx(bh,{...i,...r,ref:t})});s_.displayName=Sh;var Th="PopoverTrigger",Ch=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(Th,n),i=Xr(n),o=pt(t,s.triggerRef),a=m.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Rh(s.open),...r,ref:o,onClick:Je(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:m.jsx(bh,{asChild:!0,...i,children:a})});Ch.displayName=Th;var Ea="PopoverPortal",[i_,o_]=wh(Ea,{forceMount:void 0}),Ah=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=rn(Ea,t);return m.jsx(i_,{scope:t,forceMount:n,children:m.jsx(Hn,{present:n||i.open,children:m.jsx(So,{asChild:!0,container:s,children:r})})})};Ah.displayName=Ea;var $n="PopoverContent",Eh=y.forwardRef((e,t)=>{const n=o_($n,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=rn($n,e.__scopePopover);return m.jsx(Hn,{present:r||i.open,children:i.modal?m.jsx(a_,{...s,ref:t}):m.jsx(c_,{...s,ref:t})})});Eh.displayName=$n;var a_=y.forwardRef((e,t)=>{const n=rn($n,e.__scopePopover),r=y.useRef(null),s=pt(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return pu(o)},[]),m.jsx(To,{as:Zn,allowPinchZoom:!0,children:m.jsx(kh,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Je(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),c_=y.forwardRef((e,t)=>{const n=rn($n,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return m.jsx(kh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),kh=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=rn($n,n),p=Xr(n);return ou(),m.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:m.jsx(wo,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(t_,{"data-state":Rh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.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)"}})})})}),Ph="PopoverClose",l_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=rn(Ph,n);return m.jsx(We.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>s.onOpenChange(!1))})});l_.displayName=Ph;var u_="PopoverArrow",d_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Xr(n);return m.jsx(n_,{...s,...r,ref:t})});d_.displayName=u_;function Rh(e){return e?"open":"closed"}var f_=_h,h_=Ch,m_=Ah,Nh=Eh;const jh=f_,Dh=h_,ka=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>m.jsx(m_,{children:m.jsx(Nh,{ref:s,align:t,sideOffset:n,className:ee("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ka.displayName=Nh.displayName;const Fl=[{lang:Ve.RU},{lang:Ve.EN}],Bl=({className:e})=>{const t=ze(i=>i.lang),n=ze(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Fl.filter(i=>i.lang===t)),m.jsxs(jh,{open:r,onOpenChange:()=>s(!r),children:[m.jsxs(Dh,{className:ee("flex items-center gap-2",e),children:[m.jsx("img",{src:t===Ve.RU?"/ru.svg":"/en.svg",alt:""}),t===Ve.RU?"Ру":"En",m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:"#2C2828"})})]}),m.jsx(ka,{className:"flex flex-col gap-6",children:Fl.filter(i=>i.lang!==t).map((i,o)=>m.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[m.jsx("img",{src:i.lang===Ve.RU?"/ru.svg":"/en.svg",alt:"flag"}),m.jsx("h5",{children:i.lang===Ve.RU?"Русский":"English"})]},o))})]})},$l=({title:e,dropDownContent:t,color:n,onMenu:r})=>{const[s,i]=y.useState(!1);return m.jsxs(jh,{open:s,onOpenChange:()=>i(!s),children:[m.jsxs(Dh,{className:"flex items-center gap-2",children:[e,m.jsx(p_,{color:n})]}),m.jsx(ka,{className:"w-fit px-0 py-2 cursor-pointer bg-surface_container",children:t&&t.map(o=>o.link?m.jsxs(Ae,{onClick:()=>i(!1),className:"h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",target:o.blank?"_blank":"",to:o.link,children:[o.text,o.blank&&m.jsx("img",{src:"/pdf.svg"})]},o.text):m.jsx("div",{className:"h-14 px-3 flex items-center hover:bg-slate-300/50 transition-all",onClick:()=>{i(!1),r==null||r()},children:o.text},o.text))})]})},p_=({color:e="white"})=>m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})}),vr=[{title:"Тематические направления выставки",bottom_text:` Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` - Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],$T=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:m.jsxs(Ke,{children:[m.jsx("h3",{className:"h2 mb-4",children:vr[pe(t)].title}),m.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:vr[pe(t)].data.map(n=>m.jsx(qu,{className:"!bg-[#F5F4F4]",...n},n.title))}),m.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[m.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),m.jsx("p",{className:"text-18 !text-primary_09",children:vr[pe(t)].bottom_text})]})]})})},Is=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 may — 10 june 2025"},{name:"Exhibition days",date:"11–13 june 2025"},{name:"Exhibition dismantling",date:"13–14 june 2025"}]}],zT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("bg-bg_surface_container py-10 md:py-[160px]",e),children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-6",children:Is[pe(t)].title}),m.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Is[pe(t)].data.map(n=>y.createElement(Yu,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},zl=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],UT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("gap-6 relative overflow-hidden",e),children:m.jsxs(Ke,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[m.jsxs("div",{className:"flex-[0_0_50%]",children:[m.jsx("h3",{className:"h2 mb-6",children:zl[pe(t)].title}),m.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:zl[pe(t)].data.map(n=>m.jsx("p",{children:n},n))})]}),m.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:m.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},hs=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"Стать спонсором"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"Become a sponsor"}],WT=({className:e})=>{const t=ze(n=>n.lang);return m.jsxs("section",{className:ee("md:py-20 py-10 relative overflow-hidden",e),children:[m.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),m.jsxs(Ke,{children:[m.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:hs[pe(t)].title}),m.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:hs[pe(t)].p}),m.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[m.jsx(Ce,{to:"/stend-form",className:"w-full",children:m.jsx(Ge,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:hs[pe(t)].button1})}),m.jsx(Ce,{to:"/become-sponsor",className:"w-full",children:m.jsx(Ge,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:hs[pe(t)].button2})})]})]})]})},g_=(e,t,n,r)=>{var i,o,a,c;const s=[n,{code:t,...r||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);fn(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Ul={},uo=(e,t,n,r)=>{fn(n)&&Ul[n]||(fn(n)&&(Ul[n]=new Date),g_(e,t,n,r))},Mh=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},fo=(e,t,n)=>{e.loadNamespaces(t,Mh(e,n))},Wl=(e,t,n,r)=>{if(fn(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return fo(e,n,r);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Mh(e,r))},y_=(e,t,n={})=>!t.languages||!t.languages.length?(uo(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}),fn=e=>typeof e=="string",v_=e=>typeof e=="object"&&e!==null,x_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},w_=e=>b_[e],__=e=>e.replace(x_,w_);let ho={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:__};const S_=(e={})=>{ho={...ho,...e}},T_=()=>ho;let Oh;const A_=e=>{Oh=e},C_=()=>Oh,ZT={type:"3rdParty",init(e){S_(e.options.react),A_(e)}},E_=y.createContext();class P_{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const k_=(e,t)=>{const n=y.useRef();return y.useEffect(()=>{n.current=e},[e,t]),n.current},Vh=(e,t,n,r)=>e.getFixedT(t,n,r),R_=(e,t,n,r)=>y.useCallback(Vh(e,t,n,r),[e,t,n,r]),N_=(e,t={})=>{var A,_,E;const{i18n:n}=t,{i18n:r,defaultNS:s}=y.useContext(E_)||{},i=n||r||C_();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new P_),!i){uo(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const C=(j,D)=>fn(D)?D:v_(D)&&fn(D.defaultValue)?D.defaultValue:Array.isArray(j)?j[j.length-1]:j,P=[C,{},!1];return P.t=C,P.i18n={},P.ready=!1,P}(A=i.options.react)!=null&&A.wait&&uo(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...T_(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e;l=fn(l)?[l]:l||["translation"],(E=(_=i.reportNamespaces).addUsedNamespaces)==null||E.call(_,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(C=>y_(C,i,o)),d=R_(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,p=()=>Vh(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[g,h]=y.useState(f);let x=l.join();t.lng&&(x=`${t.lng}${x}`);const v=k_(x),b=y.useRef(!0);y.useEffect(()=>{const{bindI18n:C,bindI18nStore:P}=o;b.current=!0,!u&&!a&&(t.lng?Wl(i,t.lng,l,()=>{b.current&&h(p)}):fo(i,l,()=>{b.current&&h(p)})),u&&v&&v!==x&&b.current&&h(p);const j=()=>{b.current&&h(p)};return C&&(i==null||i.on(C,j)),P&&(i==null||i.store.on(P,j)),()=>{b.current=!1,i&&(C==null||C.split(" ").forEach(D=>i.off(D,j))),P&&i&&P.split(" ").forEach(D=>i.store.off(D,j))}},[i,x]),y.useEffect(()=>{b.current&&u&&h(f)},[i,c,u]);const S=[g,i,u];if(S.t=g,S.i18n=i,S.ready=u,u||!u&&!a)return S;throw new Promise(C=>{t.lng?Wl(i,t.lng,l,()=>C()):fo(i,l,()=>C())})},HT=()=>{const{t:e}=N_("about"),t=e("main.block.texts",{returnObjects:!0}),n=e("main.block_2.texts",{returnObjects:!0}),r=e("main.block_3.texts",{returnObjects:!0});return m.jsxs(Ke,{className:"flex flex-col md:my-20 my-10 gap-16",children:[m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2",children:e("main.block.title")}),m.jsx("div",{className:"flex flex-col gap-3",children:t.map(s=>m.jsx("p",{className:"p",children:s}))})]}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h3",{className:"h2",children:e("main.block_2.title")}),m.jsx("h4",{className:"p",children:e("main.block_2.subtitle")}),m.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:n.map(s=>m.jsx("li",{className:"p",children:s}))})]}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2",children:e("main.block_3.title")}),m.jsx("h3",{children:e("main.block_3.subtitle")}),m.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:r.map(s=>m.jsx("li",{children:s},s))})]}),m.jsx(Ce,{to:"/become-sponsor",children:m.jsx(Ge,{className:"w-full",children:e("main.button")})})]})};function j_(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zl(e){return j_(e)||Array.isArray(e)}function D_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ka(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Zl(a)||!Zl(c)?a===c:ka(a,c)})}function Hl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function M_(e,t){if(e.length!==t.length)return!1;const n=Hl(e),r=Hl(t);return n.every((s,i)=>{const o=r[i];return ka(s,o)})}function Ra(e){return typeof e=="number"}function mo(e){return typeof e=="string"}function ii(e){return typeof e=="boolean"}function Gl(e){return Object.prototype.toString.call(e)==="[object Object]"}function be(e){return Math.abs(e)}function Na(e){return Math.sign(e)}function xr(e,t){return be(e-t)}function O_(e,t){if(e===0||t===0||be(e)<=be(t))return 0;const n=xr(be(e),be(t));return be(n/e)}function V_(e){return Math.round(e*100)/100}function kr(e){return Rr(e).map(Number)}function ut(e){return e[Jr(e)]}function Jr(e){return Math.max(0,e.length-1)}function ja(e,t){return t===Jr(e)}function Kl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Rr(e){return Object.keys(e)}function Lh(e,t){return[e,t].reduce((n,r)=>(Rr(r).forEach(s=>{const i=n[s],o=r[s],a=Gl(i)&&Gl(o);n[s]=a?Lh(i,o):o}),n),{})}function po(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function L_(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,l){return mo(e)?n[e](c):e(t,c,l)}return{measure:o}}function Nr(){let e=[];function t(s,i,o,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,a),c=()=>s.removeEventListener(i,o,a);else{const l=s;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function I_(e,t,n,r){const s=Nr(),i=1e3/60;let o=null,a=0,c=0;function l(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){p(),s.clear()}function d(x){if(!c)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function g(){o=null,a=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function F_(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),c=d();function l(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function yn(e=0,t=0){const n=be(e-t);function r(l){return lt}function i(l){return r(l)||s(l)}function o(l){return i(l)?r(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function Ih(e,t,n){const{constrain:r}=yn(0,e),s=e+1;let i=o(t);function o(f){return n?be((s+f)%s):r(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return Ih(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function B_(e,t,n,r,s,i,o,a,c,l,u,d,f,p,g,h,x,v,b){const{cross:S,direction:A}=e,_=["INPUT","SELECT","TEXTAREA"],E={passive:!1},C=Nr(),P=Nr(),j=yn(50,225).constrain(p.measure(20)),D={mouse:300,touch:400},z={mouse:500,touch:600},R=g?43:25;let F=!1,$=0,J=0,K=!1,W=!1,U=!1,Q=!1;function ce(Z){if(!b)return;function oe(Ne){(ii(b)||b(Z,Ne))&&Fe(Ne)}const me=t;C.add(me,"dragstart",Ne=>Ne.preventDefault(),E).add(me,"touchmove",()=>{},E).add(me,"touchend",()=>{}).add(me,"touchstart",oe).add(me,"mousedown",oe).add(me,"touchcancel",ue).add(me,"contextmenu",ue).add(me,"click",_e,!0)}function le(){C.clear(),P.clear()}function De(){const Z=Q?n:t;P.add(Z,"touchmove",ie,E).add(Z,"touchend",ue).add(Z,"mousemove",ie,E).add(Z,"mouseup",ue)}function qe(Z){const oe=Z.nodeName||"";return _.includes(oe)}function Me(){return(g?z:D)[Q?"mouse":"touch"]}function ot(Z,oe){const me=d.add(Na(Z)*-1),Ne=u.byDistance(Z,!g).distance;return g||be(Z)=2,!(oe&&Z.button!==0)&&(qe(Z.target)||(K=!0,i.pointerDown(Z),l.useFriction(0).useDuration(0),s.set(o),De(),$=i.readPoint(Z),J=i.readPoint(Z,S),f.emit("pointerDown")))}function ie(Z){if(!po(Z,r)&&Z.touches.length>=2)return ue(Z);const me=i.readPoint(Z),Ne=i.readPoint(Z,S),Ye=xr(me,$),nt=xr(Ne,J);if(!W&&!Q&&(!Z.cancelable||(W=Ye>nt,!W)))return ue(Z);const w=i.pointerMove(Z);Ye>h&&(U=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(A(w)),Z.preventDefault()}function ue(Z){const me=u.byDistance(0,!1).index!==d.get(),Ne=i.pointerUp(Z)*Me(),Ye=ot(A(Ne),me),nt=O_(Ne,Ye),w=R-10*nt,T=v+nt/50;W=!1,K=!1,P.clear(),l.useDuration(w).useFriction(T),c.distance(Ye,!g),Q=!1,f.emit("pointerUp")}function _e(Z){U&&(Z.stopPropagation(),Z.preventDefault(),U=!1)}function Pe(){return K}return{init:ce,destroy:le,pointerDown:Pe}}function $_(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(po(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function c(d){const f=o(d)-o(s),p=i(d)-i(r)>170;return s=d,p&&(r=d),f}function l(d){if(!r||!s)return 0;const f=o(s)-o(r),p=i(d)-i(r),g=i(d)-i(s)>170,h=f/p;return p&&!g&&be(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function z_(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function U_(e){function t(r){return e*(r/100)}return{measure:t}}function W_(e,t,n,r,s,i,o){const a=[e].concat(r);let c,l,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function p(x){if(!i)return;l=f(e),u=r.map(f);function v(b){for(const S of b){if(d)return;const A=S.target===e,_=r.indexOf(S.target),E=A?l:u[_],C=f(A?e:r[_]);if(be(C-E)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ii(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function g(){d=!0,c&&c.disconnect()}return{init:p,destroy:g}}function Z_(e,t,n,r,s,i){let o=0,a=0,c=s,l=i,u=e.get(),d=0;function f(){const E=r.get()-e.get(),C=!c;let P=0;return C?(o=0,n.set(r),e.set(r),P=E):(n.set(e),o+=E/c,o*=l,u+=o,e.add(o),P=u-d),a=Na(P),d=u,_}function p(){const E=r.get()-t.get();return be(E)<.001}function g(){return c}function h(){return a}function x(){return o}function v(){return S(s)}function b(){return A(i)}function S(E){return c=E,_}function A(E){return l=E,_}const _={direction:h,duration:g,velocity:x,seek:f,settled:p,useBaseFriction:b,useBaseDuration:v,useFriction:A,useDuration:S};return _}function H_(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=yn(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",h=be(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!p&&be(x){const{min:x,max:v}=i,b=i.constrain(g),S=!h,A=ja(n,h);return S?v:A||l(x,b)?x:l(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:c,scrollContainLimit:a}}function K_(e,t,n){const r=t[0],s=n?r-e:ut(t);return{limit:yn(s,r)}}function q_(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=yn(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const p=e*(f*-1);r.forEach(g=>g.add(p))}return{loop:u}}function Y_(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function X_(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,c=d().map(t.measure),l=f(),u=p();function d(){return a(r).map(h=>ut(h)[o]-h[0][i]).map(be)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-be(h))}function p(){return a(l).map(h=>h[0]).map((h,x)=>h+c[x])}return{snaps:l,snapsAligned:u}}function J_(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:c}=r,l=u();function u(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(a,c).map((g,h,x)=>{const v=!h,b=ja(x,h);if(v){const S=ut(x[0])+1;return Kl(S)}if(b){const S=Jr(i)-ut(x)[0]+1;return Kl(S,ut(x)[0])}return g})}return{slideRegistry:l}}function Q_(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function c(g){return g.concat().sort((h,x)=>be(h)-be(x))[0]}function l(g){const h=e?o(g):a(g),x=t.map((b,S)=>({diff:u(b-h,0),index:S})).sort((b,S)=>be(b.diff)-be(S.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return c(x);const v=x.filter(b=>Na(b)===h);return v.length?c(v):ut(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=l(x),S=!e&&i(x);if(!h||S)return{index:v,distance:g};const A=t[v]-b,_=g+u(A,0);return{index:v,distance:_}}return{byDistance:f,byIndex:d,shortcut:u}}function eS(e,t,n,r,s,i,o){function a(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,f){const p=s.byDistance(d,f);a(p)}function l(d,f){const p=t.clone().set(d),g=s.byIndex(p.get(),f);a(g)}return{distance:c,index:l}}function tS(e,t,n,r,s,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(p){if(!a)return;function g(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(h));Ra(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(ii(a)||a(p,v))&&g(x)},c)})}function d(p){p.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function lr(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Ra(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function Fh(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const p=V_(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function l(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function nS(e,t,n,r,s,i,o,a,c){const u=kr(s),d=kr(s).reverse(),f=v().concat(b());function p(C,P){return C.reduce((j,D)=>j-s[D],P)}function g(C,P){return C.reduce((j,D)=>p(j,P)>0?j.concat([D]):j,[])}function h(C){return i.map((P,j)=>({start:P-r[j]+.5+C,end:P+t-.5+C}))}function x(C,P,j){const D=h(P);return C.map(z=>{const R=j?0:-n,F=j?n:0,$=j?"end":"start",J=D[z][$];return{index:z,loopPoint:J,slideLocation:lr(-1),translate:Fh(e,c[z]),target:()=>a.get()>J?R:F}})}function v(){const C=o[0],P=g(d,C);return x(P,n,!1)}function b(){const C=t-o[0]-1,P=g(u,C);return x(P,-n,!0)}function S(){return f.every(({index:C})=>{const P=u.filter(j=>j!==C);return p(P,t)<=.1})}function A(){f.forEach(C=>{const{target:P,translate:j,slideLocation:D}=C,z=P();z!==D.get()&&(j.to(z),D.set(z))})}function _(){f.forEach(C=>C.translate.clear())}return{canLoop:S,clear:_,loop:A,loopPoints:f}}function rS(e,t,n){let r,s=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(ii(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function sS(e,t,n,r){const s={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(g=>{c||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),c=!0}function d(g){return Rr(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:l,destroy:u,get:f}}function iS(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&s,u=g(),d=h(),f=n.map(o),p=x();function g(){if(!l)return 0;const b=n[0];return be(t[a]-b[a])}function h(){if(!l)return 0;const b=i.getComputedStyle(ut(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function x(){return n.map((b,S,A)=>{const _=!S,E=ja(A,S);return _?f[S]+u:E?f[S]+d:A[S+1][a]-b[a]}).map(be)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function oS(e,t,n,r,s,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=Ra(n);function p(v,b){return kr(v).filter(S=>S%b===0).map(S=>v.slice(S,S+b))}function g(v){return v.length?kr(v).reduce((b,S,A)=>{const _=ut(b)||0,E=_===0,C=S===Jr(v),P=s[l]-i[_][l],j=s[l]-i[S][u],D=!r&&E?d(o):0,z=!r&&C?d(a):0,R=be(j-z-(P+D));return A&&R>t+c&&b.push(S),C&&b.push(v.length),b},[]).map((b,S,A)=>{const _=Math.max(A[S-1]||0);return v.slice(_,b)}):[]}function h(v){return f?p(v,n):g(v)}return{groupSlides:h}}function aS(e,t,n,r,s,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:S,watchSlides:A,watchDrag:_,watchFocus:E}=i,C=2,P=z_(),j=P.measure(t),D=n.map(P.measure),z=F_(c,l),R=z.measureSize(j),F=U_(R),$=L_(a,R),J=!d&&!!b,K=d||!!b,{slideSizes:W,slideSizesWithGaps:U,startGap:Q,endGap:ce}=iS(z,j,D,n,K,s),le=oS(z,R,x,d,j,D,Q,ce,C),{snaps:De,snapsAligned:qe}=X_(z,$,j,D,le),Me=-ut(De)+ut(U),{snapsContained:ot,scrollContainLimit:Fe}=G_(R,Me,qe,b,C),ie=J?ot:qe,{limit:ue}=K_(Me,ie,d),_e=Ih(Jr(ie),u,d),Pe=_e.clone(),he=kr(n),Z=({dragHandler:vt,scrollBody:sn,scrollBounds:Qn,options:{loop:on}})=>{on||Qn.constrain(vt.pointerDown()),sn.seek()},oe=({scrollBody:vt,translate:sn,location:Qn,offsetLocation:on,previousLocation:ai,scrollLooper:ts,slideLooper:Xh,dragHandler:Jh,animation:Qh,eventHandler:Ma,scrollBounds:em,options:{loop:Oa}},Va)=>{const La=vt.settled(),tm=!em.shouldConstrain(),Ia=Oa?La:La&&tm;Ia&&!Jh.pointerDown()&&(Qh.stop(),Ma.emit("settle")),Ia||Ma.emit("scroll");const nm=Qn.get()*Va+ai.get()*(1-Va);on.set(nm),Oa&&(ts.loop(vt.direction()),Xh.loop()),sn.to(on.get())},me=I_(r,s,()=>Z(Jn),vt=>oe(Jn,vt)),Ne=.68,Ye=ie[_e.get()],nt=lr(Ye),w=lr(Ye),T=lr(Ye),k=lr(Ye),L=Z_(nt,T,w,k,f,Ne),O=Q_(d,ie,Me,ue,k),M=eS(me,_e,Pe,L,O,k,o),G=Y_(ue),ne=Nr(),ke=sS(t,n,o,h),{slideRegistry:Se}=J_(J,b,ie,Fe,le,he),yt=tS(e,n,Se,M,L,ne,o,E),Jn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:j,slideRects:D,animation:me,axis:z,dragHandler:B_(z,e,r,s,k,$_(z,s),nt,me,M,L,O,_e,o,F,p,g,v,Ne,_),eventStore:ne,percentOfView:F,index:_e,indexPrevious:Pe,limit:ue,location:nt,offsetLocation:T,previousLocation:w,options:i,resizeHandler:W_(t,o,s,n,z,S,P),scrollBody:L,scrollBounds:H_(ue,T,k,L,F),scrollLooper:q_(Me,ue,T,[nt,T,w,k]),scrollProgress:G,scrollSnapList:ie.map(G.get),scrollSnaps:ie,scrollTarget:O,scrollTo:M,slideLooper:nS(z,R,Me,W,U,De,ie,T,n),slideFocus:yt,slidesHandler:rS(t,o,A),slidesInView:ke,slideIndexes:he,slideRegistry:Se,slidesToScroll:le,target:k,translate:Fh(z,t)};return Jn}function cS(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function s(l){return r(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=r(l).concat([u]),c}function o(l,u){return e[l]=r(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:s,off:o,on:i,clear:a};return c}const lS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function uS(e){function t(i,o){return Lh(i,o||{})}function n(i){const o=i.breakpoints||{},a=Rr(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function r(i){return i.map(o=>Rr(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function dS(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Fs(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=uS(s),o=dS(i),a=Nr(),c=cS(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:g}=c,h=z;let x=!1,v,b=l(lS,Fs.globalOptions),S=l(b),A=[],_,E,C;function P(){const{container:he,slides:Z}=S;E=(mo(he)?e.querySelector(he):he)||e.children[0];const me=mo(Z)?E.querySelectorAll(Z):Z;C=[].slice.call(me||E.children)}function j(he){const Z=aS(e,E,C,r,s,he,c);if(he.loop&&!Z.slideLooper.canLoop()){const oe=Object.assign({},he,{loop:!1});return j(oe)}return Z}function D(he,Z){x||(b=l(b,he),S=u(b),A=Z||A,P(),v=j(S),d([b,...A.map(({options:oe})=>oe)]).forEach(oe=>a.add(oe,"change",z)),S.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Pe),v.eventHandler.init(Pe),v.resizeHandler.init(Pe),v.slidesHandler.init(Pe),v.options.loop&&v.slideLooper.loop(),E.offsetParent&&C.length&&v.dragHandler.init(Pe),_=o.init(Pe,A)))}function z(he,Z){const oe=le();R(),D(l({startIndex:oe},he),Z),c.emit("reInit")}function R(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function F(){x||(x=!0,a.clear(),R(),c.emit("destroy"),c.clear())}function $(he,Z,oe){!S.active||x||(v.scrollBody.useBaseFriction().useDuration(Z===!0?0:S.duration),v.scrollTo.index(he,oe||0))}function J(he){const Z=v.index.add(1).get();$(Z,he,-1)}function K(he){const Z=v.index.add(-1).get();$(Z,he,1)}function W(){return v.index.add(1).get()!==le()}function U(){return v.index.add(-1).get()!==le()}function Q(){return v.scrollSnapList}function ce(){return v.scrollProgress.get(v.location.get())}function le(){return v.index.get()}function De(){return v.indexPrevious.get()}function qe(){return v.slidesInView.get()}function Me(){return v.slidesInView.get(!1)}function ot(){return _}function Fe(){return v}function ie(){return e}function ue(){return E}function _e(){return C}const Pe={canScrollNext:W,canScrollPrev:U,containerNode:ue,internalEngine:Fe,destroy:F,off:p,on:f,emit:g,plugins:ot,previousScrollSnap:De,reInit:h,rootNode:ie,scrollNext:J,scrollPrev:K,scrollProgress:ce,scrollSnapList:Q,scrollTo:$,selectedScrollSnap:le,slideNodes:_e,slidesInView:qe,slidesNotInView:Me};return D(t,n),setTimeout(()=>c.emit("init"),0),Pe}Fs.globalOptions=void 0;function Qr(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),c=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{ka(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{M_(r.current,t)||(r.current=t,c())},[t,c]),y.useEffect(()=>{if(D_()&&o){Fs.globalOptions=Qr.globalOptions;const l=Fs(o,n.current,r.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,s]}Qr.globalOptions=void 0;const fS=[{lang:Ve.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:Ve.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],GT=()=>{const[e]=Qr(),t=ze(o=>o.lang),n=so("(min-width: 1024px)"),r=so("(min-width: 768px)"),s=t===Ve.RU?Ve.RU:Ve.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}return m.jsxs("section",{className:"flex flex-col gap-5",children:[m.jsx("div",{ref:e,className:"embla",children:m.jsx("div",{className:"embla__container",children:m.jsx("div",{className:"embla__slide",children:m.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),m.jsx(Ke,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:fS[pe(t)].data.map(({title:o,link:a,blank:c})=>m.jsx(Ce,{target:c?"_blank":"",to:a,className:"w-full",children:m.jsx(Ge,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},hS=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],KT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("bg-surface_high pt-10 pb-20",e),children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-6",children:Is[pe(t)].title}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Is[pe(t)].data.map(n=>y.createElement(Yu,{...n,key:n.name,className:"w-full"}))}),m.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:hS[pe(t)].data.map(n=>y.createElement(Kg,{...n,key:n.title,className:"w-full"}))}),m.jsx(Ce,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:m.jsx(Ge,{className:"w-full",children:t===Ve.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},or=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. + Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],$T=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:m.jsxs(Ke,{children:[m.jsx("h3",{className:"h2 mb-4",children:vr[pe(t)].title}),m.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:vr[pe(t)].data.map(n=>m.jsx(qu,{className:"!bg-[#F5F4F4]",...n},n.title))}),m.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[m.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),m.jsx("p",{className:"text-18 !text-primary_09",children:vr[pe(t)].bottom_text})]})]})})},Fs=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 may — 10 june 2025"},{name:"Exhibition days",date:"11–13 june 2025"},{name:"Exhibition dismantling",date:"13–14 june 2025"}]}],zT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("bg-bg_surface_container py-10 md:py-[80px]",e),children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-6",children:Fs[pe(t)].title}),m.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fs[pe(t)].data.map(n=>y.createElement(Yu,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},zl=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],UT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("gap-6 relative overflow-hidden",e),children:m.jsxs(Ke,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[m.jsxs("div",{className:"flex-[0_0_50%]",children:[m.jsx("h3",{className:"h2 mb-6",children:zl[pe(t)].title}),m.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:zl[pe(t)].data.map(n=>m.jsx("p",{children:n},n))})]}),m.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:m.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},hs=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],WT=({className:e})=>{const t=ze(n=>n.lang);return m.jsxs("section",{className:ee("md:py-20 py-10 relative overflow-hidden",e),children:[m.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),m.jsxs(Ke,{children:[m.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:hs[pe(t)].title}),m.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:hs[pe(t)].p}),m.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[m.jsx(Ae,{to:"/stend-form",className:"w-full",children:m.jsx(Ge,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:hs[pe(t)].button1})}),m.jsx(Ae,{to:"/B2B-B2GS",className:"w-full",children:m.jsx(Ge,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:hs[pe(t)].button2})})]})]})]})},g_=(e,t,n,r)=>{var i,o,a,c;const s=[n,{code:t,...r||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);fn(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Ul={},uo=(e,t,n,r)=>{fn(n)&&Ul[n]||(fn(n)&&(Ul[n]=new Date),g_(e,t,n,r))},Oh=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},fo=(e,t,n)=>{e.loadNamespaces(t,Oh(e,n))},Wl=(e,t,n,r)=>{if(fn(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return fo(e,n,r);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Oh(e,r))},y_=(e,t,n={})=>!t.languages||!t.languages.length?(uo(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}),fn=e=>typeof e=="string",v_=e=>typeof e=="object"&&e!==null,x_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},w_=e=>b_[e],__=e=>e.replace(x_,w_);let ho={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:__};const S_=(e={})=>{ho={...ho,...e}},T_=()=>ho;let Mh;const C_=e=>{Mh=e},A_=()=>Mh,ZT={type:"3rdParty",init(e){S_(e.options.react),C_(e)}},E_=y.createContext();class k_{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const P_=(e,t)=>{const n=y.useRef();return y.useEffect(()=>{n.current=e},[e,t]),n.current},Vh=(e,t,n,r)=>e.getFixedT(t,n,r),R_=(e,t,n,r)=>y.useCallback(Vh(e,t,n,r),[e,t,n,r]),N_=(e,t={})=>{var C,_,A,k;const{i18n:n}=t,{i18n:r,defaultNS:s}=y.useContext(E_)||{},i=n||r||A_();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new k_),!i){uo(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const E=(D,I)=>fn(I)?I:v_(I)&&fn(I.defaultValue)?I.defaultValue:Array.isArray(D)?D[D.length-1]:D,j=[E,{},!1];return j.t=E,j.i18n={},j.ready=!1,j}(C=i.options.react)!=null&&C.wait&&uo(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...T_(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||s||((_=i.options)==null?void 0:_.defaultNS);l=fn(l)?[l]:l||["translation"],(k=(A=i.reportNamespaces).addUsedNamespaces)==null||k.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(E=>y_(E,i,o)),d=R_(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,p=()=>Vh(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[g,h]=y.useState(f);let x=l.join();t.lng&&(x=`${t.lng}${x}`);const v=P_(x),b=y.useRef(!0);y.useEffect(()=>{const{bindI18n:E,bindI18nStore:j}=o;b.current=!0,!u&&!a&&(t.lng?Wl(i,t.lng,l,()=>{b.current&&h(p)}):fo(i,l,()=>{b.current&&h(p)})),u&&v&&v!==x&&b.current&&h(p);const D=()=>{b.current&&h(p)};return E&&(i==null||i.on(E,D)),j&&(i==null||i.store.on(j,D)),()=>{b.current=!1,i&&(E==null||E.split(" ").forEach(I=>i.off(I,D))),j&&i&&j.split(" ").forEach(I=>i.store.off(I,D))}},[i,x]),y.useEffect(()=>{b.current&&u&&h(f)},[i,c,u]);const S=[g,i,u];if(S.t=g,S.i18n=i,S.ready=u,u||!u&&!a)return S;throw new Promise(E=>{t.lng?Wl(i,t.lng,l,()=>E()):fo(i,l,()=>E())})},HT=()=>{const{t:e}=N_("about"),t=e("main.block.texts",{returnObjects:!0}),n=e("main.block_2.texts",{returnObjects:!0}),r=e("main.block_3.texts",{returnObjects:!0});return m.jsxs(Ke,{className:"flex flex-col md:my-20 my-10 gap-16",children:[m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2",children:e("main.block.title")}),m.jsx("div",{className:"flex flex-col gap-3",children:t.map(s=>m.jsx("p",{className:"p",children:s}))})]}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h3",{className:"h2",children:e("main.block_2.title")}),m.jsx("h4",{className:"p",children:e("main.block_2.subtitle")}),m.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:n.map(s=>m.jsx("li",{className:"p",children:s}))})]}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2",children:e("main.block_3.title")}),m.jsx("h3",{children:e("main.block_3.subtitle")}),m.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:r.map(s=>m.jsx("li",{children:s},s))})]}),m.jsx(Ae,{className:"flex justify-center",to:"/become-sponsor",children:m.jsx(Ge,{children:e("main.button")})})]})};function j_(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zl(e){return j_(e)||Array.isArray(e)}function D_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Pa(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Zl(a)||!Zl(c)?a===c:Pa(a,c)})}function Hl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function O_(e,t){if(e.length!==t.length)return!1;const n=Hl(e),r=Hl(t);return n.every((s,i)=>{const o=r[i];return Pa(s,o)})}function Ra(e){return typeof e=="number"}function mo(e){return typeof e=="string"}function oi(e){return typeof e=="boolean"}function Gl(e){return Object.prototype.toString.call(e)==="[object Object]"}function be(e){return Math.abs(e)}function Na(e){return Math.sign(e)}function xr(e,t){return be(e-t)}function M_(e,t){if(e===0||t===0||be(e)<=be(t))return 0;const n=xr(be(e),be(t));return be(n/e)}function V_(e){return Math.round(e*100)/100}function Pr(e){return Rr(e).map(Number)}function ut(e){return e[Jr(e)]}function Jr(e){return Math.max(0,e.length-1)}function ja(e,t){return t===Jr(e)}function Kl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Rr(e){return Object.keys(e)}function Lh(e,t){return[e,t].reduce((n,r)=>(Rr(r).forEach(s=>{const i=n[s],o=r[s],a=Gl(i)&&Gl(o);n[s]=a?Lh(i,o):o}),n),{})}function po(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function L_(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,l){return mo(e)?n[e](c):e(t,c,l)}return{measure:o}}function Nr(){let e=[];function t(s,i,o,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,a),c=()=>s.removeEventListener(i,o,a);else{const l=s;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function I_(e,t,n,r){const s=Nr(),i=1e3/60;let o=null,a=0,c=0;function l(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){p(),s.clear()}function d(x){if(!c)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function g(){o=null,a=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function F_(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),c=d();function l(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function yn(e=0,t=0){const n=be(e-t);function r(l){return lt}function i(l){return r(l)||s(l)}function o(l){return i(l)?r(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function Ih(e,t,n){const{constrain:r}=yn(0,e),s=e+1;let i=o(t);function o(f){return n?be((s+f)%s):r(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return Ih(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function B_(e,t,n,r,s,i,o,a,c,l,u,d,f,p,g,h,x,v,b){const{cross:S,direction:C}=e,_=["INPUT","SELECT","TEXTAREA"],A={passive:!1},k=Nr(),E=Nr(),j=yn(50,225).constrain(p.measure(20)),D={mouse:300,touch:400},I={mouse:500,touch:600},R=g?43:25;let B=!1,z=0,J=0,K=!1,W=!1,U=!1,Q=!1;function ce(Z){if(!b)return;function oe(Ne){(oi(b)||b(Z,Ne))&&Fe(Ne)}const me=t;k.add(me,"dragstart",Ne=>Ne.preventDefault(),A).add(me,"touchmove",()=>{},A).add(me,"touchend",()=>{}).add(me,"touchstart",oe).add(me,"mousedown",oe).add(me,"touchcancel",ue).add(me,"contextmenu",ue).add(me,"click",_e,!0)}function le(){k.clear(),E.clear()}function De(){const Z=Q?n:t;E.add(Z,"touchmove",ie,A).add(Z,"touchend",ue).add(Z,"mousemove",ie,A).add(Z,"mouseup",ue)}function qe(Z){const oe=Z.nodeName||"";return _.includes(oe)}function Oe(){return(g?I:D)[Q?"mouse":"touch"]}function ot(Z,oe){const me=d.add(Na(Z)*-1),Ne=u.byDistance(Z,!g).distance;return g||be(Z)=2,!(oe&&Z.button!==0)&&(qe(Z.target)||(K=!0,i.pointerDown(Z),l.useFriction(0).useDuration(0),s.set(o),De(),z=i.readPoint(Z),J=i.readPoint(Z,S),f.emit("pointerDown")))}function ie(Z){if(!po(Z,r)&&Z.touches.length>=2)return ue(Z);const me=i.readPoint(Z),Ne=i.readPoint(Z,S),Ye=xr(me,z),nt=xr(Ne,J);if(!W&&!Q&&(!Z.cancelable||(W=Ye>nt,!W)))return ue(Z);const w=i.pointerMove(Z);Ye>h&&(U=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(C(w)),Z.preventDefault()}function ue(Z){const me=u.byDistance(0,!1).index!==d.get(),Ne=i.pointerUp(Z)*Oe(),Ye=ot(C(Ne),me),nt=M_(Ne,Ye),w=R-10*nt,T=v+nt/50;W=!1,K=!1,E.clear(),l.useDuration(w).useFriction(T),c.distance(Ye,!g),Q=!1,f.emit("pointerUp")}function _e(Z){U&&(Z.stopPropagation(),Z.preventDefault(),U=!1)}function ke(){return K}return{init:ce,destroy:le,pointerDown:ke}}function $_(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(po(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function c(d){const f=o(d)-o(s),p=i(d)-i(r)>170;return s=d,p&&(r=d),f}function l(d){if(!r||!s)return 0;const f=o(s)-o(r),p=i(d)-i(r),g=i(d)-i(s)>170,h=f/p;return p&&!g&&be(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function z_(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function U_(e){function t(r){return e*(r/100)}return{measure:t}}function W_(e,t,n,r,s,i,o){const a=[e].concat(r);let c,l,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function p(x){if(!i)return;l=f(e),u=r.map(f);function v(b){for(const S of b){if(d)return;const C=S.target===e,_=r.indexOf(S.target),A=C?l:u[_],k=f(C?e:r[_]);if(be(k-A)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(oi(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function g(){d=!0,c&&c.disconnect()}return{init:p,destroy:g}}function Z_(e,t,n,r,s,i){let o=0,a=0,c=s,l=i,u=e.get(),d=0;function f(){const A=r.get()-e.get(),k=!c;let E=0;return k?(o=0,n.set(r),e.set(r),E=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),E=u-d),a=Na(E),d=u,_}function p(){const A=r.get()-t.get();return be(A)<.001}function g(){return c}function h(){return a}function x(){return o}function v(){return S(s)}function b(){return C(i)}function S(A){return c=A,_}function C(A){return l=A,_}const _={direction:h,duration:g,velocity:x,seek:f,settled:p,useBaseFriction:b,useBaseDuration:v,useFriction:C,useDuration:S};return _}function H_(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=yn(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",h=be(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!p&&be(x){const{min:x,max:v}=i,b=i.constrain(g),S=!h,C=ja(n,h);return S?v:C||l(x,b)?x:l(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:c,scrollContainLimit:a}}function K_(e,t,n){const r=t[0],s=n?r-e:ut(t);return{limit:yn(s,r)}}function q_(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=yn(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const p=e*(f*-1);r.forEach(g=>g.add(p))}return{loop:u}}function Y_(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function X_(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,c=d().map(t.measure),l=f(),u=p();function d(){return a(r).map(h=>ut(h)[o]-h[0][i]).map(be)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-be(h))}function p(){return a(l).map(h=>h[0]).map((h,x)=>h+c[x])}return{snaps:l,snapsAligned:u}}function J_(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:c}=r,l=u();function u(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(a,c).map((g,h,x)=>{const v=!h,b=ja(x,h);if(v){const S=ut(x[0])+1;return Kl(S)}if(b){const S=Jr(i)-ut(x)[0]+1;return Kl(S,ut(x)[0])}return g})}return{slideRegistry:l}}function Q_(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function c(g){return g.concat().sort((h,x)=>be(h)-be(x))[0]}function l(g){const h=e?o(g):a(g),x=t.map((b,S)=>({diff:u(b-h,0),index:S})).sort((b,S)=>be(b.diff)-be(S.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return c(x);const v=x.filter(b=>Na(b)===h);return v.length?c(v):ut(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=l(x),S=!e&&i(x);if(!h||S)return{index:v,distance:g};const C=t[v]-b,_=g+u(C,0);return{index:v,distance:_}}return{byDistance:f,byIndex:d,shortcut:u}}function eS(e,t,n,r,s,i,o){function a(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,f){const p=s.byDistance(d,f);a(p)}function l(d,f){const p=t.clone().set(d),g=s.byIndex(p.get(),f);a(g)}return{distance:c,index:l}}function tS(e,t,n,r,s,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(p){if(!a)return;function g(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(h));Ra(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(oi(a)||a(p,v))&&g(x)},c)})}function d(p){p.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function lr(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Ra(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function Fh(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const p=V_(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function l(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function nS(e,t,n,r,s,i,o,a,c){const u=Pr(s),d=Pr(s).reverse(),f=v().concat(b());function p(k,E){return k.reduce((j,D)=>j-s[D],E)}function g(k,E){return k.reduce((j,D)=>p(j,E)>0?j.concat([D]):j,[])}function h(k){return i.map((E,j)=>({start:E-r[j]+.5+k,end:E+t-.5+k}))}function x(k,E,j){const D=h(E);return k.map(I=>{const R=j?0:-n,B=j?n:0,z=j?"end":"start",J=D[I][z];return{index:I,loopPoint:J,slideLocation:lr(-1),translate:Fh(e,c[I]),target:()=>a.get()>J?R:B}})}function v(){const k=o[0],E=g(d,k);return x(E,n,!1)}function b(){const k=t-o[0]-1,E=g(u,k);return x(E,-n,!0)}function S(){return f.every(({index:k})=>{const E=u.filter(j=>j!==k);return p(E,t)<=.1})}function C(){f.forEach(k=>{const{target:E,translate:j,slideLocation:D}=k,I=E();I!==D.get()&&(j.to(I),D.set(I))})}function _(){f.forEach(k=>k.translate.clear())}return{canLoop:S,clear:_,loop:C,loopPoints:f}}function rS(e,t,n){let r,s=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(oi(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function sS(e,t,n,r){const s={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(g=>{c||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),c=!0}function d(g){return Rr(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:l,destroy:u,get:f}}function iS(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&s,u=g(),d=h(),f=n.map(o),p=x();function g(){if(!l)return 0;const b=n[0];return be(t[a]-b[a])}function h(){if(!l)return 0;const b=i.getComputedStyle(ut(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function x(){return n.map((b,S,C)=>{const _=!S,A=ja(C,S);return _?f[S]+u:A?f[S]+d:C[S+1][a]-b[a]}).map(be)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function oS(e,t,n,r,s,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=Ra(n);function p(v,b){return Pr(v).filter(S=>S%b===0).map(S=>v.slice(S,S+b))}function g(v){return v.length?Pr(v).reduce((b,S,C)=>{const _=ut(b)||0,A=_===0,k=S===Jr(v),E=s[l]-i[_][l],j=s[l]-i[S][u],D=!r&&A?d(o):0,I=!r&&k?d(a):0,R=be(j-I-(E+D));return C&&R>t+c&&b.push(S),k&&b.push(v.length),b},[]).map((b,S,C)=>{const _=Math.max(C[S-1]||0);return v.slice(_,b)}):[]}function h(v){return f?p(v,n):g(v)}return{groupSlides:h}}function aS(e,t,n,r,s,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:S,watchSlides:C,watchDrag:_,watchFocus:A}=i,k=2,E=z_(),j=E.measure(t),D=n.map(E.measure),I=F_(c,l),R=I.measureSize(j),B=U_(R),z=L_(a,R),J=!d&&!!b,K=d||!!b,{slideSizes:W,slideSizesWithGaps:U,startGap:Q,endGap:ce}=iS(I,j,D,n,K,s),le=oS(I,R,x,d,j,D,Q,ce,k),{snaps:De,snapsAligned:qe}=X_(I,z,j,D,le),Oe=-ut(De)+ut(U),{snapsContained:ot,scrollContainLimit:Fe}=G_(R,Oe,qe,b,k),ie=J?ot:qe,{limit:ue}=K_(Oe,ie,d),_e=Ih(Jr(ie),u,d),ke=_e.clone(),he=Pr(n),Z=({dragHandler:vt,scrollBody:sn,scrollBounds:Qn,options:{loop:on}})=>{on||Qn.constrain(vt.pointerDown()),sn.seek()},oe=({scrollBody:vt,translate:sn,location:Qn,offsetLocation:on,previousLocation:ci,scrollLooper:ts,slideLooper:Xh,dragHandler:Jh,animation:Qh,eventHandler:Oa,scrollBounds:em,options:{loop:Ma}},Va)=>{const La=vt.settled(),tm=!em.shouldConstrain(),Ia=Ma?La:La&&tm;Ia&&!Jh.pointerDown()&&(Qh.stop(),Oa.emit("settle")),Ia||Oa.emit("scroll");const nm=Qn.get()*Va+ci.get()*(1-Va);on.set(nm),Ma&&(ts.loop(vt.direction()),Xh.loop()),sn.to(on.get())},me=I_(r,s,()=>Z(Jn),vt=>oe(Jn,vt)),Ne=.68,Ye=ie[_e.get()],nt=lr(Ye),w=lr(Ye),T=lr(Ye),P=lr(Ye),L=Z_(nt,T,w,P,f,Ne),M=Q_(d,ie,Oe,ue,P),O=eS(me,_e,ke,L,M,P,o),G=Y_(ue),ne=Nr(),Pe=sS(t,n,o,h),{slideRegistry:Se}=J_(J,b,ie,Fe,le,he),yt=tS(e,n,Se,O,L,ne,o,A),Jn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:j,slideRects:D,animation:me,axis:I,dragHandler:B_(I,e,r,s,P,$_(I,s),nt,me,O,L,M,_e,o,B,p,g,v,Ne,_),eventStore:ne,percentOfView:B,index:_e,indexPrevious:ke,limit:ue,location:nt,offsetLocation:T,previousLocation:w,options:i,resizeHandler:W_(t,o,s,n,I,S,E),scrollBody:L,scrollBounds:H_(ue,T,P,L,B),scrollLooper:q_(Oe,ue,T,[nt,T,w,P]),scrollProgress:G,scrollSnapList:ie.map(G.get),scrollSnaps:ie,scrollTarget:M,scrollTo:O,slideLooper:nS(I,R,Oe,W,U,De,ie,T,n),slideFocus:yt,slidesHandler:rS(t,o,C),slidesInView:Pe,slideIndexes:he,slideRegistry:Se,slidesToScroll:le,target:P,translate:Fh(I,t)};return Jn}function cS(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function s(l){return r(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=r(l).concat([u]),c}function o(l,u){return e[l]=r(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:s,off:o,on:i,clear:a};return c}const lS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function uS(e){function t(i,o){return Lh(i,o||{})}function n(i){const o=i.breakpoints||{},a=Rr(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function r(i){return i.map(o=>Rr(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function dS(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Bs(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=uS(s),o=dS(i),a=Nr(),c=cS(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:g}=c,h=I;let x=!1,v,b=l(lS,Bs.globalOptions),S=l(b),C=[],_,A,k;function E(){const{container:he,slides:Z}=S;A=(mo(he)?e.querySelector(he):he)||e.children[0];const me=mo(Z)?A.querySelectorAll(Z):Z;k=[].slice.call(me||A.children)}function j(he){const Z=aS(e,A,k,r,s,he,c);if(he.loop&&!Z.slideLooper.canLoop()){const oe=Object.assign({},he,{loop:!1});return j(oe)}return Z}function D(he,Z){x||(b=l(b,he),S=u(b),C=Z||C,E(),v=j(S),d([b,...C.map(({options:oe})=>oe)]).forEach(oe=>a.add(oe,"change",I)),S.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ke),v.eventHandler.init(ke),v.resizeHandler.init(ke),v.slidesHandler.init(ke),v.options.loop&&v.slideLooper.loop(),A.offsetParent&&k.length&&v.dragHandler.init(ke),_=o.init(ke,C)))}function I(he,Z){const oe=le();R(),D(l({startIndex:oe},he),Z),c.emit("reInit")}function R(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function B(){x||(x=!0,a.clear(),R(),c.emit("destroy"),c.clear())}function z(he,Z,oe){!S.active||x||(v.scrollBody.useBaseFriction().useDuration(Z===!0?0:S.duration),v.scrollTo.index(he,oe||0))}function J(he){const Z=v.index.add(1).get();z(Z,he,-1)}function K(he){const Z=v.index.add(-1).get();z(Z,he,1)}function W(){return v.index.add(1).get()!==le()}function U(){return v.index.add(-1).get()!==le()}function Q(){return v.scrollSnapList}function ce(){return v.scrollProgress.get(v.location.get())}function le(){return v.index.get()}function De(){return v.indexPrevious.get()}function qe(){return v.slidesInView.get()}function Oe(){return v.slidesInView.get(!1)}function ot(){return _}function Fe(){return v}function ie(){return e}function ue(){return A}function _e(){return k}const ke={canScrollNext:W,canScrollPrev:U,containerNode:ue,internalEngine:Fe,destroy:B,off:p,on:f,emit:g,plugins:ot,previousScrollSnap:De,reInit:h,rootNode:ie,scrollNext:J,scrollPrev:K,scrollProgress:ce,scrollSnapList:Q,scrollTo:z,selectedScrollSnap:le,slideNodes:_e,slidesInView:qe,slidesNotInView:Oe};return D(t,n),setTimeout(()=>c.emit("init"),0),ke}Bs.globalOptions=void 0;function Qr(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),c=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{Pa(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{O_(r.current,t)||(r.current=t,c())},[t,c]),y.useEffect(()=>{if(D_()&&o){Bs.globalOptions=Qr.globalOptions;const l=Bs(o,n.current,r.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,s]}Qr.globalOptions=void 0;const fS=[{lang:Ve.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:Ve.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"List of participants",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],GT=()=>{const[e]=Qr(),t=ze(o=>o.lang),n=so("(min-width: 1024px)"),r=so("(min-width: 768px)"),s=t===Ve.RU?Ve.RU:Ve.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}return m.jsxs("section",{className:"flex flex-col gap-5",children:[m.jsx("div",{ref:e,className:"embla",children:m.jsx("div",{className:"embla__container",children:m.jsx("div",{className:"embla__slide",children:m.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),m.jsx(Ke,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:fS[pe(t)].data.map(({title:o,link:a,blank:c})=>m.jsx(Ae,{target:c?"_blank":"",to:a,className:"w-full",children:m.jsx(Ge,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},hS=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],KT=({className:e})=>{const t=ze(n=>n.lang);return m.jsx("section",{className:ee("bg-surface_high pt-10 pb-20",e),children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-6",children:Fs[pe(t)].title}),m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fs[pe(t)].data.map(n=>y.createElement(Yu,{...n,key:n.name,className:"w-full"}))}),m.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:hS[pe(t)].data.map(n=>y.createElement(Kg,{...n,key:n.title,className:"w-full"}))}),m.jsx(Ae,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:m.jsx(Ge,{className:"w-full",children:t===Ve.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},or=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. `,p_2:`Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии. - «Turkmentextile Expo-2025» – это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. + «Turkmentextile Expo-2025» – это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"Выставочной площади"},{nums:"10000+",text:"Ожидаемых посетителей "},{nums:"100+",text:"Экспонентов из более чем 30 стран"},{nums:"80%",text:"Участников топ-менеджмента"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry. - `,data:[{nums:"10,000 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}],button:"More about the exhibition"}],qT=()=>{const[e]=Qr(),t=ze(n=>n.lang);return m.jsx("section",{children:m.jsxs(Ke,{className:"flex flex-col gap-6",children:[m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2 text-left ",children:or[pe(t)].h2}),m.jsxs("div",{className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]",children:[m.jsx("p",{children:or[pe(t)].p}),m.jsx("p",{children:or[pe(t)].p_2})]}),m.jsx(Ce,{to:"/about",className:"",children:m.jsx(Ge,{variant:"outline",children:or[pe(t)].button})})]}),m.jsx("video",{src:"https://itse.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),m.jsx("div",{ref:e,className:"embla overflow-hidden",children:m.jsx("div",{className:"flex embla__container items-center gap-6",children:or[pe(t)].data.map(n=>m.jsx(Hg,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})})]})})},YT=()=>{const e=ze(t=>t.lang);return m.jsx("section",{className:"",children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-10 text-center",children:vr[pe(e)].title}),m.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:vr[pe(e)].data.map(t=>m.jsx(qu,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},mS=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels; Transfers; Visas",btnText:"Download travel guide",text:`Regarding hotel accommodation, visa support, - transportation and excursion services you can check out the Travel guide`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Explore the TurkmenTextile 2025 Exhibition Plan",btnText:"Download Exhibition plan",text:"How to choose the best location at the exhibition? A Prime spot increases your chances of attracting potential clients. ",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],XT=()=>{const[e,t]=Qr({align:"start"}),[n,r]=y.useState(0),s=ze(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),m.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:m.jsx(Ke,{children:m.jsxs("div",{ref:e,className:"embla ",children:[m.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:mS[pe(s)].data.map(o=>y.createElement(Gg,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),m.jsx(Gw,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},JT=()=>{const e=ze(t=>t.lang);return m.jsxs("header",{children:[m.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:m.jsxs(Ke,{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Wp,{}),m.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),m.jsx("nav",{className:"flex items-center gap-6",children:Bi[pe(e)].data.slice(0,3).map(t=>t.dropDown?m.jsx($l,{color:"black",dropDownText:t.dropDownText,title:t.title}):m.jsx(Ce,{className:"py-2",to:t.link||"",children:t.title},t.title))})]}),m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Hp,{size:16,strokeWidth:"3px"}),m.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),m.jsx(Bl,{})]})]})}),m.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:m.jsxs(Ke,{className:"flex items-center justify-between ",children:[m.jsxs("div",{className:"flex items-center gap-8",children:[m.jsx(Ce,{to:"/",children:m.jsx(Ku,{})}),m.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Bi[pe(e)].data.slice(3,6).map(t=>t.dropDown?m.jsx($l,{dropDownText:t.dropDownText,title:t.title,color:"white"}):m.jsx(Ce,{className:"py-2",to:t.link||"",children:t.title},t.title))})]}),m.jsxs("div",{className:"flex items-center",children:[m.jsx(Bl,{className:"lg:hidden"}),m.jsx(Zg,{})]}),m.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[m.jsx(Ce,{to:e===Ve.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),m.jsx(Ce,{to:"/become-sponsor",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},ql=(e,t,n)=>{if(e&&"reportValidity"in e){const r=V(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Bh=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?ql(r.ref,n,e):r.refs&&r.refs.forEach(s=>ql(s,n,e))}},pS=(e,t)=>{t.shouldUseNativeValidation&&Bh(e,t);const n={};for(const r in e){const s=V(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(gS(t.names||Object.keys(e),r)){const o=Object.assign({},V(n,r));fe(o,"root",i),fe(n,r,o)}else fe(n,r,i)}return n},gS=(e,t)=>e.some(n=>n.startsWith(t+"."));var yS=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=Vf(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},vS=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Bh({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:pS(yS(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ae;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ae||(ae={}));var go;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(go||(go={}));const B=ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Dt=e=>{switch(typeof e){case"undefined":return B.undefined;case"string":return B.string;case"number":return isNaN(e)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":return Array.isArray(e)?B.array:e===null?B.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?B.promise:typeof Map<"u"&&e instanceof Map?B.map:typeof Set<"u"&&e instanceof Set?B.set:typeof Date<"u"&&e instanceof Date?B.date:B.object;default:return B.unknown}},N=ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),xS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class tt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;cn.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}tt.create=e=>new tt(e);const zn=(e,t)=>{let n;switch(e.code){case N.invalid_type:e.received===B.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case N.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ae.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:n=`Unrecognized key(s) in object: ${ae.joinValues(e.keys,", ")}`;break;case N.invalid_union:n="Invalid input";break;case N.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ae.joinValues(e.options)}`;break;case N.invalid_enum_value:n=`Invalid enum value. Expected ${ae.joinValues(e.options)}, received '${e.received}'`;break;case N.invalid_arguments:n="Invalid function arguments";break;case N.invalid_return_type:n="Invalid function return type";break;case N.invalid_date:n="Invalid date";break;case N.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ae.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case N.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case N.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case N.custom:n="Invalid input";break;case N.invalid_intersection_types:n="Intersection results could not be merged";break;case N.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case N.not_finite:n="Number must be finite";break;default:n=t.defaultError,ae.assertNever(e)}return{message:n}};let $h=zn;function bS(e){$h=e}function Bs(){return $h}const $s=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},wS=[];function I(e,t){const n=Bs(),r=$s({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===zn?void 0:zn].filter(s=>!!s)});e.common.issues.push(r)}class Ie{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return X;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return Ie.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return X;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const X=Object.freeze({status:"aborted"}),jn=e=>({status:"dirty",value:e}),Ue=e=>({status:"valid",value:e}),yo=e=>e.status==="aborted",vo=e=>e.status==="dirty",vn=e=>e.status==="valid",jr=e=>typeof Promise<"u"&&e instanceof Promise;function zs(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function zh(e,t,n,r,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var H;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(H||(H={}));var ur,dr;class Et{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Yl=(e,t)=>{if(vn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new tt(e.common.issues);return this._error=n,this._error}}};function te(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:s}}class se{get description(){return this._def.description}_getType(t){return Dt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ie,ctx:{common:t.parent.common,data:t.data,parsedType:Dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)},i=this._parseSync({data:t,path:s.path,parent:s});return Yl(s,i)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:s});return vn(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(i=>vn(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(jr(s)?s:Promise.resolve(s));return Yl(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:N.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new mt({schema:this,typeName:Y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return At.create(this,this._def)}nullable(){return en.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dt.create(this)}promise(){return Wn.create(this,this._def)}or(t){return Vr.create([this,t],this._def)}and(t){return Lr.create(this,t,this._def)}transform(t){return new mt({...te(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new zr({...te(this._def),innerType:this,defaultValue:n,typeName:Y.ZodDefault})}brand(){return new Da({typeName:Y.ZodBranded,type:this,...te(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ur({...te(this._def),innerType:this,catchValue:n,typeName:Y.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return es.create(this,t)}readonly(){return Wr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _S=/^c[^\s-]{8,}$/i,SS=/^[0-9a-z]+$/,TS=/^[0-9A-HJKMNP-TV-Z]{26}$/i,AS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,CS=/^[a-z0-9_-]{21}$/i,ES=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,PS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,kS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,RS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Oi;const NS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,DS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,MS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,OS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,VS=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uh="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",LS=new RegExp(`^${Uh}$`);function Wh(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function IS(e){return new RegExp(`^${Wh(e)}$`)}function Zh(e){let t=`${Uh}T${Wh(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function FS(e,t){return!!((t==="v4"||!t)&&NS.test(e)||(t==="v6"||!t)&&DS.test(e))}function BS(e,t){if(!ES.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function $S(e,t){return!!((t==="v4"||!t)&&jS.test(e)||(t==="v6"||!t)&&MS.test(e))}class lt extends se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==B.string){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.string,received:i.parsedType}),X}const r=new Ie;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),I(s,{code:N.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:N.invalid_string,...H.errToObj(r)})}_addCheck(t){return new lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...H.errToObj(t)})}url(t){return this._addCheck({kind:"url",...H.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...H.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...H.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...H.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...H.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...H.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...H.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...H.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...H.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...H.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...H.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new lt({checks:[],typeName:Y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};function zS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class Xt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==B.number){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.number,received:i.parsedType}),X}let r;const s=new Ie;for(const i of this._def.checks)i.kind==="int"?ae.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),I(r,{code:N.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?zS(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_finite,message:i.message}),s.dirty()):ae.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Xt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Xt({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:H.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:H.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&ae.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Xt({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class Jt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==B.bigint)return this._getInvalidInput(t);let r;const s=new Ie;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ae.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return I(n,{code:N.invalid_type,expected:B.bigint,received:n.parsedType}),X}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Jt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Jt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Jt({checks:[],typeName:Y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};class Dr extends se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==B.boolean){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.boolean,received:r.parsedType}),X}return Ue(t.data)}}Dr.create=e=>new Dr({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class xn extends se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==B.date){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.date,received:i.parsedType}),X}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_date}),X}const r=new Ie;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),I(s,{code:N.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ae.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new xn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:H.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew xn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...te(e)});class Us extends se{_parse(t){if(this._getType(t)!==B.symbol){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.symbol,received:r.parsedType}),X}return Ue(t.data)}}Us.create=e=>new Us({typeName:Y.ZodSymbol,...te(e)});class Mr extends se{_parse(t){if(this._getType(t)!==B.undefined){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.undefined,received:r.parsedType}),X}return Ue(t.data)}}Mr.create=e=>new Mr({typeName:Y.ZodUndefined,...te(e)});class Or extends se{_parse(t){if(this._getType(t)!==B.null){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.null,received:r.parsedType}),X}return Ue(t.data)}}Or.create=e=>new Or({typeName:Y.ZodNull,...te(e)});class Un extends se{constructor(){super(...arguments),this._any=!0}_parse(t){return Ue(t.data)}}Un.create=e=>new Un({typeName:Y.ZodAny,...te(e)});class hn extends se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ue(t.data)}}hn.create=e=>new hn({typeName:Y.ZodUnknown,...te(e)});class Ft extends se{_parse(t){const n=this._getOrReturnCtx(t);return I(n,{code:N.invalid_type,expected:B.never,received:n.parsedType}),X}}Ft.create=e=>new Ft({typeName:Y.ZodNever,...te(e)});class Ws extends se{_parse(t){if(this._getType(t)!==B.undefined){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.void,received:r.parsedType}),X}return Ue(t.data)}}Ws.create=e=>new Ws({typeName:Y.ZodVoid,...te(e)});class dt extends se{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==B.array)return I(n,{code:N.invalid_type,expected:B.array,received:n.parsedType}),X;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(I(n,{code:N.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Et(n,o,n.path,a)))).then(o=>Ie.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Et(n,o,n.path,a)));return Ie.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new dt({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new dt({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new dt({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}}dt.create=(e,t)=>new dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...te(t)});function Cn(e){if(e instanceof ve){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=At.create(Cn(r))}return new ve({...e._def,shape:()=>t})}else return e instanceof dt?new dt({...e._def,type:Cn(e.element)}):e instanceof At?At.create(Cn(e.unwrap())):e instanceof en?en.create(Cn(e.unwrap())):e instanceof Pt?Pt.create(e.items.map(t=>Cn(t))):e}class ve extends se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ae.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==B.object){const l=this._getOrReturnCtx(t);return I(l,{code:N.invalid_type,expected:B.object,received:l.parsedType}),X}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ft&&this._def.unknownKeys==="strip"))for(const l in s.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Et(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Ft){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(I(s,{code:N.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Et(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Ie.mergeObjectSync(r,l)):Ie.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new ve({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=H.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new ve({...this._def,unknownKeys:"strip"})}passthrough(){return new ve({...this._def,unknownKeys:"passthrough"})}extend(t){return new ve({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ve({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Y.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ve({...this._def,catchall:t})}pick(t){const n={};return ae.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}omit(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}deepPartial(){return Cn(this)}partial(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new ve({...this._def,shape:()=>n})}required(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof At;)i=i._def.innerType;n[r]=i}}),new ve({...this._def,shape:()=>n})}keyof(){return Hh(ae.objectKeys(this.shape))}}ve.create=(e,t)=>new ve({shape:()=>e,unknownKeys:"strip",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});ve.strictCreate=(e,t)=>new ve({shape:()=>e,unknownKeys:"strict",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});ve.lazycreate=(e,t)=>new ve({shape:e,unknownKeys:"strip",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});class Vr extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new tt(a.ctx.common.issues));return I(n,{code:N.invalid_union,unionErrors:o}),X}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new tt(c));return I(n,{code:N.invalid_union,unionErrors:a}),X}}get options(){return this._def.options}}Vr.create=(e,t)=>new Vr({options:e,typeName:Y.ZodUnion,...te(t)});const jt=e=>e instanceof Fr?jt(e.schema):e instanceof mt?jt(e.innerType()):e instanceof Br?[e.value]:e instanceof Qt?e.options:e instanceof $r?ae.objectValues(e.enum):e instanceof zr?jt(e._def.innerType):e instanceof Mr?[void 0]:e instanceof Or?[null]:e instanceof At?[void 0,...jt(e.unwrap())]:e instanceof en?[null,...jt(e.unwrap())]:e instanceof Da||e instanceof Wr?jt(e.unwrap()):e instanceof Ur?jt(e._def.innerType):[];class oi extends se{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.object)return I(n,{code:N.invalid_type,expected:B.object,received:n.parsedType}),X;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(I(n,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),X)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=jt(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new oi({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...te(r)})}}function xo(e,t){const n=Dt(e),r=Dt(t);if(e===t)return{valid:!0,data:e};if(n===B.object&&r===B.object){const s=ae.objectKeys(t),i=ae.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=xo(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===B.array&&r===B.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(yo(i)||yo(o))return X;const a=xo(i.value,o.value);return a.valid?((vo(i)||vo(o))&&n.dirty(),{status:n.value,value:a.data}):(I(r,{code:N.invalid_intersection_types}),X)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lr.create=(e,t,n)=>new Lr({left:e,right:t,typeName:Y.ZodIntersection,...te(n)});class Pt extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.array)return I(r,{code:N.invalid_type,expected:B.array,received:r.parsedType}),X;if(r.data.lengththis._def.items.length&&(I(r,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Et(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ie.mergeArray(n,o)):Ie.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Pt({...this._def,rest:t})}}Pt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Pt({items:e,typeName:Y.ZodTuple,rest:null,...te(t)})};class Ir extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.object)return I(r,{code:N.invalid_type,expected:B.object,received:r.parsedType}),X;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new Et(r,a,r.path,a)),value:o._parse(new Et(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Ie.mergeObjectAsync(n,s):Ie.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof se?new Ir({keyType:t,valueType:n,typeName:Y.ZodRecord,...te(r)}):new Ir({keyType:lt.create(),valueType:t,typeName:Y.ZodRecord,...te(n)})}}class Zs extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.map)return I(r,{code:N.invalid_type,expected:B.map,received:r.parsedType}),X;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],l)=>({key:s._parse(new Et(r,a,r.path,[l,"key"])),value:i._parse(new Et(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Zs.create=(e,t,n)=>new Zs({valueType:t,keyType:e,typeName:Y.ZodMap,...te(n)});class bn extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.set)return I(r,{code:N.invalid_type,expected:B.set,received:r.parsedType}),X;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(I(r,{code:N.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return X;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>i._parse(new Et(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new bn({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new bn({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bn.create=(e,t)=>new bn({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...te(t)});class Vn extends se{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.function)return I(n,{code:N.invalid_type,expected:B.function,received:n.parsedType}),X;function r(a,c){return $s({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bs(),zn].filter(l=>!!l),issueData:{code:N.invalid_arguments,argumentsError:c}})}function s(a,c){return $s({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bs(),zn].filter(l=>!!l),issueData:{code:N.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Wn){const a=this;return Ue(async function(...c){const l=new tt([]),u=await a._def.args.parseAsync(c,i).catch(p=>{throw l.addIssue(r(c,p)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(p=>{throw l.addIssue(s(d,p)),l})})}else{const a=this;return Ue(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new tt([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new tt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Vn({...this._def,args:Pt.create(t).rest(hn.create())})}returns(t){return new Vn({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Vn({args:t||Pt.create([]).rest(hn.create()),returns:n||hn.create(),typeName:Y.ZodFunction,...te(r)})}}class Fr extends se{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Fr.create=(e,t)=>new Fr({getter:e,typeName:Y.ZodLazy,...te(t)});class Br extends se{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return I(n,{received:n.data,code:N.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:t.data}}get value(){return this._def.value}}Br.create=(e,t)=>new Br({value:e,typeName:Y.ZodLiteral,...te(t)});function Hh(e,t){return new Qt({values:e,typeName:Y.ZodEnum,...te(t)})}class Qt extends se{constructor(){super(...arguments),ur.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return I(n,{expected:ae.joinValues(r),received:n.parsedType,code:N.invalid_type}),X}if(zs(this,ur)||zh(this,ur,new Set(this._def.values)),!zs(this,ur).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return I(n,{received:n.data,code:N.invalid_enum_value,options:r}),X}return Ue(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Qt.create(t,{...this._def,...n})}exclude(t,n=this._def){return Qt.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ur=new WeakMap;Qt.create=Hh;class $r extends se{constructor(){super(...arguments),dr.set(this,void 0)}_parse(t){const n=ae.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==B.string&&r.parsedType!==B.number){const s=ae.objectValues(n);return I(r,{expected:ae.joinValues(s),received:r.parsedType,code:N.invalid_type}),X}if(zs(this,dr)||zh(this,dr,new Set(ae.getValidEnumValues(this._def.values))),!zs(this,dr).has(t.data)){const s=ae.objectValues(n);return I(r,{received:r.data,code:N.invalid_enum_value,options:s}),X}return Ue(t.data)}get enum(){return this._def.values}}dr=new WeakMap;$r.create=(e,t)=>new $r({values:e,typeName:Y.ZodNativeEnum,...te(t)});class Wn extends se{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.promise&&n.common.async===!1)return I(n,{code:N.invalid_type,expected:B.promise,received:n.parsedType}),X;const r=n.parsedType===B.promise?n.data:Promise.resolve(n.data);return Ue(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Wn.create=(e,t)=>new Wn({type:e,typeName:Y.ZodPromise,...te(t)});class mt extends se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{I(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return X;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?X:c.status==="dirty"||n.value==="dirty"?jn(c.value):c});{if(n.value==="aborted")return X;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?X:a.status==="dirty"||n.value==="dirty"?jn(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vn(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>vn(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ae.assertNever(s)}}mt.create=(e,t,n)=>new mt({schema:e,typeName:Y.ZodEffects,effect:t,...te(n)});mt.createWithPreprocess=(e,t,n)=>new mt({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...te(n)});class At extends se{_parse(t){return this._getType(t)===B.undefined?Ue(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}At.create=(e,t)=>new At({innerType:e,typeName:Y.ZodOptional,...te(t)});class en extends se{_parse(t){return this._getType(t)===B.null?Ue(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:Y.ZodNullable,...te(t)});class zr extends se{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===B.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...te(t)});class Ur extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jr(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new tt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new tt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ur.create=(e,t)=>new Ur({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...te(t)});class Hs extends se{_parse(t){if(this._getType(t)!==B.nan){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.nan,received:r.parsedType}),X}return{status:"valid",value:t.data}}}Hs.create=e=>new Hs({typeName:Y.ZodNaN,...te(e)});const US=Symbol("zod_brand");class Da extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class es extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?X:i.status==="dirty"?(n.dirty(),jn(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?X:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new es({in:t,out:n,typeName:Y.ZodPipeline})}}class Wr extends se{_parse(t){const n=this._def.innerType._parse(t),r=s=>(vn(s)&&(s.value=Object.freeze(s.value)),s);return jr(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Wr.create=(e,t)=>new Wr({innerType:e,typeName:Y.ZodReadonly,...te(t)});function Gh(e,t={},n){return e?Un.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...l,fatal:c})}}):Un.create()}const WS={object:ve.lazycreate};var Y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Y||(Y={}));const ZS=(e,t={message:`Input not instance of ${e.name}`})=>Gh(n=>n instanceof e,t),Kh=lt.create,qh=Xt.create,HS=Hs.create,GS=Jt.create,Yh=Dr.create,KS=xn.create,qS=Us.create,YS=Mr.create,XS=Or.create,JS=Un.create,QS=hn.create,eT=Ft.create,tT=Ws.create,nT=dt.create,rT=ve.create,sT=ve.strictCreate,iT=Vr.create,oT=oi.create,aT=Lr.create,cT=Pt.create,lT=Ir.create,uT=Zs.create,dT=bn.create,fT=Vn.create,hT=Fr.create,mT=Br.create,pT=Qt.create,gT=$r.create,yT=Wn.create,Xl=mt.create,vT=At.create,xT=en.create,bT=mt.createWithPreprocess,wT=es.create,_T=()=>Kh().optional(),ST=()=>qh().optional(),TT=()=>Yh().optional(),AT={string:e=>lt.create({...e,coerce:!0}),number:e=>Xt.create({...e,coerce:!0}),boolean:e=>Dr.create({...e,coerce:!0}),bigint:e=>Jt.create({...e,coerce:!0}),date:e=>xn.create({...e,coerce:!0})},CT=X;var Jl=Object.freeze({__proto__:null,defaultErrorMap:zn,setErrorMap:bS,getErrorMap:Bs,makeIssue:$s,EMPTY_PATH:wS,addIssueToContext:I,ParseStatus:Ie,INVALID:X,DIRTY:jn,OK:Ue,isAborted:yo,isDirty:vo,isValid:vn,isAsync:jr,get util(){return ae},get objectUtil(){return go},ZodParsedType:B,getParsedType:Dt,ZodType:se,datetimeRegex:Zh,ZodString:lt,ZodNumber:Xt,ZodBigInt:Jt,ZodBoolean:Dr,ZodDate:xn,ZodSymbol:Us,ZodUndefined:Mr,ZodNull:Or,ZodAny:Un,ZodUnknown:hn,ZodNever:Ft,ZodVoid:Ws,ZodArray:dt,ZodObject:ve,ZodUnion:Vr,ZodDiscriminatedUnion:oi,ZodIntersection:Lr,ZodTuple:Pt,ZodRecord:Ir,ZodMap:Zs,ZodSet:bn,ZodFunction:Vn,ZodLazy:Fr,ZodLiteral:Br,ZodEnum:Qt,ZodNativeEnum:$r,ZodPromise:Wn,ZodEffects:mt,ZodTransformer:mt,ZodOptional:At,ZodNullable:en,ZodDefault:zr,ZodCatch:Ur,ZodNaN:Hs,BRAND:US,ZodBranded:Da,ZodPipeline:es,ZodReadonly:Wr,custom:Gh,Schema:se,ZodSchema:se,late:WS,get ZodFirstPartyTypeKind(){return Y},coerce:AT,any:JS,array:nT,bigint:GS,boolean:Yh,date:KS,discriminatedUnion:oT,effect:Xl,enum:pT,function:fT,instanceof:ZS,intersection:aT,lazy:hT,literal:mT,map:uT,nan:HS,nativeEnum:gT,never:eT,null:XS,nullable:xT,number:qh,object:rT,oboolean:TT,onumber:ST,optional:vT,ostring:_T,pipeline:wT,preprocess:bT,promise:yT,record:lT,set:dT,strictObject:sT,string:Kh,symbol:qS,transformer:Xl,tuple:cT,undefined:YS,union:iT,unknown:QS,void:tT,NEVER:CT,ZodIssueCode:N,quotelessJson:xS,ZodError:tt});const Ql=(e,t)=>ze(r=>r.lang)==="ru"?e:t,ET=Jl.object({email:Jl.string().email()}),PT=()=>{var n,r;const e=zw({resolver:vS(ET),defaultValues:{email:""}});async function t(s){console.log(s)}return m.jsx("form",{onSubmit:e.handleSubmit(t),className:"py-8 bg-bg_surface_container",children:m.jsxs(Ke,{className:"flex lg:flex-row flex-col gap-6 lg:items-center justify-between",children:[m.jsx("h2",{className:"h2",children:Ql("Подпишитесь на новости:","Subscribe to the news:")}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{...e.register("email"),placeholder:"E-mail",className:"input xl:w-[392px] lg:w-[320px] w-full"}),m.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(r=(n=e.formState.errors)==null?void 0:n.email)==null?void 0:r.message})]}),m.jsx(Ge,{className:"xl:w-[288px] lg:w-[220px] w-full",children:Ql("Подписаться","Subscribe")})]})})},QT=()=>{const e=ze(t=>t.lang);return m.jsxs("footer",{children:[m.jsx(PT,{}),m.jsx("div",{className:"py-5 bg-primary",children:m.jsxs(Ke,{className:"flex flex-col gap-6",children:[m.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[m.jsx(Ku,{}),m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsx(Ce,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:m.jsx(Bp,{className:"text-white"})}),m.jsx(Ce,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:m.jsx("img",{src:"/inst.svg"})}),m.jsx(Ce,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:m.jsx("img",{src:"/in.svg"})}),m.jsx(Ce,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:m.jsx("img",{src:"/x.svg"})})]})]}),m.jsx("hr",{className:"border-white/50"}),m.jsx("h5",{className:"text-base text-center normal text-white",children:e===Ve.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},Ke=({className:e,children:t})=>m.jsx("div",{className:ee("w-full mx-auto max-w-[1240px] px-4",e),children:t}),eA=({title:e})=>m.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[m.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),m.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{HT as A,Ge as B,eA as C,FT as D,vS as E,QT as F,VT as G,JT as H,bo as I,pt as J,ms as K,Ve as L,Je as M,nu as N,Zt as O,We as P,G0 as Q,Hn as R,Zn as S,jT as T,Ke as U,GT as a,qT as b,XT as c,YT as d,KT as e,ee as f,$T as g,zT as h,ZT as i,m as j,UT as k,WT as l,ei as m,bs as n,pe as o,Zw as p,Kf as q,qf as r,Yf as s,IT as t,ze as u,DT as v,zw as w,LT as x,MT as y,Jl as z}; + `,data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"More about the exhibition"}],qT=()=>{const[e]=Qr(),t=ze(n=>n.lang);return m.jsx("section",{children:m.jsxs(Ke,{className:"flex flex-col gap-6",children:[m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-6",children:[m.jsx("h2",{className:"h2 text-left ",children:or[pe(t)].h2}),m.jsxs("div",{className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]",children:[m.jsx("p",{children:or[pe(t)].p}),m.jsx("p",{children:or[pe(t)].p_2})]}),m.jsx(Ae,{to:"/about",className:"",children:m.jsx(Ge,{variant:"outline",children:or[pe(t)].button})})]}),m.jsx("video",{src:"https://itse.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),m.jsx("div",{ref:e,className:"embla overflow-hidden",children:m.jsx("div",{className:"flex embla__container items-center gap-6",children:or[pe(t)].data.map(n=>m.jsx(Hg,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})})]})})},YT=()=>{const e=ze(t=>t.lang);return m.jsx("section",{className:"",children:m.jsxs(Ke,{children:[m.jsx("h2",{className:"h2 mb-10 text-center",children:vr[pe(e)].title}),m.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:vr[pe(e)].data.map(t=>m.jsx(qu,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},mS=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],XT=()=>{const[e,t]=Qr({align:"start"}),[n,r]=y.useState(0),s=ze(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),m.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:m.jsx(Ke,{children:m.jsxs("div",{ref:e,className:"embla ",children:[m.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:mS[pe(s)].data.map(o=>y.createElement(Gg,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),m.jsx(Gw,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},JT=()=>{const e=ze(t=>t.lang);return console.log(ys),m.jsxs("header",{children:[m.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:m.jsxs(Ke,{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Wp,{}),m.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),m.jsx("nav",{className:"flex items-center gap-6",children:ys[pe(e)].data.slice(0,3).map(t=>t.dropDown?m.jsx($l,{color:"black",dropDownContent:t.dropDownContent,title:t.title},t.title):m.jsx(Ae,{className:"py-2",to:t.link||"",children:t.title},t.title))})]}),m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Hp,{size:16,strokeWidth:"3px"}),m.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),m.jsx(Bl,{})]})]})}),m.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:m.jsxs(Ke,{className:"flex items-center justify-between ",children:[m.jsxs("div",{className:"flex items-center gap-8",children:[m.jsx(Ae,{to:"/",children:m.jsx(Ku,{})}),m.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:ys[pe(e)].data.slice(3,6).map(t=>t.dropDown?m.jsx($l,{dropDownContent:t.dropDownContent,title:t.title,color:"white"},t.title):m.jsx(Ae,{className:"py-2",to:t.link||"",children:t.title},t.title))})]}),m.jsxs("div",{className:"flex items-center",children:[m.jsx(Bl,{className:"lg:hidden"}),m.jsx(Zg,{})]}),m.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[m.jsx(Ae,{to:e===Ve.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),m.jsx(Ae,{to:"/become-sponsor",children:m.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},ql=(e,t,n)=>{if(e&&"reportValidity"in e){const r=V(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Bh=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?ql(r.ref,n,e):r.refs&&r.refs.forEach(s=>ql(s,n,e))}},pS=(e,t)=>{t.shouldUseNativeValidation&&Bh(e,t);const n={};for(const r in e){const s=V(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(gS(t.names||Object.keys(e),r)){const o=Object.assign({},V(n,r));fe(o,"root",i),fe(n,r,o)}else fe(n,r,i)}return n},gS=(e,t)=>e.some(n=>n.startsWith(t+"."));var yS=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=Vf(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},vS=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Bh({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:pS(yS(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ae;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ae||(ae={}));var go;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(go||(go={}));const $=ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Dt=e=>{switch(typeof e){case"undefined":return $.undefined;case"string":return $.string;case"number":return isNaN(e)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(e)?$.array:e===null?$.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?$.promise:typeof Map<"u"&&e instanceof Map?$.map:typeof Set<"u"&&e instanceof Set?$.set:typeof Date<"u"&&e instanceof Date?$.date:$.object;default:return $.unknown}},N=ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),xS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class tt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;cn.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}tt.create=e=>new tt(e);const zn=(e,t)=>{let n;switch(e.code){case N.invalid_type:e.received===$.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case N.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ae.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:n=`Unrecognized key(s) in object: ${ae.joinValues(e.keys,", ")}`;break;case N.invalid_union:n="Invalid input";break;case N.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ae.joinValues(e.options)}`;break;case N.invalid_enum_value:n=`Invalid enum value. Expected ${ae.joinValues(e.options)}, received '${e.received}'`;break;case N.invalid_arguments:n="Invalid function arguments";break;case N.invalid_return_type:n="Invalid function return type";break;case N.invalid_date:n="Invalid date";break;case N.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ae.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case N.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case N.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case N.custom:n="Invalid input";break;case N.invalid_intersection_types:n="Intersection results could not be merged";break;case N.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case N.not_finite:n="Number must be finite";break;default:n=t.defaultError,ae.assertNever(e)}return{message:n}};let $h=zn;function bS(e){$h=e}function $s(){return $h}const zs=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},wS=[];function F(e,t){const n=$s(),r=zs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===zn?void 0:zn].filter(s=>!!s)});e.common.issues.push(r)}class Ie{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return X;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return Ie.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return X;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const X=Object.freeze({status:"aborted"}),jn=e=>({status:"dirty",value:e}),Ue=e=>({status:"valid",value:e}),yo=e=>e.status==="aborted",vo=e=>e.status==="dirty",vn=e=>e.status==="valid",jr=e=>typeof Promise<"u"&&e instanceof Promise;function Us(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function zh(e,t,n,r,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var H;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(H||(H={}));var ur,dr;class Et{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Yl=(e,t)=>{if(vn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new tt(e.common.issues);return this._error=n,this._error}}};function te(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:s}}class se{get description(){return this._def.description}_getType(t){return Dt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ie,ctx:{common:t.parent.common,data:t.data,parsedType:Dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)},i=this._parseSync({data:t,path:s.path,parent:s});return Yl(s,i)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:s});return vn(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(i=>vn(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dt(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(jr(s)?s:Promise.resolve(s));return Yl(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:N.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new mt({schema:this,typeName:Y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ct.create(this,this._def)}nullable(){return en.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dt.create(this)}promise(){return Wn.create(this,this._def)}or(t){return Vr.create([this,t],this._def)}and(t){return Lr.create(this,t,this._def)}transform(t){return new mt({...te(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new zr({...te(this._def),innerType:this,defaultValue:n,typeName:Y.ZodDefault})}brand(){return new Da({typeName:Y.ZodBranded,type:this,...te(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ur({...te(this._def),innerType:this,catchValue:n,typeName:Y.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return es.create(this,t)}readonly(){return Wr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _S=/^c[^\s-]{8,}$/i,SS=/^[0-9a-z]+$/,TS=/^[0-9A-HJKMNP-TV-Z]{26}$/i,CS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,AS=/^[a-z0-9_-]{21}$/i,ES=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,PS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,RS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Vi;const NS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,DS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,OS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,MS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,VS=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uh="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",LS=new RegExp(`^${Uh}$`);function Wh(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function IS(e){return new RegExp(`^${Wh(e)}$`)}function Zh(e){let t=`${Uh}T${Wh(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function FS(e,t){return!!((t==="v4"||!t)&&NS.test(e)||(t==="v6"||!t)&&DS.test(e))}function BS(e,t){if(!ES.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function $S(e,t){return!!((t==="v4"||!t)&&jS.test(e)||(t==="v6"||!t)&&OS.test(e))}class lt extends se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$.string){const i=this._getOrReturnCtx(t);return F(i,{code:N.invalid_type,expected:$.string,received:i.parsedType}),X}const r=new Ie;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:N.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:N.invalid_string,...H.errToObj(r)})}_addCheck(t){return new lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...H.errToObj(t)})}url(t){return this._addCheck({kind:"url",...H.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...H.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...H.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...H.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...H.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...H.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...H.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...H.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...H.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...H.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...H.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new lt({checks:[],typeName:Y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};function zS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class Xt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$.number){const i=this._getOrReturnCtx(t);return F(i,{code:N.invalid_type,expected:$.number,received:i.parsedType}),X}let r;const s=new Ie;for(const i of this._def.checks)i.kind==="int"?ae.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:N.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:N.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?zS(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),F(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:N.not_finite,message:i.message}),s.dirty()):ae.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Xt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Xt({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:H.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:H.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&ae.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Xt({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class Jt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==$.bigint)return this._getInvalidInput(t);let r;const s=new Ie;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),F(r,{code:N.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),F(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ae.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return F(n,{code:N.invalid_type,expected:$.bigint,received:n.parsedType}),X}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Jt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Jt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Jt({checks:[],typeName:Y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};class Dr extends se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==$.boolean){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.boolean,received:r.parsedType}),X}return Ue(t.data)}}Dr.create=e=>new Dr({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class xn extends se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$.date){const i=this._getOrReturnCtx(t);return F(i,{code:N.invalid_type,expected:$.date,received:i.parsedType}),X}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return F(i,{code:N.invalid_date}),X}const r=new Ie;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:N.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ae.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new xn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:H.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew xn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...te(e)});class Ws extends se{_parse(t){if(this._getType(t)!==$.symbol){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.symbol,received:r.parsedType}),X}return Ue(t.data)}}Ws.create=e=>new Ws({typeName:Y.ZodSymbol,...te(e)});class Or extends se{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.undefined,received:r.parsedType}),X}return Ue(t.data)}}Or.create=e=>new Or({typeName:Y.ZodUndefined,...te(e)});class Mr extends se{_parse(t){if(this._getType(t)!==$.null){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.null,received:r.parsedType}),X}return Ue(t.data)}}Mr.create=e=>new Mr({typeName:Y.ZodNull,...te(e)});class Un extends se{constructor(){super(...arguments),this._any=!0}_parse(t){return Ue(t.data)}}Un.create=e=>new Un({typeName:Y.ZodAny,...te(e)});class hn extends se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ue(t.data)}}hn.create=e=>new hn({typeName:Y.ZodUnknown,...te(e)});class Ft extends se{_parse(t){const n=this._getOrReturnCtx(t);return F(n,{code:N.invalid_type,expected:$.never,received:n.parsedType}),X}}Ft.create=e=>new Ft({typeName:Y.ZodNever,...te(e)});class Zs extends se{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.void,received:r.parsedType}),X}return Ue(t.data)}}Zs.create=e=>new Zs({typeName:Y.ZodVoid,...te(e)});class dt extends se{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==$.array)return F(n,{code:N.invalid_type,expected:$.array,received:n.parsedType}),X;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(F(n,{code:N.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Et(n,o,n.path,a)))).then(o=>Ie.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Et(n,o,n.path,a)));return Ie.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new dt({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new dt({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new dt({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}}dt.create=(e,t)=>new dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...te(t)});function An(e){if(e instanceof ve){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ct.create(An(r))}return new ve({...e._def,shape:()=>t})}else return e instanceof dt?new dt({...e._def,type:An(e.element)}):e instanceof Ct?Ct.create(An(e.unwrap())):e instanceof en?en.create(An(e.unwrap())):e instanceof kt?kt.create(e.items.map(t=>An(t))):e}class ve extends se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ae.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==$.object){const l=this._getOrReturnCtx(t);return F(l,{code:N.invalid_type,expected:$.object,received:l.parsedType}),X}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ft&&this._def.unknownKeys==="strip"))for(const l in s.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Et(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Ft){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(F(s,{code:N.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Et(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Ie.mergeObjectSync(r,l)):Ie.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new ve({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=H.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new ve({...this._def,unknownKeys:"strip"})}passthrough(){return new ve({...this._def,unknownKeys:"passthrough"})}extend(t){return new ve({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ve({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Y.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ve({...this._def,catchall:t})}pick(t){const n={};return ae.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}omit(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}deepPartial(){return An(this)}partial(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new ve({...this._def,shape:()=>n})}required(t){const n={};return ae.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ct;)i=i._def.innerType;n[r]=i}}),new ve({...this._def,shape:()=>n})}keyof(){return Hh(ae.objectKeys(this.shape))}}ve.create=(e,t)=>new ve({shape:()=>e,unknownKeys:"strip",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});ve.strictCreate=(e,t)=>new ve({shape:()=>e,unknownKeys:"strict",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});ve.lazycreate=(e,t)=>new ve({shape:e,unknownKeys:"strip",catchall:Ft.create(),typeName:Y.ZodObject,...te(t)});class Vr extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new tt(a.ctx.common.issues));return F(n,{code:N.invalid_union,unionErrors:o}),X}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new tt(c));return F(n,{code:N.invalid_union,unionErrors:a}),X}}get options(){return this._def.options}}Vr.create=(e,t)=>new Vr({options:e,typeName:Y.ZodUnion,...te(t)});const jt=e=>e instanceof Fr?jt(e.schema):e instanceof mt?jt(e.innerType()):e instanceof Br?[e.value]:e instanceof Qt?e.options:e instanceof $r?ae.objectValues(e.enum):e instanceof zr?jt(e._def.innerType):e instanceof Or?[void 0]:e instanceof Mr?[null]:e instanceof Ct?[void 0,...jt(e.unwrap())]:e instanceof en?[null,...jt(e.unwrap())]:e instanceof Da||e instanceof Wr?jt(e.unwrap()):e instanceof Ur?jt(e._def.innerType):[];class ai extends se{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.object)return F(n,{code:N.invalid_type,expected:$.object,received:n.parsedType}),X;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(F(n,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),X)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=jt(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new ai({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...te(r)})}}function xo(e,t){const n=Dt(e),r=Dt(t);if(e===t)return{valid:!0,data:e};if(n===$.object&&r===$.object){const s=ae.objectKeys(t),i=ae.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=xo(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===$.array&&r===$.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(yo(i)||yo(o))return X;const a=xo(i.value,o.value);return a.valid?((vo(i)||vo(o))&&n.dirty(),{status:n.value,value:a.data}):(F(r,{code:N.invalid_intersection_types}),X)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lr.create=(e,t,n)=>new Lr({left:e,right:t,typeName:Y.ZodIntersection,...te(n)});class kt extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return F(r,{code:N.invalid_type,expected:$.array,received:r.parsedType}),X;if(r.data.lengththis._def.items.length&&(F(r,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Et(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ie.mergeArray(n,o)):Ie.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new kt({...this._def,rest:t})}}kt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new kt({items:e,typeName:Y.ZodTuple,rest:null,...te(t)})};class Ir extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.object)return F(r,{code:N.invalid_type,expected:$.object,received:r.parsedType}),X;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new Et(r,a,r.path,a)),value:o._parse(new Et(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Ie.mergeObjectAsync(n,s):Ie.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof se?new Ir({keyType:t,valueType:n,typeName:Y.ZodRecord,...te(r)}):new Ir({keyType:lt.create(),valueType:t,typeName:Y.ZodRecord,...te(n)})}}class Hs extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return F(r,{code:N.invalid_type,expected:$.map,received:r.parsedType}),X;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],l)=>({key:s._parse(new Et(r,a,r.path,[l,"key"])),value:i._parse(new Et(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Hs.create=(e,t,n)=>new Hs({valueType:t,keyType:e,typeName:Y.ZodMap,...te(n)});class bn extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return F(r,{code:N.invalid_type,expected:$.set,received:r.parsedType}),X;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(F(r,{code:N.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return X;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>i._parse(new Et(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new bn({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new bn({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bn.create=(e,t)=>new bn({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...te(t)});class Vn extends se{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.function)return F(n,{code:N.invalid_type,expected:$.function,received:n.parsedType}),X;function r(a,c){return zs({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),zn].filter(l=>!!l),issueData:{code:N.invalid_arguments,argumentsError:c}})}function s(a,c){return zs({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),zn].filter(l=>!!l),issueData:{code:N.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Wn){const a=this;return Ue(async function(...c){const l=new tt([]),u=await a._def.args.parseAsync(c,i).catch(p=>{throw l.addIssue(r(c,p)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(p=>{throw l.addIssue(s(d,p)),l})})}else{const a=this;return Ue(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new tt([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new tt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Vn({...this._def,args:kt.create(t).rest(hn.create())})}returns(t){return new Vn({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Vn({args:t||kt.create([]).rest(hn.create()),returns:n||hn.create(),typeName:Y.ZodFunction,...te(r)})}}class Fr extends se{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Fr.create=(e,t)=>new Fr({getter:e,typeName:Y.ZodLazy,...te(t)});class Br extends se{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return F(n,{received:n.data,code:N.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:t.data}}get value(){return this._def.value}}Br.create=(e,t)=>new Br({value:e,typeName:Y.ZodLiteral,...te(t)});function Hh(e,t){return new Qt({values:e,typeName:Y.ZodEnum,...te(t)})}class Qt extends se{constructor(){super(...arguments),ur.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{expected:ae.joinValues(r),received:n.parsedType,code:N.invalid_type}),X}if(Us(this,ur)||zh(this,ur,new Set(this._def.values)),!Us(this,ur).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{received:n.data,code:N.invalid_enum_value,options:r}),X}return Ue(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Qt.create(t,{...this._def,...n})}exclude(t,n=this._def){return Qt.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ur=new WeakMap;Qt.create=Hh;class $r extends se{constructor(){super(...arguments),dr.set(this,void 0)}_parse(t){const n=ae.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&&r.parsedType!==$.number){const s=ae.objectValues(n);return F(r,{expected:ae.joinValues(s),received:r.parsedType,code:N.invalid_type}),X}if(Us(this,dr)||zh(this,dr,new Set(ae.getValidEnumValues(this._def.values))),!Us(this,dr).has(t.data)){const s=ae.objectValues(n);return F(r,{received:r.data,code:N.invalid_enum_value,options:s}),X}return Ue(t.data)}get enum(){return this._def.values}}dr=new WeakMap;$r.create=(e,t)=>new $r({values:e,typeName:Y.ZodNativeEnum,...te(t)});class Wn extends se{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.promise&&n.common.async===!1)return F(n,{code:N.invalid_type,expected:$.promise,received:n.parsedType}),X;const r=n.parsedType===$.promise?n.data:Promise.resolve(n.data);return Ue(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Wn.create=(e,t)=>new Wn({type:e,typeName:Y.ZodPromise,...te(t)});class mt extends se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{F(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return X;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?X:c.status==="dirty"||n.value==="dirty"?jn(c.value):c});{if(n.value==="aborted")return X;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?X:a.status==="dirty"||n.value==="dirty"?jn(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vn(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>vn(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ae.assertNever(s)}}mt.create=(e,t,n)=>new mt({schema:e,typeName:Y.ZodEffects,effect:t,...te(n)});mt.createWithPreprocess=(e,t,n)=>new mt({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...te(n)});class Ct extends se{_parse(t){return this._getType(t)===$.undefined?Ue(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ct.create=(e,t)=>new Ct({innerType:e,typeName:Y.ZodOptional,...te(t)});class en extends se{_parse(t){return this._getType(t)===$.null?Ue(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:Y.ZodNullable,...te(t)});class zr extends se{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===$.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...te(t)});class Ur extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jr(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new tt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new tt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ur.create=(e,t)=>new Ur({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...te(t)});class Gs extends se{_parse(t){if(this._getType(t)!==$.nan){const r=this._getOrReturnCtx(t);return F(r,{code:N.invalid_type,expected:$.nan,received:r.parsedType}),X}return{status:"valid",value:t.data}}}Gs.create=e=>new Gs({typeName:Y.ZodNaN,...te(e)});const US=Symbol("zod_brand");class Da extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class es extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?X:i.status==="dirty"?(n.dirty(),jn(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?X:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new es({in:t,out:n,typeName:Y.ZodPipeline})}}class Wr extends se{_parse(t){const n=this._def.innerType._parse(t),r=s=>(vn(s)&&(s.value=Object.freeze(s.value)),s);return jr(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Wr.create=(e,t)=>new Wr({innerType:e,typeName:Y.ZodReadonly,...te(t)});function Gh(e,t={},n){return e?Un.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...l,fatal:c})}}):Un.create()}const WS={object:ve.lazycreate};var Y;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Y||(Y={}));const ZS=(e,t={message:`Input not instance of ${e.name}`})=>Gh(n=>n instanceof e,t),Kh=lt.create,qh=Xt.create,HS=Gs.create,GS=Jt.create,Yh=Dr.create,KS=xn.create,qS=Ws.create,YS=Or.create,XS=Mr.create,JS=Un.create,QS=hn.create,eT=Ft.create,tT=Zs.create,nT=dt.create,rT=ve.create,sT=ve.strictCreate,iT=Vr.create,oT=ai.create,aT=Lr.create,cT=kt.create,lT=Ir.create,uT=Hs.create,dT=bn.create,fT=Vn.create,hT=Fr.create,mT=Br.create,pT=Qt.create,gT=$r.create,yT=Wn.create,Xl=mt.create,vT=Ct.create,xT=en.create,bT=mt.createWithPreprocess,wT=es.create,_T=()=>Kh().optional(),ST=()=>qh().optional(),TT=()=>Yh().optional(),CT={string:e=>lt.create({...e,coerce:!0}),number:e=>Xt.create({...e,coerce:!0}),boolean:e=>Dr.create({...e,coerce:!0}),bigint:e=>Jt.create({...e,coerce:!0}),date:e=>xn.create({...e,coerce:!0})},AT=X;var Jl=Object.freeze({__proto__:null,defaultErrorMap:zn,setErrorMap:bS,getErrorMap:$s,makeIssue:zs,EMPTY_PATH:wS,addIssueToContext:F,ParseStatus:Ie,INVALID:X,DIRTY:jn,OK:Ue,isAborted:yo,isDirty:vo,isValid:vn,isAsync:jr,get util(){return ae},get objectUtil(){return go},ZodParsedType:$,getParsedType:Dt,ZodType:se,datetimeRegex:Zh,ZodString:lt,ZodNumber:Xt,ZodBigInt:Jt,ZodBoolean:Dr,ZodDate:xn,ZodSymbol:Ws,ZodUndefined:Or,ZodNull:Mr,ZodAny:Un,ZodUnknown:hn,ZodNever:Ft,ZodVoid:Zs,ZodArray:dt,ZodObject:ve,ZodUnion:Vr,ZodDiscriminatedUnion:ai,ZodIntersection:Lr,ZodTuple:kt,ZodRecord:Ir,ZodMap:Hs,ZodSet:bn,ZodFunction:Vn,ZodLazy:Fr,ZodLiteral:Br,ZodEnum:Qt,ZodNativeEnum:$r,ZodPromise:Wn,ZodEffects:mt,ZodTransformer:mt,ZodOptional:Ct,ZodNullable:en,ZodDefault:zr,ZodCatch:Ur,ZodNaN:Gs,BRAND:US,ZodBranded:Da,ZodPipeline:es,ZodReadonly:Wr,custom:Gh,Schema:se,ZodSchema:se,late:WS,get ZodFirstPartyTypeKind(){return Y},coerce:CT,any:JS,array:nT,bigint:GS,boolean:Yh,date:KS,discriminatedUnion:oT,effect:Xl,enum:pT,function:fT,instanceof:ZS,intersection:aT,lazy:hT,literal:mT,map:uT,nan:HS,nativeEnum:gT,never:eT,null:XS,nullable:xT,number:qh,object:rT,oboolean:TT,onumber:ST,optional:vT,ostring:_T,pipeline:wT,preprocess:bT,promise:yT,record:lT,set:dT,strictObject:sT,string:Kh,symbol:qS,transformer:Xl,tuple:cT,undefined:YS,union:iT,unknown:QS,void:tT,NEVER:AT,ZodIssueCode:N,quotelessJson:xS,ZodError:tt});const Ql=(e,t)=>ze(r=>r.lang)==="ru"?e:t,ET=Jl.object({email:Jl.string().email()}),kT=()=>{var n,r;const e=zw({resolver:vS(ET),defaultValues:{email:""}});async function t(s){console.log(s)}return m.jsx("form",{onSubmit:e.handleSubmit(t),className:"py-8 bg-bg_surface_container",children:m.jsxs(Ke,{className:"flex lg:flex-row flex-col gap-6 lg:items-center justify-between",children:[m.jsx("h2",{className:"h2",children:Ql("Подпишитесь на новости:","Subscribe to the news:")}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{...e.register("email"),placeholder:"Email",className:"input xl:w-[392px] lg:w-[320px] w-full"}),m.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(r=(n=e.formState.errors)==null?void 0:n.email)==null?void 0:r.message})]}),m.jsx(Ge,{className:"xl:w-[288px] lg:w-[220px] w-full",children:Ql("Подписаться","Subscribe")})]})})},QT=()=>{const e=ze(t=>t.lang);return m.jsxs("footer",{children:[m.jsx(kT,{}),m.jsx("div",{className:"py-5 bg-primary",children:m.jsxs(Ke,{className:"flex flex-col gap-6",children:[m.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[m.jsx(Ku,{}),m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsx(Ae,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:m.jsx(Bp,{className:"text-white"})}),m.jsx(Ae,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:m.jsx("img",{src:"/inst.svg"})}),m.jsx(Ae,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:m.jsx("img",{src:"/in.svg"})}),m.jsx(Ae,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:m.jsx("img",{src:"/x.svg"})})]})]}),m.jsx("hr",{className:"border-white/50"}),m.jsx("h5",{className:"text-base text-center normal text-white",children:e===Ve.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},Ke=({className:e,children:t})=>m.jsx("div",{className:ee("w-full mx-auto max-w-[1240px] px-4",e),children:t}),eC=({title:e})=>m.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[m.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),m.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{HT as A,Ge as B,eC as C,FT as D,vS as E,QT as F,VT as G,JT as H,bo as I,pt as J,ms as K,Ve as L,Je as M,nu as N,Zt as O,We as P,G0 as Q,Hn as R,Zn as S,N_ as T,jT as U,Ke as V,GT as a,qT as b,XT as c,YT as d,KT as e,ee as f,$T as g,zT as h,ZT as i,m as j,UT as k,WT as l,ti as m,ws as n,pe as o,Zw as p,Kf as q,qf as r,Yf as s,IT as t,ze as u,DT as v,zw as w,LT as x,OT as y,Jl as z}; diff --git a/dist/en.svg b/dist/en.svg index 946bd9a..ccbb71d 100644 --- a/dist/en.svg +++ b/dist/en.svg @@ -1,24 +1,9 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + diff --git a/dist/index.html b/dist/index.html index 1c31318..ce47a1b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,10 +5,10 @@ Turkmen Textile - + - - + +
diff --git a/dist/pdf.svg b/dist/pdf.svg new file mode 100644 index 0000000..2094b9a --- /dev/null +++ b/dist/pdf.svg @@ -0,0 +1,3 @@ + + +