diff --git a/dist/assets/index-CMEFCn_o.js b/dist/assets/index-CMEFCn_o.js new file mode 100644 index 0000000..6e93f43 --- /dev/null +++ b/dist/assets/index-CMEFCn_o.js @@ -0,0 +1 @@ +var Wt=Object.defineProperty;var qt=(n,e,t)=>e in n?Wt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var y=(n,e,t)=>qt(n,typeof e!="symbol"?e+"":e,t);import{u as I,i as Yt,j as r,H as Jt,F as Qt,a as Xt,b as Zt,c as es,d as ts,e as ss,f as ns,g as is,h as rs,z as j,k as Ee,l as fe,S as Je,m as gt,n as as,P as be,o as ee,p as os,q as ls,r as cs,s as J,t as Be,v as ve,w as N,x as Ne,y as B,A as V,L as ne,B as z,C as _,D as q,E as Ve,G as Le,I as Oe,J as Pe,K as ce,M as ze,N as us,O as ye,Q as ds,R as ps,T as hs,U as ms,V as fs,W as gs,X as xs,Y as de,Z as bs,_ as vs,$ as ie,a0 as ys,a1 as ws,a2 as js,a3 as xt,a4 as Ss,a5 as ue,a6 as He,a7 as ks,a8 as bt,a9 as vt,aa as Ns,ab as Qe,ac as _s,ad as yt,ae as Rs,af as Cs,ag as Ts,ah as Es,ai as Ls,aj as Os,ak as Ps}from"./ui-library-_5RJ9fWZ.js";import{f as Fs,a as b,O as Is,e as ae,u as As,g as Ke,L as Xe,h as $s,i as Ds}from"./react-vendor-CE_Ks92h.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();var Se={},Ze;function Ms(){if(Ze)return Se;Ze=1;var n=Fs();return Se.createRoot=n.createRoot,Se.hydrateRoot=n.hydrateRoot,Se}var Bs=Ms();const S=n=>typeof n=="string",he=()=>{let n,e;const t=new Promise((s,i)=>{n=s,e=i});return t.resolve=n,t.reject=e,t},et=n=>n==null?"":""+n,Vs=(n,e,t)=>{n.forEach(s=>{e[s]&&(t[s]=e[s])})},zs=/###/g,tt=n=>n&&n.indexOf("###")>-1?n.replace(zs,"."):n,st=n=>!n||S(n),me=(n,e,t)=>{const s=S(e)?e.split("."):e;let i=0;for(;i{const{obj:s,k:i}=me(n,e,Object);if(s!==void 0||e.length===1){s[i]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=me(n,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=me(n,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},Hs=(n,e,t,s)=>{const{obj:i,k:a}=me(n,e,Object);i[a]=i[a]||[],i[a].push(t)},_e=(n,e)=>{const{obj:t,k:s}=me(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},Ks=(n,e,t)=>{const s=_e(n,t);return s!==void 0?s:_e(e,t)},wt=(n,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in n?S(n[s])||n[s]instanceof String||S(e[s])||e[s]instanceof String?t&&(n[s]=e[s]):wt(n[s],e[s],t):n[s]=e[s]);return n},oe=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Gs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Us=n=>S(n)?n.replace(/[&<>"'\/]/g,e=>Gs[e]):n;class Ws{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 s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const qs=[" ",",","?","!",";"],Ys=new Ws(20),Js=(n,e,t)=>{e=e||"",t=t||"";const s=qs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const i=Ys.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(n);if(!a){const o=n.indexOf(t);o>0&&!i.test(n.substring(0,o))&&(a=!0)}return a},De=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const s=e.split(t);let i=n;for(let a=0;a-1&&cn==null?void 0:n.replace("_","-"),Qs={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,s;(s=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||s.call(t,console,e)}};class Ce{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||Qs,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(t)||0;this.observers[s].set(t,i+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,s=new Array(t>1?t-1:0),i=1;i{let[l,c]=o;for(let u=0;u{let[l,c]=o;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,s){var u,p;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):S(s)&&a?l.push(...s.split(a)):l.push(s)));const c=_e(this.data,l);return!c&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),c||!o||!S(s)?c:De((p=(u=this.data)==null?void 0:u[e])==null?void 0:p[t],s,a)}addResource(e,t,s,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(l=e.split("."),i=t,t=l[1]),this.addNamespaces(t),nt(this.data,l,i),a.silent||this.emit("added",e,t,s,i)}addResources(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(S(s[a])||Array.isArray(s[a]))&&this.addResource(e,t,a,s[a],{silent:!0});i.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),i=s,s=t,t=l[1]),this.addNamespaces(t);let c=_e(this.data,l)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?wt(c,s,a):c={...c,...s},nt(this.data,l,c),o.silent||this.emit("added",e,t,s)}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(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var jt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,s,i){return n.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,s,i))??e}),e}};const rt={},at=n=>!S(n)&&typeof n!="boolean"&&typeof n!="number";class Te extends Fe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Y.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 s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Js(e,s,i);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:S(a)?[a]:a};const u=e.split(s);(s!==i||s===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return{key:e,namespaces:S(a)?[a]:a}}translate(e,t,s){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 i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(p){const P=t.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${P}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${P}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:o}const m=this.resolve(e,t);let d=m==null?void 0:m.res;const f=(m==null?void 0:m.usedKey)||o,h=(m==null?void 0:m.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,v=t.count!==void 0&&!S(t.count),k=Te.hasDefaultValue(t),R=v?this.pluralResolver.getSuffix(u,t.count,t):"",O=t.ordinal&&v?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",E=v&&!t.ordinal&&t.count===0,T=E&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${O}`]||t.defaultValue;let C=d;w&&!d&&k&&(C=T);const K=at(C),Q=Object.prototype.toString.apply(C);if(w&&C&&K&&g.indexOf(Q)<0&&!(S(x)&&Array.isArray(C))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,C,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(m.res=P,m.usedParams=this.getUsedParamsDetails(t),m):P}if(a){const P=Array.isArray(C),A=P?[]:{},we=P?h:f;for(const G in C)if(Object.prototype.hasOwnProperty.call(C,G)){const U=`${we}${a}${G}`;k&&!d?A[G]=this.translate(U,{...t,defaultValue:at(T)?T[G]:void 0,joinArrays:!1,ns:l}):A[G]=this.translate(U,{...t,joinArrays:!1,ns:l}),A[G]===U&&(A[G]=C[G])}d=A}}else if(w&&S(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let P=!1,A=!1;!this.isValidLookup(d)&&k&&(P=!0,d=T),this.isValidLookup(d)||(A=!0,d=o);const G=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:d,U=k&&T!==d&&this.options.updateMissing;if(A||P||U){if(this.logger.log(U?"updateKey":"missingKey",u,c,o,U?T:d),a){const D=this.resolve(o,{...t,keySeparator:!1});D&&D.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 $=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let D=0;D{var Ye;const qe=k&&pe!==d?pe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(D,c,re,qe,U,t):(Ye=this.backendConnector)!=null&&Ye.saveMissing&&this.backendConnector.saveMissing(D,c,re,qe,U,t),this.emit("missingKey",D,c,re,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?$.forEach(D=>{const re=this.pluralResolver.getSuffixes(D,t);E&&t[`defaultValue${this.options.pluralSeparator}zero`]&&re.indexOf(`${this.options.pluralSeparator}zero`)<0&&re.push(`${this.options.pluralSeparator}zero`),re.forEach(pe=>{We([D],o+pe,t[`defaultValue${pe}`]||T)})}):We($,o,T))}d=this.extendTranslation(d,e,t,m,s),A&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(A||P)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,P?d:void 0))}return i?(m.res=d,m.usedParams=this.getUsedParamsDetails(t),m):d}extendTranslation(e,t,s,i,a){var u,p;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const m=S(e)&&(((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(m){const h=e.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=s.replace&&!S(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||i.usedLng,s),m){const h=e.match(this.interpolator.nestingRegexp),g=h&&h.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,i,a,o,l;return S(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(c,t),p=u.key;i=p;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=t.count!==void 0&&!S(t.count),f=d&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(S(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(x=>{var w,v;this.isValidLookup(s)||(l=x,!rt[`${g[0]}-${x}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(l))&&(rt[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.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!!!")),g.forEach(k=>{var E;if(this.isValidLookup(s))return;o=k;const R=[p];if((E=this.i18nFormat)!=null&&E.addLookupKeys)this.i18nFormat.addLookupKeys(R,p,k,x,t);else{let T;d&&(T=this.pluralResolver.getSuffix(k,t.count,t));const C=`${this.options.pluralSeparator}zero`,K=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(p+T),t.ordinal&&T.indexOf(K)===0&&R.push(p+T.replace(K,this.options.pluralSeparator)),f&&R.push(p+C)),h){const Q=`${p}${this.options.contextSeparator}${t.context}`;R.push(Q),d&&(R.push(Q+T),t.ordinal&&T.indexOf(K)===0&&R.push(Q+T.replace(K,this.options.pluralSeparator)),f&&R.push(Q+C))}}let O;for(;O=R.pop();)this.isValidLookup(s)||(a=O,s=this.getResource(k,x,O,t))}))})}),{res:s,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}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"],s=e.replace&&!S(e.replace);let i=s?e.replace:e;if(s&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const a of t)delete i[a]}return i}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class ot{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Y.create("languageUtils")}getScriptPartFromCode(e){if(e=Re(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=Re(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(S(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(s=>{if(t)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const i=this.getLanguagePartFromCode(s);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),S(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return S(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):S(e)&&a(this.formatLanguageCode(e)),s.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}const lt={zero:0,one:1,two:2,few:3,many:4,other:5},ct={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Xs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Y.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 s=Re(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(s,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ct;if(!e.match(/-|_/))return ct;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((i,a)=>lt[i]-lt[a]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ut=function(n,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Ks(n,e,t);return!a&&i&&S(t)&&(a=De(n,t,s),a===void 0&&(a=De(e,t,s))),a},Ae=n=>n.replace(/\$/g,"$$$$");class Zs{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),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:s,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:w,alwaysFormat:v}=e.interpolation;this.escape=t!==void 0?t:Us,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?oe(a):o||"{{",this.suffix=l?oe(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=d?oe(d):f||oe("$t("),this.nestingSuffix=h?oe(h):g||oe(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=w||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"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,s,i){var f;let a,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const v=ut(t,c,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,s,{...i,...t,interpolationkey:h}):v}const g=h.split(this.formatSeparator),x=g.shift().trim(),w=g.join(this.formatSeparator).trim();return this.format(ut(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,s,{...i,...t,interpolationkey:x})};this.resetRegExp();const p=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>Ae(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?Ae(this.escape(h)):Ae(h)}].forEach(h=>{for(l=0;a=h.regex.exec(e);){const g=a[1].trim();if(o=u(g),o===void 0)if(typeof p=="function"){const w=p(e,a,i);o=S(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))o="";else if(m){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!S(o)&&!this.useRawValueToEscape&&(o=et(o));const x=h.safeValue(o);if(e=e.replace(a[0],x),m?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let d=`{${m[1]}`;c=m[0],d=this.interpolate(d,o);const f=d.match(/'/g),h=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!h||h.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${p}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];o={...s},o=o.replace&&!S(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const p=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=p.shift(),c=p,u=!0}if(a=t(l.call(this,i[1].trim(),o),o),a&&i[0]===e&&!S(a))return a;S(a)||(a=et(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((p,m)=>this.format(p,m,s.lng,{...s,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const en=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const s=n.split("(");e=s[0].toLowerCase().trim();const i=s[1].substring(0,s[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},le=n=>{const e={};return(t,s,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=s+JSON.stringify(a);let l=e[o];return l||(l=n(Re(s),i),e[o]=l),l(t)}};class tn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("formatter"),this.options=e,this.formats={number:le((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return a=>i.format(a)}),currency:le((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return a=>i.format(a)}),datetime:le((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return a=>i.format(a)}),relativetime:le((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return a=>i.format(a,s.range||"day")}),list:le((t,s)=>{const i=new Intl.ListFormat(t,{...s});return a=>i.format(a)})},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()]=le(t)}format(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var m;const{formatName:u,formatOptions:p}=en(c);if(this.formats[u]){let d=l;try{const f=((m=i==null?void 0:i.formatParams)==null?void 0:m[i.interpolationkey])||{},h=f.locale||f.lng||i.locale||i.lng||s;d=this.formats[u](l,h,{...p,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const sn=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class nn extends Fe{constructor(e,t,s){var a,o;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=Y.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,s,i.backend,i)}queueLoad(e,t,s,i){const a={},o={},l={},c={};return e.forEach(u=>{let p=!0;t.forEach(m=>{const d=`${u}|${m}`;!s.reload&&this.store.hasResourceBundle(u,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,p=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(l[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,s){const i=e.split("|"),a=i[0],o=i[1];t&&this.emit("failedLoading",a,o,t),!t&&s&&this.store.addResourceBundle(a,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Hs(c.loaded,[a],o),sn(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:a,callback:o});return}this.readingCalls++;const l=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&p&&i{this.read.call(this,e,t,s,i+1,a*2,o)},a);return}o(u,p)},c=this.backend[s].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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."),i&&i();S(e)&&(e=this.languageUtils.toResolveHierarchy(e)),S(t)&&(t=[t]);const a=this.queueLoad(e,t,s,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),i=s[0],a=s[1];this.read(i,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${a} for language ${i}`,l),this.loaded(e,o,l)})}saveMissing(e,t,s,i,a){var c,u,p,m,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(c=this.services)==null?void 0:c.utils)!=null&&u.hasLoadedNamespace&&!((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" 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(!(s==null||s==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:a},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(e,t,s,i,f):g=h(e,t,s,i),g&&typeof g.then=="function"?g.then(x=>l(null,x)).catch(l):l(null,g)}catch(g){l(g)}else h(e,t,s,i,l,f)}!e||!e[0]||this.store.addResource(e[0],t,s,i)}}}const dt=()=>({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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),S(n[1])&&(e.defaultValue=n[1]),S(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),pt=n=>{var e,t;return S(n.ns)&&(n.ns=[n.ns]),S(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),S(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},ke=()=>{},rn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ge extends Fe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=pt(e),this.services={},this.logger=Y,this.modules={external:[]},rn(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]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(S(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=dt();this.options={...i,...this.options,...pt(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Y.init(a(this.modules.logger),this.options):Y.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=tn;const m=new ot(this.options);this.store=new it(this.options.resources,this.options);const d=this.services;d.logger=Y,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new Xs(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=a(p),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Zs(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new nn(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var h=arguments.length,g=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ke),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=he(),u=()=>{const p=(m,d)=>{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),c.resolve(d),s(m,d)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var a,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const i=S(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const i=he();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ke),this.services.backendConnector.reload(e,t,a=>{i.resolve(),s(a)}),i}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"&&jt.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(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const i=he();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return s.t(...arguments)}),t&&t(c,function(){return s.t(...arguments)})},l=c=>{var p,m;!e&&!c&&this.services.languageDetector&&(c=[]);const u=S(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(m=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||m.call(p,u)),this.loadResources(u,d=>{o(d,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),i}getFixedT(e,t,s){var i=this;const a=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,p=new Array(u>2?u-2:0),m=2;m`${c.keyPrefix}${d}${h}`):f=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,i.t(f,c)};return S(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(){var i;for(var e=arguments.length,t=new Array(e),s=0;s1&&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 s=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(a,e)))}loadNamespaces(e,t){const s=he();return this.options.ns?(S(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),t&&t(i)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=he();S(e)&&(e=[e]);const i=this.options.preload||[],a=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var i,a;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.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"],s=((a=this.services)==null?void 0:a.languageUtils)||new ot(dt());return t.indexOf(s.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 ge(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new ge(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((p,m)=>(p[m]={...c[u][m]},p),{})),{});a.store=new it(l,i),a.services.resourceStore=a.store}return a.translator=new Te(a.services,i),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p{const n=I(e=>e.lang);return b.useEffect(()=>{F.changeLanguage(n)},[n]),null};var ki="1.3.4";function St(n,e,t){return Math.max(n,Math.min(e,t))}function Ni(n,e,t){return(1-t)*n+t*e}function _i(n,e,t,s){return Ni(n,e,1-Math.exp(-t*s))}function Ri(n,e){return(n%e+e)%e}var Ci=class{constructor(){y(this,"isRunning",!1);y(this,"value",0);y(this,"from",0);y(this,"to",0);y(this,"currentTime",0);y(this,"lerp");y(this,"duration");y(this,"easing");y(this,"onUpdate")}advance(n){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=n;const s=St(0,this.currentTime/this.duration,1);e=s>=1;const i=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=_i(this.value,this.to,this.lerp*60,n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(n,e,{lerp:t,duration:s,easing:i,onStart:a,onUpdate:o}){this.from=this.value=n,this.to=e,this.lerp=t,this.duration=s,this.easing=i,this.currentTime=0,this.isRunning=!0,a==null||a(),this.onUpdate=o}};function Ti(n,e){let t;return function(...s){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,s)},e)}}var Ei=class{constructor(n,e,{autoResize:t=!0,debounce:s=250}={}){y(this,"width",0);y(this,"height",0);y(this,"scrollHeight",0);y(this,"scrollWidth",0);y(this,"debouncedResize");y(this,"wrapperResizeObserver");y(this,"contentResizeObserver");y(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});y(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});y(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=n,this.content=e,t&&(this.debouncedResize=Ti(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var n,e;(n=this.wrapperResizeObserver)==null||n.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},kt=class{constructor(){y(this,"events",{})}emit(n,...e){var s;let t=this.events[n]||[];for(let i=0,a=t.length;i{var s;this.events[n]=(s=this.events[n])==null?void 0:s.filter(i=>e!==i)}}off(n,e){var t;this.events[n]=(t=this.events[n])==null?void 0:t.filter(s=>e!==s)}destroy(){this.events={}}},ht=100/6,te={passive:!1},Li=class{constructor(n,e={wheelMultiplier:1,touchMultiplier:1}){y(this,"touchStart",{x:0,y:0});y(this,"lastDelta",{x:0,y:0});y(this,"window",{width:0,height:0});y(this,"emitter",new kt);y(this,"onTouchStart",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});y(this,"onTouchMove",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n,s=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(t-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:s,y:i},this.emitter.emit("scroll",{deltaX:s,deltaY:i,event:n})});y(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});y(this,"onWheel",n=>{let{deltaX:e,deltaY:t,deltaMode:s}=n;const i=s===1?ht:s===2?this.window.width:1,a=s===1?ht:s===2?this.window.height:1;e*=i,t*=a,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:n})});y(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,te),this.element.addEventListener("touchstart",this.onTouchStart,te),this.element.addEventListener("touchmove",this.onTouchMove,te),this.element.addEventListener("touchend",this.onTouchEnd,te)}on(n,e){return this.emitter.on(n,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,te),this.element.removeEventListener("touchstart",this.onTouchStart,te),this.element.removeEventListener("touchmove",this.onTouchMove,te),this.element.removeEventListener("touchend",this.onTouchEnd,te)}},mt=n=>Math.min(1,1.001-Math.pow(2,-10*n)),Oi=class{constructor({wrapper:n=window,content:e=document.documentElement,eventsTarget:t=n,smoothWheel:s=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaMultiplier:o=35,duration:l,easing:c,lerp:u=.1,infinite:p=!1,orientation:m="vertical",gestureOrientation:d="vertical",touchMultiplier:f=1,wheelMultiplier:h=1,autoResize:g=!0,prevent:x,virtualScroll:w,overscroll:v=!0,autoRaf:k=!1,anchors:R=!1,autoToggle:O=!1,allowNestedScroll:E=!1,__experimental__naiveDimensions:T=!1}={}){y(this,"_isScrolling",!1);y(this,"_isStopped",!1);y(this,"_isLocked",!1);y(this,"_preventNextNativeScrollEvent",!1);y(this,"_resetVelocityTimeout",null);y(this,"__rafID",null);y(this,"isTouching");y(this,"time",0);y(this,"userData",{});y(this,"lastVelocity",0);y(this,"velocity",0);y(this,"direction",0);y(this,"options");y(this,"targetScroll");y(this,"animatedScroll");y(this,"animate",new Ci);y(this,"emitter",new kt);y(this,"dimensions");y(this,"virtualScroll");y(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});y(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});y(this,"onTransitionEnd",n=>{if(n.propertyName.includes("overflow")){const e=this.isHorizontal?"overflow-x":"overflow-y",t=getComputedStyle(this.rootElement)[e];["hidden","clip"].includes(t)?this.stop():this.start()}});y(this,"onClick",n=>{const t=n.composedPath().find(s=>{var i,a,o;return s instanceof HTMLAnchorElement&&(((i=s.getAttribute("href"))==null?void 0:i.startsWith("#"))||((a=s.getAttribute("href"))==null?void 0:a.startsWith("/#"))||((o=s.getAttribute("href"))==null?void 0:o.startsWith("./#")))});if(t){const s=t.getAttribute("href");if(s){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;let a=`#${s.split("#")[1]}`;["#","/#","./#","#top","/#top","./#top"].includes(s)&&(a=0),this.scrollTo(a,i)}}});y(this,"onPointerDown",n=>{n.button===1&&this.reset()});y(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:e,deltaY:t,event:s}=n;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:t,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const i=s.type.includes("touch"),a=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=e===0&&t===0;if(this.options.syncTouch&&i&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const c=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||c)return;let u=s.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const p=this.options.prevent;if(u.find(x=>{var w,v,k;return x instanceof HTMLElement&&(typeof p=="function"&&(p==null?void 0:p(x))||((w=x.hasAttribute)==null?void 0:w.call(x,"data-lenis-prevent"))||i&&((v=x.hasAttribute)==null?void 0:v.call(x,"data-lenis-prevent-touch"))||a&&((k=x.hasAttribute)==null?void 0:k.call(x,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:e,deltaY:t}))}))return;if(this.isStopped||this.isLocked){s.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let d=t;this.options.gestureOrientation==="both"?d=Math.abs(t)>Math.abs(e)?t:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&t<0))&&(s.lenisStopPropagation=!0),s.preventDefault();const f=i&&this.options.syncTouch,g=i&&s.type==="touchend"&&Math.abs(d)>5;g&&(d=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});y(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});y(this,"raf",n=>{const e=n-(this.time||n);this.time=n,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=ki,(!n||n===document.documentElement)&&(n=window),typeof l=="number"&&typeof c!="function"?c=mt:typeof c=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:n,content:e,eventsTarget:t,smoothWheel:s,syncTouch:i,syncTouchLerp:a,touchInertiaMultiplier:o,duration:l,easing:c,lerp:u,infinite:p,gestureOrientation:d,orientation:m,touchMultiplier:f,wheelMultiplier:h,autoResize:g,prevent:x,virtualScroll:w,overscroll:v,autoRaf:k,anchors:R,autoToggle:O,allowNestedScroll:E,__experimental__naiveDimensions:T},this.dimensions=new Ei(n,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new Li(t,{touchMultiplier:f,wheelMultiplier:h}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(n,e){return this.emitter.on(n,e)}off(n,e){return this.emitter.off(n,e)}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:e=0,immediate:t=!1,lock:s=!1,duration:i=this.options.duration,easing:a=this.options.easing,lerp:o=this.options.lerp,onStart:l,onComplete:c,force:u=!1,programmatic:p=!0,userData:m}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof n=="string"&&["top","left","start"].includes(n))n=0;else if(typeof n=="string"&&["bottom","right","end"].includes(n))n=this.limit;else{let d;if(typeof n=="string"?d=document.querySelector(n):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(d=n),d){if(this.options.wrapper!==window){const h=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?h.left:h.top}const f=d.getBoundingClientRect();n=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof n=="number"){if(n+=e,n=Math.round(n),this.options.infinite){if(p){this.targetScroll=this.animatedScroll=this.scroll;const d=n-this.animatedScroll;d>this.limit/2?n=n-this.limit:d<-this.limit/2&&(n=n+this.limit)}}else n=St(0,n,this.limit);if(n===this.targetScroll){l==null||l(this),c==null||c(this);return}if(this.userData=m??{},t){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}p||(this.targetScroll=n),typeof i=="number"&&typeof a!="function"?a=mt:typeof a=="function"&&typeof i!="number"&&(i=1),this.animate.fromTo(this.animatedScroll,n,{duration:i,easing:a,lerp:o,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),p&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(n,{deltaX:e,deltaY:t}){const s=Date.now(),i=n._lenis??(n._lenis={});let a,o,l,c,u,p,m,d;const f=this.options.gestureOrientation;if(s-(i.time??0)>2e3){i.time=Date.now();const O=window.getComputedStyle(n);i.computedStyle=O;const E=O.overflowX,T=O.overflowY;if(a=["auto","overlay","scroll"].includes(E),o=["auto","overlay","scroll"].includes(T),i.hasOverflowX=a,i.hasOverflowY=o,!a&&!o||f==="vertical"&&!o||f==="horizontal"&&!a)return!1;u=n.scrollWidth,p=n.scrollHeight,m=n.clientWidth,d=n.clientHeight,l=u>m,c=p>d,i.isScrollableX=l,i.isScrollableY=c,i.scrollWidth=u,i.scrollHeight=p,i.clientWidth=m,i.clientHeight=d}else l=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,u=i.scrollWidth,p=i.scrollHeight,m=i.clientWidth,d=i.clientHeight;if(!a&&!o||!l&&!c||f==="vertical"&&(!o||!c)||f==="horizontal"&&(!a||!l))return!1;let h;if(f==="horizontal")h="x";else if(f==="vertical")h="y";else{const O=e!==0,E=t!==0;O&&a&&l&&(h="x"),E&&o&&c&&(h="y")}if(!h)return!1;let g,x,w,v,k;if(h==="x")g=n.scrollLeft,x=u-m,w=e,v=a,k=l;else if(h==="y")g=n.scrollTop,x=p-d,w=t,v=o,k=c;else return!1;return(w>0?g0)&&v&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?Ri(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.options.autoToggle&&(n+=" lenis-autoToggle"),this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},Pi=class{constructor(n){y(this,"listeners",[]);this.state=n}set(n){this.state=n;for(let e of this.listeners)e(this.state)}subscribe(n){return this.listeners=[...this.listeners,n],()=>{this.listeners=this.listeners.filter(e=>e!==n)}}get(){return this.state}},Fi=b.createContext(null),ft=new Pi(null),Ii=b.forwardRef(({children:n,root:e=!1,options:t={},className:s,autoRaf:i=!0,style:a,props:o},l)=>{const c=b.useRef(null),u=b.useRef(null),[p,m]=b.useState(void 0);b.useImperativeHandle(l,()=>({wrapper:c.current,content:u.current,lenis:p}),[p]),b.useEffect(()=>{const g=new Oi({...t,...!e&&{wrapper:c.current,content:u.current},autoRaf:(t==null?void 0:t.autoRaf)??i});return m(g),()=>{g.destroy(),m(void 0)}},[e,JSON.stringify(t)]);const d=b.useRef([]),f=b.useCallback((g,x)=>{d.current.push({callback:g,priority:x}),d.current.sort((w,v)=>w.priority-v.priority)},[]),h=b.useCallback(g=>{d.current=d.current.filter(x=>x.callback!==g)},[]);return b.useEffect(()=>{if(e&&p)return ft.set({lenis:p,addCallback:f,removeCallback:h}),()=>ft.set(null)},[e,p,f,h]),b.useEffect(()=>{if(!p)return;const g=x=>{var w;for(let v=0;v{p.off("scroll",g)}},[p]),r.jsx(Fi.Provider,{value:{lenis:p,addCallback:f,removeCallback:h},children:e?n:r.jsx("div",{ref:c,className:s,style:a,...o,children:r.jsx("div",{ref:u,children:n})})})});function Ai(){return r.jsxs(Ii,{root:!0,options:{lerp:.07},children:[r.jsx(Jt,{}),r.jsxs("main",{className:"flex flex-col min-h-screen",children:[r.jsx(Si,{}),r.jsx("div",{className:"flex-auto",children:r.jsx(Is,{})})]}),r.jsx(Qt,{})]})}function $i(){return r.jsxs("div",{className:"flex flex-col",children:[r.jsx(Xt,{}),r.jsx(Zt,{}),r.jsx(es,{}),r.jsx(ts,{}),r.jsx(ss,{}),r.jsx(ns,{}),r.jsx(is,{}),r.jsx(rs,{})]})}const Di=j.object({type:j.string(),company_name:j.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:j.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:j.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:j.string().min(1,{message:"Укажите количество участников"}),country:j.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:j.string().email({message:"Укажите корректный email"}),phone_number:j.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:j.string().optional(),meeting_objective:j.string().min(3,{message:"Укажите цель встречи"}),proposal_description:j.string().optional(),government_agency:j.string().optional(),sector_industry:j.string().optional(),key_services:j.string().optional(),government_experience:j.string().optional(),preferred_meeting_datetime:j.string().optional(),meeting_mode:j.string().optional(),language_preference:j.string().optional(),technical_requirements:j.string().optional(),company_profile:j.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:j.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:j.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),Mi={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:""};function Bi(n){const e=n+"CollectionProvider",[t,s]=Ee(e),[i,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:h,children:g}=f,x=ae.useRef(null),w=ae.useRef(new Map).current;return r.jsx(i,{scope:h,itemMap:w,collectionRef:x,children:g})};o.displayName=e;const l=n+"CollectionSlot",c=ae.forwardRef((f,h)=>{const{scope:g,children:x}=f,w=a(l,g),v=fe(h,w.collectionRef);return r.jsx(Je,{ref:v,children:x})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=ae.forwardRef((f,h)=>{const{scope:g,children:x,...w}=f,v=ae.useRef(null),k=fe(h,v),R=a(u,g);return ae.useEffect(()=>(R.itemMap.set(v,{ref:v,...w}),()=>void R.itemMap.delete(v))),r.jsx(Je,{[p]:"",ref:k,children:x})});m.displayName=u;function d(f){const h=a(n+"CollectionConsumer",f);return ae.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((R,O)=>w.indexOf(R.ref.current)-w.indexOf(O.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:m},d,s]}var Vi=b.createContext(void 0);function Nt(n){const e=b.useContext(Vi);return n||e||"ltr"}var $e="rovingFocusGroup.onEntryFocus",zi={bubbles:!1,cancelable:!0},Ie="RovingFocusGroup",[Me,_t,Hi]=Bi(Ie),[Ki,Rt]=Ee(Ie,[Hi]),[Gi,Ui]=Ki(Ie),Ct=b.forwardRef((n,e)=>r.jsx(Me.Provider,{scope:n.__scopeRovingFocusGroup,children:r.jsx(Me.Slot,{scope:n.__scopeRovingFocusGroup,children:r.jsx(Wi,{...n,ref:e})})}));Ct.displayName=Ie;var Wi=b.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=n,d=b.useRef(null),f=fe(e,d),h=Nt(a),[g=null,x]=gt({prop:o,defaultProp:l,onChange:c}),[w,v]=b.useState(!1),k=as(u),R=_t(t),O=b.useRef(!1),[E,T]=b.useState(0);return b.useEffect(()=>{const C=d.current;if(C)return C.addEventListener($e,k),()=>C.removeEventListener($e,k)},[k]),r.jsx(Gi,{scope:t,orientation:s,dir:h,loop:i,currentTabStopId:g,onItemFocus:b.useCallback(C=>x(C),[x]),onItemShiftTab:b.useCallback(()=>v(!0),[]),onFocusableItemAdd:b.useCallback(()=>T(C=>C+1),[]),onFocusableItemRemove:b.useCallback(()=>T(C=>C-1),[]),children:r.jsx(be.div,{tabIndex:w||E===0?-1:0,"data-orientation":s,...m,ref:f,style:{outline:"none",...n.style},onMouseDown:ee(n.onMouseDown,()=>{O.current=!0}),onFocus:ee(n.onFocus,C=>{const K=!O.current;if(C.target===C.currentTarget&&K&&!w){const Q=new CustomEvent($e,zi);if(C.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const P=R().filter($=>$.focusable),A=P.find($=>$.active),we=P.find($=>$.id===g),U=[A,we,...P].filter(Boolean).map($=>$.ref.current);Lt(U,p)}}O.current=!1}),onBlur:ee(n.onBlur,()=>v(!1))})})}),Tt="RovingFocusGroupItem",Et=b.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:i=!1,tabStopId:a,...o}=n,l=os(),c=a||l,u=Ui(Tt,t),p=u.currentTabStopId===c,m=_t(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return b.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),r.jsx(Me.ItemSlot,{scope:t,id:c,focusable:s,active:i,children:r.jsx(be.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ee(n.onMouseDown,h=>{s?u.onItemFocus(c):h.preventDefault()}),onFocus:ee(n.onFocus,()=>u.onItemFocus(c)),onKeyDown:ee(n.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const g=Ji(h,u.orientation,u.dir);if(g!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=m().filter(v=>v.focusable).map(v=>v.ref.current);if(g==="last")w.reverse();else if(g==="prev"||g==="next"){g==="prev"&&w.reverse();const v=w.indexOf(h.currentTarget);w=u.loop?Qi(w,v+1):w.slice(v+1)}setTimeout(()=>Lt(w))}})})})});Et.displayName=Tt;var qi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yi(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ji(n,e,t){const s=Yi(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return qi[s]}function Lt(n,e=!1){const t=document.activeElement;for(const s of n)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function Qi(n,e){return n.map((t,s)=>n[(e+s)%n.length])}var Xi=Ct,Zi=Et;function er(n){const e=b.useRef({value:n,previous:n});return b.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var Ge="Radio",[tr,Ot]=Ee(Ge),[sr,nr]=tr(Ge),Pt=b.forwardRef((n,e)=>{const{__scopeRadio:t,name:s,checked:i=!1,required:a,disabled:o,value:l="on",onCheck:c,form:u,...p}=n,[m,d]=b.useState(null),f=fe(e,x=>d(x)),h=b.useRef(!1),g=m?u||!!m.closest("form"):!0;return r.jsxs(sr,{scope:t,checked:i,disabled:o,children:[r.jsx(be.button,{type:"button",role:"radio","aria-checked":i,"data-state":At(i),"data-disabled":o?"":void 0,disabled:o,value:l,...p,ref:f,onClick:ee(n.onClick,x=>{i||c==null||c(),g&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),g&&r.jsx(ir,{control:m,bubbles:!h.current,name:s,value:l,checked:i,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Pt.displayName=Ge;var Ft="RadioIndicator",It=b.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:s,...i}=n,a=nr(Ft,t);return r.jsx(ls,{present:s||a.checked,children:r.jsx(be.span,{"data-state":At(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e})})});It.displayName=Ft;var ir=n=>{const{control:e,checked:t,bubbles:s=!0,...i}=n,a=b.useRef(null),o=er(t),l=cs(e);return b.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&m){const d=new Event("click",{bubbles:s});m.call(c,t),c.dispatchEvent(d)}},[o,t,s]),r.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:a,style:{...n.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function At(n){return n?"checked":"unchecked"}var rr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ue="RadioGroup",[ar,zr]=Ee(Ue,[Rt,Ot]),$t=Rt(),Dt=Ot(),[or,lr]=ar(Ue),Mt=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:i,value:a,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:p=!0,onValueChange:m,...d}=n,f=$t(t),h=Nt(u),[g,x]=gt({prop:a,defaultProp:i,onChange:m});return r.jsx(or,{scope:t,name:s,required:o,disabled:l,value:g,onValueChange:x,children:r.jsx(Xi,{asChild:!0,...f,orientation:c,dir:h,loop:p,children:r.jsx(be.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:h,...d,ref:e})})})});Mt.displayName=Ue;var Bt="RadioGroupItem",Vt=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:s,...i}=n,a=lr(Bt,t),o=a.disabled||s,l=$t(t),c=Dt(t),u=b.useRef(null),p=fe(e,u),m=a.value===i.value,d=b.useRef(!1);return b.useEffect(()=>{const f=g=>{rr.includes(g.key)&&(d.current=!0)},h=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",h)}},[]),r.jsx(Zi,{asChild:!0,...l,focusable:!o,active:m,children:r.jsx(Pt,{disabled:o,required:a.required,checked:m,...c,...i,name:a.name,ref:p,onCheck:()=>a.onValueChange(i.value),onKeyDown:ee(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ee(i.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Vt.displayName=Bt;var cr="RadioGroupIndicator",ur=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...s}=n,i=Dt(t);return r.jsx(It,{...i,...s,ref:e})});ur.displayName=cr;var zt=Mt,Ht=Vt;const xe=b.forwardRef(({className:n,...e},t)=>r.jsx(zt,{className:J("grid gap-2",n),...e,ref:t}));xe.displayName=zt.displayName;const Z=b.forwardRef(({className:n,...e},t)=>r.jsx(Ht,{ref:t,className:J(e.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",n),...e}));Z.displayName=Ht.displayName;const X=[{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:"Email"},{label:"Phone number"},{label:"Website"}]}],se=[{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)"}]}],W=[{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"}],H=n=>{b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[n])},dr=({handleNext:n})=>{H();const{control:e,formState:t}=Be(),s=I(i=>i.lang);return r.jsxs(ve.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[r.jsx("h2",{className:"h2 mb-8",children:X[N(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(Ne,{defaultValue:1,control:e,name:"type",render:({field:i})=>r.jsxs(B,{className:"space-y-3",children:[r.jsx(V,{className:"text-xl",children:s===ne.RU?"Тип:":"Type:"}),r.jsx(z,{children:r.jsxs(xe,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[r.jsxs(B,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"B2B",checked:i.value==="B2B"})}),r.jsx(V,{className:"text-base",children:"B2B"})]}),r.jsxs(B,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"B2G",checked:i.value==="B2G"})}),r.jsx(V,{className:"text-base",children:"B2G"})]})]})})]})}),r.jsx(_,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:X[N(s)].data[0].label}),r.jsx(_,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:X[N(s)].data[1].label}),r.jsx(_,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:X[N(s)].data[2].label}),r.jsx(_,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:X[N(s)].data[3].label}),r.jsx(_,{control:e,name:"country",error:t.errors.country,placeholder:"",label:X[N(s)].data[4].label}),r.jsx(_,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:X[N(s)].data[5].label}),r.jsx(_,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:X[N(s)].data[6].label}),r.jsx(_,{control:e,name:"website",placeholder:"",label:X[N(s)].data[7].label})]}),r.jsx(q,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:s===ne.RU?"Далее":"Next"})]})},pr=({handleNext:n,handlePrev:e})=>{H();const t=I(a=>a.lang),{control:s,formState:i}=Be();return r.jsxs(ve.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[r.jsx("h2",{className:"h2 mb-8",children:se[N(t)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(_,{control:s,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:se[N(t)].data[0].label}),r.jsx(_,{control:s,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:se[N(t)].data[1].label}),r.jsx(_,{control:s,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:se[N(t)].data[2].label}),r.jsx("h2",{className:"h2 mt-4",children:se[N(t)].secondH2}),r.jsx(_,{control:s,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:se[N(t)].data[3].label}),r.jsx(_,{control:s,name:"key_services",error:i.errors.key_services,placeholder:"",label:se[N(t)].data[4].label}),r.jsx(_,{control:s,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:se[N(t)].data[5].label})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(q,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:t===ne.RU?"Вернуться назад":"Back"}),r.jsx(q,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:t===ne.RU?"Далее":"Next"})]})]})},hr=({handlePrev:n})=>{H();const{control:e,formState:t}=Be(),s=I(i=>i.lang);return r.jsxs(ve.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[r.jsx("h2",{className:"h2 mb-8",children:W[N(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx(_,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:W[N(s)].data[0].label}),r.jsx(_,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:W[N(s)].data[1].label}),r.jsx(_,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:W[N(s)].data[2].label}),r.jsx(_,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:W[N(s)].data[3].label})]}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"h2 mt-10",children:W[N(s)].secondH2}),r.jsx("h5",{className:"text-on_surface_v",children:W[N(s)].subtitle})]}),r.jsx(_,{control:e,name:"company_profile",label:W[N(s)].data[4].label,type:"file",textDark:!0}),r.jsx(_,{control:e,name:"proposal_presentation",label:W[N(s)].data[5].label,type:"file",textDark:!0}),r.jsx(_,{control:e,name:"relevant_certification",label:W[N(s)].data[6].label,type:"file",textDark:!0})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(q,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:s===ne.RU?"Вернуться назад":"Back"}),r.jsx(q,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?r.jsx(Ve,{className:"animate-spin"}):W[N(s)].button})]})]})},mr=({stage:n,setStage:e,success:t,setSuccess:s})=>{const i=Le({resolver:Oe(Di),defaultValues:Mi,mode:"onChange"}),a=u=>{switch(u){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[]}},o=async()=>{const u=a(n);await i.trigger(u)&&e(m=>m+1)},l=()=>e(u=>u-1),c=async u=>{try{const p=new FormData;Object.entries(u).forEach(([d,f])=>{f instanceof File?(console.log(`Добавляем файл: ${d}`,f),p.append(d,f)):f!==void 0&&(console.log(`Добавляем поле: ${d}`,f),p.append(d,f))}),(await us.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",p,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(p){console.error("Ошибка при отправке B2B формы:",p)}};return r.jsx(Pe,{...i,children:r.jsx("form",{onSubmit:i.handleSubmit(c),children:r.jsxs("div",{className:"relative",children:[r.jsx(ce,{children:n===1&&r.jsx(dr,{handleNext:o})}),r.jsx(ce,{children:n===2&&r.jsx(pr,{handleNext:o,handlePrev:l})}),r.jsx(ce,{children:n===3&&t===!1&&r.jsx(hr,{handlePrev:l})}),t&&r.jsx(ze,{})]})})})};function fr(){H();const n=I(a=>a.lang),[e,t]=b.useState(1),[s,i]=b.useState(!1);return r.jsxs("div",{className:"pb-[120px]",children:[r.jsx(ye,{title:n===ne.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!s&&e!==0&&r.jsx(ds,{stage:e}),r.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:r.jsx(mr,{success:s,setSuccess:i,stage:e,setStage:t})})]})}function gr(){H();const n=I(e=>e.lang);return r.jsxs("div",{className:J(""),children:[r.jsx(ye,{title:n===ne.RU?"О выставке":"About exhibition"}),r.jsx(ps,{}),r.jsx(hs,{}),r.jsx(ms,{}),r.jsx(fs,{}),r.jsx(gs,{})]})}const xr=j.object({company_name:j.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:j.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:j.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:j.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:j.string().email({message:"Укажите корректный email"}),phone:j.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:j.string().optional(),visa_support:j.string().optional()}),br={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},L=[{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",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];function vr(){H();const n=I(o=>o.lang),[e,t]=b.useState(!1),s=Le({resolver:Oe(xr),defaultValues:br}),i=async o=>{try{await xs(o)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:a}=s.formState;return r.jsxs("div",{children:[r.jsx(ye,{title:n===ne.RU?"Стать спонсором":"Become a sponsor"}),r.jsx(ce,{children:!e&&r.jsx(Pe,{...s,children:r.jsxs(ve.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(i),children:[r.jsx(_,{label:L[N(n)].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(_,{label:L[N(n)].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(_,{label:L[N(n)].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(_,{label:L[N(n)].label_4,name:"country",control:s.control,error:a.country}),r.jsx(_,{label:L[N(n)].label_5,name:"email",control:s.control,error:a.email}),r.jsx(_,{label:L[N(n)].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(_,{label:L[N(n)].label_7,name:"website",control:s.control}),r.jsx(Ne,{control:s.control,name:"visa_support",render:({field:o})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(V,{className:"text-xl",children:L[N(n)].visa}),r.jsx(z,{children:r.jsxs(xe,{onValueChange:o.onChange,defaultValue:o.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"yes",checked:o.value==="yes"})}),r.jsx(V,{className:"text-base",children:L[N(n)].visa_radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(z,{children:r.jsx(Z,{value:"no",checked:o.value==="no"})}),r.jsx(V,{className:"text-base",children:L[N(n)].visa_radio_2})]})]})})]})}),r.jsx(q,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Ve,{className:"animate-spin"}):L[N(n)].button})]})})}),e&&r.jsx(ze,{delay:.3})]})}const yr=j.object({name:j.string().min(2,"error"),email:j.string().email(),phone:j.string().min(8,"error"),company:j.string().min(2,"error"),msg:j.string().min(5,"error")}),wr={name:"",email:"",phone:"",company:"",msg:""},jr=({className:n})=>{const{t:e}=de("contacts"),[t,s]=b.useState(!1),i=Le({resolver:Oe(yr),defaultValues:wr});async function a(l){try{const c=await vs(l);s(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=i.formState;return r.jsx("div",{className:J("bg-primary rounded-[8px] py-8 px-6 ",n),children:r.jsx(Pe,{...i,children:r.jsxs("form",{onSubmit:i.handleSubmit(a),children:[r.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(_,{onPrimary:!0,name:"name",control:i.control,label:e("name"),error:o.name}),r.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[r.jsx(_,{onPrimary:!0,name:"email",control:i.control,label:"Email",error:o.email}),r.jsx(_,{onPrimary:!0,name:"phone",control:i.control,label:e("phone"),error:o.phone})]}),r.jsx(_,{onPrimary:!0,name:"company",control:i.control,label:e("company"),error:o.name}),r.jsx(_,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:i.control,error:o.msg}),r.jsx(q,{disabled:i.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):i.formState.isSubmitting?r.jsx(bs,{className:"animate-spin text-white"}):e("button")})]})]})})})};function Sr(){H();const{t:n}=de("contacts");return r.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[r.jsx(ie,{children:r.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[r.jsx(jr,{}),r.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[r.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:n("title_2")}),r.jsxs("div",{className:"flex flex-col gap-20",children:[r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/map.svg",alt:"address"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:n("address")}),r.jsx("address",{className:"text-base normal not-italic",children:n("venue")})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:n("phone")}),r.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/email.svg",alt:"email"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),r.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),r.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:r.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"})})]})}const kr=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],Nr=({className:n})=>{var w,v,k,R,O;const[e,t]=b.useState(0),{data:s,isPending:i,status:a}=ys(1),{data:o}=ws(1),[l,c]=b.useState(!1),[u,p]=b.useState({id:0,type:"photo"}),m=I(E=>E.lang),d=({id:E,type:T})=>{c(!0),p({id:E,type:T})},{t:f}=de("main"),[h,g]=b.useState(!1),x=E=>E===0&&i?r.jsx(ue,{}):r.jsx(ue,{});return console.log(a),r.jsxs(r.Fragment,{children:[r.jsx(ce,{children:l&&r.jsx(js,{activeItem:u,setActiveItem:p,setIsOpen:c})}),r.jsxs("section",{className:J("md:mb-[120px] mb-20",n),children:[r.jsx(ye,{title:m==="ru"?"Моменты":"Moments"}),r.jsx(ie,{className:"page-bottom md:pt-10 pt-6",children:r.jsxs("div",{className:"flex justify-center flex-col",children:[r.jsx(xt,{state:e,setState:t,data:kr,className:"mb-6"}),e===0&&i?x(e):r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"2025"}),r.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(v=(w=s==null?void 0:s.photos)==null?void 0:w.slice(0,h?1e3:16))==null?void 0:v.map((E,T)=>{var C,K;return r.jsx("div",{onClick:()=>d({id:T,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:r.jsx("img",{src:((C=E==null?void 0:E.photo)==null?void 0:C.path)??"",alt:((K=E==null?void 0:E.photo)==null?void 0:K.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},T)}):(k=o==null?void 0:o.videos)==null?void 0:k.map((E,T)=>{var C;return r.jsxs("div",{onClick:()=>d({id:T,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[r.jsx(Ss,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),r.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),r.jsx("img",{src:((C=E==null?void 0:E.video_photo)==null?void 0:C.path)??"",className:"size-full object-cover"})]},T)})})]}),((R=s==null?void 0:s.photos)==null?void 0:R.length)&&((O=s==null?void 0:s.photos)==null?void 0:O.length)>16&&!h&&r.jsx(q,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},_r=(n,e)=>{const{data:t,isPending:s}=He({queryKey:["news-inner",n,e],queryFn:()=>ks(n,e),select:({data:i})=>i.data});return{data:t,isPending:s}};function Rr(){var o;const{id:n}=As(),e=I(l=>l.lang),t=Number(n);H(t);const{data:s,isPending:i}=_r(t,e),{data:a}=bt(e);return i?r.jsx(ue,{}):r.jsxs(ie,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[r.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),r.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),r.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:r.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),r.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),r.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),r.jsxs("section",{children:[r.jsx("h2",{className:"h2 mb-6",children:e==="ru"?"Читайте также:":"Read more:"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:a==null?void 0:a.filter(l=>l.id!==t).slice(0,3).map(l=>b.createElement(vt,{...l,key:l.title}))})]})]})}function Cr(){H();const n=I(s=>s.lang),{data:e,isPending:t}=bt(n);return t?r.jsx(ue,{}):r.jsxs(ie,{className:"page-padding",children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:n==="ru"?"Новости":"News"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>b.createElement(vt,{...s,key:s.title}))})]})}const Tr=()=>{const n=I(s=>s.lang),{data:e,isPending:t}=He({queryKey:["participants",n],queryFn:()=>Ns(n),select:({data:s})=>s.data});return{data:e,isPending:t}},Er=({className:n})=>{var u,p,m,d,f;H();const e=I(h=>h.lang),{data:t,isPending:s}=Tr(),i={company:e==="ru"?"Название компании":"Company name",country:e==="ru"?"Страна":"Country",industry:e==="ru"?"Сфера деятельности":"Industry"},[a,o]=b.useState(0),l=(m=t==null?void 0:t[0])==null?void 0:m.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(p=t==null?void 0:t[2])==null?void 0:p.participants),c=t==null?void 0:t.filter(h=>a===1?h.id===3:a===2?h.id===1:h.id===2);return console.log(a),r.jsx(ie,{children:r.jsxs("section",{className:J("page-padding overflow-x-hidden",n),children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:e==="ru"?"Список участников":"List of participants"}),r.jsx(xt,{state:a,setState:o,className:"mb-6 md:w-fit"}),r.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[r.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[r.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:i==null?void 0:i.company}),r.jsx("h3",{className:"flex-[0_0_19.80%]",children:i==null?void 0:i.country}),r.jsx("h3",{className:"flex-[0_0_34.65%]",children:i==null?void 0:i.industry})]}),s?r.jsx(ue,{}):a===0?l==null?void 0:l.map((h,g,x)=>r.jsx(Qe,{...h,arr:x==null?void 0:x.length,index:g,image:h.image??{path:""},image_country:h.image_country??{path:""}})):(f=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:f.map((h,g,x)=>r.jsx(Qe,{...h,arr:x==null?void 0:x.length,index:g,image:h.image??{path:""},image_country:h.image_country??{path:""}}))]})]})})},Lr=j.object({space_package:j.string(),company_name:j.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:j.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:j.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:j.preprocess(n=>Number(n),j.number().min(1,"Укажите количество участников")),country:j.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:j.string().email({message:"Укажите корректный email"}),phone:j.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:j.string().optional(),visa_support:j.string().optional()}),Or={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function Pr(){const n=I(l=>l.lang),[e,t]=b.useState(!1),s=Le({resolver:Oe(Lr),defaultValues:Or}),i=async l=>{await _s(l)&&t(!0)};b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:a}=s.formState,o=N(n);return r.jsxs("div",{children:[r.jsx(ye,{title:L[N(n)].cover}),r.jsx(ce,{children:!e&&r.jsx(Pe,{...s,children:r.jsxs(ve.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:s.handleSubmit(i),children:[r.jsx(Ne,{control:s.control,name:"space_package",render:({field:l})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(V,{className:"text-xl",children:L[o].h2}),r.jsx(z,{children:r.jsxs(xe,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"space",checked:l.value==="space"})}),r.jsx(V,{className:"text-base",children:L[o].radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"package",checked:l.value==="package"})}),r.jsx(V,{className:"text-base",children:L[o].radio_2})]})]})})]})}),r.jsx(_,{label:L[o].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(_,{label:L[o].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(_,{label:L[o].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(_,{label:L[o].number_of_participants,type:"number",name:"participants_number",control:s.control,error:a.participants_number}),r.jsx(_,{label:L[o].label_4,name:"country",control:s.control,error:a.country}),r.jsx(_,{label:L[o].label_5,name:"email",control:s.control,error:a.email}),r.jsx(_,{label:L[o].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(_,{label:L[o].label_7,name:"website",control:s.control}),r.jsx(Ne,{control:s.control,name:"visa_support",render:({field:l})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(V,{className:"text-xl",children:L[o].visa}),r.jsx(z,{children:r.jsxs(xe,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(z,{children:r.jsx(Z,{value:"yes",checked:l.value==="yes"})}),r.jsx(V,{className:"text-base",children:L[o].visa_radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(z,{children:r.jsx(Z,{value:"no",checked:l.value==="no"})}),r.jsx(V,{className:"text-base",children:L[o].visa_radio_2})]})]})})]})}),r.jsx(q,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Ve,{className:"animate-spin"}):L[o].button})]})})}),e&&r.jsx(ze,{delay:.3})]})}const Kt=()=>{var h;const{t:n}=de("main"),e=I(g=>g.lang),{pathname:t}=Ke(),[s]=yt({loop:!0},[Rs({delay:5e3,stopOnInteraction:!1})]),{title:i,texts:a,button:o,button2:l}=n("impressions.hero",{returnObjects:!0}),{title2:c,texts2:u}=n("impressions.hero",{returnObjects:!0}),p=(g,x)=>t==="/impressions"?g:x,m=(g,x)=>t==="/impressions"?g:x,d={en:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"],ru:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg"]},f=()=>e==="ru"?d.ru:d.en;return r.jsxs("section",{className:"",children:[t==="/impressions-tm"?r.jsx("div",{ref:s,className:"embla overflow-hidden",children:r.jsx("div",{className:"flex",children:f().map((g,x)=>r.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):r.jsx("img",{src:n("impressions.banner")}),r.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:"Модные показы"}),r.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:r.jsxs(ie,{className:"md:py-20 py-10",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:p(i,c)}),r.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(h=m(a,u))==null?void 0:h.map((g,x)=>r.jsx("p",{className:"md:text-lg !normal",children:g},x))}),r.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[r.jsx(Xe,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:r.jsx(q,{size:"sm",className:"w-full",children:o})}),r.jsx(Xe,{to:e==="ru"?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_en.pdf",target:"_blank",className:"w-full",children:r.jsx(q,{size:"sm",className:"w-full",children:l})})]})]})})]})},Gt=()=>{const{t:n}=de("main"),{pathname:e}=Ke(),{videosTitle:t,videosTitle2:s}=n("impressions",{returnObjects:!0}),i=()=>e!=="/impressions";return r.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:r.jsxs(ie,{children:[r.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:i()?t:s}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 mx-0 lg:mx-48 gap-4 text-white overflow-hidden h-auto md:h-[497px]",children:r.jsx("div",{className:"bg-gray_10 p-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:r.jsx("div",{className:"maxh-[453px]",children:r.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})})})})]})})},Fr=n=>{const e=I(i=>i.lang),{data:t,isPending:s}=He({queryKey:["designers",e],queryFn:()=>Cs(e,n),select:({data:i})=>i.data});return{data:t,isPending:s}},Ut=()=>{const{pathname:n}=Ke(),e=()=>n!=="/impressions",{data:t,isPending:s}=Fr(e()?2:1),[i,a]=yt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,l]=b.useState(0),{t:c}=de("main"),[u,p]=b.useState(!1),[m,d]=b.useState(!0),f=b.useCallback(k=>{a&&a.scrollTo(k)},[a]);b.useEffect(()=>{if(!a)return;const k=()=>{l(a==null?void 0:a.selectedScrollSnap()),p(a.canScrollPrev()),d(a.canScrollNext())};return a.on("select",k),()=>{a.off("select",k)}},[a]);const{title:h,text:g,title2:x,text2:w}=c("impressions.designers",{returnObjects:!0}),v=[...(t==null?void 0:t.designers)??[]].sort((k,R)=>(k==null?void 0:k.order_id)-(R==null?void 0:R.order_id));return console.log(v),r.jsx("section",{className:"md:py-20 py-10",children:r.jsxs(ie,{className:"flex flex-col md:gap-10 gap-6",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?h:x}),r.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:w}),r.jsxs("div",{ref:i,className:"embla",children:[r.jsx("div",{className:"flex embla__container",children:s?r.jsx(ue,{}):v==null?void 0:v.map((k,R)=>r.jsx(Ts,{...k,className:"embla__slide flex-[0_0_714px] mr-4"},R))}),r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[r.jsx("button",{onClick:()=>a==null?void 0:a.scrollPrev(),className:J("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:r.jsx(Es,{})}),r.jsx("div",{className:"flex items-center gap-2",children:[...Array(v!=null&&v.length?Math.round((v==null?void 0:v.length)/2):5)].map((k,R)=>r.jsx("div",{onClick:()=>f==null?void 0:f(R),className:J("w-5 h-1 rounded-[2px] cursor-pointer",o===R?"bg-teritary":"bg-on_surface_v")},R))}),r.jsx("button",{onClick:()=>a==null?void 0:a.scrollNext(),className:J("size-12 flex items-center justify-center",!m&&"opacity-20 pointer-events-none"),children:r.jsx(Ls,{})})]})]})]})})};function Ir(){return H(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(Kt,{}),r.jsx(Gt,{}),r.jsx(Ut,{})]})}function Ar(){return H(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(Kt,{}),r.jsx(Gt,{}),r.jsx(Ut,{})]})}const M=({className:n})=>r.jsx("div",{className:J("container py-32",n),children:r.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),$r=$s([{element:r.jsx(Ai,{}),path:"/",children:[{element:r.jsx($i,{}),path:"",errorElement:r.jsx(M,{})},{element:r.jsx(gr,{}),path:"about",errorElement:r.jsx(M,{})},{element:r.jsx(fr,{}),path:"B2B-B2G",errorElement:r.jsx(M,{})},{element:r.jsx(vr,{}),path:"become-sponsor",errorElement:r.jsx(M,{})},{element:r.jsx(Pr,{}),path:"stend-form",errorElement:r.jsx(M,{})},{element:r.jsx(Sr,{}),path:"contacts",errorElement:r.jsx(M,{})},{element:r.jsx(Cr,{}),path:"news",errorElement:r.jsx(M,{})},{element:r.jsx(Rr,{}),path:"news/:id",errorElement:r.jsx(M,{})},{element:r.jsx(Er,{}),path:"participants",errorElement:r.jsx(M,{})},{element:r.jsx(Nr,{}),path:"media",errorElement:r.jsx(M,{})},{element:r.jsx(Ir,{}),path:"impressions",errorElement:r.jsx(M,{})},{element:r.jsx(Ar,{}),path:"impressions-tm",errorElement:r.jsx(M,{})}]}]),Dr=new Os;Bs.createRoot(document.getElementById("root")).render(r.jsx(b.StrictMode,{children:r.jsx(Ps,{client:Dr,children:r.jsx(Ds,{router:$r})})})); diff --git a/dist/assets/index-Cw8L3ftj.css b/dist/assets/index-Cw8L3ftj.css deleted file mode 100644 index 9d4c0cf..0000000 --- a/dist/assets/index-Cw8L3ftj.css +++ /dev/null @@ -1 +0,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}@font-face{font-family:Gilroy-Black;src:local("Gilroy-Black"),url(../fonts/Gilroy-Black.woff2) format("woff2");font-weight:900}*,: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))}.c-scrollbar .c-scrollbar_thumb{background-color:#99101d!important}.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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.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}.-left-4{left:-1rem}.-right-12{right:-3rem}.-top-36{top:-9rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-28{bottom:7rem}.left-0{left:0}.left-1\/2{left:50%}.left-1\/3{left:33.333333%}.left-10{left:2.5rem}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.left-\[50\%\]{left:50%}.right-0{right:0}.right-10{right:2.5rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-1\/2{top:50%}.top-1\/3{top:33.333333%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-8{top:2rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[55\%\]{top:55%}.top-\[60\%\]{top:60%}.top-full{top:100%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.float-left{float:left}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:1rem;margin-right:1rem}.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-2\.5{margin-bottom:.625rem}.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}.mb-\[60px\]{margin-bottom:60px}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-1\.5{margin-top:.375rem}.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-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\[70px\]{width:70px;height:70px}.size-\[88px\]{width:88px;height:88px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.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-3{height:.75rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[116px\]{height:116px}.h-\[124px\]{height:124px}.h-\[128px\]{height:128px}.h-\[155px\]{height:155px}.h-\[160px\]{height:160px}.h-\[220px\]{height:220px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-\[316px\]{height:316px}.h-\[326px\]{height:326px}.h-\[345px\]{height:345px}.h-\[350px\]{height:350px}.h-\[3px\]{height:3px}.h-\[400px\]{height:400px}.h-\[40vh\]{height:40vh}.h-\[52px\]{height:52px}.h-\[59px\]{height:59px}.h-\[80vh\]{height:80vh}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[100vh\]{max-height:100vh}.max-h-\[40vh\]{max-height:40vh}.max-h-\[610px\]{max-height:610px}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[128px\]{min-height:128px}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.\!w-full{width:100%!important}.w-0{width:0px}.w-1\/2{width:50%}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[288px\]{width:288px}.w-\[300px\]{width:300px}.w-\[336px\]{width:336px}.w-\[70\%\]{width:70%}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[392px\]{max-width:392px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.max-w-\[888px\]{max-width:888px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\[0_0_100\%\]{flex:0 0 100%}.flex-\[0_0_16px\]{flex:0 0 16px}.flex-\[0_0_19\.80\%\]{flex:0 0 19.8%}.flex-\[0_0_27\%\]{flex:0 0 27%}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_34\.65\%\]{flex:0 0 34.65%}.flex-\[0_0_44\%\]{flex:0 0 44%}.flex-\[0_0_45\.54\%\]{flex:0 0 45.54%}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-\[0_0_70\%\]{flex:0 0 70%}.flex-\[0_0_714px\]{flex:0 0 714px}.flex-\[0_0_80\%\]{flex:0 0 80%}.flex-\[0_0_88px\]{flex:0 0 88px}.flex-\[0_0_90px\]{flex:0 0 90px}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-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))}.translate-x-\[-50\%\]{--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-\[-50\%\]{--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))}.rotate-180{--tw-rotate: 180deg;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))}.rotate-45{--tw-rotate: 45deg;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))}.scale-\[0\.7\]{--tw-scale-x: .7;--tw-scale-y: .7;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}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.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}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.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-2\.5{gap:.625rem}.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-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.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-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * 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-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.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-\[2px\]{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:calc(var(--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-gray_09{--tw-border-opacity: 1;border-color:rgb(89 80 81 / 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-outline_v{--tw-border-opacity: 1;border-color:rgb(208 211 216 / 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-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#2C57A752\]\/\[32\%\]{background-color:#2c57a752}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#E0E6EB\]{--tw-bg-opacity: 1;background-color:rgb(224 230 235 / var(--tw-bg-opacity, 1))}.bg-\[\#E7E5E5\]{--tw-bg-opacity: 1;background-color:rgb(231 229 229 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-\[\#f4f4f4\]{--tw-bg-opacity: 1;background-color:rgb(244 244 244 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-black\/90{background-color:#000000e6}.bg-gray_10{--tw-bg-opacity: 1;background-color:rgb(67 60 61 / var(--tw-bg-opacity, 1))}.bg-on_surface_v{--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.bg-primary{--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(238 237 244 / 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_08{--tw-bg-opacity: 1;background-color:rgb(212 132 0 / 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-\[url\(\'\/impressions-bg\.png\'\)\]{background-image:url(/impressions-bg.png)}.bg-\[url\(\'\/impressions\/card-bg\.png\'\)\]{background-image:url(/impressions/card-bg.png)}.bg-\[url\(\'\/impressions\/videos-block-bg\.png\'\)\]{background-image:url(/impressions/videos-block-bg.png)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,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-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 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)}.to-surface_high{--tw-gradient-to: #E8E7EF var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-no-repeat{background-repeat:no-repeat}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-top{-o-object-position:top;object-position:top}.p-1{padding:.25rem}.p-2{padding:.5rem}.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-20{padding-top:5rem;padding-bottom:5rem}.py-32{padding-top:8rem;padding-bottom:8rem}.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-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-40{padding-bottom:10rem}.pb-\[120px\]{padding-bottom:120px}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-4{padding-right:1rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-20{padding-top:5rem}.pt-6{padding-top:1.5rem}.\!text-left{text-align:left!important}.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-5xl{font-size:3rem;line-height:1}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.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}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-10{line-height:2.5rem}.leading-\[120\%\]{line-height:120%}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-on_surface{--tw-text-opacity: 1 !important;color:rgb(44 40 40 / 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-\[\#FACFAE\]{--tw-text-opacity: 1;color:rgb(250 207 174 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / 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-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-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.container{margin-left:auto;margin-right:auto;width:100%;max-width:1240px;padding-left:1rem;padding-right:1rem}.\!normal,.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.black{font-family:Gilroy-Black}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:24px;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:32px}}.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))}.news-inner img{height:300px;-o-object-fit:cover;object-fit:cover}@media (min-width: 768px){.news-inner img{height:500px}}.news-inner a{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1));text-decoration-line:underline}.page-padding{padding-top:2.5rem;padding-bottom:5rem}@media (min-width: 768px){.page-padding{padding-top:5rem;padding-bottom:120px}}.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\:absolute:after{content:var(--tw-content);position:absolute}.after\:bottom-0:after{content:var(--tw-content);bottom:0}.after\:left-0:after{content:var(--tw-content);left:0}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:rounded:after{content:var(--tw-content);border-radius:.25rem}.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}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:opacity-100:after{content:var(--tw-content);opacity:1}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.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))}.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}.group:hover .group-hover\:scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.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-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{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-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{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-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.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-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.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\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.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-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.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\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;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))}@media (min-width: 640px){.sm\:bottom-12{bottom:3rem}.sm\:flex{display:flex}.sm\:size-\[128px\]{width:128px;height:128px}.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_128px\]{flex:0 0 128px}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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\:rounded-lg{border-radius:var(--radius)}.sm\:p-0{padding:0}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 768px){.md\:absolute{position:absolute}.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-10{margin-bottom:2.5rem}.md\:mb-20{margin-bottom:5rem}.md\:mb-8{margin-bottom:2rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:ml-1{margin-left:.25rem}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:\!flex{display:flex!important}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-20{width:5rem;height:5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[216px\]{height:216px}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:h-\[480px\]{height:480px}.md\:h-\[497px\]{height:497px}.md\:h-\[500px\]{height:500px}.md\:\!w-\[688px\]{width:688px!important}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,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\:gap-10{gap:2.5rem}.md\:gap-6{gap:1.5rem}.md\:p-10{padding:2.5rem}.md\:p-6{padding:1.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\:pb-\[120px\]{padding-bottom:120px}.md\:pt-10{padding-top:2.5rem}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-\[32px\]{font-size:32px}.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\:right-\[15\%\]{right:15%}.lg\:mx-48{margin-left:12rem;margin-right:12rem}.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:size-\[140px\]{width:140px;height:140px}.lg\:h-\[600px\]{height:600px}.lg\:h-\[700px\]{height:700px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:w-1\/2{width:50%}.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\:grid-cols-6{grid-template-columns:repeat(6,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}.lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\:gap-y-4{row-gap:1rem}.lg\:px-28{padding-left:7rem;padding-right:7rem}.lg\:px-\[20\%\]{padding-left:20%;padding-right:20%}}@media (min-width: 1280px){.xl\:left-full{left:100%}.xl\:right-\[13\%\]{right:13%}.xl\:top-0{top:0}.xl\:mb-8{margin-bottom:2rem}.xl\:mr-20{margin-right:5rem}.xl\:hidden{display:none}.xl\:\!w-\[1224px\]{width:1224px!important}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}@media (min-width: 1536px){.\32xl\:right-\[10\%\]{right:10%}.\32xl\:h-\[50vh\]{height:50vh}.\32xl\:w-\[40\%\]{width:40%}}.\[\&_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/index-DNPeJrzc.js b/dist/assets/index-DNPeJrzc.js deleted file mode 100644 index 8c6cb73..0000000 --- a/dist/assets/index-DNPeJrzc.js +++ /dev/null @@ -1 +0,0 @@ -import{u as E,i as Mt,j as r,H as Vt,F as Kt,a as Gt,b as Ut,c as zt,d as Ht,e as qt,f as Jt,g as Qt,h as Wt,z as v,k as Re,l as me,S as Je,m as dt,n as Yt,P as ge,o as Z,p as Xt,q as Zt,r as es,s as Q,t as De,v as xe,w as k,x as we,y as B,A as M,L as te,B as V,C as w,D as q,E as Be,G as Te,I as Pe,J as Oe,K as oe,M as Me,N as ts,O as be,Q as ss,R as ns,T as rs,U as as,V as is,W as os,X as ls,Y as ce,Z as cs,_ as us,$ as se,a0 as ds,a1 as ps,a2 as ms,a3 as pt,a4 as hs,a5 as le,a6 as Ve,a7 as fs,a8 as mt,a9 as ht,aa as gs,ab as Qe,ac as xs,ad as ft,ae as bs,af as vs,ag as ys,ah as js,ai as ks,aj as ws,ak as Ss}from"./ui-library-Kiotq6MA.js";import{f as Ns,a as b,O as _s,e as re,u as Cs,g as Ke,L as We,h as Rs,i as Ts}from"./react-vendor-CE_Ks92h.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(n){if(n.ep)return;n.ep=!0;const a=t(n);fetch(n.href,a)}})();var je={},Ye;function Ps(){if(Ye)return je;Ye=1;var i=Ns();return je.createRoot=i.createRoot,je.hydrateRoot=i.hydrateRoot,je}var Os=Ps();const j=i=>typeof i=="string",de=()=>{let i,e;const t=new Promise((s,n)=>{i=s,e=n});return t.resolve=i,t.reject=e,t},Xe=i=>i==null?"":""+i,Ls=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},Es=/###/g,Ze=i=>i&&i.indexOf("###")>-1?i.replace(Es,"."):i,et=i=>!i||j(i),pe=(i,e,t)=>{const s=j(e)?e.split("."):e;let n=0;for(;n{const{obj:s,k:n}=pe(i,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=pe(i,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=pe(i,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},Fs=(i,e,t,s)=>{const{obj:n,k:a}=pe(i,e,Object);n[a]=n[a]||[],n[a].push(t)},Se=(i,e)=>{const{obj:t,k:s}=pe(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},Is=(i,e,t)=>{const s=Se(i,t);return s!==void 0?s:Se(e,t)},gt=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?j(i[s])||i[s]instanceof String||j(e[s])||e[s]instanceof String?t&&(i[s]=e[s]):gt(i[s],e[s],t):i[s]=e[s]);return i},ae=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var $s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const As=i=>j(i)?i.replace(/[&<>"'\/]/g,e=>$s[e]):i;class Ds{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 s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const Bs=[" ",",","?","!",";"],Ms=new Ds(20),Vs=(i,e,t)=>{e=e||"",t=t||"";const s=Bs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const n=Ms.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!n.test(i);if(!a){const o=i.indexOf(t);o>0&&!n.test(i.substring(0,o))&&(a=!0)}return a},$e=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const s=e.split(t);let n=i;for(let a=0;a-1&&ci==null?void 0:i.replace("_","-"),Ks={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,s;(s=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||s.call(t,console,e)}};class _e{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||Ks,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+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,s=new Array(t>1?t-1:0),n=1;n{let[l,c]=o;for(let u=0;u{let[l,c]=o;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,s){var u,p;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):j(s)&&a?l.push(...s.split(a)):l.push(s)));const c=Se(this.data,l);return!c&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),c||!o||!j(s)?c:$e((p=(u=this.data)==null?void 0:u[e])==null?void 0:p[t],s,a)}addResource(e,t,s,n){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(l=e.split("."),n=t,t=l[1]),this.addNamespaces(t),tt(this.data,l,n),a.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(j(s[a])||Array.isArray(s[a]))&&this.addResource(e,t,a,s[a],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),n=s,s=t,t=l[1]),this.addNamespaces(t);let c=Se(this.data,l)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?gt(c,s,a):c={...c,...s},tt(this.data,l,c),o.silent||this.emit("added",e,t,s)}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(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var xt={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,n){return i.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,s,n))??e}),e}};const nt={},rt=i=>!j(i)&&typeof i!="boolean"&&typeof i!="number";class Ce extends Le{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ls(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=J.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 s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Vs(e,s,n);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:j(a)?[a]:a};const u=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(n)}return{key:e,namespaces:j(a)?[a]:a}}translate(e,t,s){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 n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(p){const O=t.nsSeparator||this.options.nsSeparator;return n?{res:`${c}${O}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${O}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:o}const h=this.resolve(e,t);let d=h==null?void 0:h.res;const f=(h==null?void 0:h.usedKey)||o,m=(h==null?void 0:h.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,y=t.count!==void 0&&!j(t.count),_=Ce.hasDefaultValue(t),C=y?this.pluralResolver.getSuffix(u,t.count,t):"",F=t.ordinal&&y?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",P=y&&!t.ordinal&&t.count===0,R=P&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${C}`]||t[`defaultValue${F}`]||t.defaultValue;let N=d;S&&!d&&_&&(N=R);const G=rt(N),W=Object.prototype.toString.apply(N);if(S&&N&&G&&g.indexOf(W)<0&&!(j(x)&&Array.isArray(N))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,N,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(h.res=O,h.usedParams=this.getUsedParamsDetails(t),h):O}if(a){const O=Array.isArray(N),I=O?[]:{},ve=O?m:f;for(const U in N)if(Object.prototype.hasOwnProperty.call(N,U)){const z=`${ve}${a}${U}`;_&&!d?I[U]=this.translate(z,{...t,defaultValue:rt(R)?R[U]:void 0,joinArrays:!1,ns:l}):I[U]=this.translate(z,{...t,joinArrays:!1,ns:l}),I[U]===z&&(I[U]=N[U])}d=I}}else if(S&&j(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let O=!1,I=!1;!this.isValidLookup(d)&&_&&(O=!0,d=R),this.isValidLookup(d)||(I=!0,d=o);const U=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:d,z=_&&R!==d&&this.options.updateMissing;if(I||O||z){if(this.logger.log(z?"updateKey":"missingKey",u,c,o,z?R:d),a){const A=this.resolve(o,{...t,keySeparator:!1});A&&A.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 $=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let A=0;A{var qe;const He=_&&ue!==d?ue:U;this.options.missingKeyHandler?this.options.missingKeyHandler(A,c,ne,He,z,t):(qe=this.backendConnector)!=null&&qe.saveMissing&&this.backendConnector.saveMissing(A,c,ne,He,z,t),this.emit("missingKey",A,c,ne,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?$.forEach(A=>{const ne=this.pluralResolver.getSuffixes(A,t);P&&t[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(ue=>{ze([A],o+ue,t[`defaultValue${ue}`]||R)})}):ze($,o,R))}d=this.extendTranslation(d,e,t,h,s),I&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(I||O)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,O?d:void 0))}return n?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,s,n,a){var u,p;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=j(e)&&(((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const m=e.match(this.interpolator.nestingRegexp);d=m&&m.length}let f=s.replace&&!j(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||n.usedLng,s),h){const m=e.match(this.interpolator.nestingRegexp),g=m&&m.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,n,a,o,l;return j(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(c,t),p=u.key;n=p;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=t.count!==void 0&&!j(t.count),f=d&&!t.ordinal&&t.count===0,m=t.context!==void 0&&(j(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(x=>{var S,y;this.isValidLookup(s)||(l=x,!nt[`${g[0]}-${x}`]&&((S=this.utils)!=null&&S.hasLoadedNamespace)&&!((y=this.utils)!=null&&y.hasLoadedNamespace(l))&&(nt[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${g.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!!!")),g.forEach(_=>{var P;if(this.isValidLookup(s))return;o=_;const C=[p];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(C,p,_,x,t);else{let R;d&&(R=this.pluralResolver.getSuffix(_,t.count,t));const N=`${this.options.pluralSeparator}zero`,G=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(C.push(p+R),t.ordinal&&R.indexOf(G)===0&&C.push(p+R.replace(G,this.options.pluralSeparator)),f&&C.push(p+N)),m){const W=`${p}${this.options.contextSeparator}${t.context}`;C.push(W),d&&(C.push(W+R),t.ordinal&&R.indexOf(G)===0&&C.push(W+R.replace(G,this.options.pluralSeparator)),f&&C.push(W+N))}}let F;for(;F=C.pop();)this.isValidLookup(s)||(a=F,s=this.getResource(_,x,F,t))}))})}),{res:s,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var a;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}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"],s=e.replace&&!j(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const a of t)delete n[a]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class at{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=J.create("languageUtils")}getScriptPartFromCode(e){if(e=Ne(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=Ne(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(j(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(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(a=>{if(a===n)return a;if(!(a.indexOf("-")<0&&n.indexOf("-")<0)&&(a.indexOf("-")>0&&n.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===n||a.indexOf(n)===0&&n.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),j(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],a=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return j(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):j(e)&&a(this.formatLanguageCode(e)),s.forEach(o=>{n.indexOf(o)<0&&a(this.formatLanguageCode(o))}),n}}const it={zero:0,one:1,two:2,few:3,many:4,other:5},ot={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Gs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=J.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 s=Ne(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(s,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ot;if(!e.match(/-|_/))return ot;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,a)=>it[n]-it[a]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const lt=function(i,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Is(i,e,t);return!a&&n&&j(t)&&(a=$e(i,t,s),a===void 0&&(a=$e(e,t,s))),a},Fe=i=>i.replace(/\$/g,"$$$$");class Us{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),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:s,useRawValueToEscape:n,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:S,alwaysFormat:y}=e.interpolation;this.escape=t!==void 0?t:As,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=a?ae(a):o||"{{",this.suffix=l?ae(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=d?ae(d):f||ae("$t("),this.nestingSuffix=m?ae(m):g||ae(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=S||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"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,s,n){var f;let a,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const y=lt(t,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,s,{...n,...t,interpolationkey:m}):y}const g=m.split(this.formatSeparator),x=g.shift().trim(),S=g.join(this.formatSeparator).trim();return this.format(lt(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,s,{...n,...t,interpolationkey:x})};this.resetRegExp();const p=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Fe(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Fe(this.escape(m)):Fe(m)}].forEach(m=>{for(l=0;a=m.regex.exec(e);){const g=a[1].trim();if(o=u(g),o===void 0)if(typeof p=="function"){const S=p(e,a,n);o=j(S)?S:""}else if(n&&Object.prototype.hasOwnProperty.call(n,g))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!j(o)&&!this.useRawValueToEscape&&(o=Xe(o));const x=m.safeValue(o);if(e=e.replace(a[0],x),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const h=c.split(new RegExp(`${p}[ ]*{`));let d=`{${h[1]}`;c=h[0],d=this.interpolate(d,o);const f=d.match(/'/g),m=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!m||m.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${p}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;n=this.nestingRegexp.exec(e);){let c=[];o={...s},o=o.replace&&!j(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const p=n[1].split(this.formatSeparator).map(h=>h.trim());n[1]=p.shift(),c=p,u=!0}if(a=t(l.call(this,n[1].trim(),o),o),a&&n[0]===e&&!j(a))return a;j(a)||(a=Xe(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((p,h)=>this.format(p,h,s.lng,{...s,interpolationkey:n[1].trim()}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}const zs=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const s=i.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ie=i=>{const e={};return(t,s,n)=>{let a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a={...a,[n.interpolationkey]:void 0});const o=s+JSON.stringify(a);let l=e[o];return l||(l=i(Ne(s),n),e[o]=l),l(t)}};class Hs{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("formatter"),this.options=e,this.formats={number:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return a=>n.format(a)}),currency:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return a=>n.format(a)}),datetime:ie((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return a=>n.format(a)}),relativetime:ie((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return a=>n.format(a,s.range||"day")}),list:ie((t,s)=>{const n=new Intl.ListFormat(t,{...s});return a=>n.format(a)})},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()]=ie(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var h;const{formatName:u,formatOptions:p}=zs(c);if(this.formats[u]){let d=l;try{const f=((h=n==null?void 0:n.formatParams)==null?void 0:h[n.interpolationkey])||{},m=f.locale||f.lng||n.locale||n.lng||s;d=this.formats[u](l,m,{...p,...n,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const qs=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Js extends Le{constructor(e,t,s){var a,o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=J.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,s,n.backend,n)}queueLoad(e,t,s,n){const a={},o={},l={},c={};return e.forEach(u=>{let p=!0;t.forEach(h=>{const d=`${u}|${h}`;!s.reload&&this.store.hasResourceBundle(u,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,p=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),c[h]===void 0&&(c[h]=!0)))}),p||(l[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,s){const n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&s&&this.store.addResourceBundle(a,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Fs(c.loaded,[a],o),qs(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:a,callback:o});return}this.readingCalls++;const l=(u,p)=>{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&&p&&n{this.read.call(this,e,t,s,n+1,a*2,o)},a);return}o(u,p)},c=this.backend[s].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=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."),n&&n();j(e)&&(e=this.languageUtils.toResolveHierarchy(e)),j(t)&&(t=[t]);const a=this.queueLoad(e,t,s,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],a=s[1];this.read(n,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${a} for language ${n}`,l),this.loaded(e,o,l)})}saveMissing(e,t,s,n,a){var c,u,p,h,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(c=this.services)==null?void 0:c.utils)!=null&&u.hasLoadedNamespace&&!((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" 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(!(s==null||s==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:a},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(e,t,s,n,f):g=m(e,t,s,n),g&&typeof g.then=="function"?g.then(x=>l(null,x)).catch(l):l(null,g)}catch(g){l(g)}else m(e,t,s,n,l,f)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const ct=()=>({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:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),j(i[1])&&(e.defaultValue=i[1]),j(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ut=i=>{var e,t;return j(i.ns)&&(i.ns=[i.ns]),j(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),j(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((t=(e=i.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},ke=()=>{},Qs=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class he extends Le{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ut(e),this.services={},this.logger=J,this.modules={external:[]},Qs(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]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(j(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=ct();this.options={...n,...this.options,...ut(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?J.init(a(this.modules.logger),this.options):J.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Hs;const h=new at(this.options);this.store=new st(this.options.resources,this.options);const d=this.services;d.logger=J,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new Gs(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=a(p),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Us(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Js(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var m=arguments.length,g=new Array(m>1?m-1:0),x=1;x1?m-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ke),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=de(),u=()=>{const p=(h,d)=>{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),c.resolve(d),s(h,d)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var a,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const n=j(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&l.indexOf(h)<0&&l.push(h)})};n?c(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=de();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ke),this.services.backendConnector.reload(e,t,a=>{n.resolve(),s(a)}),n}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"&&xt.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(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=de();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(c,function(){return s.t(...arguments)})},l=c=>{var p,h;!e&&!c&&this.services.languageDetector&&(c=[]);const u=j(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(h=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||h.call(p,u)),this.loadResources(u,d=>{o(d,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),n}getFixedT(e,t,s){var n=this;const a=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,p=new Array(u>2?u-2:0),h=2;h`${c.keyPrefix}${d}${m}`):f=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,n.t(f,c)};return j(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(){var n;for(var e=arguments.length,t=new Array(e),s=0;s1&&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 s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!n||o(a,e)))}loadNamespaces(e,t){const s=de();return this.options.ns?(j(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=de();j(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=n.concat(a),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var n,a;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.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"],s=((a=this.services)==null?void 0:a.languageUtils)||new at(ct());return t.indexOf(s.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 he(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},a=new he(n);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((p,h)=>(p[h]={...c[u][h]},p),{})),{});a.store=new st(l,n),a.services.resourceStore=a.store}return a.translator=new Ce(a.services,n),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p{const i=E(e=>e.lang);return b.useEffect(()=>{L.changeLanguage(i)},[i]),null};function fr(){return r.jsxs("main",{className:"flex flex-col min-h-screen",children:[r.jsx(hr,{}),r.jsx(Vt,{}),r.jsx("div",{className:"flex-auto",children:r.jsx(_s,{})}),r.jsx(Kt,{})]})}function gr(){return r.jsxs("div",{className:"flex flex-col",children:[r.jsx(Gt,{}),r.jsx(Ut,{}),r.jsx(zt,{}),r.jsx(Ht,{}),r.jsx(qt,{}),r.jsx(Jt,{}),r.jsx(Qt,{}),r.jsx(Wt,{})]})}const xr=v.object({type:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.string().min(1,{message:"Укажите количество участников"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:v.string().email({message:"Укажите корректный email"}),phone_number:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:"Укажите цель встречи"}),proposal_description:v.string().optional(),government_agency:v.string().optional(),sector_industry:v.string().optional(),key_services:v.string().optional(),government_experience:v.string().optional(),preferred_meeting_datetime:v.string().optional(),meeting_mode:v.string().optional(),language_preference:v.string().optional(),technical_requirements:v.string().optional(),company_profile:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),br={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:""};function vr(i){const e=i+"CollectionProvider",[t,s]=Re(e),[n,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:m,children:g}=f,x=re.useRef(null),S=re.useRef(new Map).current;return r.jsx(n,{scope:m,itemMap:S,collectionRef:x,children:g})};o.displayName=e;const l=i+"CollectionSlot",c=re.forwardRef((f,m)=>{const{scope:g,children:x}=f,S=a(l,g),y=me(m,S.collectionRef);return r.jsx(Je,{ref:y,children:x})});c.displayName=l;const u=i+"CollectionItemSlot",p="data-radix-collection-item",h=re.forwardRef((f,m)=>{const{scope:g,children:x,...S}=f,y=re.useRef(null),_=me(m,y),C=a(u,g);return re.useEffect(()=>(C.itemMap.set(y,{ref:y,...S}),()=>void C.itemMap.delete(y))),r.jsx(Je,{[p]:"",ref:_,children:x})});h.displayName=u;function d(f){const m=a(i+"CollectionConsumer",f);return re.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((C,F)=>S.indexOf(C.ref.current)-S.indexOf(F.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},d,s]}var yr=b.createContext(void 0);function bt(i){const e=b.useContext(yr);return i||e||"ltr"}var Ie="rovingFocusGroup.onEntryFocus",jr={bubbles:!1,cancelable:!0},Ee="RovingFocusGroup",[Ae,vt,kr]=vr(Ee),[wr,yt]=Re(Ee,[kr]),[Sr,Nr]=wr(Ee),jt=b.forwardRef((i,e)=>r.jsx(Ae.Provider,{scope:i.__scopeRovingFocusGroup,children:r.jsx(Ae.Slot,{scope:i.__scopeRovingFocusGroup,children:r.jsx(_r,{...i,ref:e})})}));jt.displayName=Ee;var _r=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:n=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...h}=i,d=b.useRef(null),f=me(e,d),m=bt(a),[g=null,x]=dt({prop:o,defaultProp:l,onChange:c}),[S,y]=b.useState(!1),_=Yt(u),C=vt(t),F=b.useRef(!1),[P,R]=b.useState(0);return b.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(Ie,_),()=>N.removeEventListener(Ie,_)},[_]),r.jsx(Sr,{scope:t,orientation:s,dir:m,loop:n,currentTabStopId:g,onItemFocus:b.useCallback(N=>x(N),[x]),onItemShiftTab:b.useCallback(()=>y(!0),[]),onFocusableItemAdd:b.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:b.useCallback(()=>R(N=>N-1),[]),children:r.jsx(ge.div,{tabIndex:S||P===0?-1:0,"data-orientation":s,...h,ref:f,style:{outline:"none",...i.style},onMouseDown:Z(i.onMouseDown,()=>{F.current=!0}),onFocus:Z(i.onFocus,N=>{const G=!F.current;if(N.target===N.currentTarget&&G&&!S){const W=new CustomEvent(Ie,jr);if(N.currentTarget.dispatchEvent(W),!W.defaultPrevented){const O=C().filter($=>$.focusable),I=O.find($=>$.active),ve=O.find($=>$.id===g),z=[I,ve,...O].filter(Boolean).map($=>$.ref.current);St(z,p)}}F.current=!1}),onBlur:Z(i.onBlur,()=>y(!1))})})}),kt="RovingFocusGroupItem",wt=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:n=!1,tabStopId:a,...o}=i,l=Xt(),c=a||l,u=Nr(kt,t),p=u.currentTabStopId===c,h=vt(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return b.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),r.jsx(Ae.ItemSlot,{scope:t,id:c,focusable:s,active:n,children:r.jsx(ge.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:Z(i.onMouseDown,m=>{s?u.onItemFocus(c):m.preventDefault()}),onFocus:Z(i.onFocus,()=>u.onItemFocus(c)),onKeyDown:Z(i.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=Tr(m,u.orientation,u.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=h().filter(y=>y.focusable).map(y=>y.ref.current);if(g==="last")S.reverse();else if(g==="prev"||g==="next"){g==="prev"&&S.reverse();const y=S.indexOf(m.currentTarget);S=u.loop?Pr(S,y+1):S.slice(y+1)}setTimeout(()=>St(S))}})})})});wt.displayName=kt;var Cr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rr(i,e){return e!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function Tr(i,e,t){const s=Rr(i.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Cr[s]}function St(i,e=!1){const t=document.activeElement;for(const s of i)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function Pr(i,e){return i.map((t,s)=>i[(e+s)%i.length])}var Or=jt,Lr=wt;function Er(i){const e=b.useRef({value:i,previous:i});return b.useMemo(()=>(e.current.value!==i&&(e.current.previous=e.current.value,e.current.value=i),e.current.previous),[i])}var Ge="Radio",[Fr,Nt]=Re(Ge),[Ir,$r]=Fr(Ge),_t=b.forwardRef((i,e)=>{const{__scopeRadio:t,name:s,checked:n=!1,required:a,disabled:o,value:l="on",onCheck:c,form:u,...p}=i,[h,d]=b.useState(null),f=me(e,x=>d(x)),m=b.useRef(!1),g=h?u||!!h.closest("form"):!0;return r.jsxs(Ir,{scope:t,checked:n,disabled:o,children:[r.jsx(ge.button,{type:"button",role:"radio","aria-checked":n,"data-state":Tt(n),"data-disabled":o?"":void 0,disabled:o,value:l,...p,ref:f,onClick:Z(i.onClick,x=>{n||c==null||c(),g&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),g&&r.jsx(Ar,{control:h,bubbles:!m.current,name:s,value:l,checked:n,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});_t.displayName=Ge;var Ct="RadioIndicator",Rt=b.forwardRef((i,e)=>{const{__scopeRadio:t,forceMount:s,...n}=i,a=$r(Ct,t);return r.jsx(Zt,{present:s||a.checked,children:r.jsx(ge.span,{"data-state":Tt(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:e})})});Rt.displayName=Ct;var Ar=i=>{const{control:e,checked:t,bubbles:s=!0,...n}=i,a=b.useRef(null),o=Er(t),l=es(e);return b.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&h){const d=new Event("click",{bubbles:s});h.call(c,t),c.dispatchEvent(d)}},[o,t,s]),r.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:a,style:{...i.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Tt(i){return i?"checked":"unchecked"}var Dr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ue="RadioGroup",[Br,ya]=Re(Ue,[yt,Nt]),Pt=yt(),Ot=Nt(),[Mr,Vr]=Br(Ue),Lt=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:n,value:a,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:p=!0,onValueChange:h,...d}=i,f=Pt(t),m=bt(u),[g,x]=dt({prop:a,defaultProp:n,onChange:h});return r.jsx(Mr,{scope:t,name:s,required:o,disabled:l,value:g,onValueChange:x,children:r.jsx(Or,{asChild:!0,...f,orientation:c,dir:m,loop:p,children:r.jsx(ge.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:m,...d,ref:e})})})});Lt.displayName=Ue;var Et="RadioGroupItem",Ft=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,disabled:s,...n}=i,a=Vr(Et,t),o=a.disabled||s,l=Pt(t),c=Ot(t),u=b.useRef(null),p=me(e,u),h=a.value===n.value,d=b.useRef(!1);return b.useEffect(()=>{const f=g=>{Dr.includes(g.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",m)}},[]),r.jsx(Lr,{asChild:!0,...l,focusable:!o,active:h,children:r.jsx(_t,{disabled:o,required:a.required,checked:h,...c,...n,name:a.name,ref:p,onCheck:()=>a.onValueChange(n.value),onKeyDown:Z(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:Z(n.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Ft.displayName=Et;var Kr="RadioGroupIndicator",Gr=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,...s}=i,n=Ot(t);return r.jsx(Rt,{...n,...s,ref:e})});Gr.displayName=Kr;var It=Lt,$t=Ft;const fe=b.forwardRef(({className:i,...e},t)=>r.jsx(It,{className:Q("grid gap-2",i),...e,ref:t}));fe.displayName=It.displayName;const X=b.forwardRef(({className:i,...e},t)=>r.jsx($t,{ref:t,className:Q(e.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",i),...e}));X.displayName=$t.displayName;const Y=[{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:"Email"},{label:"Phone number"},{label:"Website"}]}],ee=[{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)"}]}],H=[{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"}],K=i=>{b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[i])},Ur=({handleNext:i})=>{K();const{control:e,formState:t}=De(),s=E(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[r.jsx("h2",{className:"h2 mb-8",children:Y[k(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(we,{defaultValue:1,control:e,name:"type",render:({field:n})=>r.jsxs(B,{className:"space-y-3",children:[r.jsx(M,{className:"text-xl",children:s===te.RU?"Тип:":"Type:"}),r.jsx(V,{children:r.jsxs(fe,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4",children:[r.jsxs(B,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2B",checked:n.value==="B2B"})}),r.jsx(M,{className:"text-base",children:"B2B"})]}),r.jsxs(B,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2G",checked:n.value==="B2G"})}),r.jsx(M,{className:"text-base",children:"B2G"})]})]})})]})}),r.jsx(w,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:Y[k(s)].data[0].label}),r.jsx(w,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:Y[k(s)].data[1].label}),r.jsx(w,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:Y[k(s)].data[2].label}),r.jsx(w,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:Y[k(s)].data[3].label}),r.jsx(w,{control:e,name:"country",error:t.errors.country,placeholder:"",label:Y[k(s)].data[4].label}),r.jsx(w,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:Y[k(s)].data[5].label}),r.jsx(w,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:Y[k(s)].data[6].label}),r.jsx(w,{control:e,name:"website",placeholder:"",label:Y[k(s)].data[7].label})]}),r.jsx(q,{variant:"secondary",type:"button",onClick:i,className:"w-full mt-10",children:s===te.RU?"Далее":"Next"})]})},zr=({handleNext:i,handlePrev:e})=>{K();const t=E(a=>a.lang),{control:s,formState:n}=De();return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[r.jsx("h2",{className:"h2 mb-8",children:ee[k(t)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(w,{control:s,name:"meeting_objective",error:n.errors.meeting_objective,placeholder:"",label:ee[k(t)].data[0].label}),r.jsx(w,{control:s,name:"proposal_description",error:n.errors.proposal_description,placeholder:"",label:ee[k(t)].data[1].label}),r.jsx(w,{control:s,name:"government_agency",error:n.errors.government_agency,placeholder:"",label:ee[k(t)].data[2].label}),r.jsx("h2",{className:"h2 mt-4",children:ee[k(t)].secondH2}),r.jsx(w,{control:s,name:"sector_industry",error:n.errors.sector_industry,placeholder:"",label:ee[k(t)].data[3].label}),r.jsx(w,{control:s,name:"key_services",error:n.errors.key_services,placeholder:"",label:ee[k(t)].data[4].label}),r.jsx(w,{control:s,name:"government_experience",error:n.errors.government_experience,placeholder:"",label:ee[k(t)].data[5].label})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(q,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:t===te.RU?"Вернуться назад":"Back"}),r.jsx(q,{variant:"secondary",type:"button",onClick:i,className:"w-full",children:t===te.RU?"Далее":"Next"})]})]})},Hr=({handlePrev:i})=>{K();const{control:e,formState:t}=De(),s=E(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[r.jsx("h2",{className:"h2 mb-8",children:H[k(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx(w,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:H[k(s)].data[0].label}),r.jsx(w,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:H[k(s)].data[1].label}),r.jsx(w,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:H[k(s)].data[2].label}),r.jsx(w,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:H[k(s)].data[3].label})]}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"h2 mt-10",children:H[k(s)].secondH2}),r.jsx("h5",{className:"text-on_surface_v",children:H[k(s)].subtitle})]}),r.jsx(w,{control:e,name:"company_profile",label:H[k(s)].data[4].label,type:"file",textDark:!0}),r.jsx(w,{control:e,name:"proposal_presentation",label:H[k(s)].data[5].label,type:"file",textDark:!0}),r.jsx(w,{control:e,name:"relevant_certification",label:H[k(s)].data[6].label,type:"file",textDark:!0})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(q,{type:"button",onClick:i,variant:"outline",className:"text-on_surface",children:s===te.RU?"Вернуться назад":"Back"}),r.jsx(q,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?r.jsx(Be,{className:"animate-spin"}):H[k(s)].button})]})]})},qr=({stage:i,setStage:e,success:t,setSuccess:s})=>{const n=Te({resolver:Pe(xr),defaultValues:br,mode:"onChange"}),a=u=>{switch(u){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[]}},o=async()=>{const u=a(i);await n.trigger(u)&&e(h=>h+1)},l=()=>e(u=>u-1),c=async u=>{try{const p=new FormData;Object.entries(u).forEach(([d,f])=>{f instanceof File?(console.log(`Добавляем файл: ${d}`,f),p.append(d,f)):f!==void 0&&(console.log(`Добавляем поле: ${d}`,f),p.append(d,f))}),(await ts.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",p,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(p){console.error("Ошибка при отправке B2B формы:",p)}};return r.jsx(Oe,{...n,children:r.jsx("form",{onSubmit:n.handleSubmit(c),children:r.jsxs("div",{className:"relative",children:[r.jsx(oe,{children:i===1&&r.jsx(Ur,{handleNext:o})}),r.jsx(oe,{children:i===2&&r.jsx(zr,{handleNext:o,handlePrev:l})}),r.jsx(oe,{children:i===3&&t===!1&&r.jsx(Hr,{handlePrev:l})}),t&&r.jsx(Me,{})]})})})};function Jr(){K();const i=E(a=>a.lang),[e,t]=b.useState(1),[s,n]=b.useState(!1);return r.jsxs("div",{className:"pb-[120px]",children:[r.jsx(be,{title:i===te.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!s&&e!==0&&r.jsx(ss,{stage:e}),r.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:r.jsx(qr,{success:s,setSuccess:n,stage:e,setStage:t})})]})}function Qr(){K();const i=E(e=>e.lang);return r.jsxs("div",{className:Q(""),children:[r.jsx(be,{title:i===te.RU?"О выставке":"About exhibition"}),r.jsx(ns,{}),r.jsx(rs,{}),r.jsx(as,{}),r.jsx(is,{}),r.jsx(os,{})]})}const Wr=v.object({company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),Yr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},T=[{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",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];function Xr(){K();const i=E(o=>o.lang),[e,t]=b.useState(!1),s=Te({resolver:Pe(Wr),defaultValues:Yr}),n=async o=>{try{await ls(o)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:a}=s.formState;return r.jsxs("div",{children:[r.jsx(be,{title:i===te.RU?"Стать спонсором":"Become a sponsor"}),r.jsx(oe,{children:!e&&r.jsx(Oe,{...s,children:r.jsxs(xe.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(n),children:[r.jsx(w,{label:T[k(i)].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(w,{label:T[k(i)].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(w,{label:T[k(i)].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(w,{label:T[k(i)].label_4,name:"country",control:s.control,error:a.country}),r.jsx(w,{label:T[k(i)].label_5,name:"email",control:s.control,error:a.email}),r.jsx(w,{label:T[k(i)].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(w,{label:T[k(i)].label_7,name:"website",control:s.control}),r.jsx(we,{control:s.control,name:"visa_support",render:({field:o})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(M,{className:"text-xl",children:T[k(i)].visa}),r.jsx(V,{children:r.jsxs(fe,{onValueChange:o.onChange,defaultValue:o.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:o.value==="yes"})}),r.jsx(M,{className:"text-base",children:T[k(i)].visa_radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:o.value==="no"})}),r.jsx(M,{className:"text-base",children:T[k(i)].visa_radio_2})]})]})})]})}),r.jsx(q,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):T[k(i)].button})]})})}),e&&r.jsx(Me,{delay:.3})]})}const Zr=v.object({name:v.string().min(2,"error"),email:v.string().email(),phone:v.string().min(8,"error"),company:v.string().min(2,"error"),msg:v.string().min(5,"error")}),ea={name:"",email:"",phone:"",company:"",msg:""},ta=({className:i})=>{const{t:e}=ce("contacts"),[t,s]=b.useState(!1),n=Te({resolver:Pe(Zr),defaultValues:ea});async function a(l){try{const c=await us(l);s(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=n.formState;return r.jsx("div",{className:Q("bg-primary rounded-[8px] py-8 px-6 ",i),children:r.jsx(Oe,{...n,children:r.jsxs("form",{onSubmit:n.handleSubmit(a),children:[r.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(w,{onPrimary:!0,name:"name",control:n.control,label:e("name"),error:o.name}),r.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[r.jsx(w,{onPrimary:!0,name:"email",control:n.control,label:"Email",error:o.email}),r.jsx(w,{onPrimary:!0,name:"phone",control:n.control,label:e("phone"),error:o.phone})]}),r.jsx(w,{onPrimary:!0,name:"company",control:n.control,label:e("company"),error:o.name}),r.jsx(w,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:n.control,error:o.msg}),r.jsx(q,{disabled:n.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):n.formState.isSubmitting?r.jsx(cs,{className:"animate-spin text-white"}):e("button")})]})]})})})};function sa(){K();const{t:i}=ce("contacts");return r.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[r.jsx(se,{children:r.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[r.jsx(ta,{}),r.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[r.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:i("title_2")}),r.jsxs("div",{className:"flex flex-col gap-20",children:[r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/map.svg",alt:"address"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("address")}),r.jsx("address",{className:"text-base normal not-italic",children:i("venue")})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("phone")}),r.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/email.svg",alt:"email"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),r.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),r.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:r.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"})})]})}const na=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],ra=({className:i})=>{var S,y,_,C,F;const[e,t]=b.useState(0),{data:s,isPending:n,status:a}=ds(1),{data:o}=ps(1),[l,c]=b.useState(!1),[u,p]=b.useState({id:0,type:"photo"}),h=E(P=>P.lang),d=({id:P,type:R})=>{c(!0),p({id:P,type:R})},{t:f}=ce("main"),[m,g]=b.useState(!1),x=P=>P===0&&n?r.jsx(le,{}):r.jsx(le,{});return console.log(a),r.jsxs(r.Fragment,{children:[r.jsx(oe,{children:l&&r.jsx(ms,{activeItem:u,setActiveItem:p,setIsOpen:c})}),r.jsxs("section",{className:Q("md:mb-[120px] mb-20",i),children:[r.jsx(be,{title:h==="ru"?"Моменты":"Moments"}),r.jsx(se,{className:"page-bottom md:pt-10 pt-6",children:r.jsxs("div",{className:"flex justify-center flex-col",children:[r.jsx(pt,{state:e,setState:t,data:na,className:"mb-6"}),e===0&&n?x(e):r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"2025"}),r.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(y=(S=s==null?void 0:s.photos)==null?void 0:S.slice(0,m?1e3:16))==null?void 0:y.map((P,R)=>{var N,G;return r.jsx("div",{onClick:()=>d({id:R,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:r.jsx("img",{src:((N=P==null?void 0:P.photo)==null?void 0:N.path)??"",alt:((G=P==null?void 0:P.photo)==null?void 0:G.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},R)}):(_=o==null?void 0:o.videos)==null?void 0:_.map((P,R)=>{var N;return r.jsxs("div",{onClick:()=>d({id:R,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[r.jsx(hs,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),r.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),r.jsx("img",{src:((N=P==null?void 0:P.video_photo)==null?void 0:N.path)??"",className:"size-full object-cover"})]},R)})})]}),((C=s==null?void 0:s.photos)==null?void 0:C.length)&&((F=s==null?void 0:s.photos)==null?void 0:F.length)>16&&!m&&r.jsx(q,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},aa=(i,e)=>{const{data:t,isPending:s}=Ve({queryKey:["news-inner",i,e],queryFn:()=>fs(i,e),select:({data:n})=>n.data});return{data:t,isPending:s}};function ia(){var o;const{id:i}=Cs(),e=E(l=>l.lang),t=Number(i);K(t);const{data:s,isPending:n}=aa(t,e),{data:a}=mt(e);return n?r.jsx(le,{}):r.jsxs(se,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[r.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),r.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),r.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:r.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),r.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),r.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),r.jsxs("section",{children:[r.jsx("h2",{className:"h2 mb-6",children:e==="ru"?"Читайте также:":"Read more:"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:a==null?void 0:a.filter(l=>l.id!==t).slice(0,3).map(l=>b.createElement(ht,{...l,key:l.title}))})]})]})}function oa(){K();const i=E(s=>s.lang),{data:e,isPending:t}=mt(i);return t?r.jsx(le,{}):r.jsxs(se,{className:"page-padding",children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:i==="ru"?"Новости":"News"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>b.createElement(ht,{...s,key:s.title}))})]})}const la=()=>{const i=E(s=>s.lang),{data:e,isPending:t}=Ve({queryKey:["participants",i],queryFn:()=>gs(i),select:({data:s})=>s.data});return{data:e,isPending:t}},ca=({className:i})=>{var u,p,h,d,f;K();const e=E(m=>m.lang),{data:t,isPending:s}=la(),n={company:e==="ru"?"Название компании":"Company name",country:e==="ru"?"Страна":"Country",industry:e==="ru"?"Сфера деятельности":"Industry"},[a,o]=b.useState(0),l=(h=t==null?void 0:t[0])==null?void 0:h.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(p=t==null?void 0:t[2])==null?void 0:p.participants),c=t==null?void 0:t.filter(m=>a===1?m.id===3:a===2?m.id===1:m.id===2);return console.log(a),r.jsx(se,{children:r.jsxs("section",{className:Q("page-padding overflow-x-hidden",i),children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:e==="ru"?"Список участников":"List of participants"}),r.jsx(pt,{state:a,setState:o,className:"mb-6 md:w-fit"}),r.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[r.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[r.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:n==null?void 0:n.company}),r.jsx("h3",{className:"flex-[0_0_19.80%]",children:n==null?void 0:n.country}),r.jsx("h3",{className:"flex-[0_0_34.65%]",children:n==null?void 0:n.industry})]}),s?r.jsx(le,{}):a===0?l==null?void 0:l.map((m,g,x)=>r.jsx(Qe,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}})):(f=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:f.map((m,g,x)=>r.jsx(Qe,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}}))]})]})})},ua=v.object({space_package:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.preprocess(i=>Number(i),v.number().min(1,"Укажите количество участников")),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),da={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function pa(){const i=E(l=>l.lang),[e,t]=b.useState(!1),s=Te({resolver:Pe(ua),defaultValues:da}),n=async l=>{await xs(l)&&t(!0)};b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:a}=s.formState,o=k(i);return r.jsxs("div",{children:[r.jsx(be,{title:T[k(i)].cover}),r.jsx(oe,{children:!e&&r.jsx(Oe,{...s,children:r.jsxs(xe.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:s.handleSubmit(n),children:[r.jsx(we,{control:s.control,name:"space_package",render:({field:l})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(M,{className:"text-xl",children:T[o].h2}),r.jsx(V,{children:r.jsxs(fe,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"space",checked:l.value==="space"})}),r.jsx(M,{className:"text-base",children:T[o].radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"package",checked:l.value==="package"})}),r.jsx(M,{className:"text-base",children:T[o].radio_2})]})]})})]})}),r.jsx(w,{label:T[o].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(w,{label:T[o].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(w,{label:T[o].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(w,{label:T[o].number_of_participants,type:"number",name:"participants_number",control:s.control,error:a.participants_number}),r.jsx(w,{label:T[o].label_4,name:"country",control:s.control,error:a.country}),r.jsx(w,{label:T[o].label_5,name:"email",control:s.control,error:a.email}),r.jsx(w,{label:T[o].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(w,{label:T[o].label_7,name:"website",control:s.control}),r.jsx(we,{control:s.control,name:"visa_support",render:({field:l})=>r.jsxs(B,{className:"space-y-5",children:[r.jsx(M,{className:"text-xl",children:T[o].visa}),r.jsx(V,{children:r.jsxs(fe,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(B,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:l.value==="yes"})}),r.jsx(M,{className:"text-base",children:T[o].visa_radio})]}),r.jsxs(B,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:l.value==="no"})}),r.jsx(M,{className:"text-base",children:T[o].visa_radio_2})]})]})})]})}),r.jsx(q,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):T[o].button})]})})}),e&&r.jsx(Me,{delay:.3})]})}const At=()=>{var m;const{t:i}=ce("main"),e=E(g=>g.lang),{pathname:t}=Ke(),[s]=ft({loop:!0},[bs({delay:5e3,stopOnInteraction:!1})]),{title:n,texts:a,button:o,button2:l}=i("impressions.hero",{returnObjects:!0}),{title2:c,texts2:u}=i("impressions.hero",{returnObjects:!0}),p=(g,x)=>t==="/impressions"?g:x,h=(g,x)=>t==="/impressions"?g:x,d={en:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"],ru:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg"]},f=()=>e==="ru"?d.ru:d.en;return r.jsxs("section",{className:"",children:[t==="/impressions-tm"?r.jsx("div",{ref:s,className:"embla overflow-hidden",children:r.jsx("div",{className:"flex",children:f().map((g,x)=>r.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):r.jsx("img",{src:i("impressions.banner")}),r.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:"Модные показы"}),r.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:r.jsxs(se,{className:"md:py-20 py-10",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:p(n,c)}),r.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(m=h(a,u))==null?void 0:m.map((g,x)=>r.jsx("p",{className:"md:text-lg !normal",children:g},x))}),r.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[r.jsx(We,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:r.jsx(q,{size:"sm",className:"w-full",children:o})}),r.jsx(We,{to:e==="ru"?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_en.pdf",target:"_blank",className:"w-full",children:r.jsx(q,{size:"sm",className:"w-full",children:l})})]})]})})]})},Dt=()=>{const{t:i}=ce("main"),{pathname:e}=Ke(),{videosTitle:t,videosTitle2:s}=i("impressions",{returnObjects:!0}),n=()=>e!=="/impressions";return r.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:r.jsxs(se,{children:[r.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:n()?t:s}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 mx-0 lg:mx-48 gap-4 text-white overflow-hidden h-auto md:h-[497px]",children:r.jsx("div",{className:"bg-gray_10 p-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:r.jsx("div",{className:"maxh-[453px]",children:r.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})})})})]})})},ma=i=>{const e=E(n=>n.lang),{data:t,isPending:s}=Ve({queryKey:["designers",e],queryFn:()=>vs(e,i),select:({data:n})=>n.data});return{data:t,isPending:s}},Bt=()=>{const{pathname:i}=Ke(),e=()=>i!=="/impressions",{data:t,isPending:s}=ma(e()?2:1),[n,a]=ft({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,l]=b.useState(0),{t:c}=ce("main"),[u,p]=b.useState(!1),[h,d]=b.useState(!0),f=b.useCallback(_=>{a&&a.scrollTo(_)},[a]);b.useEffect(()=>{if(!a)return;const _=()=>{l(a==null?void 0:a.selectedScrollSnap()),p(a.canScrollPrev()),d(a.canScrollNext())};return a.on("select",_),()=>{a.off("select",_)}},[a]);const{title:m,text:g,title2:x,text2:S}=c("impressions.designers",{returnObjects:!0}),y=[...(t==null?void 0:t.designers)??[]].sort((_,C)=>(_==null?void 0:_.order_id)-(C==null?void 0:C.order_id));return console.log(y),r.jsx("section",{className:"md:py-20 py-10",children:r.jsxs(se,{className:"flex flex-col md:gap-10 gap-6",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?m:x}),r.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:S}),r.jsxs("div",{ref:n,className:"embla",children:[r.jsx("div",{className:"flex embla__container",children:s?r.jsx(le,{}):y==null?void 0:y.map((_,C)=>r.jsx(ys,{..._,className:"embla__slide flex-[0_0_714px] mr-4"},C))}),r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[r.jsx("button",{onClick:()=>a==null?void 0:a.scrollPrev(),className:Q("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:r.jsx(js,{})}),r.jsx("div",{className:"flex items-center gap-2",children:[...Array(y!=null&&y.length?Math.round((y==null?void 0:y.length)/2):5)].map((_,C)=>r.jsx("div",{onClick:()=>f==null?void 0:f(C),className:Q("w-5 h-1 rounded-[2px] cursor-pointer",o===C?"bg-teritary":"bg-on_surface_v")},C))}),r.jsx("button",{onClick:()=>a==null?void 0:a.scrollNext(),className:Q("size-12 flex items-center justify-center",!h&&"opacity-20 pointer-events-none"),children:r.jsx(ks,{})})]})]})]})})};function ha(){return K(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(At,{}),r.jsx(Dt,{}),r.jsx(Bt,{})]})}function fa(){return K(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(At,{}),r.jsx(Dt,{}),r.jsx(Bt,{})]})}const D=({className:i})=>r.jsx("div",{className:Q("container py-32",i),children:r.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),ga=Rs([{element:r.jsx(fr,{}),path:"/",children:[{element:r.jsx(gr,{}),path:"",errorElement:r.jsx(D,{})},{element:r.jsx(Qr,{}),path:"about",errorElement:r.jsx(D,{})},{element:r.jsx(Jr,{}),path:"B2B-B2G",errorElement:r.jsx(D,{})},{element:r.jsx(Xr,{}),path:"become-sponsor",errorElement:r.jsx(D,{})},{element:r.jsx(pa,{}),path:"stend-form",errorElement:r.jsx(D,{})},{element:r.jsx(sa,{}),path:"contacts",errorElement:r.jsx(D,{})},{element:r.jsx(oa,{}),path:"news",errorElement:r.jsx(D,{})},{element:r.jsx(ia,{}),path:"news/:id",errorElement:r.jsx(D,{})},{element:r.jsx(ca,{}),path:"participants",errorElement:r.jsx(D,{})},{element:r.jsx(ra,{}),path:"media",errorElement:r.jsx(D,{})},{element:r.jsx(ha,{}),path:"impressions",errorElement:r.jsx(D,{})},{element:r.jsx(fa,{}),path:"impressions-tm",errorElement:r.jsx(D,{})}]}]),xa=new ws;Os.createRoot(document.getElementById("root")).render(r.jsx(b.StrictMode,{children:r.jsx(Ss,{client:xa,children:r.jsx(Ts,{router:ga})})})); diff --git a/dist/assets/index-DszKizJh.css b/dist/assets/index-DszKizJh.css new file mode 100644 index 0000000..1702b54 --- /dev/null +++ b/dist/assets/index-DszKizJh.css @@ -0,0 +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}@font-face{font-family:Gilroy-Black;src:local("Gilroy-Black"),url(../fonts/Gilroy-Black.woff2) format("woff2");font-weight:900}*,: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))}.c-scrollbar .c-scrollbar_thumb{background-color:#99101d!important}.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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.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}.-left-4{left:-1rem}.-right-12{right:-3rem}.-top-36{top:-9rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-28{bottom:7rem}.left-0{left:0}.left-1\/2{left:50%}.left-1\/3{left:33.333333%}.left-10{left:2.5rem}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.left-\[50\%\]{left:50%}.right-0{right:0}.right-10{right:2.5rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-1\/2{top:50%}.top-1\/3{top:33.333333%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-8{top:2rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[55\%\]{top:55%}.top-\[60\%\]{top:60%}.top-full{top:100%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[200\]{z-index:200}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.float-left{float:left}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:1rem;margin-right:1rem}.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-2\.5{margin-bottom:.625rem}.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}.mb-\[60px\]{margin-bottom:60px}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-1\.5{margin-top:.375rem}.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-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\[70px\]{width:70px;height:70px}.size-\[88px\]{width:88px;height:88px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.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-3{height:.75rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[116px\]{height:116px}.h-\[124px\]{height:124px}.h-\[128px\]{height:128px}.h-\[155px\]{height:155px}.h-\[160px\]{height:160px}.h-\[220px\]{height:220px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-\[316px\]{height:316px}.h-\[326px\]{height:326px}.h-\[345px\]{height:345px}.h-\[350px\]{height:350px}.h-\[3px\]{height:3px}.h-\[400px\]{height:400px}.h-\[40vh\]{height:40vh}.h-\[52px\]{height:52px}.h-\[59px\]{height:59px}.h-\[80vh\]{height:80vh}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[100vh\]{max-height:100vh}.max-h-\[40vh\]{max-height:40vh}.max-h-\[610px\]{max-height:610px}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[128px\]{min-height:128px}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.\!w-full{width:100%!important}.w-0{width:0px}.w-1\/2{width:50%}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[288px\]{width:288px}.w-\[300px\]{width:300px}.w-\[336px\]{width:336px}.w-\[70\%\]{width:70%}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[392px\]{max-width:392px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.max-w-\[888px\]{max-width:888px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\[0_0_100\%\]{flex:0 0 100%}.flex-\[0_0_16px\]{flex:0 0 16px}.flex-\[0_0_19\.80\%\]{flex:0 0 19.8%}.flex-\[0_0_27\%\]{flex:0 0 27%}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_34\.65\%\]{flex:0 0 34.65%}.flex-\[0_0_44\%\]{flex:0 0 44%}.flex-\[0_0_45\.54\%\]{flex:0 0 45.54%}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-\[0_0_70\%\]{flex:0 0 70%}.flex-\[0_0_714px\]{flex:0 0 714px}.flex-\[0_0_80\%\]{flex:0 0 80%}.flex-\[0_0_88px\]{flex:0 0 88px}.flex-\[0_0_90px\]{flex:0 0 90px}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-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))}.translate-x-\[-50\%\]{--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-\[-50\%\]{--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))}.rotate-180{--tw-rotate: 180deg;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))}.rotate-45{--tw-rotate: 45deg;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))}.scale-\[0\.7\]{--tw-scale-x: .7;--tw-scale-y: .7;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}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.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}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.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-2\.5{gap:.625rem}.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-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.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-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * 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-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.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-\[2px\]{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:calc(var(--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-gray_09{--tw-border-opacity: 1;border-color:rgb(89 80 81 / 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-outline_v{--tw-border-opacity: 1;border-color:rgb(208 211 216 / 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-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#2C57A752\]\/\[32\%\]{background-color:#2c57a752}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#E0E6EB\]{--tw-bg-opacity: 1;background-color:rgb(224 230 235 / var(--tw-bg-opacity, 1))}.bg-\[\#E7E5E5\]{--tw-bg-opacity: 1;background-color:rgb(231 229 229 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-\[\#f4f4f4\]{--tw-bg-opacity: 1;background-color:rgb(244 244 244 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-black\/90{background-color:#000000e6}.bg-gray_10{--tw-bg-opacity: 1;background-color:rgb(67 60 61 / var(--tw-bg-opacity, 1))}.bg-on_surface_v{--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.bg-primary{--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(238 237 244 / 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_08{--tw-bg-opacity: 1;background-color:rgb(212 132 0 / 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-\[url\(\'\/impressions-bg\.png\'\)\]{background-image:url(/impressions-bg.png)}.bg-\[url\(\'\/impressions\/card-bg\.png\'\)\]{background-image:url(/impressions/card-bg.png)}.bg-\[url\(\'\/impressions\/videos-block-bg\.png\'\)\]{background-image:url(/impressions/videos-block-bg.png)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,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-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 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)}.to-surface_high{--tw-gradient-to: #E8E7EF var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-no-repeat{background-repeat:no-repeat}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-top{-o-object-position:top;object-position:top}.p-1{padding:.25rem}.p-2{padding:.5rem}.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-20{padding-top:5rem;padding-bottom:5rem}.py-32{padding-top:8rem;padding-bottom:8rem}.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-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-40{padding-bottom:10rem}.pb-\[120px\]{padding-bottom:120px}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-4{padding-right:1rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-20{padding-top:5rem}.pt-6{padding-top:1.5rem}.\!text-left{text-align:left!important}.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-5xl{font-size:3rem;line-height:1}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.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}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-10{line-height:2.5rem}.leading-\[120\%\]{line-height:120%}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-on_surface{--tw-text-opacity: 1 !important;color:rgb(44 40 40 / 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-\[\#FACFAE\]{--tw-text-opacity: 1;color:rgb(250 207 174 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / 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-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-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.container{margin-left:auto;margin-right:auto;width:100%;max-width:1240px;padding-left:1rem;padding-right:1rem}.\!normal,.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.black{font-family:Gilroy-Black}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:24px;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:32px}}.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))}.news-inner img{height:300px;-o-object-fit:cover;object-fit:cover}@media (min-width: 768px){.news-inner img{height:500px}}.news-inner a{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1));text-decoration-line:underline}.page-padding{padding-top:2.5rem;padding-bottom:5rem}@media (min-width: 768px){.page-padding{padding-top:5rem;padding-bottom:120px}}.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\:absolute:after{content:var(--tw-content);position:absolute}.after\:bottom-0:after{content:var(--tw-content);bottom:0}.after\:left-0:after{content:var(--tw-content);left:0}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:rounded:after{content:var(--tw-content);border-radius:.25rem}.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}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:opacity-100:after{content:var(--tw-content);opacity:1}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.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))}.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}.group:hover .group-hover\:scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.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-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{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-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{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-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.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-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.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\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.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-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.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\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;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))}@media (min-width: 640px){.sm\:bottom-12{bottom:3rem}.sm\:flex{display:flex}.sm\:size-\[128px\]{width:128px;height:128px}.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_128px\]{flex:0 0 128px}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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\:rounded-lg{border-radius:var(--radius)}.sm\:p-0{padding:0}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 768px){.md\:absolute{position:absolute}.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-10{margin-bottom:2.5rem}.md\:mb-20{margin-bottom:5rem}.md\:mb-8{margin-bottom:2rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:ml-1{margin-left:.25rem}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:\!flex{display:flex!important}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-20{width:5rem;height:5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[216px\]{height:216px}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:h-\[480px\]{height:480px}.md\:h-\[497px\]{height:497px}.md\:h-\[500px\]{height:500px}.md\:\!w-\[688px\]{width:688px!important}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,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\:gap-10{gap:2.5rem}.md\:gap-6{gap:1.5rem}.md\:p-10{padding:2.5rem}.md\:p-6{padding:1.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\:pb-\[120px\]{padding-bottom:120px}.md\:pt-10{padding-top:2.5rem}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-\[32px\]{font-size:32px}.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\:right-\[15\%\]{right:15%}.lg\:mx-48{margin-left:12rem;margin-right:12rem}.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:size-\[140px\]{width:140px;height:140px}.lg\:h-\[600px\]{height:600px}.lg\:h-\[700px\]{height:700px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:w-1\/2{width:50%}.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\:grid-cols-6{grid-template-columns:repeat(6,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}.lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\:gap-y-4{row-gap:1rem}.lg\:px-28{padding-left:7rem;padding-right:7rem}.lg\:px-\[20\%\]{padding-left:20%;padding-right:20%}}@media (min-width: 1280px){.xl\:left-full{left:100%}.xl\:right-\[13\%\]{right:13%}.xl\:top-0{top:0}.xl\:mb-8{margin-bottom:2rem}.xl\:mr-20{margin-right:5rem}.xl\:hidden{display:none}.xl\:\!w-\[1224px\]{width:1224px!important}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}@media (min-width: 1536px){.\32xl\:right-\[10\%\]{right:10%}.\32xl\:h-\[50vh\]{height:50vh}.\32xl\:w-\[40\%\]{width:40%}}.\[\&_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/ui-library-Kiotq6MA.js b/dist/assets/ui-library-_5RJ9fWZ.js similarity index 51% rename from dist/assets/ui-library-Kiotq6MA.js rename to dist/assets/ui-library-_5RJ9fWZ.js index 957338a..7dea35f 100644 --- a/dist/assets/ui-library-Kiotq6MA.js +++ b/dist/assets/ui-library-_5RJ9fWZ.js @@ -1,4 +1,4 @@ -var Gu=e=>{throw TypeError(e)};var xa=(e,t,n)=>t.has(e)||Gu("Cannot "+n);var T=(e,t,n)=>(xa(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Gu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,s)=>(xa(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(xa(e,t,"access private method"),n);var Bi=(e,t,n,s)=>({set _(r){K(e,t,r,n)},get _(){return T(e,t,s)}});import{r as _x,a as g,R as dl,b as fl,c as Kh,L as Ce,d as $i,e as de}from"./react-vendor-CE_Ks92h.js";var ba={exports:{}},Ar={};/** +var Ku=e=>{throw TypeError(e)};var va=(e,t,n)=>t.has(e)||Ku("Cannot "+n);var T=(e,t,n)=>(va(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Ku("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,s)=>(va(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(va(e,t,"access private method"),n);var Bi=(e,t,n,s)=>({set _(r){K(e,t,r,n)},get _(){return T(e,t,s)}});import{r as Sx,a as g,R as ul,b as dl,c as Zh,L as Ce,d as $i,e as de}from"./react-vendor-CE_Ks92h.js";var xa={exports:{}},Ar={};/** * @license React * react-jsx-runtime.production.min.js * @@ -6,12 +6,12 @@ var Gu=e=>{throw TypeError(e)};var xa=(e,t,n)=>t.has(e)||Gu("Cannot "+n);var T=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qu;function Cx(){if(Qu)return Ar;Qu=1;var e=_x(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=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={},h=null,y=null;l!==void 0&&(h=""+l),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(u in c)s.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:h,ref:y,props:d,_owner:r.current}}return Ar.Fragment=n,Ar.jsx=o,Ar.jsxs=o,Ar}var Xu;function Ex(){return Xu||(Xu=1,ba.exports=Cx()),ba.exports}var f=Ex();function yt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Yu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gh(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Yu(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:o,...a}=i,c=g.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function hl(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,Ax(r,...t)]}function Ax(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var xs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Rx=dl.useId||(()=>{}),Px=0;function no(e){const[t,n]=g.useState(Rx());return xs(()=>{n(s=>s??String(Px++))},[e]),t?`radix-${t}`:""}function Bn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Qh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=Nx({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=Bn(n),c=g.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function Nx({defaultProp:e,onChange:t}){const n=g.useState(e),[s]=n,r=g.useRef(s),i=Bn(t);return g.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var gr=g.forwardRef((e,t)=>{const{children:n,...s}=e,r=g.Children.toArray(n),i=r.find(kx);if(i){const o=i.props.children,a=r.map(c=>c===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:c);return f.jsx(ec,{...s,ref:t,children:g.isValidElement(o)?g.cloneElement(o,void 0,a):null})}return f.jsx(ec,{...s,ref:t,children:n})});gr.displayName="Slot";var ec=g.forwardRef((e,t)=>{const{children:n,...s}=e;if(g.isValidElement(n)){const r=Mx(n);return g.cloneElement(n,{...Ox(s,n.props),ref:t?Gh(t,r):r})}return g.Children.count(n)>1?g.Children.only(null):null});ec.displayName="SlotClone";var jx=({children:e})=>f.jsx(f.Fragment,{children:e});function kx(e){return g.isValidElement(e)&&e.type===jx}function Ox(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Mx(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ct=Dx.reduce((e,t)=>{const n=g.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?gr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Lx(e,t){e&&fl.flushSync(()=>e.dispatchEvent(t))}function Ix(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Fx="DismissableLayer",tc="dismissableLayer.update",Vx="dismissableLayer.pointerDownOutside",Bx="dismissableLayer.focusOutside",Ju,Xh=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pl=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(Xh),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=zt(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=zx(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Wx(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Ix(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ju=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ed(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ju)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ed())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(tc,E),()=>document.removeEventListener(tc,E)},[]),f.jsx(ct.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:yt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:yt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:yt(e.onPointerDownCapture,S.onPointerDownCapture)})});pl.displayName=Fx;var $x="DismissableLayerBranch",Ux=g.forwardRef((e,t)=>{const n=g.useContext(Xh),s=g.useRef(null),r=zt(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ct.div,{...e,ref:r})});Ux.displayName=$x;function zx(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Yh(Vx,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Wx(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&Yh(Bx,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function ed(){const e=new CustomEvent(tc);document.dispatchEvent(e)}function Yh(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?Lx(r,i):r.dispatchEvent(i)}var wa="focusScope.autoFocusOnMount",Sa="focusScope.autoFocusOnUnmount",td={bubbles:!1,cancelable:!0},Hx="FocusScope",ml=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=g.useState(null),l=Bn(r),u=Bn(i),d=g.useRef(null),h=zt(t,p=>c(p)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:Pn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Pn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Pn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[s,a,y.paused]),g.useEffect(()=>{if(a){sd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(wa,td);a.addEventListener(wa,l),a.dispatchEvent(x),x.defaultPrevented||(qx(Xx(Jh(a)),{select:!0}),document.activeElement===p&&Pn(a))}return()=>{a.removeEventListener(wa,l),setTimeout(()=>{const x=new CustomEvent(Sa,td);a.addEventListener(Sa,u),a.dispatchEvent(x),x.defaultPrevented||Pn(p??document.body,{select:!0}),a.removeEventListener(Sa,u),sd.remove(y)},0)}}},[a,l,u,y]);const m=g.useCallback(p=>{if(!n&&!s||y.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(v&&x){const b=p.currentTarget,[w,_]=Zx(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&Pn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&Pn(_,{select:!0})):x===b&&p.preventDefault()}},[n,s,y.paused]);return f.jsx(ct.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});ml.displayName=Hx;function qx(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Pn(s,{select:t}),document.activeElement!==n)return}function Zx(e){const t=Jh(e),n=nd(t,e),s=nd(t.reverse(),e);return[n,s]}function Jh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nd(e,t){for(const n of e)if(!Kx(n,{upTo:t}))return n}function Kx(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 Gx(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gx(e)&&t&&e.select()}}var sd=Qx();function Qx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rd(e,t),e.unshift(t)},remove(t){var n;e=rd(e,t),(n=e[0])==null||n.resume()}}}function rd(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Xx(e){return e.filter(t=>t.tagName!=="A")}var Yx="Portal",gl=g.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=g.useState(!1);xs(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Kh.createPortal(f.jsx(ct.div,{...s,ref:t}),o):null});gl.displayName=Yx;function Jx(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var yr=e=>{const{present:t,children:n}=e,s=eb(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=zt(s.ref,tb(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};yr.displayName="Presence";function eb(e){const[t,n]=g.useState(),s=g.useRef({}),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Jx(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Ui(s.current);i.current=a==="mounted"?l:"none"},[a]),xs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,y=Ui(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),xs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ui(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Ui(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function Ui(e){return(e==null?void 0:e.animationName)||"none"}function tb(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _a=0;function ep(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??id()),document.body.insertAdjacentElement("beforeend",e[1]??id()),_a++,()=>{_a===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_a--}},[])}function id(){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 en=function(){return en=Object.assign||function(t){for(var n,s=1,r=arguments.length;s"u")return vb;var t=xb(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},wb=rp(),zs="data-scroll-locked",Sb=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(sb,` { + */var Gu;function _x(){if(Gu)return Ar;Gu=1;var e=Sx(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=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={},h=null,y=null;l!==void 0&&(h=""+l),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(u in c)s.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:h,ref:y,props:d,_owner:r.current}}return Ar.Fragment=n,Ar.jsx=o,Ar.jsxs=o,Ar}var Qu;function Cx(){return Qu||(Qu=1,xa.exports=_x()),xa.exports}var f=Cx();function yt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Xu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kh(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Xu(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:o,...a}=i,c=g.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function fl(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,Tx(r,...t)]}function Tx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var xs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Ax=ul.useId||(()=>{}),Rx=0;function to(e){const[t,n]=g.useState(Ax());return xs(()=>{n(s=>s??String(Rx++))},[e]),t?`radix-${t}`:""}function Bn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Gh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=Px({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=Bn(n),c=g.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function Px({defaultProp:e,onChange:t}){const n=g.useState(e),[s]=n,r=g.useRef(s),i=Bn(t);return g.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var mr=g.forwardRef((e,t)=>{const{children:n,...s}=e,r=g.Children.toArray(n),i=r.find(jx);if(i){const o=i.props.children,a=r.map(c=>c===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:c);return f.jsx(Ja,{...s,ref:t,children:g.isValidElement(o)?g.cloneElement(o,void 0,a):null})}return f.jsx(Ja,{...s,ref:t,children:n})});mr.displayName="Slot";var Ja=g.forwardRef((e,t)=>{const{children:n,...s}=e;if(g.isValidElement(n)){const r=Ox(n);return g.cloneElement(n,{...kx(s,n.props),ref:t?Kh(t,r):r})}return g.Children.count(n)>1?g.Children.only(null):null});Ja.displayName="SlotClone";var Nx=({children:e})=>f.jsx(f.Fragment,{children:e});function jx(e){return g.isValidElement(e)&&e.type===Nx}function kx(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Ox(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ct=Mx.reduce((e,t)=>{const n=g.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Dx(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}function Ix(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Lx="DismissableLayer",ec="dismissableLayer.update",Fx="dismissableLayer.pointerDownOutside",Vx="dismissableLayer.focusOutside",Yu,Qh=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hl=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(Qh),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=zt(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Ux(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=zx(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Ix(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Yu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ju(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Yu)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ju())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(ec,E),()=>document.removeEventListener(ec,E)},[]),f.jsx(ct.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:yt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:yt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:yt(e.onPointerDownCapture,S.onPointerDownCapture)})});hl.displayName=Lx;var Bx="DismissableLayerBranch",$x=g.forwardRef((e,t)=>{const n=g.useContext(Qh),s=g.useRef(null),r=zt(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ct.div,{...e,ref:r})});$x.displayName=Bx;function Ux(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Xh(Fx,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function zx(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&Xh(Vx,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ju(){const e=new CustomEvent(ec);document.dispatchEvent(e)}function Xh(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?Dx(r,i):r.dispatchEvent(i)}var ba="focusScope.autoFocusOnMount",wa="focusScope.autoFocusOnUnmount",ed={bubbles:!1,cancelable:!0},Wx="FocusScope",pl=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=g.useState(null),l=Bn(r),u=Bn(i),d=g.useRef(null),h=zt(t,p=>c(p)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:Pn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Pn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Pn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[s,a,y.paused]),g.useEffect(()=>{if(a){nd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(ba,ed);a.addEventListener(ba,l),a.dispatchEvent(x),x.defaultPrevented||(Hx(Qx(Yh(a)),{select:!0}),document.activeElement===p&&Pn(a))}return()=>{a.removeEventListener(ba,l),setTimeout(()=>{const x=new CustomEvent(wa,ed);a.addEventListener(wa,u),a.dispatchEvent(x),x.defaultPrevented||Pn(p??document.body,{select:!0}),a.removeEventListener(wa,u),nd.remove(y)},0)}}},[a,l,u,y]);const m=g.useCallback(p=>{if(!n&&!s||y.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(v&&x){const b=p.currentTarget,[w,_]=qx(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&Pn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&Pn(_,{select:!0})):x===b&&p.preventDefault()}},[n,s,y.paused]);return f.jsx(ct.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});pl.displayName=Wx;function Hx(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Pn(s,{select:t}),document.activeElement!==n)return}function qx(e){const t=Yh(e),n=td(t,e),s=td(t.reverse(),e);return[n,s]}function Yh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function td(e,t){for(const n of e)if(!Zx(n,{upTo:t}))return n}function Zx(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 Kx(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Kx(e)&&t&&e.select()}}var nd=Gx();function Gx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=sd(e,t),e.unshift(t)},remove(t){var n;e=sd(e,t),(n=e[0])==null||n.resume()}}}function sd(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Qx(e){return e.filter(t=>t.tagName!=="A")}var Xx="Portal",ml=g.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=g.useState(!1);xs(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Zh.createPortal(f.jsx(ct.div,{...s,ref:t}),o):null});ml.displayName=Xx;function Yx(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var gr=e=>{const{present:t,children:n}=e,s=Jx(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=zt(s.ref,eb(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};gr.displayName="Presence";function Jx(e){const[t,n]=g.useState(),s=g.useRef({}),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Yx(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Ui(s.current);i.current=a==="mounted"?l:"none"},[a]),xs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,y=Ui(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),xs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ui(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Ui(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function Ui(e){return(e==null?void 0:e.animationName)||"none"}function eb(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function Jh(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rd()),document.body.insertAdjacentElement("beforeend",e[1]??rd()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function rd(){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 en=function(){return en=Object.assign||function(t){for(var n,s=1,r=arguments.length;s"u")return yb;var t=vb(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},bb=sp(),Us="data-scroll-locked",wb=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(nb,` { overflow: hidden `).concat(s,`; padding-right: `).concat(a,"px ").concat(s,`; } - body[`).concat(zs,`] { + body[`).concat(Us,`] { overflow: hidden `).concat(s,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` @@ -24,118 +24,118 @@ var Gu=e=>{throw TypeError(e)};var xa=(e,t,n)=>t.has(e)||Gu("Cannot "+n);var T=( `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),` } - .`).concat(so,` { + .`).concat(no,` { right: `).concat(a,"px ").concat(s,`; } - .`).concat(ro,` { + .`).concat(so,` { margin-right: `).concat(a,"px ").concat(s,`; } - .`).concat(so," .").concat(so,` { + .`).concat(no," .").concat(no,` { right: 0 `).concat(s,`; } - .`).concat(ro," .").concat(ro,` { + .`).concat(so," .").concat(so,` { margin-right: 0 `).concat(s,`; } - body[`).concat(zs,`] { - `).concat(rb,": ").concat(a,`px; + body[`).concat(Us,`] { + `).concat(sb,": ").concat(a,`px; } -`)},ad=function(){var e=parseInt(document.body.getAttribute(zs)||"0",10);return isFinite(e)?e:0},_b=function(){g.useEffect(function(){return document.body.setAttribute(zs,(ad()+1).toString()),function(){var e=ad()-1;e<=0?document.body.removeAttribute(zs):document.body.setAttribute(zs,e.toString())}},[])},Cb=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;_b();var i=g.useMemo(function(){return bb(r)},[r]);return g.createElement(wb,{styles:Sb(i,!t,r,n?"":"!important")})},nc=!1;if(typeof window<"u")try{var zi=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{nc=!1}var ks=nc?{passive:!1}:!1,Eb=function(e){return e.tagName==="TEXTAREA"},ip=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Eb(e)&&n[t]==="visible")},Tb=function(e){return ip(e,"overflowY")},Ab=function(e){return ip(e,"overflowX")},cd=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=op(e,s);if(r){var i=ap(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},Rb=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},Pb=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},op=function(e,t){return e==="v"?Tb(t):Ab(t)},ap=function(e,t){return e==="v"?Rb(t):Pb(t)},Nb=function(e,t){return e==="h"&&t==="rtl"?-1:1},jb=function(e,t,n,s,r){var i=Nb(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,h=0;do{var y=ap(e,a),m=y[0],p=y[1],v=y[2],x=p-v-i*m;(m||x)&&op(e,a)&&(d+=x,h+=m),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(h)<1)&&(l=!0),l},Wi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ld=function(e){return[e.deltaX,e.deltaY]},ud=function(e){return e&&"current"in e?e.current:e},kb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ob=function(e){return` +`)},od=function(){var e=parseInt(document.body.getAttribute(Us)||"0",10);return isFinite(e)?e:0},Sb=function(){g.useEffect(function(){return document.body.setAttribute(Us,(od()+1).toString()),function(){var e=od()-1;e<=0?document.body.removeAttribute(Us):document.body.setAttribute(Us,e.toString())}},[])},_b=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;Sb();var i=g.useMemo(function(){return xb(r)},[r]);return g.createElement(bb,{styles:wb(i,!t,r,n?"":"!important")})},tc=!1;if(typeof window<"u")try{var zi=Object.defineProperty({},"passive",{get:function(){return tc=!0,!0}});window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{tc=!1}var js=tc?{passive:!1}:!1,Cb=function(e){return e.tagName==="TEXTAREA"},rp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Cb(e)&&n[t]==="visible")},Eb=function(e){return rp(e,"overflowY")},Tb=function(e){return rp(e,"overflowX")},ad=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=ip(e,s);if(r){var i=op(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},Ab=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},Rb=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},ip=function(e,t){return e==="v"?Eb(t):Tb(t)},op=function(e,t){return e==="v"?Ab(t):Rb(t)},Pb=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nb=function(e,t,n,s,r){var i=Pb(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,h=0;do{var y=op(e,a),m=y[0],p=y[1],v=y[2],x=p-v-i*m;(m||x)&&ip(e,a)&&(d+=x,h+=m),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(h)<1)&&(l=!0),l},Wi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cd=function(e){return[e.deltaX,e.deltaY]},ld=function(e){return e&&"current"in e?e.current:e},jb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kb=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Mb=0,Os=[];function Db(e){var t=g.useRef([]),n=g.useRef([0,0]),s=g.useRef(),r=g.useState(Mb++)[0],i=g.useState(rp)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=nb([e.lockRef.current],(e.shards||[]).map(ud),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var x=Wi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-x[0],_="deltaY"in p?p.deltaY:b[1]-x[1],S,A=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&A.type==="range")return!1;var R=cd(E,A);if(!R)return!0;if(R?S=E:(S=E==="v"?"h":"v",R=cd(E,A)),!R)return!1;if(!s.current&&"changedTouches"in p&&(w||_)&&(s.current=S),!S)return!0;var N=s.current||S;return jb(N,v,p,N==="h"?w:_)},[]),c=g.useCallback(function(p){var v=p;if(!(!Os.length||Os[Os.length-1]!==i)){var x="deltaY"in v?ld(v):Wi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&kb(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(ud).filter(Boolean).filter(function(S){return S.contains(v.target)}),_=w.length>0?a(v,w[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),l=g.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Lb(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=g.useCallback(function(p){n.current=Wi(p),s.current=void 0},[]),d=g.useCallback(function(p){l(p.type,ld(p),p.target,a(p,e.lockRef.current))},[]),h=g.useCallback(function(p){l(p.type,Wi(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return Os.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ks),document.addEventListener("touchmove",c,ks),document.addEventListener("touchstart",u,ks),function(){Os=Os.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,ks),document.removeEventListener("touchmove",c,ks),document.removeEventListener("touchstart",u,ks)}},[]);var y=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:Ob(r)}):null,y?g.createElement(Cb,{gapMode:e.gapMode}):null)}function Lb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ib=db(sp,Db);var yl=g.forwardRef(function(e,t){return g.createElement(Ho,en({},e,{ref:t,sideCar:Ib}))});yl.classNames=Ho.classNames;var Fb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,Hi=new WeakMap,qi={},Aa=0,cp=function(e){return e&&(e.host||cp(e.parentNode))},Vb=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=cp(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Bb=function(e,t,n,s){var r=Vb(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var i=qi[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(s),m=y!==null&&y!=="false",p=(Ms.get(h)||0)+1,v=(i.get(h)||0)+1;Ms.set(h,p),i.set(h,v),o.push(h),p===1&&m&&Hi.set(h,!0),v===1&&h.setAttribute(n,"true"),m||h.setAttribute(s,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return u(t),a.clear(),Aa++,function(){o.forEach(function(d){var h=Ms.get(d)-1,y=i.get(d)-1;Ms.set(d,h),i.set(d,y),h||(Hi.has(d)||d.removeAttribute(s),Hi.delete(d)),y||d.removeAttribute(n)}),Aa--,Aa||(Ms=new WeakMap,Ms=new WeakMap,Hi=new WeakMap,qi={})}},lp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=Fb(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),Bb(s,r,n,"aria-hidden")):function(){return null}},vl="Dialog",[up,_k]=hl(vl),[$b,Wt]=up(vl),dp=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=g.useRef(null),c=g.useRef(null),[l=!1,u]=Qh({prop:s,defaultProp:r,onChange:i});return f.jsx($b,{scope:t,triggerRef:a,contentRef:c,contentId:no(),titleId:no(),descriptionId:no(),open:l,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};dp.displayName=vl;var fp="DialogTrigger",hp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(fp,n),i=zt(t,r.triggerRef);return f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":wl(r.open),...s,ref:i,onClick:yt(e.onClick,r.onOpenToggle)})});hp.displayName=fp;var xl="DialogPortal",[Ub,pp]=up(xl,{forceMount:void 0}),mp=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Wt(xl,t);return f.jsx(Ub,{scope:t,forceMount:n,children:g.Children.map(s,o=>f.jsx(yr,{present:n||i.open,children:f.jsx(gl,{asChild:!0,container:r,children:o})}))})};mp.displayName=xl;var mo="DialogOverlay",gp=g.forwardRef((e,t)=>{const n=pp(mo,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(mo,e.__scopeDialog);return i.modal?f.jsx(yr,{present:s||i.open,children:f.jsx(zb,{...r,ref:t})}):null});gp.displayName=mo;var zb=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(mo,n);return f.jsx(yl,{as:gr,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(ct.div,{"data-state":wl(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),bs="DialogContent",yp=g.forwardRef((e,t)=>{const n=pp(bs,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(bs,e.__scopeDialog);return f.jsx(yr,{present:s||i.open,children:i.modal?f.jsx(Wb,{...r,ref:t}):f.jsx(Hb,{...r,ref:t})})});yp.displayName=bs;var Wb=g.forwardRef((e,t)=>{const n=Wt(bs,e.__scopeDialog),s=g.useRef(null),r=zt(t,n.contentRef,s);return g.useEffect(()=>{const i=s.current;if(i)return lp(i)},[]),f.jsx(vp,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:yt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:yt(e.onFocusOutside,i=>i.preventDefault())})}),Hb=g.forwardRef((e,t)=>{const n=Wt(bs,e.__scopeDialog),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(vp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),vp=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Wt(bs,n),c=g.useRef(null),l=zt(t,c);return ep(),f.jsxs(f.Fragment,{children:[f.jsx(ml,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(pl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":wl(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(qb,{titleId:a.titleId}),f.jsx(Kb,{contentRef:c,descriptionId:a.descriptionId})]})]})}),bl="DialogTitle",xp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(bl,n);return f.jsx(ct.h2,{id:r.titleId,...s,ref:t})});xp.displayName=bl;var bp="DialogDescription",wp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(bp,n);return f.jsx(ct.p,{id:r.descriptionId,...s,ref:t})});wp.displayName=bp;var Sp="DialogClose",_p=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(Sp,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});_p.displayName=Sp;function wl(e){return e?"open":"closed"}var Cp="DialogTitleWarning",[Ck,Ep]=Tx(Cp,{contentName:bs,titleName:bl,docsSlug:"dialog"}),qb=({titleId:e})=>{const t=Ep(Cp),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},Ob=0,ks=[];function Mb(e){var t=g.useRef([]),n=g.useRef([0,0]),s=g.useRef(),r=g.useState(Ob++)[0],i=g.useState(sp)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=tb([e.lockRef.current],(e.shards||[]).map(ld),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var x=Wi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-x[0],_="deltaY"in p?p.deltaY:b[1]-x[1],S,A=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&A.type==="range")return!1;var R=ad(E,A);if(!R)return!0;if(R?S=E:(S=E==="v"?"h":"v",R=ad(E,A)),!R)return!1;if(!s.current&&"changedTouches"in p&&(w||_)&&(s.current=S),!S)return!0;var N=s.current||S;return Nb(N,v,p,N==="h"?w:_)},[]),c=g.useCallback(function(p){var v=p;if(!(!ks.length||ks[ks.length-1]!==i)){var x="deltaY"in v?cd(v):Wi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&jb(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(ld).filter(Boolean).filter(function(S){return S.contains(v.target)}),_=w.length>0?a(v,w[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),l=g.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Db(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=g.useCallback(function(p){n.current=Wi(p),s.current=void 0},[]),d=g.useCallback(function(p){l(p.type,cd(p),p.target,a(p,e.lockRef.current))},[]),h=g.useCallback(function(p){l(p.type,Wi(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return ks.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,js),document.addEventListener("touchmove",c,js),document.addEventListener("touchstart",u,js),function(){ks=ks.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,js),document.removeEventListener("touchmove",c,js),document.removeEventListener("touchstart",u,js)}},[]);var y=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:kb(r)}):null,y?g.createElement(_b,{gapMode:e.gapMode}):null)}function Db(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ib=ub(np,Mb);var gl=g.forwardRef(function(e,t){return g.createElement(Wo,en({},e,{ref:t,sideCar:Ib}))});gl.classNames=Wo.classNames;var Lb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Os=new WeakMap,Hi=new WeakMap,qi={},Ta=0,ap=function(e){return e&&(e.host||ap(e.parentNode))},Fb=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=ap(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Vb=function(e,t,n,s){var r=Fb(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var i=qi[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(s),m=y!==null&&y!=="false",p=(Os.get(h)||0)+1,v=(i.get(h)||0)+1;Os.set(h,p),i.set(h,v),o.push(h),p===1&&m&&Hi.set(h,!0),v===1&&h.setAttribute(n,"true"),m||h.setAttribute(s,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return u(t),a.clear(),Ta++,function(){o.forEach(function(d){var h=Os.get(d)-1,y=i.get(d)-1;Os.set(d,h),i.set(d,y),h||(Hi.has(d)||d.removeAttribute(s),Hi.delete(d)),y||d.removeAttribute(n)}),Ta--,Ta||(Os=new WeakMap,Os=new WeakMap,Hi=new WeakMap,qi={})}},cp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=Lb(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),Vb(s,r,n,"aria-hidden")):function(){return null}},yl="Dialog",[lp,wk]=fl(yl),[Bb,Wt]=lp(yl),up=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=g.useRef(null),c=g.useRef(null),[l=!1,u]=Gh({prop:s,defaultProp:r,onChange:i});return f.jsx(Bb,{scope:t,triggerRef:a,contentRef:c,contentId:to(),titleId:to(),descriptionId:to(),open:l,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};up.displayName=yl;var dp="DialogTrigger",fp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(dp,n),i=zt(t,r.triggerRef);return f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":bl(r.open),...s,ref:i,onClick:yt(e.onClick,r.onOpenToggle)})});fp.displayName=dp;var vl="DialogPortal",[$b,hp]=lp(vl,{forceMount:void 0}),pp=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Wt(vl,t);return f.jsx($b,{scope:t,forceMount:n,children:g.Children.map(s,o=>f.jsx(gr,{present:n||i.open,children:f.jsx(ml,{asChild:!0,container:r,children:o})}))})};pp.displayName=vl;var po="DialogOverlay",mp=g.forwardRef((e,t)=>{const n=hp(po,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(po,e.__scopeDialog);return i.modal?f.jsx(gr,{present:s||i.open,children:f.jsx(Ub,{...r,ref:t})}):null});mp.displayName=po;var Ub=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(po,n);return f.jsx(gl,{as:mr,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(ct.div,{"data-state":bl(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),bs="DialogContent",gp=g.forwardRef((e,t)=>{const n=hp(bs,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(bs,e.__scopeDialog);return f.jsx(gr,{present:s||i.open,children:i.modal?f.jsx(zb,{...r,ref:t}):f.jsx(Wb,{...r,ref:t})})});gp.displayName=bs;var zb=g.forwardRef((e,t)=>{const n=Wt(bs,e.__scopeDialog),s=g.useRef(null),r=zt(t,n.contentRef,s);return g.useEffect(()=>{const i=s.current;if(i)return cp(i)},[]),f.jsx(yp,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:yt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:yt(e.onFocusOutside,i=>i.preventDefault())})}),Wb=g.forwardRef((e,t)=>{const n=Wt(bs,e.__scopeDialog),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(yp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),yp=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Wt(bs,n),c=g.useRef(null),l=zt(t,c);return Jh(),f.jsxs(f.Fragment,{children:[f.jsx(pl,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(hl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":bl(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Hb,{titleId:a.titleId}),f.jsx(Zb,{contentRef:c,descriptionId:a.descriptionId})]})]})}),xl="DialogTitle",vp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(xl,n);return f.jsx(ct.h2,{id:r.titleId,...s,ref:t})});vp.displayName=xl;var xp="DialogDescription",bp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(xp,n);return f.jsx(ct.p,{id:r.descriptionId,...s,ref:t})});bp.displayName=xp;var wp="DialogClose",Sp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(wp,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});Sp.displayName=wp;function bl(e){return e?"open":"closed"}var _p="DialogTitleWarning",[Sk,Cp]=Ex(_p,{contentName:bs,titleName:xl,docsSlug:"dialog"}),Hb=({titleId:e})=>{const t=Cp(_p),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 g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Zb="DialogDescriptionWarning",Kb=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ep(Zb).contentName}}.`;return g.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Tp=dp,Ap=hp,Rp=mp,qo=gp,Zo=yp,Ko=xp,Go=wp,Sl=_p;function Pp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,fd=Np,Qo=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return fd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const h=dd(u)||dd(d);return r[l][h]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,h]=u;return h===void 0||(l[d]=h),l},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...l,d,h]:l},[]);return fd(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 g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qb="DialogDescriptionWarning",Zb=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Cp(qb).contentName}}.`;return g.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Ep=up,Tp=fp,Ap=pp,Ho=mp,qo=gp,Zo=vp,Ko=bp,wl=Sp;function Rp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,dd=Pp,Go=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return dd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const h=ud(u)||ud(d);return r[l][h]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,h]=u;return h===void 0||(l[d]=h),l},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...l,d,h]:l},[]);return dd(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 Gb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jp=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** + */const Kb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Np=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.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 Qb={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 Gb={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 Xb=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>g.createElement("svg",{ref:c,...Qb,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:jp("lucide",r),...a},[...o.map(([l,u])=>g.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** + */const Qb=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>g.createElement("svg",{ref:c,...Gb,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Np("lucide",r),...a},[...o.map(([l,u])=>g.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 St=(e,t)=>{const n=g.forwardRef(({className:s,...r},i)=>g.createElement(Xb,{ref:i,iconNode:t,className:jp(`lucide-${Gb(e)}`,s),...r}));return n.displayName=`${e}`,n};/** + */const St=(e,t)=>{const n=g.forwardRef(({className:s,...r},i)=>g.createElement(Qb,{ref:i,iconNode:t,className:Np(`lucide-${Kb(e)}`,s),...r}));return n.displayName=`${e}`,n};/** * @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 Yb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Jb=St("ArrowRight",Yb);/** + */const Xb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yb=St("ArrowRight",Xb);/** * @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 ew=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],tw=St("ArrowUpRight",ew);/** + */const Jb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ew=St("ArrowUpRight",Jb);/** * @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 nw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sw=St("ChevronDown",nw);/** + */const tw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nw=St("ChevronDown",tw);/** * @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 rw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sc=St("ChevronLeft",rw);/** + */const sw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nc=St("ChevronLeft",sw);/** * @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 iw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kp=St("ChevronRight",iw);/** + */const rw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jp=St("ChevronRight",rw);/** * @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 ow=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],aw=St("Facebook",ow);/** + */const iw=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],ow=St("Facebook",iw);/** * @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 cw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Op=St("LoaderCircle",cw);/** + */const aw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kp=St("LoaderCircle",aw);/** * @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 lw=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Ek=St("Loader",lw);/** + */const cw=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],_k=St("Loader",cw);/** * @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 uw=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],dw=St("MapPin",uw);/** + */const lw=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],uw=St("MapPin",lw);/** * @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 fw=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Tk=St("Play",fw);/** + */const dw=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Ck=St("Play",dw);/** * @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 hw=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],pw=St("Smartphone",hw);/** + */const fw=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],hw=St("Smartphone",fw);/** * @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 mw=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],gw=St("Upload",mw);/** + */const pw=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],mw=St("Upload",pw);/** * @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 yw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_l=St("X",yw),Cl="-",vw=e=>{const t=bw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Cl);return a[0]===""&&a.length!==1&&a.shift(),Mp(a,t)||xw(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Mp=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Mp(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Cl);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},hd=/^\[(.+)\]$/,xw=e=>{if(hd.test(e)){const t=hd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bw=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return Sw(Object.entries(e.classGroups),n).forEach(([i,o])=>{rc(o,s,i,t)}),s},rc=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:pd(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(ww(r)){rc(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{rc(o,pd(t,i),n,s)})})},pd=(e,t)=>{let n=e;return t.split(Cl).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},ww=e=>e.isThemeGetter,Sw=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,_w=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},Dp="!",Cw=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let v=0;vu?d-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},Ew=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},Tw=e=>({cache:_w(e.cacheSize),parseClassName:Cw(e),...vw(e)}),Aw=/\s+/,Rw=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(Aw);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:y}=n(l);let m=!!y,p=s(m?h.substring(0,y):h);if(!p){if(!m){a=l+(a.length>0?" "+a:a);continue}if(p=s(h),!p){a=l+(a.length>0?" "+a:a);continue}m=!1}const v=Ew(u).join(":"),x=d?v+Dp:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=r(p,m);for(let _=0;_0?" "+a:a)}return a};function Pw(){let e=0,t,n,s="";for(;e{if(typeof e=="string")return e;let t,n="";for(let s=0;sd(u),e());return n=Tw(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=Rw(c,n);return r(c,u),u}return function(){return i(Pw.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ip=/^\[(?:([a-z-]+):)?(.+)\]$/i,jw=/^\d+\/\d+$/,kw=new Set(["px","full","screen"]),Ow=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mw=/\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$/,Dw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>Ws(e)||kw.has(e)||jw.test(e),An=e=>vr(e,"length",Hw),Ws=e=>!!e&&!Number.isNaN(Number(e)),Ra=e=>vr(e,"number",Ws),Rr=e=>!!e&&Number.isInteger(Number(e)),Fw=e=>e.endsWith("%")&&Ws(e.slice(0,-1)),ce=e=>Ip.test(e),Rn=e=>Ow.test(e),Vw=new Set(["length","size","percentage"]),Bw=e=>vr(e,Vw,Fp),$w=e=>vr(e,"position",Fp),Uw=new Set(["image","url"]),zw=e=>vr(e,Uw,Zw),Ww=e=>vr(e,"",qw),Pr=()=>!0,vr=(e,t,n)=>{const s=Ip.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},Hw=e=>Mw.test(e)&&!Dw.test(e),Fp=()=>!1,qw=e=>Lw.test(e),Zw=e=>Iw.test(e),Kw=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),s=_e("brightness"),r=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),c=_e("contrast"),l=_e("grayscale"),u=_e("hueRotate"),d=_e("invert"),h=_e("gap"),y=_e("gradientColorStops"),m=_e("gradientColorStopPositions"),p=_e("inset"),v=_e("margin"),x=_e("opacity"),b=_e("padding"),w=_e("saturate"),_=_e("scale"),S=_e("sepia"),A=_e("skew"),E=_e("space"),R=_e("translate"),N=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],O=()=>[ce,t],z=()=>["",hn,An],F=()=>["auto",Ws,ce],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Ws,ce];return{cacheSize:500,separator:":",theme:{colors:[Pr],spacing:[hn,An],blur:["none","",Rn,ce],brightness:ye(),borderColor:[e],borderRadius:["none","","full",Rn,ce],borderSpacing:O(),borderWidth:z(),contrast:ye(),grayscale:re(),hueRotate:ye(),invert:re(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Fw,An],inset:L(),margin:L(),opacity:ye(),padding:O(),saturate:ye(),scale:ye(),sepia:re(),skew:ye(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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(),ce]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rr,ce]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",Rr,ce]}],"grid-cols":[{"grid-cols":[Pr]}],"col-start-end":[{col:["auto",{span:["full",Rr,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Pr]}],"row-start-end":[{row:["auto",{span:[Rr,ce]},ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ra]}],"font-family":[{font:[Pr]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",Ws,Ra]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hn,An]}],"underline-offset":[{"underline-offset":["auto",hn,ce]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],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",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),$w]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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":[x]}],"border-style":[{border:[...X(),"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":[x]}],"divide-style":[{divide:X()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[hn,ce]}],"outline-w":[{outline:[hn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[hn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,Ww]}],"shadow-color":[{shadow:[Pr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Rn,ce]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"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":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",ce]}],duration:[{duration:ye()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ye()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Rr,ce]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"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",ce]}],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",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hn,An,Ra]}],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"]}}},Gw=Nw(Kw);function V(...e){return Gw(Np(e))}const Qw=Tp,Xw=Ap,Yw=Sl,Jw=Rp,Vp=g.forwardRef(({className:e,...t},n)=>f.jsx(qo,{className:V("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}));Vp.displayName=qo.displayName;const e0=Qo("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"}}),Bp=g.forwardRef(({side:e="right",className:t,children:n,...s},r)=>f.jsxs(Jw,{children:[f.jsx(Vp,{}),f.jsxs(Zo,{ref:r,className:V(e0({side:e}),t),...s,children:[f.jsxs(Sl,{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:[f.jsx(_l,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Bp.displayName=Zo.displayName;const $p=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});$p.displayName="SheetHeader";const t0=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));t0.displayName=Ko.displayName;const n0=g.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));n0.displayName=Go.displayName;const s0=Qo("inline-flex items-center justify-center gap-2 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"}}),ot=g.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?gr:"button";return f.jsx(c,{className:V(s0({variant:t,size:n,className:e})),ref:a,...o,children:s?f.jsx(Op,{className:"w-5 h-5 animate-spin"}):r})});ot.displayName="Button";const r0=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);ms(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},md={},ic=(e,t,n,s)=>{ms(n)&&md[n]||(ms(n)&&(md[n]=new Date),r0(e,t,n,s))},Up=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},oc=(e,t,n)=>{e.loadNamespaces(t,Up(e,n))},gd=(e,t,n,s)=>{if(ms(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return oc(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Up(e,s))},i0=(e,t,n={})=>!t.languages||!t.languages.length?(ic(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),ms=e=>typeof e=="string",o0=e=>typeof e=="object"&&e!==null,a0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,c0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},l0=e=>c0[e],u0=e=>e.replace(a0,l0);let ac={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:u0};const d0=(e={})=>{ac={...ac,...e}},f0=()=>ac;let zp;const h0=e=>{zp=e},p0=()=>zp,Ak={type:"3rdParty",init(e){d0(e.options.react),h0(e)}},m0=g.createContext();class g0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const y0=(e,t)=>{const n=g.useRef();return g.useEffect(()=>{n.current=e},[e,t]),n.current},Wp=(e,t,n,s)=>e.getFixedT(t,n,s),v0=(e,t,n,s)=>g.useCallback(Wp(e,t,n,s),[e,t,n,s]),Ps=(e,t={})=>{var _,S,A,E;const{i18n:n}=t,{i18n:s,defaultNS:r}=g.useContext(m0)||{},i=n||s||p0();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new g0),!i){ic(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(M,L)=>ms(L)?L:o0(L)&&ms(L.defaultValue)?L.defaultValue:Array.isArray(M)?M[M.length-1]:M,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}(_=i.options.react)!=null&&_.wait&&ic(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...f0(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=ms(l)?[l]:l||["translation"],(E=(A=i.reportNamespaces).addUsedNamespaces)==null||E.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>i0(R,i,o)),d=v0(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),h=()=>d,y=()=>Wp(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,p]=g.useState(h);let v=l.join();t.lng&&(v=`${t.lng}${v}`);const x=y0(v),b=g.useRef(!0);g.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=o;b.current=!0,!u&&!a&&(t.lng?gd(i,t.lng,l,()=>{b.current&&p(y)}):oc(i,l,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const M=()=>{b.current&&p(y)};return R&&(i==null||i.on(R,M)),N&&(i==null||i.store.on(N,M)),()=>{b.current=!1,i&&(R==null||R.split(" ").forEach(L=>i.off(L,M))),N&&i&&N.split(" ").forEach(L=>i.store.off(L,M))}},[i,v]),g.useEffect(()=>{b.current&&u&&p(h)},[i,c,u]);const w=[m,i,u];if(w.t=m,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(R=>{t.lng?gd(i,t.lng,l,()=>R()):oc(i,l,()=>R())})},Hp=({className:e})=>f.jsx("div",{className:V("",e),children:f.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),qp=({className:e,image:t,title:n,iconClassName:s})=>f.jsxs("article",{className:V("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[f.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),f.jsx("div",{className:V("md:size-[84px] size-12 bg-teritary p-3",s),children:f.jsx("img",{src:t.path,alt:"theme icon"})}),f.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),x0=({className:e,title:t,text:n})=>f.jsxs("article",{className:V("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[f.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),f.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),f.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),b0=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>f.jsxs("article",{className:V("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[f.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),f.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),f.jsxs("div",{className:"relative z-20 h-full",children:[f.jsxs("div",{className:"",children:[f.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),f.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),f.jsx(Ce,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:f.jsxs(ot,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(tw,{})]})})]})]}),Zp=({className:e,title:t,text:n,bottomClassName:s})=>f.jsxs("div",{className:V("rounded-t-[4px] overflow-hidden",e),children:[f.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),f.jsx("div",{className:V("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),w0=({className:e,text:t,title:n,image:s})=>f.jsxs("div",{className:V("flex items-center gap-4",e),children:[f.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:f.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("h5",{className:"text-sm text-[#454545]",children:n}),f.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),El=g.createContext({});function Tl(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xo=g.createContext(null),Al=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class S0 extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.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=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function _0({children:e,isPresent:t,anchorX:n}){const s=g.useId(),r=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=g.useContext(Al);return g.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` + */const gw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sl=St("X",gw),_l="-",yw=e=>{const t=xw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(_l);return a[0]===""&&a.length!==1&&a.shift(),Op(a,t)||vw(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Op=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Op(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(_l);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},fd=/^\[(.+)\]$/,vw=e=>{if(fd.test(e)){const t=fd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xw=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return ww(Object.entries(e.classGroups),n).forEach(([i,o])=>{sc(o,s,i,t)}),s},sc=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:hd(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(bw(r)){sc(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{sc(o,hd(t,i),n,s)})})},hd=(e,t)=>{let n=e;return t.split(_l).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},bw=e=>e.isThemeGetter,ww=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,Sw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},Mp="!",_w=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let v=0;vu?d-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},Cw=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},Ew=e=>({cache:Sw(e.cacheSize),parseClassName:_w(e),...yw(e)}),Tw=/\s+/,Aw=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(Tw);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:y}=n(l);let m=!!y,p=s(m?h.substring(0,y):h);if(!p){if(!m){a=l+(a.length>0?" "+a:a);continue}if(p=s(h),!p){a=l+(a.length>0?" "+a:a);continue}m=!1}const v=Cw(u).join(":"),x=d?v+Mp:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=r(p,m);for(let _=0;_0?" "+a:a)}return a};function Rw(){let e=0,t,n,s="";for(;e{if(typeof e=="string")return e;let t,n="";for(let s=0;sd(u),e());return n=Ew(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=Aw(c,n);return r(c,u),u}return function(){return i(Rw.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ip=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nw=/^\d+\/\d+$/,jw=new Set(["px","full","screen"]),kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ow=/\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$/,Mw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>zs(e)||jw.has(e)||Nw.test(e),An=e=>yr(e,"length",Ww),zs=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>yr(e,"number",zs),Rr=e=>!!e&&Number.isInteger(Number(e)),Lw=e=>e.endsWith("%")&&zs(e.slice(0,-1)),ce=e=>Ip.test(e),Rn=e=>kw.test(e),Fw=new Set(["length","size","percentage"]),Vw=e=>yr(e,Fw,Lp),Bw=e=>yr(e,"position",Lp),$w=new Set(["image","url"]),Uw=e=>yr(e,$w,qw),zw=e=>yr(e,"",Hw),Pr=()=>!0,yr=(e,t,n)=>{const s=Ip.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},Ww=e=>Ow.test(e)&&!Mw.test(e),Lp=()=>!1,Hw=e=>Dw.test(e),qw=e=>Iw.test(e),Zw=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),s=_e("brightness"),r=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),c=_e("contrast"),l=_e("grayscale"),u=_e("hueRotate"),d=_e("invert"),h=_e("gap"),y=_e("gradientColorStops"),m=_e("gradientColorStopPositions"),p=_e("inset"),v=_e("margin"),x=_e("opacity"),b=_e("padding"),w=_e("saturate"),_=_e("scale"),S=_e("sepia"),A=_e("skew"),E=_e("space"),R=_e("translate"),N=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ce,t],O=()=>[ce,t],z=()=>["",hn,An],F=()=>["auto",zs,ce],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[zs,ce];return{cacheSize:500,separator:":",theme:{colors:[Pr],spacing:[hn,An],blur:["none","",Rn,ce],brightness:ye(),borderColor:[e],borderRadius:["none","","full",Rn,ce],borderSpacing:O(),borderWidth:z(),contrast:ye(),grayscale:re(),hueRotate:ye(),invert:re(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Lw,An],inset:I(),margin:I(),opacity:ye(),padding:O(),saturate:ye(),scale:ye(),sepia:re(),skew:ye(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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(),ce]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rr,ce]}],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",ce]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",Rr,ce]}],"grid-cols":[{"grid-cols":[Pr]}],"col-start-end":[{col:["auto",{span:["full",Rr,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Pr]}],"row-start-end":[{row:["auto",{span:[Rr,ce]},ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Aa]}],"font-family":[{font:[Pr]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",zs,Aa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hn,An]}],"underline-offset":[{"underline-offset":["auto",hn,ce]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],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",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Bw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Uw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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":[x]}],"border-style":[{border:[...X(),"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":[x]}],"divide-style":[{divide:X()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[hn,ce]}],"outline-w":[{outline:[hn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[hn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,zw]}],"shadow-color":[{shadow:[Pr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Rn,ce]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"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":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",ce]}],duration:[{duration:ye()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ye()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Rr,ce]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"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",ce]}],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",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hn,An,Aa]}],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"]}}},Kw=Pw(Zw);function V(...e){return Kw(Pp(e))}const Gw=Ep,Qw=Tp,Xw=wl,Yw=Ap,Fp=g.forwardRef(({className:e,...t},n)=>f.jsx(Ho,{className:V("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}));Fp.displayName=Ho.displayName;const Jw=Go("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"}}),Vp=g.forwardRef(({side:e="right",className:t,children:n,...s},r)=>f.jsxs(Yw,{children:[f.jsx(Fp,{}),f.jsxs(qo,{ref:r,className:V(Jw({side:e}),t),...s,children:[f.jsxs(wl,{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:[f.jsx(Sl,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Vp.displayName=qo.displayName;const Bp=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});Bp.displayName="SheetHeader";const e0=g.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));e0.displayName=Zo.displayName;const t0=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));t0.displayName=Ko.displayName;const n0=Go("inline-flex items-center justify-center gap-2 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"}}),ot=g.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?mr:"button";return f.jsx(c,{className:V(n0({variant:t,size:n,className:e})),ref:a,...o,children:s?f.jsx(kp,{className:"w-5 h-5 animate-spin"}):r})});ot.displayName="Button";const s0=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);ms(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},pd={},rc=(e,t,n,s)=>{ms(n)&&pd[n]||(ms(n)&&(pd[n]=new Date),s0(e,t,n,s))},$p=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ic=(e,t,n)=>{e.loadNamespaces(t,$p(e,n))},md=(e,t,n,s)=>{if(ms(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ic(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,$p(e,s))},r0=(e,t,n={})=>!t.languages||!t.languages.length?(rc(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),ms=e=>typeof e=="string",i0=e=>typeof e=="object"&&e!==null,o0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,a0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},c0=e=>a0[e],l0=e=>e.replace(o0,c0);let oc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:l0};const u0=(e={})=>{oc={...oc,...e}},d0=()=>oc;let Up;const f0=e=>{Up=e},h0=()=>Up,Ek={type:"3rdParty",init(e){u0(e.options.react),f0(e)}},p0=g.createContext();class m0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const g0=(e,t)=>{const n=g.useRef();return g.useEffect(()=>{n.current=e},[e,t]),n.current},zp=(e,t,n,s)=>e.getFixedT(t,n,s),y0=(e,t,n,s)=>g.useCallback(zp(e,t,n,s),[e,t,n,s]),vr=(e,t={})=>{var _,S,A,E;const{i18n:n}=t,{i18n:s,defaultNS:r}=g.useContext(p0)||{},i=n||s||h0();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new m0),!i){rc(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(M,I)=>ms(I)?I:i0(I)&&ms(I.defaultValue)?I.defaultValue:Array.isArray(M)?M[M.length-1]:M,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}(_=i.options.react)!=null&&_.wait&&rc(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...d0(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=ms(l)?[l]:l||["translation"],(E=(A=i.reportNamespaces).addUsedNamespaces)==null||E.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>r0(R,i,o)),d=y0(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),h=()=>d,y=()=>zp(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,p]=g.useState(h);let v=l.join();t.lng&&(v=`${t.lng}${v}`);const x=g0(v),b=g.useRef(!0);g.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=o;b.current=!0,!u&&!a&&(t.lng?md(i,t.lng,l,()=>{b.current&&p(y)}):ic(i,l,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const M=()=>{b.current&&p(y)};return R&&(i==null||i.on(R,M)),N&&(i==null||i.store.on(N,M)),()=>{b.current=!1,i&&(R==null||R.split(" ").forEach(I=>i.off(I,M))),N&&i&&N.split(" ").forEach(I=>i.store.off(I,M))}},[i,v]),g.useEffect(()=>{b.current&&u&&p(h)},[i,c,u]);const w=[m,i,u];if(w.t=m,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(R=>{t.lng?md(i,t.lng,l,()=>R()):ic(i,l,()=>R())})},Wp=({className:e})=>f.jsx("div",{className:V("",e),children:f.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Hp=({className:e,image:t,title:n,iconClassName:s})=>f.jsxs("article",{className:V("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[f.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),f.jsx("div",{className:V("md:size-[84px] size-12 bg-teritary p-3",s),children:f.jsx("img",{src:t.path,alt:"theme icon"})}),f.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),v0=({className:e,title:t,text:n})=>f.jsxs("article",{className:V("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[f.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),f.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),f.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),x0=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>f.jsxs("article",{className:V("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[f.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),f.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),f.jsxs("div",{className:"relative z-20 h-full",children:[f.jsxs("div",{className:"",children:[f.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),f.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),f.jsx(Ce,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:f.jsxs(ot,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(ew,{})]})})]})]}),qp=({className:e,title:t,text:n,bottomClassName:s})=>f.jsxs("div",{className:V("rounded-t-[4px] overflow-hidden",e),children:[f.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),f.jsx("div",{className:V("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),b0=({className:e,text:t,title:n,image:s})=>f.jsxs("div",{className:V("flex items-center gap-4",e),children:[f.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:f.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("h5",{className:"text-sm text-[#454545]",children:n}),f.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),Cl=g.createContext({});function El(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=g.createContext(null),Tl=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class w0 extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.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=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function S0({children:e,isPresent:t,anchorX:n}){const s=g.useId(),r=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=g.useContext(Tl);return g.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` [data-motion-pop-id="${s}"] { position: absolute !important; width: ${a}px !important; @@ -143,17 +143,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do ${h}px !important; top: ${l}px !important; } - `),()=>{document.head.removeChild(y)}},[t]),f.jsx(S0,{isPresent:t,childRef:r,sizeRef:i,children:g.cloneElement(e,{ref:r})})}const C0=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=Tl(E0),l=g.useId(),u=g.useCallback(h=>{c.set(h,!0);for(const y of c.values())if(!y)return;s&&s()},[c,s]),d=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(c.set(h,!1),()=>c.delete(h))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{c.forEach((h,y)=>c.set(y,!1))},[n]),g.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=f.jsx(_0,{isPresent:n,anchorX:a,children:e})),f.jsx(Xo.Provider,{value:d,children:e})};function E0(){return new Map}function Kp(e=!0){const t=g.useContext(Xo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=g.useId();g.useEffect(()=>{e&&r(i)},[e]);const o=g.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Zi=e=>e.key||"";function yd(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Rl=typeof window<"u",Gp=Rl?g.useLayoutEffect:g.useEffect,Rk=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Kp(o),u=g.useMemo(()=>yd(e),[e]),d=o&&!c?[]:u.map(Zi),h=g.useRef(!0),y=g.useRef(u),m=Tl(()=>new Map),[p,v]=g.useState(u),[x,b]=g.useState(u);Gp(()=>{h.current=!1,y.current=u;for(let S=0;S{const A=Zi(S),E=o&&!c?!1:u===x||d.includes(A),R=()=>{if(m.has(A))m.set(A,!0);else return;let N=!0;m.forEach(M=>{M||(N=!1)}),N&&(_==null||_(),b(y.current),o&&(l==null||l()),s&&s())};return f.jsx(C0,{isPresent:E,initial:!h.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:E?void 0:R,anchorX:a,children:S},A)})})},vt=e=>e;let cc=vt;const T0={skipAnimations:!1,useManualTiming:!1};function A0(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const y=d&&s?t:n;return u&&i.add(l),y.has(l)||y.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Ki=["read","resolveKeyframes","update","preRender","render","postRender"],R0=40;function Qp(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Ki.reduce((x,b)=>(x[b]=A0(i),x),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(x-r.timestamp,R0),1),r.timestamp=x,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(y))},m=()=>{n=!0,s=!0,r.isProcessing||e(y)};return{schedule:Ki.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,A=!1)=>(n||m(),w.schedule(_,S,A)),x},{}),cancel:x=>{for(let b=0;bvd[e].some(n=>!!t[n])};function P0(e){for(const t in e)ar[t]={...ar[t],...e[t]}}const N0=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 go(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||N0.has(e)}let Yp=e=>!go(e);function j0(e){e&&(Yp=t=>t.startsWith("on")?!go(t):e(t))}try{j0(require("@emotion/is-prop-valid").default)}catch{}function k0(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(Yp(r)||n===!0&&go(r)||!t&&!go(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function O0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Yo=g.createContext({});function Gr(e){return typeof e=="string"||Array.isArray(e)}function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nl=["initial",...Pl];function ea(e){return Jo(e.animate)||Nl.some(t=>Gr(e[t]))}function Jp(e){return!!(ea(e)||e.variants)}function M0(e,t){if(ea(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Gr(n)?n:void 0,animate:Gr(s)?s:void 0}}return e.inherit!==!1?t:{}}function D0(e){const{initial:t,animate:n}=M0(e,g.useContext(Yo));return g.useMemo(()=>({initial:t,animate:n}),[xd(t),xd(n)])}function xd(e){return Array.isArray(e)?e.join(" "):e}const L0=Symbol.for("motionComponentSymbol");function Is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function I0(e,t,n){return g.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Is(n)&&(n.current=s))},[t])}const jl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F0="framerAppearId",em="data-"+jl(F0),{schedule:kl,cancel:Pk}=Qp(queueMicrotask,!1),tm=g.createContext({});function V0(e,t,n,s,r){var i,o;const{visualElement:a}=g.useContext(Yo),c=g.useContext(Xp),l=g.useContext(Xo),u=g.useContext(Al).reducedMotion,d=g.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=g.useContext(tm);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&B0(d.current,n,r,y);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(n,l)});const p=n[em],v=g.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return Gp(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),kl.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,p)}),v.current=!1))}),h}function B0(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nm(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Is(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function nm(e){if(e)return e.options.allowProjection!==!1?e.projection:nm(e.parent)}function $0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&P0(e);function a(l,u){let d;const h={...g.useContext(Al),...l,layoutId:U0(l)},{isStatic:y}=h,m=D0(l),p=s(l,y);if(!y&&Rl){z0();const v=W0(h);d=v.MeasureLayout,m.visualElement=V0(r,p,h,t,v.ProjectionNode)}return f.jsxs(Yo.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...h}):null,n(r,l,I0(p,m.visualElement,u),p,y,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=g.forwardRef(a);return c[L0]=r,c}function U0({layoutId:e}){const t=g.useContext(El).id;return t&&e!==void 0?t+"-"+e:e}function z0(e,t){g.useContext(Xp).strict}function W0(e){const{drag:t,layout:n}=ar;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const H0=["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 Ol(e){return typeof e!="string"||e.includes("-")?!1:!!(H0.indexOf(e)>-1||/[A-Z]/u.test(e))}function bd(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ml(e,t,n,s){if(typeof t=="function"){const[r,i]=bd(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=bd(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const lc=e=>Array.isArray(e),q0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Z0=e=>lc(e)?e[e.length-1]||0:e,Ye=e=>!!(e&&e.getVelocity);function io(e){const t=Ye(e)?e.get():e;return q0(t)?t.toValue():t}function K0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:G0(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const sm=e=>(t,n)=>{const s=g.useContext(Yo),r=g.useContext(Xo),i=()=>K0(e,t,s,r);return n?i():Tl(i)};function G0(e,t,n,s){const r={},i=s(e,{});for(const h in i)r[h]=io(i[h]);let{initial:o,animate:a}=e;const c=ea(e),l=Jp(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"&&!Jo(d)){const h=Array.isArray(d)?d:[d];for(let y=0;yt=>typeof t=="string"&&t.startsWith(e),Dl=rm("--"),Q0=rm("var(--"),Ll=e=>Q0(e)?X0.test(e.split("/*")[0].trim()):!1,X0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,im=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qr={...br,transform:e=>wn(0,1,e)},Gi={...br,default:1},Ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Nn=Ti("deg"),sn=Ti("%"),ee=Ti("px"),Y0=Ti("vh"),J0=Ti("vw"),wd={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},eS={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee},tS={rotate:Nn,rotateX:Nn,rotateY:Nn,rotateZ:Nn,scale:Gi,scaleX:Gi,scaleY:Gi,scaleZ:Gi,skew:Nn,skewX:Nn,skewY:Nn,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Qr,originX:wd,originY:wd,originZ:ee},Sd={...br,transform:Math.round},Il={...eS,...tS,zIndex:Sd,size:ee,fillOpacity:Qr,strokeOpacity:Qr,numOctaves:Sd},nS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sS=xr.length;function rS(e,t,n){let s="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),om=()=>({...Bl(),attrs:{}}),$l=e=>typeof e=="string"&&e.toLowerCase()==="svg";function am(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const cm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lm(e,t,n,s){am(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(cm.has(r)?r:jl(r),t.attrs[r])}const Xr={};function lS(e){for(const t in e)Xr[t]=e[t],Dl(t)&&(Xr[t].isCSSVariable=!0)}function um(e,{layout:t,layoutId:n}){return Ns.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xr[e]||e==="opacity")}function Ul(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ye(r[o])||t.style&&Ye(t.style[o])||um(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function dm(e,t,n){const s=Ul(e,t,n);for(const r in e)if(Ye(e[r])||Ye(t[r])){const i=xr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function uS(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Cd=["x","y","width","height","cx","cy","r"],dS={useVisualState:sm({scrapeMotionValuesFromProps:dm,createRenderState:om,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Ns.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{uS(n,s),Ee.render(()=>{Vl(s,r,$l(n.tagName),e.transformTemplate),lm(n,s)})})}})},fS={useVisualState:sm({scrapeMotionValuesFromProps:Ul,createRenderState:Bl})};function fm(e,t,n){for(const s in t)!Ye(t[s])&&!um(s,n)&&(e[s]=t[s])}function hS({transformTemplate:e},t){return g.useMemo(()=>{const n=Bl();return Fl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pS(e,t){const n=e.style||{},s={};return fm(s,n,e),Object.assign(s,hS(e,t)),s}function mS(e,t){const n={},s=pS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}function gS(e,t,n,s){const r=g.useMemo(()=>{const i=om();return Vl(i,t,$l(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};fm(i,e.style,e),r.style={...i,...r.style}}return r}function yS(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(Ol(n)?gS:mS)(s,i,o,n),l=k0(s,typeof n=="string",e),u=n!==g.Fragment?{...l,...c,ref:r}:{},{children:d}=s,h=g.useMemo(()=>Ye(d)?d.get():d,[d]);return g.createElement(n,{...u,children:h})}}function vS(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Ol(s)?dS:fS,preloadedFeatures:e,useRender:yS(r),createVisualElement:t,Component:s};return $0(o)}}function hm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(oo===void 0&&rn.set(We.isProcessing||T0.useManualTiming?We.timestamp:performance.now()),oo),set:e=>{oo=e,queueMicrotask(xS)}};function Wl(e,t){e.indexOf(t)===-1&&e.push(t)}function Hl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ql{constructor(){this.subscriptions=[]}add(t){return Wl(this.subscriptions,t),()=>Hl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i!isNaN(parseFloat(e));class wS{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bS(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 ql);const s=this.events[t].add(n);return t==="change"?()=>{s(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}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=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ed)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ed);return mm(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 Yr(e,t){return new wS(e,t)}function SS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yr(n))}function _S(e,t){const n=ta(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=Z0(i[o]);SS(e,o,a)}}function CS(e){return!!(Ye(e)&&e.add)}function uc(e,t){const n=e.getValue("willChange");if(CS(n))return n.add(t)}function gm(e){return e.props[em]}function Zl(e){let t;return()=>(t===void 0&&(t=e()),t)}const ES=Zl(()=>window.ScrollTimeline!==void 0);class TS{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 s=0;s{if(ES()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),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 AS extends TS{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const xn=e=>e*1e3,bn=e=>e/1e3;function Kl(e){return typeof e=="function"}function Td(e,t){e.timeline=t,e.onfinish=null}const Gl=e=>Array.isArray(e)&&typeof e[0]=="number",RS={linearEasing:void 0};function PS(e,t){const n=Zl(e);return()=>{var s;return(s=RS[t])!==null&&s!==void 0?s:n()}}const yo=PS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cr=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},ym=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${s})`,dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function xm(e,t){if(e)return typeof e=="function"&&yo()?ym(e,t):Gl(e)?Mr(e):Array.isArray(e)?e.map(n=>xm(n,t)||dc.easeOut):dc[e]}const bm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NS=1e-7,jS=12;function kS(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=bm(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>NS&&++akS(i,0,1,e,n);return i=>i===0||i===1?i:bm(r(i),t,s)}const wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sm=e=>t=>1-e(1-t),_m=Ai(.33,1.53,.69,.99),Ql=Sm(_m),Cm=wm(Ql),Em=e=>(e*=2)<1?.5*Ql(e):.5*(2-Math.pow(2,-10*(e-1))),Xl=e=>1-Math.sin(Math.acos(e)),Tm=Sm(Xl),Am=wm(Xl),Rm=e=>/^0[^.\s]+$/u.test(e);function OS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rm(e):!0}const $r=e=>Math.round(e*1e5)/1e5,Yl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function MS(e){return e==null}const DS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jl=(e,t)=>n=>!!(typeof n=="string"&&DS.test(n)&&n.startsWith(e)||t&&!MS(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pm=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Yl);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},LS=e=>wn(0,255,e),Na={...br,transform:e=>Math.round(LS(e))},rs={test:Jl("rgb","red"),parse:Pm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Na.transform(e)+", "+Na.transform(t)+", "+Na.transform(n)+", "+$r(Qr.transform(s))+")"};function IS(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const fc={test:Jl("#"),parse:IS,transform:rs.transform},Fs={test:Jl("hsl","hue"),parse:Pm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+sn.transform($r(t))+", "+sn.transform($r(n))+", "+$r(Qr.transform(s))+")"},Qe={test:e=>rs.test(e)||fc.test(e)||Fs.test(e),parse:e=>rs.test(e)?rs.parse(e):Fs.test(e)?Fs.parse(e):fc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rs.transform(e):Fs.transform(e)},FS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function VS(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(FS))===null||n===void 0?void 0:n.length)||0)>0}const Nm="number",jm="color",BS="var",$S="var(",Ad="${}",US=/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 Jr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(US,c=>(Qe.test(c)?(s.color.push(i),r.push(jm),n.push(Qe.parse(c))):c.startsWith($S)?(s.var.push(i),r.push(BS),n.push(c)):(s.number.push(i),r.push(Nm),n.push(parseFloat(c))),++i,Ad)).split(Ad);return{values:n,split:a,indexes:s,types:r}}function km(e){return Jr(e).values}function Om(e){const{split:t,types:n}=Jr(e),s=t.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:e;function WS(e){const t=km(e);return Om(e)(t.map(zS))}const Un={test:VS,parse:km,createTransformer:Om,getAnimatableNone:WS},HS=new Set(["brightness","contrast","saturate","opacity"]);function qS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Yl)||[];if(!s)return e;const r=n.replace(s,"");let i=HS.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const ZS=/\b([a-z-]*)\(.*?\)/gu,hc={...Un,getAnimatableNone:e=>{const t=e.match(ZS);return t?t.map(qS).join(" "):e}},KS={...Il,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:hc,WebkitFilter:hc},eu=e=>KS[e];function Mm(e,t){let n=eu(e);return n!==hc&&(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const GS=new Set(["auto","none","0"]);function QS(e,t,n){let s=0,r;for(;se===br||e===ee,Pd=(e,t)=>parseFloat(e.split(", ")[t]),Nd=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Pd(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Pd(i[1],e):0}},XS=new Set(["x","y","z"]),YS=xr.filter(e=>!XS.has(e));function JS(e){const t=[];return YS.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const lr={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:Nd(4,13),y:Nd(5,14)};lr.translateX=lr.x;lr.translateY=lr.y;const gs=new Set;let pc=!1,mc=!1;function Dm(){if(mc){const e=Array.from(gs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=JS(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}mc=!1,pc=!1,gs.forEach(e=>e.complete()),gs.clear()}function Lm(){gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mc=!0)})}function e_(){Lm(),Dm()}class tu{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gs.add(this),pc||(pc=!0,Ee.read(Lm),Ee.resolveKeyframes(Dm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n_(e){const t=t_.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Fm(e,t,n=1){const[s,r]=n_(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Im(o)?parseFloat(o):o}return Ll(r)?Fm(r,t,n+1):r}const Vm=e=>t=>t.test(e),s_={test:e=>e==="auto",parse:e=>e},Bm=[br,ee,sn,Nn,J0,Y0,s_],jd=e=>Bm.find(Vm(e));class $m extends tu{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const kd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Un.test(e)||e==="0")&&!e.startsWith("url("));function r_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function na(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(o_),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const a_=40;class Um{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>a_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!i_(t,s,r,i))if(o)this.options.duration=0;else{c&&c(na(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 gc=2e4;function zm(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=gc?1/0:t}const Re=(e,t,n)=>e+(t-e)*n;function ja(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 c_({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=ja(c,a,e+1/3),i=ja(c,a,e),o=ja(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function vo(e,t){return n=>n>0?t:e}const ka=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},l_=[fc,rs,Fs],u_=e=>l_.find(t=>t.test(e));function Od(e){const t=u_(e);if(!t)return!1;let n=t.parse(e);return t===Fs&&(n=c_(n)),n}const Md=(e,t)=>{const n=Od(e),s=Od(t);if(!n||!s)return vo(e,t);const r={...n};return i=>(r.red=ka(n.red,s.red,i),r.green=ka(n.green,s.green,i),r.blue=ka(n.blue,s.blue,i),r.alpha=Re(n.alpha,s.alpha,i),rs.transform(r))},d_=(e,t)=>n=>t(e(n)),Ri=(...e)=>e.reduce(d_),yc=new Set(["none","hidden"]);function f_(e,t){return yc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h_(e,t){return n=>Re(e,t,n)}function nu(e){return typeof e=="number"?h_:typeof e=="string"?Ll(e)?vo:Qe.test(e)?Md:g_:Array.isArray(e)?Wm:typeof e=="object"?Qe.test(e)?Md:p_:vo}function Wm(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>nu(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function m_(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Un.createTransformer(t),s=Jr(e),r=Jr(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?yc.has(e)&&!r.values.length||yc.has(t)&&!s.values.length?f_(e,t):Ri(Wm(m_(s,r),r.values),n):vo(e,t)};function Hm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):nu(e)(e,t)}const y_=5;function qm(e,t,n){const s=Math.max(t-y_,0);return mm(n-e(s),t-s)}const je={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},Dd=.001;function v_({duration:e=je.duration,bounce:t=je.bounce,velocity:n=je.velocity,mass:s=je.mass}){let r,i,o=1-t;o=wn(je.minDamping,je.maxDamping,o),e=wn(je.minDuration,je.maxDuration,bn(e)),o<1?(r=l=>{const u=l*o,d=u*e,h=u-n,y=vc(l,o),m=Math.exp(-d);return Dd-h/y*m},i=l=>{const d=l*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),p=vc(Math.pow(l,2),o);return(-r(l)+Dd>0?-1:1)*((h-y)*m)/p}):(r=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=b_(r,i,a);if(e=xn(e),isNaN(c))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const x_=12;function b_(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function __(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!Ld(e,S_)&&Ld(e,w_))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*wn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:je.mass,stiffness:r,damping:i}}else{const n=v_(e);t={...t,...n,mass:je.mass},t.isResolvedFromDuration=!0}return t}function Zm(e=je.visualDuration,t=je.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=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:h,isResolvedFromDuration:y}=__({...n,velocity:-bn(n.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(c*u)),v=o-i,x=bn(Math.sqrt(c/u)),b=Math.abs(v)<5;s||(s=b?je.restSpeed.granular:je.restSpeed.default),r||(r=b?je.restDelta.granular:je.restDelta.default);let w;if(p<1){const S=vc(x,p);w=A=>{const E=Math.exp(-p*x*A);return o-E*((m+p*x*v)/S*Math.sin(S*A)+v*Math.cos(S*A))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(m+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=A=>{const E=Math.exp(-p*x*A),R=Math.min(S*A,300);return o-E*((m+p*x*v)*Math.sinh(R)+S*v*Math.cosh(R))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const A=w(S);if(y)a.done=S>=d;else{let E=0;p<1&&(E=S===0?xn(m):qm(w,S,A));const R=Math.abs(E)<=s,N=Math.abs(o-A)<=r;a.done=R&&N}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(zm(_),gc),A=ym(E=>_.next(S*E).value,S,30);return S+"ms "+A}};return _}function Id({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=R=>a!==void 0&&Rc,m=R=>a===void 0?c:c===void 0||Math.abs(a-R)-p*Math.exp(-R/s),w=R=>x+b(R),_=R=>{const N=b(R),M=w(R);h.done=Math.abs(N)<=l,h.value=h.done?x:M};let S,A;const E=R=>{y(h.value)&&(S=R,A=Zm({keyframes:[h.value,m(h.value)],velocity:qm(w,R,h.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:R=>{let N=!1;return!A&&S===void 0&&(N=!0,_(R),E(R)),S!==void 0&&R>=S?A.next(R-S):(!N&&_(R),h)}}}const C_=Ai(.42,0,1,1),E_=Ai(0,0,.58,1),Km=Ai(.42,0,.58,1),T_=e=>Array.isArray(e)&&typeof e[0]!="number",Fd={linear:vt,easeIn:C_,easeInOut:Km,easeOut:E_,circIn:Xl,circInOut:Am,circOut:Tm,backIn:Ql,backInOut:Cm,backOut:_m,anticipate:Em},Vd=e=>{if(Gl(e)){cc(e.length===4);const[t,n,s,r]=e;return Ai(t,n,s,r)}else if(typeof e=="string")return cc(Fd[e]!==void 0),Fd[e];return e};function A_(e,t,n){const s=[],r=n||Hm,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=A_(t,s,r),c=a.length,l=u=>{if(o&&u1)for(;dl(wn(e[0],e[i-1],u)):l}function P_(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=cr(0,t,s);e.push(Re(n,1,r))}}function N_(e){const t=[0];return P_(t,e.length-1),t}function j_(e,t){return e.map(n=>n*t)}function k_(e,t){return e.map(()=>t||Km).splice(0,e.length-1)}function xo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=T_(s)?s.map(Vd):Vd(s),i={done:!1,value:t[0]},o=j_(n&&n.length===t.length?n:N_(t),e),a=R_(o,t,{ease:Array.isArray(r)?r:k_(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const O_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>$n(t),now:()=>We.isProcessing?We.timestamp:rn.now()}},M_={decay:Id,inertia:Id,tween:xo,keyframes:xo,spring:Zm},D_=e=>e/100;class su extends Um{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:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||tu,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Kl(n)?n:M_[n]||xo;let c,l;a!==xo&&typeof t[0]!="number"&&(c=Ri(D_,Hm(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=zm(u));const{calculatedDuration:d}=u,h=d+r,y=h*(s+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:h,totalDuration:y}}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:s}=this;if(!s){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:m,repeatDelay:p,onUpdate:v}=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 x=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?x<0:x>u;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,_=i;if(y){const R=Math.min(this.currentTime,u)/d;let N=Math.floor(R),M=R%1;!M&&R>=1&&(M=1),M===1&&N--,N=Math.min(N,y+1),!!(N%2)&&(m==="reverse"?(M=1-M,p&&(M-=p/d)):m==="mirror"&&(_=o)),w=wn(0,1,M)*d}const S=b?{done:!1,value:c[0]}:_.next(w);a&&(S.value=a(S.value));let{done:A}=S;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&r!==void 0&&(S.value=na(c,this.options,r)),v&&v(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?bn(t.calculatedDuration):0}get time(){return bn(this.currentTime)}set time(t){t=xn(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=bn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=O_,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??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 L_=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=xm(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const F_=Zl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bo=10,V_=2e4;function B_(e){return Kl(e.type)||e.type==="spring"||!vm(e.ease)}function $_(e,t){const n=new su({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&yo()&&U_(i)&&(i=Gm[i]),B_(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:m,...p}=this.options,v=$_(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),s=v.duration,r=v.times,i=v.ease,o="keyframes"}const u=I_(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Td(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(na(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=xn(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:s}=n;s.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 vt;const{animation:s}=n;Td(s,t)}return vt}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:s,duration:r,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:h,...y}=this.options,m=new su({...y,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=xn(this.time);l.setWithVelocity(m.sample(p-bo).value,m.sample(p).value,bo)}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:s,repeatDelay:r,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 F_()&&s&&L_.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const z_={type:"spring",stiffness:500,damping:25,restSpeed:10},W_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),H_={type:"keyframes",duration:.8},q_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Z_=(e,{keyframes:t})=>t.length>2?H_:Ns.has(e)?e.startsWith("scale")?W_(t[1]):z_:q_;function K_({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ru=(e,t,n,s={},r,i)=>o=>{const a=zl(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-xn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};K_(a)||(u={...u,...Z_(e,u)}),u.duration&&(u.duration=xn(u.duration)),u.repeatDelay&&(u.repeatDelay=xn(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 h=na(u.keyframes,a);if(h!==void 0)return Ee.update(()=>{u.onUpdate(h),u.onComplete()}),new AS([])}return!i&&Bd.supports(u)?new Bd(u):new su(u)};function G_({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Qm(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in c){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=c[d];if(y===void 0||u&&G_(u,d))continue;const m={delay:n,...zl(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=gm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Ee);b!==null&&(m.startTime=b,p=!0)}}uc(e,d),h.start(ru(d,h,y,e.shouldReduceMotion&&pm.has(d)?{type:!1}:m,e,p));const v=h.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ee.update(()=>{a&&_S(e,a)})}),l}function xc(e,t,n={}){var s;const r=ta(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Qm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return Q_(e,t,u+l,d,h,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 Q_(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(X_).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(xc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function X_(e,t){return e.sortNodePosition(t)}function Y_(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>xc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=xc(e,t,n);else{const r=typeof t=="function"?ta(e,t,n.custom):t;s=Promise.all(Qm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const J_=Nl.length;function Xm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Xm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>Y_(e,n,s)))}function sC(e){let t=nC(e),n=$d(),s=!0;const r=c=>(l,u)=>{var d;const h=ta(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:m,...p}=h;l={...l,...p,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=Xm(e.parent)||{},d=[],h=new Set;let y={},m=1/0;for(let v=0;vm&&_,N=!1;const M=Array.isArray(w)?w:[w];let L=M.reduce(r(x),{});S===!1&&(L={});const{prevResolvedValues:O={}}=b,z={...O,...L},F=q=>{R=!0,h.has(q)&&(N=!0,h.delete(q)),b.needsAnimating[q]=!0;const Z=e.getValue(q);Z&&(Z.liveStyle=!1)};for(const q in z){const Z=L[q],re=O[q];if(y.hasOwnProperty(q))continue;let fe=!1;lc(Z)&&lc(re)?fe=!hm(Z,re):fe=Z!==re,fe?Z!=null?F(q):h.add(q):Z!==void 0&&h.has(q)?F(q):b.protectedKeys[q]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(y={...y,...L}),s&&e.blockInitialAnimation&&(R=!1),R&&(!(A&&E)||N)&&d.push(...M.map(q=>({animation:q,options:{type:x}})))}if(h.size){const v={};h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let p=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?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(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=$d(),s=!0}}}function rC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!hm(t,e):!1}function ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $d(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}class Qn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iC extends Qn{constructor(t){super(t),t.animationState||(t.animationState=sC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(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 oC=0;class aC extends Qn{constructor(){super(...arguments),this.id=oC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const cC={animation:{Feature:iC},exit:{Feature:aC}},kt={x:!1,y:!1};function Ym(){return kt.x||kt.y}function lC(e){return e==="x"||e==="y"?kt[e]?null:(kt[e]=!0,()=>{kt[e]=!1}):kt.x||kt.y?null:(kt.x=kt.y=!0,()=>{kt.x=kt.y=!1})}const iu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ei(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Pi(e){return{point:{x:e.pageX,y:e.pageY}}}const uC=e=>t=>iu(t)&&e(t,Pi(t));function Ur(e,t,n,s){return ei(e,t,uC(n),s)}const Ud=(e,t)=>Math.abs(e-t);function dC(e,t){const n=Ud(e.x,t.x),s=Ud(e.y,t.y);return Math.sqrt(n**2+s**2)}class Jm{constructor(t,n,{transformPagePoint:s,contextWindow:r,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=Ma(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=dC(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:m}=d,{timestamp:p}=We;this.history.push({...m,timestamp:p});const{onStart:v,onMove:x}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Oa(h,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ma(d.type==="pointercancel"?this.lastMoveEventInfo:Oa(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),m&&m(d,v)},!iu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=Pi(t),a=Oa(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=We;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Ma(a,this.history)),this.removeListeners=Ri(Ur(this.contextWindow,"pointermove",this.handlePointerMove),Ur(this.contextWindow,"pointerup",this.handlePointerUp),Ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$n(this.updatePoint)}}function Oa(e,t){return t?{point:t(e.point)}:e}function zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ma({point:e},t){return{point:e,delta:zd(e,eg(t)),offset:zd(e,fC(t)),velocity:hC(t,.1)}}function fC(e){return e[0]}function eg(e){return e[e.length-1]}function hC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=eg(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>xn(t)));)n--;if(!s)return{x:0,y:0};const i=bn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const tg=1e-4,pC=1-tg,mC=1+tg,ng=.01,gC=0-ng,yC=0+ng;function it(e){return e.max-e.min}function vC(e,t,n){return Math.abs(e-t)<=n}function Wd(e,t,n,s=.5){e.origin=s,e.originPoint=Re(t.min,t.max,e.origin),e.scale=it(n)/it(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=pC&&e.scale<=mC||isNaN(e.scale))&&(e.scale=1),(e.translate>=gC&&e.translate<=yC||isNaN(e.translate))&&(e.translate=0)}function zr(e,t,n,s){Wd(e.x,t.x,n.x,s?s.originX:void 0),Wd(e.y,t.y,n.y,s?s.originY:void 0)}function Hd(e,t,n){e.min=n.min+t.min,e.max=e.min+it(t)}function xC(e,t,n){Hd(e.x,t.x,n.x),Hd(e.y,t.y,n.y)}function qd(e,t,n){e.min=t.min-n.min,e.max=e.min+it(t)}function Wr(e,t,n){qd(e.x,t.x,n.x),qd(e.y,t.y,n.y)}function bC(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?Re(n,e,s.max):Math.min(e,n)),e}function Zd(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 wC(e,{top:t,left:n,bottom:s,right:r}){return{x:Zd(e.x,n,r),y:Zd(e.y,t,s)}}function Kd(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=cr(t.min,t.max-s,e.min):s>r&&(n=cr(e.min,e.max-r,t.min)),wn(0,1,n)}function CC(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 bc=.35;function EC(e=bc){return e===!1?e=0:e===!0&&(e=bc),{x:Gd(e,"left","right"),y:Gd(e,"top","bottom")}}function Gd(e,t,n){return{min:Qd(e,t),max:Qd(e,n)}}function Qd(e,t){return typeof e=="number"?e:e[t]||0}const Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vs=()=>({x:Xd(),y:Xd()}),Yd=()=>({min:0,max:0}),Me=()=>({x:Yd(),y:Yd()});function Et(e){return[e("x"),e("y")]}function sg({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function TC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function AC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Da(e){return e===void 0||e===1}function wc({scale:e,scaleX:t,scaleY:n}){return!Da(e)||!Da(t)||!Da(n)}function ns(e){return wc(e)||rg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rg(e){return Jd(e.x)||Jd(e.y)}function Jd(e){return e&&e!=="0%"}function wo(e,t,n){const s=e-n,r=t*s;return n+r}function ef(e,t,n,s,r){return r!==void 0&&(e=wo(e,r,s)),wo(e,n,s)+t}function Sc(e,t=0,n=1,s,r){e.min=ef(e.min,t,n,s,r),e.max=ef(e.max,t,n,s,r)}function ig(e,{x:t,y:n}){Sc(e.x,t.translate,t.scale,t.originPoint),Sc(e.y,n.translate,n.scale,n.originPoint)}const tf=.999999999999,nf=1.0000000000001;function RC(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;atf&&(t.x=1),t.ytf&&(t.y=1)}function Bs(e,t){e.min=e.min+t,e.max=e.max+t}function sf(e,t,n,s,r=.5){const i=Re(e.min,e.max,r);Sc(e,t,n,i,s)}function $s(e,t){sf(e.x,t.x,t.scaleX,t.scale,t.originX),sf(e.y,t.y,t.scaleY,t.scale,t.originY)}function og(e,t){return sg(AC(e.getBoundingClientRect(),t))}function PC(e,t,n){const s=og(e,n),{scroll:r}=t;return r&&(Bs(s.x,r.offset.x),Bs(s.y,r.offset.y)),s}const ag=({current:e})=>e?e.ownerDocument.defaultView:null,NC=new WeakMap;class jC{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=Me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pi(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:m}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lC(h),!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),Et(v=>{let x=this.getAxisMotionValue(v).get()||0;if(sn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=it(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&Ee.postRender(()=>m(u,d)),uc(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:m,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=kC(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),c=()=>Et(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 Jm(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ag(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Ee.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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Qi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=bC(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=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&&Is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=wC(r.layoutBox,n):this.constraints=!1,this.elastic=EC(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=CC(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Is(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=PC(s,r.root,this.visualElement.getTransformPagePoint());let o=SC(r.layout.layoutBox,i);if(n){const a=n(TC(o));this.hasMutatedConstraints=!!a,a&&(o=sg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Et(u=>{if(!Qi(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const h=r?200:1e6,y=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return uc(this.visualElement,t),s.start(ru(t,s,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(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()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Et(n=>{const{drag:s}=this.getProps();if(!Qi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Is(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=_C({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Et(o=>{if(!Qi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Re(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;NC.set(this.visualElement,this);const t=this.visualElement.current,n=Ur(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Is(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ee.read(s);const o=ei(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Et(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:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=bc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Qi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OC extends Qn{constructor(t){super(t),this.removeGroupControls=vt,this.removeListeners=vt,this.controls=new jC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vt}unmount(){this.removeGroupControls(),this.removeListeners()}}const rf=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class MC extends Qn{constructor(){super(...arguments),this.removePointerDownListener=vt}onPointerDown(t){this.session=new Jm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ag(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:rf(t),onStart:rf(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Ee.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Ur(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 ao={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function of(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=of(e,t.target.x),s=of(e,t.target.y);return`${n}% ${s}%`}},DC={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Un.parse(e);if(r.length>5)return s;const i=Un.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Re(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class LC extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;lS(IC),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ao.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),kl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cg(e){const[t,n]=Kp(),s=g.useContext(El);return f.jsx(LC,{...e,layoutGroup:s,switchLayoutGroup:g.useContext(tm),isPresent:t,safeToRemove:n})}const IC={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:DC};function FC(e,t,n){const s=Ye(e)?e:Yr(e);return s.start(ru("",s,t,n)),s.animation}function VC(e){return e instanceof SVGElement&&e.tagName!=="svg"}const BC=(e,t)=>e.depth-t.depth;class $C{constructor(){this.children=[],this.isDirty=!1}add(t){Wl(this.children,t),this.isDirty=!0}remove(t){Hl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(BC),this.isDirty=!1,this.children.forEach(t)}}function UC(e,t){const n=rn.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&($n(s),e(i-t))};return Ee.read(s,!0),()=>$n(s)}const lg=["TopLeft","TopRight","BottomLeft","BottomRight"],zC=lg.length,af=e=>typeof e=="string"?parseFloat(e):e,cf=e=>typeof e=="number"||ee.test(e);function WC(e,t,n,s,r,i){r?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,HC(s)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,qC(s))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ost?1:n(cr(e,t,s))}function uf(e,t){e.min=t.min,e.max=t.max}function Ct(e,t){uf(e.x,t.x),uf(e.y,t.y)}function df(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ff(e,t,n,s,r){return e-=t,e=wo(e,1/n,s),r!==void 0&&(e=wo(e,1/r,s)),e}function ZC(e,t=0,n=1,s=.5,r,i=e,o=e){if(sn.test(t)&&(t=parseFloat(t),t=Re(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Re(i.min,i.max,s);e===i&&(a-=t),e.min=ff(e.min,t,n,a,r),e.max=ff(e.max,t,n,a,r)}function hf(e,t,[n,s,r],i,o){ZC(e,t[n],t[s],t[r],t.scale,i,o)}const KC=["x","scaleX","originX"],GC=["y","scaleY","originY"];function pf(e,t,n,s){hf(e.x,t,KC,n?n.x:void 0,s?s.x:void 0),hf(e.y,t,GC,n?n.y:void 0,s?s.y:void 0)}function mf(e){return e.translate===0&&e.scale===1}function dg(e){return mf(e.x)&&mf(e.y)}function gf(e,t){return e.min===t.min&&e.max===t.max}function QC(e,t){return gf(e.x,t.x)&&gf(e.y,t.y)}function yf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fg(e,t){return yf(e.x,t.x)&&yf(e.y,t.y)}function vf(e){return it(e.x)/it(e.y)}function xf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class XC{constructor(){this.members=[]}add(t){Wl(this.members,t),t.scheduleRender()}remove(t){if(Hl(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(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function YC(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),y&&(s+=`skewX(${y}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const ss={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dr=typeof window<"u"&&window.MotionDebug!==void 0,La=["","X","Y","Z"],JC={visibility:"hidden"},bf=1e3;let eE=0;function Ia(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function hg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&hg(s)}function pg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=eE++,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,Dr&&(ss.totalNodes=ss.resolvedTargetDeltas=ss.recalculatedProjection=0),this.nodes.forEach(sE),this.nodes.forEach(cE),this.nodes.forEach(lE),this.nodes.forEach(rE),Dr&&window.MotionDebug.record(ss)},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=UC(h,250),ao.hasAnimatedSinceResize&&(ao.hasAnimatedSinceResize=!1,this.nodes.forEach(Sf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||pE,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!fg(this.targetLayout,m),w=!h&&y;if(this.options.layoutRoot||this.resumeFrom||w||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const _={...zl(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||Sf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,$n(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(uE),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&&hg(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&&!it(this.snapshot.measuredBox.x)&&!it(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 S=_/1e3;_f(d.x,o.x,S),_f(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fE(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&QC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),Ct(w,this.relativeTarget)),p&&(this.animationValues=u,WC(u,l,this.latestValues,S,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{ao.hasAnimatedSinceResize=!0,this.currentAnimation=FC(0,bf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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(bf),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&&mg(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Me();const d=it(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const h=it(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Ct(a,c),$s(a,u),zr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new XC),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&&Ia("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(wf),this.root.sharedNodes.clear()}}}function tE(e){e.updateLayout()}function nE(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:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=it(h);h.min=s[d].min,h.max=h.min+y}):mg(i,n.layoutBox,s)&&Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=it(s[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Vs();zr(a,s,n.layoutBox);const c=Vs();o?zr(c,e.applyTransform(r,!0),n.measuredBox):zr(c,s,n.layoutBox);const l=!dg(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:y}=d;if(h&&y){const m=Me();Wr(m,n.layoutBox,h.layoutBox);const p=Me();Wr(p,s,y.layoutBox),fg(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function sE(e){Dr&&ss.totalNodes++,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 rE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iE(e){e.clearSnapshot()}function wf(e){e.clearMeasurements()}function oE(e){e.isLayoutDirty=!1}function aE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cE(e){e.resolveTargetDelta()}function lE(e){e.calcProjection()}function uE(e){e.resetSkewAndRotation()}function dE(e){e.removeLeadSnapshot()}function _f(e,t,n){e.translate=Re(t.translate,0,n),e.scale=Re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cf(e,t,n,s){e.min=Re(t.min,n.min,s),e.max=Re(t.max,n.max,s)}function fE(e,t,n,s){Cf(e.x,t.x,n.x,s),Cf(e.y,t.y,n.y,s)}function hE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pE={duration:.45,ease:[.4,0,.1,1]},Ef=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tf=Ef("applewebkit/")&&!Ef("chrome/")?Math.round:vt;function Af(e){e.min=Tf(e.min),e.max=Tf(e.max)}function mE(e){Af(e.x),Af(e.y)}function mg(e,t,n){return e==="position"||e==="preserve-aspect"&&!vC(vf(t),vf(n),.2)}function gE(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yE=pg({attachResizeListener:(e,t)=>ei(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fa={current:void 0},gg=pg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fa.current){const e=new yE({});e.mount(window),e.setOptions({layoutScroll:!0}),Fa.current=e}return Fa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vE={pan:{Feature:MC},drag:{Feature:OC,ProjectionNode:gg,MeasureLayout:cg}};function xE(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function yg(e,t){const n=xE(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Rf(e){return!(e.pointerType==="touch"||Ym())}function bE(e,t,n={}){const[s,r,i]=yg(e,n),o=a=>{if(!Rf(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Rf(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Pf(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Ee.postRender(()=>i(t,Pi(t)))}class wE extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=bE(t,(n,s)=>(Pf(this.node,s,"Start"),r=>Pf(this.node,r,"End"))))}unmount(){}}class SE extends Qn{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=Ri(ei(this.node.current,"focus",()=>this.onFocus()),ei(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vg=(e,t)=>t?e===t?!0:vg(e,t.parentElement):!1,_E=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function CE(e){return _E.has(e.tagName)||e.tabIndex!==-1}const Lr=new WeakSet;function Nf(e){return t=>{t.key==="Enter"&&e(t)}}function Va(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const EE=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Nf(()=>{if(Lr.has(n))return;Va(n,"down");const r=Nf(()=>{Va(n,"up")}),i=()=>Va(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function jf(e){return iu(e)&&!Ym()}function TE(e,t,n={}){const[s,r,i]=yg(e,n),o=a=>{const c=a.currentTarget;if(!jf(a)||Lr.has(c))return;Lr.add(c);const l=t(c,a),u=(y,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!jf(y)||!Lr.has(c))&&(Lr.delete(c),typeof l=="function"&&l(y,{success:m}))},d=y=>{u(y,n.useGlobalTarget||vg(c,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return s.forEach(a=>{!CE(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>EE(l,r),r)}),i}function kf(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Ee.postRender(()=>i(t,Pi(t)))}class AE extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=TE(t,(n,s)=>(kf(this.node,s,"Start"),(r,{success:i})=>kf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _c=new WeakMap,Ba=new WeakMap,RE=e=>{const t=_c.get(e.target);t&&t(e)},PE=e=>{e.forEach(RE)};function NE({root:e,...t}){const n=e||document;Ba.has(n)||Ba.set(n,{});const s=Ba.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(PE,{root:e,...t})),s[r]}function jE(e,t,n){const s=NE(t);return _c.set(e,n),s.observe(e),()=>{_c.delete(e),s.unobserve(e)}}const kE={some:0,all:1};class OE extends Qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:kE[r]},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(),h=l?u:d;h&&h(c)};return jE(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(ME(t,n))&&this.startObserver()}unmount(){}}function ME({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DE={inView:{Feature:OE},tap:{Feature:AE},focus:{Feature:SE},hover:{Feature:wE}},LE={layout:{ProjectionNode:gg,MeasureLayout:cg}},Cc={current:null},xg={current:!1};function IE(){if(xg.current=!0,!!Rl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cc.current=e.matches;e.addListener(t),t()}else Cc.current=!1}const FE=[...Bm,Qe,Un],VE=e=>FE.find(Vm(e)),Of=new WeakMap;function BE(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Ye(r))e.addValue(s,r);else if(Ye(i))e.addValue(s,Yr(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,Yr(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $E{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,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=tu,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 y=rn.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),xg.current||IE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Of.delete(this.current),this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(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 s=Ns.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),s&&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,()=>{r(),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 ar){const n=ar[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(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):Me()}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 s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Yr(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Im(r)||Rm(r))?r=parseFloat(r):!VE(r)&&Un.test(n)&&(r=Mm(t,n)),this.setBaseTarget(t,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=Ml(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ql),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bg extends $E{constructor(){super(...arguments),this.KeyframeResolver=$m}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:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function UE(e){return window.getComputedStyle(e)}class zE extends bg{constructor(){super(...arguments),this.type="html",this.renderInstance=am}readValueFromInstance(t,n){if(Ns.has(n)){const s=eu(n);return s&&s.default||0}else{const s=UE(t),r=(Dl(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return og(t,n)}build(t,n,s){Fl(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Ul(t,n,s)}}class WE extends bg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ns.has(n)){const s=eu(n);return s&&s.default||0}return n=cm.has(n)?n:jl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return dm(t,n,s)}build(t,n,s){Vl(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){lm(t,n,s,r)}mount(t){this.isSVGTag=$l(t.tagName),super.mount(t)}}const HE=(e,t)=>Ol(e)?new WE(t):new zE(t,{allowProjection:e!==g.Fragment}),qE=vS({...cC,...DE,...vE,...LE},HE),Hr=O0(qE);var $a,Df;function ZE(){if(Df)return $a;Df=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof $i=="object"&&$i&&$i.Object===Object&&$i,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,h=d.toString,y=Math.max,m=Math.min,p=function(){return u.Date.now()};function v(S,A,E){var R,N,M,L,O,z,F=0,J=!1,X=!1,q=!0;if(typeof S!="function")throw new TypeError(e);A=_(A)||0,x(E)&&(J=!!E.leading,X="maxWait"in E,M=X?y(_(E.maxWait)||0,A):M,q="trailing"in E?!!E.trailing:q);function Z(ue){var ve=R,ke=N;return R=N=void 0,F=ue,L=S.apply(ke,ve),L}function re(ue){return F=ue,O=setTimeout(Be,A),J?Z(ue):L}function fe(ue){var ve=ue-z,ke=ue-F,Ie=A-ve;return X?m(Ie,M-ke):Ie}function ye(ue){var ve=ue-z,ke=ue-F;return z===void 0||ve>=A||ve<0||X&&ke>=M}function Be(){var ue=p();if(ye(ue))return Ze(ue);O=setTimeout(Be,fe(ue))}function Ze(ue){return O=void 0,q&&R?Z(ue):(R=N=void 0,L)}function Ke(){O!==void 0&&clearTimeout(O),F=0,R=z=N=O=void 0}function jt(){return O===void 0?L:Ze(p())}function tt(){var ue=p(),ve=ye(ue);if(R=arguments,N=this,z=ue,ve){if(O===void 0)return re(z);if(X)return O=setTimeout(Be,A),Z(z)}return O===void 0&&(O=setTimeout(Be,A)),L}return tt.cancel=Ke,tt.flush=jt,tt}function x(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&h.call(S)==n}function _(S){if(typeof S=="number")return S;if(w(S))return t;if(x(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=x(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):r.test(S)?t:+S}return $a=v,$a}ZE();var wg=typeof window<"u"?g.useLayoutEffect:g.useEffect,KE=typeof window>"u";function So(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>KE?t:window.matchMedia(a).matches,[r,i]=g.useState(()=>n?s(e):t);function o(){i(s(e))}return wg(()=>{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]),r}var GE=typeof window>"u";function QE(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=g.useState(!1),o=g.useRef(null),a=g.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const h=o.current===document.body?window.innerWidth:o.current.offsetWidth,y=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,m=h-o.current.scrollWidth;o.current.style.paddingRight=`${m+y}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return wg(()=>{if(!GE)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,s]),{isLocked:r,lock:c,unlock:l}}const jk=({className:e,stage:t})=>{const n=So("(min-width: 768px");return f.jsx("div",{className:e,children:f.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:f.jsxs("div",{className:"relative h-14 w-full",children:[f.jsx("div",{className:V("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),f.jsx(Hr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:V("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})}),f.jsx(Hr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:V("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),f.jsx(Hr.div,{className:V("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"}),f.jsx("div",{className:V("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"}),f.jsx("div",{className:V("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 Ni=e=>e.type==="checkbox",is=e=>e instanceof Date,rt=e=>e==null;const Sg=e=>typeof e=="object";var Le=e=>!rt(e)&&!Array.isArray(e)&&Sg(e)&&!is(e),_g=e=>Le(e)&&e.target?Ni(e.target)?e.target.checked:e.target.value:e,XE=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cg=(e,t)=>e.has(XE(t)),YE=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},ou=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(e){let t;const n=Array.isArray(e),s=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(!(ou&&(e instanceof Blob||s))&&(n||Le(e)))if(t=n?[]:{},!n&&!YE(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=lt(e[r]));else return e;return t}var sa=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,$=(e,t,n)=>{if(!t||!Le(e))return n;const s=sa(t.split(/[,[\].]+?/)).reduce((r,i)=>rt(r)?r:r[i],e);return De(s)||s===e?De(e[t])?n:e[t]:s},Rt=e=>typeof e=="boolean",au=e=>/^\w*$/.test(e),Eg=e=>sa(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=au(t)?[t]:Eg(t),i=r.length,o=i-1;for(;++sde.useContext(Tg),JE=e=>{const{children:t,...n}=e;return de.createElement(Tg.Provider,{value:n},t)};var Ag=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Lt.all&&(t._proxyFormState[o]=!s||Lt.all),n&&(n[o]=!0),e[o]}});return r},dt=e=>Le(e)&&!Object.keys(e).length,Rg=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return dt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||Lt.all))},qr=e=>Array.isArray(e)?e:[e],Pg=(e,t,n)=>!e||!t||e===t||qr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function cu(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 eT(e){const t=ra(),{control:n=t.control,disabled:s,name:r,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(r);return u.current=r,cu({disabled:s,next:d=>c.current&&Pg(u.current,d.name,i)&&Rg(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(()=>Ag(o,n,l.current,!1),[o,n])}var nn=e=>typeof e=="string",Ng=(e,t,n,s,r)=>nn(e)?(s&&t.watch.add(e),$(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),$(n,i))):(s&&(t.watchAll=!0),n);function tT(e){const t=ra(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=de.useRef(s);a.current=s,cu({disabled:i,subject:n._subjects.values,next:u=>{Pg(a.current,u.name,o)&&l(lt(Ng(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=de.useState(n._getWatch(s,r));return de.useEffect(()=>n._removeUnmounted()),c}function nT(e){const t=ra(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Cg(r._names.array,n),a=tT({control:r,name:n,defaultValue:$(r._formValues,n,$(r._defaultValues,n,e.defaultValue)),exact:!0}),c=eT({control:r,name:n,exact:!0}),l=de.useRef(r.register(n,{...e.rules,value:a,...Rt(e.disabled)?{disabled:e.disabled}:{}})),u=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!$(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$(c.validatingFields,n)},error:{enumerable:!0,get:()=>$(c.errors,n)}}),[c,n]),d=de.useMemo(()=>({name:n,value:a,...Rt(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:h=>l.current.onChange({target:{value:_g(h),name:n},type:_o.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:$(r._formValues,n),name:n},type:_o.BLUR}),ref:h=>{const y=$(r._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:m=>h.setCustomValidity(m),reportValidity:()=>h.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return de.useEffect(()=>{const h=r._options.shouldUnregister||i,y=(m,p)=>{const v=$(r._fields,m);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const m=lt($(r._options.defaultValues,n));xe(r._defaultValues,n,m),De($(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?h&&!r._state.action:h)?r.unregister(n):y(n,!1)}},[n,r,o,i]),de.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const sT=e=>e.render(nT(e));var jg=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},Lf=e=>({isOnSubmit:!e||e===Lt.onSubmit,isOnBlur:e===Lt.onBlur,isOnChange:e===Lt.onChange,isOnAll:e===Lt.all,isOnTouch:e===Lt.onTouched}),If=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Zr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=$(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Zr(a,t))break}else if(Le(a)&&Zr(a,t))break}}};var rT=(e,t,n)=>{const s=qr($(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},lu=e=>e.type==="file",tn=e=>typeof e=="function",Co=e=>{if(!ou)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},co=e=>nn(e),uu=e=>e.type==="radio",Eo=e=>e instanceof RegExp;const Ff={value:!1,isValid:!1},Vf={value:!0,isValid:!0};var kg=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&&!De(e[0].attributes.value)?De(e[0].value)||e[0].value===""?Vf:{value:e[0].value,isValid:!0}:Vf:Ff}return Ff};const Bf={isValid:!1,value:null};var Og=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Bf):Bf;function $f(e,t,n="validate"){if(co(e)||Array.isArray(e)&&e.every(co)||Rt(e)&&!e)return{type:n,message:co(e)?e:"",ref:t}}var Ds=e=>Le(e)&&!Eo(e)?e:{value:e,message:""},Uf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:h,pattern:y,validate:m,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=O=>{r&&w.reportValidity&&(w.setCustomValidity(Rt(O)?"":O||""),w.reportValidity())},S={},A=uu(o),E=Ni(o),R=A||E,N=(v||lu(o))&&De(o.value)&&De(b)||Co(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,M=jg.bind(null,p,s,S),L=(O,z,F,J=pn.maxLength,X=pn.minLength)=>{const q=O?z:F;S[p]={type:O?J:X,message:q,ref:o,...M(O?J:X,q)}};if(i?!Array.isArray(b)||!b.length:c&&(!R&&(N||rt(b))||Rt(b)&&!b||E&&!kg(a).isValid||A&&!Og(a).isValid)){const{value:O,message:z}=co(c)?{value:!!c,message:c}:Ds(c);if(O&&(S[p]={type:pn.required,message:z,ref:w,...M(pn.required,z)},!s))return _(z),S}if(!N&&(!rt(d)||!rt(h))){let O,z;const F=Ds(h),J=Ds(d);if(!rt(b)&&!isNaN(b)){const X=o.valueAsNumber||b&&+b;rt(F.value)||(O=X>F.value),rt(J.value)||(z=Xnew Date(new Date().toDateString()+" "+fe),Z=o.type=="time",re=o.type=="week";nn(F.value)&&b&&(O=Z?q(b)>q(F.value):re?b>F.value:X>new Date(F.value)),nn(J.value)&&b&&(z=Z?q(b)+O.value,J=!rt(z.value)&&b.length<+z.value;if((F||J)&&(L(F,O.message,z.message),!s))return _(S[p].message),S}if(y&&!N&&nn(b)){const{value:O,message:z}=Ds(y);if(Eo(O)&&!b.match(O)&&(S[p]={type:pn.pattern,message:z,ref:o,...M(pn.pattern,z)},!s))return _(z),S}if(m){if(tn(m)){const O=await m(b,n),z=$f(O,w);if(z&&(S[p]={...z,...M(pn.validate,z.message)},!s))return _(z.message),S}else if(Le(m)){let O={};for(const z in m){if(!dt(O)&&!s)break;const F=$f(await m[z](b,n),w,z);F&&(O={...F,...M(z,F.message)},_(F.message),s&&(S[p]=O))}if(!dt(O)&&(S[p]={ref:w,...O},!s))return S}}return _(!0),S};function iT(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},Ec=e=>rt(e)||!Sg(e);function kn(e,t){if(Ec(e)||Ec(t))return e===t;if(is(e)&&is(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(is(i)&&is(o)||Le(i)&&Le(o)||Array.isArray(i)&&Array.isArray(o)?!kn(i,o):i!==o)return!1}}return!0}var Mg=e=>e.type==="select-multiple",aT=e=>uu(e)||Ni(e),za=e=>Co(e)&&e.isConnected,Dg=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function To(e,t={}){const n=Array.isArray(e);if(Le(e)||n)for(const s in e)Array.isArray(e[s])||Le(e[s])&&!Dg(e[s])?(t[s]=Array.isArray(e[s])?[]:{},To(e[s],t[s])):rt(e[s])||(t[s]=!0);return t}function Lg(e,t,n){const s=Array.isArray(e);if(Le(e)||s)for(const r in e)Array.isArray(e[r])||Le(e[r])&&!Dg(e[r])?De(t)||Ec(n[r])?n[r]=Array.isArray(e[r])?To(e[r],[]):{...To(e[r])}:Lg(e[r],rt(t)?{}:t[r],n[r]):n[r]=!kn(e[r],t[r]);return n}var jr=(e,t)=>Lg(e,t,To(t)),Ig=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>De(e)?e:t?e===""?NaN:e&&+e:n&&nn(e)?new Date(e):s?s(e):e;function Wa(e){const t=e.ref;return lu(t)?t.files:uu(t)?Og(e.refs).value:Mg(t)?[...t.selectedOptions].map(({value:n})=>n):Ni(t)?kg(e.refs).value:Ig(De(t.value)?e.ref.value:t.value,e)}var cT=(e,t,n,s)=>{const r={};for(const i of e){const o=$(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},kr=e=>De(e)?e:Eo(e)?e.source:Le(e)?Eo(e.value)?e.value.source:e.value:e;const zf="AsyncFunction";var lT=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===zf||Le(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===zf)),uT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Wf(e,t,n){const s=$(e,n);if(s||au(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=$(t,i),a=$(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var dT=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,fT=(e,t)=>!sa($(e,t)).length&&$e(e,t);const hT={mode:Lt.onSubmit,reValidateMode:Lt.onChange,shouldFocusError:!0};function pT(e={}){let t={...hT,...e},n={submitCount:0,isDirty:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Le(t.defaultValues)||Le(t.values)?lt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:lt(r),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:Ua(),array:Ua(),state:Ua()},h=Lf(t.mode),y=Lf(t.reValidateMode),m=t.criteriaMode===Lt.all,p=C=>P=>{clearTimeout(l),l=setTimeout(C,P)},v=async C=>{if(!t.disabled&&(u.isValid||C)){const P=t.resolver?dt((await R()).errors):await M(s,!0);P!==n.isValid&&d.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(k=>{k&&(P?xe(n.validatingFields,k,P):$e(n.validatingFields,k))}),d.state.next({validatingFields:n.validatingFields,isValidating:!dt(n.validatingFields)}))},b=(C,P=[],k,U,B=!0,I=!0)=>{if(U&&k&&!t.disabled){if(o.action=!0,I&&Array.isArray($(s,C))){const Y=k($(s,C),U.argA,U.argB);B&&xe(s,C,Y)}if(I&&Array.isArray($(n.errors,C))){const Y=k($(n.errors,C),U.argA,U.argB);B&&xe(n.errors,C,Y),fT(n.errors,C)}if(u.touchedFields&&I&&Array.isArray($(n.touchedFields,C))){const Y=k($(n.touchedFields,C),U.argA,U.argB);B&&xe(n.touchedFields,C,Y)}u.dirtyFields&&(n.dirtyFields=jr(r,i)),d.state.next({name:C,isDirty:O(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,C,P)},w=(C,P)=>{xe(n.errors,C,P),d.state.next({errors:n.errors})},_=C=>{n.errors=C,d.state.next({errors:n.errors,isValid:!1})},S=(C,P,k,U)=>{const B=$(s,C);if(B){const I=$(i,C,De(k)?$(r,C):k);De(I)||U&&U.defaultChecked||P?xe(i,C,P?I:Wa(B._f)):J(C,I),o.mount&&v()}},A=(C,P,k,U,B)=>{let I=!1,Y=!1;const ae={name:C};if(!t.disabled){const Fe=!!($(s,C)&&$(s,C)._f&&$(s,C)._f.disabled);if(!k||U){u.isDirty&&(Y=n.isDirty,n.isDirty=ae.isDirty=O(),I=Y!==ae.isDirty);const Oe=Fe||kn($(r,C),P);Y=!!(!Fe&&$(n.dirtyFields,C)),Oe||Fe?$e(n.dirtyFields,C):xe(n.dirtyFields,C,!0),ae.dirtyFields=n.dirtyFields,I=I||u.dirtyFields&&Y!==!Oe}if(k){const Oe=$(n.touchedFields,C);Oe||(xe(n.touchedFields,C,k),ae.touchedFields=n.touchedFields,I=I||u.touchedFields&&Oe!==k)}I&&B&&d.state.next(ae)}return I?ae:{}},E=(C,P,k,U)=>{const B=$(n.errors,C),I=u.isValid&&Rt(P)&&n.isValid!==P;if(t.delayError&&k?(c=p(()=>w(C,k)),c(t.delayError)):(clearTimeout(l),c=null,k?xe(n.errors,C,k):$e(n.errors,C)),(k?!kn(B,k):B)||!dt(U)||I){const Y={...U,...I&&Rt(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...Y},d.state.next(Y)}},R=async C=>{x(C,!0);const P=await t.resolver(i,t.context,cT(C||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},N=async C=>{const{errors:P}=await R(C);if(C)for(const k of C){const U=$(P,k);U?xe(n.errors,k,U):$e(n.errors,k)}else n.errors=P;return P},M=async(C,P,k={valid:!0})=>{for(const U in C){const B=C[U];if(B){const{_f:I,...Y}=B;if(I){const ae=a.array.has(I.name),Fe=B._f&&lT(B._f);Fe&&u.validatingFields&&x([U],!0);const Oe=await Uf(B,a.disabled,i,m,t.shouldUseNativeValidation&&!P,ae);if(Fe&&u.validatingFields&&x([U]),Oe[I.name]&&(k.valid=!1,P))break;!P&&($(Oe,I.name)?ae?rT(n.errors,Oe,I.name):xe(n.errors,I.name,Oe[I.name]):$e(n.errors,I.name))}!dt(Y)&&await M(Y,P,k)}}return k.valid},L=()=>{for(const C of a.unMount){const P=$(s,C);P&&(P._f.refs?P._f.refs.every(k=>!za(k)):!za(P._f.ref))&&tt(C)}a.unMount=new Set},O=(C,P)=>!t.disabled&&(C&&P&&xe(i,C,P),!kn(ye(),r)),z=(C,P,k)=>Ng(C,a,{...o.mount?i:De(P)?r:nn(C)?{[C]:P}:P},k,P),F=C=>sa($(o.mount?i:r,C,t.shouldUnregister?$(r,C,[]):[])),J=(C,P,k={})=>{const U=$(s,C);let B=P;if(U){const I=U._f;I&&(!I.disabled&&xe(i,C,Ig(P,I)),B=Co(I.ref)&&rt(P)?"":P,Mg(I.ref)?[...I.ref.options].forEach(Y=>Y.selected=B.includes(Y.value)):I.refs?Ni(I.ref)?I.refs.length>1?I.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(B)?!!B.find(ae=>ae===Y.value):B===Y.value)):I.refs[0]&&(I.refs[0].checked=!!B):I.refs.forEach(Y=>Y.checked=Y.value===B):lu(I.ref)?I.ref.value="":(I.ref.value=B,I.ref.type||d.values.next({name:C,values:{...i}})))}(k.shouldDirty||k.shouldTouch)&&A(C,B,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&fe(C)},X=(C,P,k)=>{for(const U in P){const B=P[U],I=`${C}.${U}`,Y=$(s,I);(a.array.has(C)||Le(B)||Y&&!Y._f)&&!is(B)?X(I,B,k):J(I,B,k)}},q=(C,P,k={})=>{const U=$(s,C),B=a.array.has(C),I=lt(P);xe(i,C,I),B?(d.array.next({name:C,values:{...i}}),(u.isDirty||u.dirtyFields)&&k.shouldDirty&&d.state.next({name:C,dirtyFields:jr(r,i),isDirty:O(C,I)})):U&&!U._f&&!rt(I)?X(C,I,k):J(C,I,k),If(C,a)&&d.state.next({...n}),d.values.next({name:o.mount?C:void 0,values:{...i}})},Z=async C=>{o.mount=!0;const P=C.target;let k=P.name,U=!0;const B=$(s,k),I=()=>P.type?Wa(B._f):_g(C),Y=ae=>{U=Number.isNaN(ae)||is(ae)&&isNaN(ae.getTime())||kn(ae,$(i,k,ae))};if(B){let ae,Fe;const Oe=I(),qt=C.type===_o.BLUR||C.type===_o.FOCUS_OUT,Er=!uT(B._f)&&!t.resolver&&!$(n.errors,k)&&!B._f.deps||dT(qt,$(n.touchedFields,k),n.isSubmitted,y,h),Zt=If(k,a,qt);xe(i,k,Oe),qt?(B._f.onBlur&&B._f.onBlur(C),c&&c(0)):B._f.onChange&&B._f.onChange(C);const Jn=A(k,Oe,qt,!1),Tr=!dt(Jn)||Zt;if(!qt&&d.values.next({name:k,type:C.type,values:{...i}}),Er)return u.isValid&&(t.mode==="onBlur"&&qt?v():qt||v()),Tr&&d.state.next({name:k,...Zt?{}:Jn});if(!qt&&Zt&&d.state.next({...n}),t.resolver){const{errors:es}=await R([k]);if(Y(Oe),U){const va=Wf(n.errors,s,k),Vi=Wf(es,s,va.name||k);ae=Vi.error,k=Vi.name,Fe=dt(es)}}else x([k],!0),ae=(await Uf(B,a.disabled,i,m,t.shouldUseNativeValidation))[k],x([k]),Y(Oe),U&&(ae?Fe=!1:u.isValid&&(Fe=await M(s,!0)));U&&(B._f.deps&&fe(B._f.deps),E(k,Fe,ae,Jn))}},re=(C,P)=>{if($(n.errors,P)&&C.focus)return C.focus(),1},fe=async(C,P={})=>{let k,U;const B=qr(C);if(t.resolver){const I=await N(De(C)?C:B);k=dt(I),U=C?!B.some(Y=>$(I,Y)):k}else C?(U=(await Promise.all(B.map(async I=>{const Y=$(s,I);return await M(Y&&Y._f?{[I]:Y}:Y)}))).every(Boolean),!(!U&&!n.isValid)&&v()):U=k=await M(s);return d.state.next({...!nn(C)||u.isValid&&k!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:k}:{},errors:n.errors}),P.shouldFocus&&!U&&Zr(s,re,C?B:a.mount),U},ye=C=>{const P={...o.mount?i:r};return De(C)?P:nn(C)?$(P,C):C.map(k=>$(P,k))},Be=(C,P)=>({invalid:!!$((P||n).errors,C),isDirty:!!$((P||n).dirtyFields,C),error:$((P||n).errors,C),isValidating:!!$(n.validatingFields,C),isTouched:!!$((P||n).touchedFields,C)}),Ze=C=>{C&&qr(C).forEach(P=>$e(n.errors,P)),d.state.next({errors:C?n.errors:{}})},Ke=(C,P,k)=>{const U=($(s,C,{_f:{}})._f||{}).ref,B=$(n.errors,C)||{},{ref:I,message:Y,type:ae,...Fe}=B;xe(n.errors,C,{...Fe,...P,ref:U}),d.state.next({name:C,errors:n.errors,isValid:!1}),k&&k.shouldFocus&&U&&U.focus&&U.focus()},jt=(C,P)=>tn(C)?d.values.subscribe({next:k=>C(z(void 0,P),k)}):z(C,P,!0),tt=(C,P={})=>{for(const k of C?qr(C):a.mount)a.mount.delete(k),a.array.delete(k),P.keepValue||($e(s,k),$e(i,k)),!P.keepError&&$e(n.errors,k),!P.keepDirty&&$e(n.dirtyFields,k),!P.keepTouched&&$e(n.touchedFields,k),!P.keepIsValidating&&$e(n.validatingFields,k),!t.shouldUnregister&&!P.keepDefaultValue&&$e(r,k);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:O()}:{}}),!P.keepIsValid&&v()},ue=({disabled:C,name:P,field:k,fields:U})=>{(Rt(C)&&o.mount||C||a.disabled.has(P))&&(C?a.disabled.add(P):a.disabled.delete(P),A(P,Wa(k?k._f:$(U,P)._f),!1,!1,!0))},ve=(C,P={})=>{let k=$(s,C);const U=Rt(P.disabled)||Rt(t.disabled);return xe(s,C,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:C}},name:C,mount:!0,...P}}),a.mount.add(C),k?ue({field:k,disabled:Rt(P.disabled)?P.disabled:t.disabled,name:C}):S(C,!0,P.value),{...U?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:kr(P.min),max:kr(P.max),minLength:kr(P.minLength),maxLength:kr(P.maxLength),pattern:kr(P.pattern)}:{},name:C,onChange:Z,onBlur:Z,ref:B=>{if(B){ve(C,P),k=$(s,C);const I=De(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,Y=aT(I),ae=k._f.refs||[];if(Y?ae.find(Fe=>Fe===I):I===k._f.ref)return;xe(s,C,{_f:{...k._f,...Y?{refs:[...ae.filter(za),I,...Array.isArray($(r,C))?[{}]:[]],ref:{type:I.type,name:C}}:{ref:I}}}),S(C,!1,void 0,I)}else k=$(s,C,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(Cg(a.array,C)&&o.action)&&a.unMount.add(C)}}},ke=()=>t.shouldFocusError&&Zr(s,re,a.mount),Ie=C=>{Rt(C)&&(d.state.next({disabled:C}),Zr(s,(P,k)=>{const U=$(s,k);U&&(P.disabled=U._f.disabled||C,Array.isArray(U._f.refs)&&U._f.refs.forEach(B=>{B.disabled=U._f.disabled||C}))},0,!1))},we=(C,P)=>async k=>{let U;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let B=lt(i);if(a.disabled.size)for(const I of a.disabled)xe(B,I,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:Y}=await R();n.errors=I,B=Y}else await M(s);if($e(n.errors,"root"),dt(n.errors)){d.state.next({errors:{}});try{await C(B,k)}catch(I){U=I}}else P&&await P({...n.errors},k),ke(),setTimeout(ke);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dt(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(C,P={})=>{$(s,C)&&(De(P.defaultValue)?q(C,lt($(r,C))):(q(C,P.defaultValue),xe(r,C,lt(P.defaultValue))),P.keepTouched||$e(n.touchedFields,C),P.keepDirty||($e(n.dirtyFields,C),n.isDirty=P.defaultValue?O(C,lt($(r,C))):O()),P.keepError||($e(n.errors,C),u.isValid&&v()),d.state.next({...n}))},he=(C,P={})=>{const k=C?lt(C):r,U=lt(k),B=dt(C),I=B?r:U;if(P.keepDefaultValues||(r=k),!P.keepValues){if(P.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(jr(r,i))]);for(const ae of Array.from(Y))$(n.dirtyFields,ae)?xe(I,ae,$(i,ae)):q(ae,$(I,ae))}else{if(ou&&De(C))for(const Y of a.mount){const ae=$(s,Y);if(ae&&ae._f){const Fe=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Co(Fe)){const Oe=Fe.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?P.keepDefaultValues?lt(r):{}:lt(I),d.array.next({values:{...I}}),d.values.next({values:{...I}})}a={mount:P.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:B?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!kn(C,r)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:P.keepDirtyValues?P.keepDefaultValues&&i?jr(r,i):n.dirtyFields:P.keepDefaultValues&&C?jr(r,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(C,P)=>he(tn(C)?C(i):C,P);return{control:{register:ve,unregister:tt,getFieldState:Be,handleSubmit:we,setError:Ke,_executeSchema:R,_getWatch:z,_getDirty:O,_updateValid:v,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:F,_reset:he,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(C=>{Se(C,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:Ie,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(C){o=C},get _defaultValues(){return r},get _names(){return a},set _names(C){a=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:fe,register:ve,handleSubmit:we,watch:jt,setValue:q,getValues:ye,reset:Se,resetField:G,clearErrors:Ze,unregister:tt,setError:Ke,setFocus:(C,P={})=>{const k=$(s,C),U=k&&k._f;if(U){const B=U.refs?U.refs[0]:U.ref;B.focus&&(B.focus(),P.shouldSelect&&tn(B.select)&&B.select())}},getFieldState:Be}}function mT(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[s,r]=de.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...pT(e),formState:s});const i=t.current.control;return i._options=e,cu({subject:i._subjects.state,next:o=>{Rg(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),de.useEffect(()=>{e.values&&!kn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(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=Ag(s,i),t.current}var gT="Label",Fg=g.forwardRef((e,t)=>f.jsx(ct.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Fg.displayName=gT;var Vg=Fg;const yT=Qo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bg=g.forwardRef(({className:e,...t},n)=>f.jsx(Vg,{ref:n,className:V(yT(),e),...t}));Bg.displayName=Vg.displayName;const kk=JE,$g=g.createContext({}),vT=({...e})=>f.jsx($g.Provider,{value:{name:e.name},children:f.jsx(sT,{...e})}),ia=()=>{const e=g.useContext($g),t=g.useContext(Ug),{getFieldState:n,formState:s}=ra(),r=n(e.name,s);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`,...r}},Ug=g.createContext({}),zg=g.forwardRef(({className:e,...t},n)=>{const s=g.useId();return f.jsx(Ug.Provider,{value:{id:s},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});zg.displayName="FormItem";const Wg=g.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=ia();return f.jsx(Bg,{ref:n,className:V(s&&"text-destructive",e),htmlFor:r,...t})});Wg.displayName="FormLabel";const Hg=g.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=ia();return f.jsx(gr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});Hg.displayName="FormControl";const xT=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=ia();return f.jsx("p",{ref:n,id:s,className:V("text-[0.8rem] text-muted-foreground",e),...t})});xT.displayName="FormDescription";const qg=g.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=ia(),o=r?String(r==null?void 0:r.message):t;return o?f.jsx("p",{ref:s,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});qg.displayName="FormMessage";const Tc=g.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?f.jsx("input",{type:t,className:V("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:s,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:V("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),f.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:[f.jsx(gw,{className:"cursor-pointer",size:16})," Upload file"]})]}));Tc.displayName="Input";const Zg=g.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:V("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}));Zg.displayName="Textarea";const Ok=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:h=!1})=>f.jsx(vT,{control:e,name:t,render:({field:y})=>f.jsxs(zg,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(Wg,{className:V("text-xl",h&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(Hg,{children:f.jsx(f.Fragment,{children:c?f.jsx(Zg,{rows:3,...y,placeholder:s,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Tc,{...y,type:i,placeholder:s,disabled:a,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):f.jsxs("div",{className:"relative",children:[f.jsx(Tc,{type:"file",placeholder:s,onChange:m=>{var v;const p=((v=m.target.files)==null?void 0:v[0])||null;console.log("Выбранный файл:",p),y.onChange(p),d&&d(m)},disabled:a}),y.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",y.value.name]})]})})}),f.jsx(qg,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&h?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),Mk=({className:e,delay:t=.15})=>f.jsxs(Hr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:V("flex flex-col gap-8 my-16",e),children:[f.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),f.jsx(Ce,{className:"w-fit mx-auto",to:"/",children:f.jsx(ot,{variant:"outline",children:"Вернуться на главную"})})]}),bT=({className:e,slides:t,active:n,scrollTo:s})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>f.jsx("span",{onClick:()=>s==null?void 0:s(i),className:V(n===i?"dot-active":"dot")},i))}),wT=["top","right","bottom","left"],zn=Math.min,mt=Math.max,Ao=Math.round,Xi=Math.floor,on=e=>({x:e,y:e}),ST={left:"right",right:"left",bottom:"top",top:"bottom"},_T={start:"end",end:"start"};function Ac(e,t,n){return mt(e,zn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function wr(e){return e.split("-")[1]}function du(e){return e==="x"?"y":"x"}function fu(e){return e==="y"?"height":"width"}function Wn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function hu(e){return du(Wn(e))}function CT(e,t,n){n===void 0&&(n=!1);const s=wr(e),r=hu(e),i=fu(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ro(o)),[o,Ro(o)]}function ET(e){const t=Ro(e);return[Rc(e),t,Rc(t)]}function Rc(e){return e.replace(/start|end/g,t=>_T[t])}function TT(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function AT(e,t,n,s){const r=wr(e);let i=TT(_n(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(Rc)))),i}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>ST[t])}function RT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kg(e){return typeof e!="number"?RT(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function Hf(e,t,n){let{reference:s,floating:r}=e;const i=Wn(t),o=hu(t),a=fu(o),c=_n(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,h=s[a]/2-r[a]/2;let y;switch(c){case"top":y={x:u,y:s.y-r.height};break;case"bottom":y={x:u,y:s.y+s.height};break;case"right":y={x:s.x+s.width,y:d};break;case"left":y={x:s.x-r.width,y:d};break;default:y={x:s.x,y:s.y}}switch(wr(t)){case"start":y[o]-=h*(n&&l?-1:1);break;case"end":y[o]+=h*(n&&l?-1:1);break}return y}const PT=async(e,t,n)=>{const{placement:s="bottom",strategy:r="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:r}),{x:u,y:d}=Hf(l,s,c),h=s,y={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Sn(e,t)||{};if(l==null)return{};const d=Kg(u),h={x:n,y:s},y=hu(r),m=fu(y),p=await o.getDimensions(l),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[y]-h[y]-i.floating[m],S=h[y]-i.reference[y],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=A?A[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(A)))&&(E=a.floating[w]||i.floating[m]);const R=_/2-S/2,N=E/2-p[m]/2-1,M=zn(d[x],N),L=zn(d[b],N),O=M,z=E-p[m]-L,F=E/2-p[m]/2+R,J=Ac(O,F,z),X=!c.arrow&&wr(r)!=null&&F!==J&&i.reference[m]/2-(FF<=0)){var L,O;const F=(((L=i.flip)==null?void 0:L.index)||0)+1,J=E[F];if(J)return{data:{index:F,overflows:M},reset:{placement:J}};let X=(O=M.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:O.placement;if(!X)switch(y){case"bestFit":{var z;const q=(z=M.filter(Z=>{if(A){const re=Wn(Z.placement);return re===b||re==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,fe)=>re+fe,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:z[0];q&&(X=q);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}return{}}}};function qf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zf(e){return wT.some(t=>e[t]>=0)}const kT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=Sn(e,t);switch(s){case"referenceHidden":{const i=await ti(t,{...r,elementContext:"reference"}),o=qf(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Zf(o)}}}case"escaped":{const i=await ti(t,{...r,altBoundary:!0}),o=qf(i,n.floating);return{data:{escapedOffsets:o,escaped:Zf(o)}}}default:return{}}}}};async function OT(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=_n(n),a=wr(n),c=Wn(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Sn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),c?{x:y*u,y:h*l}:{x:h*l,y:y*u}}const MT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await OT(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},DT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=Sn(e,t),l={x:n,y:s},u=await ti(t,c),d=Wn(_n(r)),h=du(d);let y=l[h],m=l[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=Ac(b,y,w)}if(o){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=m+u[v],w=m-u[x];m=Ac(b,m,w)}const p=a.fn({...t,[h]:y,[d]:m});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[d]:o}}}}}},LT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Sn(e,t),u={x:n,y:s},d=Wn(r),h=du(d);let y=u[h],m=u[d];const p=Sn(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=h==="y"?"height":"width",_=i.reference[h]-i.floating[w]+v.mainAxis,S=i.reference[h]+i.reference[w]-v.mainAxis;y<_?y=_:y>S&&(y=S)}if(l){var x,b;const w=h==="y"?"width":"height",_=["top","left"].includes(_n(r)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),A=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);mA&&(m=A)}return{[h]:y,[d]:m}}}},IT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Sn(e,t),u=await ti(t,l),d=_n(r),h=wr(r),y=Wn(r)==="y",{width:m,height:p}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,v=h==="end"?"top":"bottom");const b=p-u.top-u.bottom,w=m-u.left-u.right,_=zn(p-u[v],b),S=zn(m-u[x],w),A=!t.middlewareData.shift;let E=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=b),A&&!h){const M=mt(u.left,0),L=mt(u.right,0),O=mt(u.top,0),z=mt(u.bottom,0);y?R=m-2*(M!==0||L!==0?M+L:mt(u.left,u.right)):E=p-2*(O!==0||z!==0?O+z:mt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:E});const N=await o.getDimensions(a.floating);return m!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function Sr(e){return Gg(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(Gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gg(e){return oa()?e instanceof Node||e instanceof xt(e).Node:!1}function Bt(e){return oa()?e instanceof Element||e instanceof xt(e).Element:!1}function cn(e){return oa()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function Kf(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function FT(e){return["table","td","th"].includes(Sr(e))}function aa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function pu(e){const t=mu(),n=Bt(e)?$t(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="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(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function VT(e){let t=Hn(e);for(;cn(t)&&!ur(t);){if(pu(t))return t;if(aa(t))return null;t=Hn(t)}return null}function mu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ur(e){return["html","body","#document"].includes(Sr(e))}function $t(e){return xt(e).getComputedStyle(e)}function ca(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kf(e)&&e.host||fn(e);return Kf(t)?t.host:t}function Qg(e){const t=Hn(e);return ur(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ji(t)?t:Qg(t)}function ni(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Qg(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=xt(r);if(i){const a=Pc(o);return t.concat(o,o.visualViewport||[],ji(r)?r:[],a&&n?ni(a):[])}return t.concat(r,ni(r,[],n))}function Pc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xg(e){const t=$t(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=cn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=Ao(n)!==i||Ao(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function gu(e){return Bt(e)?e:e.contextElement}function Hs(e){const t=gu(e);if(!cn(t))return on(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=Xg(t);let o=(i?Ao(n.width):n.width)/s,a=(i?Ao(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const BT=on(0);function Yg(e){const t=xt(e);return!mu()||!t.visualViewport?BT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $T(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function ws(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=gu(e);let o=on(1);t&&(s?Bt(s)&&(o=Hs(s)):o=Hs(e));const a=$T(i,n,s)?Yg(i):on(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const h=xt(i),y=s&&Bt(s)?xt(s):s;let m=h,p=Pc(m);for(;p&&s&&y!==m;){const v=Hs(p),x=p.getBoundingClientRect(),b=$t(p),w=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,_=x.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=w,l+=_,m=xt(p),p=Pc(m)}}return Po({width:u,height:d,x:c,y:l})}function yu(e,t){const n=ca(e).scrollLeft;return t?t.left+n:ws(fn(e)).left+n}function Jg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:yu(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function UT(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=fn(s),a=t?aa(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=on(1);const u=on(0),d=cn(s);if((d||!d&&!i)&&((Sr(s)!=="body"||ji(o))&&(c=ca(s)),cn(s))){const y=ws(s);l=Hs(s),u.x=y.x+s.clientLeft,u.y=y.y+s.clientTop}const h=o&&!d&&!i?Jg(o,c,!0):on(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}}function zT(e){return Array.from(e.getClientRects())}function WT(e){const t=fn(e),n=ca(e),s=e.ownerDocument.body,r=mt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=mt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+yu(e);const a=-n.scrollTop;return $t(s).direction==="rtl"&&(o+=mt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function HT(e,t){const n=xt(e),s=fn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=mu();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function qT(e,t){const n=ws(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=cn(e)?Hs(e):on(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Gf(e,t,n){let s;if(t==="viewport")s=HT(e,n);else if(t==="document")s=WT(fn(e));else if(Bt(t))s=qT(t,n);else{const r=Yg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Po(s)}function ey(e,t){const n=Hn(e);return n===t||!Bt(n)||ur(n)?!1:$t(n).position==="fixed"||ey(n,t)}function ZT(e,t){const n=t.get(e);if(n)return n;let s=ni(e,[],!1).filter(a=>Bt(a)&&Sr(a)!=="body"),r=null;const i=$t(e).position==="fixed";let o=i?Hn(e):e;for(;Bt(o)&&!ur(o);){const a=$t(o),c=pu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ji(o)&&!c&&ey(e,o))?s=s.filter(u=>u!==o):r=a,o=Hn(o)}return t.set(e,s),s}function KT(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?aa(t)?[]:ZT(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=Gf(t,u,r);return l.top=mt(d.top,l.top),l.right=zn(d.right,l.right),l.bottom=zn(d.bottom,l.bottom),l.left=mt(d.left,l.left),l},Gf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function GT(e){const{width:t,height:n}=Xg(e);return{width:t,height:n}}function QT(e,t,n){const s=cn(t),r=fn(t),i=n==="fixed",o=ws(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=on(0);if(s||!s&&!i)if((Sr(t)!=="body"||ji(r))&&(a=ca(t)),s){const h=ws(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else r&&(c.x=yu(r));const l=r&&!s&&!i?Jg(r,a):on(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 Ha(e){return $t(e).position==="static"}function Qf(e,t){if(!cn(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function ty(e,t){const n=xt(e);if(aa(e))return n;if(!cn(e)){let r=Hn(e);for(;r&&!ur(r);){if(Bt(r)&&!Ha(r))return r;r=Hn(r)}return n}let s=Qf(e,t);for(;s&&FT(s)&&Ha(s);)s=Qf(s,t);return s&&ur(s)&&Ha(s)&&!pu(s)?n:s||VT(e)||n}const XT=async function(e){const t=this.getOffsetParent||ty,n=this.getDimensions,s=await n(e.floating);return{reference:QT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function YT(e){return $t(e).direction==="rtl"}const JT={convertOffsetParentRelativeRectToViewportRelativeRect:UT,getDocumentElement:fn,getClippingRect:KT,getOffsetParent:ty,getElementRects:XT,getClientRects:zT,getDimensions:GT,getScale:Hs,isElement:Bt,isRTL:YT};function ny(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eA(e,t){let n=null,s;const r=fn(e);function i(){var a;clearTimeout(s),(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:h,height:y}=l;if(a||t(),!h||!y)return;const m=Xi(d),p=Xi(r.clientWidth-(u+h)),v=Xi(r.clientHeight-(d+y)),x=Xi(u),w={rootMargin:-m+"px "+-p+"px "+-v+"px "+-x+"px",threshold:mt(0,zn(1,c))||1};let _=!0;function S(A){const E=A[0].intersectionRatio;if(E!==c){if(!_)return o();E?o(!1,E):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!ny(l,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function tA(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=gu(e),u=r||i?[...l?ni(l):[],...ni(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=l&&a?eA(l,n):null;let h=-1,y=null;o&&(y=new ResizeObserver(x=>{let[b]=x;b&&b.target===l&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),y.observe(t));let m,p=c?ws(e):null;c&&v();function v(){const x=ws(e);p&&!ny(p,x)&&n(),p=x,m=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const nA=MT,sA=DT,rA=jT,iA=IT,oA=kT,Xf=NT,aA=LT,cA=(e,t,n)=>{const s=new Map,r={platform:JT,...n},i={...r.platform,_c:s};return PT(e,t,{...r,platform:i})};var lo=typeof document<"u"?g.useLayoutEffect:g.useEffect;function No(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,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!No(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!No(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function sy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yf(e,t){const n=sy(e);return Math.round(t*n)/n}function qa(e){const t=g.useRef(e);return lo(()=>{t.current=e}),t}function lA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=g.useState(s);No(h,s)||y(s);const[m,p]=g.useState(null),[v,x]=g.useState(null),b=g.useCallback(Z=>{Z!==A.current&&(A.current=Z,p(Z))},[]),w=g.useCallback(Z=>{Z!==E.current&&(E.current=Z,x(Z))},[]),_=i||m,S=o||v,A=g.useRef(null),E=g.useRef(null),R=g.useRef(u),N=c!=null,M=qa(c),L=qa(r),O=qa(l),z=g.useCallback(()=>{if(!A.current||!E.current)return;const Z={placement:t,strategy:n,middleware:h};L.current&&(Z.platform=L.current),cA(A.current,E.current,Z).then(re=>{const fe={...re,isPositioned:O.current!==!1};F.current&&!No(R.current,fe)&&(R.current=fe,fl.flushSync(()=>{d(fe)}))})},[h,t,n,L,O]);lo(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[l]);const F=g.useRef(!1);lo(()=>(F.current=!0,()=>{F.current=!1}),[]),lo(()=>{if(_&&(A.current=_),S&&(E.current=S),_&&S){if(M.current)return M.current(_,S,z);z()}},[_,S,z,M,N]);const J=g.useMemo(()=>({reference:A,floating:E,setReference:b,setFloating:w}),[b,w]),X=g.useMemo(()=>({reference:_,floating:S}),[_,S]),q=g.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const re=Yf(X.floating,u.x),fe=Yf(X.floating,u.y);return a?{...Z,transform:"translate("+re+"px, "+fe+"px)",...sy(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:fe}},[n,a,X.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:z,refs:J,elements:X,floatingStyles:q}),[u,z,J,X,q])}const uA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Xf({element:s.current,padding:r}).fn(n):{}:s?Xf({element:s,padding:r}).fn(n):{}}}},dA=(e,t)=>({...nA(e),options:[e,t]}),fA=(e,t)=>({...sA(e),options:[e,t]}),hA=(e,t)=>({...aA(e),options:[e,t]}),pA=(e,t)=>({...rA(e),options:[e,t]}),mA=(e,t)=>({...iA(e),options:[e,t]}),gA=(e,t)=>({...oA(e),options:[e,t]}),yA=(e,t)=>({...uA(e),options:[e,t]});var vA="Arrow",ry=g.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return f.jsx(ct.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});ry.displayName=vA;var xA=ry;function bA(e){const[t,n]=g.useState(void 0);return xs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[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 s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var vu="Popper",[iy,oy]=hl(vu),[wA,ay]=iy(vu),cy=e=>{const{__scopePopper:t,children:n}=e,[s,r]=g.useState(null);return f.jsx(wA,{scope:t,anchor:s,onAnchorChange:r,children:n})};cy.displayName=vu;var ly="PopperAnchor",uy=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=ay(ly,n),o=g.useRef(null),a=zt(t,o);return g.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:f.jsx(ct.div,{...r,ref:a})});uy.displayName=ly;var xu="PopperContent",[SA,_A]=iy(xu),dy=g.forwardRef((e,t)=>{var ue,ve,ke,Ie,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:m,...p}=e,v=ay(xu,n),[x,b]=g.useState(null),w=zt(t,he=>b(he)),[_,S]=g.useState(null),A=bA(_),E=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,N=s+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],O=L.length>0,z={padding:M,boundary:L.filter(EA),altBoundary:O},{refs:F,floatingStyles:J,placement:X,isPositioned:q,middlewareData:Z}=lA({strategy:"fixed",placement:N,whileElementsMounted:(...he)=>tA(...he,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[dA({mainAxis:r+R,alignmentAxis:o}),c&&fA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hA():void 0,...z}),c&&pA({...z}),mA({...z,apply:({elements:he,rects:Se,availableWidth:Ue,availableHeight:pt})=>{const{width:_t,height:C}=Se.reference,P=he.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${pt}px`),P.setProperty("--radix-popper-anchor-width",`${_t}px`),P.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&yA({element:_,padding:a}),TA({arrowWidth:E,arrowHeight:R}),h&&gA({strategy:"referenceHidden",...z})]}),[re,fe]=py(X),ye=Bn(m);xs(()=>{q&&(ye==null||ye())},[q,ye]);const Be=(ue=Z.arrow)==null?void 0:ue.x,Ze=(ve=Z.arrow)==null?void 0:ve.y,Ke=((ke=Z.arrow)==null?void 0:ke.centerOffset)!==0,[jt,tt]=g.useState();return xs(()=>{x&&tt(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jt,"--radix-popper-transform-origin":[(Ie=Z.transformOrigin)==null?void 0:Ie.x,(we=Z.transformOrigin)==null?void 0:we.y].join(" "),...((G=Z.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(SA,{scope:n,placedSide:re,onArrowChange:S,arrowX:Be,arrowY:Ze,shouldHideArrow:Ke,children:f.jsx(ct.div,{"data-side":re,"data-align":fe,...p,ref:w,style:{...p.style,animation:q?void 0:"none"}})})})});dy.displayName=xu;var fy="PopperArrow",CA={top:"bottom",right:"left",bottom:"top",left:"right"},hy=g.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=_A(fy,s),o=CA[i.placedSide];return f.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:f.jsx(xA,{...r,ref:n,style:{...r.style,display:"block"}})})});hy.displayName=fy;function EA(e){return e!==null}var TA=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:s,middlewareData:r}=t,o=((v=r.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=py(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=r.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",p="";return l==="bottom"?(m=o?d:`${h}px`,p=`${-c}px`):l==="top"?(m=o?d:`${h}px`,p=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,p=o?d:`${y}px`):l==="left"&&(m=`${s.floating.width+c}px`,p=o?d:`${y}px`),{data:{x:m,y:p}}}});function py(e){const[t,n="center"]=e.split("-");return[t,n]}var AA=cy,my=uy,RA=dy,PA=hy,bu="Popover",[gy,Dk]=hl(bu,[oy]),ki=oy(),[NA,Xn]=gy(bu),yy=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=ki(t),c=g.useRef(null),[l,u]=g.useState(!1),[d=!1,h]=Qh({prop:s,defaultProp:r,onChange:i});return f.jsx(AA,{...a,children:f.jsx(NA,{scope:t,contentId:no(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:l,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:o,children:n})})};yy.displayName=bu;var vy="PopoverAnchor",jA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(vy,n),i=ki(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return g.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(my,{...i,...s,ref:t})});jA.displayName=vy;var xy="PopoverTrigger",by=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(xy,n),i=ki(n),o=zt(t,r.triggerRef),a=f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ey(r.open),...s,ref:o,onClick:yt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(my,{asChild:!0,...i,children:a})});by.displayName=xy;var wu="PopoverPortal",[kA,OA]=gy(wu,{forceMount:void 0}),wy=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Xn(wu,t);return f.jsx(kA,{scope:t,forceMount:n,children:f.jsx(yr,{present:n||i.open,children:f.jsx(gl,{asChild:!0,container:r,children:s})})})};wy.displayName=wu;var dr="PopoverContent",Sy=g.forwardRef((e,t)=>{const n=OA(dr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Xn(dr,e.__scopePopover);return f.jsx(yr,{present:s||i.open,children:i.modal?f.jsx(MA,{...r,ref:t}):f.jsx(DA,{...r,ref:t})})});Sy.displayName=dr;var MA=g.forwardRef((e,t)=>{const n=Xn(dr,e.__scopePopover),s=g.useRef(null),r=zt(t,s),i=g.useRef(!1);return g.useEffect(()=>{const o=s.current;if(o)return lp(o)},[]),f.jsx(yl,{as:gr,allowPinchZoom:!0,children:f.jsx(_y,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:yt(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:yt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),DA=g.forwardRef((e,t)=>{const n=Xn(dr,e.__scopePopover),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(_y,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),_y=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Xn(dr,n),y=ki(n);return ep(),f.jsx(ml,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(pl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(RA,{"data-state":Ey(h.open),role:"dialog",id:h.contentId,...y,...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)"}})})})}),Cy="PopoverClose",LA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(Cy,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});LA.displayName=Cy;var IA="PopoverArrow",FA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=ki(n);return f.jsx(PA,{...r,...s,ref:t})});FA.displayName=IA;function Ey(e){return e?"open":"closed"}var VA=yy,BA=by,$A=wy,Ty=Sy;const Ay=VA,Ry=BA,Su=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>f.jsx($A,{children:f.jsx(Ty,{ref:r,align:t,sideOffset:n,className:V("z-50 w-32 rounded-[2px] 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),...s})}));Su.displayName=Ty.displayName;const Jf=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const h=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,h))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},UA=e=>e?Jf(e):Jf,zA=e=>e;function WA(e,t=zA){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const HA=e=>{const t=UA(e),n=s=>WA(t,s);return Object.assign(n,t),n},Py=e=>HA;function qA(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const Nc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return Nc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Nc(s)(n)}}}},ZA=(e,t)=>(n,s,r)=>{let i={storage:qA(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},s,r);const u=()=>{const p=i.partialize({...s()});return l.setItem(i.name,{state:p,version:i.version})},d=r.setState;r.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},s,r);r.getInitialState=()=>h;let y;const m=()=>{var p,v;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=s())!=null?p:h))||void 0;return Nc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(_=>[!0,_]):[!0,w]}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 w;const[_,S]=b;if(y=i.merge(S,(w=s())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=s(),o=!0,c.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||m(),y||h},KA=ZA;var Pt=(e=>(e.EN="en",e.RU="ru",e))(Pt||{});const Te=Py()(KA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),GA=[{lang:Pt.RU},{lang:Pt.EN}],eh=({className:e,light:t=!1})=>{const n=Te(o=>o.lang),s=Te(o=>o.setLang),[r,i]=g.useState(!1);return f.jsxs(Ay,{open:r,onOpenChange:()=>i(!r),children:[f.jsxs(Ry,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:n===Pt.RU?"/ru.svg":"/english.svg",alt:""}),n===Pt.RU?"Ру":"En",f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"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:t?"#fff":"#000"})})]}),f.jsx(Su,{className:"flex flex-col gap-6",children:GA.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[f.jsx("img",{src:o.lang===Pt.RU?"/ru.svg":"/english.svg",alt:"flag"}),f.jsx("h5",{children:o.lang===Pt.RU?"Русский":"English"})]},a))})]})},Ny=Tp,jy=Ap,QA=Rp,ky=g.forwardRef(({className:e,...t},n)=>f.jsx(qo,{ref:n,className:V("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}));ky.displayName=qo.displayName;const _u=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(QA,{children:[f.jsx(ky,{}),f.jsxs(Zo,{ref:s,className:V("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(Sl,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(_l,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_u.displayName=Zo.displayName;const XA=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));XA.displayName=Ko.displayName;const YA=g.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));YA.displayName=Go.displayName;const th=(e,t,n)=>{if(e&&"reportValidity"in e){const s=$(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Oy=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?th(s.ref,n,e):s.refs&&s.refs.forEach(r=>th(r,n,e))}},JA=(e,t)=>{t.shouldUseNativeValidation&&Oy(e,t);const n={};for(const s in e){const r=$(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(eR(t.names||Object.keys(e),s)){const o=Object.assign({},$(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},eR=(e,t)=>e.some(n=>n.startsWith(t+"."));var tR=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=jg(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},nR=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&Oy({},i),{errors:{},values:n.raw?s: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:JA(tR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ge;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ge||(ge={}));var jc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(jc||(jc={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},D=ge.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"]),sR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class bt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};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},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;cn.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}bt.create=e=>new bt(e);const fr=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ge.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ge.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ge.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ge.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.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}"`:ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.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 D.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 D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,ge.assertNever(e)}return{message:n}};let My=fr;function rR(e){My=e}function jo(){return My}const ko=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},iR=[];function W(e,t){const n=jo(),s=ko({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fr?void 0:fr].filter(r=>!!r)});e.common.issues.push(s)}class Je{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return se;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return Je.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return se;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const se=Object.freeze({status:"aborted"}),Us=e=>({status:"dirty",value:e}),at=e=>({status:"valid",value:e}),kc=e=>e.status==="aborted",Oc=e=>e.status==="dirty",Ss=e=>e.status==="valid",si=e=>typeof Promise<"u"&&e instanceof Promise;function Oo(e,t,n,s){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 Dy(e,t,n,s,r){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 Q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Q||(Q={}));var Ir,Fr;class ln{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}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 nh=(e,t)=>{if(Ss(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 bt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{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??s)!==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:r}}class le{get description(){return this._def.description}_getType(t){return yn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Je,ctx:{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(si(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 s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return nh(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return Ss(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>Ss(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={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:yn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(si(r)?r:Promise.resolve(r));return nh(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:D.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Ut({schema:this,typeName:te.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 an.create(this,this._def)}nullable(){return Gn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this)}promise(){return pr.create(this,this._def)}or(t){return ai.create([this,t],this._def)}and(t){return ci.create(this,t,this._def)}transform(t){return new Ut({...oe(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new hi({...oe(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new Cu({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new pi({...oe(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Oi.create(this,t)}readonly(){return mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oR=/^c[^\s-]{8,}$/i,aR=/^[0-9a-z]+$/,cR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lR=/^[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,uR=/^[a-z0-9_-]{21}$/i,dR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,fR=/^[-+]?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)?)??$/,hR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Za;const mR=/^(?:(?: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])$/,gR=/^(?:(?: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])$/,yR=/^(([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]))$/,vR=/^(([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])$/,xR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ly="((\\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])))",wR=new RegExp(`^${Ly}$`);function Iy(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 SR(e){return new RegExp(`^${Iy(e)}$`)}function Fy(e){let t=`${Ly}T${Iy(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 _R(e,t){return!!((t==="v4"||!t)&&mR.test(e)||(t==="v6"||!t)&&yR.test(e))}function CR(e,t){if(!dR.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function ER(e,t){return!!((t==="v4"||!t)&&gR.test(e)||(t==="v6"||!t)&&vR.test(e))}class It extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.string,received:i.parsedType}),se}const s=new Je;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(r),{validation:n,code:D.invalid_string,...Q.errToObj(s)})}_addCheck(t){return new It({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Q.errToObj(t)})}datetime(t){var n,s;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:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Q.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,...Q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Q.errToObj(n)})}nonempty(t){return this.min(1,Q.errToObj(t))}trim(){return new It({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new It({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new It({...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 It({checks:[],typeName:te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function TR(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class qn extends le{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)!==H.number){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.number,received:i.parsedType}),se}let s;const r=new Je;for(const i of this._def.checks)i.kind==="int"?ge.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?TR(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_finite,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.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"&&ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.valuenew qn({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Zn extends le{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)!==H.bigint)return this._getInvalidInput(t);let s;const r=new Je;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),se}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Zn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.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 Zn({checks:[],typeName:te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class ri extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.boolean,received:s.parsedType}),se}return at(t.data)}}ri.create=e=>new ri({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class _s extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.date,received:i.parsedType}),se}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),se}const s=new Je;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):ge.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new _s({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Q.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 _s({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class Mo extends le{_parse(t){if(this._getType(t)!==H.symbol){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.symbol,received:s.parsedType}),se}return at(t.data)}}Mo.create=e=>new Mo({typeName:te.ZodSymbol,...oe(e)});class ii extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.undefined,received:s.parsedType}),se}return at(t.data)}}ii.create=e=>new ii({typeName:te.ZodUndefined,...oe(e)});class oi extends le{_parse(t){if(this._getType(t)!==H.null){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.null,received:s.parsedType}),se}return at(t.data)}}oi.create=e=>new oi({typeName:te.ZodNull,...oe(e)});class hr extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return at(t.data)}}hr.create=e=>new hr({typeName:te.ZodAny,...oe(e)});class ys extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return at(t.data)}}ys.create=e=>new ys({typeName:te.ZodUnknown,...oe(e)});class Cn extends le{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.never,received:n.parsedType}),se}}Cn.create=e=>new Cn({typeName:te.ZodNever,...oe(e)});class Do extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.void,received:s.parsedType}),se}return at(t.data)}}Do.create=e=>new Do({typeName:te.ZodVoid,...oe(e)});class Ft extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),se;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.lengthr.maxLength.value&&(W(n,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new ln(n,o,n.path,a)))).then(o=>Je.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new ln(n,o,n.path,a)));return Je.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Ft({...this._def,minLength:{value:t,message:Q.toString(n)}})}max(t,n){return new Ft({...this._def,maxLength:{value:t,message:Q.toString(n)}})}length(t,n){return new Ft({...this._def,exactLength:{value:t,message:Q.toString(n)}})}nonempty(t){return this.min(1,t)}}Ft.create=(e,t)=>new Ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...oe(t)});function Ls(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=an.create(Ls(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Ls(e.element)}):e instanceof an?an.create(Ls(e.unwrap())):e instanceof Gn?Gn.create(Ls(e.unwrap())):e instanceof un?un.create(e.items.map(t=>Ls(t))):e}class Ae extends le{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=ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const l=this._getOrReturnCtx(t);return W(l,{code:D.invalid_type,expected:H.object,received:l.parsedType}),se}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ln(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof Cn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(l==="strict")a.length>0&&(W(r,{code:D.unrecognized_keys,keys:a}),s.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=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ln(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,h=await u.value;l.push({key:d,value:h,alwaysSet:u.alwaysSet})}return l}).then(l=>Je.mergeObjectSync(s,l)):Je.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=Q.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Ae({...this._def,unknownKeys:"strip"})}passthrough(){return new Ae({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ae({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ae({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return ge.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Ls(this)}partial(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof an;)i=i._def.innerType;n[s]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return Vy(ge.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});class ai extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(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 bt(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),se}if(n.common.async)return Promise.all(s.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(r);{let i;const o=[];for(const c of s){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 bt(c));return W(n,{code:D.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}ai.create=(e,t)=>new ai({options:e,typeName:te.ZodUnion,...oe(t)});const mn=e=>e instanceof ui?mn(e.schema):e instanceof Ut?mn(e.innerType()):e instanceof di?[e.value]:e instanceof Kn?e.options:e instanceof fi?ge.objectValues(e.enum):e instanceof hi?mn(e._def.innerType):e instanceof ii?[void 0]:e instanceof oi?[null]:e instanceof an?[void 0,...mn(e.unwrap())]:e instanceof Gn?[null,...mn(e.unwrap())]:e instanceof Cu||e instanceof mi?mn(e.unwrap()):e instanceof pi?mn(e._def.innerType):[];class la extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return W(n,{code:D.invalid_type,expected:H.object,received:n.parsedType}),se;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);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}):(W(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=mn(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(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new la({typeName:te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function Mc(e,t){const n=yn(e),s=yn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&s===H.object){const r=ge.objectKeys(t),i=ge.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=Mc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&s===H.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i{if(kc(i)||kc(o))return se;const a=Mc(i.value,o.value);return a.valid?((Oc(i)||Oc(o))&&n.dirty(),{status:n.value,value:a.data}):(W(s,{code:D.invalid_intersection_types}),se)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ci.create=(e,t,n)=>new ci({left:e,right:t,typeName:te.ZodIntersection,...oe(n)});class un extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.array)return W(s,{code:D.invalid_type,expected:H.array,received:s.parsedType}),se;if(s.data.lengththis._def.items.length&&(W(s,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new ln(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Je.mergeArray(n,o)):Je.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new un({...this._def,rest:t})}}un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new un({items:e,typeName:te.ZodTuple,rest:null,...oe(t)})};class li extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.object)return W(s,{code:D.invalid_type,expected:H.object,received:s.parsedType}),se;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new ln(s,a,s.path,a)),value:o._parse(new ln(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Je.mergeObjectAsync(n,r):Je.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new li({keyType:t,valueType:n,typeName:te.ZodRecord,...oe(s)}):new li({keyType:It.create(),valueType:t,typeName:te.ZodRecord,...oe(n)})}}class Lo extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.map)return W(s,{code:D.invalid_type,expected:H.map,received:s.parsedType}),se;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new ln(s,a,s.path,[l,"key"])),value:i._parse(new ln(s,c,s.path,[l,"value"]))}));if(s.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 se;(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 se;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Lo.create=(e,t,n)=>new Lo({valueType:t,keyType:e,typeName:te.ZodMap,...oe(n)});class Cs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.set)return W(s,{code:D.invalid_type,expected:H.set,received:s.parsedType}),se;const r=this._def;r.minSize!==null&&s.data.sizer.maxSize.value&&(W(s,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.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 se;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new ln(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Cs({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new Cs({...this._def,maxSize:{value:t,message:Q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Cs.create=(e,t)=>new Cs({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class qs extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.function)return W(n,{code:D.invalid_type,expected:H.function,received:n.parsedType}),se;function s(a,c){return ko({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),fr].filter(l=>!!l),issueData:{code:D.invalid_arguments,argumentsError:c}})}function r(a,c){return ko({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),fr].filter(l=>!!l),issueData:{code:D.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof pr){const a=this;return at(async function(...c){const l=new bt([]),u=await a._def.args.parseAsync(c,i).catch(y=>{throw l.addIssue(s(c,y)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(y=>{throw l.addIssue(r(d,y)),l})})}else{const a=this;return at(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new bt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new bt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new qs({...this._def,args:un.create(t).rest(ys.create())})}returns(t){return new qs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new qs({args:t||un.create([]).rest(ys.create()),returns:n||ys.create(),typeName:te.ZodFunction,...oe(s)})}}class ui extends le{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})}}ui.create=(e,t)=>new ui({getter:e,typeName:te.ZodLazy,...oe(t)});class di extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}di.create=(e,t)=>new di({value:e,typeName:te.ZodLiteral,...oe(t)});function Vy(e,t){return new Kn({values:e,typeName:te.ZodEnum,...oe(t)})}class Kn extends le{constructor(){super(...arguments),Ir.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{expected:ge.joinValues(s),received:n.parsedType,code:D.invalid_type}),se}if(Oo(this,Ir)||Dy(this,Ir,new Set(this._def.values)),!Oo(this,Ir).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:s}),se}return at(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 Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Ir=new WeakMap;Kn.create=Vy;class fi extends le{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){const n=ge.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=ge.objectValues(n);return W(s,{expected:ge.joinValues(r),received:s.parsedType,code:D.invalid_type}),se}if(Oo(this,Fr)||Dy(this,Fr,new Set(ge.getValidEnumValues(this._def.values))),!Oo(this,Fr).has(t.data)){const r=ge.objectValues(n);return W(s,{received:s.data,code:D.invalid_enum_value,options:r}),se}return at(t.data)}get enum(){return this._def.values}}Fr=new WeakMap;fi.create=(e,t)=>new fi({values:e,typeName:te.ZodNativeEnum,...oe(t)});class pr extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return W(n,{code:D.invalid_type,expected:H.promise,received:n.parsedType}),se;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return at(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}pr.create=(e,t)=>new pr({type:e,typeName:te.ZodPromise,...oe(t)});class Ut extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{W(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return se;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?se:c.status==="dirty"||n.value==="dirty"?Us(c.value):c});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?Us(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.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(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ss(o))return o;const a=r.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:s.data,path:s.path,parent:s}).then(o=>Ss(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ge.assertNever(r)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:te.ZodEffects,effect:t,...oe(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...oe(n)});class an extends le{_parse(t){return this._getType(t)===H.undefined?at(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:te.ZodOptional,...oe(t)});class Gn extends le{_parse(t){return this._getType(t)===H.null?at(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:te.ZodNullable,...oe(t)});class hi extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===H.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}hi.create=(e,t)=>new hi({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class pi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return si(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}pi.create=(e,t)=>new pi({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Io extends le{_parse(t){if(this._getType(t)!==H.nan){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.nan,received:s.parsedType}),se}return{status:"valid",value:t.data}}}Io.create=e=>new Io({typeName:te.ZodNaN,...oe(e)});const AR=Symbol("zod_brand");class Cu extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Oi extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),Us(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Oi({in:t,out:n,typeName:te.ZodPipeline})}}class mi extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(Ss(r)&&(r.value=Object.freeze(r.value)),r);return si(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}mi.create=(e,t)=>new mi({innerType:e,typeName:te.ZodReadonly,...oe(t)});function By(e,t={},n){return e?hr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):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;r.addIssue({code:"custom",...l,fatal:c})}}):hr.create()}const RR={object:Ae.lazycreate};var te;(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"})(te||(te={}));const PR=(e,t={message:`Input not instance of ${e.name}`})=>By(n=>n instanceof e,t),$y=It.create,Uy=qn.create,NR=Io.create,jR=Zn.create,zy=ri.create,kR=_s.create,OR=Mo.create,MR=ii.create,DR=oi.create,LR=hr.create,IR=ys.create,FR=Cn.create,VR=Do.create,BR=Ft.create,$R=Ae.create,UR=Ae.strictCreate,zR=ai.create,WR=la.create,HR=ci.create,qR=un.create,ZR=li.create,KR=Lo.create,GR=Cs.create,QR=qs.create,XR=ui.create,YR=di.create,JR=Kn.create,eP=fi.create,tP=pr.create,sh=Ut.create,nP=an.create,sP=Gn.create,rP=Ut.createWithPreprocess,iP=Oi.create,oP=()=>$y().optional(),aP=()=>Uy().optional(),cP=()=>zy().optional(),lP={string:e=>It.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>ri.create({...e,coerce:!0}),bigint:e=>Zn.create({...e,coerce:!0}),date:e=>_s.create({...e,coerce:!0})},uP=se;var rh=Object.freeze({__proto__:null,defaultErrorMap:fr,setErrorMap:rR,getErrorMap:jo,makeIssue:ko,EMPTY_PATH:iR,addIssueToContext:W,ParseStatus:Je,INVALID:se,DIRTY:Us,OK:at,isAborted:kc,isDirty:Oc,isValid:Ss,isAsync:si,get util(){return ge},get objectUtil(){return jc},ZodParsedType:H,getParsedType:yn,ZodType:le,datetimeRegex:Fy,ZodString:It,ZodNumber:qn,ZodBigInt:Zn,ZodBoolean:ri,ZodDate:_s,ZodSymbol:Mo,ZodUndefined:ii,ZodNull:oi,ZodAny:hr,ZodUnknown:ys,ZodNever:Cn,ZodVoid:Do,ZodArray:Ft,ZodObject:Ae,ZodUnion:ai,ZodDiscriminatedUnion:la,ZodIntersection:ci,ZodTuple:un,ZodRecord:li,ZodMap:Lo,ZodSet:Cs,ZodFunction:qs,ZodLazy:ui,ZodLiteral:di,ZodEnum:Kn,ZodNativeEnum:fi,ZodPromise:pr,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:an,ZodNullable:Gn,ZodDefault:hi,ZodCatch:pi,ZodNaN:Io,BRAND:AR,ZodBranded:Cu,ZodPipeline:Oi,ZodReadonly:mi,custom:By,Schema:le,ZodSchema:le,late:RR,get ZodFirstPartyTypeKind(){return te},coerce:lP,any:LR,array:BR,bigint:jR,boolean:zy,date:kR,discriminatedUnion:WR,effect:sh,enum:JR,function:QR,instanceof:PR,intersection:HR,lazy:XR,literal:YR,map:KR,nan:NR,nativeEnum:eP,never:FR,null:DR,nullable:sP,number:Uy,object:$R,oboolean:cP,onumber:aP,optional:nP,ostring:oP,pipeline:iP,preprocess:rP,promise:tP,record:ZR,set:GR,strictObject:UR,string:$y,symbol:OR,transformer:sh,tuple:qR,undefined:MR,union:zR,unknown:IR,void:VR,NEVER:uP,ZodIssueCode:D,quotelessJson:sR,ZodError:bt});const Ka=(e,t)=>Te(s=>s.lang)==="ru"?e:t;function Wy(e,t){return function(){return e.apply(t,arguments)}}const{toString:dP}=Object.prototype,{getPrototypeOf:Eu}=Object,ua=(e=>t=>{const n=dP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>ua(t)===e),da=e=>t=>typeof t===e,{isArray:_r}=Array,gi=da("undefined");function fP(e){return e!==null&&!gi(e)&&e.constructor!==null&&!gi(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hy=Ht("ArrayBuffer");function hP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hy(e.buffer),t}const pP=da("string"),wt=da("function"),qy=da("number"),fa=e=>e!==null&&typeof e=="object",mP=e=>e===!0||e===!1,uo=e=>{if(ua(e)!=="object")return!1;const t=Eu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gP=Ht("Date"),yP=Ht("File"),vP=Ht("Blob"),xP=Ht("FileList"),bP=e=>fa(e)&&wt(e.pipe),wP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=ua(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},SP=Ht("URLSearchParams"),[_P,CP,EP,TP]=["ReadableStream","Request","Response","Headers"].map(Ht),AP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),_r(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ky=e=>!gi(e)&&e!==os;function Dc(){const{caseless:e}=Ky(this)&&this||{},t={},n=(s,r)=>{const i=e&&Zy(t,r)||r;uo(t[i])&&uo(s)?t[i]=Dc(t[i],s):uo(s)?t[i]=Dc({},s):_r(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(Mi(t,(r,i)=>{n&&wt(r)?e[i]=Wy(r,n):e[i]=r},{allOwnKeys:s}),e),PP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Eu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},OP=e=>{if(!e)return null;if(_r(e))return e;let t=e.length;if(!qy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},MP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Eu(Uint8Array)),DP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},LP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},IP=Ht("HTMLFormElement"),FP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),ih=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VP=Ht("RegExp"),Gy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Mi(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},BP=e=>{Gy(e,(t,n)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(wt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$P=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return _r(e)?s(e):s(String(e).split(t)),n},UP=()=>{},zP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ga="abcdefghijklmnopqrstuvwxyz",oh="0123456789",Qy={DIGIT:oh,ALPHA:Ga,ALPHA_DIGIT:Ga+Ga.toUpperCase()+oh},WP=(e=16,t=Qy.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function HP(e){return!!(e&&wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qP=e=>{const t=new Array(10),n=(s,r)=>{if(fa(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=_r(s)?[]:{};return Mi(s,(o,a)=>{const c=n(o,r+1);!gi(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},ZP=Ht("AsyncFunction"),KP=e=>e&&(fa(e)||wt(e))&&wt(e.then)&&wt(e.catch),Xy=((e,t)=>e?setImmediate:t?((n,s)=>(os.addEventListener("message",({source:r,data:i})=>{r===os&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),os.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wt(os.postMessage)),GP=typeof queueMicrotask<"u"?queueMicrotask.bind(os):typeof process<"u"&&process.nextTick||Xy,j={isArray:_r,isArrayBuffer:Hy,isBuffer:fP,isFormData:wP,isArrayBufferView:hP,isString:pP,isNumber:qy,isBoolean:mP,isObject:fa,isPlainObject:uo,isReadableStream:_P,isRequest:CP,isResponse:EP,isHeaders:TP,isUndefined:gi,isDate:gP,isFile:yP,isBlob:vP,isRegExp:VP,isFunction:wt,isStream:bP,isURLSearchParams:SP,isTypedArray:MP,isFileList:xP,forEach:Mi,merge:Dc,extend:RP,trim:AP,stripBOM:PP,inherits:NP,toFlatObject:jP,kindOf:ua,kindOfTest:Ht,endsWith:kP,toArray:OP,forEachEntry:DP,matchAll:LP,isHTMLForm:IP,hasOwnProperty:ih,hasOwnProp:ih,reduceDescriptors:Gy,freezeMethods:BP,toObjectSet:$P,toCamelCase:FP,noop:UP,toFiniteNumber:zP,findKey:Zy,global:os,isContextDefined:Ky,ALPHABET:Qy,generateString:WP,isSpecCompliantForm:HP,toJSONObject:qP,isAsyncFn:ZP,isThenable:KP,setImmediate:Xy,asap:GP};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}j.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Yy=ie.prototype,Jy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jy[e]={value:e}});Object.defineProperties(ie,Jy);Object.defineProperty(Yy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(Yy);return j.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const QP=null;function Lc(e){return j.isPlainObject(e)||j.isArray(e)}function ev(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function ah(e,t,n){return e?e.concat(t).map(function(r,i){return r=ev(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function XP(e){return j.isArray(e)&&!e.some(Lc)}const YP=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function ha(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!j.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(j.isDate(m))return m.toISOString();if(!c&&j.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(m)||j.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let x=m;if(m&&!v&&typeof m=="object"){if(j.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(j.isArray(m)&&XP(m)||(j.isFileList(m)||j.endsWith(p,"[]"))&&(x=j.toArray(m)))return p=ev(p),x.forEach(function(w,_){!(j.isUndefined(w)||w===null)&&t.append(o===!0?ah([p],_,i):o===null?p:p+"[]",l(w))}),!1}return Lc(m)?!0:(t.append(ah(v,p,i),l(m)),!1)}const d=[],h=Object.assign(YP,{defaultVisitor:u,convertValue:l,isVisitable:Lc});function y(m,p){if(!j.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(m),j.forEach(m,function(x,b){(!(j.isUndefined(x)||x===null)&&r.call(t,x,j.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ch(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Tu(e,t){this._pairs=[],e&&ha(e,this,t)}const tv=Tu.prototype;tv.append=function(t,n){this._pairs.push([t,n])};tv.toString=function(t){const n=t?function(s){return t.call(this,s,ch)}:ch;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function JP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nv(e,t,n){if(!t)return e;const s=n&&n.encode||JP;j.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=j.isURLSearchParams(t)?t.toString():new Tu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class lh{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(s){s!==null&&t(s)})}}const sv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eN=typeof URLSearchParams<"u"?URLSearchParams:Tu,tN=typeof FormData<"u"?FormData:null,nN=typeof Blob<"u"?Blob:null,sN={isBrowser:!0,classes:{URLSearchParams:eN,FormData:tN,Blob:nN},protocols:["http","https","file","blob","url","data"]},Au=typeof window<"u"&&typeof document<"u",Ic=typeof navigator=="object"&&navigator||void 0,rN=Au&&(!Ic||["ReactNative","NativeScript","NS"].indexOf(Ic.product)<0),iN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oN=Au&&window.location.href||"http://localhost",aN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Au,hasStandardBrowserEnv:rN,hasStandardBrowserWebWorkerEnv:iN,navigator:Ic,origin:oN},Symbol.toStringTag,{value:"Module"})),Xe={...aN,...sN};function cN(e,t){return ha(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Xe.isNode&&j.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function lN(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uN(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&j.isArray(r)?r.length:o,c?(j.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!j.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&j.isArray(r[o])&&(r[o]=uN(r[o])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(s,r)=>{t(lN(s),r,n,0)}),n}return null}function dN(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Di={transitional:sv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=j.isObject(t);if(i&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return r?JSON.stringify(rv(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return cN(t,this.formSerializer).toString();if((a=j.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ha(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),dN(t)):t}],transformResponse:[function(t){const n=this.transitional||Di.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});const fN=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hN=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&fN[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},uh=Symbol("internals");function Or(e){return e&&String(e).trim().toLowerCase()}function fo(e){return e===!1||e==null?e:j.isArray(e)?e.map(fo):String(e)}function pN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const mN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qa(e,t,n,s,r){if(j.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!j.isString(t)){if(j.isString(s))return t.indexOf(s)!==-1;if(j.isRegExp(s))return s.test(t)}}function gN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function yN(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class ft{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Or(c);if(!u)throw new Error("header name must be a non-empty string");const d=j.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=fo(a))}const o=(a,c)=>j.forEach(a,(l,u)=>i(l,u,c));if(j.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(j.isString(t)&&(t=t.trim())&&!mN(t))o(hN(t),n);else if(j.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Or(t),t){const s=j.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return pN(r);if(j.isFunction(n))return n.call(this,r,s);if(j.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const s=j.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Qa(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Or(o),o){const a=j.findKey(s,o);a&&(!n||Qa(s,s[a],a,n))&&(delete s[a],r=!0)}}return j.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Qa(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return j.forEach(this,(r,i)=>{const o=j.findKey(s,i);if(o){n[o]=fo(r),delete n[i];return}const a=t?gN(i):String(i).trim();a!==i&&delete n[i],n[a]=fo(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&j.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[uh]=this[uh]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Or(o);s[a]||(yN(r,o),s[a]=!0)}return j.isArray(t)?t.forEach(i):i(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});j.freezeMethods(ft);function Xa(e,t){const n=this||Di,s=t||n,r=ft.from(s.headers);let i=s.data;return j.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function iv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits(Cr,ie,{__CANCEL__:!0});function ov(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xN(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,h=0;for(;d!==r;)h+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Fo=(e,t,n=3)=>{let s=0;const r=xN(50,250);return bN(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},dh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},fh=e=>(...t)=>j.asap(()=>e(...t)),wN=Xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,SN=Xe.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),j.isString(s)&&o.push("path="+s),j.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _N(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function av(e,t){return e&&!_N(t)?CN(e,t):t}const hh=e=>e instanceof ft?{...e}:e;function Es(e,t){t=t||{};const n={};function s(l,u,d,h){return j.isPlainObject(l)&&j.isPlainObject(u)?j.merge.call({caseless:h},l,u):j.isPlainObject(u)?j.merge({},u):j.isArray(u)?u.slice():u}function r(l,u,d,h){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l,d,h)}else return s(l,u,d,h)}function i(l,u){if(!j.isUndefined(u))return s(void 0,u)}function o(l,u){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>r(hh(l),hh(u),d,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,h=d(e[u],t[u],u);j.isUndefined(h)&&d!==a||(n[u]=h)}),n}const cv=e=>{const t=Es({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ft.from(o),t.url=nv(av(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(j.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Xe.hasStandardBrowserEnv&&(s&&j.isFunction(s)&&(s=s(t)),s||s!==!1&&wN(t.url))){const l=r&&i&&SN.read(i);l&&o.set(r,l)}return t},EN=typeof XMLHttpRequest<"u",TN=EN&&function(e){return new Promise(function(n,s){const r=cv(e);let i=r.data;const o=ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,h,y,m;function p(){y&&y(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function x(){if(!v)return;const w=ft.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};ov(function(E){n(E),p()},function(E){s(E),p()},S),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(s(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||sv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&j.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),j.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),l&&([h,m]=Fo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,y]=Fo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=w=>{v&&(s(!w||w.type?new Cr(null,e,v):w),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=vN(r.url);if(b&&Xe.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},AN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new Cr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>j.asap(a),c}},RN=function*(e,t){let n=e.byteLength;if(n{const r=PN(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lv=pa&&typeof ReadableStream=="function",jN=pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),uv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kN=lv&&uv(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mh=64*1024,Fc=lv&&uv(()=>j.isReadableStream(new Response("").body)),Vo={stream:Fc&&(e=>e.body)};pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vo[t]&&(Vo[t]=j.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const ON=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await jN(e)).byteLength},MN=async(e,t)=>{const n=j.toFiniteNumber(e.getContentLength());return n??ON(t)},DN=pa&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:h}=cv(e);l=l?(l+"").toLowerCase():"text";let y=AN([r,i&&i.toAbortSignal()],o),m;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(c&&kN&&n!=="get"&&n!=="head"&&(v=await MN(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(j.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[E,R]=dh(v,Fo(fh(c)));s=ph(S.body,mh,E,R)}}j.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:x?d:void 0});let b=await fetch(m);const w=Fc&&(l==="stream"||l==="response");if(Fc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const A=j.toFiniteNumber(b.headers.get("content-length")),[E,R]=a&&dh(A,Fo(fh(a),!0))||[];b=new Response(ph(b.body,mh,E,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Vo[j.findKey(Vo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,A)=>{ov(S,A,{data:_,headers:ft.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:x.cause||x}):ie.from(x,x&&x.code,e,m)}}),Vc={http:QP,xhr:TN,fetch:DN};j.forEach(Vc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gh=e=>`- ${e}`,LN=e=>j.isFunction(e)||e===null||e===!1,dv={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : -`+i.map(gh).join(` -`):" "+gh(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Vc};function Ya(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function yh(e){return Ya(e),e.headers=ft.from(e.headers),e.data=Xa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dv.getAdapter(e.adapter||Di.adapter)(e).then(function(s){return Ya(e),s.data=Xa.call(e,e.transformResponse,s),s.headers=ft.from(s.headers),s},function(s){return iv(s)||(Ya(e),s&&s.response&&(s.response.data=Xa.call(e,e.transformResponse,s.response),s.response.headers=ft.from(s.response.headers))),Promise.reject(s)})}const fv="1.7.9",ma={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ma[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const vh={};ma.transitional=function(t,n,s){function r(i,o){return"[Axios v"+fv+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!vh[o]&&(vh[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};ma.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function IN(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const ho={assertOptions:IN,validators:ma},Kt=ho.validators;class vs{constructor(t){this.defaults=t,this.interceptors={request:new lh,response:new lh}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Es(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&ho.assertOptions(s,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),r!=null&&(j.isFunction(r)?n.paramsSerializer={serialize:r}:ho.assertOptions(r,{encode:Kt.function,serialize:Kt.function},!0)),ho.assertOptions(n,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const m=[yh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ru(function(r){t=r}),cancel:t}}}function FN(e){return function(n){return e.apply(null,n)}}function VN(e){return j.isObject(e)&&e.isAxiosError===!0}const Bc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bc).forEach(([e,t])=>{Bc[t]=e});function hv(e){const t=new vs(e),n=Wy(vs.prototype.request,t);return j.extend(n,vs.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return hv(Es(e,r))},n}const Ve=hv(Di);Ve.Axios=vs;Ve.CanceledError=Cr;Ve.CancelToken=Ru;Ve.isCancel=iv;Ve.VERSION=fv;Ve.toFormData=ha;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=FN;Ve.isAxiosError=VN;Ve.mergeConfig=Es;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>rv(j.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=dv.getAdapter;Ve.HttpStatusCode=Bc;Ve.default=Ve;const et=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Lk=async e=>(await et.post("book_stand_form",e)).status===201,Ik=async e=>(await et.post("become_sponsor_form",e)).status===201,Fk=async e=>(await et.post("contact_form",e)).status===201,BN=async e=>(await et.post("subscribe_news_form",e)).status===201,$N=async(e,t)=>et.get(`pages/${t}`,{headers:{"Accept-Language":e}}),UN=async e=>et.get("stats",{headers:{"Accept-Language":e}}),zN=async e=>et.get("contact_data",{headers:{"Accept-Language":e}}),WN=async e=>et.get("industries",{headers:{"Accept-Language":e}}),HN=async e=>et.get("exhibition_time",{headers:{"Accept-Language":e}}),qN=async e=>et.get("news",{headers:{"Accept-Language":e}}),Vk=async(e,t)=>et.get(`news/${e}`,{headers:{"Accept-Language":t}}),Bk=async e=>et("participants",{headers:{"Accept-Language":e}}),ZN=async e=>et("photos/category/"+e),KN=async e=>et("videos/category/"+e),GN=async e=>et("sponsors_and_partners",{headers:{"Accept-Language":e}}),$k=async(e,t)=>et("designers/category/"+t,{headers:{"Accept-Language":e}}),QN=rh.object({email:rh.string().email()}),pv=({modal:e=!1})=>{var i,o;const[t,n]=g.useState(!1),s=mT({resolver:nR(QN),defaultValues:{email:""}});async function r(a){try{const c=await BN(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(qe,{className:V("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[f.jsx("h2",{className:"h2 !text-left",children:Ka("Подпишитесь на новости:","Subscribe to the news:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(ot,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Ka("Отправлено","Submitted"):Ka("Подписаться","Subscribe")})]})})},XN=({className:e,title:t})=>f.jsxs(Ny,{children:[f.jsx(jy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(_u,{children:f.jsx(pv,{className:"",modal:!0})})]}),Bo=Py()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),$o=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=g.useState(!1),a=Bo(c=>c.setSheet);return f.jsxs(Ay,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ry,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(mv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Su,{className:"w-fit px-0 bg-surface_container",children:t&&t.map((c,l)=>c.hover?f.jsx(ck,{setIsOpen:o,...c},l):c.link?f.jsxs(Ce,{to:c.link??"",onClick:()=>{o(!1),a(!1)},className:"h-14 px-3 flex gap-3 relative justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:c.blank?"_blank":void 0,rel:c.blank?"noopener noreferrer":void 0,children:[c.text,c.blank&&f.jsx("img",{src:"/pdf.svg"})]},l):c.modal?f.jsx(XN,{title:c.text},c.text):f.jsx("div",{className:"relative",children:f.jsx("div",{className:"h-14 px-3 py-2 flex items-center cursor-pointer hover:bg-slate-300/50 transition-all",onClick:()=>{o(!1),a(!1)},children:c.text})},l))})]})},mv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"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})})}),Yn=({className:e})=>f.jsx(qe,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Op,{className:"animate-spin mx-auto text-primary size-16"})});function YN(e){return Object.prototype.toString.call(e)==="[object Object]"}function xh(e){return YN(e)||Array.isArray(e)}function JN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Pu(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!xh(a)||!xh(c)?a===c:Pu(a,c)})}function bh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function e1(e,t){if(e.length!==t.length)return!1;const n=bh(e),s=bh(t);return n.every((r,i)=>{const o=s[i];return Pu(r,o)})}function Nu(e){return typeof e=="number"}function $c(e){return typeof e=="string"}function ga(e){return typeof e=="boolean"}function wh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function ju(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function t1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function n1(e){return Math.round(e*100)/100}function yi(e){return vi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function ku(e,t){return t===Li(e)}function Sh(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function vi(e){return Object.keys(e)}function gv(e,t){return[e,t].reduce((n,s)=>(vi(s).forEach(r=>{const i=n[r],o=s[r],a=wh(i)&&wh(o);n[r]=a?gv(i,o):o}),n),{})}function Uc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function s1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return $c(e)?n[e](c):e(t,c,l)}return{measure:o}}function xi(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function r1(e,t,n,s){const r=xi(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){y(),r.clear()}function d(v){if(!c)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function h(){c||(c=t.requestAnimationFrame(d))}function y(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:h,stop:y,update:n,render:s}}function i1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:p,width:v}=m;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Ts(e=0,t=0){const n=Pe(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(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:r,reachedMin:s,removeOffset:a}}function yv(e,t,n){const{constrain:s}=Ts(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return yv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function o1(e,t,n,s,r,i,o,a,c,l,u,d,h,y,m,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},E=xi(),R=xi(),N=Ts(50,225).constrain(y.measure(20)),M={mouse:300,touch:400},L={mouse:500,touch:600},O=m?43:25;let z=!1,F=0,J=0,X=!1,q=!1,Z=!1,re=!1;function fe(G){if(!b)return;function he(Ue){(ga(b)||b(G,Ue))&&tt(Ue)}const Se=t;E.add(Se,"dragstart",Ue=>Ue.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",he).add(Se,"mousedown",he).add(Se,"touchcancel",ve).add(Se,"contextmenu",ve).add(Se,"click",ke,!0)}function ye(){E.clear(),R.clear()}function Be(){const G=re?n:t;R.add(G,"touchmove",ue,A).add(G,"touchend",ve).add(G,"mousemove",ue,A).add(G,"mouseup",ve)}function Ze(G){const he=G.nodeName||"";return S.includes(he)}function Ke(){return(m?L:M)[re?"mouse":"touch"]}function jt(G,he){const Se=d.add(ju(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Pe(G)=2,!(he&&G.button!==0)&&(Ze(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),F=i.readPoint(G),J=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!Uc(G,s)&&G.touches.length>=2)return ve(G);const Se=i.readPoint(G),Ue=i.readPoint(G,w),pt=Kr(Se,F),_t=Kr(Ue,J);if(!q&&!re&&(!G.cancelable||(q=pt>_t,!q)))return ve(G);const C=i.pointerMove(G);pt>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(_(C)),G.preventDefault()}function ve(G){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ke(),pt=jt(_(Ue),Se),_t=t1(Ue,pt),C=O-10*_t,P=x+_t/50;q=!1,X=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(pt,!m),re=!1,h.emit("pointerUp")}function ke(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Ie(){return X}return{init:fe,destroy:ye,pointerDown:Ie}}function a1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const m=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(Uc(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const h=o(d)-o(r),y=i(d)-i(s)>170;return r=d,y&&(s=d),h}function l(d){if(!s||!r)return 0;const h=o(r)-o(s),y=i(d)-i(s),m=i(d)-i(r)>170,p=h/y;return y&&!m&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function c1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function l1(e){function t(s){return e*(s/100)}return{measure:t}}function u1(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function y(v){if(!i)return;l=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),A=_?l:u[S],E=h(_?e:s[S]);if(Pe(E-A)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ga(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:y,destroy:m}}function d1(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function h(){const A=s.get()-e.get(),E=!c;let R=0;return E?(o=0,n.set(s),e.set(s),R=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),R=u-d),a=ju(R),d=u,S}function y(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(A){return c=A,S}function _(A){return l=A,S}const S={direction:p,duration:m,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function f1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=Ts(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=Pe(e[m]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!y&&Pe(v){const{min:v,max:x}=i,b=i.constrain(m),w=!p,_=ku(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(m=>parseFloat(m.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:p}=a;return o.slice(m,p)}return{snapsContained:c,scrollContainLimit:a}}function p1(e,t,n){const s=t[0],r=n?s-e:Vt(t);return{limit:Ts(r,s)}}function m1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Ts(i,o);function l(h){return h===1?c(n.get()):h===-1?a(n.get()):!1}function u(h){if(!l(h))return;const y=e*(h*-1);s.forEach(m=>m.add(y))}return{loop:u}}function g1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function y1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=h(),u=y();function d(){return a(s).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function y(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function v1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,c).map((m,p,v)=>{const x=!p,b=ku(v,p);if(x){const w=Vt(v[0])+1;return Sh(w)}if(b){const w=Li(i)-Vt(v)[0]+1;return Sh(w,Vt(v)[0])}return m})}return{slideRegistry:l}}function x1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(m){const p=e?o(m):a(m),v=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:x}=v[0];return{index:x,distance:p}}function u(m,p){const v=[m,m+n,m-n];if(!e)return m;if(!p)return c(v);const x=v.filter(b=>ju(b)===p);return x.length?c(x):Vt(v)-n}function d(m,p){const v=t[m]-r.get(),x=u(v,p);return{index:m,distance:x}}function h(m,p){const v=r.get()+m,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:m};const _=t[x]-b,S=m+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function b1(e,t,n,s,r,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const y=r.byDistance(d,h);a(y)}function l(d,h){const y=t.clone().set(d),m=r.byIndex(y.get(),h);a(m)}return{distance:c,index:l}}function w1(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(y){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Nu(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ga(a)||a(y,x))&&m(v)},c)})}function d(y){y.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Vr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Nu(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function vv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const y=n1(e.direction(h));y!==r&&(s.transform=n(y),r=y)}function l(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function S1(e,t,n,s,r,i,o,a,c){const u=yi(r),d=yi(r).reverse(),h=x().concat(b());function y(E,R){return E.reduce((N,M)=>N-r[M],R)}function m(E,R){return E.reduce((N,M)=>y(N,R)>0?N.concat([M]):N,[])}function p(E){return i.map((R,N)=>({start:R-s[N]+.5+E,end:R+t-.5+E}))}function v(E,R,N){const M=p(R);return E.map(L=>{const O=N?0:-n,z=N?n:0,F=N?"end":"start",J=M[L][F];return{index:L,loopPoint:J,slideLocation:Vr(-1),translate:vv(e,c[L]),target:()=>a.get()>J?O:z}})}function x(){const E=o[0],R=m(d,E);return v(R,n,!1)}function b(){const E=t-o[0]-1,R=m(u,E);return v(R,-n,!0)}function w(){return h.every(({index:E})=>{const R=u.filter(N=>N!==E);return y(R,t)<=.1})}function _(){h.forEach(E=>{const{target:R,translate:N,slideLocation:M}=E,L=R();L!==M.get()&&(N.to(L),M.set(L))})}function S(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function _1(e,t,n){let s,r=!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}}s=new MutationObserver(u=>{r||(ga(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function C1(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return vi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(m&&b||!m&&!b)&&p.push(x),p},[])}function h(m=!0){if(m&&i)return i;if(!m&&o)return o;const p=d(m);return m&&(i=p),m||(o=p),p}return{init:l,destroy:u,get:h}}function E1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),h=n.map(o),y=v();function m(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Vt(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,A=ku(_,w);return S?h[w]+u:A?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function T1(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=Nu(n);function y(x,b){return yi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function m(x){return x.length?yi(x).reduce((b,w,_)=>{const S=Vt(b)||0,A=S===0,E=w===Li(x),R=r[l]-i[S][l],N=r[l]-i[w][u],M=!s&&A?d(o):0,L=!s&&E?d(a):0,O=Pe(N-L-(R+M));return _&&O>t+c&&b.push(w),E&&b.push(x.length),b},[]).map((b,w,_)=>{const S=Math.max(_[w-1]||0);return x.slice(S,b)}):[]}function p(x){return h?y(x,n):m(x)}return{groupSlides:p}}function A1(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:m,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:A}=i,E=2,R=c1(),N=R.measure(t),M=n.map(R.measure),L=i1(c,l),O=L.measureSize(N),z=l1(O),F=s1(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:fe}=E1(L,N,M,n,X,r),ye=T1(L,O,v,d,N,M,re,fe,E),{snaps:Be,snapsAligned:Ze}=y1(L,F,N,M,ye),Ke=-Vt(Be)+Vt(Z),{snapsContained:jt,scrollContainLimit:tt}=h1(O,Ke,Ze,b,E),ue=J?jt:Ze,{limit:ve}=p1(Ke,ue,d),ke=yv(Li(ue),u,d),Ie=ke.clone(),we=yi(n),G=({dragHandler:Zt,scrollBody:Jn,scrollBounds:Tr,options:{loop:es}})=>{es||Tr.constrain(Zt.pointerDown()),Jn.seek()},he=({scrollBody:Zt,translate:Jn,location:Tr,offsetLocation:es,previousLocation:va,scrollLooper:Vi,slideLooper:yx,dragHandler:vx,animation:xx,eventHandler:Wu,scrollBounds:bx,options:{loop:Hu}},qu)=>{const Zu=Zt.settled(),wx=!bx.shouldConstrain(),Ku=Hu?Zu:Zu&&wx;Ku&&!vx.pointerDown()&&(xx.stop(),Wu.emit("settle")),Ku||Wu.emit("scroll");const Sx=Tr.get()*qu+va.get()*(1-qu);es.set(Sx),Hu&&(Vi.loop(Zt.direction()),yx.loop()),Jn.to(es.get())},Se=r1(s,r,()=>G(Er),Zt=>he(Er,Zt)),Ue=.68,pt=ue[ke.get()],_t=Vr(pt),C=Vr(pt),P=Vr(pt),k=Vr(pt),U=d1(_t,P,C,k,h,Ue),B=x1(d,ue,Ke,ve,k),I=b1(Se,ke,Ie,U,B,k,o),Y=g1(ve),ae=xi(),Fe=C1(t,n,o,p),{slideRegistry:Oe}=v1(J,b,ue,tt,ye,we),qt=w1(e,n,Oe,I,U,ae,o,A),Er={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:M,animation:Se,axis:L,dragHandler:o1(L,e,s,r,k,a1(L,r),_t,Se,I,U,B,ke,o,z,y,m,x,Ue,S),eventStore:ae,percentOfView:z,index:ke,indexPrevious:Ie,limit:ve,location:_t,offsetLocation:P,previousLocation:C,options:i,resizeHandler:u1(t,o,r,n,L,w,R),scrollBody:U,scrollBounds:f1(ve,P,k,U,z),scrollLooper:m1(Ke,ve,P,[_t,P,C,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:B,scrollTo:I,slideLooper:S1(L,O,Ke,q,Z,Be,ue,P,n),slideFocus:qt,slidesHandler:_1(t,o,_),slidesInView:Fe,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:k,translate:vv(L,t)};return Er}function R1(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const P1={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 N1(e){function t(i,o){return gv(i,o||{})}function n(i){const o=i.breakpoints||{},a=vi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>vi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function j1(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 s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Uo(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=N1(r),o=j1(i),a=xi(),c=R1(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:m}=c,p=L;let v=!1,x,b=l(P1,Uo.globalOptions),w=l(b),_=[],S,A,E;function R(){const{container:we,slides:G}=w;A=($c(we)?e.querySelector(we):we)||e.children[0];const Se=$c(G)?A.querySelectorAll(G):G;E=[].slice.call(Se||A.children)}function N(we){const G=A1(e,A,E,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function M(we,G){v||(b=l(b,we),w=u(b),_=G||_,R(),x=N(w),d([b,..._.map(({options:he})=>he)]).forEach(he=>a.add(he,"change",L)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Ie),x.eventHandler.init(Ie),x.resizeHandler.init(Ie),x.slidesHandler.init(Ie),x.options.loop&&x.slideLooper.loop(),A.offsetParent&&E.length&&x.dragHandler.init(Ie),S=o.init(Ie,_)))}function L(we,G){const he=ye();O(),M(l({startIndex:he},we),G),c.emit("reInit")}function O(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function F(we,G,he){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(we,he||0))}function J(we){const G=x.index.add(1).get();F(G,we,-1)}function X(we){const G=x.index.add(-1).get();F(G,we,1)}function q(){return x.index.add(1).get()!==ye()}function Z(){return x.index.add(-1).get()!==ye()}function re(){return x.scrollSnapList}function fe(){return x.scrollProgress.get(x.location.get())}function ye(){return x.index.get()}function Be(){return x.indexPrevious.get()}function Ze(){return x.slidesInView.get()}function Ke(){return x.slidesInView.get(!1)}function jt(){return S}function tt(){return x}function ue(){return e}function ve(){return A}function ke(){return E}const Ie={canScrollNext:q,canScrollPrev:Z,containerNode:ve,internalEngine:tt,destroy:z,off:y,on:h,emit:m,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:fe,scrollSnapList:re,scrollTo:F,selectedScrollSnap:ye,slideNodes:ke,slidesInView:Ze,slidesNotInView:Ke};return M(t,n),setTimeout(()=>c.emit("init"),0),Ie}Uo.globalOptions=void 0;function En(e={},t=[]){const n=g.useRef(e),s=g.useRef(t),[r,i]=g.useState(),[o,a]=g.useState(),c=g.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return g.useEffect(()=>{Pu(n.current,e)||(n.current=e,c())},[e,c]),g.useEffect(()=>{e1(s.current,t)||(s.current=t,c())},[t,c]),g.useEffect(()=>{if(JN()&&o){Uo.globalOptions=En.globalOptions;const l=Uo(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}En.globalOptions=void 0;const k1=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],Uk=({className:e,setState:t,state:n,data:s=k1})=>{const r=Te(m=>m.lang),i=So("(min-width: 768px)"),[o,a]=g.useState({left:0,width:0}),[c,l]=En({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=g.useRef([]),d=g.useRef(null),h=g.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=m.offsetLeft;a({left:b-x,width:m.offsetWidth})}}},[n,i,l]);g.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),g.useEffect(()=>{if(l)return h(),l.on("scroll",h),l.on("resize",h),()=>{l.off("scroll",h),l.off("resize",h)}},[l,h]);const y=g.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return f.jsxs("div",{ref:d,className:V("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?f.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},zk=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Te(l=>l.lang);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:V("flex border-b md:hidden py-2 border-outline_v",e),children:[f.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),f.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),f.jsx("div",{className:"flex items-center gap-3",children:f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},As=typeof window>"u"||"Deno"in globalThis;function At(){}function O1(e,t){return typeof e=="function"?e(t):e}function zc(e){return typeof e=="number"&&e>=0&&e!==1/0}function xv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zs(e,t){return typeof e=="function"?e(t):e}function Dt(e,t){return typeof e=="function"?e(t):e}function _h(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==Ou(o,t.options))return!1}else if(!wi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Ch(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(bi(t.options.mutationKey)!==bi(i))return!1}else if(!wi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function Ou(e,t){return((t==null?void 0:t.queryKeyHashFn)||bi)(e)}function bi(e){return JSON.stringify(e,(t,n)=>Hc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function wi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!wi(e[n],t[n])):!1}function bv(e,t){if(e===t)return e;const n=Eh(e)&&Eh(t);if(n||Hc(e)&&Hc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function qc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bv(e,t):t}function D1(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function L1(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Mu=Symbol();function wv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var as,On,Ks,Vh,I1=(Vh=class extends Ii{constructor(){super();ne(this,as);ne(this,On);ne(this,Ks);K(this,Ks,t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,On)||this.setEventListener(T(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,On))==null||t.call(this),K(this,On,void 0))}setEventListener(t){var n;K(this,Ks,t),(n=T(this,On))==null||n.call(this),K(this,On,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,as)!==t&&(K(this,as,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,as)=="boolean"?T(this,as):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},as=new WeakMap,On=new WeakMap,Ks=new WeakMap,Vh),Du=new I1,Gs,Mn,Qs,Bh,F1=(Bh=class extends Ii{constructor(){super();ne(this,Gs,!0);ne(this,Mn);ne(this,Qs);K(this,Qs,t=>{if(!As&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,Mn)||this.setEventListener(T(this,Qs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Mn))==null||t.call(this),K(this,Mn,void 0))}setEventListener(t){var n;K(this,Qs,t),(n=T(this,Mn))==null||n.call(this),K(this,Mn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Gs)!==t&&(K(this,Gs,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Gs)}},Gs=new WeakMap,Mn=new WeakMap,Qs=new WeakMap,Bh),zo=new F1;function Zc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function V1(e){return Math.min(1e3*2**e,3e4)}function Sv(e){return(e??"online")==="online"?zo.isOnline():!0}var _v=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ja(e){return e instanceof _v}function Cv(e){let t=!1,n=0,s=!1,r;const i=Zc(),o=p=>{var v;s||(h(new _v(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>Du.isFocused()&&(e.networkMode==="always"||zo.isOnline())&&e.canRun(),u=()=>Sv(e.networkMode)&&e.canRun(),d=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),r==null||r(),i.resolve(p))},h=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),r==null||r(),i.reject(p))},y=()=>new Promise(p=>{var v;r=x=>{(s||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var A;if(s)return;const b=e.retry??(As?0:3),w=e.retryDelay??V1,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:y()).then(()=>{t?h(x):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():y().then(m),i)}}function B1(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var He=B1(),cs,$h,Ev=($h=class{constructor(){ne(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zc(this.gcTime)&&K(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(As?1/0:5*60*1e3))}clearGcTimeout(){T(this,cs)&&(clearTimeout(T(this,cs)),K(this,cs,void 0))}},cs=new WeakMap,$h),Xs,Ys,Tt,ls,Ge,Si,us,Ot,gn,Uh,$1=(Uh=class extends Ev{constructor(t){super();ne(this,Ot);ne(this,Xs);ne(this,Ys);ne(this,Tt);ne(this,ls);ne(this,Ge);ne(this,Si);ne(this,us);K(this,us,!1),K(this,Si,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ls,t.client),K(this,Tt,T(this,ls).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Xs,U1(this.options)),this.state=t.state??T(this,Xs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const s=qc(this.state.data,t,this.options);return pe(this,Ot,gn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){pe(this,Ot,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,Ge))==null?void 0:s.promise;return(r=T(this,Ge))==null||r.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Xs))}isActive(){return this.observers.some(t=>Dt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!xv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ge)&&(T(this,us)?T(this,Ge).cancel({revert:!0}):T(this,Ge).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Ot,gn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ge))return T(this,Ge).continueRetry(),T(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,us,!0),s.signal)})},i=()=>{const d=wv(this.options,n),h={client:T(this,ls),queryKey:this.queryKey,meta:this.meta};return r(h),K(this,us,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ls),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&pe(this,Ot,gn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,y,m,p;Ja(d)&&d.silent||pe(this,Ot,gn).call(this,{type:"error",error:d}),Ja(d)||((y=(h=T(this,Tt).config).onError)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ge,Cv({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var h,y,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){a(v);return}(y=(h=T(this,Tt).config).onSuccess)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{pe(this,Ot,gn).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{pe(this,Ot,gn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Ot,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,Ge).start()}},Xs=new WeakMap,Ys=new WeakMap,Tt=new WeakMap,ls=new WeakMap,Ge=new WeakMap,Si=new WeakMap,us=new WeakMap,Ot=new WeakSet,gn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Tv(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Ja(r)&&r.revert&&T(this,Ys)?{...T(this,Ys),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},Uh);function Tv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function U1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,zh,z1=(zh=class extends Ii{constructor(t={}){super();ne(this,Gt);this.config=t,K(this,Gt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??Ou(r,n);let o=this.get(i);return o||(o=new $1({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,Gt).has(t.queryHash)||(T(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Gt).get(t)}getAll(){return[...T(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>_h(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>_h(t,s)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,zh),Qt,nt,ds,Xt,jn,Wh,W1=(Wh=class extends Ev{constructor(t){super();ne(this,Xt);ne(this,Qt);ne(this,nt);ne(this,ds);this.mutationId=t.mutationId,K(this,nt,t.mutationCache),K(this,Qt,[]),this.state=t.state||H1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qt,T(this,Qt).filter(n=>n!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,h,y,m,p,v,x,b,w,_,S,A,E;K(this,ds,Cv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Xt,jn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Xt,jn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Xt,jn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ds).canStart();try{if(!n){pe(this,Xt,jn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,nt).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&pe(this,Xt,jn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const R=await T(this,ds).start();return await((l=(c=T(this,nt).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context)),await((y=(h=T(this,nt).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,R,null,t,this.state.context)),pe(this,Xt,jn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((x=(v=T(this,nt).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context)),await((S=(_=T(this,nt).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,R,t,this.state.context)),R}finally{pe(this,Xt,jn).call(this,{type:"error",error:R})}}finally{T(this,nt).runNext(this)}}},Qt=new WeakMap,nt=new WeakMap,ds=new WeakMap,Xt=new WeakSet,jn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{T(this,Qt).forEach(s=>{s.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},Wh);function H1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,_i,Hh,q1=(Hh=class extends Ii{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,_i);this.config=t,K(this,vn,new Set),K(this,Mt,new Map),K(this,_i,0)}build(t,n,s){const r=new W1({mutationCache:this,mutationId:++Bi(this,_i)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,vn).add(t);const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);s?s.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Yi(t);if(typeof n=="string"){const r=(s=T(this,Mt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ch(n,s))}findAll(t={}){return this.getAll().filter(n=>Ch(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},vn=new WeakMap,Mt=new WeakMap,_i=new WeakMap,Hh);function Yi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ah(e){return{onFetch:(t,n)=>{var u,d,h,y,m;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=wv(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};v(A);const E=await x(A),{maxPages:R}=t.options,N=S?L1:D1;return{pages:N(w.pages,E,R),pageParams:N(w.pageParams,_,R)}};if(r&&i.length){const w=r==="backward",_=w?Z1:Rh,S={pages:i,pageParams:o},A=_(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const _=c===0?o[0]??s.initialPageParam:Rh(s,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Rh(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Z1(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ne,Dn,Ln,Js,er,In,tr,nr,qh,Wk=(qh=class{constructor(e={}){ne(this,Ne);ne(this,Dn);ne(this,Ln);ne(this,Js);ne(this,er);ne(this,In);ne(this,tr);ne(this,nr);K(this,Ne,e.queryCache||new z1),K(this,Dn,e.mutationCache||new q1),K(this,Ln,e.defaultOptions||{}),K(this,Js,new Map),K(this,er,new Map),K(this,In,0)}mount(){Bi(this,In)._++,T(this,In)===1&&(K(this,tr,Du.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onFocus())})),K(this,nr,zo.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,In)._--,T(this,In)===0&&((e=T(this,tr))==null||e.call(this),K(this,tr,void 0),(t=T(this,nr))==null||t.call(this),K(this,nr,void 0))}isFetching(e){return T(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Dn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=O1(t,i);if(o!==void 0)return T(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>T(this,Ne).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ne);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ne),s={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=He.batch(()=>T(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>{if(T(this,Ne).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=He.batch(()=>T(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ne).build(this,t);return n.isStaleByTime(Zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Ah(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Ah(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zo.isOnline()?T(this,Dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ne)}getMutationCache(){return T(this,Dn)}getDefaultOptions(){return T(this,Ln)}setDefaultOptions(e){K(this,Ln,e)}setQueryDefaults(e,t){T(this,Js).set(bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Js).values()],n={};return t.forEach(s=>{wi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,er).set(bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,er).values()];let n={};return t.forEach(s=>{wi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ou(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Mu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ne).clear(),T(this,Dn).clear()}},Ne=new WeakMap,Dn=new WeakMap,Ln=new WeakMap,Js=new WeakMap,er=new WeakMap,In=new WeakMap,tr=new WeakMap,nr=new WeakMap,qh),ut,me,Ci,st,fs,sr,Fn,Yt,Ei,rr,ir,hs,ps,Vn,or,be,Br,Kc,Gc,Qc,Xc,Yc,Jc,el,Av,Zh,K1=(Zh=class extends Ii{constructor(t,n){super();ne(this,be);ne(this,ut);ne(this,me);ne(this,Ci);ne(this,st);ne(this,fs);ne(this,sr);ne(this,Fn);ne(this,Yt);ne(this,Ei);ne(this,rr);ne(this,ir);ne(this,hs);ne(this,ps);ne(this,Vn);ne(this,or,new Set);this.options=n,K(this,ut,t),K(this,Yt,null),K(this,Fn,Zc()),this.options.experimental_prefetchInRender||T(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),Ph(T(this,me),this.options)?pe(this,be,Br).call(this):this.updateResult(),pe(this,be,Xc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tl(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tl(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Yc).call(this),pe(this,be,Jc).call(this),T(this,me).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,me);if(this.options=T(this,ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,T(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,el).call(this),T(this,me).setOptions(this.options),s._defaulted&&!Wc(this.options,s)&&T(this,ut).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&Nh(T(this,me),r,this.options,s)&&pe(this,be,Br).call(this),this.updateResult(n),i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||Zs(this.options.staleTime,T(this,me))!==Zs(s.staleTime,T(this,me)))&&pe(this,be,Kc).call(this);const o=pe(this,be,Gc).call(this);i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||o!==T(this,Vn))&&pe(this,be,Qc).call(this,o)}getOptimisticResult(t){const n=T(this,ut).getQueryCache().build(T(this,ut),t),s=this.createResult(n,t);return Q1(this,s)&&(K(this,st,s),K(this,sr,this.options),K(this,fs,T(this,me).state)),s}getCurrentResult(){return T(this,st)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,or).add(t)}getCurrentQuery(){return T(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,ut).defaultQueryOptions(t),s=T(this,ut).getQueryCache().build(T(this,ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return pe(this,be,Br).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,st)))}createResult(t,n){var R;const s=T(this,me),r=this.options,i=T(this,st),o=T(this,fs),a=T(this,sr),l=t!==s?t.state:T(this,Ci),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&Ph(t,n),L=N&&Nh(t,s,n,r);(M||L)&&(d={...d,...Tv(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:v}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,Ei))y=T(this,rr);else try{K(this,Ei,n.select),y=n.select(d.data),y=qc(i==null?void 0:i.data,y,n),K(this,rr,y),K(this,Yt,null)}catch(N){K(this,Yt,N)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,ir))==null?void 0:R.state.data,T(this,ir)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),K(this,Yt,null)}catch(M){K(this,Yt,M)}N!==void 0&&(v="success",y=qc(i==null?void 0:i.data,N,n),h=!0)}T(this,Yt)&&(m=T(this,Yt),y=T(this,rr),p=Date.now(),v="error");const x=d.fetchStatus==="fetching",b=v==="pending",w=v==="error",_=b&&x,S=y!==void 0,E={status:v,fetchStatus:d.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&S,isStale:Lu(t,n),refetch:this.refetch,promise:T(this,Fn)};if(this.options.experimental_prefetchInRender){const N=O=>{E.status==="error"?O.reject(E.error):E.data!==void 0&&O.resolve(E.data)},M=()=>{const O=K(this,Fn,E.promise=Zc());N(O)},L=T(this,Fn);switch(L.status){case"pending":t.queryHash===s.queryHash&&N(L);break;case"fulfilled":(E.status==="error"||E.data!==L.value)&&M();break;case"rejected":(E.status!=="error"||E.error!==L.reason)&&M();break}}return E}updateResult(t){const n=T(this,st),s=this.createResult(T(this,me),this.options);if(K(this,fs,T(this,me).state),K(this,sr,this.options),T(this,fs).data!==void 0&&K(this,ir,T(this,me)),Wc(s,n))return;K(this,st,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,or).size)return!0;const c=new Set(a??T(this,or));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,st)).some(l=>{const u=l;return T(this,st)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),pe(this,be,Av).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,Xc).call(this)}},ut=new WeakMap,me=new WeakMap,Ci=new WeakMap,st=new WeakMap,fs=new WeakMap,sr=new WeakMap,Fn=new WeakMap,Yt=new WeakMap,Ei=new WeakMap,rr=new WeakMap,ir=new WeakMap,hs=new WeakMap,ps=new WeakMap,Vn=new WeakMap,or=new WeakMap,be=new WeakSet,Br=function(t){pe(this,be,el).call(this);let n=T(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(At)),n},Kc=function(){pe(this,be,Yc).call(this);const t=Zs(this.options.staleTime,T(this,me));if(As||T(this,st).isStale||!zc(t))return;const s=xv(T(this,st).dataUpdatedAt,t)+1;K(this,hs,setTimeout(()=>{T(this,st).isStale||this.updateResult()},s))},Gc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)??!1},Qc=function(t){pe(this,be,Jc).call(this),K(this,Vn,t),!(As||Dt(this.options.enabled,T(this,me))===!1||!zc(T(this,Vn))||T(this,Vn)===0)&&K(this,ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Du.isFocused())&&pe(this,be,Br).call(this)},T(this,Vn)))},Xc=function(){pe(this,be,Kc).call(this),pe(this,be,Qc).call(this,pe(this,be,Gc).call(this))},Yc=function(){T(this,hs)&&(clearTimeout(T(this,hs)),K(this,hs,void 0))},Jc=function(){T(this,ps)&&(clearInterval(T(this,ps)),K(this,ps,void 0))},el=function(){const t=T(this,ut).getQueryCache().build(T(this,ut),this.options);if(t===T(this,me))return;const n=T(this,me);K(this,me,t),K(this,Ci,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Av=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,st))}),T(this,ut).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},Zh);function G1(e,t){return Dt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ph(e,t){return G1(e,t)||e.state.data!==void 0&&tl(e,t,t.refetchOnMount)}function tl(e,t,n){if(Dt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Lu(e,t)}return!1}function Nh(e,t,n,s){return(e!==t||Dt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Lu(e,n)}function Lu(e,t){return Dt(t.enabled,e)!==!1&&e.isStaleByTime(Zs(t.staleTime,e))}function Q1(e,t){return!Wc(e.getCurrentResult(),t)}var Rv=g.createContext(void 0),X1=e=>{const t=g.useContext(Rv);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hk=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Rv.Provider,{value:e,children:t})),Pv=g.createContext(!1),Y1=()=>g.useContext(Pv);Pv.Provider;function J1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ej=g.createContext(J1()),tj=()=>g.useContext(ej);function nj(e,t){return typeof e=="function"?e(...t):!!e}function jh(){}var sj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rj=e=>{g.useEffect(()=>{e.clearReset()},[e])},ij=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||nj(n,[e.error,s])),oj=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},aj=(e,t)=>e.isLoading&&e.isFetching&&!t,cj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,kh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lj(e,t,n){var d,h,y,m,p;const s=X1(),r=Y1(),i=tj(),o=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",oj(o),sj(o,i),rj(i);const a=!s.getQueryCache().get(o.queryHash),[c]=g.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const x=u?c.subscribe(He.batchCalls(v)):jh;return c.updateResult(),x},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),cj(o,l))throw kh(o,c,i);if(ij({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||m.call(y,o,l),o.experimental_prefetchInRender&&!As&&aj(l,r)){const v=a?kh(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(jh).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function Tn(e,t){return lj(e,K1)}const uj=e=>{const{data:t,isPending:n,status:s}=Tn({queryKey:["photos",e],queryFn:()=>ZN(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},dj=e=>{const{data:t,isPending:n,isError:s}=Tn({queryKey:["videos",e],queryFn:()=>KN(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},qk=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[s,r]=En({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=uj(1),{data:o}=dj(1);QE();const[a,c]=g.useState(!1),[l,u]=g.useState(!1);g.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),g.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:f.jsx("img",{src:(p=m==null?void 0:m.photo)==null?void 0:p.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:f.jsx("video",{src:((p=m==null?void 0:m.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(_l,{onClick:()=>t(!1),className:"absolute top-6 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),f.jsxs("div",{className:"hidden md:block",children:[f.jsx(sc,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(kp,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},Zk=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var m;const[o,a]=g.useState(!1),[c,l]=g.useState(!1),u=Te(p=>p.lang),[d,h]=g.useState(100),y=({className:p})=>{const[v,x]=En({});return g.useEffect(()=>{if(!x)return;const b=()=>{a(x.canScrollPrev()),l(x.canScrollNext())};return b(),x.on("select",b),()=>{x.off("select",b)}},[x]),f.jsxs("div",{className:V("",p),children:[f.jsx("h3",{className:"text-xl mb-2.5",children:"Работы дизайнера"}),f.jsx("div",{ref:v,className:"embla overflow-hidden",children:f.jsxs("div",{className:"embla__container items-center flex gap-4",children:[o&&f.jsx(sc,{onClick:()=>o&&(x==null?void 0:x.scrollPrev()),className:V("cursor-pointer",!o&&"opacity-20")}),f.jsx("div",{className:"flex items-center gap-4",children:i==null?void 0:i.map((b,w)=>f.jsx("div",{className:"lg:size-[140px] size-[70px] overflow-hidden",children:f.jsx("img",{onClick:()=>h(w),src:b==null?void 0:b.path,className:"size-full hover:scale-105 transition-all cursor-pointer overflow-hidden object-cover object-top"},w)}))}),c&&f.jsx(kp,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!c&&"opacity-20")})]})})]})};return f.jsxs(Ny,{children:[f.jsxs(jy,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((p,v)=>f.jsx("li",{children:u==="ru"?p==null?void 0:p.ru:p==null?void 0:p.en},v))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(_u,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] md:!w-[688px] w-[336px] max-h-[100vh] overflow-hidden"),children:[d===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"gap-4 md:!flex !hidden",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full float-left object-cover"})}),f.jsxs("div",{className:"flex-[0_0_70%]",children:[f.jsx("div",{className:"text-2xl mb-4",children:t}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal overflow-y-auto max-h-[40vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{className:"hidden md:block"}),f.jsxs("div",{className:"flex flex-col gap-4 md:hidden overflow-auto h-full",children:[f.jsx("h3",{className:"text-xl",children:t}),f.jsx("img",{src:r==null?void 0:r.path,alt:t}),f.jsx("hr",{}),f.jsx(y,{}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal",dangerouslySetInnerHTML:{__html:s??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(sc,{}),"Вернуться назад"]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(m=i==null?void 0:i[d])==null?void 0:m.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})},Ji=({value:e,label:t,prevValue:n})=>f.jsxs("div",{className:"timer-item flex flex-col items-center justify-center bg-teritary p-1 rounded-[2px]",children:[f.jsxs("div",{className:"relative font-bold h-10 ",children:[f.jsx("span",{className:`absolute -translate-x-1/2 black flex text-center text-white text-transparent size-10 sm:text-3xl text-xl leading-none transition-all duration-300 ${n!==e?" opacity-0":" opacity-100"}`,children:n}),f.jsx("span",{className:`absolute -translate-x-1/2 black text-center bg-gradient-to-t from-white to-surface_high text-transparent bg-clip-text sm:text-3xl text-xl leading-none transition-all duration-300 ${n!==e?"opacity-100":"opacity-0"}`,children:e})]}),f.jsx("div",{className:"label normal sm:text-lg text-base text-[#FACFAE] text-center",children:t})]});function Nv(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,fj(r,...t)]}function fj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ze(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Iu(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Oh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=g.Children.toArray(i),c=a.find(mj);if(c){const l=c.props.children,u=a.map(d=>d===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:r,children:g.isValidElement(l)?g.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function hj(e){const t=g.forwardRef((n,s)=>{const{children:r,...i}=n;if(g.isValidElement(r)){const o=yj(r),a=gj(i,r.props);return r.type!==g.Fragment&&(a.ref=s?Iu(s,o):o),g.cloneElement(r,a)}return g.Children.count(r)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pj=Symbol("radix.slottable");function mj(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pj}function gj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function yj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=vj.reduce((e,t)=>{const n=nl(`Primitive.${t}`),s=g.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function sl(e,t){e&&fl.flushSync(()=>e.dispatchEvent(t))}var Rs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},xj=dl[" useInsertionEffect ".trim().toString()]||Rs;function jv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=bj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=g.useRef(e!==void 0);g.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=g.useCallback(u=>{var d;if(a){const h=wj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[c,l]}function bj({defaultProp:e,onChange:t}){const[n,s]=g.useState(e),r=g.useRef(n),i=g.useRef(t);return xj(()=>{i.current=t},[t]),g.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function wj(e){return typeof e=="function"}var Sj=g.createContext(void 0);function _j(e){const t=g.useContext(Sj);return e||t||"ltr"}function Cj(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var Fi=e=>{const{present:t,children:n}=e,s=Ej(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=dn(s.ref,Tj(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};Fi.displayName="Presence";function Ej(e){const[t,n]=g.useState(),s=g.useRef(null),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Cj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=eo(s.current);i.current=a==="mounted"?l:"none"},[a]),Rs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,y=eo(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Rs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=eo(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=eo(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function eo(e){return(e==null?void 0:e.animationName)||"none"}function Tj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Aj=dl[" useId ".trim().toString()]||(()=>{}),Rj=0;function kv(e){const[t,n]=g.useState(Aj());return Rs(()=>{e||n(s=>s??String(Rj++))},[e]),e||(t?`radix-${t}`:"")}function Ov(e){const t=e+"CollectionProvider",[n,s]=Nv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=de.useRef(null),w=de.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=nl(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=nl(u),y=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=dn(v,_),A=i(u,x);return de.useEffect(()=>(A.itemMap.set(_,{ref:_,...w}),()=>void A.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function m(p){const v=i(e+"CollectionConsumer",p);return de.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((A,E)=>w.indexOf(A.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},m,s]}function Jt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Nj="DismissableLayer",rl="dismissableLayer.update",jj="dismissableLayer.pointerDownOutside",kj="dismissableLayer.focusOutside",Mh,Mv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dv=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(Mv),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=dn(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Dj(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Lj(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Pj(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Mh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Dh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Mh)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Dh())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(rl,E),()=>document.removeEventListener(rl,E)},[]),f.jsx(ht.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,S.onPointerDownCapture)})});Dv.displayName=Nj;var Oj="DismissableLayerBranch",Mj=g.forwardRef((e,t)=>{const n=g.useContext(Mv),s=g.useRef(null),r=dn(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ht.div,{...e,ref:r})});Mj.displayName=Oj;function Dj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Lv(jj,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Lj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&Lv(kj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Dh(){const e=new CustomEvent(rl);document.dispatchEvent(e)}function Lv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?sl(r,i):r.dispatchEvent(i)}function Ij(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vj="VisuallyHidden",Iv=g.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...Fj,...e.style}}));Iv.displayName=Vj;var Bj=Iv,js="NavigationMenu",[Fu,Fv,$j]=Ov(js),[il,Uj,zj]=Ov(js),[Vu,Kk]=Nv(js,[$j,zj]),[Wj,Nt]=Vu(js),[Hj,qj]=Vu(js),Vv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=g.useState(null),y=dn(t,N=>h(N)),m=_j(l),p=g.useRef(0),v=g.useRef(0),x=g.useRef(0),[b,w]=g.useState(!0),[_,S]=jv({prop:s,onChange:N=>{const M=N!=="",L=a>0;M?(window.clearTimeout(x.current),L&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(N)},defaultProp:i??"",caller:js}),A=g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),E=g.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=g.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return g.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Bv,{scope:n,isRootMenu:!0,value:_,dir:m,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):E(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:N=>{S(M=>M===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(ht.nav,{"aria-label":"Main","data-orientation":c,dir:m,...u,ref:y})})});Vv.displayName=js;var ol="NavigationMenuSub",Zj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,c=Nt(ol,n),[l,u]=jv({prop:s,onChange:r,defaultProp:i??"",caller:ol});return f.jsx(Bv,{scope:n,isRootMenu:!1,value:l,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(ht.div,{"data-orientation":o,...a,ref:t})})});Zj.displayName=ol;var Bv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[m,p]=g.useState(null),[v,x]=g.useState(new Map),[b,w]=g.useState(null);return f.jsx(Wj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Ij(a),baseId:kv(),dir:r,orientation:i,viewport:m,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(y),onItemSelect:Jt(c),onItemDismiss:Jt(l),onViewportContentChange:g.useCallback((_,S)=>{x(A=>(A.set(_,S),new Map(A)))},[]),onViewportContentRemove:g.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Fu.Provider,{scope:t,children:f.jsx(Hj,{scope:t,items:v,children:o})})})},$v="NavigationMenuList",Uv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt($v,n),i=f.jsx(ht.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(ht.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Fu.Slot,{scope:n,children:r.isRootMenu?f.jsx(Yv,{asChild:!0,children:i}):i})})});Uv.displayName=$v;var zv="NavigationMenuItem",[Kj,Wv]=Vu(zv),Hv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=kv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=g.useRef(null),c=g.useRef(null),l=g.useRef(null),u=g.useRef(()=>{}),d=g.useRef(!1),h=g.useCallback((m="start")=>{if(a.current){u.current();const p=cl(a.current);p.length&&Uu(m==="start"?p:p.reverse())}},[]),y=g.useCallback(()=>{if(a.current){const m=cl(a.current);m.length&&(u.current=tk(m))}},[]);return f.jsx(Kj,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(ht.li,{...r,ref:t})})});Hv.displayName=zv;var al="NavigationMenuTrigger",qv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=Nt(al,e.__scopeNavigationMenu),o=Wv(al,e.__scopeNavigationMenu),a=g.useRef(null),c=dn(a,o.triggerRef,t),l=ex(i.baseId,o.value),u=tx(i.baseId,o.value),d=g.useRef(!1),h=g.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Fu.ItemSlot,{scope:n,value:o.value,children:f.jsx(Jv,{asChild:!0,children:f.jsx(ht.button,{id:l,disabled:s,"data-disabled":s?"":void 0,"data-state":zu(y),"aria-expanded":y,"aria-controls":u,...r,ref:c,onPointerEnter:ze(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ze(e.onPointerMove,Wo(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ze(e.onPointerLeave,Wo(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:ze(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:ze(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&m.key===v&&(o.onEntryKeyDown(),m.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(Bj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const p=o.contentRef.current,v=m.relatedTarget,x=v===a.current,b=p==null?void 0:p.contains(v);(x||!b)&&o.onFocusProxyEnter(x?"start":"end")}}),i.viewport&&f.jsx("span",{"aria-owns":u})]})]})});qv.displayName=al;var Gj="NavigationMenuLink",Lh="navigationMenu.linkSelect",Zv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(Jv,{asChild:!0,children:f.jsx(ht.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:ze(e.onClick,o=>{const a=o.target,c=new CustomEvent(Lh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Lh,l=>r==null?void 0:r(l),{once:!0}),sl(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(po,{bubbles:!0,cancelable:!0});sl(a,l)}},{checkForDefaultPrevented:!1})})})});Zv.displayName=Gj;var Bu="NavigationMenuIndicator",Kv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(Bu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?Kh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(Qj,{...s,ref:t})}),r.indicatorTrack):null});Kv.displayName=Bu;var Qj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Bu,n),i=Fv(n),[o,a]=g.useState(null),[c,l]=g.useState(null),u=r.orientation==="horizontal",d=!!r.value;g.useEffect(()=>{var p;const m=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;m&&a(m)},[i,r.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return ll(o,h),ll(r.indicatorTrack,h),c?f.jsx(ht.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),mr="NavigationMenuContent",Gv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(mr,e.__scopeNavigationMenu),i=Wv(mr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(Xj,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(Qv,{"data-state":zu(a),...c,ref:o,onPointerEnter:ze(e.onPointerEnter,r.onContentEnter),onPointerLeave:ze(e.onPointerLeave,Wo(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Gv.displayName=mr;var Xj=g.forwardRef((e,t)=>{const n=Nt(mr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Rs(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Rs(()=>()=>r(e.value),[e.value,r]),null}),po="navigationMenu.rootContentDismiss",Qv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=Nt(mr,n),d=g.useRef(null),h=dn(d,t),y=ex(u.baseId,s),m=tx(u.baseId,s),p=Fv(n),v=g.useRef(null),{onItemDismiss:x}=u;g.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(po,_),()=>w.removeEventListener(po,_)}},[u.isRootMenu,e.value,r,x,a]);const b=g.useMemo(()=>{const _=p().map(M=>M.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),A=_.indexOf(u.previousValue),E=s===u.value,R=A===_.indexOf(s);if(!E&&!R)return v.current;const N=(()=>{if(S!==A){if(E&&A!==-1)return S>A?"from-end":"from-start";if(R&&S!==-1)return S>A?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(Yv,{asChild:!0,children:f.jsx(Dv,{id:m,"aria-labelledby":y,"data-motion":b,"data-orientation":u.orientation,...l,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(po,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:ze(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:ze(e.onPointerDownOutside,w=>{var E;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),A=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(S||A||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:ze(e.onKeyDown,w=>{var A;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=cl(w.currentTarget),R=document.activeElement,N=E.findIndex(O=>O===R),L=w.shiftKey?E.slice(0,N).reverse():E.slice(N+1,E.length);Uu(L)?w.preventDefault():(A=i.current)==null||A.focus()}}),onEscapeKeyDown:ze(e.onEscapeKeyDown,w=>{o.current=!0})})})}),$u="NavigationMenuViewport",Xv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!Nt($u,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(Yj,{...s,ref:t})})});Xv.displayName=$u;var Yj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=Nt($u,n),o=dn(t,i.onViewportChange),a=qj(mr,e.__scopeNavigationMenu),[c,l]=g.useState(null),[u,d]=g.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,y=c?(c==null?void 0:c.height)+"px":void 0,m=!!i.value,p=m?i.value:i.previousValue;return ll(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(ht.div,{"data-state":zu(m),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...r.style},onPointerEnter:ze(e.onPointerEnter,i.onContentEnter),onPointerLeave:ze(e.onPointerLeave,Wo(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Fi,{present:w||S,children:f.jsx(Qv,{..._,ref:Iu(b,A=>{S&&A&&d(A)})})},x)})})}),Jj="FocusGroup",Yv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Jj,n);return f.jsx(il.Provider,{scope:n,children:f.jsx(il.Slot,{scope:n,children:f.jsx(ht.div,{dir:r.dir,...s,ref:t})})})}),Ih=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ek="FocusGroupItem",Jv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Uj(n),i=Nt(ek,n);return f.jsx(il.ItemSlot,{scope:n,children:f.jsx(ht.button,{...s,ref:t,onKeyDown:ze(e.onKeyDown,o=>{if(["Home","End",...Ih].includes(o.key)){let c=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Ih.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>Uu(c)),o.preventDefault()}})})})});function cl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Uu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function tk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function ll(e,t){const n=Jt(t);Rs(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function zu(e){return e?"open":"closed"}function ex(e,t){return`${e}-trigger-${t}`}function tx(e,t){return`${e}-content-${t}`}function Wo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nx=Vv,sx=Uv,nk=Hv,rx=qv,sk=Zv,ix=Kv,ox=Gv,ax=Xv;const cx=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(nx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(fx,{})]}));cx.displayName=nx.displayName;const lx=g.forwardRef(({className:e,...t},n)=>f.jsx(sx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));lx.displayName=sx.displayName;const rk=nk,ik=Qo("group inline-flex h-14 w-full items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),ux=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(rx,{ref:s,className:V(ik(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(sw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ux.displayName=rx.displayName;const dx=g.forwardRef(({className:e,...t},n)=>f.jsx(ox,{ref:n,className:V("left-0 top-0 w-40 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",e),...t}));dx.displayName=ox.displayName;const ok=sk,fx=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:V("absolute xl:left-full xl:top-0 -top-36 flex justify-center w-40"),children:f.jsx(ax,{className:V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-40 rounded-md text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90",e),ref:n,...t})}));fx.displayName=ax.displayName;const ak=g.forwardRef(({className:e,...t},n)=>f.jsx(ix,{ref:n,className:V("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));ak.displayName=ix.displayName;const ck=({className:e,text:t,hoverItems:n,setIsOpen:s})=>{const r=Bo(i=>i.setSheet);return f.jsx(cx,{children:f.jsx(lx,{children:f.jsxs(rk,{className:"w-full",children:[f.jsx(ux,{className:V("bg-transparent h-14 flex gap-3 justify-between min-w-full text-base cursor-pointer items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(dx,{className:"bg-surface_container shadow flex flex-col pb-2 rounded-[2px] w-40 items-center justify-center pt-2",children:n==null?void 0:n.map((i,o)=>f.jsx(ok,{onClick:()=>{s(!1),r(!1)},className:"h-14 py-2 flex items-center w-40 cursor-pointer px-4 hover:bg-slate-300/50 transition-all",children:f.jsx(Ce,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},gt=e=>e===Pt.RU?0:1,ul=[{title:"Тематические направления выставки",bottom_text:` + `),()=>{document.head.removeChild(y)}},[t]),f.jsx(w0,{isPresent:t,childRef:r,sizeRef:i,children:g.cloneElement(e,{ref:r})})}const _0=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=El(C0),l=g.useId(),u=g.useCallback(h=>{c.set(h,!0);for(const y of c.values())if(!y)return;s&&s()},[c,s]),d=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(c.set(h,!1),()=>c.delete(h))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{c.forEach((h,y)=>c.set(y,!1))},[n]),g.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=f.jsx(S0,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function C0(){return new Map}function Zp(e=!0){const t=g.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=g.useId();g.useEffect(()=>{e&&r(i)},[e]);const o=g.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Zi=e=>e.key||"";function gd(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Al=typeof window<"u",Kp=Al?g.useLayoutEffect:g.useEffect,Tk=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Zp(o),u=g.useMemo(()=>gd(e),[e]),d=o&&!c?[]:u.map(Zi),h=g.useRef(!0),y=g.useRef(u),m=El(()=>new Map),[p,v]=g.useState(u),[x,b]=g.useState(u);Kp(()=>{h.current=!1,y.current=u;for(let S=0;S{const A=Zi(S),E=o&&!c?!1:u===x||d.includes(A),R=()=>{if(m.has(A))m.set(A,!0);else return;let N=!0;m.forEach(M=>{M||(N=!1)}),N&&(_==null||_(),b(y.current),o&&(l==null||l()),s&&s())};return f.jsx(_0,{isPresent:E,initial:!h.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:E?void 0:R,anchorX:a,children:S},A)})})},vt=e=>e;let ac=vt;const E0={skipAnimations:!1,useManualTiming:!1};function T0(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const y=d&&s?t:n;return u&&i.add(l),y.has(l)||y.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Ki=["read","resolveKeyframes","update","preRender","render","postRender"],A0=40;function Gp(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Ki.reduce((x,b)=>(x[b]=T0(i),x),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(x-r.timestamp,A0),1),r.timestamp=x,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(y))},m=()=>{n=!0,s=!0,r.isProcessing||e(y)};return{schedule:Ki.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,A=!1)=>(n||m(),w.schedule(_,S,A)),x},{}),cancel:x=>{for(let b=0;byd[e].some(n=>!!t[n])};function R0(e){for(const t in e)or[t]={...or[t],...e[t]}}const P0=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 mo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P0.has(e)}let Xp=e=>!mo(e);function N0(e){e&&(Xp=t=>t.startsWith("on")?!mo(t):e(t))}try{N0(require("@emotion/is-prop-valid").default)}catch{}function j0(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(Xp(r)||n===!0&&mo(r)||!t&&!mo(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function k0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Xo=g.createContext({});function Gr(e){return typeof e=="string"||Array.isArray(e)}function Yo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Rl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pl=["initial",...Rl];function Jo(e){return Yo(e.animate)||Pl.some(t=>Gr(e[t]))}function Yp(e){return!!(Jo(e)||e.variants)}function O0(e,t){if(Jo(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Gr(n)?n:void 0,animate:Gr(s)?s:void 0}}return e.inherit!==!1?t:{}}function M0(e){const{initial:t,animate:n}=O0(e,g.useContext(Xo));return g.useMemo(()=>({initial:t,animate:n}),[vd(t),vd(n)])}function vd(e){return Array.isArray(e)?e.join(" "):e}const D0=Symbol.for("motionComponentSymbol");function Is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function I0(e,t,n){return g.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Is(n)&&(n.current=s))},[t])}const Nl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L0="framerAppearId",Jp="data-"+Nl(L0),{schedule:jl,cancel:Ak}=Gp(queueMicrotask,!1),em=g.createContext({});function F0(e,t,n,s,r){var i,o;const{visualElement:a}=g.useContext(Xo),c=g.useContext(Qp),l=g.useContext(Qo),u=g.useContext(Tl).reducedMotion,d=g.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=g.useContext(em);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&V0(d.current,n,r,y);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(n,l)});const p=n[Jp],v=g.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return Kp(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),jl.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,p)}),v.current=!1))}),h}function V0(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:tm(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Is(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function tm(e){if(e)return e.options.allowProjection!==!1?e.projection:tm(e.parent)}function B0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&R0(e);function a(l,u){let d;const h={...g.useContext(Tl),...l,layoutId:$0(l)},{isStatic:y}=h,m=M0(l),p=s(l,y);if(!y&&Al){U0();const v=z0(h);d=v.MeasureLayout,m.visualElement=F0(r,p,h,t,v.ProjectionNode)}return f.jsxs(Xo.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...h}):null,n(r,l,I0(p,m.visualElement,u),p,y,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=g.forwardRef(a);return c[D0]=r,c}function $0({layoutId:e}){const t=g.useContext(Cl).id;return t&&e!==void 0?t+"-"+e:e}function U0(e,t){g.useContext(Qp).strict}function z0(e){const{drag:t,layout:n}=or;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const W0=["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 kl(e){return typeof e!="string"||e.includes("-")?!1:!!(W0.indexOf(e)>-1||/[A-Z]/u.test(e))}function xd(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ol(e,t,n,s){if(typeof t=="function"){const[r,i]=xd(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=xd(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const cc=e=>Array.isArray(e),H0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),q0=e=>cc(e)?e[e.length-1]||0:e,Ye=e=>!!(e&&e.getVelocity);function ro(e){const t=Ye(e)?e.get():e;return H0(t)?t.toValue():t}function Z0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:K0(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const nm=e=>(t,n)=>{const s=g.useContext(Xo),r=g.useContext(Qo),i=()=>Z0(e,t,s,r);return n?i():El(i)};function K0(e,t,n,s){const r={},i=s(e,{});for(const h in i)r[h]=ro(i[h]);let{initial:o,animate:a}=e;const c=Jo(e),l=Yp(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"&&!Yo(d)){const h=Array.isArray(d)?d:[d];for(let y=0;yt=>typeof t=="string"&&t.startsWith(e),Ml=sm("--"),G0=sm("var(--"),Dl=e=>G0(e)?Q0.test(e.split("/*")[0].trim()):!1,Q0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qr={...br,transform:e=>wn(0,1,e)},Gi={...br,default:1},Ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Nn=Ti("deg"),sn=Ti("%"),ee=Ti("px"),X0=Ti("vh"),Y0=Ti("vw"),bd={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},J0={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee},eS={rotate:Nn,rotateX:Nn,rotateY:Nn,rotateZ:Nn,scale:Gi,scaleX:Gi,scaleY:Gi,scaleZ:Gi,skew:Nn,skewX:Nn,skewY:Nn,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Qr,originX:bd,originY:bd,originZ:ee},wd={...br,transform:Math.round},Il={...J0,...eS,zIndex:wd,size:ee,fillOpacity:Qr,strokeOpacity:Qr,numOctaves:wd},tS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nS=xr.length;function sS(e,t,n){let s="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),im=()=>({...Vl(),attrs:{}}),Bl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function om(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const am=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cm(e,t,n,s){om(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(am.has(r)?r:Nl(r),t.attrs[r])}const Xr={};function cS(e){for(const t in e)Xr[t]=e[t],Ml(t)&&(Xr[t].isCSSVariable=!0)}function lm(e,{layout:t,layoutId:n}){return Ps.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xr[e]||e==="opacity")}function $l(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ye(r[o])||t.style&&Ye(t.style[o])||lm(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function um(e,t,n){const s=$l(e,t,n);for(const r in e)if(Ye(e[r])||Ye(t[r])){const i=xr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function lS(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const _d=["x","y","width","height","cx","cy","r"],uS={useVisualState:nm({scrapeMotionValuesFromProps:um,createRenderState:im,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Ps.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<_d.length;a++){const c=_d[a];e[c]!==t[c]&&(o=!0)}o&&Ee.read(()=>{lS(n,s),Ee.render(()=>{Fl(s,r,Bl(n.tagName),e.transformTemplate),cm(n,s)})})}})},dS={useVisualState:nm({scrapeMotionValuesFromProps:$l,createRenderState:Vl})};function dm(e,t,n){for(const s in t)!Ye(t[s])&&!lm(s,n)&&(e[s]=t[s])}function fS({transformTemplate:e},t){return g.useMemo(()=>{const n=Vl();return Ll(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hS(e,t){const n=e.style||{},s={};return dm(s,n,e),Object.assign(s,fS(e,t)),s}function pS(e,t){const n={},s=hS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}function mS(e,t,n,s){const r=g.useMemo(()=>{const i=im();return Fl(i,t,Bl(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};dm(i,e.style,e),r.style={...i,...r.style}}return r}function gS(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(kl(n)?mS:pS)(s,i,o,n),l=j0(s,typeof n=="string",e),u=n!==g.Fragment?{...l,...c,ref:r}:{},{children:d}=s,h=g.useMemo(()=>Ye(d)?d.get():d,[d]);return g.createElement(n,{...u,children:h})}}function yS(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...kl(s)?uS:dS,preloadedFeatures:e,useRender:gS(r),createVisualElement:t,Component:s};return B0(o)}}function fm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(io===void 0&&rn.set(We.isProcessing||E0.useManualTiming?We.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(vS)}};function zl(e,t){e.indexOf(t)===-1&&e.push(t)}function Wl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hl{constructor(){this.subscriptions=[]}add(t){return zl(this.subscriptions,t),()=>Wl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i!isNaN(parseFloat(e));class bS{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xS(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 Hl);const s=this.events[t].add(n);return t==="change"?()=>{s(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}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=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Cd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cd);return pm(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 Yr(e,t){return new bS(e,t)}function wS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yr(n))}function SS(e,t){const n=ea(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=q0(i[o]);wS(e,o,a)}}function _S(e){return!!(Ye(e)&&e.add)}function lc(e,t){const n=e.getValue("willChange");if(_S(n))return n.add(t)}function mm(e){return e.props[Jp]}function ql(e){let t;return()=>(t===void 0&&(t=e()),t)}const CS=ql(()=>window.ScrollTimeline!==void 0);class ES{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 s=0;s{if(CS()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),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 TS extends ES{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const xn=e=>e*1e3,bn=e=>e/1e3;function Zl(e){return typeof e=="function"}function Ed(e,t){e.timeline=t,e.onfinish=null}const Kl=e=>Array.isArray(e)&&typeof e[0]=="number",AS={linearEasing:void 0};function RS(e,t){const n=ql(e);return()=>{var s;return(s=AS[t])!==null&&s!==void 0?s:n()}}const go=RS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ar=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},gm=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${s})`,uc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function vm(e,t){if(e)return typeof e=="function"&&go()?gm(e,t):Kl(e)?Mr(e):Array.isArray(e)?e.map(n=>vm(n,t)||uc.easeOut):uc[e]}const xm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PS=1e-7,NS=12;function jS(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=xm(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>PS&&++ajS(i,0,1,e,n);return i=>i===0||i===1?i:xm(r(i),t,s)}const bm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wm=e=>t=>1-e(1-t),Sm=Ai(.33,1.53,.69,.99),Gl=wm(Sm),_m=bm(Gl),Cm=e=>(e*=2)<1?.5*Gl(e):.5*(2-Math.pow(2,-10*(e-1))),Ql=e=>1-Math.sin(Math.acos(e)),Em=wm(Ql),Tm=bm(Ql),Am=e=>/^0[^.\s]+$/u.test(e);function kS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Am(e):!0}const $r=e=>Math.round(e*1e5)/1e5,Xl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OS(e){return e==null}const MS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yl=(e,t)=>n=>!!(typeof n=="string"&&MS.test(n)&&n.startsWith(e)||t&&!OS(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rm=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Xl);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},DS=e=>wn(0,255,e),Pa={...br,transform:e=>Math.round(DS(e))},rs={test:Yl("rgb","red"),parse:Rm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Pa.transform(e)+", "+Pa.transform(t)+", "+Pa.transform(n)+", "+$r(Qr.transform(s))+")"};function IS(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const dc={test:Yl("#"),parse:IS,transform:rs.transform},Ls={test:Yl("hsl","hue"),parse:Rm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+sn.transform($r(t))+", "+sn.transform($r(n))+", "+$r(Qr.transform(s))+")"},Qe={test:e=>rs.test(e)||dc.test(e)||Ls.test(e),parse:e=>rs.test(e)?rs.parse(e):Ls.test(e)?Ls.parse(e):dc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rs.transform(e):Ls.transform(e)},LS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FS(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LS))===null||n===void 0?void 0:n.length)||0)>0}const Pm="number",Nm="color",VS="var",BS="var(",Td="${}",$S=/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 Jr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace($S,c=>(Qe.test(c)?(s.color.push(i),r.push(Nm),n.push(Qe.parse(c))):c.startsWith(BS)?(s.var.push(i),r.push(VS),n.push(c)):(s.number.push(i),r.push(Pm),n.push(parseFloat(c))),++i,Td)).split(Td);return{values:n,split:a,indexes:s,types:r}}function jm(e){return Jr(e).values}function km(e){const{split:t,types:n}=Jr(e),s=t.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:e;function zS(e){const t=jm(e);return km(e)(t.map(US))}const Un={test:FS,parse:jm,createTransformer:km,getAnimatableNone:zS},WS=new Set(["brightness","contrast","saturate","opacity"]);function HS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Xl)||[];if(!s)return e;const r=n.replace(s,"");let i=WS.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const qS=/\b([a-z-]*)\(.*?\)/gu,fc={...Un,getAnimatableNone:e=>{const t=e.match(qS);return t?t.map(HS).join(" "):e}},ZS={...Il,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:fc,WebkitFilter:fc},Jl=e=>ZS[e];function Om(e,t){let n=Jl(e);return n!==fc&&(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const KS=new Set(["auto","none","0"]);function GS(e,t,n){let s=0,r;for(;se===br||e===ee,Rd=(e,t)=>parseFloat(e.split(", ")[t]),Pd=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Rd(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Rd(i[1],e):0}},QS=new Set(["x","y","z"]),XS=xr.filter(e=>!QS.has(e));function YS(e){const t=[];return XS.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const cr={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:Pd(4,13),y:Pd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const gs=new Set;let hc=!1,pc=!1;function Mm(){if(pc){const e=Array.from(gs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=YS(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}pc=!1,hc=!1,gs.forEach(e=>e.complete()),gs.clear()}function Dm(){gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pc=!0)})}function JS(){Dm(),Mm()}class eu{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gs.add(this),hc||(hc=!0,Ee.read(Dm),Ee.resolveKeyframes(Mm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t_(e){const t=e_.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Lm(e,t,n=1){const[s,r]=t_(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Im(o)?parseFloat(o):o}return Dl(r)?Lm(r,t,n+1):r}const Fm=e=>t=>t.test(e),n_={test:e=>e==="auto",parse:e=>e},Vm=[br,ee,sn,Nn,Y0,X0,n_],Nd=e=>Vm.find(Fm(e));class Bm extends eu{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const jd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Un.test(e)||e==="0")&&!e.startsWith("url("));function s_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ta(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(i_),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const o_=40;class $m{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>o_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&JS(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!r_(t,s,r,i))if(o)this.options.duration=0;else{c&&c(ta(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 mc=2e4;function Um(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=mc?1/0:t}const Re=(e,t,n)=>e+(t-e)*n;function Na(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 a_({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=Na(c,a,e+1/3),i=Na(c,a,e),o=Na(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function yo(e,t){return n=>n>0?t:e}const ja=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},c_=[dc,rs,Ls],l_=e=>c_.find(t=>t.test(e));function kd(e){const t=l_(e);if(!t)return!1;let n=t.parse(e);return t===Ls&&(n=a_(n)),n}const Od=(e,t)=>{const n=kd(e),s=kd(t);if(!n||!s)return yo(e,t);const r={...n};return i=>(r.red=ja(n.red,s.red,i),r.green=ja(n.green,s.green,i),r.blue=ja(n.blue,s.blue,i),r.alpha=Re(n.alpha,s.alpha,i),rs.transform(r))},u_=(e,t)=>n=>t(e(n)),Ri=(...e)=>e.reduce(u_),gc=new Set(["none","hidden"]);function d_(e,t){return gc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function f_(e,t){return n=>Re(e,t,n)}function tu(e){return typeof e=="number"?f_:typeof e=="string"?Dl(e)?yo:Qe.test(e)?Od:m_:Array.isArray(e)?zm:typeof e=="object"?Qe.test(e)?Od:h_:yo}function zm(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>tu(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function p_(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Un.createTransformer(t),s=Jr(e),r=Jr(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?gc.has(e)&&!r.values.length||gc.has(t)&&!s.values.length?d_(e,t):Ri(zm(p_(s,r),r.values),n):yo(e,t)};function Wm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):tu(e)(e,t)}const g_=5;function Hm(e,t,n){const s=Math.max(t-g_,0);return pm(n-e(s),t-s)}const je={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},Md=.001;function y_({duration:e=je.duration,bounce:t=je.bounce,velocity:n=je.velocity,mass:s=je.mass}){let r,i,o=1-t;o=wn(je.minDamping,je.maxDamping,o),e=wn(je.minDuration,je.maxDuration,bn(e)),o<1?(r=l=>{const u=l*o,d=u*e,h=u-n,y=yc(l,o),m=Math.exp(-d);return Md-h/y*m},i=l=>{const d=l*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),p=yc(Math.pow(l,2),o);return(-r(l)+Md>0?-1:1)*((h-y)*m)/p}):(r=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=x_(r,i,a);if(e=xn(e),isNaN(c))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const v_=12;function x_(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function S_(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!Dd(e,w_)&&Dd(e,b_))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*wn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:je.mass,stiffness:r,damping:i}}else{const n=y_(e);t={...t,...n,mass:je.mass},t.isResolvedFromDuration=!0}return t}function qm(e=je.visualDuration,t=je.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=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:h,isResolvedFromDuration:y}=S_({...n,velocity:-bn(n.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(c*u)),v=o-i,x=bn(Math.sqrt(c/u)),b=Math.abs(v)<5;s||(s=b?je.restSpeed.granular:je.restSpeed.default),r||(r=b?je.restDelta.granular:je.restDelta.default);let w;if(p<1){const S=yc(x,p);w=A=>{const E=Math.exp(-p*x*A);return o-E*((m+p*x*v)/S*Math.sin(S*A)+v*Math.cos(S*A))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(m+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=A=>{const E=Math.exp(-p*x*A),R=Math.min(S*A,300);return o-E*((m+p*x*v)*Math.sinh(R)+S*v*Math.cosh(R))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const A=w(S);if(y)a.done=S>=d;else{let E=0;p<1&&(E=S===0?xn(m):Hm(w,S,A));const R=Math.abs(E)<=s,N=Math.abs(o-A)<=r;a.done=R&&N}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(Um(_),mc),A=gm(E=>_.next(S*E).value,S,30);return S+"ms "+A}};return _}function Id({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=R=>a!==void 0&&Rc,m=R=>a===void 0?c:c===void 0||Math.abs(a-R)-p*Math.exp(-R/s),w=R=>x+b(R),_=R=>{const N=b(R),M=w(R);h.done=Math.abs(N)<=l,h.value=h.done?x:M};let S,A;const E=R=>{y(h.value)&&(S=R,A=qm({keyframes:[h.value,m(h.value)],velocity:Hm(w,R,h.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:R=>{let N=!1;return!A&&S===void 0&&(N=!0,_(R),E(R)),S!==void 0&&R>=S?A.next(R-S):(!N&&_(R),h)}}}const __=Ai(.42,0,1,1),C_=Ai(0,0,.58,1),Zm=Ai(.42,0,.58,1),E_=e=>Array.isArray(e)&&typeof e[0]!="number",Ld={linear:vt,easeIn:__,easeInOut:Zm,easeOut:C_,circIn:Ql,circInOut:Tm,circOut:Em,backIn:Gl,backInOut:_m,backOut:Sm,anticipate:Cm},Fd=e=>{if(Kl(e)){ac(e.length===4);const[t,n,s,r]=e;return Ai(t,n,s,r)}else if(typeof e=="string")return ac(Ld[e]!==void 0),Ld[e];return e};function T_(e,t,n){const s=[],r=n||Wm,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=T_(t,s,r),c=a.length,l=u=>{if(o&&u1)for(;dl(wn(e[0],e[i-1],u)):l}function R_(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=ar(0,t,s);e.push(Re(n,1,r))}}function P_(e){const t=[0];return R_(t,e.length-1),t}function N_(e,t){return e.map(n=>n*t)}function j_(e,t){return e.map(()=>t||Zm).splice(0,e.length-1)}function vo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=E_(s)?s.map(Fd):Fd(s),i={done:!1,value:t[0]},o=N_(n&&n.length===t.length?n:P_(t),e),a=A_(o,t,{ease:Array.isArray(r)?r:j_(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const k_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>$n(t),now:()=>We.isProcessing?We.timestamp:rn.now()}},O_={decay:Id,inertia:Id,tween:vo,keyframes:vo,spring:qm},M_=e=>e/100;class nu extends $m{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:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||eu,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Zl(n)?n:O_[n]||vo;let c,l;a!==vo&&typeof t[0]!="number"&&(c=Ri(M_,Wm(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=Um(u));const{calculatedDuration:d}=u,h=d+r,y=h*(s+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:h,totalDuration:y}}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:s}=this;if(!s){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:m,repeatDelay:p,onUpdate:v}=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 x=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?x<0:x>u;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,_=i;if(y){const R=Math.min(this.currentTime,u)/d;let N=Math.floor(R),M=R%1;!M&&R>=1&&(M=1),M===1&&N--,N=Math.min(N,y+1),!!(N%2)&&(m==="reverse"?(M=1-M,p&&(M-=p/d)):m==="mirror"&&(_=o)),w=wn(0,1,M)*d}const S=b?{done:!1,value:c[0]}:_.next(w);a&&(S.value=a(S.value));let{done:A}=S;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&r!==void 0&&(S.value=ta(c,this.options,r)),v&&v(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?bn(t.calculatedDuration):0}get time(){return bn(this.currentTime)}set time(t){t=xn(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=bn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=k_,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??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 D_=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=vm(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const L_=ql(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xo=10,F_=2e4;function V_(e){return Zl(e.type)||e.type==="spring"||!ym(e.ease)}function B_(e,t){const n=new nu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&go()&&$_(i)&&(i=Km[i]),V_(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:m,...p}=this.options,v=B_(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),s=v.duration,r=v.times,i=v.ease,o="keyframes"}const u=I_(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Ed(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ta(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=xn(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:s}=n;s.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 vt;const{animation:s}=n;Ed(s,t)}return vt}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:s,duration:r,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:h,...y}=this.options,m=new nu({...y,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=xn(this.time);l.setWithVelocity(m.sample(p-xo).value,m.sample(p).value,xo)}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:s,repeatDelay:r,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 L_()&&s&&D_.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const U_={type:"spring",stiffness:500,damping:25,restSpeed:10},z_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),W_={type:"keyframes",duration:.8},H_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q_=(e,{keyframes:t})=>t.length>2?W_:Ps.has(e)?e.startsWith("scale")?z_(t[1]):U_:H_;function Z_({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const su=(e,t,n,s={},r,i)=>o=>{const a=Ul(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-xn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};Z_(a)||(u={...u,...q_(e,u)}),u.duration&&(u.duration=xn(u.duration)),u.repeatDelay&&(u.repeatDelay=xn(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 h=ta(u.keyframes,a);if(h!==void 0)return Ee.update(()=>{u.onUpdate(h),u.onComplete()}),new TS([])}return!i&&Vd.supports(u)?new Vd(u):new nu(u)};function K_({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Gm(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in c){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=c[d];if(y===void 0||u&&K_(u,d))continue;const m={delay:n,...Ul(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=mm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Ee);b!==null&&(m.startTime=b,p=!0)}}lc(e,d),h.start(su(d,h,y,e.shouldReduceMotion&&hm.has(d)?{type:!1}:m,e,p));const v=h.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ee.update(()=>{a&&SS(e,a)})}),l}function vc(e,t,n={}){var s;const r=ea(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Gm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return G_(e,t,u+l,d,h,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 G_(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(Q_).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(vc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function Q_(e,t){return e.sortNodePosition(t)}function X_(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>vc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=vc(e,t,n);else{const r=typeof t=="function"?ea(e,t,n.custom):t;s=Promise.all(Gm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Y_=Pl.length;function Qm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Qm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>X_(e,n,s)))}function nC(e){let t=tC(e),n=Bd(),s=!0;const r=c=>(l,u)=>{var d;const h=ea(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:m,...p}=h;l={...l,...p,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=Qm(e.parent)||{},d=[],h=new Set;let y={},m=1/0;for(let v=0;vm&&_,N=!1;const M=Array.isArray(w)?w:[w];let I=M.reduce(r(x),{});S===!1&&(I={});const{prevResolvedValues:O={}}=b,z={...O,...I},F=q=>{R=!0,h.has(q)&&(N=!0,h.delete(q)),b.needsAnimating[q]=!0;const Z=e.getValue(q);Z&&(Z.liveStyle=!1)};for(const q in z){const Z=I[q],re=O[q];if(y.hasOwnProperty(q))continue;let fe=!1;cc(Z)&&cc(re)?fe=!fm(Z,re):fe=Z!==re,fe?Z!=null?F(q):h.add(q):Z!==void 0&&h.has(q)?F(q):b.protectedKeys[q]=!0}b.prevProp=w,b.prevResolvedValues=I,b.isActive&&(y={...y,...I}),s&&e.blockInitialAnimation&&(R=!1),R&&(!(A&&E)||N)&&d.push(...M.map(q=>({animation:q,options:{type:x}})))}if(h.size){const v={};h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let p=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?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(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Bd(),s=!0}}}function sC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fm(t,e):!1}function ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bd(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}class Qn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rC extends Qn{constructor(t){super(t),t.animationState||(t.animationState=nC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yo(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 iC=0;class oC extends Qn{constructor(){super(...arguments),this.id=iC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const aC={animation:{Feature:rC},exit:{Feature:oC}},kt={x:!1,y:!1};function Xm(){return kt.x||kt.y}function cC(e){return e==="x"||e==="y"?kt[e]?null:(kt[e]=!0,()=>{kt[e]=!1}):kt.x||kt.y?null:(kt.x=kt.y=!0,()=>{kt.x=kt.y=!1})}const ru=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ei(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Pi(e){return{point:{x:e.pageX,y:e.pageY}}}const lC=e=>t=>ru(t)&&e(t,Pi(t));function Ur(e,t,n,s){return ei(e,t,lC(n),s)}const $d=(e,t)=>Math.abs(e-t);function uC(e,t){const n=$d(e.x,t.x),s=$d(e.y,t.y);return Math.sqrt(n**2+s**2)}class Ym{constructor(t,n,{transformPagePoint:s,contextWindow:r,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=Oa(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=uC(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:m}=d,{timestamp:p}=We;this.history.push({...m,timestamp:p});const{onStart:v,onMove:x}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ka(h,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Oa(d.type==="pointercancel"?this.lastMoveEventInfo:ka(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),m&&m(d,v)},!ru(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=Pi(t),a=ka(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=We;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Oa(a,this.history)),this.removeListeners=Ri(Ur(this.contextWindow,"pointermove",this.handlePointerMove),Ur(this.contextWindow,"pointerup",this.handlePointerUp),Ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$n(this.updatePoint)}}function ka(e,t){return t?{point:t(e.point)}:e}function Ud(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oa({point:e},t){return{point:e,delta:Ud(e,Jm(t)),offset:Ud(e,dC(t)),velocity:fC(t,.1)}}function dC(e){return e[0]}function Jm(e){return e[e.length-1]}function fC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=Jm(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>xn(t)));)n--;if(!s)return{x:0,y:0};const i=bn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const eg=1e-4,hC=1-eg,pC=1+eg,tg=.01,mC=0-tg,gC=0+tg;function it(e){return e.max-e.min}function yC(e,t,n){return Math.abs(e-t)<=n}function zd(e,t,n,s=.5){e.origin=s,e.originPoint=Re(t.min,t.max,e.origin),e.scale=it(n)/it(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hC&&e.scale<=pC||isNaN(e.scale))&&(e.scale=1),(e.translate>=mC&&e.translate<=gC||isNaN(e.translate))&&(e.translate=0)}function zr(e,t,n,s){zd(e.x,t.x,n.x,s?s.originX:void 0),zd(e.y,t.y,n.y,s?s.originY:void 0)}function Wd(e,t,n){e.min=n.min+t.min,e.max=e.min+it(t)}function vC(e,t,n){Wd(e.x,t.x,n.x),Wd(e.y,t.y,n.y)}function Hd(e,t,n){e.min=t.min-n.min,e.max=e.min+it(t)}function Wr(e,t,n){Hd(e.x,t.x,n.x),Hd(e.y,t.y,n.y)}function xC(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?Re(n,e,s.max):Math.min(e,n)),e}function qd(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 bC(e,{top:t,left:n,bottom:s,right:r}){return{x:qd(e.x,n,r),y:qd(e.y,t,s)}}function Zd(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=ar(t.min,t.max-s,e.min):s>r&&(n=ar(e.min,e.max-r,t.min)),wn(0,1,n)}function _C(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 xc=.35;function CC(e=xc){return e===!1?e=0:e===!0&&(e=xc),{x:Kd(e,"left","right"),y:Kd(e,"top","bottom")}}function Kd(e,t,n){return{min:Gd(e,t),max:Gd(e,n)}}function Gd(e,t){return typeof e=="number"?e:e[t]||0}const Qd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fs=()=>({x:Qd(),y:Qd()}),Xd=()=>({min:0,max:0}),Me=()=>({x:Xd(),y:Xd()});function Et(e){return[e("x"),e("y")]}function ng({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function EC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ma(e){return e===void 0||e===1}function bc({scale:e,scaleX:t,scaleY:n}){return!Ma(e)||!Ma(t)||!Ma(n)}function ns(e){return bc(e)||sg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sg(e){return Yd(e.x)||Yd(e.y)}function Yd(e){return e&&e!=="0%"}function bo(e,t,n){const s=e-n,r=t*s;return n+r}function Jd(e,t,n,s,r){return r!==void 0&&(e=bo(e,r,s)),bo(e,n,s)+t}function wc(e,t=0,n=1,s,r){e.min=Jd(e.min,t,n,s,r),e.max=Jd(e.max,t,n,s,r)}function rg(e,{x:t,y:n}){wc(e.x,t.translate,t.scale,t.originPoint),wc(e.y,n.translate,n.scale,n.originPoint)}const ef=.999999999999,tf=1.0000000000001;function AC(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;aef&&(t.x=1),t.yef&&(t.y=1)}function Vs(e,t){e.min=e.min+t,e.max=e.max+t}function nf(e,t,n,s,r=.5){const i=Re(e.min,e.max,r);wc(e,t,n,i,s)}function Bs(e,t){nf(e.x,t.x,t.scaleX,t.scale,t.originX),nf(e.y,t.y,t.scaleY,t.scale,t.originY)}function ig(e,t){return ng(TC(e.getBoundingClientRect(),t))}function RC(e,t,n){const s=ig(e,n),{scroll:r}=t;return r&&(Vs(s.x,r.offset.x),Vs(s.y,r.offset.y)),s}const og=({current:e})=>e?e.ownerDocument.defaultView:null,PC=new WeakMap;class NC{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=Me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pi(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:m}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cC(h),!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),Et(v=>{let x=this.getAxisMotionValue(v).get()||0;if(sn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=it(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&Ee.postRender(()=>m(u,d)),lc(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:m,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=jC(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),c=()=>Et(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 Ym(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:og(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Ee.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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Qi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=xC(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=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&&Is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=bC(r.layoutBox,n):this.constraints=!1,this.elastic=CC(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=_C(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Is(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=RC(s,r.root,this.visualElement.getTransformPagePoint());let o=wC(r.layout.layoutBox,i);if(n){const a=n(EC(o));this.hasMutatedConstraints=!!a,a&&(o=ng(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Et(u=>{if(!Qi(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const h=r?200:1e6,y=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return lc(this.visualElement,t),s.start(su(t,s,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(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()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Et(n=>{const{drag:s}=this.getProps();if(!Qi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Is(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=SC({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Et(o=>{if(!Qi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Re(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;PC.set(this.visualElement,this);const t=this.visualElement.current,n=Ur(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Is(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ee.read(s);const o=ei(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Et(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:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=xc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Qi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kC extends Qn{constructor(t){super(t),this.removeGroupControls=vt,this.removeListeners=vt,this.controls=new NC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vt}unmount(){this.removeGroupControls(),this.removeListeners()}}const sf=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class OC extends Qn{constructor(){super(...arguments),this.removePointerDownListener=vt}onPointerDown(t){this.session=new Ym(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:og(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:sf(t),onStart:sf(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Ee.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Ur(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 oo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=rf(e,t.target.x),s=rf(e,t.target.y);return`${n}% ${s}%`}},MC={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Un.parse(e);if(r.length>5)return s;const i=Un.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Re(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class DC extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;cS(IC),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),jl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ag(e){const[t,n]=Zp(),s=g.useContext(Cl);return f.jsx(DC,{...e,layoutGroup:s,switchLayoutGroup:g.useContext(em),isPresent:t,safeToRemove:n})}const IC={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:MC};function LC(e,t,n){const s=Ye(e)?e:Yr(e);return s.start(su("",s,t,n)),s.animation}function FC(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VC=(e,t)=>e.depth-t.depth;class BC{constructor(){this.children=[],this.isDirty=!1}add(t){zl(this.children,t),this.isDirty=!0}remove(t){Wl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VC),this.isDirty=!1,this.children.forEach(t)}}function $C(e,t){const n=rn.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&($n(s),e(i-t))};return Ee.read(s,!0),()=>$n(s)}const cg=["TopLeft","TopRight","BottomLeft","BottomRight"],UC=cg.length,of=e=>typeof e=="string"?parseFloat(e):e,af=e=>typeof e=="number"||ee.test(e);function zC(e,t,n,s,r,i){r?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,WC(s)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,HC(s))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ost?1:n(ar(e,t,s))}function lf(e,t){e.min=t.min,e.max=t.max}function Ct(e,t){lf(e.x,t.x),lf(e.y,t.y)}function uf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function df(e,t,n,s,r){return e-=t,e=bo(e,1/n,s),r!==void 0&&(e=bo(e,1/r,s)),e}function qC(e,t=0,n=1,s=.5,r,i=e,o=e){if(sn.test(t)&&(t=parseFloat(t),t=Re(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Re(i.min,i.max,s);e===i&&(a-=t),e.min=df(e.min,t,n,a,r),e.max=df(e.max,t,n,a,r)}function ff(e,t,[n,s,r],i,o){qC(e,t[n],t[s],t[r],t.scale,i,o)}const ZC=["x","scaleX","originX"],KC=["y","scaleY","originY"];function hf(e,t,n,s){ff(e.x,t,ZC,n?n.x:void 0,s?s.x:void 0),ff(e.y,t,KC,n?n.y:void 0,s?s.y:void 0)}function pf(e){return e.translate===0&&e.scale===1}function ug(e){return pf(e.x)&&pf(e.y)}function mf(e,t){return e.min===t.min&&e.max===t.max}function GC(e,t){return mf(e.x,t.x)&&mf(e.y,t.y)}function gf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dg(e,t){return gf(e.x,t.x)&&gf(e.y,t.y)}function yf(e){return it(e.x)/it(e.y)}function vf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class QC{constructor(){this.members=[]}add(t){zl(this.members,t),t.scheduleRender()}remove(t){if(Wl(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(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XC(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),y&&(s+=`skewX(${y}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const ss={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dr=typeof window<"u"&&window.MotionDebug!==void 0,Da=["","X","Y","Z"],YC={visibility:"hidden"},xf=1e3;let JC=0;function Ia(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function fg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=mm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&fg(s)}function hg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=JC++,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,Dr&&(ss.totalNodes=ss.resolvedTargetDeltas=ss.recalculatedProjection=0),this.nodes.forEach(nE),this.nodes.forEach(aE),this.nodes.forEach(cE),this.nodes.forEach(sE),Dr&&window.MotionDebug.record(ss)},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=$C(h,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(wf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||hE,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!dg(this.targetLayout,m),w=!h&&y;if(this.options.layoutRoot||this.resumeFrom||w||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const _={...Ul(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,$n(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(lE),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&&fg(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&&!it(this.snapshot.measuredBox.x)&&!it(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 S=_/1e3;Sf(d.x,o.x,S),Sf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dE(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&GC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),Ct(w,this.relativeTarget)),p&&(this.animationValues=u,zC(u,l,this.latestValues,S,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{oo.hasAnimatedSinceResize=!0,this.currentAnimation=LC(0,xf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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(xf),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&&pg(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Me();const d=it(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const h=it(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Ct(a,c),Bs(a,u),zr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new QC),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&&Ia("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(bf),this.root.sharedNodes.clear()}}}function eE(e){e.updateLayout()}function tE(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:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=it(h);h.min=s[d].min,h.max=h.min+y}):pg(i,n.layoutBox,s)&&Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=it(s[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Fs();zr(a,s,n.layoutBox);const c=Fs();o?zr(c,e.applyTransform(r,!0),n.measuredBox):zr(c,s,n.layoutBox);const l=!ug(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:y}=d;if(h&&y){const m=Me();Wr(m,n.layoutBox,h.layoutBox);const p=Me();Wr(p,s,y.layoutBox),dg(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function nE(e){Dr&&ss.totalNodes++,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 sE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rE(e){e.clearSnapshot()}function bf(e){e.clearMeasurements()}function iE(e){e.isLayoutDirty=!1}function oE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aE(e){e.resolveTargetDelta()}function cE(e){e.calcProjection()}function lE(e){e.resetSkewAndRotation()}function uE(e){e.removeLeadSnapshot()}function Sf(e,t,n){e.translate=Re(t.translate,0,n),e.scale=Re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _f(e,t,n,s){e.min=Re(t.min,n.min,s),e.max=Re(t.max,n.max,s)}function dE(e,t,n,s){_f(e.x,t.x,n.x,s),_f(e.y,t.y,n.y,s)}function fE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hE={duration:.45,ease:[.4,0,.1,1]},Cf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ef=Cf("applewebkit/")&&!Cf("chrome/")?Math.round:vt;function Tf(e){e.min=Ef(e.min),e.max=Ef(e.max)}function pE(e){Tf(e.x),Tf(e.y)}function pg(e,t,n){return e==="position"||e==="preserve-aspect"&&!yC(yf(t),yf(n),.2)}function mE(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gE=hg({attachResizeListener:(e,t)=>ei(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),La={current:void 0},mg=hg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!La.current){const e=new gE({});e.mount(window),e.setOptions({layoutScroll:!0}),La.current=e}return La.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yE={pan:{Feature:OC},drag:{Feature:kC,ProjectionNode:mg,MeasureLayout:ag}};function vE(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function gg(e,t){const n=vE(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Af(e){return!(e.pointerType==="touch"||Xm())}function xE(e,t,n={}){const[s,r,i]=gg(e,n),o=a=>{if(!Af(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Af(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Rf(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Ee.postRender(()=>i(t,Pi(t)))}class bE extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=xE(t,(n,s)=>(Rf(this.node,s,"Start"),r=>Rf(this.node,r,"End"))))}unmount(){}}class wE extends Qn{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=Ri(ei(this.node.current,"focus",()=>this.onFocus()),ei(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yg=(e,t)=>t?e===t?!0:yg(e,t.parentElement):!1,SE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _E(e){return SE.has(e.tagName)||e.tabIndex!==-1}const Ir=new WeakSet;function Pf(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const CE=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Pf(()=>{if(Ir.has(n))return;Fa(n,"down");const r=Pf(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Nf(e){return ru(e)&&!Xm()}function EE(e,t,n={}){const[s,r,i]=gg(e,n),o=a=>{const c=a.currentTarget;if(!Nf(a)||Ir.has(c))return;Ir.add(c);const l=t(c,a),u=(y,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Nf(y)||!Ir.has(c))&&(Ir.delete(c),typeof l=="function"&&l(y,{success:m}))},d=y=>{u(y,n.useGlobalTarget||yg(c,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return s.forEach(a=>{!_E(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>CE(l,r),r)}),i}function jf(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Ee.postRender(()=>i(t,Pi(t)))}class TE extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=EE(t,(n,s)=>(jf(this.node,s,"Start"),(r,{success:i})=>jf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Sc=new WeakMap,Va=new WeakMap,AE=e=>{const t=Sc.get(e.target);t&&t(e)},RE=e=>{e.forEach(AE)};function PE({root:e,...t}){const n=e||document;Va.has(n)||Va.set(n,{});const s=Va.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(RE,{root:e,...t})),s[r]}function NE(e,t,n){const s=PE(t);return Sc.set(e,n),s.observe(e),()=>{Sc.delete(e),s.unobserve(e)}}const jE={some:0,all:1};class kE extends Qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:jE[r]},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(),h=l?u:d;h&&h(c)};return NE(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(OE(t,n))&&this.startObserver()}unmount(){}}function OE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ME={inView:{Feature:kE},tap:{Feature:TE},focus:{Feature:wE},hover:{Feature:bE}},DE={layout:{ProjectionNode:mg,MeasureLayout:ag}},_c={current:null},vg={current:!1};function IE(){if(vg.current=!0,!!Al)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_c.current=e.matches;e.addListener(t),t()}else _c.current=!1}const LE=[...Vm,Qe,Un],FE=e=>LE.find(Fm(e)),kf=new WeakMap;function VE(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Ye(r))e.addValue(s,r);else if(Ye(i))e.addValue(s,Yr(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,Yr(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Of=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BE{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,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=eu,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 y=rn.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),vg.current||IE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_c.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){kf.delete(this.current),this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(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 s=Ps.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),s&&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,()=>{r(),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 or){const n=or[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(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):Me()}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 s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Yr(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Im(r)||Am(r))?r=parseFloat(r):!FE(r)&&Un.test(n)&&(r=Om(t,n)),this.setBaseTarget(t,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=Ol(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xg extends BE{constructor(){super(...arguments),this.KeyframeResolver=Bm}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:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $E(e){return window.getComputedStyle(e)}class UE extends xg{constructor(){super(...arguments),this.type="html",this.renderInstance=om}readValueFromInstance(t,n){if(Ps.has(n)){const s=Jl(n);return s&&s.default||0}else{const s=$E(t),r=(Ml(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ig(t,n)}build(t,n,s){Ll(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return $l(t,n,s)}}class zE extends xg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ps.has(n)){const s=Jl(n);return s&&s.default||0}return n=am.has(n)?n:Nl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return um(t,n,s)}build(t,n,s){Fl(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){cm(t,n,s,r)}mount(t){this.isSVGTag=Bl(t.tagName),super.mount(t)}}const WE=(e,t)=>kl(e)?new zE(t):new UE(t,{allowProjection:e!==g.Fragment}),HE=yS({...aC,...ME,...yE,...DE},WE),Hr=k0(HE);var Ba,Mf;function qE(){if(Mf)return Ba;Mf=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof $i=="object"&&$i&&$i.Object===Object&&$i,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,h=d.toString,y=Math.max,m=Math.min,p=function(){return u.Date.now()};function v(S,A,E){var R,N,M,I,O,z,F=0,J=!1,X=!1,q=!0;if(typeof S!="function")throw new TypeError(e);A=_(A)||0,x(E)&&(J=!!E.leading,X="maxWait"in E,M=X?y(_(E.maxWait)||0,A):M,q="trailing"in E?!!E.trailing:q);function Z(ue){var ve=R,ke=N;return R=N=void 0,F=ue,I=S.apply(ke,ve),I}function re(ue){return F=ue,O=setTimeout(Be,A),J?Z(ue):I}function fe(ue){var ve=ue-z,ke=ue-F,Le=A-ve;return X?m(Le,M-ke):Le}function ye(ue){var ve=ue-z,ke=ue-F;return z===void 0||ve>=A||ve<0||X&&ke>=M}function Be(){var ue=p();if(ye(ue))return Ze(ue);O=setTimeout(Be,fe(ue))}function Ze(ue){return O=void 0,q&&R?Z(ue):(R=N=void 0,I)}function Ke(){O!==void 0&&clearTimeout(O),F=0,R=z=N=O=void 0}function jt(){return O===void 0?I:Ze(p())}function tt(){var ue=p(),ve=ye(ue);if(R=arguments,N=this,z=ue,ve){if(O===void 0)return re(z);if(X)return O=setTimeout(Be,A),Z(z)}return O===void 0&&(O=setTimeout(Be,A)),I}return tt.cancel=Ke,tt.flush=jt,tt}function x(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&h.call(S)==n}function _(S){if(typeof S=="number")return S;if(w(S))return t;if(x(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=x(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):r.test(S)?t:+S}return Ba=v,Ba}qE();var bg=typeof window<"u"?g.useLayoutEffect:g.useEffect,ZE=typeof window>"u";function wo(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>ZE?t:window.matchMedia(a).matches,[r,i]=g.useState(()=>n?s(e):t);function o(){i(s(e))}return bg(()=>{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]),r}var KE=typeof window>"u";function GE(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=g.useState(!1),o=g.useRef(null),a=g.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const h=o.current===document.body?window.innerWidth:o.current.offsetWidth,y=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,m=h-o.current.scrollWidth;o.current.style.paddingRight=`${m+y}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return bg(()=>{if(!KE)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,s]),{isLocked:r,lock:c,unlock:l}}const Pk=({className:e,stage:t})=>{const n=wo("(min-width: 768px");return f.jsx("div",{className:e,children:f.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:f.jsxs("div",{className:"relative h-14 w-full",children:[f.jsx("div",{className:V("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),f.jsx(Hr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:V("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})}),f.jsx(Hr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:V("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),f.jsx(Hr.div,{className:V("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"}),f.jsx("div",{className:V("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"}),f.jsx("div",{className:V("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 Ni=e=>e.type==="checkbox",is=e=>e instanceof Date,rt=e=>e==null;const wg=e=>typeof e=="object";var Ie=e=>!rt(e)&&!Array.isArray(e)&&wg(e)&&!is(e),Sg=e=>Ie(e)&&e.target?Ni(e.target)?e.target.checked:e.target.value:e,QE=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,_g=(e,t)=>e.has(QE(t)),XE=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},iu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(e){let t;const n=Array.isArray(e),s=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(!(iu&&(e instanceof Blob||s))&&(n||Ie(e)))if(t=n?[]:{},!n&&!XE(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=lt(e[r]));else return e;return t}var na=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const s=na(t.split(/[,[\].]+?/)).reduce((r,i)=>rt(r)?r:r[i],e);return De(s)||s===e?De(e[t])?n:e[t]:s},Rt=e=>typeof e=="boolean",ou=e=>/^\w*$/.test(e),Cg=e=>na(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=ou(t)?[t]:Cg(t),i=r.length,o=i-1;for(;++sde.useContext(Eg),YE=e=>{const{children:t,...n}=e;return de.createElement(Eg.Provider,{value:n},t)};var Tg=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==It.all&&(t._proxyFormState[o]=!s||It.all),n&&(n[o]=!0),e[o]}});return r},dt=e=>Ie(e)&&!Object.keys(e).length,Ag=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return dt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||It.all))},qr=e=>Array.isArray(e)?e:[e],Rg=(e,t,n)=>!e||!t||e===t||qr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function au(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 JE(e){const t=sa(),{control:n=t.control,disabled:s,name:r,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(r);return u.current=r,au({disabled:s,next:d=>c.current&&Rg(u.current,d.name,i)&&Ag(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(()=>Tg(o,n,l.current,!1),[o,n])}var nn=e=>typeof e=="string",Pg=(e,t,n,s,r)=>nn(e)?(s&&t.watch.add(e),$(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),$(n,i))):(s&&(t.watchAll=!0),n);function eT(e){const t=sa(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=de.useRef(s);a.current=s,au({disabled:i,subject:n._subjects.values,next:u=>{Rg(a.current,u.name,o)&&l(lt(Pg(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=de.useState(n._getWatch(s,r));return de.useEffect(()=>n._removeUnmounted()),c}function tT(e){const t=sa(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=_g(r._names.array,n),a=eT({control:r,name:n,defaultValue:$(r._formValues,n,$(r._defaultValues,n,e.defaultValue)),exact:!0}),c=JE({control:r,name:n,exact:!0}),l=de.useRef(r.register(n,{...e.rules,value:a,...Rt(e.disabled)?{disabled:e.disabled}:{}})),u=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!$(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$(c.validatingFields,n)},error:{enumerable:!0,get:()=>$(c.errors,n)}}),[c,n]),d=de.useMemo(()=>({name:n,value:a,...Rt(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:h=>l.current.onChange({target:{value:Sg(h),name:n},type:So.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:$(r._formValues,n),name:n},type:So.BLUR}),ref:h=>{const y=$(r._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:m=>h.setCustomValidity(m),reportValidity:()=>h.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return de.useEffect(()=>{const h=r._options.shouldUnregister||i,y=(m,p)=>{const v=$(r._fields,m);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const m=lt($(r._options.defaultValues,n));xe(r._defaultValues,n,m),De($(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?h&&!r._state.action:h)?r.unregister(n):y(n,!1)}},[n,r,o,i]),de.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const nT=e=>e.render(tT(e));var Ng=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},Df=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),If=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Zr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=$(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Zr(a,t))break}else if(Ie(a)&&Zr(a,t))break}}};var sT=(e,t,n)=>{const s=qr($(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},cu=e=>e.type==="file",tn=e=>typeof e=="function",_o=e=>{if(!iu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ao=e=>nn(e),lu=e=>e.type==="radio",Co=e=>e instanceof RegExp;const Lf={value:!1,isValid:!1},Ff={value:!0,isValid:!0};var jg=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&&!De(e[0].attributes.value)?De(e[0].value)||e[0].value===""?Ff:{value:e[0].value,isValid:!0}:Ff:Lf}return Lf};const Vf={isValid:!1,value:null};var kg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Vf):Vf;function Bf(e,t,n="validate"){if(ao(e)||Array.isArray(e)&&e.every(ao)||Rt(e)&&!e)return{type:n,message:ao(e)?e:"",ref:t}}var Ms=e=>Ie(e)&&!Co(e)?e:{value:e,message:""},$f=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:h,pattern:y,validate:m,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=O=>{r&&w.reportValidity&&(w.setCustomValidity(Rt(O)?"":O||""),w.reportValidity())},S={},A=lu(o),E=Ni(o),R=A||E,N=(v||cu(o))&&De(o.value)&&De(b)||_o(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,M=Ng.bind(null,p,s,S),I=(O,z,F,J=pn.maxLength,X=pn.minLength)=>{const q=O?z:F;S[p]={type:O?J:X,message:q,ref:o,...M(O?J:X,q)}};if(i?!Array.isArray(b)||!b.length:c&&(!R&&(N||rt(b))||Rt(b)&&!b||E&&!jg(a).isValid||A&&!kg(a).isValid)){const{value:O,message:z}=ao(c)?{value:!!c,message:c}:Ms(c);if(O&&(S[p]={type:pn.required,message:z,ref:w,...M(pn.required,z)},!s))return _(z),S}if(!N&&(!rt(d)||!rt(h))){let O,z;const F=Ms(h),J=Ms(d);if(!rt(b)&&!isNaN(b)){const X=o.valueAsNumber||b&&+b;rt(F.value)||(O=X>F.value),rt(J.value)||(z=Xnew Date(new Date().toDateString()+" "+fe),Z=o.type=="time",re=o.type=="week";nn(F.value)&&b&&(O=Z?q(b)>q(F.value):re?b>F.value:X>new Date(F.value)),nn(J.value)&&b&&(z=Z?q(b)+O.value,J=!rt(z.value)&&b.length<+z.value;if((F||J)&&(I(F,O.message,z.message),!s))return _(S[p].message),S}if(y&&!N&&nn(b)){const{value:O,message:z}=Ms(y);if(Co(O)&&!b.match(O)&&(S[p]={type:pn.pattern,message:z,ref:o,...M(pn.pattern,z)},!s))return _(z),S}if(m){if(tn(m)){const O=await m(b,n),z=Bf(O,w);if(z&&(S[p]={...z,...M(pn.validate,z.message)},!s))return _(z.message),S}else if(Ie(m)){let O={};for(const z in m){if(!dt(O)&&!s)break;const F=Bf(await m[z](b,n),w,z);F&&(O={...F,...M(z,F.message)},_(F.message),s&&(S[p]=O))}if(!dt(O)&&(S[p]={ref:w,...O},!s))return S}}return _(!0),S};function rT(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},Cc=e=>rt(e)||!wg(e);function kn(e,t){if(Cc(e)||Cc(t))return e===t;if(is(e)&&is(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(is(i)&&is(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!kn(i,o):i!==o)return!1}}return!0}var Og=e=>e.type==="select-multiple",oT=e=>lu(e)||Ni(e),Ua=e=>_o(e)&&e.isConnected,Mg=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function Eo(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!Mg(e[s])?(t[s]=Array.isArray(e[s])?[]:{},Eo(e[s],t[s])):rt(e[s])||(t[s]=!0);return t}function Dg(e,t,n){const s=Array.isArray(e);if(Ie(e)||s)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!Mg(e[r])?De(t)||Cc(n[r])?n[r]=Array.isArray(e[r])?Eo(e[r],[]):{...Eo(e[r])}:Dg(e[r],rt(t)?{}:t[r],n[r]):n[r]=!kn(e[r],t[r]);return n}var jr=(e,t)=>Dg(e,t,Eo(t)),Ig=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>De(e)?e:t?e===""?NaN:e&&+e:n&&nn(e)?new Date(e):s?s(e):e;function za(e){const t=e.ref;return cu(t)?t.files:lu(t)?kg(e.refs).value:Og(t)?[...t.selectedOptions].map(({value:n})=>n):Ni(t)?jg(e.refs).value:Ig(De(t.value)?e.ref.value:t.value,e)}var aT=(e,t,n,s)=>{const r={};for(const i of e){const o=$(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},kr=e=>De(e)?e:Co(e)?e.source:Ie(e)?Co(e.value)?e.value.source:e.value:e;const Uf="AsyncFunction";var cT=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===Uf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Uf)),lT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function zf(e,t,n){const s=$(e,n);if(s||ou(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=$(t,i),a=$(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var uT=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,dT=(e,t)=>!na($(e,t)).length&&$e(e,t);const fT={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function hT(e={}){let t={...fT,...e},n={submitCount:0,isDirty:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Ie(t.defaultValues)||Ie(t.values)?lt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:lt(r),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:$a(),array:$a(),state:$a()},h=Df(t.mode),y=Df(t.reValidateMode),m=t.criteriaMode===It.all,p=C=>P=>{clearTimeout(l),l=setTimeout(C,P)},v=async C=>{if(!t.disabled&&(u.isValid||C)){const P=t.resolver?dt((await R()).errors):await M(s,!0);P!==n.isValid&&d.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(k=>{k&&(P?xe(n.validatingFields,k,P):$e(n.validatingFields,k))}),d.state.next({validatingFields:n.validatingFields,isValidating:!dt(n.validatingFields)}))},b=(C,P=[],k,U,B=!0,L=!0)=>{if(U&&k&&!t.disabled){if(o.action=!0,L&&Array.isArray($(s,C))){const Y=k($(s,C),U.argA,U.argB);B&&xe(s,C,Y)}if(L&&Array.isArray($(n.errors,C))){const Y=k($(n.errors,C),U.argA,U.argB);B&&xe(n.errors,C,Y),dT(n.errors,C)}if(u.touchedFields&&L&&Array.isArray($(n.touchedFields,C))){const Y=k($(n.touchedFields,C),U.argA,U.argB);B&&xe(n.touchedFields,C,Y)}u.dirtyFields&&(n.dirtyFields=jr(r,i)),d.state.next({name:C,isDirty:O(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,C,P)},w=(C,P)=>{xe(n.errors,C,P),d.state.next({errors:n.errors})},_=C=>{n.errors=C,d.state.next({errors:n.errors,isValid:!1})},S=(C,P,k,U)=>{const B=$(s,C);if(B){const L=$(i,C,De(k)?$(r,C):k);De(L)||U&&U.defaultChecked||P?xe(i,C,P?L:za(B._f)):J(C,L),o.mount&&v()}},A=(C,P,k,U,B)=>{let L=!1,Y=!1;const ae={name:C};if(!t.disabled){const Fe=!!($(s,C)&&$(s,C)._f&&$(s,C)._f.disabled);if(!k||U){u.isDirty&&(Y=n.isDirty,n.isDirty=ae.isDirty=O(),L=Y!==ae.isDirty);const Oe=Fe||kn($(r,C),P);Y=!!(!Fe&&$(n.dirtyFields,C)),Oe||Fe?$e(n.dirtyFields,C):xe(n.dirtyFields,C,!0),ae.dirtyFields=n.dirtyFields,L=L||u.dirtyFields&&Y!==!Oe}if(k){const Oe=$(n.touchedFields,C);Oe||(xe(n.touchedFields,C,k),ae.touchedFields=n.touchedFields,L=L||u.touchedFields&&Oe!==k)}L&&B&&d.state.next(ae)}return L?ae:{}},E=(C,P,k,U)=>{const B=$(n.errors,C),L=u.isValid&&Rt(P)&&n.isValid!==P;if(t.delayError&&k?(c=p(()=>w(C,k)),c(t.delayError)):(clearTimeout(l),c=null,k?xe(n.errors,C,k):$e(n.errors,C)),(k?!kn(B,k):B)||!dt(U)||L){const Y={...U,...L&&Rt(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...Y},d.state.next(Y)}},R=async C=>{x(C,!0);const P=await t.resolver(i,t.context,aT(C||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},N=async C=>{const{errors:P}=await R(C);if(C)for(const k of C){const U=$(P,k);U?xe(n.errors,k,U):$e(n.errors,k)}else n.errors=P;return P},M=async(C,P,k={valid:!0})=>{for(const U in C){const B=C[U];if(B){const{_f:L,...Y}=B;if(L){const ae=a.array.has(L.name),Fe=B._f&&cT(B._f);Fe&&u.validatingFields&&x([U],!0);const Oe=await $f(B,a.disabled,i,m,t.shouldUseNativeValidation&&!P,ae);if(Fe&&u.validatingFields&&x([U]),Oe[L.name]&&(k.valid=!1,P))break;!P&&($(Oe,L.name)?ae?sT(n.errors,Oe,L.name):xe(n.errors,L.name,Oe[L.name]):$e(n.errors,L.name))}!dt(Y)&&await M(Y,P,k)}}return k.valid},I=()=>{for(const C of a.unMount){const P=$(s,C);P&&(P._f.refs?P._f.refs.every(k=>!Ua(k)):!Ua(P._f.ref))&&tt(C)}a.unMount=new Set},O=(C,P)=>!t.disabled&&(C&&P&&xe(i,C,P),!kn(ye(),r)),z=(C,P,k)=>Pg(C,a,{...o.mount?i:De(P)?r:nn(C)?{[C]:P}:P},k,P),F=C=>na($(o.mount?i:r,C,t.shouldUnregister?$(r,C,[]):[])),J=(C,P,k={})=>{const U=$(s,C);let B=P;if(U){const L=U._f;L&&(!L.disabled&&xe(i,C,Ig(P,L)),B=_o(L.ref)&&rt(P)?"":P,Og(L.ref)?[...L.ref.options].forEach(Y=>Y.selected=B.includes(Y.value)):L.refs?Ni(L.ref)?L.refs.length>1?L.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(B)?!!B.find(ae=>ae===Y.value):B===Y.value)):L.refs[0]&&(L.refs[0].checked=!!B):L.refs.forEach(Y=>Y.checked=Y.value===B):cu(L.ref)?L.ref.value="":(L.ref.value=B,L.ref.type||d.values.next({name:C,values:{...i}})))}(k.shouldDirty||k.shouldTouch)&&A(C,B,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&fe(C)},X=(C,P,k)=>{for(const U in P){const B=P[U],L=`${C}.${U}`,Y=$(s,L);(a.array.has(C)||Ie(B)||Y&&!Y._f)&&!is(B)?X(L,B,k):J(L,B,k)}},q=(C,P,k={})=>{const U=$(s,C),B=a.array.has(C),L=lt(P);xe(i,C,L),B?(d.array.next({name:C,values:{...i}}),(u.isDirty||u.dirtyFields)&&k.shouldDirty&&d.state.next({name:C,dirtyFields:jr(r,i),isDirty:O(C,L)})):U&&!U._f&&!rt(L)?X(C,L,k):J(C,L,k),If(C,a)&&d.state.next({...n}),d.values.next({name:o.mount?C:void 0,values:{...i}})},Z=async C=>{o.mount=!0;const P=C.target;let k=P.name,U=!0;const B=$(s,k),L=()=>P.type?za(B._f):Sg(C),Y=ae=>{U=Number.isNaN(ae)||is(ae)&&isNaN(ae.getTime())||kn(ae,$(i,k,ae))};if(B){let ae,Fe;const Oe=L(),qt=C.type===So.BLUR||C.type===So.FOCUS_OUT,Er=!lT(B._f)&&!t.resolver&&!$(n.errors,k)&&!B._f.deps||uT(qt,$(n.touchedFields,k),n.isSubmitted,y,h),Zt=If(k,a,qt);xe(i,k,Oe),qt?(B._f.onBlur&&B._f.onBlur(C),c&&c(0)):B._f.onChange&&B._f.onChange(C);const Jn=A(k,Oe,qt,!1),Tr=!dt(Jn)||Zt;if(!qt&&d.values.next({name:k,type:C.type,values:{...i}}),Er)return u.isValid&&(t.mode==="onBlur"&&qt?v():qt||v()),Tr&&d.state.next({name:k,...Zt?{}:Jn});if(!qt&&Zt&&d.state.next({...n}),t.resolver){const{errors:es}=await R([k]);if(Y(Oe),U){const ya=zf(n.errors,s,k),Vi=zf(es,s,ya.name||k);ae=Vi.error,k=Vi.name,Fe=dt(es)}}else x([k],!0),ae=(await $f(B,a.disabled,i,m,t.shouldUseNativeValidation))[k],x([k]),Y(Oe),U&&(ae?Fe=!1:u.isValid&&(Fe=await M(s,!0)));U&&(B._f.deps&&fe(B._f.deps),E(k,Fe,ae,Jn))}},re=(C,P)=>{if($(n.errors,P)&&C.focus)return C.focus(),1},fe=async(C,P={})=>{let k,U;const B=qr(C);if(t.resolver){const L=await N(De(C)?C:B);k=dt(L),U=C?!B.some(Y=>$(L,Y)):k}else C?(U=(await Promise.all(B.map(async L=>{const Y=$(s,L);return await M(Y&&Y._f?{[L]:Y}:Y)}))).every(Boolean),!(!U&&!n.isValid)&&v()):U=k=await M(s);return d.state.next({...!nn(C)||u.isValid&&k!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:k}:{},errors:n.errors}),P.shouldFocus&&!U&&Zr(s,re,C?B:a.mount),U},ye=C=>{const P={...o.mount?i:r};return De(C)?P:nn(C)?$(P,C):C.map(k=>$(P,k))},Be=(C,P)=>({invalid:!!$((P||n).errors,C),isDirty:!!$((P||n).dirtyFields,C),error:$((P||n).errors,C),isValidating:!!$(n.validatingFields,C),isTouched:!!$((P||n).touchedFields,C)}),Ze=C=>{C&&qr(C).forEach(P=>$e(n.errors,P)),d.state.next({errors:C?n.errors:{}})},Ke=(C,P,k)=>{const U=($(s,C,{_f:{}})._f||{}).ref,B=$(n.errors,C)||{},{ref:L,message:Y,type:ae,...Fe}=B;xe(n.errors,C,{...Fe,...P,ref:U}),d.state.next({name:C,errors:n.errors,isValid:!1}),k&&k.shouldFocus&&U&&U.focus&&U.focus()},jt=(C,P)=>tn(C)?d.values.subscribe({next:k=>C(z(void 0,P),k)}):z(C,P,!0),tt=(C,P={})=>{for(const k of C?qr(C):a.mount)a.mount.delete(k),a.array.delete(k),P.keepValue||($e(s,k),$e(i,k)),!P.keepError&&$e(n.errors,k),!P.keepDirty&&$e(n.dirtyFields,k),!P.keepTouched&&$e(n.touchedFields,k),!P.keepIsValidating&&$e(n.validatingFields,k),!t.shouldUnregister&&!P.keepDefaultValue&&$e(r,k);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:O()}:{}}),!P.keepIsValid&&v()},ue=({disabled:C,name:P,field:k,fields:U})=>{(Rt(C)&&o.mount||C||a.disabled.has(P))&&(C?a.disabled.add(P):a.disabled.delete(P),A(P,za(k?k._f:$(U,P)._f),!1,!1,!0))},ve=(C,P={})=>{let k=$(s,C);const U=Rt(P.disabled)||Rt(t.disabled);return xe(s,C,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:C}},name:C,mount:!0,...P}}),a.mount.add(C),k?ue({field:k,disabled:Rt(P.disabled)?P.disabled:t.disabled,name:C}):S(C,!0,P.value),{...U?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:kr(P.min),max:kr(P.max),minLength:kr(P.minLength),maxLength:kr(P.maxLength),pattern:kr(P.pattern)}:{},name:C,onChange:Z,onBlur:Z,ref:B=>{if(B){ve(C,P),k=$(s,C);const L=De(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,Y=oT(L),ae=k._f.refs||[];if(Y?ae.find(Fe=>Fe===L):L===k._f.ref)return;xe(s,C,{_f:{...k._f,...Y?{refs:[...ae.filter(Ua),L,...Array.isArray($(r,C))?[{}]:[]],ref:{type:L.type,name:C}}:{ref:L}}}),S(C,!1,void 0,L)}else k=$(s,C,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(_g(a.array,C)&&o.action)&&a.unMount.add(C)}}},ke=()=>t.shouldFocusError&&Zr(s,re,a.mount),Le=C=>{Rt(C)&&(d.state.next({disabled:C}),Zr(s,(P,k)=>{const U=$(s,k);U&&(P.disabled=U._f.disabled||C,Array.isArray(U._f.refs)&&U._f.refs.forEach(B=>{B.disabled=U._f.disabled||C}))},0,!1))},we=(C,P)=>async k=>{let U;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let B=lt(i);if(a.disabled.size)for(const L of a.disabled)xe(B,L,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:L,values:Y}=await R();n.errors=L,B=Y}else await M(s);if($e(n.errors,"root"),dt(n.errors)){d.state.next({errors:{}});try{await C(B,k)}catch(L){U=L}}else P&&await P({...n.errors},k),ke(),setTimeout(ke);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dt(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(C,P={})=>{$(s,C)&&(De(P.defaultValue)?q(C,lt($(r,C))):(q(C,P.defaultValue),xe(r,C,lt(P.defaultValue))),P.keepTouched||$e(n.touchedFields,C),P.keepDirty||($e(n.dirtyFields,C),n.isDirty=P.defaultValue?O(C,lt($(r,C))):O()),P.keepError||($e(n.errors,C),u.isValid&&v()),d.state.next({...n}))},he=(C,P={})=>{const k=C?lt(C):r,U=lt(k),B=dt(C),L=B?r:U;if(P.keepDefaultValues||(r=k),!P.keepValues){if(P.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(jr(r,i))]);for(const ae of Array.from(Y))$(n.dirtyFields,ae)?xe(L,ae,$(i,ae)):q(ae,$(L,ae))}else{if(iu&&De(C))for(const Y of a.mount){const ae=$(s,Y);if(ae&&ae._f){const Fe=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(_o(Fe)){const Oe=Fe.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?P.keepDefaultValues?lt(r):{}:lt(L),d.array.next({values:{...L}}),d.values.next({values:{...L}})}a={mount:P.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:B?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!kn(C,r)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:P.keepDirtyValues?P.keepDefaultValues&&i?jr(r,i):n.dirtyFields:P.keepDefaultValues&&C?jr(r,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(C,P)=>he(tn(C)?C(i):C,P);return{control:{register:ve,unregister:tt,getFieldState:Be,handleSubmit:we,setError:Ke,_executeSchema:R,_getWatch:z,_getDirty:O,_updateValid:v,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:F,_reset:he,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(C=>{Se(C,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:Le,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(C){o=C},get _defaultValues(){return r},get _names(){return a},set _names(C){a=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:fe,register:ve,handleSubmit:we,watch:jt,setValue:q,getValues:ye,reset:Se,resetField:G,clearErrors:Ze,unregister:tt,setError:Ke,setFocus:(C,P={})=>{const k=$(s,C),U=k&&k._f;if(U){const B=U.refs?U.refs[0]:U.ref;B.focus&&(B.focus(),P.shouldSelect&&tn(B.select)&&B.select())}},getFieldState:Be}}function pT(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[s,r]=de.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...hT(e),formState:s});const i=t.current.control;return i._options=e,au({subject:i._subjects.state,next:o=>{Ag(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),de.useEffect(()=>{e.values&&!kn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(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=Tg(s,i),t.current}var mT="Label",Lg=g.forwardRef((e,t)=>f.jsx(ct.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Lg.displayName=mT;var Fg=Lg;const gT=Go("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Vg=g.forwardRef(({className:e,...t},n)=>f.jsx(Fg,{ref:n,className:V(gT(),e),...t}));Vg.displayName=Fg.displayName;const Nk=YE,Bg=g.createContext({}),yT=({...e})=>f.jsx(Bg.Provider,{value:{name:e.name},children:f.jsx(nT,{...e})}),ra=()=>{const e=g.useContext(Bg),t=g.useContext($g),{getFieldState:n,formState:s}=sa(),r=n(e.name,s);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`,...r}},$g=g.createContext({}),Ug=g.forwardRef(({className:e,...t},n)=>{const s=g.useId();return f.jsx($g.Provider,{value:{id:s},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});Ug.displayName="FormItem";const zg=g.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=ra();return f.jsx(Vg,{ref:n,className:V(s&&"text-destructive",e),htmlFor:r,...t})});zg.displayName="FormLabel";const Wg=g.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=ra();return f.jsx(mr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});Wg.displayName="FormControl";const vT=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=ra();return f.jsx("p",{ref:n,id:s,className:V("text-[0.8rem] text-muted-foreground",e),...t})});vT.displayName="FormDescription";const Hg=g.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=ra(),o=r?String(r==null?void 0:r.message):t;return o?f.jsx("p",{ref:s,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Hg.displayName="FormMessage";const Ec=g.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?f.jsx("input",{type:t,className:V("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:s,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:V("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),f.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:[f.jsx(mw,{className:"cursor-pointer",size:16})," Upload file"]})]}));Ec.displayName="Input";const qg=g.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:V("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}));qg.displayName="Textarea";const jk=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:h=!1})=>f.jsx(yT,{control:e,name:t,render:({field:y})=>f.jsxs(Ug,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(zg,{className:V("text-xl",h&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(Wg,{children:f.jsx(f.Fragment,{children:c?f.jsx(qg,{rows:3,...y,placeholder:s,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Ec,{...y,type:i,placeholder:s,disabled:a,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):f.jsxs("div",{className:"relative",children:[f.jsx(Ec,{type:"file",placeholder:s,onChange:m=>{var v;const p=((v=m.target.files)==null?void 0:v[0])||null;console.log("Выбранный файл:",p),y.onChange(p),d&&d(m)},disabled:a}),y.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",y.value.name]})]})})}),f.jsx(Hg,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&h?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),kk=({className:e,delay:t=.15})=>f.jsxs(Hr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:V("flex flex-col gap-8 my-16",e),children:[f.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),f.jsx(Ce,{className:"w-fit mx-auto",to:"/",children:f.jsx(ot,{variant:"outline",children:"Вернуться на главную"})})]}),xT=({className:e,slides:t,active:n,scrollTo:s})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>f.jsx("span",{onClick:()=>s==null?void 0:s(i),className:V(n===i?"dot-active":"dot")},i))}),bT=["top","right","bottom","left"],zn=Math.min,mt=Math.max,To=Math.round,Xi=Math.floor,on=e=>({x:e,y:e}),wT={left:"right",right:"left",bottom:"top",top:"bottom"},ST={start:"end",end:"start"};function Tc(e,t,n){return mt(e,zn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function wr(e){return e.split("-")[1]}function uu(e){return e==="x"?"y":"x"}function du(e){return e==="y"?"height":"width"}function Wn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function fu(e){return uu(Wn(e))}function _T(e,t,n){n===void 0&&(n=!1);const s=wr(e),r=fu(e),i=du(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ao(o)),[o,Ao(o)]}function CT(e){const t=Ao(e);return[Ac(e),t,Ac(t)]}function Ac(e){return e.replace(/start|end/g,t=>ST[t])}function ET(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function TT(e,t,n,s){const r=wr(e);let i=ET(_n(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(Ac)))),i}function Ao(e){return e.replace(/left|right|bottom|top/g,t=>wT[t])}function AT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zg(e){return typeof e!="number"?AT(e):{top:e,right:e,bottom:e,left:e}}function Ro(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function Wf(e,t,n){let{reference:s,floating:r}=e;const i=Wn(t),o=fu(t),a=du(o),c=_n(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,h=s[a]/2-r[a]/2;let y;switch(c){case"top":y={x:u,y:s.y-r.height};break;case"bottom":y={x:u,y:s.y+s.height};break;case"right":y={x:s.x+s.width,y:d};break;case"left":y={x:s.x-r.width,y:d};break;default:y={x:s.x,y:s.y}}switch(wr(t)){case"start":y[o]-=h*(n&&l?-1:1);break;case"end":y[o]+=h*(n&&l?-1:1);break}return y}const RT=async(e,t,n)=>{const{placement:s="bottom",strategy:r="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:r}),{x:u,y:d}=Wf(l,s,c),h=s,y={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Sn(e,t)||{};if(l==null)return{};const d=Zg(u),h={x:n,y:s},y=fu(r),m=du(y),p=await o.getDimensions(l),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[y]-h[y]-i.floating[m],S=h[y]-i.reference[y],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=A?A[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(A)))&&(E=a.floating[w]||i.floating[m]);const R=_/2-S/2,N=E/2-p[m]/2-1,M=zn(d[x],N),I=zn(d[b],N),O=M,z=E-p[m]-I,F=E/2-p[m]/2+R,J=Tc(O,F,z),X=!c.arrow&&wr(r)!=null&&F!==J&&i.reference[m]/2-(FF<=0)){var I,O;const F=(((I=i.flip)==null?void 0:I.index)||0)+1,J=E[F];if(J)return{data:{index:F,overflows:M},reset:{placement:J}};let X=(O=M.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:O.placement;if(!X)switch(y){case"bestFit":{var z;const q=(z=M.filter(Z=>{if(A){const re=Wn(Z.placement);return re===b||re==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,fe)=>re+fe,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:z[0];q&&(X=q);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}return{}}}};function Hf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qf(e){return bT.some(t=>e[t]>=0)}const jT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=Sn(e,t);switch(s){case"referenceHidden":{const i=await ti(t,{...r,elementContext:"reference"}),o=Hf(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:qf(o)}}}case"escaped":{const i=await ti(t,{...r,altBoundary:!0}),o=Hf(i,n.floating);return{data:{escapedOffsets:o,escaped:qf(o)}}}default:return{}}}}};async function kT(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=_n(n),a=wr(n),c=Wn(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Sn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),c?{x:y*u,y:h*l}:{x:h*l,y:y*u}}const OT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await kT(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},MT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=Sn(e,t),l={x:n,y:s},u=await ti(t,c),d=Wn(_n(r)),h=uu(d);let y=l[h],m=l[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=Tc(b,y,w)}if(o){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=m+u[v],w=m-u[x];m=Tc(b,m,w)}const p=a.fn({...t,[h]:y,[d]:m});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[d]:o}}}}}},DT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Sn(e,t),u={x:n,y:s},d=Wn(r),h=uu(d);let y=u[h],m=u[d];const p=Sn(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=h==="y"?"height":"width",_=i.reference[h]-i.floating[w]+v.mainAxis,S=i.reference[h]+i.reference[w]-v.mainAxis;y<_?y=_:y>S&&(y=S)}if(l){var x,b;const w=h==="y"?"width":"height",_=["top","left"].includes(_n(r)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),A=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);mA&&(m=A)}return{[h]:y,[d]:m}}}},IT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Sn(e,t),u=await ti(t,l),d=_n(r),h=wr(r),y=Wn(r)==="y",{width:m,height:p}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,v=h==="end"?"top":"bottom");const b=p-u.top-u.bottom,w=m-u.left-u.right,_=zn(p-u[v],b),S=zn(m-u[x],w),A=!t.middlewareData.shift;let E=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=b),A&&!h){const M=mt(u.left,0),I=mt(u.right,0),O=mt(u.top,0),z=mt(u.bottom,0);y?R=m-2*(M!==0||I!==0?M+I:mt(u.left,u.right)):E=p-2*(O!==0||z!==0?O+z:mt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:E});const N=await o.getDimensions(a.floating);return m!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function ia(){return typeof window<"u"}function Sr(e){return Kg(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(Kg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kg(e){return ia()?e instanceof Node||e instanceof xt(e).Node:!1}function Bt(e){return ia()?e instanceof Element||e instanceof xt(e).Element:!1}function cn(e){return ia()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function Zf(e){return!ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function LT(e){return["table","td","th"].includes(Sr(e))}function oa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function hu(e){const t=pu(),n=Bt(e)?$t(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="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(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function FT(e){let t=Hn(e);for(;cn(t)&&!lr(t);){if(hu(t))return t;if(oa(t))return null;t=Hn(t)}return null}function pu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lr(e){return["html","body","#document"].includes(Sr(e))}function $t(e){return xt(e).getComputedStyle(e)}function aa(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zf(e)&&e.host||fn(e);return Zf(t)?t.host:t}function Gg(e){const t=Hn(e);return lr(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ji(t)?t:Gg(t)}function ni(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Gg(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=xt(r);if(i){const a=Rc(o);return t.concat(o,o.visualViewport||[],ji(r)?r:[],a&&n?ni(a):[])}return t.concat(r,ni(r,[],n))}function Rc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qg(e){const t=$t(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=cn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=To(n)!==i||To(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function mu(e){return Bt(e)?e:e.contextElement}function Ws(e){const t=mu(e);if(!cn(t))return on(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=Qg(t);let o=(i?To(n.width):n.width)/s,a=(i?To(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const VT=on(0);function Xg(e){const t=xt(e);return!pu()||!t.visualViewport?VT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function ws(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=mu(e);let o=on(1);t&&(s?Bt(s)&&(o=Ws(s)):o=Ws(e));const a=BT(i,n,s)?Xg(i):on(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const h=xt(i),y=s&&Bt(s)?xt(s):s;let m=h,p=Rc(m);for(;p&&s&&y!==m;){const v=Ws(p),x=p.getBoundingClientRect(),b=$t(p),w=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,_=x.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=w,l+=_,m=xt(p),p=Rc(m)}}return Ro({width:u,height:d,x:c,y:l})}function gu(e,t){const n=aa(e).scrollLeft;return t?t.left+n:ws(fn(e)).left+n}function Yg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:gu(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function $T(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=fn(s),a=t?oa(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=on(1);const u=on(0),d=cn(s);if((d||!d&&!i)&&((Sr(s)!=="body"||ji(o))&&(c=aa(s)),cn(s))){const y=ws(s);l=Ws(s),u.x=y.x+s.clientLeft,u.y=y.y+s.clientTop}const h=o&&!d&&!i?Yg(o,c,!0):on(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}}function UT(e){return Array.from(e.getClientRects())}function zT(e){const t=fn(e),n=aa(e),s=e.ownerDocument.body,r=mt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=mt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+gu(e);const a=-n.scrollTop;return $t(s).direction==="rtl"&&(o+=mt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function WT(e,t){const n=xt(e),s=fn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=pu();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function HT(e,t){const n=ws(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=cn(e)?Ws(e):on(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Kf(e,t,n){let s;if(t==="viewport")s=WT(e,n);else if(t==="document")s=zT(fn(e));else if(Bt(t))s=HT(t,n);else{const r=Xg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ro(s)}function Jg(e,t){const n=Hn(e);return n===t||!Bt(n)||lr(n)?!1:$t(n).position==="fixed"||Jg(n,t)}function qT(e,t){const n=t.get(e);if(n)return n;let s=ni(e,[],!1).filter(a=>Bt(a)&&Sr(a)!=="body"),r=null;const i=$t(e).position==="fixed";let o=i?Hn(e):e;for(;Bt(o)&&!lr(o);){const a=$t(o),c=hu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ji(o)&&!c&&Jg(e,o))?s=s.filter(u=>u!==o):r=a,o=Hn(o)}return t.set(e,s),s}function ZT(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?oa(t)?[]:qT(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=Kf(t,u,r);return l.top=mt(d.top,l.top),l.right=zn(d.right,l.right),l.bottom=zn(d.bottom,l.bottom),l.left=mt(d.left,l.left),l},Kf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function KT(e){const{width:t,height:n}=Qg(e);return{width:t,height:n}}function GT(e,t,n){const s=cn(t),r=fn(t),i=n==="fixed",o=ws(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=on(0);if(s||!s&&!i)if((Sr(t)!=="body"||ji(r))&&(a=aa(t)),s){const h=ws(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else r&&(c.x=gu(r));const l=r&&!s&&!i?Yg(r,a):on(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 Wa(e){return $t(e).position==="static"}function Gf(e,t){if(!cn(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){const n=xt(e);if(oa(e))return n;if(!cn(e)){let r=Hn(e);for(;r&&!lr(r);){if(Bt(r)&&!Wa(r))return r;r=Hn(r)}return n}let s=Gf(e,t);for(;s&<(s)&&Wa(s);)s=Gf(s,t);return s&&lr(s)&&Wa(s)&&!hu(s)?n:s||FT(e)||n}const QT=async function(e){const t=this.getOffsetParent||ey,n=this.getDimensions,s=await n(e.floating);return{reference:GT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function XT(e){return $t(e).direction==="rtl"}const YT={convertOffsetParentRelativeRectToViewportRelativeRect:$T,getDocumentElement:fn,getClippingRect:ZT,getOffsetParent:ey,getElementRects:QT,getClientRects:UT,getDimensions:KT,getScale:Ws,isElement:Bt,isRTL:XT};function ty(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JT(e,t){let n=null,s;const r=fn(e);function i(){var a;clearTimeout(s),(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:h,height:y}=l;if(a||t(),!h||!y)return;const m=Xi(d),p=Xi(r.clientWidth-(u+h)),v=Xi(r.clientHeight-(d+y)),x=Xi(u),w={rootMargin:-m+"px "+-p+"px "+-v+"px "+-x+"px",threshold:mt(0,zn(1,c))||1};let _=!0;function S(A){const E=A[0].intersectionRatio;if(E!==c){if(!_)return o();E?o(!1,E):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!ty(l,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function eA(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=mu(e),u=r||i?[...l?ni(l):[],...ni(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=l&&a?JT(l,n):null;let h=-1,y=null;o&&(y=new ResizeObserver(x=>{let[b]=x;b&&b.target===l&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),y.observe(t));let m,p=c?ws(e):null;c&&v();function v(){const x=ws(e);p&&!ty(p,x)&&n(),p=x,m=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const tA=OT,nA=MT,sA=NT,rA=IT,iA=jT,Qf=PT,oA=DT,aA=(e,t,n)=>{const s=new Map,r={platform:YT,...n},i={...r.platform,_c:s};return RT(e,t,{...r,platform:i})};var co=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Po(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,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!Po(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!Po(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ny(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xf(e,t){const n=ny(e);return Math.round(t*n)/n}function Ha(e){const t=g.useRef(e);return co(()=>{t.current=e}),t}function cA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=g.useState(s);Po(h,s)||y(s);const[m,p]=g.useState(null),[v,x]=g.useState(null),b=g.useCallback(Z=>{Z!==A.current&&(A.current=Z,p(Z))},[]),w=g.useCallback(Z=>{Z!==E.current&&(E.current=Z,x(Z))},[]),_=i||m,S=o||v,A=g.useRef(null),E=g.useRef(null),R=g.useRef(u),N=c!=null,M=Ha(c),I=Ha(r),O=Ha(l),z=g.useCallback(()=>{if(!A.current||!E.current)return;const Z={placement:t,strategy:n,middleware:h};I.current&&(Z.platform=I.current),aA(A.current,E.current,Z).then(re=>{const fe={...re,isPositioned:O.current!==!1};F.current&&!Po(R.current,fe)&&(R.current=fe,dl.flushSync(()=>{d(fe)}))})},[h,t,n,I,O]);co(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[l]);const F=g.useRef(!1);co(()=>(F.current=!0,()=>{F.current=!1}),[]),co(()=>{if(_&&(A.current=_),S&&(E.current=S),_&&S){if(M.current)return M.current(_,S,z);z()}},[_,S,z,M,N]);const J=g.useMemo(()=>({reference:A,floating:E,setReference:b,setFloating:w}),[b,w]),X=g.useMemo(()=>({reference:_,floating:S}),[_,S]),q=g.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const re=Xf(X.floating,u.x),fe=Xf(X.floating,u.y);return a?{...Z,transform:"translate("+re+"px, "+fe+"px)",...ny(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:fe}},[n,a,X.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:z,refs:J,elements:X,floatingStyles:q}),[u,z,J,X,q])}const lA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Qf({element:s.current,padding:r}).fn(n):{}:s?Qf({element:s,padding:r}).fn(n):{}}}},uA=(e,t)=>({...tA(e),options:[e,t]}),dA=(e,t)=>({...nA(e),options:[e,t]}),fA=(e,t)=>({...oA(e),options:[e,t]}),hA=(e,t)=>({...sA(e),options:[e,t]}),pA=(e,t)=>({...rA(e),options:[e,t]}),mA=(e,t)=>({...iA(e),options:[e,t]}),gA=(e,t)=>({...lA(e),options:[e,t]});var yA="Arrow",sy=g.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return f.jsx(ct.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});sy.displayName=yA;var vA=sy;function xA(e){const[t,n]=g.useState(void 0);return xs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[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 s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var yu="Popper",[ry,iy]=fl(yu),[bA,oy]=ry(yu),ay=e=>{const{__scopePopper:t,children:n}=e,[s,r]=g.useState(null);return f.jsx(bA,{scope:t,anchor:s,onAnchorChange:r,children:n})};ay.displayName=yu;var cy="PopperAnchor",ly=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=oy(cy,n),o=g.useRef(null),a=zt(t,o);return g.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:f.jsx(ct.div,{...r,ref:a})});ly.displayName=cy;var vu="PopperContent",[wA,SA]=ry(vu),uy=g.forwardRef((e,t)=>{var ue,ve,ke,Le,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:m,...p}=e,v=oy(vu,n),[x,b]=g.useState(null),w=zt(t,he=>b(he)),[_,S]=g.useState(null),A=xA(_),E=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,N=s+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],O=I.length>0,z={padding:M,boundary:I.filter(CA),altBoundary:O},{refs:F,floatingStyles:J,placement:X,isPositioned:q,middlewareData:Z}=cA({strategy:"fixed",placement:N,whileElementsMounted:(...he)=>eA(...he,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[uA({mainAxis:r+R,alignmentAxis:o}),c&&dA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?fA():void 0,...z}),c&&hA({...z}),pA({...z,apply:({elements:he,rects:Se,availableWidth:Ue,availableHeight:pt})=>{const{width:_t,height:C}=Se.reference,P=he.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${pt}px`),P.setProperty("--radix-popper-anchor-width",`${_t}px`),P.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&gA({element:_,padding:a}),EA({arrowWidth:E,arrowHeight:R}),h&&mA({strategy:"referenceHidden",...z})]}),[re,fe]=hy(X),ye=Bn(m);xs(()=>{q&&(ye==null||ye())},[q,ye]);const Be=(ue=Z.arrow)==null?void 0:ue.x,Ze=(ve=Z.arrow)==null?void 0:ve.y,Ke=((ke=Z.arrow)==null?void 0:ke.centerOffset)!==0,[jt,tt]=g.useState();return xs(()=>{x&&tt(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jt,"--radix-popper-transform-origin":[(Le=Z.transformOrigin)==null?void 0:Le.x,(we=Z.transformOrigin)==null?void 0:we.y].join(" "),...((G=Z.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(wA,{scope:n,placedSide:re,onArrowChange:S,arrowX:Be,arrowY:Ze,shouldHideArrow:Ke,children:f.jsx(ct.div,{"data-side":re,"data-align":fe,...p,ref:w,style:{...p.style,animation:q?void 0:"none"}})})})});uy.displayName=vu;var dy="PopperArrow",_A={top:"bottom",right:"left",bottom:"top",left:"right"},fy=g.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=SA(dy,s),o=_A[i.placedSide];return f.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:f.jsx(vA,{...r,ref:n,style:{...r.style,display:"block"}})})});fy.displayName=dy;function CA(e){return e!==null}var EA=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:s,middlewareData:r}=t,o=((v=r.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=hy(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=r.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",p="";return l==="bottom"?(m=o?d:`${h}px`,p=`${-c}px`):l==="top"?(m=o?d:`${h}px`,p=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,p=o?d:`${y}px`):l==="left"&&(m=`${s.floating.width+c}px`,p=o?d:`${y}px`),{data:{x:m,y:p}}}});function hy(e){const[t,n="center"]=e.split("-");return[t,n]}var TA=ay,py=ly,AA=uy,RA=fy,xu="Popover",[my,Ok]=fl(xu,[iy]),ki=iy(),[PA,Xn]=my(xu),gy=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=ki(t),c=g.useRef(null),[l,u]=g.useState(!1),[d=!1,h]=Gh({prop:s,defaultProp:r,onChange:i});return f.jsx(TA,{...a,children:f.jsx(PA,{scope:t,contentId:to(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:l,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:o,children:n})})};gy.displayName=xu;var yy="PopoverAnchor",NA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(yy,n),i=ki(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return g.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(py,{...i,...s,ref:t})});NA.displayName=yy;var vy="PopoverTrigger",xy=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(vy,n),i=ki(n),o=zt(t,r.triggerRef),a=f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Cy(r.open),...s,ref:o,onClick:yt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(py,{asChild:!0,...i,children:a})});xy.displayName=vy;var bu="PopoverPortal",[jA,kA]=my(bu,{forceMount:void 0}),by=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Xn(bu,t);return f.jsx(jA,{scope:t,forceMount:n,children:f.jsx(gr,{present:n||i.open,children:f.jsx(ml,{asChild:!0,container:r,children:s})})})};by.displayName=bu;var ur="PopoverContent",wy=g.forwardRef((e,t)=>{const n=kA(ur,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Xn(ur,e.__scopePopover);return f.jsx(gr,{present:s||i.open,children:i.modal?f.jsx(OA,{...r,ref:t}):f.jsx(MA,{...r,ref:t})})});wy.displayName=ur;var OA=g.forwardRef((e,t)=>{const n=Xn(ur,e.__scopePopover),s=g.useRef(null),r=zt(t,s),i=g.useRef(!1);return g.useEffect(()=>{const o=s.current;if(o)return cp(o)},[]),f.jsx(gl,{as:mr,allowPinchZoom:!0,children:f.jsx(Sy,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:yt(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:yt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),MA=g.forwardRef((e,t)=>{const n=Xn(ur,e.__scopePopover),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(Sy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Sy=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Xn(ur,n),y=ki(n);return Jh(),f.jsx(pl,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(hl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(AA,{"data-state":Cy(h.open),role:"dialog",id:h.contentId,...y,...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)"}})})})}),_y="PopoverClose",DA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(_y,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});DA.displayName=_y;var IA="PopoverArrow",LA=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=ki(n);return f.jsx(RA,{...r,...s,ref:t})});LA.displayName=IA;function Cy(e){return e?"open":"closed"}var FA=gy,VA=xy,BA=by,Ey=wy;const Ty=FA,Ay=VA,wu=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>f.jsx(BA,{children:f.jsx(Ey,{ref:r,align:t,sideOffset:n,className:V("z-50 w-32 rounded-[2px] 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),...s})}));wu.displayName=Ey.displayName;const Yf=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const h=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,h))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},$A=e=>e?Yf(e):Yf,UA=e=>e;function zA(e,t=UA){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const WA=e=>{const t=$A(e),n=s=>zA(t,s);return Object.assign(n,t),n},Ry=e=>WA;function HA(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const Pc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return Pc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Pc(s)(n)}}}},qA=(e,t)=>(n,s,r)=>{let i={storage:HA(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},s,r);const u=()=>{const p=i.partialize({...s()});return l.setItem(i.name,{state:p,version:i.version})},d=r.setState;r.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},s,r);r.getInitialState=()=>h;let y;const m=()=>{var p,v;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=s())!=null?p:h))||void 0;return Pc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(_=>[!0,_]):[!0,w]}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 w;const[_,S]=b;if(y=i.merge(S,(w=s())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=s(),o=!0,c.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||m(),y||h},ZA=qA;var Pt=(e=>(e.EN="en",e.RU="ru",e))(Pt||{});const Te=Ry()(ZA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),KA=[{lang:Pt.RU},{lang:Pt.EN}],Jf=({className:e,light:t=!1})=>{const n=Te(o=>o.lang),s=Te(o=>o.setLang),[r,i]=g.useState(!1);return f.jsxs(Ty,{open:r,onOpenChange:()=>i(!r),children:[f.jsxs(Ay,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:n===Pt.RU?"/ru.svg":"/english.svg",alt:""}),n===Pt.RU?"Ру":"En",f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"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:t?"#fff":"#000"})})]}),f.jsx(wu,{className:"flex flex-col gap-6",children:KA.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[f.jsx("img",{src:o.lang===Pt.RU?"/ru.svg":"/english.svg",alt:"flag"}),f.jsx("h5",{children:o.lang===Pt.RU?"Русский":"English"})]},a))})]})},Py=Ep,Ny=Tp,GA=Ap,jy=g.forwardRef(({className:e,...t},n)=>f.jsx(Ho,{ref:n,className:V("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}));jy.displayName=Ho.displayName;const Su=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(GA,{children:[f.jsx(jy,{}),f.jsxs(qo,{ref:s,className:V("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(wl,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Sl,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Su.displayName=qo.displayName;const QA=g.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));QA.displayName=Zo.displayName;const XA=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));XA.displayName=Ko.displayName;const eh=(e,t,n)=>{if(e&&"reportValidity"in e){const s=$(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},ky=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?eh(s.ref,n,e):s.refs&&s.refs.forEach(r=>eh(r,n,e))}},YA=(e,t)=>{t.shouldUseNativeValidation&&ky(e,t);const n={};for(const s in e){const r=$(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(JA(t.names||Object.keys(e),s)){const o=Object.assign({},$(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},JA=(e,t)=>e.some(n=>n.startsWith(t+"."));var eR=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=Ng(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},tR=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&ky({},i),{errors:{},values:n.raw?s: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:YA(eR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ge;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ge||(ge={}));var Nc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Nc||(Nc={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},D=ge.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"]),nR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class bt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};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},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;cn.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}bt.create=e=>new bt(e);const dr=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ge.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ge.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ge.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ge.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.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}"`:ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.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 D.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 D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,ge.assertNever(e)}return{message:n}};let Oy=dr;function sR(e){Oy=e}function No(){return Oy}const jo=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},rR=[];function W(e,t){const n=No(),s=jo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dr?void 0:dr].filter(r=>!!r)});e.common.issues.push(s)}class Je{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return se;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return Je.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return se;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const se=Object.freeze({status:"aborted"}),$s=e=>({status:"dirty",value:e}),at=e=>({status:"valid",value:e}),jc=e=>e.status==="aborted",kc=e=>e.status==="dirty",Ss=e=>e.status==="valid",si=e=>typeof Promise<"u"&&e instanceof Promise;function ko(e,t,n,s){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 My(e,t,n,s,r){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 Q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Q||(Q={}));var Lr,Fr;class ln{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}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 th=(e,t)=>{if(Ss(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 bt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{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??s)!==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:r}}class le{get description(){return this._def.description}_getType(t){return yn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Je,ctx:{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(si(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 s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return th(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return Ss(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>Ss(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={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:yn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(si(r)?r:Promise.resolve(r));return th(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:D.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Ut({schema:this,typeName:te.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 an.create(this,this._def)}nullable(){return Gn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this)}promise(){return hr.create(this,this._def)}or(t){return ai.create([this,t],this._def)}and(t){return ci.create(this,t,this._def)}transform(t){return new Ut({...oe(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new hi({...oe(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new _u({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new pi({...oe(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Oi.create(this,t)}readonly(){return mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iR=/^c[^\s-]{8,}$/i,oR=/^[0-9a-z]+$/,aR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cR=/^[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,lR=/^[a-z0-9_-]{21}$/i,uR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dR=/^[-+]?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)?)??$/,fR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let qa;const pR=/^(?:(?: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])$/,mR=/^(?:(?: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])$/,gR=/^(([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]))$/,yR=/^(([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])$/,vR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Dy="((\\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])))",bR=new RegExp(`^${Dy}$`);function Iy(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 wR(e){return new RegExp(`^${Iy(e)}$`)}function Ly(e){let t=`${Dy}T${Iy(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 SR(e,t){return!!((t==="v4"||!t)&&pR.test(e)||(t==="v6"||!t)&&gR.test(e))}function _R(e,t){if(!uR.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function CR(e,t){return!!((t==="v4"||!t)&&mR.test(e)||(t==="v6"||!t)&&yR.test(e))}class Lt extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.string,received:i.parsedType}),se}const s=new Je;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(r),{validation:n,code:D.invalid_string,...Q.errToObj(s)})}_addCheck(t){return new Lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Q.errToObj(t)})}datetime(t){var n,s;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:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Q.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,...Q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Q.errToObj(n)})}nonempty(t){return this.min(1,Q.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:te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function ER(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class qn extends le{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)!==H.number){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.number,received:i.parsedType}),se}let s;const r=new Je;for(const i of this._def.checks)i.kind==="int"?ge.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?ER(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_finite,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.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"&&ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.valuenew qn({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Zn extends le{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)!==H.bigint)return this._getInvalidInput(t);let s;const r=new Je;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),se}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Zn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.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 Zn({checks:[],typeName:te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class ri extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.boolean,received:s.parsedType}),se}return at(t.data)}}ri.create=e=>new ri({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class _s extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.date,received:i.parsedType}),se}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),se}const s=new Je;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):ge.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new _s({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Q.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 _s({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class Oo extends le{_parse(t){if(this._getType(t)!==H.symbol){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.symbol,received:s.parsedType}),se}return at(t.data)}}Oo.create=e=>new Oo({typeName:te.ZodSymbol,...oe(e)});class ii extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.undefined,received:s.parsedType}),se}return at(t.data)}}ii.create=e=>new ii({typeName:te.ZodUndefined,...oe(e)});class oi extends le{_parse(t){if(this._getType(t)!==H.null){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.null,received:s.parsedType}),se}return at(t.data)}}oi.create=e=>new oi({typeName:te.ZodNull,...oe(e)});class fr extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return at(t.data)}}fr.create=e=>new fr({typeName:te.ZodAny,...oe(e)});class ys extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return at(t.data)}}ys.create=e=>new ys({typeName:te.ZodUnknown,...oe(e)});class Cn extends le{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.never,received:n.parsedType}),se}}Cn.create=e=>new Cn({typeName:te.ZodNever,...oe(e)});class Mo extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.void,received:s.parsedType}),se}return at(t.data)}}Mo.create=e=>new Mo({typeName:te.ZodVoid,...oe(e)});class Ft extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),se;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.lengthr.maxLength.value&&(W(n,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new ln(n,o,n.path,a)))).then(o=>Je.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new ln(n,o,n.path,a)));return Je.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Ft({...this._def,minLength:{value:t,message:Q.toString(n)}})}max(t,n){return new Ft({...this._def,maxLength:{value:t,message:Q.toString(n)}})}length(t,n){return new Ft({...this._def,exactLength:{value:t,message:Q.toString(n)}})}nonempty(t){return this.min(1,t)}}Ft.create=(e,t)=>new Ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...oe(t)});function Ds(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=an.create(Ds(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Ds(e.element)}):e instanceof an?an.create(Ds(e.unwrap())):e instanceof Gn?Gn.create(Ds(e.unwrap())):e instanceof un?un.create(e.items.map(t=>Ds(t))):e}class Ae extends le{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=ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const l=this._getOrReturnCtx(t);return W(l,{code:D.invalid_type,expected:H.object,received:l.parsedType}),se}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ln(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof Cn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(l==="strict")a.length>0&&(W(r,{code:D.unrecognized_keys,keys:a}),s.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=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ln(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,h=await u.value;l.push({key:d,value:h,alwaysSet:u.alwaysSet})}return l}).then(l=>Je.mergeObjectSync(s,l)):Je.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=Q.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Ae({...this._def,unknownKeys:"strip"})}passthrough(){return new Ae({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ae({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ae({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return ge.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Ds(this)}partial(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof an;)i=i._def.innerType;n[s]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return Fy(ge.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});class ai extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(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 bt(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),se}if(n.common.async)return Promise.all(s.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(r);{let i;const o=[];for(const c of s){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 bt(c));return W(n,{code:D.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}ai.create=(e,t)=>new ai({options:e,typeName:te.ZodUnion,...oe(t)});const mn=e=>e instanceof ui?mn(e.schema):e instanceof Ut?mn(e.innerType()):e instanceof di?[e.value]:e instanceof Kn?e.options:e instanceof fi?ge.objectValues(e.enum):e instanceof hi?mn(e._def.innerType):e instanceof ii?[void 0]:e instanceof oi?[null]:e instanceof an?[void 0,...mn(e.unwrap())]:e instanceof Gn?[null,...mn(e.unwrap())]:e instanceof _u||e instanceof mi?mn(e.unwrap()):e instanceof pi?mn(e._def.innerType):[];class ca extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return W(n,{code:D.invalid_type,expected:H.object,received:n.parsedType}),se;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);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}):(W(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=mn(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(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new ca({typeName:te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function Oc(e,t){const n=yn(e),s=yn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&s===H.object){const r=ge.objectKeys(t),i=ge.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=Oc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&s===H.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i{if(jc(i)||jc(o))return se;const a=Oc(i.value,o.value);return a.valid?((kc(i)||kc(o))&&n.dirty(),{status:n.value,value:a.data}):(W(s,{code:D.invalid_intersection_types}),se)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ci.create=(e,t,n)=>new ci({left:e,right:t,typeName:te.ZodIntersection,...oe(n)});class un extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.array)return W(s,{code:D.invalid_type,expected:H.array,received:s.parsedType}),se;if(s.data.lengththis._def.items.length&&(W(s,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new ln(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Je.mergeArray(n,o)):Je.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new un({...this._def,rest:t})}}un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new un({items:e,typeName:te.ZodTuple,rest:null,...oe(t)})};class li extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.object)return W(s,{code:D.invalid_type,expected:H.object,received:s.parsedType}),se;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new ln(s,a,s.path,a)),value:o._parse(new ln(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Je.mergeObjectAsync(n,r):Je.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new li({keyType:t,valueType:n,typeName:te.ZodRecord,...oe(s)}):new li({keyType:Lt.create(),valueType:t,typeName:te.ZodRecord,...oe(n)})}}class Do extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.map)return W(s,{code:D.invalid_type,expected:H.map,received:s.parsedType}),se;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new ln(s,a,s.path,[l,"key"])),value:i._parse(new ln(s,c,s.path,[l,"value"]))}));if(s.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 se;(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 se;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Do.create=(e,t,n)=>new Do({valueType:t,keyType:e,typeName:te.ZodMap,...oe(n)});class Cs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.set)return W(s,{code:D.invalid_type,expected:H.set,received:s.parsedType}),se;const r=this._def;r.minSize!==null&&s.data.sizer.maxSize.value&&(W(s,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.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 se;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new ln(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Cs({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new Cs({...this._def,maxSize:{value:t,message:Q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Cs.create=(e,t)=>new Cs({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class Hs extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.function)return W(n,{code:D.invalid_type,expected:H.function,received:n.parsedType}),se;function s(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,No(),dr].filter(l=>!!l),issueData:{code:D.invalid_arguments,argumentsError:c}})}function r(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,No(),dr].filter(l=>!!l),issueData:{code:D.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof hr){const a=this;return at(async function(...c){const l=new bt([]),u=await a._def.args.parseAsync(c,i).catch(y=>{throw l.addIssue(s(c,y)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(y=>{throw l.addIssue(r(d,y)),l})})}else{const a=this;return at(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new bt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new bt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Hs({...this._def,args:un.create(t).rest(ys.create())})}returns(t){return new Hs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Hs({args:t||un.create([]).rest(ys.create()),returns:n||ys.create(),typeName:te.ZodFunction,...oe(s)})}}class ui extends le{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})}}ui.create=(e,t)=>new ui({getter:e,typeName:te.ZodLazy,...oe(t)});class di extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}di.create=(e,t)=>new di({value:e,typeName:te.ZodLiteral,...oe(t)});function Fy(e,t){return new Kn({values:e,typeName:te.ZodEnum,...oe(t)})}class Kn extends le{constructor(){super(...arguments),Lr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{expected:ge.joinValues(s),received:n.parsedType,code:D.invalid_type}),se}if(ko(this,Lr)||My(this,Lr,new Set(this._def.values)),!ko(this,Lr).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:s}),se}return at(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 Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Lr=new WeakMap;Kn.create=Fy;class fi extends le{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){const n=ge.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=ge.objectValues(n);return W(s,{expected:ge.joinValues(r),received:s.parsedType,code:D.invalid_type}),se}if(ko(this,Fr)||My(this,Fr,new Set(ge.getValidEnumValues(this._def.values))),!ko(this,Fr).has(t.data)){const r=ge.objectValues(n);return W(s,{received:s.data,code:D.invalid_enum_value,options:r}),se}return at(t.data)}get enum(){return this._def.values}}Fr=new WeakMap;fi.create=(e,t)=>new fi({values:e,typeName:te.ZodNativeEnum,...oe(t)});class hr extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return W(n,{code:D.invalid_type,expected:H.promise,received:n.parsedType}),se;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return at(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}hr.create=(e,t)=>new hr({type:e,typeName:te.ZodPromise,...oe(t)});class Ut extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{W(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return se;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?se:c.status==="dirty"||n.value==="dirty"?$s(c.value):c});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?$s(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.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(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ss(o))return o;const a=r.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:s.data,path:s.path,parent:s}).then(o=>Ss(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ge.assertNever(r)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:te.ZodEffects,effect:t,...oe(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...oe(n)});class an extends le{_parse(t){return this._getType(t)===H.undefined?at(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:te.ZodOptional,...oe(t)});class Gn extends le{_parse(t){return this._getType(t)===H.null?at(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:te.ZodNullable,...oe(t)});class hi extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===H.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}hi.create=(e,t)=>new hi({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class pi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return si(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}pi.create=(e,t)=>new pi({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Io extends le{_parse(t){if(this._getType(t)!==H.nan){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.nan,received:s.parsedType}),se}return{status:"valid",value:t.data}}}Io.create=e=>new Io({typeName:te.ZodNaN,...oe(e)});const TR=Symbol("zod_brand");class _u extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Oi extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),$s(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Oi({in:t,out:n,typeName:te.ZodPipeline})}}class mi extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(Ss(r)&&(r.value=Object.freeze(r.value)),r);return si(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}mi.create=(e,t)=>new mi({innerType:e,typeName:te.ZodReadonly,...oe(t)});function Vy(e,t={},n){return e?fr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):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;r.addIssue({code:"custom",...l,fatal:c})}}):fr.create()}const AR={object:Ae.lazycreate};var te;(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"})(te||(te={}));const RR=(e,t={message:`Input not instance of ${e.name}`})=>Vy(n=>n instanceof e,t),By=Lt.create,$y=qn.create,PR=Io.create,NR=Zn.create,Uy=ri.create,jR=_s.create,kR=Oo.create,OR=ii.create,MR=oi.create,DR=fr.create,IR=ys.create,LR=Cn.create,FR=Mo.create,VR=Ft.create,BR=Ae.create,$R=Ae.strictCreate,UR=ai.create,zR=ca.create,WR=ci.create,HR=un.create,qR=li.create,ZR=Do.create,KR=Cs.create,GR=Hs.create,QR=ui.create,XR=di.create,YR=Kn.create,JR=fi.create,eP=hr.create,nh=Ut.create,tP=an.create,nP=Gn.create,sP=Ut.createWithPreprocess,rP=Oi.create,iP=()=>By().optional(),oP=()=>$y().optional(),aP=()=>Uy().optional(),cP={string:e=>Lt.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>ri.create({...e,coerce:!0}),bigint:e=>Zn.create({...e,coerce:!0}),date:e=>_s.create({...e,coerce:!0})},lP=se;var sh=Object.freeze({__proto__:null,defaultErrorMap:dr,setErrorMap:sR,getErrorMap:No,makeIssue:jo,EMPTY_PATH:rR,addIssueToContext:W,ParseStatus:Je,INVALID:se,DIRTY:$s,OK:at,isAborted:jc,isDirty:kc,isValid:Ss,isAsync:si,get util(){return ge},get objectUtil(){return Nc},ZodParsedType:H,getParsedType:yn,ZodType:le,datetimeRegex:Ly,ZodString:Lt,ZodNumber:qn,ZodBigInt:Zn,ZodBoolean:ri,ZodDate:_s,ZodSymbol:Oo,ZodUndefined:ii,ZodNull:oi,ZodAny:fr,ZodUnknown:ys,ZodNever:Cn,ZodVoid:Mo,ZodArray:Ft,ZodObject:Ae,ZodUnion:ai,ZodDiscriminatedUnion:ca,ZodIntersection:ci,ZodTuple:un,ZodRecord:li,ZodMap:Do,ZodSet:Cs,ZodFunction:Hs,ZodLazy:ui,ZodLiteral:di,ZodEnum:Kn,ZodNativeEnum:fi,ZodPromise:hr,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:an,ZodNullable:Gn,ZodDefault:hi,ZodCatch:pi,ZodNaN:Io,BRAND:TR,ZodBranded:_u,ZodPipeline:Oi,ZodReadonly:mi,custom:Vy,Schema:le,ZodSchema:le,late:AR,get ZodFirstPartyTypeKind(){return te},coerce:cP,any:DR,array:VR,bigint:NR,boolean:Uy,date:jR,discriminatedUnion:zR,effect:nh,enum:YR,function:GR,instanceof:RR,intersection:WR,lazy:QR,literal:XR,map:ZR,nan:PR,nativeEnum:JR,never:LR,null:MR,nullable:nP,number:$y,object:BR,oboolean:aP,onumber:oP,optional:tP,ostring:iP,pipeline:rP,preprocess:sP,promise:eP,record:qR,set:KR,strictObject:$R,string:By,symbol:kR,transformer:nh,tuple:HR,undefined:OR,union:UR,unknown:IR,void:FR,NEVER:lP,ZodIssueCode:D,quotelessJson:nR,ZodError:bt});const Za=(e,t)=>Te(s=>s.lang)==="ru"?e:t;function zy(e,t){return function(){return e.apply(t,arguments)}}const{toString:uP}=Object.prototype,{getPrototypeOf:Cu}=Object,la=(e=>t=>{const n=uP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>la(t)===e),ua=e=>t=>typeof t===e,{isArray:_r}=Array,gi=ua("undefined");function dP(e){return e!==null&&!gi(e)&&e.constructor!==null&&!gi(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wy=Ht("ArrayBuffer");function fP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wy(e.buffer),t}const hP=ua("string"),wt=ua("function"),Hy=ua("number"),da=e=>e!==null&&typeof e=="object",pP=e=>e===!0||e===!1,lo=e=>{if(la(e)!=="object")return!1;const t=Cu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mP=Ht("Date"),gP=Ht("File"),yP=Ht("Blob"),vP=Ht("FileList"),xP=e=>da(e)&&wt(e.pipe),bP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=la(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},wP=Ht("URLSearchParams"),[SP,_P,CP,EP]=["ReadableStream","Request","Response","Headers"].map(Ht),TP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),_r(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zy=e=>!gi(e)&&e!==os;function Mc(){const{caseless:e}=Zy(this)&&this||{},t={},n=(s,r)=>{const i=e&&qy(t,r)||r;lo(t[i])&&lo(s)?t[i]=Mc(t[i],s):lo(s)?t[i]=Mc({},s):_r(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(Mi(t,(r,i)=>{n&&wt(r)?e[i]=zy(r,n):e[i]=r},{allOwnKeys:s}),e),RP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},NP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Cu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},kP=e=>{if(!e)return null;if(_r(e))return e;let t=e.length;if(!Hy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},OP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cu(Uint8Array)),MP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},DP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},IP=Ht("HTMLFormElement"),LP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),rh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),FP=Ht("RegExp"),Ky=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Mi(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},VP=e=>{Ky(e,(t,n)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(wt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},BP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return _r(e)?s(e):s(String(e).split(t)),n},$P=()=>{},UP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ka="abcdefghijklmnopqrstuvwxyz",ih="0123456789",Gy={DIGIT:ih,ALPHA:Ka,ALPHA_DIGIT:Ka+Ka.toUpperCase()+ih},zP=(e=16,t=Gy.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function WP(e){return!!(e&&wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const HP=e=>{const t=new Array(10),n=(s,r)=>{if(da(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=_r(s)?[]:{};return Mi(s,(o,a)=>{const c=n(o,r+1);!gi(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},qP=Ht("AsyncFunction"),ZP=e=>e&&(da(e)||wt(e))&&wt(e.then)&&wt(e.catch),Qy=((e,t)=>e?setImmediate:t?((n,s)=>(os.addEventListener("message",({source:r,data:i})=>{r===os&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),os.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wt(os.postMessage)),KP=typeof queueMicrotask<"u"?queueMicrotask.bind(os):typeof process<"u"&&process.nextTick||Qy,j={isArray:_r,isArrayBuffer:Wy,isBuffer:dP,isFormData:bP,isArrayBufferView:fP,isString:hP,isNumber:Hy,isBoolean:pP,isObject:da,isPlainObject:lo,isReadableStream:SP,isRequest:_P,isResponse:CP,isHeaders:EP,isUndefined:gi,isDate:mP,isFile:gP,isBlob:yP,isRegExp:FP,isFunction:wt,isStream:xP,isURLSearchParams:wP,isTypedArray:OP,isFileList:vP,forEach:Mi,merge:Mc,extend:AP,trim:TP,stripBOM:RP,inherits:PP,toFlatObject:NP,kindOf:la,kindOfTest:Ht,endsWith:jP,toArray:kP,forEachEntry:MP,matchAll:DP,isHTMLForm:IP,hasOwnProperty:rh,hasOwnProp:rh,reduceDescriptors:Ky,freezeMethods:VP,toObjectSet:BP,toCamelCase:LP,noop:$P,toFiniteNumber:UP,findKey:qy,global:os,isContextDefined:Zy,ALPHABET:Gy,generateString:zP,isSpecCompliantForm:WP,toJSONObject:HP,isAsyncFn:qP,isThenable:ZP,setImmediate:Qy,asap:KP};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}j.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Xy=ie.prototype,Yy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yy[e]={value:e}});Object.defineProperties(ie,Yy);Object.defineProperty(Xy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(Xy);return j.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const GP=null;function Dc(e){return j.isPlainObject(e)||j.isArray(e)}function Jy(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function oh(e,t,n){return e?e.concat(t).map(function(r,i){return r=Jy(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function QP(e){return j.isArray(e)&&!e.some(Dc)}const XP=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function fa(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!j.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(j.isDate(m))return m.toISOString();if(!c&&j.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(m)||j.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let x=m;if(m&&!v&&typeof m=="object"){if(j.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(j.isArray(m)&&QP(m)||(j.isFileList(m)||j.endsWith(p,"[]"))&&(x=j.toArray(m)))return p=Jy(p),x.forEach(function(w,_){!(j.isUndefined(w)||w===null)&&t.append(o===!0?oh([p],_,i):o===null?p:p+"[]",l(w))}),!1}return Dc(m)?!0:(t.append(oh(v,p,i),l(m)),!1)}const d=[],h=Object.assign(XP,{defaultVisitor:u,convertValue:l,isVisitable:Dc});function y(m,p){if(!j.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(m),j.forEach(m,function(x,b){(!(j.isUndefined(x)||x===null)&&r.call(t,x,j.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Eu(e,t){this._pairs=[],e&&fa(e,this,t)}const ev=Eu.prototype;ev.append=function(t,n){this._pairs.push([t,n])};ev.toString=function(t){const n=t?function(s){return t.call(this,s,ah)}:ah;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function YP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tv(e,t,n){if(!t)return e;const s=n&&n.encode||YP;j.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=j.isURLSearchParams(t)?t.toString():new Eu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ch{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(s){s!==null&&t(s)})}}const nv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JP=typeof URLSearchParams<"u"?URLSearchParams:Eu,eN=typeof FormData<"u"?FormData:null,tN=typeof Blob<"u"?Blob:null,nN={isBrowser:!0,classes:{URLSearchParams:JP,FormData:eN,Blob:tN},protocols:["http","https","file","blob","url","data"]},Tu=typeof window<"u"&&typeof document<"u",Ic=typeof navigator=="object"&&navigator||void 0,sN=Tu&&(!Ic||["ReactNative","NativeScript","NS"].indexOf(Ic.product)<0),rN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",iN=Tu&&window.location.href||"http://localhost",oN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tu,hasStandardBrowserEnv:sN,hasStandardBrowserWebWorkerEnv:rN,navigator:Ic,origin:iN},Symbol.toStringTag,{value:"Module"})),Xe={...oN,...nN};function aN(e,t){return fa(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Xe.isNode&&j.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function cN(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lN(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&j.isArray(r)?r.length:o,c?(j.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!j.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&j.isArray(r[o])&&(r[o]=lN(r[o])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(s,r)=>{t(cN(s),r,n,0)}),n}return null}function uN(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Di={transitional:nv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=j.isObject(t);if(i&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return r?JSON.stringify(sv(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return aN(t,this.formSerializer).toString();if((a=j.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fa(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),uN(t)):t}],transformResponse:[function(t){const n=this.transitional||Di.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Di.headers[e]={}});const dN=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fN=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&dN[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},lh=Symbol("internals");function Or(e){return e&&String(e).trim().toLowerCase()}function uo(e){return e===!1||e==null?e:j.isArray(e)?e.map(uo):String(e)}function hN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const pN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ga(e,t,n,s,r){if(j.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!j.isString(t)){if(j.isString(s))return t.indexOf(s)!==-1;if(j.isRegExp(s))return s.test(t)}}function mN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function gN(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class ft{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Or(c);if(!u)throw new Error("header name must be a non-empty string");const d=j.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=uo(a))}const o=(a,c)=>j.forEach(a,(l,u)=>i(l,u,c));if(j.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(j.isString(t)&&(t=t.trim())&&!pN(t))o(fN(t),n);else if(j.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Or(t),t){const s=j.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return hN(r);if(j.isFunction(n))return n.call(this,r,s);if(j.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const s=j.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ga(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Or(o),o){const a=j.findKey(s,o);a&&(!n||Ga(s,s[a],a,n))&&(delete s[a],r=!0)}}return j.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Ga(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return j.forEach(this,(r,i)=>{const o=j.findKey(s,i);if(o){n[o]=uo(r),delete n[i];return}const a=t?mN(i):String(i).trim();a!==i&&delete n[i],n[a]=uo(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&j.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[lh]=this[lh]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Or(o);s[a]||(gN(r,o),s[a]=!0)}return j.isArray(t)?t.forEach(i):i(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});j.freezeMethods(ft);function Qa(e,t){const n=this||Di,s=t||n,r=ft.from(s.headers);let i=s.data;return j.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits(Cr,ie,{__CANCEL__:!0});function iv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vN(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,h=0;for(;d!==r;)h+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Lo=(e,t,n=3)=>{let s=0;const r=vN(50,250);return xN(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},uh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},dh=e=>(...t)=>j.asap(()=>e(...t)),bN=Xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,wN=Xe.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),j.isString(s)&&o.push("path="+s),j.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function SN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _N(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ov(e,t){return e&&!SN(t)?_N(e,t):t}const fh=e=>e instanceof ft?{...e}:e;function Es(e,t){t=t||{};const n={};function s(l,u,d,h){return j.isPlainObject(l)&&j.isPlainObject(u)?j.merge.call({caseless:h},l,u):j.isPlainObject(u)?j.merge({},u):j.isArray(u)?u.slice():u}function r(l,u,d,h){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l,d,h)}else return s(l,u,d,h)}function i(l,u){if(!j.isUndefined(u))return s(void 0,u)}function o(l,u){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>r(fh(l),fh(u),d,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,h=d(e[u],t[u],u);j.isUndefined(h)&&d!==a||(n[u]=h)}),n}const av=e=>{const t=Es({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ft.from(o),t.url=tv(ov(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(j.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Xe.hasStandardBrowserEnv&&(s&&j.isFunction(s)&&(s=s(t)),s||s!==!1&&bN(t.url))){const l=r&&i&&wN.read(i);l&&o.set(r,l)}return t},CN=typeof XMLHttpRequest<"u",EN=CN&&function(e){return new Promise(function(n,s){const r=av(e);let i=r.data;const o=ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,h,y,m;function p(){y&&y(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function x(){if(!v)return;const w=ft.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};iv(function(E){n(E),p()},function(E){s(E),p()},S),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(s(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||nv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&j.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),j.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),l&&([h,m]=Lo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,y]=Lo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=w=>{v&&(s(!w||w.type?new Cr(null,e,v):w),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=yN(r.url);if(b&&Xe.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},TN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new Cr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>j.asap(a),c}},AN=function*(e,t){let n=e.byteLength;if(n{const r=RN(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cv=ha&&typeof ReadableStream=="function",NN=ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jN=cv&&lv(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ph=64*1024,Lc=cv&&lv(()=>j.isReadableStream(new Response("").body)),Fo={stream:Lc&&(e=>e.body)};ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fo[t]&&(Fo[t]=j.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const kN=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await NN(e)).byteLength},ON=async(e,t)=>{const n=j.toFiniteNumber(e.getContentLength());return n??kN(t)},MN=ha&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:h}=av(e);l=l?(l+"").toLowerCase():"text";let y=TN([r,i&&i.toAbortSignal()],o),m;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(c&&jN&&n!=="get"&&n!=="head"&&(v=await ON(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(j.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[E,R]=uh(v,Lo(dh(c)));s=hh(S.body,ph,E,R)}}j.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:x?d:void 0});let b=await fetch(m);const w=Lc&&(l==="stream"||l==="response");if(Lc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const A=j.toFiniteNumber(b.headers.get("content-length")),[E,R]=a&&uh(A,Lo(dh(a),!0))||[];b=new Response(hh(b.body,ph,E,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Fo[j.findKey(Fo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,A)=>{iv(S,A,{data:_,headers:ft.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:x.cause||x}):ie.from(x,x&&x.code,e,m)}}),Fc={http:GP,xhr:EN,fetch:MN};j.forEach(Fc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mh=e=>`- ${e}`,DN=e=>j.isFunction(e)||e===null||e===!1,uv={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(mh).join(` +`):" "+mh(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Fc};function Xa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function gh(e){return Xa(e),e.headers=ft.from(e.headers),e.data=Qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uv.getAdapter(e.adapter||Di.adapter)(e).then(function(s){return Xa(e),s.data=Qa.call(e,e.transformResponse,s),s.headers=ft.from(s.headers),s},function(s){return rv(s)||(Xa(e),s&&s.response&&(s.response.data=Qa.call(e,e.transformResponse,s.response),s.response.headers=ft.from(s.response.headers))),Promise.reject(s)})}const dv="1.7.9",pa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pa[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const yh={};pa.transitional=function(t,n,s){function r(i,o){return"[Axios v"+dv+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!yh[o]&&(yh[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};pa.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function IN(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const fo={assertOptions:IN,validators:pa},Kt=fo.validators;class vs{constructor(t){this.defaults=t,this.interceptors={request:new ch,response:new ch}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Es(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&fo.assertOptions(s,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),r!=null&&(j.isFunction(r)?n.paramsSerializer={serialize:r}:fo.assertOptions(r,{encode:Kt.function,serialize:Kt.function},!0)),fo.assertOptions(n,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const m=[gh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Au(function(r){t=r}),cancel:t}}}function LN(e){return function(n){return e.apply(null,n)}}function FN(e){return j.isObject(e)&&e.isAxiosError===!0}const Vc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vc).forEach(([e,t])=>{Vc[t]=e});function fv(e){const t=new vs(e),n=zy(vs.prototype.request,t);return j.extend(n,vs.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return fv(Es(e,r))},n}const Ve=fv(Di);Ve.Axios=vs;Ve.CanceledError=Cr;Ve.CancelToken=Au;Ve.isCancel=rv;Ve.VERSION=dv;Ve.toFormData=fa;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=LN;Ve.isAxiosError=FN;Ve.mergeConfig=Es;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>sv(j.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=uv.getAdapter;Ve.HttpStatusCode=Vc;Ve.default=Ve;const et=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Mk=async e=>(await et.post("book_stand_form",e)).status===201,Dk=async e=>(await et.post("become_sponsor_form",e)).status===201,Ik=async e=>(await et.post("contact_form",e)).status===201,VN=async e=>(await et.post("subscribe_news_form",e)).status===201,BN=async(e,t)=>et.get(`pages/${t}`,{headers:{"Accept-Language":e}}),$N=async e=>et.get("stats",{headers:{"Accept-Language":e}}),UN=async e=>et.get("contact_data",{headers:{"Accept-Language":e}}),zN=async e=>et.get("industries",{headers:{"Accept-Language":e}}),WN=async e=>et.get("exhibition_time",{headers:{"Accept-Language":e}}),HN=async e=>et.get("news",{headers:{"Accept-Language":e}}),Lk=async(e,t)=>et.get(`news/${e}`,{headers:{"Accept-Language":t}}),Fk=async e=>et("participants",{headers:{"Accept-Language":e}}),qN=async e=>et("photos/category/"+e),ZN=async e=>et("videos/category/"+e),KN=async e=>et("sponsors_and_partners",{headers:{"Accept-Language":e}}),Vk=async(e,t)=>et("designers/category/"+t,{headers:{"Accept-Language":e}}),GN=sh.object({email:sh.string().email()}),hv=({modal:e=!1})=>{var i,o;const[t,n]=g.useState(!1),s=pT({resolver:tR(GN),defaultValues:{email:""}});async function r(a){try{const c=await VN(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(qe,{className:V("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[f.jsx("h2",{className:"h2 !text-left",children:Za("Подпишитесь на новости:","Subscribe to the news:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(ot,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Za("Отправлено","Submitted"):Za("Подписаться","Subscribe")})]})})},QN=({className:e,title:t})=>f.jsxs(Py,{children:[f.jsx(Ny,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Su,{children:f.jsx(hv,{className:"",modal:!0})})]}),Vo=Ry()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Bo=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=g.useState(!1),a=Vo(c=>c.setSheet);return f.jsxs(Ty,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ay,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(pv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(wu,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((c,l)=>c.hover?f.jsx(ak,{setIsOpen:o,...c},l):c.link?f.jsxs(Ce,{to:c.link??"",onClick:()=>{o(!1),a(!1)},className:"h-14 px-3 flex gap-3 relative justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:c.blank?"_blank":void 0,rel:c.blank?"noopener noreferrer":void 0,children:[c.text,c.blank&&f.jsx("img",{src:"/pdf.svg"})]},l):c.modal?f.jsx(QN,{title:c.text},c.text):f.jsx("div",{className:"relative",children:f.jsx("div",{className:"h-14 px-3 py-2 flex items-center cursor-pointer hover:bg-slate-300/50 transition-all",onClick:()=>{o(!1),a(!1)},children:c.text})},l))})]})},pv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"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})})}),Yn=({className:e})=>f.jsx(qe,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(kp,{className:"animate-spin mx-auto text-primary size-16"})});function XN(e){return Object.prototype.toString.call(e)==="[object Object]"}function vh(e){return XN(e)||Array.isArray(e)}function YN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!vh(a)||!vh(c)?a===c:Ru(a,c)})}function xh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function JN(e,t){if(e.length!==t.length)return!1;const n=xh(e),s=xh(t);return n.every((r,i)=>{const o=s[i];return Ru(r,o)})}function Pu(e){return typeof e=="number"}function Bc(e){return typeof e=="string"}function ma(e){return typeof e=="boolean"}function bh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Nu(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function e1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function t1(e){return Math.round(e*100)/100}function yi(e){return vi(e).map(Number)}function Vt(e){return e[Ii(e)]}function Ii(e){return Math.max(0,e.length-1)}function ju(e,t){return t===Ii(e)}function wh(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function vi(e){return Object.keys(e)}function mv(e,t){return[e,t].reduce((n,s)=>(vi(s).forEach(r=>{const i=n[r],o=s[r],a=bh(i)&&bh(o);n[r]=a?mv(i,o):o}),n),{})}function $c(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function n1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Bc(e)?n[e](c):e(t,c,l)}return{measure:o}}function xi(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function s1(e,t,n,s){const r=xi(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){y(),r.clear()}function d(v){if(!c)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function h(){c||(c=t.requestAnimationFrame(d))}function y(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:h,stop:y,update:n,render:s}}function r1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:p,width:v}=m;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Ts(e=0,t=0){const n=Pe(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(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:r,reachedMin:s,removeOffset:a}}function gv(e,t,n){const{constrain:s}=Ts(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return gv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function i1(e,t,n,s,r,i,o,a,c,l,u,d,h,y,m,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},E=xi(),R=xi(),N=Ts(50,225).constrain(y.measure(20)),M={mouse:300,touch:400},I={mouse:500,touch:600},O=m?43:25;let z=!1,F=0,J=0,X=!1,q=!1,Z=!1,re=!1;function fe(G){if(!b)return;function he(Ue){(ma(b)||b(G,Ue))&&tt(Ue)}const Se=t;E.add(Se,"dragstart",Ue=>Ue.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",he).add(Se,"mousedown",he).add(Se,"touchcancel",ve).add(Se,"contextmenu",ve).add(Se,"click",ke,!0)}function ye(){E.clear(),R.clear()}function Be(){const G=re?n:t;R.add(G,"touchmove",ue,A).add(G,"touchend",ve).add(G,"mousemove",ue,A).add(G,"mouseup",ve)}function Ze(G){const he=G.nodeName||"";return S.includes(he)}function Ke(){return(m?I:M)[re?"mouse":"touch"]}function jt(G,he){const Se=d.add(Nu(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Pe(G)=2,!(he&&G.button!==0)&&(Ze(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),F=i.readPoint(G),J=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!$c(G,s)&&G.touches.length>=2)return ve(G);const Se=i.readPoint(G),Ue=i.readPoint(G,w),pt=Kr(Se,F),_t=Kr(Ue,J);if(!q&&!re&&(!G.cancelable||(q=pt>_t,!q)))return ve(G);const C=i.pointerMove(G);pt>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(_(C)),G.preventDefault()}function ve(G){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ke(),pt=jt(_(Ue),Se),_t=e1(Ue,pt),C=O-10*_t,P=x+_t/50;q=!1,X=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(pt,!m),re=!1,h.emit("pointerUp")}function ke(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Le(){return X}return{init:fe,destroy:ye,pointerDown:Le}}function o1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const m=`client${(h||e.scroll)==="x"?"X":"Y"}`;return($c(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const h=o(d)-o(r),y=i(d)-i(s)>170;return r=d,y&&(s=d),h}function l(d){if(!s||!r)return 0;const h=o(r)-o(s),y=i(d)-i(s),m=i(d)-i(r)>170,p=h/y;return y&&!m&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function a1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function c1(e){function t(s){return e*(s/100)}return{measure:t}}function l1(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function y(v){if(!i)return;l=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),A=_?l:u[S],E=h(_?e:s[S]);if(Pe(E-A)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ma(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:y,destroy:m}}function u1(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function h(){const A=s.get()-e.get(),E=!c;let R=0;return E?(o=0,n.set(s),e.set(s),R=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),R=u-d),a=Nu(R),d=u,S}function y(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(A){return c=A,S}function _(A){return l=A,S}const S={direction:p,duration:m,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function d1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=Ts(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=Pe(e[m]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!y&&Pe(v){const{min:v,max:x}=i,b=i.constrain(m),w=!p,_=ju(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(m=>parseFloat(m.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:p}=a;return o.slice(m,p)}return{snapsContained:c,scrollContainLimit:a}}function h1(e,t,n){const s=t[0],r=n?s-e:Vt(t);return{limit:Ts(r,s)}}function p1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Ts(i,o);function l(h){return h===1?c(n.get()):h===-1?a(n.get()):!1}function u(h){if(!l(h))return;const y=e*(h*-1);s.forEach(m=>m.add(y))}return{loop:u}}function m1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function g1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=h(),u=y();function d(){return a(s).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function y(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function y1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,c).map((m,p,v)=>{const x=!p,b=ju(v,p);if(x){const w=Vt(v[0])+1;return wh(w)}if(b){const w=Ii(i)-Vt(v)[0]+1;return wh(w,Vt(v)[0])}return m})}return{slideRegistry:l}}function v1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(m){const p=e?o(m):a(m),v=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:x}=v[0];return{index:x,distance:p}}function u(m,p){const v=[m,m+n,m-n];if(!e)return m;if(!p)return c(v);const x=v.filter(b=>Nu(b)===p);return x.length?c(x):Vt(v)-n}function d(m,p){const v=t[m]-r.get(),x=u(v,p);return{index:m,distance:x}}function h(m,p){const v=r.get()+m,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:m};const _=t[x]-b,S=m+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function x1(e,t,n,s,r,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const y=r.byDistance(d,h);a(y)}function l(d,h){const y=t.clone().set(d),m=r.byIndex(y.get(),h);a(m)}return{distance:c,index:l}}function b1(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(y){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Pu(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ma(a)||a(y,x))&&m(v)},c)})}function d(y){y.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Vr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Pu(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function yv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const y=t1(e.direction(h));y!==r&&(s.transform=n(y),r=y)}function l(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function w1(e,t,n,s,r,i,o,a,c){const u=yi(r),d=yi(r).reverse(),h=x().concat(b());function y(E,R){return E.reduce((N,M)=>N-r[M],R)}function m(E,R){return E.reduce((N,M)=>y(N,R)>0?N.concat([M]):N,[])}function p(E){return i.map((R,N)=>({start:R-s[N]+.5+E,end:R+t-.5+E}))}function v(E,R,N){const M=p(R);return E.map(I=>{const O=N?0:-n,z=N?n:0,F=N?"end":"start",J=M[I][F];return{index:I,loopPoint:J,slideLocation:Vr(-1),translate:yv(e,c[I]),target:()=>a.get()>J?O:z}})}function x(){const E=o[0],R=m(d,E);return v(R,n,!1)}function b(){const E=t-o[0]-1,R=m(u,E);return v(R,-n,!0)}function w(){return h.every(({index:E})=>{const R=u.filter(N=>N!==E);return y(R,t)<=.1})}function _(){h.forEach(E=>{const{target:R,translate:N,slideLocation:M}=E,I=R();I!==M.get()&&(N.to(I),M.set(I))})}function S(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function S1(e,t,n){let s,r=!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}}s=new MutationObserver(u=>{r||(ma(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function _1(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return vi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(m&&b||!m&&!b)&&p.push(x),p},[])}function h(m=!0){if(m&&i)return i;if(!m&&o)return o;const p=d(m);return m&&(i=p),m||(o=p),p}return{init:l,destroy:u,get:h}}function C1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),h=n.map(o),y=v();function m(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Vt(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,A=ju(_,w);return S?h[w]+u:A?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function E1(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=Pu(n);function y(x,b){return yi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function m(x){return x.length?yi(x).reduce((b,w,_)=>{const S=Vt(b)||0,A=S===0,E=w===Ii(x),R=r[l]-i[S][l],N=r[l]-i[w][u],M=!s&&A?d(o):0,I=!s&&E?d(a):0,O=Pe(N-I-(R+M));return _&&O>t+c&&b.push(w),E&&b.push(x.length),b},[]).map((b,w,_)=>{const S=Math.max(_[w-1]||0);return x.slice(S,b)}):[]}function p(x){return h?y(x,n):m(x)}return{groupSlides:p}}function T1(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:m,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:A}=i,E=2,R=a1(),N=R.measure(t),M=n.map(R.measure),I=r1(c,l),O=I.measureSize(N),z=c1(O),F=n1(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:fe}=C1(I,N,M,n,X,r),ye=E1(I,O,v,d,N,M,re,fe,E),{snaps:Be,snapsAligned:Ze}=g1(I,F,N,M,ye),Ke=-Vt(Be)+Vt(Z),{snapsContained:jt,scrollContainLimit:tt}=f1(O,Ke,Ze,b,E),ue=J?jt:Ze,{limit:ve}=h1(Ke,ue,d),ke=gv(Ii(ue),u,d),Le=ke.clone(),we=yi(n),G=({dragHandler:Zt,scrollBody:Jn,scrollBounds:Tr,options:{loop:es}})=>{es||Tr.constrain(Zt.pointerDown()),Jn.seek()},he=({scrollBody:Zt,translate:Jn,location:Tr,offsetLocation:es,previousLocation:ya,scrollLooper:Vi,slideLooper:gx,dragHandler:yx,animation:vx,eventHandler:zu,scrollBounds:xx,options:{loop:Wu}},Hu)=>{const qu=Zt.settled(),bx=!xx.shouldConstrain(),Zu=Wu?qu:qu&&bx;Zu&&!yx.pointerDown()&&(vx.stop(),zu.emit("settle")),Zu||zu.emit("scroll");const wx=Tr.get()*Hu+ya.get()*(1-Hu);es.set(wx),Wu&&(Vi.loop(Zt.direction()),gx.loop()),Jn.to(es.get())},Se=s1(s,r,()=>G(Er),Zt=>he(Er,Zt)),Ue=.68,pt=ue[ke.get()],_t=Vr(pt),C=Vr(pt),P=Vr(pt),k=Vr(pt),U=u1(_t,P,C,k,h,Ue),B=v1(d,ue,Ke,ve,k),L=x1(Se,ke,Le,U,B,k,o),Y=m1(ve),ae=xi(),Fe=_1(t,n,o,p),{slideRegistry:Oe}=y1(J,b,ue,tt,ye,we),qt=b1(e,n,Oe,L,U,ae,o,A),Er={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:M,animation:Se,axis:I,dragHandler:i1(I,e,s,r,k,o1(I,r),_t,Se,L,U,B,ke,o,z,y,m,x,Ue,S),eventStore:ae,percentOfView:z,index:ke,indexPrevious:Le,limit:ve,location:_t,offsetLocation:P,previousLocation:C,options:i,resizeHandler:l1(t,o,r,n,I,w,R),scrollBody:U,scrollBounds:d1(ve,P,k,U,z),scrollLooper:p1(Ke,ve,P,[_t,P,C,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:B,scrollTo:L,slideLooper:w1(I,O,Ke,q,Z,Be,ue,P,n),slideFocus:qt,slidesHandler:S1(t,o,_),slidesInView:Fe,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:k,translate:yv(I,t)};return Er}function A1(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const R1={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 P1(e){function t(i,o){return mv(i,o||{})}function n(i){const o=i.breakpoints||{},a=vi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>vi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function N1(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 s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function $o(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=P1(r),o=N1(i),a=xi(),c=A1(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:m}=c,p=I;let v=!1,x,b=l(R1,$o.globalOptions),w=l(b),_=[],S,A,E;function R(){const{container:we,slides:G}=w;A=(Bc(we)?e.querySelector(we):we)||e.children[0];const Se=Bc(G)?A.querySelectorAll(G):G;E=[].slice.call(Se||A.children)}function N(we){const G=T1(e,A,E,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function M(we,G){v||(b=l(b,we),w=u(b),_=G||_,R(),x=N(w),d([b,..._.map(({options:he})=>he)]).forEach(he=>a.add(he,"change",I)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Le),x.eventHandler.init(Le),x.resizeHandler.init(Le),x.slidesHandler.init(Le),x.options.loop&&x.slideLooper.loop(),A.offsetParent&&E.length&&x.dragHandler.init(Le),S=o.init(Le,_)))}function I(we,G){const he=ye();O(),M(l({startIndex:he},we),G),c.emit("reInit")}function O(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function F(we,G,he){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(we,he||0))}function J(we){const G=x.index.add(1).get();F(G,we,-1)}function X(we){const G=x.index.add(-1).get();F(G,we,1)}function q(){return x.index.add(1).get()!==ye()}function Z(){return x.index.add(-1).get()!==ye()}function re(){return x.scrollSnapList}function fe(){return x.scrollProgress.get(x.location.get())}function ye(){return x.index.get()}function Be(){return x.indexPrevious.get()}function Ze(){return x.slidesInView.get()}function Ke(){return x.slidesInView.get(!1)}function jt(){return S}function tt(){return x}function ue(){return e}function ve(){return A}function ke(){return E}const Le={canScrollNext:q,canScrollPrev:Z,containerNode:ve,internalEngine:tt,destroy:z,off:y,on:h,emit:m,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:fe,scrollSnapList:re,scrollTo:F,selectedScrollSnap:ye,slideNodes:ke,slidesInView:Ze,slidesNotInView:Ke};return M(t,n),setTimeout(()=>c.emit("init"),0),Le}$o.globalOptions=void 0;function En(e={},t=[]){const n=g.useRef(e),s=g.useRef(t),[r,i]=g.useState(),[o,a]=g.useState(),c=g.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return g.useEffect(()=>{Ru(n.current,e)||(n.current=e,c())},[e,c]),g.useEffect(()=>{JN(s.current,t)||(s.current=t,c())},[t,c]),g.useEffect(()=>{if(YN()&&o){$o.globalOptions=En.globalOptions;const l=$o(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}En.globalOptions=void 0;const j1=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],Bk=({className:e,setState:t,state:n,data:s=j1})=>{const r=Te(m=>m.lang),i=wo("(min-width: 768px)"),[o,a]=g.useState({left:0,width:0}),[c,l]=En({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=g.useRef([]),d=g.useRef(null),h=g.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=m.offsetLeft;a({left:b-x,width:m.offsetWidth})}}},[n,i,l]);g.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),g.useEffect(()=>{if(l)return h(),l.on("scroll",h),l.on("resize",h),()=>{l.off("scroll",h),l.off("resize",h)}},[l,h]);const y=g.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return f.jsxs("div",{ref:d,className:V("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?f.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},$k=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Te(l=>l.lang);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:V("flex border-b md:hidden py-2 border-outline_v",e),children:[f.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),f.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),f.jsx("div",{className:"flex items-center gap-3",children:f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},As=typeof window>"u"||"Deno"in globalThis;function At(){}function k1(e,t){return typeof e=="function"?e(t):e}function Uc(e){return typeof e=="number"&&e>=0&&e!==1/0}function vv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qs(e,t){return typeof e=="function"?e(t):e}function Dt(e,t){return typeof e=="function"?e(t):e}function Sh(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==ku(o,t.options))return!1}else if(!wi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function _h(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(bi(t.options.mutationKey)!==bi(i))return!1}else if(!wi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function ku(e,t){return((t==null?void 0:t.queryKeyHashFn)||bi)(e)}function bi(e){return JSON.stringify(e,(t,n)=>Wc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function wi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!wi(e[n],t[n])):!1}function xv(e,t){if(e===t)return e;const n=Ch(e)&&Ch(t);if(n||Wc(e)&&Wc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function Hc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xv(e,t):t}function M1(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function D1(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Ou=Symbol();function bv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ou?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var as,On,Zs,Fh,I1=(Fh=class extends Li{constructor(){super();ne(this,as);ne(this,On);ne(this,Zs);K(this,Zs,t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,On)||this.setEventListener(T(this,Zs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,On))==null||t.call(this),K(this,On,void 0))}setEventListener(t){var n;K(this,Zs,t),(n=T(this,On))==null||n.call(this),K(this,On,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,as)!==t&&(K(this,as,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,as)=="boolean"?T(this,as):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},as=new WeakMap,On=new WeakMap,Zs=new WeakMap,Fh),Mu=new I1,Ks,Mn,Gs,Vh,L1=(Vh=class extends Li{constructor(){super();ne(this,Ks,!0);ne(this,Mn);ne(this,Gs);K(this,Gs,t=>{if(!As&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,Mn)||this.setEventListener(T(this,Gs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Mn))==null||t.call(this),K(this,Mn,void 0))}setEventListener(t){var n;K(this,Gs,t),(n=T(this,Mn))==null||n.call(this),K(this,Mn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ks)!==t&&(K(this,Ks,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Ks)}},Ks=new WeakMap,Mn=new WeakMap,Gs=new WeakMap,Vh),Uo=new L1;function qc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function F1(e){return Math.min(1e3*2**e,3e4)}function wv(e){return(e??"online")==="online"?Uo.isOnline():!0}var Sv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ya(e){return e instanceof Sv}function _v(e){let t=!1,n=0,s=!1,r;const i=qc(),o=p=>{var v;s||(h(new Sv(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>Mu.isFocused()&&(e.networkMode==="always"||Uo.isOnline())&&e.canRun(),u=()=>wv(e.networkMode)&&e.canRun(),d=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),r==null||r(),i.resolve(p))},h=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),r==null||r(),i.reject(p))},y=()=>new Promise(p=>{var v;r=x=>{(s||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var A;if(s)return;const b=e.retry??(As?0:3),w=e.retryDelay??F1,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:y()).then(()=>{t?h(x):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():y().then(m),i)}}function V1(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var He=V1(),cs,Bh,Cv=(Bh=class{constructor(){ne(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uc(this.gcTime)&&K(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(As?1/0:5*60*1e3))}clearGcTimeout(){T(this,cs)&&(clearTimeout(T(this,cs)),K(this,cs,void 0))}},cs=new WeakMap,Bh),Qs,Xs,Tt,ls,Ge,Si,us,Ot,gn,$h,B1=($h=class extends Cv{constructor(t){super();ne(this,Ot);ne(this,Qs);ne(this,Xs);ne(this,Tt);ne(this,ls);ne(this,Ge);ne(this,Si);ne(this,us);K(this,us,!1),K(this,Si,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ls,t.client),K(this,Tt,T(this,ls).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Qs,$1(this.options)),this.state=t.state??T(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const s=Hc(this.state.data,t,this.options);return pe(this,Ot,gn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){pe(this,Ot,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,Ge))==null?void 0:s.promise;return(r=T(this,Ge))==null||r.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Qs))}isActive(){return this.observers.some(t=>Dt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ou||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!vv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ge)&&(T(this,us)?T(this,Ge).cancel({revert:!0}):T(this,Ge).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Ot,gn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ge))return T(this,Ge).continueRetry(),T(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,us,!0),s.signal)})},i=()=>{const d=bv(this.options,n),h={client:T(this,ls),queryKey:this.queryKey,meta:this.meta};return r(h),K(this,us,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ls),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Xs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&pe(this,Ot,gn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,y,m,p;Ya(d)&&d.silent||pe(this,Ot,gn).call(this,{type:"error",error:d}),Ya(d)||((y=(h=T(this,Tt).config).onError)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ge,_v({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var h,y,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){a(v);return}(y=(h=T(this,Tt).config).onSuccess)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{pe(this,Ot,gn).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{pe(this,Ot,gn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Ot,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,Ge).start()}},Qs=new WeakMap,Xs=new WeakMap,Tt=new WeakMap,ls=new WeakMap,Ge=new WeakMap,Si=new WeakMap,us=new WeakMap,Ot=new WeakSet,gn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Ev(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Ya(r)&&r.revert&&T(this,Xs)?{...T(this,Xs),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},$h);function Ev(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,Uh,U1=(Uh=class extends Li{constructor(t={}){super();ne(this,Gt);this.config=t,K(this,Gt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??ku(r,n);let o=this.get(i);return o||(o=new B1({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,Gt).has(t.queryHash)||(T(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Gt).get(t)}getAll(){return[...T(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Sh(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Sh(t,s)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,Uh),Qt,nt,ds,Xt,jn,zh,z1=(zh=class extends Cv{constructor(t){super();ne(this,Xt);ne(this,Qt);ne(this,nt);ne(this,ds);this.mutationId=t.mutationId,K(this,nt,t.mutationCache),K(this,Qt,[]),this.state=t.state||W1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qt,T(this,Qt).filter(n=>n!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,h,y,m,p,v,x,b,w,_,S,A,E;K(this,ds,_v({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Xt,jn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Xt,jn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Xt,jn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ds).canStart();try{if(!n){pe(this,Xt,jn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,nt).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&pe(this,Xt,jn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const R=await T(this,ds).start();return await((l=(c=T(this,nt).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context)),await((y=(h=T(this,nt).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,R,null,t,this.state.context)),pe(this,Xt,jn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((x=(v=T(this,nt).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context)),await((S=(_=T(this,nt).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,R,t,this.state.context)),R}finally{pe(this,Xt,jn).call(this,{type:"error",error:R})}}finally{T(this,nt).runNext(this)}}},Qt=new WeakMap,nt=new WeakMap,ds=new WeakMap,Xt=new WeakSet,jn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{T(this,Qt).forEach(s=>{s.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},zh);function W1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,_i,Wh,H1=(Wh=class extends Li{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,_i);this.config=t,K(this,vn,new Set),K(this,Mt,new Map),K(this,_i,0)}build(t,n,s){const r=new z1({mutationCache:this,mutationId:++Bi(this,_i)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,vn).add(t);const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);s?s.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Yi(t);if(typeof n=="string"){const r=(s=T(this,Mt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>_h(n,s))}findAll(t={}){return this.getAll().filter(n=>_h(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},vn=new WeakMap,Mt=new WeakMap,_i=new WeakMap,Wh);function Yi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Th(e){return{onFetch:(t,n)=>{var u,d,h,y,m;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=bv(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};v(A);const E=await x(A),{maxPages:R}=t.options,N=S?D1:M1;return{pages:N(w.pages,E,R),pageParams:N(w.pageParams,_,R)}};if(r&&i.length){const w=r==="backward",_=w?q1:Ah,S={pages:i,pageParams:o},A=_(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const _=c===0?o[0]??s.initialPageParam:Ah(s,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ah(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function q1(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ne,Dn,In,Ys,Js,Ln,er,tr,Hh,Uk=(Hh=class{constructor(e={}){ne(this,Ne);ne(this,Dn);ne(this,In);ne(this,Ys);ne(this,Js);ne(this,Ln);ne(this,er);ne(this,tr);K(this,Ne,e.queryCache||new U1),K(this,Dn,e.mutationCache||new H1),K(this,In,e.defaultOptions||{}),K(this,Ys,new Map),K(this,Js,new Map),K(this,Ln,0)}mount(){Bi(this,Ln)._++,T(this,Ln)===1&&(K(this,er,Mu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onFocus())})),K(this,tr,Uo.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Ln)._--,T(this,Ln)===0&&((e=T(this,er))==null||e.call(this),K(this,er,void 0),(t=T(this,tr))==null||t.call(this),K(this,tr,void 0))}isFetching(e){return T(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Dn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=k1(t,i);if(o!==void 0)return T(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>T(this,Ne).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ne);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ne),s={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=He.batch(()=>T(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>{if(T(this,Ne).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=He.batch(()=>T(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ne).build(this,t);return n.isStaleByTime(qs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Th(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Th(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uo.isOnline()?T(this,Dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ne)}getMutationCache(){return T(this,Dn)}getDefaultOptions(){return T(this,In)}setDefaultOptions(e){K(this,In,e)}setQueryDefaults(e,t){T(this,Ys).set(bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ys).values()],n={};return t.forEach(s=>{wi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Js).set(bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Js).values()];let n={};return t.forEach(s=>{wi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,In).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ku(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ou&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,In).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ne).clear(),T(this,Dn).clear()}},Ne=new WeakMap,Dn=new WeakMap,In=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Ln=new WeakMap,er=new WeakMap,tr=new WeakMap,Hh),ut,me,Ci,st,fs,nr,Fn,Yt,Ei,sr,rr,hs,ps,Vn,ir,be,Br,Zc,Kc,Gc,Qc,Xc,Yc,Jc,Tv,qh,Z1=(qh=class extends Li{constructor(t,n){super();ne(this,be);ne(this,ut);ne(this,me);ne(this,Ci);ne(this,st);ne(this,fs);ne(this,nr);ne(this,Fn);ne(this,Yt);ne(this,Ei);ne(this,sr);ne(this,rr);ne(this,hs);ne(this,ps);ne(this,Vn);ne(this,ir,new Set);this.options=n,K(this,ut,t),K(this,Yt,null),K(this,Fn,qc()),this.options.experimental_prefetchInRender||T(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),Rh(T(this,me),this.options)?pe(this,be,Br).call(this):this.updateResult(),pe(this,be,Qc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return el(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return el(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Xc).call(this),pe(this,be,Yc).call(this),T(this,me).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,me);if(this.options=T(this,ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,T(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Jc).call(this),T(this,me).setOptions(this.options),s._defaulted&&!zc(this.options,s)&&T(this,ut).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&Ph(T(this,me),r,this.options,s)&&pe(this,be,Br).call(this),this.updateResult(n),i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||qs(this.options.staleTime,T(this,me))!==qs(s.staleTime,T(this,me)))&&pe(this,be,Zc).call(this);const o=pe(this,be,Kc).call(this);i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||o!==T(this,Vn))&&pe(this,be,Gc).call(this,o)}getOptimisticResult(t){const n=T(this,ut).getQueryCache().build(T(this,ut),t),s=this.createResult(n,t);return G1(this,s)&&(K(this,st,s),K(this,nr,this.options),K(this,fs,T(this,me).state)),s}getCurrentResult(){return T(this,st)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,ir).add(t)}getCurrentQuery(){return T(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,ut).defaultQueryOptions(t),s=T(this,ut).getQueryCache().build(T(this,ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return pe(this,be,Br).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,st)))}createResult(t,n){var R;const s=T(this,me),r=this.options,i=T(this,st),o=T(this,fs),a=T(this,nr),l=t!==s?t.state:T(this,Ci),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&Rh(t,n),I=N&&Ph(t,s,n,r);(M||I)&&(d={...d,...Ev(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:v}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,Ei))y=T(this,sr);else try{K(this,Ei,n.select),y=n.select(d.data),y=Hc(i==null?void 0:i.data,y,n),K(this,sr,y),K(this,Yt,null)}catch(N){K(this,Yt,N)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,rr))==null?void 0:R.state.data,T(this,rr)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),K(this,Yt,null)}catch(M){K(this,Yt,M)}N!==void 0&&(v="success",y=Hc(i==null?void 0:i.data,N,n),h=!0)}T(this,Yt)&&(m=T(this,Yt),y=T(this,sr),p=Date.now(),v="error");const x=d.fetchStatus==="fetching",b=v==="pending",w=v==="error",_=b&&x,S=y!==void 0,E={status:v,fetchStatus:d.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&S,isStale:Du(t,n),refetch:this.refetch,promise:T(this,Fn)};if(this.options.experimental_prefetchInRender){const N=O=>{E.status==="error"?O.reject(E.error):E.data!==void 0&&O.resolve(E.data)},M=()=>{const O=K(this,Fn,E.promise=qc());N(O)},I=T(this,Fn);switch(I.status){case"pending":t.queryHash===s.queryHash&&N(I);break;case"fulfilled":(E.status==="error"||E.data!==I.value)&&M();break;case"rejected":(E.status!=="error"||E.error!==I.reason)&&M();break}}return E}updateResult(t){const n=T(this,st),s=this.createResult(T(this,me),this.options);if(K(this,fs,T(this,me).state),K(this,nr,this.options),T(this,fs).data!==void 0&&K(this,rr,T(this,me)),zc(s,n))return;K(this,st,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,ir).size)return!0;const c=new Set(a??T(this,ir));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,st)).some(l=>{const u=l;return T(this,st)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),pe(this,be,Tv).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,Qc).call(this)}},ut=new WeakMap,me=new WeakMap,Ci=new WeakMap,st=new WeakMap,fs=new WeakMap,nr=new WeakMap,Fn=new WeakMap,Yt=new WeakMap,Ei=new WeakMap,sr=new WeakMap,rr=new WeakMap,hs=new WeakMap,ps=new WeakMap,Vn=new WeakMap,ir=new WeakMap,be=new WeakSet,Br=function(t){pe(this,be,Jc).call(this);let n=T(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(At)),n},Zc=function(){pe(this,be,Xc).call(this);const t=qs(this.options.staleTime,T(this,me));if(As||T(this,st).isStale||!Uc(t))return;const s=vv(T(this,st).dataUpdatedAt,t)+1;K(this,hs,setTimeout(()=>{T(this,st).isStale||this.updateResult()},s))},Kc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)??!1},Gc=function(t){pe(this,be,Yc).call(this),K(this,Vn,t),!(As||Dt(this.options.enabled,T(this,me))===!1||!Uc(T(this,Vn))||T(this,Vn)===0)&&K(this,ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Mu.isFocused())&&pe(this,be,Br).call(this)},T(this,Vn)))},Qc=function(){pe(this,be,Zc).call(this),pe(this,be,Gc).call(this,pe(this,be,Kc).call(this))},Xc=function(){T(this,hs)&&(clearTimeout(T(this,hs)),K(this,hs,void 0))},Yc=function(){T(this,ps)&&(clearInterval(T(this,ps)),K(this,ps,void 0))},Jc=function(){const t=T(this,ut).getQueryCache().build(T(this,ut),this.options);if(t===T(this,me))return;const n=T(this,me);K(this,me,t),K(this,Ci,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Tv=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,st))}),T(this,ut).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},qh);function K1(e,t){return Dt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rh(e,t){return K1(e,t)||e.state.data!==void 0&&el(e,t,t.refetchOnMount)}function el(e,t,n){if(Dt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Du(e,t)}return!1}function Ph(e,t,n,s){return(e!==t||Dt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Du(e,n)}function Du(e,t){return Dt(t.enabled,e)!==!1&&e.isStaleByTime(qs(t.staleTime,e))}function G1(e,t){return!zc(e.getCurrentResult(),t)}var Av=g.createContext(void 0),Q1=e=>{const t=g.useContext(Av);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zk=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Av.Provider,{value:e,children:t})),Rv=g.createContext(!1),X1=()=>g.useContext(Rv);Rv.Provider;function Y1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var J1=g.createContext(Y1()),ej=()=>g.useContext(J1);function tj(e,t){return typeof e=="function"?e(...t):!!e}function Nh(){}var nj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},sj=e=>{g.useEffect(()=>{e.clearReset()},[e])},rj=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||tj(n,[e.error,s])),ij=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},oj=(e,t)=>e.isLoading&&e.isFetching&&!t,aj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,jh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cj(e,t,n){var d,h,y,m,p;const s=Q1(),r=X1(),i=ej(),o=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",ij(o),nj(o,i),sj(i);const a=!s.getQueryCache().get(o.queryHash),[c]=g.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const x=u?c.subscribe(He.batchCalls(v)):Nh;return c.updateResult(),x},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),aj(o,l))throw jh(o,c,i);if(rj({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||m.call(y,o,l),o.experimental_prefetchInRender&&!As&&oj(l,r)){const v=a?jh(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(Nh).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function Tn(e,t){return cj(e,Z1)}const lj=e=>{const{data:t,isPending:n,status:s}=Tn({queryKey:["photos",e],queryFn:()=>qN(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},uj=e=>{const{data:t,isPending:n,isError:s}=Tn({queryKey:["videos",e],queryFn:()=>ZN(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},Wk=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[s,r]=En({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=lj(1),{data:o}=uj(1);GE();const[a,c]=g.useState(!1),[l,u]=g.useState(!1);g.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),g.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:f.jsx("img",{src:(p=m==null?void 0:m.photo)==null?void 0:p.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:f.jsx("video",{src:((p=m==null?void 0:m.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(Sl,{onClick:()=>t(!1),className:"absolute top-6 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),f.jsxs("div",{className:"hidden md:block",children:[f.jsx(nc,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(jp,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},Hk=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var m;const[o,a]=g.useState(!1),[c,l]=g.useState(!1),u=Te(p=>p.lang),[d,h]=g.useState(100),y=({className:p})=>{const[v,x]=En({});return g.useEffect(()=>{if(!x)return;const b=()=>{a(x.canScrollPrev()),l(x.canScrollNext())};return b(),x.on("select",b),()=>{x.off("select",b)}},[x]),f.jsxs("div",{className:V("",p),children:[f.jsx("h3",{className:"text-xl mb-2.5",children:"Работы дизайнера"}),f.jsx("div",{ref:v,className:"embla overflow-hidden",children:f.jsxs("div",{className:"embla__container items-center flex gap-4",children:[o&&f.jsx(nc,{onClick:()=>o&&(x==null?void 0:x.scrollPrev()),className:V("cursor-pointer",!o&&"opacity-20")}),f.jsx("div",{className:"flex items-center gap-4",children:i==null?void 0:i.map((b,w)=>f.jsx("div",{className:"lg:size-[140px] size-[70px] overflow-hidden",children:f.jsx("img",{onClick:()=>h(w),src:b==null?void 0:b.path,className:"size-full hover:scale-105 transition-all cursor-pointer overflow-hidden object-cover object-top"},w)}))}),c&&f.jsx(jp,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!c&&"opacity-20")})]})})]})};return f.jsxs(Py,{children:[f.jsxs(Ny,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((p,v)=>f.jsx("li",{children:u==="ru"?p==null?void 0:p.ru:p==null?void 0:p.en},v))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(Su,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] md:!w-[688px] w-[336px] max-h-[100vh] overflow-hidden"),children:[d===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"gap-4 md:!flex !hidden",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full float-left object-cover"})}),f.jsxs("div",{className:"flex-[0_0_70%]",children:[f.jsx("div",{className:"text-2xl mb-4",children:t}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal overflow-y-auto max-h-[40vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{className:"hidden md:block"}),f.jsxs("div",{className:"flex flex-col gap-4 md:hidden overflow-auto h-full",children:[f.jsx("h3",{className:"text-xl",children:t}),f.jsx("img",{src:r==null?void 0:r.path,alt:t}),f.jsx("hr",{}),f.jsx(y,{}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal",dangerouslySetInnerHTML:{__html:s??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(nc,{}),"Вернуться назад"]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(m=i==null?void 0:i[d])==null?void 0:m.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})};function Pv(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,dj(r,...t)]}function dj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ze(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function kh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Iu(...e){return t=>{let n=!1;const s=e.map(r=>{const i=kh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=g.Children.toArray(i),c=a.find(pj);if(c){const l=c.props.children,u=a.map(d=>d===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:r,children:g.isValidElement(l)?g.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function fj(e){const t=g.forwardRef((n,s)=>{const{children:r,...i}=n;if(g.isValidElement(r)){const o=gj(r),a=mj(i,r.props);return r.type!==g.Fragment&&(a.ref=s?Iu(s,o):o),g.cloneElement(r,a)}return g.Children.count(r)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hj=Symbol("radix.slottable");function pj(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hj}function mj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function gj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=yj.reduce((e,t)=>{const n=tl(`Primitive.${t}`),s=g.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function nl(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}var Rs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},vj=ul[" useInsertionEffect ".trim().toString()]||Rs;function Nv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=xj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=g.useRef(e!==void 0);g.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=g.useCallback(u=>{var d;if(a){const h=bj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[c,l]}function xj({defaultProp:e,onChange:t}){const[n,s]=g.useState(e),r=g.useRef(n),i=g.useRef(t);return vj(()=>{i.current=t},[t]),g.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function bj(e){return typeof e=="function"}var wj=g.createContext(void 0);function Sj(e){const t=g.useContext(wj);return e||t||"ltr"}function _j(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var Fi=e=>{const{present:t,children:n}=e,s=Cj(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=dn(s.ref,Ej(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};Fi.displayName="Presence";function Cj(e){const[t,n]=g.useState(),s=g.useRef(null),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=_j(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Ji(s.current);i.current=a==="mounted"?l:"none"},[a]),Rs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,y=Ji(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Rs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ji(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Ji(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function Ji(e){return(e==null?void 0:e.animationName)||"none"}function Ej(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tj=ul[" useId ".trim().toString()]||(()=>{}),Aj=0;function jv(e){const[t,n]=g.useState(Tj());return Rs(()=>{e||n(s=>s??String(Aj++))},[e]),e||(t?`radix-${t}`:"")}function kv(e){const t=e+"CollectionProvider",[n,s]=Pv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=de.useRef(null),w=de.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=tl(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=tl(u),y=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=dn(v,_),A=i(u,x);return de.useEffect(()=>(A.itemMap.set(_,{ref:_,...w}),()=>void A.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function m(p){const v=i(e+"CollectionConsumer",p);return de.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((A,E)=>w.indexOf(A.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},m,s]}function Jt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Rj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Pj="DismissableLayer",sl="dismissableLayer.update",Nj="dismissableLayer.pointerDownOutside",jj="dismissableLayer.focusOutside",Oh,Ov=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mv=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(Ov),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=dn(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Mj(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Dj(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Rj(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Mh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Oh)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Mh())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(sl,E),()=>document.removeEventListener(sl,E)},[]),f.jsx(ht.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,S.onPointerDownCapture)})});Mv.displayName=Pj;var kj="DismissableLayerBranch",Oj=g.forwardRef((e,t)=>{const n=g.useContext(Ov),s=g.useRef(null),r=dn(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ht.div,{...e,ref:r})});Oj.displayName=kj;function Mj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Dv(Nj,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Dj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&Dv(jj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Mh(){const e=new CustomEvent(sl);document.dispatchEvent(e)}function Dv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?nl(r,i):r.dispatchEvent(i)}function Ij(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Lj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fj="VisuallyHidden",Iv=g.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...Lj,...e.style}}));Iv.displayName=Fj;var Vj=Iv,Ns="NavigationMenu",[Lu,Lv,Bj]=kv(Ns),[rl,$j,Uj]=kv(Ns),[Fu,qk]=Pv(Ns,[Bj,Uj]),[zj,Nt]=Fu(Ns),[Wj,Hj]=Fu(Ns),Fv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=g.useState(null),y=dn(t,N=>h(N)),m=Sj(l),p=g.useRef(0),v=g.useRef(0),x=g.useRef(0),[b,w]=g.useState(!0),[_,S]=Nv({prop:s,onChange:N=>{const M=N!=="",I=a>0;M?(window.clearTimeout(x.current),I&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(N)},defaultProp:i??"",caller:Ns}),A=g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),E=g.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=g.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return g.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Vv,{scope:n,isRootMenu:!0,value:_,dir:m,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):E(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:N=>{S(M=>M===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(ht.nav,{"aria-label":"Main","data-orientation":c,dir:m,...u,ref:y})})});Fv.displayName=Ns;var il="NavigationMenuSub",qj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,c=Nt(il,n),[l,u]=Nv({prop:s,onChange:r,defaultProp:i??"",caller:il});return f.jsx(Vv,{scope:n,isRootMenu:!1,value:l,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(ht.div,{"data-orientation":o,...a,ref:t})})});qj.displayName=il;var Vv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[m,p]=g.useState(null),[v,x]=g.useState(new Map),[b,w]=g.useState(null);return f.jsx(zj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Ij(a),baseId:jv(),dir:r,orientation:i,viewport:m,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(y),onItemSelect:Jt(c),onItemDismiss:Jt(l),onViewportContentChange:g.useCallback((_,S)=>{x(A=>(A.set(_,S),new Map(A)))},[]),onViewportContentRemove:g.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Lu.Provider,{scope:t,children:f.jsx(Wj,{scope:t,items:v,children:o})})})},Bv="NavigationMenuList",$v=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Bv,n),i=f.jsx(ht.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(ht.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Lu.Slot,{scope:n,children:r.isRootMenu?f.jsx(Xv,{asChild:!0,children:i}):i})})});$v.displayName=Bv;var Uv="NavigationMenuItem",[Zj,zv]=Fu(Uv),Wv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=jv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=g.useRef(null),c=g.useRef(null),l=g.useRef(null),u=g.useRef(()=>{}),d=g.useRef(!1),h=g.useCallback((m="start")=>{if(a.current){u.current();const p=al(a.current);p.length&&$u(m==="start"?p:p.reverse())}},[]),y=g.useCallback(()=>{if(a.current){const m=al(a.current);m.length&&(u.current=ek(m))}},[]);return f.jsx(Zj,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(ht.li,{...r,ref:t})})});Wv.displayName=Uv;var ol="NavigationMenuTrigger",Hv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=Nt(ol,e.__scopeNavigationMenu),o=zv(ol,e.__scopeNavigationMenu),a=g.useRef(null),c=dn(a,o.triggerRef,t),l=Jv(i.baseId,o.value),u=ex(i.baseId,o.value),d=g.useRef(!1),h=g.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Lu.ItemSlot,{scope:n,value:o.value,children:f.jsx(Yv,{asChild:!0,children:f.jsx(ht.button,{id:l,disabled:s,"data-disabled":s?"":void 0,"data-state":Uu(y),"aria-expanded":y,"aria-controls":u,...r,ref:c,onPointerEnter:ze(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ze(e.onPointerMove,zo(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ze(e.onPointerLeave,zo(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:ze(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:ze(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&m.key===v&&(o.onEntryKeyDown(),m.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(Vj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const p=o.contentRef.current,v=m.relatedTarget,x=v===a.current,b=p==null?void 0:p.contains(v);(x||!b)&&o.onFocusProxyEnter(x?"start":"end")}}),i.viewport&&f.jsx("span",{"aria-owns":u})]})]})});Hv.displayName=ol;var Kj="NavigationMenuLink",Dh="navigationMenu.linkSelect",qv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(Yv,{asChild:!0,children:f.jsx(ht.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:ze(e.onClick,o=>{const a=o.target,c=new CustomEvent(Dh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Dh,l=>r==null?void 0:r(l),{once:!0}),nl(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(ho,{bubbles:!0,cancelable:!0});nl(a,l)}},{checkForDefaultPrevented:!1})})})});qv.displayName=Kj;var Vu="NavigationMenuIndicator",Zv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?Zh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(Gj,{...s,ref:t})}),r.indicatorTrack):null});Zv.displayName=Vu;var Gj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Vu,n),i=Lv(n),[o,a]=g.useState(null),[c,l]=g.useState(null),u=r.orientation==="horizontal",d=!!r.value;g.useEffect(()=>{var p;const m=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;m&&a(m)},[i,r.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cl(o,h),cl(r.indicatorTrack,h),c?f.jsx(ht.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),pr="NavigationMenuContent",Kv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(pr,e.__scopeNavigationMenu),i=zv(pr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(Qj,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(Gv,{"data-state":Uu(a),...c,ref:o,onPointerEnter:ze(e.onPointerEnter,r.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Kv.displayName=pr;var Qj=g.forwardRef((e,t)=>{const n=Nt(pr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Rs(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Rs(()=>()=>r(e.value),[e.value,r]),null}),ho="navigationMenu.rootContentDismiss",Gv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=Nt(pr,n),d=g.useRef(null),h=dn(d,t),y=Jv(u.baseId,s),m=ex(u.baseId,s),p=Lv(n),v=g.useRef(null),{onItemDismiss:x}=u;g.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(ho,_),()=>w.removeEventListener(ho,_)}},[u.isRootMenu,e.value,r,x,a]);const b=g.useMemo(()=>{const _=p().map(M=>M.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),A=_.indexOf(u.previousValue),E=s===u.value,R=A===_.indexOf(s);if(!E&&!R)return v.current;const N=(()=>{if(S!==A){if(E&&A!==-1)return S>A?"from-end":"from-start";if(R&&S!==-1)return S>A?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(Xv,{asChild:!0,children:f.jsx(Mv,{id:m,"aria-labelledby":y,"data-motion":b,"data-orientation":u.orientation,...l,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(ho,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:ze(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:ze(e.onPointerDownOutside,w=>{var E;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),A=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(S||A||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:ze(e.onKeyDown,w=>{var A;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=al(w.currentTarget),R=document.activeElement,N=E.findIndex(O=>O===R),I=w.shiftKey?E.slice(0,N).reverse():E.slice(N+1,E.length);$u(I)?w.preventDefault():(A=i.current)==null||A.focus()}}),onEscapeKeyDown:ze(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",Qv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!Nt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(Xj,{...s,ref:t})})});Qv.displayName=Bu;var Xj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=Nt(Bu,n),o=dn(t,i.onViewportChange),a=Hj(pr,e.__scopeNavigationMenu),[c,l]=g.useState(null),[u,d]=g.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,y=c?(c==null?void 0:c.height)+"px":void 0,m=!!i.value,p=m?i.value:i.previousValue;return cl(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(ht.div,{"data-state":Uu(m),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...r.style},onPointerEnter:ze(e.onPointerEnter,i.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Fi,{present:w||S,children:f.jsx(Gv,{..._,ref:Iu(b,A=>{S&&A&&d(A)})})},x)})})}),Yj="FocusGroup",Xv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Yj,n);return f.jsx(rl.Provider,{scope:n,children:f.jsx(rl.Slot,{scope:n,children:f.jsx(ht.div,{dir:r.dir,...s,ref:t})})})}),Ih=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Jj="FocusGroupItem",Yv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=$j(n),i=Nt(Jj,n);return f.jsx(rl.ItemSlot,{scope:n,children:f.jsx(ht.button,{...s,ref:t,onKeyDown:ze(e.onKeyDown,o=>{if(["Home","End",...Ih].includes(o.key)){let c=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Ih.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>$u(c)),o.preventDefault()}})})})});function al(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function ek(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function cl(e,t){const n=Jt(t);Rs(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function Uu(e){return e?"open":"closed"}function Jv(e,t){return`${e}-trigger-${t}`}function ex(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var tx=Fv,nx=$v,tk=Wv,sx=Hv,nk=qv,rx=Zv,ix=Kv,ox=Qv;const ax=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(tx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(dx,{})]}));ax.displayName=tx.displayName;const cx=g.forwardRef(({className:e,...t},n)=>f.jsx(nx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));cx.displayName=nx.displayName;const sk=tk,rk=Go("group inline-flex h-14 w-full items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),lx=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(sx,{ref:s,className:V(rk(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(nw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));lx.displayName=sx.displayName;const ux=g.forwardRef(({className:e,...t},n)=>f.jsx(ix,{ref:n,className:V("left-0 top-0 w-40 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",e),...t}));ux.displayName=ix.displayName;const ik=nk,dx=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:V("absolute xl:left-full xl:top-0 -top-36 flex justify-center w-40"),children:f.jsx(ox,{className:V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-40 rounded-md text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90",e),ref:n,...t})}));dx.displayName=ox.displayName;const ok=g.forwardRef(({className:e,...t},n)=>f.jsx(rx,{ref:n,className:V("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));ok.displayName=rx.displayName;const ak=({className:e,text:t,hoverItems:n,setIsOpen:s})=>{const r=Vo(i=>i.setSheet);return f.jsx(ax,{children:f.jsx(cx,{children:f.jsxs(sk,{className:"w-full",children:[f.jsx(lx,{className:V("bg-transparent h-14 flex gap-3 justify-between min-w-full text-base cursor-pointer items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(ux,{className:"bg-surface_container shadow flex flex-col pb-2 rounded-[2px] w-40 items-center justify-center pt-2",children:n==null?void 0:n.map((i,o)=>f.jsx(ik,{onClick:()=>{s(!1),r(!1)},className:"h-14 py-2 flex items-center w-40 cursor-pointer px-4 hover:bg-slate-300/50 transition-all",children:f.jsx(Ce,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},gt=e=>e===Pt.RU?0:1,ll=[{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"}]}],hx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["industries",e],queryFn:()=>WN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Gk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=hx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:ul[gt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>f.jsx(qp,{...r},i))}),f.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[f.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),f.jsx("p",{className:"text-18",children:ul[gt(t)].bottom_text})]})]})})})},px=[{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"}]}],mx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["exhibiton-time",e],queryFn:()=>HN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Qk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=mx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[gt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>g.createElement(Zp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Fh=[{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."]}],Xk=({className:e})=>{const t=Te(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(qe,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[f.jsxs("div",{className:"flex-[0_0_50%]",children:[f.jsx("h3",{className:"h2 mb-6",children:Fh[gt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Fh[gt(t)].data.map(n=>f.jsx("p",{children:n},n))})]}),f.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:f.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},to=[{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"}],Yk=({className:e})=>{const t=Te(n=>n.lang);return f.jsxs("section",{className:V("md:py-20 py-10 relative overflow-hidden",e),children:[f.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),f.jsxs(qe,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:to[gt(t)].title}),f.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:to[gt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(Ce,{to:"/stend-form",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:to[gt(t)].button1})}),f.jsx(Ce,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:to[gt(t)].button2})})]})]})]})},gx=e=>{const t=Te(r=>r.lang),{data:n,isPending:s}=Tn({queryKey:["static-words",t,e],queryFn:()=>$N(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},Jk=()=>{var h,y,m,p,v,x,b,w;const e=Te(_=>_.lang),{t}=Ps("about"),{data:n,isPending:s}=gx("2"),r=(h=n==null?void 0:n.find(_=>_.key==="about_1"))==null?void 0:h.text,i=(y=n==null?void 0:n.find(_=>_.key==="about_2"))==null?void 0:y.text,o=(m=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:m.text,a=(p=n==null?void 0:n.find(_=>_.key==="about_4"))==null?void 0:p.text,c=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,l=(x=n==null?void 0:n.find(_=>_.key==="about_6"))==null?void 0:x.text,u=(b=n==null?void 0:n.find(_=>_.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(_=>_.key==="about_8"))==null?void 0:w.list;return s?f.jsx(Yn,{}):f.jsxs(qe,{className:"flex flex-col md:my-20 my-10 gap-16",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r}),f.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h3",{className:"h2",children:o}),f.jsx("h4",{className:"p",children:a}),f.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((_,S)=>f.jsx("li",{className:"p",children:e==="ru"?_.text_ru:_.text_en},S))})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:l}),f.jsx("h3",{className:"p",children:u}),f.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((_,S)=>f.jsxs("li",{children:[" ",e==="ru"?_.text_ru:_.text_en]},S))})]}),f.jsx(Ce,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(ot,{children:t("main.button")})})]})},lk={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function uk(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function dk(e,t){const n=e.rootNode();return t&&t(n)||n}function ya(e={}){let t,n,s,r,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(F,J){n=F;const{mergeOptions:X,optionsAtMedia:q}=J,Z=X(lk,ya.globalOptions),re=X(Z,e);if(t=q(re),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=uk(n,t.delay);const{eventStore:fe,ownerDocument:ye}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,Ze=dk(n,t.rootNode);fe.add(ye,"visibilitychange",x),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&fe.add(Ze,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&fe.add(Ze,"mouseleave",A),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&fe.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){n.off("pointerDown",w).off("pointerUp",_).off("slideFocusStart",v),v(),s=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(L,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function m(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){l=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){s||(a&&n.emit("autoplay:stop"),m(),a=!1)}function x(){if(b())return l=a,v();l&&p()}function b(){const{ownerDocument:F}=n.internalEngine();return F.visibilityState==="hidden"}function w(){c||v()}function _(){c||p()}function S(){c=!0,v()}function A(){c=!1,p()}function E(F){typeof F<"u"&&(u=F),p()}function R(){a&&v()}function N(){a&&p()}function M(){return a}function L(){const{index:F}=n.internalEngine(),J=F.clone().add(1).get(),X=n.scrollSnapList().length-1,q=t.stopOnLastSnap&&J===X;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),q)return v();p()}function O(){if(!i)return null;const F=r[n.selectedScrollSnap()],J=new Date().getTime()-i;return F-J}return{name:"autoplay",options:e,init:d,destroy:h,play:E,stop:R,reset:N,isPlaying:M,timeUntilNext:O}}ya.globalOptions=void 0;const eO=()=>{const{t:e}=Ps("home"),[t]=En({loop:!0},[ya({delay:5e3,stopOnInteraction:!1})]),n=So("(min-width: 1024px)"),s=So("(min-width: 768px)");function r(){return n?e("banners.lg",{returnObjects:!0}):s?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=r();return f.jsx("div",{children:f.jsxs("section",{className:"flex flex-col gap-5",children:[f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:i==null?void 0:i.map((o,a)=>o.link?f.jsx(Ce,{to:o.link,className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})},a):f.jsx("div",{className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})},a))})}),f.jsx("div",{className:"relative",children:f.jsx(xk,{className:"absolute sm:bottom-12 bottom-28 2xl:right-[10%] xl:right-[13%] lg:right-[15%] right-10"})})]})})},fk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["home-contacts",e],queryFn:()=>zN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},tO=({className:e})=>{const t=Te(o=>o.lang),{data:n,isPending:s}=mx(),{data:r}=fk(),i=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[i].title}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((o,a)=>g.createElement(Zp,{...o,key:a,className:"w-full"}))}),f.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((o,a)=>g.createElement(w0,{...o,key:a,className:"w-full"}))}),f.jsx(Ce,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(ot,{className:"w-full",children:t===Pt.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},hk=[{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"}]}],fx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["industries",e],queryFn:()=>zN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Zk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=fx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:ll[gt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>f.jsx(Hp,{...r},i))}),f.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[f.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),f.jsx("p",{className:"text-18",children:ll[gt(t)].bottom_text})]})]})})})},hx=[{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"}]}],px=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["exhibiton-time",e],queryFn:()=>WN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Kk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=px();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:hx[gt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>g.createElement(qp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Lh=[{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."]}],Gk=({className:e})=>{const t=Te(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(qe,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[f.jsxs("div",{className:"flex-[0_0_50%]",children:[f.jsx("h3",{className:"h2 mb-6",children:Lh[gt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Lh[gt(t)].data.map(n=>f.jsx("p",{children:n},n))})]}),f.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:f.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},eo=[{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"}],Qk=({className:e})=>{const t=Te(n=>n.lang);return f.jsxs("section",{className:V("md:py-20 py-10 relative overflow-hidden",e),children:[f.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),f.jsxs(qe,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:eo[gt(t)].title}),f.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:eo[gt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(Ce,{to:"/stend-form",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:eo[gt(t)].button1})}),f.jsx(Ce,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:eo[gt(t)].button2})})]})]})]})},mx=e=>{const t=Te(r=>r.lang),{data:n,isPending:s}=Tn({queryKey:["static-words",t,e],queryFn:()=>BN(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},Xk=()=>{var h,y,m,p,v,x,b,w;const e=Te(_=>_.lang),{t}=vr("about"),{data:n,isPending:s}=mx("2"),r=(h=n==null?void 0:n.find(_=>_.key==="about_1"))==null?void 0:h.text,i=(y=n==null?void 0:n.find(_=>_.key==="about_2"))==null?void 0:y.text,o=(m=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:m.text,a=(p=n==null?void 0:n.find(_=>_.key==="about_4"))==null?void 0:p.text,c=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,l=(x=n==null?void 0:n.find(_=>_.key==="about_6"))==null?void 0:x.text,u=(b=n==null?void 0:n.find(_=>_.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(_=>_.key==="about_8"))==null?void 0:w.list;return s?f.jsx(Yn,{}):f.jsxs(qe,{className:"flex flex-col md:my-20 my-10 gap-16",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r}),f.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h3",{className:"h2",children:o}),f.jsx("h4",{className:"p",children:a}),f.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((_,S)=>f.jsx("li",{className:"p",children:e==="ru"?_.text_ru:_.text_en},S))})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:l}),f.jsx("h3",{className:"p",children:u}),f.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((_,S)=>f.jsxs("li",{children:[" ",e==="ru"?_.text_ru:_.text_en]},S))})]}),f.jsx(Ce,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(ot,{children:t("main.button")})})]})},ck={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function lk(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function uk(e,t){const n=e.rootNode();return t&&t(n)||n}function ga(e={}){let t,n,s,r,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(F,J){n=F;const{mergeOptions:X,optionsAtMedia:q}=J,Z=X(ck,ga.globalOptions),re=X(Z,e);if(t=q(re),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=lk(n,t.delay);const{eventStore:fe,ownerDocument:ye}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,Ze=uk(n,t.rootNode);fe.add(ye,"visibilitychange",x),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&fe.add(Ze,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&fe.add(Ze,"mouseleave",A),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&fe.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){n.off("pointerDown",w).off("pointerUp",_).off("slideFocusStart",v),v(),s=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(I,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function m(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){l=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){s||(a&&n.emit("autoplay:stop"),m(),a=!1)}function x(){if(b())return l=a,v();l&&p()}function b(){const{ownerDocument:F}=n.internalEngine();return F.visibilityState==="hidden"}function w(){c||v()}function _(){c||p()}function S(){c=!0,v()}function A(){c=!1,p()}function E(F){typeof F<"u"&&(u=F),p()}function R(){a&&v()}function N(){a&&p()}function M(){return a}function I(){const{index:F}=n.internalEngine(),J=F.clone().add(1).get(),X=n.scrollSnapList().length-1,q=t.stopOnLastSnap&&J===X;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),q)return v();p()}function O(){if(!i)return null;const F=r[n.selectedScrollSnap()],J=new Date().getTime()-i;return F-J}return{name:"autoplay",options:e,init:d,destroy:h,play:E,stop:R,reset:N,isPlaying:M,timeUntilNext:O}}ga.globalOptions=void 0;const Yk=()=>{const{t:e}=vr("home"),[t]=En({loop:!0},[ga({delay:5e3,stopOnInteraction:!1})]),n=wo("(min-width: 1024px)"),s=wo("(min-width: 768px)");function r(){return n?e("banners.lg",{returnObjects:!0}):s?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=r();return f.jsx("div",{className:"mb-6",children:f.jsx("section",{className:"flex flex-col gap-5",children:f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:i==null?void 0:i.map((o,a)=>o.link?f.jsx(Ce,{to:o.link,className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})},a):f.jsx("div",{className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})},a))})})})})},dk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["home-contacts",e],queryFn:()=>UN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Jk=({className:e})=>{const t=Te(o=>o.lang),{data:n,isPending:s}=px(),{data:r}=dk(),i=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-6",children:hx[i].title}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((o,a)=>g.createElement(qp,{...o,key:a,className:"w-full"}))}),f.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((o,a)=>g.createElement(b0,{...o,key:a,className:"w-full"}))}),f.jsx(Ce,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(ot,{className:"w-full",children:t===Pt.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},fk=[{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. Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. - `,p_2:"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:"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"}],pk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["stats",e],queryFn:()=>UN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},nO=()=>{var c,l;const[e]=En(),t=Te(u=>u.lang),{data:n,isPending:s}=gx("1"),{data:r}=pk(),i=(c=n==null?void 0:n.find(u=>u.key==="index_1"))==null?void 0:c.text,o=(l=n==null?void 0:n.find(u=>u.key==="index_2"))==null?void 0:l.text,a=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2 text-left",children:i}),f.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsx(Ce,{to:"/about",className:"w-fit",children:f.jsx(ot,{variant:"outline",children:hk[a].button})})]}),f.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),f.jsx("div",{ref:e,className:"embla overflow-hidden",children:f.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(u=>f.jsx(x0,{...u,className:"embla__slide flex-[0_0_288px]"},u.text))})})]})})},sO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=hx();return n?f.jsx(Yn,{}):f.jsx("section",{className:"",children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:ul[gt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>f.jsx(qp,{...s},r))})]})})},mk=[{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_eng.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"}]}],rO=()=>{const[e,t]=En({align:"start"}),[n,s]=g.useState(0),r=Te(o=>o.lang),i=g.useCallback(o=>{t&&t.scrollTo(o)},[t]);return g.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(qe,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:mk[gt(r)].data.map(o=>g.createElement(b0,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(bT,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},gk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["sponsors",e],queryFn:()=>GN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},iO=({className:e})=>{const[t]=En({loop:!0,align:"start",skipSnaps:!0,duration:75},[ya({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=gk(),{t:r}=Ps("home",{keyPrefix:"sponsors"});return s?f.jsx(Yn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?f.jsxs(Ce,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[f.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):f.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[f.jsx("div",{className:"h-[128px] w-full",children:f.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},yk=e=>{const{data:t,isPending:n}=Tn({queryKey:["news",e],queryFn:()=>qN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},vk=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return f.jsx(Ce,{to:`/news/${s}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:r.slice(0,10).split("-").reverse().join(".")}),f.jsx(Jb,{})]}),f.jsx("hr",{}),f.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),f.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},oO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=yk(e);return n?f.jsx(Yn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:e==="en"?"News":"Новости"}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(s=>g.createElement(vk,{...s,key:s.title}))})]})})},xk=()=>{const{t:e}=Ps("home"),[t,n]=g.useState({days:"0",hours:"00",minutes:"00",seconds:"00"}),[s,r]=g.useState({}),i=new Date("2025-06-11T08:00:00").getTime(),o=()=>{const d=new Date().getTime(),h=i-d;return h<=0?null:{days:Math.floor(h/(1e3*60*60*24)),hours:Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(h%(1e3*60*60)/(1e3*60)),seconds:Math.floor(h%(1e3*60)/1e3)}};g.useEffect(()=>{const d=o();d&&n({days:d.days.toString(),hours:d.hours.toString().padStart(2,"0"),minutes:d.minutes.toString().padStart(2,"0"),seconds:d.seconds.toString().padStart(2,"0")});const h=setInterval(()=>{const y=o();if(!y){clearInterval(h);return}r({days:t.days,hours:t.hours,minutes:t.minutes,seconds:t.seconds}),n({days:y.days.toString(),hours:y.hours.toString().padStart(2,"0"),minutes:y.minutes.toString().padStart(2,"0"),seconds:y.seconds.toString().padStart(2,"0")})},1e3);return()=>clearInterval(h)},[i]);const{days:a,hours:c,minutes:l,seconds:u}=e("timer",{returnObjects:!0});return f.jsxs("div",{className:"flex flex-col scale-[0.7] fixed -left-4 top-1/3 gap-2 bg-[#E7E5E5] py-4 pr-4 rounded drop-shadow-md z-[100]",children:[f.jsx(Ji,{value:t.days,prevValue:s.days||t.days,label:a}),f.jsx(Ji,{value:t.hours,prevValue:s.hours||t.hours,label:c}),f.jsx(Ji,{value:t.minutes,prevValue:s.minutes||t.minutes,label:l}),f.jsx(Ji,{value:t.seconds,prevValue:s.seconds||t.seconds,label:u})]})},aO=({className:e})=>{const{t}=Ps("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(qe,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((s,r)=>s.dropdown?f.jsx($o,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(ot,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[s.text,f.jsx(mv,{w:"40",h:"40",color:"white"})]})},r):f.jsx(Ce,{to:s.link??"",target:s.blank?"_blank":"",children:f.jsx(ot,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:s.text})},r))})})})},bk=()=>{const{t:e}=Ps("nav"),t=Te(i=>i.lang),n=Bo(i=>i.sheet),s=Bo(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return f.jsxs(Qw,{onOpenChange:()=>s(!n),open:n,children:[f.jsx(Xw,{children:f.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),f.jsxs(Bp,{className:"overflow-y-auto z-[100]",children:[f.jsx(Yw,{}),f.jsxs($p,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Ce,{to:t===Pt.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",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Ce,{to:"/become-sponsor",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?f.jsx($o,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(Ce,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},cO=()=>{const e=Te(s=>s.lang),{t}=Ps("nav"),n=t("navigation",{returnObjects:!0});return f.jsxs("header",{children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:f.jsxs(qe,{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(dw,{}),f.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?f.jsx($o,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):f.jsx(Ce,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(pw,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(eh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(qe,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Ce,{to:"/",children:f.jsx(Hp,{})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?f.jsx($o,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):f.jsx(Ce,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(eh,{className:"lg:hidden",light:!0}),f.jsx(bk,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Ce,{to:e===Pt.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:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Ce,{to:"/become-sponsor",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},lO=()=>{const e=Te(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(pv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[f.jsx(Hp,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Ce,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(aw,{className:"text-white"})}),f.jsx(Ce,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Ce,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Ce,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:f.jsx("img",{src:"/x.svg"})})]})]}),f.jsx("hr",{className:"border-white/50"}),f.jsx("h5",{className:"text-base text-center normal text-white",children:e===Pt.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},qe=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),uO=({title:e})=>f.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[f.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),f.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{qe as $,Wg as A,Hg as B,Ok as C,ot as D,Ek as E,lO as F,mT as G,cO as H,nR as I,kk as J,Rk as K,Pt as L,Mk as M,Ve as N,uO as O,ct as P,jk as Q,Jk as R,gr as S,Gk as T,Qk as U,Xk as V,Yk as W,Ik as X,Ps as Y,Op as Z,Fk as _,eO as a,uj as a0,dj as a1,qk as a2,Uk as a3,Tk as a4,Yn as a5,Tn as a6,Vk as a7,yk as a8,vk as a9,Bk as aa,zk as ab,Lk as ac,En as ad,ya as ae,$k as af,Zk as ag,sc as ah,kp as ai,Wk as aj,Hk as ak,aO as b,nO as c,iO as d,rO as e,sO as f,tO as g,oO as h,Ak as i,f as j,hl as k,zt as l,Qh as m,Bn as n,yt as o,no as p,yr as q,bA as r,V as s,ra as t,Te as u,Hr as v,gt as w,vT as x,zg as y,rh as z}; + `,p_2:"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:"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"}],hk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["stats",e],queryFn:()=>$N(e),select:({data:s})=>s.data});return{data:t,isPending:n}},eO=()=>{var c,l;const[e]=En(),t=Te(u=>u.lang),{data:n,isPending:s}=mx("1"),{data:r}=hk(),i=(c=n==null?void 0:n.find(u=>u.key==="index_1"))==null?void 0:c.text,o=(l=n==null?void 0:n.find(u=>u.key==="index_2"))==null?void 0:l.text,a=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2 text-left",children:i}),f.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsx(Ce,{to:"/about",className:"w-fit",children:f.jsx(ot,{variant:"outline",children:fk[a].button})})]}),f.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),f.jsx("div",{ref:e,className:"embla overflow-hidden",children:f.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(u=>f.jsx(v0,{...u,className:"embla__slide flex-[0_0_288px]"},u.text))})})]})})},tO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=fx();return n?f.jsx(Yn,{}):f.jsx("section",{className:"",children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:ll[gt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>f.jsx(Hp,{...s},r))})]})})},pk=[{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_eng.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"}]}],nO=()=>{const[e,t]=En({align:"start"}),[n,s]=g.useState(0),r=Te(o=>o.lang),i=g.useCallback(o=>{t&&t.scrollTo(o)},[t]);return g.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(qe,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:pk[gt(r)].data.map(o=>g.createElement(x0,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(xT,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},mk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["sponsors",e],queryFn:()=>KN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},sO=({className:e})=>{const[t]=En({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=mk(),{t:r}=vr("home",{keyPrefix:"sponsors"});return s?f.jsx(Yn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?f.jsxs(Ce,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[f.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):f.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[f.jsx("div",{className:"h-[128px] w-full",children:f.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},gk=e=>{const{data:t,isPending:n}=Tn({queryKey:["news",e],queryFn:()=>HN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},yk=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return f.jsx(Ce,{to:`/news/${s}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:r.slice(0,10).split("-").reverse().join(".")}),f.jsx(Yb,{})]}),f.jsx("hr",{}),f.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),f.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},rO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=gk(e);return n?f.jsx(Yn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:e==="en"?"News":"Новости"}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(s=>g.createElement(yk,{...s,key:s.title}))})]})})},iO=({className:e})=>{const{t}=vr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(qe,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((s,r)=>s.dropdown?f.jsx(Bo,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(ot,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[s.text,f.jsx(pv,{w:"40",h:"40",color:"white"})]})},r):f.jsx(Ce,{to:s.link??"",target:s.blank?"_blank":"",children:f.jsx(ot,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:s.text})},r))})})})},vk=()=>{const{t:e}=vr("nav"),t=Te(i=>i.lang),n=Vo(i=>i.sheet),s=Vo(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return f.jsxs(Gw,{onOpenChange:()=>s(!n),open:n,children:[f.jsx(Qw,{children:f.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),f.jsxs(Vp,{className:"overflow-y-auto z-[100]",children:[f.jsx(Xw,{}),f.jsxs(Bp,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Ce,{to:t===Pt.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",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Ce,{to:"/become-sponsor",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?f.jsx(Bo,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(Ce,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},oO=()=>{const e=Te(s=>s.lang),{t}=vr("nav"),n=t("navigation",{returnObjects:!0});return f.jsxs("header",{children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:f.jsxs(qe,{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(uw,{}),f.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?f.jsx(Bo,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):f.jsx(Ce,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(hw,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(Jf,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(qe,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Ce,{to:"/",children:f.jsx(Wp,{})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?f.jsx(Bo,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):f.jsx(Ce,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Jf,{className:"lg:hidden",light:!0}),f.jsx(vk,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Ce,{to:e===Pt.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:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Ce,{to:"/become-sponsor",children:f.jsx(ot,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},aO=()=>{const e=Te(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(hv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[f.jsx(Wp,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Ce,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(ow,{className:"text-white"})}),f.jsx(Ce,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Ce,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Ce,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:f.jsx("img",{src:"/x.svg"})})]})]}),f.jsx("hr",{className:"border-white/50"}),f.jsx("h5",{className:"text-base text-center normal text-white",children:e===Pt.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},qe=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cO=({title:e})=>f.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[f.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),f.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{qe as $,zg as A,Wg as B,jk as C,ot as D,_k as E,aO as F,pT as G,oO as H,tR as I,Nk as J,Tk as K,Pt as L,kk as M,Ve as N,cO as O,ct as P,Pk as Q,Xk as R,mr as S,Zk as T,Kk as U,Gk as V,Qk as W,Dk as X,vr as Y,kp as Z,Ik as _,Yk as a,lj as a0,uj as a1,Wk as a2,Bk as a3,Ck as a4,Yn as a5,Tn as a6,Lk as a7,gk as a8,yk as a9,Fk as aa,$k as ab,Mk as ac,En as ad,ga as ae,Vk as af,Hk as ag,nc as ah,jp as ai,Uk as aj,zk as ak,iO as b,eO as c,sO as d,nO as e,tO as f,Jk as g,rO as h,Ek as i,f as j,fl as k,zt as l,Gh as m,Bn as n,yt as o,to as p,gr as q,xA as r,V as s,sa as t,Te as u,Hr as v,gt as w,yT as x,Ug as y,sh as z}; diff --git a/dist/index.html b/dist/index.html index 5423520..6107c60 100644 --- a/dist/index.html +++ b/dist/index.html @@ -66,10 +66,10 @@ })(window, document, "script", "dataLayer", "GTM-NK394LVK"); Turkmen Textile - + - - + +
diff --git a/package.json b/package.json index 01e1053..7c6b28d 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "embla-carousel-autoplay": "^8.5.2", "embla-carousel-react": "^8.5.2", "i18next": "^24.2.2", + "lenis": "^1.3.4", "locomotive-scroll": "^4.1.4", "lucide-react": "^0.473.0", "motion": "^12.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 237d7ff..ee9de25 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ importers: i18next: specifier: ^24.2.2 version: 24.2.2(typescript@5.6.3) + lenis: + specifier: ^1.3.4 + version: 1.3.4(react@18.3.1) locomotive-scroll: specifier: ^4.1.4 version: 4.1.4 @@ -1592,6 +1595,20 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + lenis@1.3.4: + resolution: {integrity: sha512-WIGk8wiV2ABm/T7M+NC+tAV8fjzNJD1J4z11aZ3mTtx7WAZX/4QdCNhBO0g/TqXISA+/3hTbzrPC4FW1nhoNMQ==} + peerDependencies: + '@nuxt/kit': '>=3.0.0' + react: '>=17.0.0' + vue: '>=3.0.0' + peerDependenciesMeta: + '@nuxt/kit': + optional: true + react: + optional: true + vue: + optional: true + lethargy@1.0.9: resolution: {integrity: sha512-nFM8blpCF9rqIL5mRAaTGc78W8oQixVtsD86jbEPvcI13+lDUYJf3R7DZQQL7tCiBpbGpGKMX2gwJFO9hiaOkg==} @@ -3466,6 +3483,10 @@ snapshots: dependencies: json-buffer: 3.0.1 + lenis@1.3.4(react@18.3.1): + optionalDependencies: + react: 18.3.1 + lethargy@1.0.9: {} levn@0.4.1: diff --git a/src/App.tsx b/src/App.tsx index 917c242..dc9ece1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,17 +1,27 @@ import { Outlet } from "react-router-dom"; import { Footer, Header } from "./components/layout"; import LanguageSync from "./lang-sync"; +import ReactLenis from "lenis/react"; function App() { return ( -
- +
-
- -
+ +
+ +
+ +
+
+
-
+ ); } diff --git a/src/components/shared/home/home-hero.tsx b/src/components/shared/home/home-hero.tsx index 6b8b4ba..5aa566d 100644 --- a/src/components/shared/home/home-hero.tsx +++ b/src/components/shared/home/home-hero.tsx @@ -1,7 +1,6 @@ import { FC } from "react"; import { useMediaQuery } from "usehooks-ts"; import { useTranslation } from "react-i18next"; -import { HomeTimer } from "./"; import useEmblaCarousel from "embla-carousel-react"; import Autoplay from "embla-carousel-autoplay"; import { Link } from "react-router-dom"; @@ -38,7 +37,7 @@ export const HomeHero: FC = () => { const banners = getBanners(); return ( -
+
@@ -66,9 +65,9 @@ export const HomeHero: FC = () => {
-
+ {/*
-
+
*/}
); diff --git a/src/components/shared/menu.tsx b/src/components/shared/menu.tsx index a342db6..359aead 100644 --- a/src/components/shared/menu.tsx +++ b/src/components/shared/menu.tsx @@ -41,7 +41,7 @@ export const Menu: FC> = ({ )} - + {dropDownContent && dropDownContent.map((item, i) => item.hover ? (