From 6856779cc25a25366cd8694dfd7c1c212ef1ded0 Mon Sep 17 00:00:00 2001 From: Atash03 Date: Sat, 28 Mar 2026 00:10:12 +0500 Subject: [PATCH] fix: banner tm locale video path --- dist/assets/index-BNWWHLDD.js | 1 - dist/assets/index-BYPmnuZF.js | 1 + ...r-CJoWVsUG.js => react-vendor-B--yIoPF.js} | 2 +- dist/assets/ui-library-DV79vey3.js | 163 ------------------ dist/assets/ui-library-DXFnX4mi.js | 163 ++++++++++++++++++ dist/index.html | 6 +- src/locales/tm/home.json | 6 +- 7 files changed, 171 insertions(+), 171 deletions(-) delete mode 100644 dist/assets/index-BNWWHLDD.js create mode 100644 dist/assets/index-BYPmnuZF.js rename dist/assets/{react-vendor-CJoWVsUG.js => react-vendor-B--yIoPF.js} (99%) delete mode 100644 dist/assets/ui-library-DV79vey3.js create mode 100644 dist/assets/ui-library-DXFnX4mi.js diff --git a/dist/assets/index-BNWWHLDD.js b/dist/assets/index-BNWWHLDD.js deleted file mode 100644 index a43cd14..0000000 --- a/dist/assets/index-BNWWHLDD.js +++ /dev/null @@ -1 +0,0 @@ -var Zt=Object.defineProperty;var es=(n,e,t)=>e in n?Zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var b=(n,e,t)=>es(n,typeof e!="symbol"?e+"":e,t);import{u as O,i as ts,j as a,H as ss,F as ns,c as Z,a as is,b as as,d as rs,e as os,f as ls,g as cs,h as us,k as ds,z as v,l as Oe,m as ke,S as tt,n as ms,P as je,o as ie,p as vt,q as ps,r as hs,s as Ke,t as Se,v as T,w as ze,x as W,y as U,A as q,B as N,C as H,L as We,D as Ie,E as Fe,G as he,I as Ue,J as $e,K as fs,M as ue,N as gs,O as xs,Q as ys,R as bs,T as ks,U as vs,V as ws,W as ge,X as js,Y as Ss,Z as ee,_ as Ts,$ as wt,a0 as Ns,a1 as jt,a2 as _s,a3 as fe,a4 as qe,a5 as Es,a6 as St,a7 as Tt,a8 as zs,a9 as st,aa as Cs,ab as Nt,ac as Rs,ad as Ls,ae as Ps,af as Os,ag as Is,ah as Fs,ai as $s}from"./ui-library-DV79vey3.js";import{f as As,a as y,O as Ds,e as le,u as Ms,g as Je,L as nt,h as Bs,i as Gs}from"./react-vendor-CJoWVsUG.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 r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();var _e={},it;function Vs(){if(it)return _e;it=1;var n=As();return _e.createRoot=n.createRoot,_e.hydrateRoot=n.hydrateRoot,_e}var Hs=Vs();const j=n=>typeof n=="string",ye=()=>{let n,e;const t=new Promise((s,i)=>{n=s,e=i});return t.resolve=n,t.reject=e,t},at=n=>n==null?"":""+n,Ks=(n,e,t)=>{n.forEach(s=>{e[s]&&(t[s]=e[s])})},Ws=/###/g,rt=n=>n&&n.indexOf("###")>-1?n.replace(Ws,"."):n,ot=n=>!n||j(n),be=(n,e,t)=>{const s=j(e)?e.split("."):e;let i=0;for(;i{const{obj:s,k:i}=be(n,e,Object);if(s!==void 0||e.length===1){s[i]=t;return}let r=e[e.length-1],o=e.slice(0,e.length-1),c=be(n,o,Object);for(;c.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),c=be(n,o,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=t},Us=(n,e,t,s)=>{const{obj:i,k:r}=be(n,e,Object);i[r]=i[r]||[],i[r].push(t)},Ce=(n,e)=>{const{obj:t,k:s}=be(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},qs=(n,e,t)=>{const s=Ce(n,t);return s!==void 0?s:Ce(e,t)},_t=(n,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in n?j(n[s])||n[s]instanceof String||j(e[s])||e[s]instanceof String?t&&(n[s]=e[s]):_t(n[s],e[s],t):n[s]=e[s]);return n},de=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Js={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ys=n=>j(n)?n.replace(/[&<>"'\/]/g,e=>Js[e]):n;class Xs{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=[" ",",","?","!",";"],Zs=new Xs(20),en=(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=Zs.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!i.test(n);if(!r){const o=n.indexOf(t);o>0&&!i.test(n.substring(0,o))&&(r=!0)}return r},Ge=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 r=0;r-1&&ln==null?void 0:n.replace("_","-"),tn={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 Le{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||tn,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[c,l]=o;for(let u=0;u{let[c,l]=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,m;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,t],s&&(Array.isArray(s)?c.push(...s):j(s)&&r?c.push(...s.split(r)):c.push(s)));const l=Ce(this.data,c);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=c[0],t=c[1],s=c.slice(2).join(".")),l||!o||!j(s)?l:Ge((m=(u=this.data)==null?void 0:u[e])==null?void 0:m[t],s,r)}addResource(e,t,s,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let c=[e,t];s&&(c=c.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(c=e.split("."),i=t,t=c[1]),this.addNamespaces(t),lt(this.data,c,i),r.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 r in s)(j(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});i.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),i=s,s=t,t=c[1]),this.addNamespaces(t);let l=Ce(this.data,c)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?_t(l,s,r):l={...l,...s},lt(this.data,c,l),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 Et={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,s,i){return n.forEach(r=>{var o;e=((o=this.processors[r])==null?void 0:o.process(e,t,s,i))??e}),e}};const ut={},dt=n=>!j(n)&&typeof n!="boolean"&&typeof n!="number";class Pe extends Ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ks(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Q.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 r=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!en(e,s,i);if(o&&!c){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:j(r)?[r]:r};const u=e.split(s);(s!==i||s===i&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(i)}return{key:e,namespaces:j(r)?[r]:r}}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,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(e[e.length-1],t),l=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(m){const I=t.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${I}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${I}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,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,p=(h==null?void 0:h.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,k=t.count!==void 0&&!j(t.count),S=Pe.hasDefaultValue(t),E=k?this.pluralResolver.getSuffix(u,t.count,t):"",L=t.ordinal&&k?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",C=k&&!t.ordinal&&t.count===0,z=C&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${E}`]||t[`defaultValue${L}`]||t.defaultValue;let _=d;w&&!d&&S&&(_=z);const M=dt(_),te=Object.prototype.toString.apply(_);if(w&&_&&M&&g.indexOf(te)<0&&!(j(x)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,_,{...t,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=I,h.usedParams=this.getUsedParamsDetails(t),h):I}if(r){const I=Array.isArray(_),B=I?[]:{},Te=I?p:f;for(const J in _)if(Object.prototype.hasOwnProperty.call(_,J)){const Y=`${Te}${r}${J}`;S&&!d?B[J]=this.translate(Y,{...t,defaultValue:dt(z)?z[J]:void 0,joinArrays:!1,ns:c}):B[J]=this.translate(Y,{...t,joinArrays:!1,ns:c}),B[J]===Y&&(B[J]=_[J])}d=B}}else if(w&&j(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let I=!1,B=!1;!this.isValidLookup(d)&&S&&(I=!0,d=z),this.isValidLookup(d)||(B=!0,d=o);const J=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:d,Y=S&&z!==d&&this.options.updateMissing;if(B||I||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,l,o,Y?z:d),r){const V=this.resolve(o,{...t,keySeparator:!1});V&&V.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 G=[];const Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let V=0;V{var et;const Ze=S&&xe!==d?xe:J;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,oe,Ze,Y,t):(et=this.backendConnector)!=null&&et.saveMissing&&this.backendConnector.saveMissing(V,l,oe,Ze,Y,t),this.emit("missingKey",V,l,oe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?G.forEach(V=>{const oe=this.pluralResolver.getSuffixes(V,t);C&&t[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(xe=>{Qe([V],o+xe,t[`defaultValue${xe}`]||z)})}):Qe(G,o,z))}d=this.extendTranslation(d,e,t,h,s),B&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${o}`),(B||I)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,I?d:void 0))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,s,i,r){var u,m;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 h=j(e)&&(((m=s==null?void 0:s.interpolation)==null?void 0:m.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.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||i.usedLng,s),h){const p=e.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,i,r,o,c;return j(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),m=u.key;i=m;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,p=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 w,k;this.isValidLookup(s)||(c=x,!ut[`${g[0]}-${x}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(c))&&(ut[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" 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(S=>{var C;if(this.isValidLookup(s))return;o=S;const E=[m];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(E,m,S,x,t);else{let z;d&&(z=this.pluralResolver.getSuffix(S,t.count,t));const _=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(E.push(m+z),t.ordinal&&z.indexOf(M)===0&&E.push(m+z.replace(M,this.options.pluralSeparator)),f&&E.push(m+_)),p){const te=`${m}${this.options.contextSeparator}${t.context}`;E.push(te),d&&(E.push(te+z),t.ordinal&&z.indexOf(M)===0&&E.push(te+z.replace(M,this.options.pluralSeparator)),f&&E.push(te+_))}}let L;for(;L=E.pop();)this.isValidLookup(s)||(r=L,s=this.getResource(S,x,L,t))}))})}),{res:s,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var r;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(r=this.i18nFormat)!=null&&r.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&&!j(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 r of t)delete i[r]}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 mt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Q.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(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 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(r=>{if(r===i)return r;if(!(r.indexOf("-")<0&&i.indexOf("-")<0)&&(r.indexOf("-")>0&&i.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===i||r.indexOf(i)===0&&i.length>1))return r})}),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),i=[],r=o=>{o&&(this.isSupportedCode(o)?i.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"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):j(e)&&r(this.formatLanguageCode(e)),s.forEach(o=>{i.indexOf(o)<0&&r(this.formatLanguageCode(o))}),i}}const pt={zero:0,one:1,two:2,few:3,many:4,other:5},ht={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Q.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",r=JSON.stringify({cleanedCode:s,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];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!"),ht;if(!e.match(/-|_/))return ht;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[r]=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,r)=>pt[i]-pt[r]).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 ft=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,r=qs(n,e,t);return!r&&i&&j(t)&&(r=Ge(n,t,s),r===void 0&&(r=Ge(e,t,s))),r},Me=n=>n.replace(/\$/g,"$$$$");class nn{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.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:r,prefixEscaped:o,suffix:c,suffixEscaped:l,formatSeparator:u,unescapeSuffix:m,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:w,alwaysFormat:k}=e.interpolation;this.escape=t!==void 0?t:Ys,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?de(r):o||"{{",this.suffix=c?de(c):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=m?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?de(d):f||de("$t("),this.nestingSuffix=p?de(p):g||de(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=w||1e3,this.alwaysFormat=k!==void 0?k:!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 r,o,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const k=ft(t,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,s,{...i,...t,interpolationkey:p}):k}const g=p.split(this.formatSeparator),x=g.shift().trim(),w=g.join(this.formatSeparator).trim();return this.format(ft(t,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,s,{...i,...t,interpolationkey:x})};this.resetRegExp();const m=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((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:p=>Me(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Me(this.escape(p)):Me(p)}].forEach(p=>{for(c=0;r=p.regex.exec(e);){const g=r[1].trim();if(o=u(g),o===void 0)if(typeof m=="function"){const w=m(e,r,i);o=j(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))o="";else if(h){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!j(o)&&!this.useRawValueToEscape&&(o=at(o));const x=p.safeValue(o);if(e=e.replace(r[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,o;const c=(l,u)=>{const m=this.nestingOptionsSeparator;if(l.indexOf(m)<0)return l;const h=l.split(new RegExp(`${m}[ ]*{`));let d=`{${h[1]}`;l=h[0],d=this.interpolate(d,o);const f=d.match(/'/g),p=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!p||p.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 ${l}`,g),`${l}${m}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];o={...s},o=o.replace&&!j(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 m=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=m.shift(),l=m,u=!0}if(r=t(c.call(this,i[1].trim(),o),o),r&&i[0]===e&&!j(r))return r;j(r)||(r=at(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),r=""),u&&(r=l.reduce((m,h)=>this.format(m,h,s.lng,{...s,interpolationkey:i[1].trim()}),r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}const an=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[c,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();t[m]||(t[m]=u),u==="false"&&(t[m]=!1),u==="true"&&(t[m]=!0),isNaN(u)||(t[m]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},me=n=>{const e={};return(t,s,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const o=s+JSON.stringify(r);let c=e[o];return c||(c=n(Re(s),i),e[o]=c),c(t)}};class rn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create("formatter"),this.options=e,this.formats={number:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return r=>i.format(r)}),currency:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return r=>i.format(r)}),datetime:me((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return r=>i.format(r)}),relativetime:me((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return r=>i.format(r,s.range||"day")}),list:me((t,s)=>{const i=new Intl.ListFormat(t,{...s});return r=>i.format(r)})},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()]=me(t)}format(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(c=>c.indexOf(")")>-1)){const c=r.findIndex(l=>l.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{var h;const{formatName:u,formatOptions:m}=an(l);if(this.formats[u]){let d=c;try{const f=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},p=f.locale||f.lng||i.locale||i.lng||s;d=this.formats[u](c,p,{...m,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return c},e)}}const on=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class ln extends Ae{constructor(e,t,s){var r,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=Q.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=(r=this.backend)==null?void 0:r.init)==null||o.call(r,s,i.backend,i)}queueLoad(e,t,s,i){const r={},o={},c={},l={};return e.forEach(u=>{let m=!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,m=!1,o[d]===void 0&&(o[d]=!0),r[d]===void 0&&(r[d]=!0),l[h]===void 0&&(l[h]=!0)))}),m||(c[u]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),!t&&s&&this.store.addResourceBundle(r,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const c={};this.queue.forEach(l=>{Us(l.loaded,[r],o),on(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{c[u]||(c[u]={});const m=l.loaded[u];m.length&&m.forEach(h=>{c[u][h]===void 0&&(c[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=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:r,callback:o});return}this.readingCalls++;const c=(u,m)=>{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&&m&&i{this.read.call(this,e,t,s,i+1,r*2,o)},r);return}o(u,m)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(m=>c(null,m)).catch(c):c(null,u)}catch(u){c(u)}return}return l(e,t,c)}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();j(e)&&(e=this.languageUtils.toResolveHierarchy(e)),j(t)&&(t=[t]);const r=this.queueLoad(e,t,s,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.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],r=s[1];this.read(i,r,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,o),!o&&c&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,c),this.loaded(e,o,c)})}saveMissing(e,t,s,i,r){var l,u,m,h,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((h=(m=this.services)==null?void 0:m.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:r},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(e,t,s,i,f):g=p(e,t,s,i),g&&typeof g.then=="function"?g.then(x=>c(null,x)).catch(c):c(null,g)}catch(g){c(g)}else p(e,t,s,i,c,f)}!e||!e[0]||this.store.addResource(e[0],t,s,i)}}}const gt=()=>({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]),j(n[1])&&(e.defaultValue=n[1]),j(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}}),xt=n=>{var e,t;return j(n.ns)&&(n.ns=[n.ns]),j(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),j(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},Ee=()=>{},cn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ve extends Ae{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xt(e),this.services={},this.logger=Q,this.modules={external:[]},cn(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 i=gt();this.options={...i,...this.options,...xt(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 r=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Q.init(r(this.modules.logger),this.options):Q.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=rn;const h=new mt(this.options);this.store=new ct(this.options.resources,this.options);const d=this.services;d.logger=Q,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new sn(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=r(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new nn(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ln(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=function(){return e.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return e.store[m](...arguments),e}});const l=ye(),u=()=>{const m=(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),l.resolve(d),s(h,d)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(e){var r,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const i=j(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 c=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&c.indexOf(h)<0&&c.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>l(m)),(o=(r=this.options.preload)==null?void 0:r.forEach)==null||o.call(r,u=>l(u)),this.services.backendConnector.load(c,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const i=ye();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=Ee),this.services.backendConnector.reload(e,t,r=>{i.resolve(),s(r)}),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"&&Et.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=ye();this.emit("languageChanging",e);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(r(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(l,function(){return s.t(...arguments)})},c=l=>{var m,h;!e&&!l&&this.services.languageDetector&&(l=[]);const u=j(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),(h=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||h.call(m,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),i}getFixedT(e,t,s){var i=this;const r=function(o,c){let l;if(typeof c!="object"){for(var u=arguments.length,m=new Array(u>2?u-2:0),h=2;h`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${o}`:o,i.t(f,l)};return j(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=s,r}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,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(c,l)=>{const u=this.services.backendConnector.state[`${c}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const c=t.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(r,e)))}loadNamespaces(e,t){const s=ye();return this.options.ns?(j(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=ye();j(e)&&(e=[e]);const i=this.options.preload||[],r=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=i.concat(r),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var i,r;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=((r=this.services)==null?void 0:r.languageUtils)||new mt(gt());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 ve(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new ve(i);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const c=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},Object.keys(l[u]).reduce((m,h)=>(m[h]={...l[u][h]},m),{})),{});r.store=new ct(c,i),r.services.resourceStore=r.store}return r.translator=new Pe(r.services,i),r.translator.on("*",function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),m=1;m{const n=O(e=>e.lang);return y.useEffect(()=>{F.changeLanguage(n)},[n]),null};var fa="1.3.17";function zt(n,e,t){return Math.max(n,Math.min(e,t))}function ga(n,e,t){return(1-t)*n+t*e}function xa(n,e,t,s){return ga(n,e,1-Math.exp(-t*s))}function ya(n,e){return(n%e+e)%e}var ba=class{constructor(){b(this,"isRunning",!1);b(this,"value",0);b(this,"from",0);b(this,"to",0);b(this,"currentTime",0);b(this,"lerp");b(this,"duration");b(this,"easing");b(this,"onUpdate")}advance(n){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=n;const s=zt(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=xa(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:r,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,r==null||r(),this.onUpdate=o}};function ka(n,e){let t;return function(...s){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,s)},e)}}var va=class{constructor(n,e,{autoResize:t=!0,debounce:s=250}={}){b(this,"width",0);b(this,"height",0);b(this,"scrollHeight",0);b(this,"scrollWidth",0);b(this,"debouncedResize");b(this,"wrapperResizeObserver");b(this,"contentResizeObserver");b(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});b(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});b(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=ka(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}}},Ct=class{constructor(){b(this,"events",{})}emit(n,...e){var s;let t=this.events[n]||[];for(let i=0,r=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={}}},yt=100/6,ae={passive:!1},wa=class{constructor(n,e={wheelMultiplier:1,touchMultiplier:1}){b(this,"touchStart",{x:0,y:0});b(this,"lastDelta",{x:0,y:0});b(this,"window",{width:0,height:0});b(this,"emitter",new Ct);b(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})});b(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})});b(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});b(this,"onWheel",n=>{let{deltaX:e,deltaY:t,deltaMode:s}=n;const i=s===1?yt:s===2?this.window.width:1,r=s===1?yt:s===2?this.window.height:1;e*=i,t*=r,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:n})});b(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,ae),this.element.addEventListener("touchstart",this.onTouchStart,ae),this.element.addEventListener("touchmove",this.onTouchMove,ae),this.element.addEventListener("touchend",this.onTouchEnd,ae)}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,ae),this.element.removeEventListener("touchstart",this.onTouchStart,ae),this.element.removeEventListener("touchmove",this.onTouchMove,ae),this.element.removeEventListener("touchend",this.onTouchEnd,ae)}},bt=n=>Math.min(1,1.001-Math.pow(2,-10*n)),ja=class{constructor({wrapper:n=window,content:e=document.documentElement,eventsTarget:t=n,smoothWheel:s=!0,syncTouch:i=!1,syncTouchLerp:r=.075,touchInertiaExponent:o=1.7,duration:c,easing:l,lerp:u=.1,infinite:m=!1,orientation:h="vertical",gestureOrientation:d=h==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:p=1,autoResize:g=!0,prevent:x,virtualScroll:w,overscroll:k=!0,autoRaf:S=!1,anchors:E=!1,autoToggle:L=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:z=!1,naiveDimensions:_=z,stopInertiaOnNavigate:M=!1}={}){b(this,"_isScrolling",!1);b(this,"_isStopped",!1);b(this,"_isLocked",!1);b(this,"_preventNextNativeScrollEvent",!1);b(this,"_resetVelocityTimeout",null);b(this,"_rafId",null);b(this,"isTouching");b(this,"time",0);b(this,"userData",{});b(this,"lastVelocity",0);b(this,"velocity",0);b(this,"direction",0);b(this,"options");b(this,"targetScroll");b(this,"animatedScroll");b(this,"animate",new ba);b(this,"emitter",new Ct);b(this,"dimensions");b(this,"virtualScroll");b(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});b(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});b(this,"onTransitionEnd",n=>{n.propertyName.includes("overflow")&&this.checkOverflow()});b(this,"onClick",n=>{const t=n.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.getAttribute("href"));if(this.options.anchors){const s=t.find(i=>{var r;return(r=i.getAttribute("href"))==null?void 0:r.includes("#")});if(s){const i=s.getAttribute("href");if(i){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,o=`#${i.split("#")[1]}`;this.scrollTo(o,r)}}}this.options.stopInertiaOnNavigate&&t.find(i=>i.host===window.location.host)&&this.reset()});b(this,"onPointerDown",n=>{n.button===1&&this.reset()});b(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"),r=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 l=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||l)return;let u=s.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const m=this.options.prevent;if(u.find(x=>{var w,k,S;return x instanceof HTMLElement&&(typeof m=="function"&&(m==null?void 0:m(x))||((w=x.hasAttribute)==null?void 0:w.call(x,"data-lenis-prevent"))||i&&((k=x.hasAttribute)==null?void 0:k.call(x,"data-lenis-prevent-touch"))||r&&((S=x.hasAttribute)==null?void 0:S.call(x,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:e,deltaY:t}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&r)){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.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&t<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const f=i&&this.options.syncTouch,g=i&&s.type==="touchend";g&&(d=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),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}})});b(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))}});b(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=fa,(!n||n===document.documentElement)&&(n=window),typeof c=="number"&&typeof l!="function"?l=bt:typeof l=="function"&&typeof c!="number"&&(c=1),this.options={wrapper:n,content:e,eventsTarget:t,smoothWheel:s,syncTouch:i,syncTouchLerp:r,touchInertiaExponent:o,duration:c,easing:l,lerp:u,infinite:m,gestureOrientation:d,orientation:h,touchMultiplier:f,wheelMultiplier:p,autoResize:g,prevent:x,virtualScroll:w,overscroll:k,autoRaf:S,anchors:E,autoToggle:L,allowNestedScroll:C,naiveDimensions:_,stopInertiaOnNavigate:M},this.dimensions=new va(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.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new wa(t,{touchMultiplier:f,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),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.stopInertiaOnNavigate)&&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)}get overflow(){const n=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[n]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}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(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:e=0,immediate:t=!1,lock:s=!1,programmatic:i=!0,lerp:r=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:c=i?this.options.easing:void 0,onStart:l,onComplete:u,force:m=!1,userData:h}={}){if(!((this.isStopped||this.isLocked)&&!m)){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),d||(n==="#top"?n=0:console.warn("Lenis: Target not found",n))):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(d=n),d){if(this.options.wrapper!==window){const p=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?p.left:p.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(i){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=zt(0,n,this.limit);if(n===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=h??{},t){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=n),typeof o=="number"&&typeof c!="function"?c=bt:typeof c=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,n,{duration:o,easing:c,lerp:r,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),i&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),u==null||u(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 r,o,c,l,u,m,h,d;const f=this.options.gestureOrientation;if(s-(i.time??0)>2e3){i.time=Date.now();const L=window.getComputedStyle(n);i.computedStyle=L;const C=L.overflowX,z=L.overflowY;if(r=["auto","overlay","scroll"].includes(C),o=["auto","overlay","scroll"].includes(z),i.hasOverflowX=r,i.hasOverflowY=o,!r&&!o||f==="vertical"&&!o||f==="horizontal"&&!r)return!1;u=n.scrollWidth,m=n.scrollHeight,h=n.clientWidth,d=n.clientHeight,c=u>h,l=m>d,i.isScrollableX=c,i.isScrollableY=l,i.scrollWidth=u,i.scrollHeight=m,i.clientWidth=h,i.clientHeight=d}else c=i.isScrollableX,l=i.isScrollableY,r=i.hasOverflowX,o=i.hasOverflowY,u=i.scrollWidth,m=i.scrollHeight,h=i.clientWidth,d=i.clientHeight;if(!r&&!o||!c&&!l||f==="vertical"&&(!o||!l)||f==="horizontal"&&(!r||!c))return!1;let p;if(f==="horizontal")p="x";else if(f==="vertical")p="y";else{const L=e!==0,C=t!==0;L&&r&&c&&(p="x"),C&&o&&l&&(p="y")}if(!p)return!1;let g,x,w,k,S;if(p==="x")g=n.scrollLeft,x=u-h,w=e,k=r,S=c;else if(p==="y")g=n.scrollTop,x=m-d,w=t,k=o,S=l;else return!1;return(w>0?g0)&&k&&S}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.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?ya(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()}},Sa=class{constructor(n){b(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}};function Ta(n){const[e,t]=y.useState(n.get());return y.useEffect(()=>n.subscribe(s=>t(s)),[n]),e}var Rt=y.createContext(null),Ve=new Sa(null),Na=y.forwardRef(({children:n,root:e=!1,options:t={},autoRaf:s=!0,...i},r)=>{const o=y.useRef(null),c=y.useRef(null),[l,u]=y.useState(void 0);y.useImperativeHandle(r,()=>({wrapper:o.current,content:c.current,lenis:l}),[l]),y.useEffect(()=>{const f=new ja({...t,...o.current&&c.current&&{wrapper:o.current,content:c.current},autoRaf:(t==null?void 0:t.autoRaf)??s});return u(f),()=>{f.destroy(),u(void 0)}},[e,JSON.stringify({...t,wrapper:null,content:null})]);const m=y.useRef([]),h=y.useCallback((f,p)=>{m.current.push({callback:f,priority:p}),m.current.sort((g,x)=>g.priority-x.priority)},[]),d=y.useCallback(f=>{m.current=m.current.filter(p=>p.callback!==f)},[]);return y.useEffect(()=>{if(e&&l)return Ve.set({lenis:l,addCallback:h,removeCallback:d}),()=>Ve.set(null)},[e,l,h,d]),y.useEffect(()=>{if(!l)return;const f=p=>{var g;for(let x=0;x{l.off("scroll",f)}},[l]),n?a.jsx(Rt.Provider,{value:{lenis:l,addCallback:h,removeCallback:d},children:e&&e!=="asChild"?n:a.jsx("div",{ref:o,...i,children:a.jsx("div",{ref:c,children:n})})}):null}),_a={};function Ea(n,e=[],t=0){const s=y.useContext(Rt),i=Ta(Ve),r=s??i??_a,{lenis:o,addCallback:c,removeCallback:l}=r;return y.useEffect(()=>{},[o,c,l,t,...e]),o}function za(){return a.jsxs(Na,{root:!0,options:{lerp:.1},children:[a.jsx(ss,{}),a.jsxs("main",{className:"flex flex-col min-h-screen",children:[a.jsx(ha,{}),a.jsx("div",{className:"flex-auto",children:a.jsx(Ds,{})})]}),a.jsx(ns,{})]})}const A=({className:n})=>a.jsx("div",{className:Z("container py-32",n),children:a.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),$=n=>{const e=Ea();y.useEffect(()=>{e&&e.scrollTo(0,{lerp:.3,duration:.3})},[e,n])};function Ca(){return $(),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(is,{}),a.jsx(as,{}),a.jsx(rs,{}),a.jsx(os,{}),a.jsx(ls,{}),a.jsx(cs,{}),a.jsx(us,{}),a.jsx(ds,{})]})}const D=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Ra=n=>v.object({type:v.string(),company_name:v.string().min(3,{message:D("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),representative_name:v.string().min(3,{message:D("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:D("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.string().min(1,{message:D("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n)}),country:v.string().min(3,{message:D("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email_address:v.string().email({message:D("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone_number:v.string().min(8,{message:D("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:D("Укажите цель встречи","Specify the meeting objective","Duşuşygyň maksadyny görkeziň",n)}),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(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),proposal_presentation:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),relevant_certification:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional()}),La={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 Pa(n){const e=n+"CollectionProvider",[t,s]=Oe(e),[i,r]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:p,children:g}=f,x=le.useRef(null),w=le.useRef(new Map).current;return a.jsx(i,{scope:p,itemMap:w,collectionRef:x,children:g})};o.displayName=e;const c=n+"CollectionSlot",l=le.forwardRef((f,p)=>{const{scope:g,children:x}=f,w=r(c,g),k=ke(p,w.collectionRef);return a.jsx(tt,{ref:k,children:x})});l.displayName=c;const u=n+"CollectionItemSlot",m="data-radix-collection-item",h=le.forwardRef((f,p)=>{const{scope:g,children:x,...w}=f,k=le.useRef(null),S=ke(p,k),E=r(u,g);return le.useEffect(()=>(E.itemMap.set(k,{ref:k,...w}),()=>void E.itemMap.delete(k))),a.jsx(tt,{[m]:"",ref:S,children:x})});h.displayName=u;function d(f){const p=r(n+"CollectionConsumer",f);return le.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(p.itemMap.values()).sort((E,L)=>w.indexOf(E.ref.current)-w.indexOf(L.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:l,ItemSlot:h},d,s]}function Oa(n){const e=y.useRef(n);return y.useEffect(()=>{e.current=n}),y.useMemo(()=>(...t)=>{var s;return(s=e.current)==null?void 0:s.call(e,...t)},[])}var Ia=y.createContext(void 0);function Fa(n){const e=y.useContext(Ia);return n||e||"ltr"}var Be="rovingFocusGroup.onEntryFocus",$a={bubbles:!1,cancelable:!0},De="RovingFocusGroup",[He,Lt,Aa]=Pa(De),[Da,Pt]=Oe(De,[Aa]),[Ma,Ba]=Da(De),Ot=y.forwardRef((n,e)=>a.jsx(He.Provider,{scope:n.__scopeRovingFocusGroup,children:a.jsx(He.Slot,{scope:n.__scopeRovingFocusGroup,children:a.jsx(Ga,{...n,ref:e})})}));Ot.displayName=De;var Ga=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:i=!1,dir:r,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=n,d=y.useRef(null),f=ke(e,d),p=Fa(r),[g=null,x]=vt({prop:o,defaultProp:c,onChange:l}),[w,k]=y.useState(!1),S=Oa(u),E=Lt(t),L=y.useRef(!1),[C,z]=y.useState(0);return y.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(Be,S),()=>_.removeEventListener(Be,S)},[S]),a.jsx(Ma,{scope:t,orientation:s,dir:p,loop:i,currentTabStopId:g,onItemFocus:y.useCallback(_=>x(_),[x]),onItemShiftTab:y.useCallback(()=>k(!0),[]),onFocusableItemAdd:y.useCallback(()=>z(_=>_+1),[]),onFocusableItemRemove:y.useCallback(()=>z(_=>_-1),[]),children:a.jsx(je.div,{tabIndex:w||C===0?-1:0,"data-orientation":s,...h,ref:f,style:{outline:"none",...n.style},onMouseDown:ie(n.onMouseDown,()=>{L.current=!0}),onFocus:ie(n.onFocus,_=>{const M=!L.current;if(_.target===_.currentTarget&&M&&!w){const te=new CustomEvent(Be,$a);if(_.currentTarget.dispatchEvent(te),!te.defaultPrevented){const I=E().filter(G=>G.focusable),B=I.find(G=>G.active),Te=I.find(G=>G.id===g),Y=[B,Te,...I].filter(Boolean).map(G=>G.ref.current);$t(Y,m)}}L.current=!1}),onBlur:ie(n.onBlur,()=>k(!1))})})}),It="RovingFocusGroupItem",Ft=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:i=!1,tabStopId:r,...o}=n,c=ms(),l=r||c,u=Ba(It,t),m=u.currentTabStopId===l,h=Lt(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return y.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),a.jsx(He.ItemSlot,{scope:t,id:l,focusable:s,active:i,children:a.jsx(je.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ie(n.onMouseDown,p=>{s?u.onItemFocus(l):p.preventDefault()}),onFocus:ie(n.onFocus,()=>u.onItemFocus(l)),onKeyDown:ie(n.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const g=Ka(p,u.orientation,u.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let w=h().filter(k=>k.focusable).map(k=>k.ref.current);if(g==="last")w.reverse();else if(g==="prev"||g==="next"){g==="prev"&&w.reverse();const k=w.indexOf(p.currentTarget);w=u.loop?Wa(w,k+1):w.slice(k+1)}setTimeout(()=>$t(w))}})})})});Ft.displayName=It;var Va={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ha(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ka(n,e,t){const s=Ha(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Va[s]}function $t(n,e=!1){const t=document.activeElement;for(const s of n)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function Wa(n,e){return n.map((t,s)=>n[(e+s)%n.length])}var Ua=Ot,qa=Ft,Ja=y.createContext(void 0);function Ya(n){const e=y.useContext(Ja);return n||e||"ltr"}function Xa(n){const e=y.useRef({value:n,previous:n});return y.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var Ye="Radio",[Qa,At]=Oe(Ye),[Za,er]=Qa(Ye),Dt=y.forwardRef((n,e)=>{const{__scopeRadio:t,name:s,checked:i=!1,required:r,disabled:o,value:c="on",onCheck:l,form:u,...m}=n,[h,d]=y.useState(null),f=ke(e,x=>d(x)),p=y.useRef(!1),g=h?u||!!h.closest("form"):!0;return a.jsxs(Za,{scope:t,checked:i,disabled:o,children:[a.jsx(je.button,{type:"button",role:"radio","aria-checked":i,"data-state":Gt(i),"data-disabled":o?"":void 0,disabled:o,value:c,...m,ref:f,onClick:ie(n.onClick,x=>{i||l==null||l(),g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})}),g&&a.jsx(tr,{control:h,bubbles:!p.current,name:s,value:c,checked:i,required:r,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Dt.displayName=Ye;var Mt="RadioIndicator",Bt=y.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:s,...i}=n,r=er(Mt,t);return a.jsx(hs,{present:s||r.checked,children:a.jsx(je.span,{"data-state":Gt(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:e})})});Bt.displayName=Mt;var tr=n=>{const{control:e,checked:t,bubbles:s=!0,...i}=n,r=y.useRef(null),o=Xa(t),c=ps(e);return y.useEffect(()=>{const l=r.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&h){const d=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(d)}},[o,t,s]),a.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:r,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Gt(n){return n?"checked":"unchecked"}var sr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xe="RadioGroup",[nr,Vr]=Oe(Xe,[Pt,At]),Vt=Pt(),Ht=At(),[ir,ar]=nr(Xe),Kt=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:i,value:r,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:m=!0,onValueChange:h,...d}=n,f=Vt(t),p=Ya(u),[g,x]=vt({prop:r,defaultProp:i,onChange:h});return a.jsx(ir,{scope:t,name:s,required:o,disabled:c,value:g,onValueChange:x,children:a.jsx(Ua,{asChild:!0,...f,orientation:l,dir:p,loop:m,children:a.jsx(je.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":c?"":void 0,dir:p,...d,ref:e})})})});Kt.displayName=Xe;var Wt="RadioGroupItem",Ut=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:s,...i}=n,r=ar(Wt,t),o=r.disabled||s,c=Vt(t),l=Ht(t),u=y.useRef(null),m=ke(e,u),h=r.value===i.value,d=y.useRef(!1);return y.useEffect(()=>{const f=g=>{sr.includes(g.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",p)}},[]),a.jsx(qa,{asChild:!0,...c,focusable:!o,active:h,children:a.jsx(Dt,{disabled:o,required:r.required,checked:h,...l,...i,name:r.name,ref:m,onCheck:()=>r.onValueChange(i.value),onKeyDown:ie(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ie(i.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Ut.displayName=Wt;var rr="RadioGroupIndicator",or=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...s}=n,i=Ht(t);return a.jsx(Bt,{...i,...s,ref:e})});or.displayName=rr;var qt=Kt,Jt=Ut;const we=y.forwardRef(({className:n,...e},t)=>a.jsx(qt,{className:Z("grid gap-2",n),...e,ref:t}));we.displayName=qt.displayName;const ne=y.forwardRef(({className:n,...e},t)=>a.jsx(Jt,{ref:t,className:Z(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}));ne.displayName=Jt.displayName;const se=[{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"}]},{h2:"Eksponent barada maglumat:",data:[{label:"Kompaniýanyň/guramanyň ady"},{label:"Wekiliniň ady"},{label:"Wezipesi"},{label:"Gatnaşyjylaryň sany"},{label:"Ýurt"},{label:"Email salgysy"},{label:"Telefon belgisi"},{label:"Web-saýt"}]}],re=[{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)"}]},{h2:"Duşuşygyň maksady:",secondH2:"Kompaniýa/gurama barada maglumat:",data:[{label:"Duşuşygyň esasy maksady"},{label:"Teklibiňiziň/taslamaňyzyň/islegiňiziň gysgaça beýany"},{label:"Degişli döwlet edarasy/bölümi"},{label:"Pudak senagaty"},{label:"Esasy hyzmatlar/önümler"},{label:"Hökümetler bilen ozalky iş tejribesi (eger bar bolsa)"}]}],X=[{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"},{h2:"Duşuşygyň logistikasy:",secondH2:"Goşmaçalar",subtitle:"(Zerur bolsa aşakdaky resminamalary goşuň)",data:[{label:"Duşuşyk üçin islenýän sene we wagt"},{label:"Duşuşygyň islenýän görnüşi (ýüzbe-ýüz, wirtual (zoom/teams/başga), gibrid)"},{label:"Dil saýlamasy (iňlis, türkmen, rus, başga)"},{label:"Goşmaça tehniki ýa-da logistik talaplar (meselem, AW enjamlar, terjimeçiler we ş.m.)"},{label:"Kompaniýanyň/guramanyň profili"},{label:"Teklip/prezentasiýa"},{label:"Degişli şahadatnama/ygtyýarnama"}],button:"Ugratmak"}],lr=({handleNext:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[a.jsx("h2",{className:"h2 mb-8",children:se[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(ze,{defaultValue:1,control:e,name:"type",render:({field:i})=>a.jsxs(W,{className:"space-y-3",children:[a.jsx(U,{className:"text-xl",children:{ru:"Тип:",en:"Type:",tm:"Görnüşi:"}[s]}),a.jsx(q,{children:a.jsxs(we,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2B",checked:i.value==="B2B"})}),a.jsx(U,{className:"text-base",children:"B2B"})]}),a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2G",checked:i.value==="B2G"})}),a.jsx(U,{className:"text-base",children:"B2G"})]})]})})]})}),a.jsx(N,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:se[T(s)].data[0].label}),a.jsx(N,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:se[T(s)].data[1].label}),a.jsx(N,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:se[T(s)].data[2].label}),a.jsx(N,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:se[T(s)].data[3].label}),a.jsx(N,{control:e,name:"country",error:t.errors.country,placeholder:"",label:se[T(s)].data[4].label}),a.jsx(N,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:se[T(s)].data[5].label}),a.jsx(N,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:se[T(s)].data[6].label}),a.jsx(N,{control:e,name:"website",placeholder:"",label:se[T(s)].data[7].label})]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:{ru:"Далее",en:"Next",tm:"Indiki"}[s]})]})},cr=({handleNext:n,handlePrev:e})=>{$();const t=O(r=>r.lang),{control:s,formState:i}=Ke();return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[a.jsx("h2",{className:"h2 mb-8",children:re[T(t)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{control:s,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:re[T(t)].data[0].label}),a.jsx(N,{control:s,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:re[T(t)].data[1].label}),a.jsx(N,{control:s,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:re[T(t)].data[2].label}),a.jsx("h2",{className:"h2 mt-4",children:re[T(t)].secondH2}),a.jsx(N,{control:s,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:re[T(t)].data[3].label}),a.jsx(N,{control:s,name:"key_services",error:i.errors.key_services,placeholder:"",label:re[T(t)].data[4].label}),a.jsx(N,{control:s,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:re[T(t)].data[5].label})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[t]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:{ru:"Далее",en:"Next",tm:"Indiki"}[t]})]})]})},ur=({handlePrev:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[a.jsx("h2",{className:"h2 mb-8",children:X[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-6",children:[a.jsx(N,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:X[T(s)].data[0].label}),a.jsx(N,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:X[T(s)].data[1].label}),a.jsx(N,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:X[T(s)].data[2].label}),a.jsx(N,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:X[T(s)].data[3].label})]}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"h2 mt-10",children:X[T(s)].secondH2}),a.jsx("h5",{className:"text-on_surface_v",children:X[T(s)].subtitle})]}),a.jsx(N,{control:e,name:"company_profile",label:X[T(s)].data[4].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"proposal_presentation",label:X[T(s)].data[5].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"relevant_certification",label:X[T(s)].data[6].label,type:"file",textDark:!0})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[s]}),a.jsx(H,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?a.jsx(We,{className:"animate-spin"}):X[T(s)].button})]})]})},dr=({stage:n,setStage:e,success:t,setSuccess:s})=>{const i=O(h=>h.lang),r=y.useMemo(()=>Ra(i),[i]),o=Ie({resolver:$e(r),defaultValues:La,mode:"onChange"}),c=h=>{switch(h){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[]}},l=async()=>{const h=c(n);await o.trigger(h)&&e(f=>f+1)},u=()=>e(h=>h-1),m=async h=>{try{const d=new FormData;Object.entries(h).forEach(([p,g])=>{(g instanceof File||g!==void 0)&&d.append(p,g)}),(await fs.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",d,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(d){console.error("Ошибка при отправке B2B формы:",d)}};return a.jsx(Fe,{...o,children:a.jsx("form",{onSubmit:o.handleSubmit(m),children:a.jsxs("div",{className:"relative",children:[a.jsx(he,{children:n===1&&a.jsx(lr,{handleNext:l})}),a.jsx(he,{children:n===2&&a.jsx(cr,{handleNext:l,handlePrev:u})}),a.jsx(he,{children:n===3&&t===!1&&a.jsx(ur,{handlePrev:u})}),t&&a.jsx(Ue,{})]})})})};function mr(){$();const n=O(r=>r.lang),[e,t]=y.useState(1),[s,i]=y.useState(!1);return a.jsxs("div",{className:"pb-[120px]",children:[a.jsx(ue,{title:{ru:"B2B | B2G встречи",en:"B2B | B2G meetings",tm:"B2B | B2G duşuşyklar"}[n]}),!s&&e!==0&&a.jsx(gs,{stage:e}),a.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:a.jsx(dr,{success:s,setSuccess:i,stage:e,setStage:t})})]})}function pr(){$();const n=O(e=>e.lang);return a.jsxs("div",{className:Z(""),children:[a.jsx(ue,{title:{ru:"О выставке",en:"About exhibition",tm:"Sergi hakynda"}[n]}),a.jsx(xs,{}),a.jsx(ys,{}),a.jsx(bs,{}),a.jsx(ks,{}),a.jsx(vs,{})]})}const pe=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,hr=n=>v.object({company_name:v.string().min(3,{message:pe("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:pe("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:pe("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),country:v.string().min(3,{message:pe("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:pe("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:pe("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),fr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},R=[{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"},{cover:"Stend bronlamak",h2:"Wariantlaryň birini saýlaň:",radio:"Enjamlaşdyrylmadyk meýdan",radio_2:"Enjamlaşdyrylan meýdan",label_1:"Kompaniýanyň/guramanyň ady",label_2:"Wekiliniň ady",label_3:"Wezipesi",number_of_participants:"Gatnaşyjylaryň sany",label_4:"Ýurt",label_5:"Email salgysy",label_6:"Telefon belgisi",label_7:"Web-saýt",visa:"Wiza goldawy:",visa_radio:"Hawa",visa_radio_2:"Ýok",button:"Ugratmak"}];function gr(){$();const n=O(c=>c.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>hr(n),[n]),i=Ie({resolver:$e(s),defaultValues:fr}),r=async c=>{try{await ws(c)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:o}=i.formState;return a.jsxs("div",{children:[a.jsx(ue,{title:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[n]}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.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:i.handleSubmit(r),children:[a.jsx(N,{label:R[T(n)].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[T(n)].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[T(n)].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[T(n)].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[T(n)].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[T(n)].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[T(n)].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:c})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[T(n)].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:c.onChange,defaultValue:c.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:c.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:c.value==="no"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[T(n)].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const xr=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")}),yr={name:"",email:"",phone:"",company:"",msg:""},br=({className:n})=>{const{t:e}=ge("contacts"),[t,s]=y.useState(!1),i=Ie({resolver:$e(xr),defaultValues:yr});async function r(c){try{const l=await Ss(c);s(l)}catch(l){console.error("POST contact",l)}}const{errors:o}=i.formState;return a.jsx("div",{className:Z("bg-primary rounded-[8px] py-8 px-6 ",n),children:a.jsx(Fe,{...i,children:a.jsxs("form",{onSubmit:i.handleSubmit(r),children:[a.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{onPrimary:!0,name:"name",control:i.control,label:e("name"),error:o.name}),a.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[a.jsx(N,{onPrimary:!0,name:"email",control:i.control,label:"Email",error:o.email}),a.jsx(N,{onPrimary:!0,name:"phone",control:i.control,label:e("phone"),error:o.phone})]}),a.jsx(N,{onPrimary:!0,name:"company",control:i.control,label:e("company"),error:o.name}),a.jsx(N,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:i.control,error:o.msg}),a.jsx(H,{disabled:i.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):i.formState.isSubmitting?a.jsx(js,{className:"animate-spin text-white"}):e("button")})]})]})})})};function kr(){$();const{t:n}=ge("contacts");return a.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[a.jsx(ee,{children:a.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[a.jsx(br,{}),a.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[a.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:n("title_2")}),a.jsxs("div",{className:"flex flex-col gap-20",children:[a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/map.svg",alt:"address"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("address")}),a.jsx("address",{className:"text-base normal not-italic",children:n("venue")})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("phone")}),a.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/email.svg",alt:"email"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),a.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),a.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:a.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 vr=[{id:0,title:"Фото",titleEn:"Photo",titleTm:"Surat"},{id:1,title:"Видео",titleEn:"Video",titleTm:"Wideo"}],wr=({className:n})=>{var w,k,S,E,L;$();const[e,t]=y.useState(0),{data:s,isPending:i,status:r}=Ts(1),{data:o}=wt(1),[c,l]=y.useState(!1),[u,m]=y.useState({id:0,type:"photo"}),h=O(C=>C.lang),d=({id:C,type:z})=>{l(!0),m({id:C,type:z})},{t:f}=ge("main"),[p,g]=y.useState(!1),x=C=>C===0&&i?a.jsx(fe,{}):a.jsx(fe,{});return console.log(r),a.jsxs(a.Fragment,{children:[a.jsx(he,{children:c&&a.jsx(Ns,{activeItem:u,setActiveItem:m,setIsOpen:l})}),a.jsxs("section",{className:Z("md:mb-[120px] mb-20",n),children:[a.jsx(ue,{title:{ru:"Моменты",en:"Moments",tm:"Pursatlar"}[h]}),a.jsx(ee,{className:"page-bottom md:pt-10 pt-6",children:a.jsxs("div",{className:"flex justify-center flex-col",children:[a.jsx(jt,{state:e,setState:t,data:vr,className:"mb-6"}),e===0&&i?x(e):a.jsxs(a.Fragment,{children:[a.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"TurkmenTextile Expo-2025"}),a.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?(k=(w=s==null?void 0:s.photos)==null?void 0:w.slice(0,p?1e3:16))==null?void 0:k.map((C,z)=>{var _,M;return a.jsx("div",{onClick:()=>d({id:z,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:a.jsx("img",{src:((_=C==null?void 0:C.photo)==null?void 0:_.path)??"",alt:((M=C==null?void 0:C.photo)==null?void 0:M.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},z)}):(S=o==null?void 0:o.videos)==null?void 0:S.map((C,z)=>{var _;return a.jsxs("div",{onClick:()=>d({id:z,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[a.jsx(_s,{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 "}),a.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),a.jsx("img",{src:((_=C==null?void 0:C.video_photo)==null?void 0:_.path)??"",className:"size-full object-cover"})]},z)})})]}),((E=s==null?void 0:s.photos)==null?void 0:E.length)&&((L=s==null?void 0:s.photos)==null?void 0:L.length)>16&&!p&&a.jsx(H,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},jr=(n,e)=>{const{data:t,isPending:s}=qe({queryKey:["news-inner",n,e],queryFn:()=>Es(n,e),select:({data:i})=>i.data});return{data:t,isPending:s}};function Sr(){var o;const{id:n}=Ms(),e=O(c=>c.lang),t=Number(n);$(t);const{data:s,isPending:i}=jr(t,e),{data:r}=St(e);return i?a.jsx(fe,{}):a.jsxs(ee,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[a.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),a.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),a.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:a.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"})}),a.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"})]}),a.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),a.jsxs("section",{children:[a.jsx("h2",{className:"h2 mb-6",children:{ru:"Читайте также:",en:"Read more:",tm:"Şeýle hem okaň:"}[e]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:r==null?void 0:r.filter(c=>c.id!==t).slice(0,3).map(c=>y.createElement(Tt,{...c,key:c.title}))})]})]})}function Tr(){$();const n=O(s=>s.lang),{data:e,isPending:t}=St(n);return t?a.jsx(fe,{}):a.jsxs(ee,{className:"page-padding",children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[n]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>y.createElement(Tt,{...s,key:s.title}))})]})}const Nr=()=>{const n=O(s=>s.lang),{data:e,isPending:t}=qe({queryKey:["participants",n],queryFn:()=>zs(n),select:({data:s})=>s.data});return{data:e,isPending:t}},_r=({className:n})=>{var u,m,h,d,f;$();const e=O(p=>p.lang),{data:t,isPending:s}=Nr(),i={company:{ru:"Название компании",en:"Company name",tm:"Kompaniýanyň ady"}[e],country:{ru:"Страна",en:"Country",tm:"Ýurt"}[e],industry:{ru:"Сфера деятельности",en:"Industry",tm:"Pudak"}[e]},[r,o]=y.useState(0),c=(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,(m=t==null?void 0:t[2])==null?void 0:m.participants),l=t==null?void 0:t.filter(p=>r===1?p.id===3:r===2?p.id===1:p.id===2);return console.log(r),a.jsx(ee,{children:a.jsxs("section",{className:Z("page-padding overflow-x-hidden",n),children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:{ru:"Список участников",en:"List of participants",tm:"Gatnasyjylaryň sanawy"}[e]}),a.jsx(jt,{state:r,setState:o,className:"mb-6 md:w-fit"}),a.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[a.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[a.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:i==null?void 0:i.company}),a.jsx("h3",{className:"flex-[0_0_19.80%]",children:i==null?void 0:i.country}),a.jsx("h3",{className:"flex-[0_0_34.65%]",children:i==null?void 0:i.industry})]}),s?a.jsx(fe,{}):r===0?c==null?void 0:c.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}})):(f=(d=l==null?void 0:l[0])==null?void 0:d.participants)==null?void 0:f.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}}))]})]})})},ce=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Er=n=>v.object({space_package:v.string(),company_name:v.string().min(3,{message:ce("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:ce("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:ce("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.preprocess(e=>Number(e),v.number().min(1,ce("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n))),country:v.string().min(3,{message:ce("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:ce("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:ce("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),zr={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function Cr(){$();const n=O(l=>l.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>Er(n),[n]),i=Ie({resolver:$e(s),defaultValues:zr}),r=async l=>{await Cs(l)&&t(!0)};y.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:o}=i.formState,c=T(n);return a.jsxs("div",{children:[a.jsx(ue,{title:R[T(n)].cover}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.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:i.handleSubmit(r),children:[a.jsx(ze,{control:i.control,name:"space_package",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].h2}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"space",checked:l.value==="space"})}),a.jsx(U,{className:"text-base",children:R[c].radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"package",checked:l.value==="package"})}),a.jsx(U,{className:"text-base",children:R[c].radio_2})]})]})})]})}),a.jsx(N,{label:R[c].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[c].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[c].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[c].number_of_participants,type:"number",name:"participants_number",control:i.control,error:o.participants_number}),a.jsx(N,{label:R[c].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[c].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[c].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[c].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:l.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:l.value==="no"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[c].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const Yt=()=>{var p;const{t:n}=ge("main"),e=O(g=>g.lang),{pathname:t}=Je(),[s]=Nt({loop:!0},[Rs({delay:5e3,stopOnInteraction:!1})]),{title:i,texts:r,button:o,button2:c}=n("impressions.hero",{returnObjects:!0}),{title2:l,texts2:u}=n("impressions.hero",{returnObjects:!0}),m=(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"],tm:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"]},f=()=>d[e]??d.en;return a.jsxs("section",{className:"",children:[t==="/impressions-tm"?a.jsx("div",{ref:s,className:"embla overflow-hidden",children:a.jsx("div",{className:"flex",children:f().map((g,x)=>a.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):a.jsx("img",{src:n("impressions.banner")}),a.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:{ru:"Модные показы",en:"Fashion shows",tm:"Moda görkezişler"}[e]}),a.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:a.jsxs(ee,{className:"md:py-20 py-10",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:m(i,l)}),a.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(p=h(r,u))==null?void 0:p.map((g,x)=>a.jsx("p",{className:"md:text-lg !normal",children:g},x))}),a.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[a.jsx(nt,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:a.jsx(H,{size:"sm",className:"w-full",children:o})}),a.jsx(nt,{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:a.jsx(H,{size:"sm",className:"w-full",children:c})})]})]})})]})},Xt=()=>{var m,h,d;const{t:n}=ge("main"),{pathname:e}=Je(),[t,s]=y.useState(1),{data:i}=wt(1),o=[...(i==null?void 0:i.videos.filter(f=>f.sections[0]==="fashion_shows"))??[]].sort((f,p)=>(f==null?void 0:f.fashion_shows_order_id)+(p==null?void 0:p.fashion_shows_order_id)),{videosTitle:c,videosTitle2:l}=n("impressions",{returnObjects:!0}),u=()=>e!=="/impressions";return a.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:a.jsxs(ee,{children:[a.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:u()?c:l}),a.jsxs("div",{className:"flex flex-col lg:flex-row lg:mx-20 gap-4 text-white overflow-hidden h-fit lg:h-[490px]",children:[a.jsxs("div",{className:"bg-gray_10 flex-auto p-2 rounded-[8px] border border-gray_09 flex flex-col justify-center h-full",children:[a.jsx("div",{className:"max-h-[450px]",children:a.jsx("video",{src:(d=(h=(m=i==null?void 0:i.videos)==null?void 0:m[t])==null?void 0:h.video)==null?void 0:d.path,muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})}),a.jsx("div",{className:"flex items-center justify-between mt-auto"})]}),a.jsx("div",{className:"bg-gray_10 flex-[0_0_20%] px-2 pt-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:a.jsx("div",{className:"flex flex-col gap-2 w-full overflow-y-auto overflow-x-hidden h-full",children:o==null?void 0:o.map((f,p)=>{var g;return a.jsx("div",{onClick:()=>s(p+1),className:"basis-[70px] w-[80%] cursor-pointer mx-auto overflow-hidden",children:a.jsx("img",{src:(g=f==null?void 0:f.video_photo)==null?void 0:g.path,alt:"",className:"object-cover size-full rounded-tl hover:scale-105 transition-transform rounded-bl"})},p)})})})]})]})})},Rr=n=>{const e=O(i=>i.lang),{data:t,isPending:s}=qe({queryKey:["designers",e],queryFn:()=>Ls(e,n),select:({data:i})=>i.data});return{data:t,isPending:s}},Qt=()=>{const{pathname:n}=Je(),e=()=>n!=="/impressions",{data:t,isPending:s}=Rr(e()?2:1),[i,r]=Nt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,c]=y.useState(0),{t:l}=ge("main"),[u,m]=y.useState(!1),[h,d]=y.useState(!0),f=y.useCallback(S=>{r&&r.scrollTo(S)},[r]);y.useEffect(()=>{if(!r)return;const S=()=>{c(r==null?void 0:r.selectedScrollSnap()),m(r.canScrollPrev()),d(r.canScrollNext())};return r.on("select",S),()=>{r.off("select",S)}},[r]);const{title:p,text:g,title2:x,text2:w}=l("impressions.designers",{returnObjects:!0}),k=[...(t==null?void 0:t.designers)??[]].sort((S,E)=>(S==null?void 0:S.order_id)-(E==null?void 0:E.order_id));return console.log(k),a.jsx("section",{className:"md:py-20 py-10",children:a.jsxs(ee,{className:"flex flex-col md:gap-10 gap-6",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?p:x}),a.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:w}),a.jsxs("div",{ref:i,className:"embla",children:[a.jsx("div",{className:"flex embla__container",children:s?a.jsx(fe,{}):k==null?void 0:k.map((S,E)=>a.jsx(Ps,{...S,className:"embla__slide flex-[0_0_714px] mr-4"},E))}),a.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[a.jsx("button",{onClick:()=>r==null?void 0:r.scrollPrev(),className:Z("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:a.jsx(Os,{})}),a.jsx("div",{className:"flex items-center gap-2",children:[...Array(k!=null&&k.length?Math.round((k==null?void 0:k.length)/2):5)].map((S,E)=>a.jsx("div",{onClick:()=>f==null?void 0:f(E),className:Z("w-5 h-1 rounded-[2px] cursor-pointer",o===E?"bg-teritary":"bg-on_surface_v")},E))}),a.jsx("button",{onClick:()=>r==null?void 0:r.scrollNext(),className:Z("size-12 flex items-center justify-center",!h&&"opacity-20 pointer-events-none"),children:a.jsx(Is,{})})]})]})]})})};function Lr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}function Pr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}const Or="/about-place.jpg",P={title:{ruText:"Варианты участия",enText:"Participation Options",tmText:"Gatnaşmagyň görnüşleri"},exhibitionSpace:{ruText:"Аренда выставочной площади",enText:"Exhibition Space Rental",tmText:"Sergi meýdanyny kärendesine almak"},spaceOnly:{ruText:"Необорудованная площадь",enText:"Space Only",tmText:"Enjamlaşdyrylmadyk meýdan"},example:{ruText:"Пример",enText:"Example",tmText:"Mysal"},spaceOnlyDescription:{ruText:"Чистая площадь для последующей застройки (стандартная застройка или по индивидуальному дизайну). Включает: общую уборку и охрану павильона. Электричество в стоимость не включено.",enText:"Raw exhibition space for subsequent construction (standard booth or customized design). Includes general cleaning and pavilion security. Electricity is not included in the price.",tmText:"Soňky gurluşyk üçin arassa meýdan (standart gurluşyk ýa-da indiwidual dizaýn). Öz içine alýar: umumy arassaçylyk we pawilýonyň goragy. Elektrik energiýasy bahasynyň içine girenok."},standardBooth:{ruText:"Стандартная застройка",enText:"Standard Booth Construction",tmText:"Standart gurluşyk"},customBooth:{ruText:"Индивидуальный дизайн",enText:"Custom Booth Design",tmText:"Indiwidual dizaýn"},boothExampleDescription:{ruText:"Включает: базовое электроподключение (220V - 2 кВт), стены (стандартные или индивидуальный дизайн). Общую уборку и охрану павильона.",enText:"Includes: basic electrical connection (220V - 2 kW), walls (standard or customized design), general cleaning, and pavilion security.",tmText:"Öz içine alýar: esasy elektrik birikdirmesi (220V - 2 kWt), diwarlar (standart ýa-da indiwidual dizaýn). Umumy arassaçylyk we pawilýonyň goragy."},registrationFee:{ruText:"Участие со стендом включает регистрационную оплату.",enText:"Participation with a booth includes a registration fee.",tmText:"Stend bilen gatnaşmak hasaba alyş tölegini öz içine alýar."},pricingNote:{ruText:"Пожалуйста уточните стоимость у менеджера проекта.",enText:"Please check the pricing with the project manager.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},partnershipTitle:{ruText:"Партнёрские возможности",enText:"Partnership Opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},partnershipIntro:{ruText:'Если Вы заинтересованы в более активном выходе на рынок или целью Вашей компании является максимальное продвижение на рынок, используйте пакет "Партнерство выставки". Приобретая данную опцию, Вы получаете:',enText:'If your company is interested in a more active market presence or aims to maximize market promotion, we recommend the "Exhibition Partnership" package. By choosing this option, you will receive:',tmText:'Eger siziň kompaniýaňyz bazara has işjeň çykmaga gyzyklanýan bolsa, "Serginiň hyzmatdaşlygy" paketini ulanyň. Bu opsiýany alyp, siz şulary alarsyňyz:'},partnershipItems:[{ruText:"Статус Партнера выставки, в зависимости от выбранного пакета",enText:"Exhibition Partner status, depending on the selected package",tmText:"Saýlanan pakete baglylykda Serginiň hyzmatdaşy statusy"},{ruText:"Масштабную рекламную кампанию (размещение логотипа компании на всей рекламной продукции выставки)",enText:"A large-scale advertising campaign (placement of your company logo on all exhibition promotional materials)",tmText:"Uly gerimli reklama kampaniýasy (kompaniýanyň logotipini serginiň ähli reklama önümlerinde ýerleşdirmek)"},{ruText:"Широкую узнаваемость",enText:"Wide recognition",tmText:"Giň tanalmaklyk"},{ruText:"Ассоциирование выставки с именем Вашей компании и др.",enText:"Association of the exhibition with your company's name, and more",tmText:"Serginiň siziň kompaniýaňyzyň ady bilen assosiasiýasy we ş.m."}],partnershipNote:{ruText:"Пожалуйста, уточните стоимость у менеджера проекта.",enText:"Please contact the project manager to clarify the cost.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},exampleImageAlt:{ruText:"Пример площадки",enText:"Example space",tmText:"Meýdançanyň mysaly"},standardExampleAlt:{ruText:"Пример стандартной застройки",enText:"Standard booth example",tmText:"Standart gurluşygyň mysaly"},customExampleAlt:{ruText:"Пример индивидуального дизайна",enText:"Custom booth example",tmText:"Indiwidual dizaýnyň mysaly"}},kt=()=>a.jsx("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M7 1V15M7 15L2 10M7 15L12 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function Ir(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(P.title)}),a.jsx(ee,{className:"page-padding",children:a.jsxs("div",{className:"mx-auto max-w-[900px] text-on_surface",children:[a.jsx("p",{className:"mb-10 text-3xl font-medium",children:e(P.title)}),a.jsxs(H,{className:"mb-2 bg-primary md:text-base w-full",children:["1. ",e(P.exhibitionSpace)]}),a.jsx(H,{variant:"outline",className:"w-full mb-10 border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.spaceOnly)}),a.jsx("p",{className:"mb-5 text-center text-lg",children:e(P.example)}),a.jsx("div",{className:"mx-auto h-[180px] w-full max-w-[754px] md:h-[377px]",children:a.jsx("img",{src:Or,alt:e(P.exampleImageAlt),className:"size-full rounded-sm object-cover"})}),a.jsx("div",{className:"mt-5 text-center text-base leading-relaxed",children:a.jsx("p",{children:e(P.spaceOnlyDescription)})}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{className:"w-full flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.standardBooth)})]}),a.jsxs("div",{className:"flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.customBooth)})]})]}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example.jpeg",alt:e(P.standardExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]}),a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example-2.jpeg",alt:e(P.customExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]})]}),a.jsx("p",{className:"mt-6 text-2xl",children:e(P.registrationFee)}),a.jsx("p",{className:"text-base mt-3",children:e(P.pricingNote)}),a.jsxs("div",{className:"mt-6 bg-primary py-3 text-center text-xs font-medium text-on_primary md:text-base",children:["2. ",e(P.partnershipTitle)]}),a.jsxs("div",{className:"mt-3 text-base leading-relaxed font-normal",children:[a.jsx("p",{className:"mb-2",children:e(P.partnershipIntro)}),a.jsx("ul",{className:"list-disc pl-5",children:P.partnershipItems.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("p",{className:"mt-2",children:e(P.partnershipNote)})]})]})})]})}const K={title:{ruText:"Партнерские возможности",enText:"Partner opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},intro:{ruText:"Предлагаем Вам воспользоваться комплексными возможностями - партнерскими пакетами, разработанными под различные маркетинговые задачи компании-участника, которые позволят максимально использовать коммерческий потенциал выставки для усиления бренда Вашей компании и бесспорно повысят эффективность продвижения Вашей компании.",enText:"We invite you to take advantage of integrated opportunities - partnership packages designed for various marketing objectives of the exhibiting company. They allow you to maximize the exhibition's commercial potential, strengthen your brand, and significantly increase the effectiveness of your promotion.",tmText:"Size dürli marketing wezipelerine gönükdirilen hyzmatdaşlyk paketlerinden peýdalanmagy teklip edýäris. Olar serginiň söwda potensialyny iň ýokary derejede ulanmaga, brendiňizi güýçlendirmäge we kompaniýaňyzy öňe sürmegiň netijeliligini ep-esli artdyrmaga mümkinçilik berýär."},partnership:{ruText:"Партнерство выставки - это всегда больше, чем просто участие. Это прекрасная возможность выгодно подать Вашу продукцию широкой публике в соответствии с Вашими основными целями и задачами. В каждом партнерском пакете предоставлены уникальные позиции, специально сформированные таким образом, что Вы наиболее точно и эффективно передаете обращение к целевой аудитории.",enText:"Exhibition partnership is always more than just participation. It is a great opportunity to present your products to a wide audience in line with your goals and objectives. Each partnership package includes unique placements structured so you can communicate your message to the target audience as precisely and effectively as possible.",tmText:"Serginiň hyzmatdaşlygy – bu diňe bir gatnaşmakdan has köp zatdyr. Bu öz önümleriňizi giň köpçülige hödürlemek üçin ajaýyp mümkinçilikdir. Her hyzmatdaşlyk paketinde maksatly auditoriýa iň takyk we netijeli ýol bilen ýüzlenmegiňiz üçin ýörite düzülen özboluşly orunlar bar."},benefitsTitle:{ruText:"Партнерство выставки Turkmen Textile позволит:",enText:"Partnership with Turkmen Textile will allow you:",tmText:"Turkmen Textile sergisiniň hyzmatdaşlygy mümkinçilik berer:"},benefits:[{ruText:"Укрепить позиции Вашей компании на рынке.",enText:"Strengthen your company's position in the market.",tmText:"Kompaniýaňyzyň bazardaky pozisiýasyny berkitmek."},{ruText:"Обеспечить существенное преимущество в конкурентной среде.",enText:"Gain a significant advantage in the competitive environment.",tmText:"Bäsdeşlik gurşawynda ep-esli artykmaçlyk gazanmak."},{ruText:"Закрепить имидж успешного бренда Вашей компании.",enText:"Reinforce the image of your company as a successful brand.",tmText:"Kompaniýaňyzyň üstünlikli brend hökmünde abraýyny berkitmek."},{ruText:"Сделать Вашу торговую марку узнаваемой для широкого круга участников и посетителей выставки.",enText:"Make your trademark recognizable to a wide range of exhibition participants and visitors.",tmText:"Söwda belgiňizi serginiň gatnaşyjylarynyň we gelýänleriniň giň topary üçin tanalýan etmek."},{ruText:"Выделить Вашу компанию среди других участников.",enText:"Stand out among other exhibitors.",tmText:"Kompaniýaňyzy beýleki gatnaşyjylaryň arasynda tapawutlandyrmak."}],highlight:{ruText:"Вы хотите, чтобы в профессиональной среде именно Вашу компанию считали ключевым игроком на рынке? Тогда заявите о себе громче всех!",enText:"Do you want your company to be seen as a key player in the professional community? Then make yourself heard louder than anyone else!",tmText:"Siz professional gurşawda kompaniýaňyzyň bazardaky esasy oýunçy hökmünde tanalmagyny isleýärsiňizmi? Onda hemmelerden has gaty sesleniniň!"},packagesTitle:{ruText:"Варианты партнерских пакетов:",enText:"Partnership package options:",tmText:"Hyzmatdaşlyk paketleriniň görnüşleri:"},packages:[{ruText:"Генеральный партнер выставки",enText:"General partner of the exhibition.",tmText:"Serginiň baş hyzmatdaşy"},{ruText:"Партнер Ленты Ведущих Посетителей",enText:"Lead visitor lanyard partner.",tmText:"Öňdebaryjy gelýänleriň lentasynyň hyzmatdaşy"},{ruText:"Партнер деловой программы",enText:"Business program partner.",tmText:"Işewür programmanyň hyzmatdaşy"},{ruText:"Партнер вечернего приема",enText:"Evening reception partner.",tmText:"Agşamky kabul edişligiň hyzmatdaşy"},{ruText:"Партнер пакетов посетителей",enText:"Visitor package partner.",tmText:"Gelýänleriň paketiniň hyzmatdaşy"},{ruText:"Партнер каталога выставки",enText:"Exhibition catalog partner.",tmText:"Serginiň katalogynyň hyzmatdaşy"},{ruText:"Партнер VIP делегации",enText:"VIP delegation partner.",tmText:"VIP delegasiýanyň hyzmatdaşy"},{ruText:"Партнер выставки",enText:"Exhibition partner.",tmText:"Serginiň hyzmatdaşy"}],optionsNote:{ruText:"Данные опции являются базовыми, но мы всегда готовы обсудить вопрос о специальных проектах в рамках партнерства выставки, которые будут соответствовать Вашему бюджету, потребностям и целям.",enText:"These options are basic, but we are always ready to discuss special projects within the exhibition partnership that match your budget, needs, and goals.",tmText:"Bu opsiýalar esasy opsiýalardyr, emma biz elmydama siziň býudjetiňize, zerurlyklarňyza we maksatlaryňyza laýyk gelýän ýörite taslamalary ara alyp maslahatlaşmaga taýýardyrys."},contactNote:{text:{ruText:"По вопросам цен и дополнительных опций партнерских пакетов выставки KIFT, пожалуйста, обращайтесь к ",enText:"For pricing and additional options of KIFT exhibition partnership packages, please contact the ",tmText:"Serginiň hyzmatdaşlyk paketleriniň bahalary we goşmaça opsiýalary boýunça haýyş edýäris, ýüz tutuň "},linkText:{ruText:"ОРГАНИЗАТОРАМ",enText:"ORGANIZERS",tmText:"GURAMAÇYLARA"}}};function Fr(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(K.title)}),a.jsx(ee,{className:"page-padding text-sm!",children:a.jsxs("div",{className:"mx-auto max-w-[900px]",children:[a.jsx("h2",{className:"mb-3 text-2xl font-medium",children:e(K.title)}),a.jsx("div",{className:"mb-4 rounded-sm bg-surface_container px-4 py-3 text-sm leading-relaxed text-on_surface_v",children:e(K.intro)}),a.jsx("p",{className:"mb-4 text-sm leading-relaxed text-on_surface_v",children:e(K.partnership)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.benefitsTitle)}),a.jsx("ul",{className:"mb-4 list-disc pl-5 text-sm leading-relaxed text-on_surface_v",children:K.benefits.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("div",{className:"mb-6 rounded-sm border border-outline px-4 py-3 text-center text-[10px] uppercase text-on_surface_v",children:e(K.highlight)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.packagesTitle)}),a.jsx("ul",{className:"mb-4 border-t border-outline_v",children:K.packages.map(t=>a.jsxs("li",{className:"flex items-center gap-2 border-b border-outline_v py-2 text-sm text-on_surface_v",children:[a.jsx("span",{className:"text-xs text-primary",children:"✓"}),a.jsx("span",{children:e(t)})]},t.enText))}),a.jsx("p",{className:"text-sm leading-relaxed text-on_surface_v",children:e(K.optionsNote)}),a.jsxs("p",{className:"text-sm leading-relaxed text-on_surface_v",children:[e(K.contactNote.text),a.jsx("span",{className:"text-primary underline",children:e(K.contactNote.linkText)})]})]})})]})}const $r=[{element:a.jsx(za,{}),path:"/",children:[{element:a.jsx(Ca,{}),path:"",errorElement:a.jsx(A,{})},{element:a.jsx(pr,{}),path:"about",errorElement:a.jsx(A,{})},{element:a.jsx(mr,{}),path:"B2B-B2G",errorElement:a.jsx(A,{})},{element:a.jsx(gr,{}),path:"become-sponsor",errorElement:a.jsx(A,{})},{element:a.jsx(Cr,{}),path:"stend-form",errorElement:a.jsx(A,{})},{element:a.jsx(kr,{}),path:"contacts",errorElement:a.jsx(A,{})},{element:a.jsx(Tr,{}),path:"news",errorElement:a.jsx(A,{})},{element:a.jsx(Sr,{}),path:"news/:id",errorElement:a.jsx(A,{})},{element:a.jsx(_r,{}),path:"participants",errorElement:a.jsx(A,{})},{element:a.jsx(wr,{}),path:"media",errorElement:a.jsx(A,{})},{element:a.jsx(Lr,{}),path:"impressions",errorElement:a.jsx(A,{})},{element:a.jsx(Pr,{}),path:"impressions-tm",errorElement:a.jsx(A,{})},{element:a.jsx(Ir,{}),path:"participation-options",errorElement:a.jsx(A,{})},{element:a.jsx(Fr,{}),path:"partner-opportunities",errorElement:a.jsx(A,{})}]}],Ar=Bs($r),Dr=new Fs;Hs.createRoot(document.getElementById("root")).render(a.jsx(y.StrictMode,{children:a.jsx($s,{client:Dr,children:a.jsx(Gs,{router:Ar})})})); diff --git a/dist/assets/index-BYPmnuZF.js b/dist/assets/index-BYPmnuZF.js new file mode 100644 index 0000000..316c2f0 --- /dev/null +++ b/dist/assets/index-BYPmnuZF.js @@ -0,0 +1 @@ +import{u as P,i as Ht,j as n,R as Ut,H as Wt,F as Jt,c as X,a as qt,b as Qt,d as Yt,e as Xt,f as Zt,g as ea,h as ta,k as aa,l as na,z as b,m as Pe,n as ye,S as Xe,o as sa,P as ve,p as ne,q as ft,r as ra,s as ia,t as Ve,v as je,w as j,x as _e,y as K,A as H,B as U,C as w,D as G,L as Ke,E as Oe,G as Le,I as me,J as He,K as Ie,M as oa,N as le,O as la,Q as ca,T as ua,U as da,V as ma,W as pa,X as ha,Y as he,Z as ga,_ as fa,$ as Z,a0 as xa,a1 as xt,a2 as ya,a3 as yt,a4 as ba,a5 as pe,a6 as Ue,a7 as ka,a8 as bt,a9 as kt,aa as va,ab as Ze,ac as ja,ad as vt,ae as wa,af as Ta,ag as Sa,ah as Na,ai as _a,aj as Ca,ak as Ea}from"./ui-library-DXFnX4mi.js";import{f as za,a as y,O as Ra,u as Fe,e as ie,g as Pa,L as et,h as Oa,i as La}from"./react-vendor-B--yIoPF.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();var Se={},tt;function Ia(){if(tt)return Se;tt=1;var r=za();return Se.createRoot=r.createRoot,Se.hydrateRoot=r.hydrateRoot,Se}var Fa=Ia();const v=r=>typeof r=="string",fe=()=>{let r,e;const t=new Promise((a,s)=>{r=a,e=s});return t.resolve=r,t.reject=e,t},at=r=>r==null?"":""+r,$a=(r,e,t)=>{r.forEach(a=>{e[a]&&(t[a]=e[a])})},Aa=/###/g,nt=r=>r&&r.indexOf("###")>-1?r.replace(Aa,"."):r,st=r=>!r||v(r),xe=(r,e,t)=>{const a=v(e)?e.split("."):e;let s=0;for(;s{const{obj:a,k:s}=xe(r,e,Object);if(a!==void 0||e.length===1){a[s]=t;return}let i=e[e.length-1],o=e.slice(0,e.length-1),l=xe(r,o,Object);for(;l.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),l=xe(r,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},Da=(r,e,t,a)=>{const{obj:s,k:i}=xe(r,e,Object);s[i]=s[i]||[],s[i].push(t)},Ce=(r,e)=>{const{obj:t,k:a}=xe(r,e);if(t&&Object.prototype.hasOwnProperty.call(t,a))return t[a]},Ba=(r,e,t)=>{const a=Ce(r,t);return a!==void 0?a:Ce(e,t)},jt=(r,e,t)=>{for(const a in e)a!=="__proto__"&&a!=="constructor"&&(a in r?v(r[a])||r[a]instanceof String||v(e[a])||e[a]instanceof String?t&&(r[a]=e[a]):jt(r[a],e[a],t):r[a]=e[a]);return r},ce=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ma={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ga=r=>v(r)?r.replace(/[&<>"'\/]/g,e=>Ma[e]):r;class Va{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 a=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,a),this.regExpQueue.push(e),a}}const Ka=[" ",",","?","!",";"],Ha=new Va(20),Ua=(r,e,t)=>{e=e||"",t=t||"";const a=Ka.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(a.length===0)return!0;const s=Ha.getRegExp(`(${a.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(r);if(!i){const o=r.indexOf(t);o>0&&!s.test(r.substring(0,o))&&(i=!0)}return i},Me=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;const a=e.split(t);let s=r;for(let i=0;i-1&&cr==null?void 0:r.replace("_","-"),Wa={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,e){var t,a;(a=(t=console==null?void 0:console[r])==null?void 0:t.apply)==null||a.call(t,console,e)}};class ze{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||Wa,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),a=0;a{this.observers[a]||(this.observers[a]=new Map);const s=this.observers[a].get(t)||0;this.observers[a].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s{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,a){var u,m;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],a&&(Array.isArray(a)?l.push(...a):v(a)&&i?l.push(...a.split(i)):l.push(a)));const c=Ce(this.data,l);return!c&&!t&&!a&&e.indexOf(".")>-1&&(e=l[0],t=l[1],a=l.slice(2).join(".")),c||!o||!v(a)?c:Me((m=(u=this.data)==null?void 0:u[e])==null?void 0:m[t],a,i)}addResource(e,t,a,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];a&&(l=l.concat(o?a.split(o):a)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),rt(this.data,l,s),i.silent||this.emit("added",e,t,a,s)}addResources(e,t,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in a)(v(a[i])||Array.isArray(a[i]))&&this.addResource(e,t,i,a[i],{silent:!0});s.silent||this.emit("added",e,t,a)}addResourceBundle(e,t,a,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=a,a=t,t=l[1]),this.addNamespaces(t);let c=Ce(this.data,l)||{};o.skipCopy||(a=JSON.parse(JSON.stringify(a))),s?jt(c,a,i):c={...c,...a},rt(this.data,l,c),o.silent||this.emit("added",e,t,a)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var wt={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,e,t,a,s){return r.forEach(i=>{var o;e=((o=this.processors[i])==null?void 0:o.process(e,t,a,s))??e}),e}};const ot={},lt=r=>!v(r)&&typeof r!="boolean"&&typeof r!="number";class Re extends $e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$a(["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 a=this.resolve(e,t);return(a==null?void 0:a.res)!==void 0}extractFromKey(e,t){let a=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=a&&e.indexOf(a)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ua(e,a,s);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:v(i)?[i]:i};const u=e.split(a);(a!==s||a===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:v(i)?[i]:i}}translate(e,t,a){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(m){const O=t.nsSeparator||this.options.nsSeparator;return s?{res:`${c}${O}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${O}${o}`}return s?{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 g=(h==null?void 0:h.usedKey)||o,p=(h==null?void 0:h.exactUsedKey)||o,f=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,k=t.count!==void 0&&!v(t.count),N=Re.hasDefaultValue(t),_=k?this.pluralResolver.getSuffix(u,t.count,t):"",F=t.ordinal&&k?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",z=k&&!t.ordinal&&t.count===0,C=z&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${_}`]||t[`defaultValue${F}`]||t.defaultValue;let S=d;T&&!d&&N&&(S=C);const W=lt(S),ee=Object.prototype.toString.apply(S);if(T&&S&&W&&f.indexOf(ee)<0&&!(v(x)&&Array.isArray(S))){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(g,S,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(h.res=O,h.usedParams=this.getUsedParamsDetails(t),h):O}if(i){const O=Array.isArray(S),D=O?[]:{},we=O?p:g;for(const J in S)if(Object.prototype.hasOwnProperty.call(S,J)){const q=`${we}${i}${J}`;N&&!d?D[J]=this.translate(q,{...t,defaultValue:lt(C)?C[J]:void 0,joinArrays:!1,ns:l}):D[J]=this.translate(q,{...t,joinArrays:!1,ns:l}),D[J]===q&&(D[J]=S[J])}d=D}}else if(T&&v(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,a));else{let O=!1,D=!1;!this.isValidLookup(d)&&N&&(O=!0,d=C),this.isValidLookup(d)||(D=!0,d=o);const J=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:d,q=N&&C!==d&&this.options.updateMissing;if(D||O||q){if(this.logger.log(q?"updateKey":"missingKey",u,c,o,q?C:d),i){const M=this.resolve(o,{...t,keySeparator:!1});M&&M.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 B=[];const Te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Te&&Te[0])for(let M=0;M{var Ye;const Qe=N&&ge!==d?ge:J;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,re,Qe,q,t):(Ye=this.backendConnector)!=null&&Ye.saveMissing&&this.backendConnector.saveMissing(M,c,re,Qe,q,t),this.emit("missingKey",M,c,re,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?B.forEach(M=>{const re=this.pluralResolver.getSuffixes(M,t);z&&t[`defaultValue${this.options.pluralSeparator}zero`]&&re.indexOf(`${this.options.pluralSeparator}zero`)<0&&re.push(`${this.options.pluralSeparator}zero`),re.forEach(ge=>{qe([M],o+ge,t[`defaultValue${ge}`]||C)})}):qe(B,o,C))}d=this.extendTranslation(d,e,t,h,a),D&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(D||O)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,O?d:void 0))}return s?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,a,s,i){var u,m;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const h=v(e)&&(((m=a==null?void 0:a.interpolation)==null?void 0:m.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let g=a.replace&&!v(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,a.lng||this.language||s.usedLng,a),h){const p=e.match(this.interpolator.nestingRegexp),f=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},a,s,i,o,l;return v(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(a))return;const u=this.extractFromKey(c,t),m=u.key;s=m;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=t.count!==void 0&&!v(t.count),g=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(v(t.context)||typeof t.context=="number")&&t.context!=="",f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(x=>{var T,k;this.isValidLookup(a)||(l=x,!ot[`${f[0]}-${x}`]&&((T=this.utils)!=null&&T.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(l))&&(ot[`${f[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${f.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!!!")),f.forEach(N=>{var z;if(this.isValidLookup(a))return;o=N;const _=[m];if((z=this.i18nFormat)!=null&&z.addLookupKeys)this.i18nFormat.addLookupKeys(_,m,N,x,t);else{let C;d&&(C=this.pluralResolver.getSuffix(N,t.count,t));const S=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(_.push(m+C),t.ordinal&&C.indexOf(W)===0&&_.push(m+C.replace(W,this.options.pluralSeparator)),g&&_.push(m+S)),p){const ee=`${m}${this.options.contextSeparator}${t.context}`;_.push(ee),d&&(_.push(ee+C),t.ordinal&&C.indexOf(W)===0&&_.push(ee+C.replace(W,this.options.pluralSeparator)),g&&_.push(ee+S))}}let F;for(;F=_.pop();)this.isValidLookup(a)||(i=F,a=this.getResource(N,x,F,t))}))})}),{res:a,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,a){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,a,s):this.resourceStore.getResource(e,t,a,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=e.replace&&!v(e.replace);let s=a?e.replace:e;if(a&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!a){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t===a.substring(0,t.length)&&e[a]!==void 0)return!0;return!1}}class ct{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Y.create("languageUtils")}getScriptPartFromCode(e){if(e=Ee(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=Ee(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(v(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(a=>{if(t)return;const s=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(a=>{if(t)return;const s=this.getLanguagePartFromCode(a);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),v(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let a=e[t];return a||(a=e[this.getScriptPartFromCode(t)]),a||(a=e[this.formatLanguageCode(t)]),a||(a=e[this.getLanguagePartFromCode(t)]),a||(a=e.default),a||[]}toResolveHierarchy(e,t){const a=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return v(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):v(e)&&i(this.formatLanguageCode(e)),a.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}const ut={zero:0,one:1,two:2,few:3,many:4,other:5},dt={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ja{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 a=Ee(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:a,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(a,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),dt;if(!e.match(/-|_/))return dt;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(e,t);return a||(a=this.getRule("dev",t)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,a).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(e,t);return a||(a=this.getRule("dev",t)),a?a.resolvedOptions().pluralCategories.sort((s,i)=>ut[s]-ut[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,a);return s?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,a))}}const mt=function(r,e,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ba(r,e,t);return!i&&s&&v(t)&&(i=Me(r,t,a),i===void 0&&(i=Me(e,t,a))),i},De=r=>r.replace(/\$/g,"$$$$");class qa{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)||(a=>a),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:a,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:m,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:g,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:x,maxReplaces:T,alwaysFormat:k}=e.interpolation;this.escape=t!==void 0?t:Ga,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?ce(i):o||"{{",this.suffix=l?ce(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=m?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?ce(d):g||ce("$t("),this.nestingSuffix=p?ce(p):f||ce(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=T||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,a)=>(t==null?void 0:t.source)===a?(t.lastIndex=0,t):new RegExp(a,"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,a,s){var g;let i,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const k=mt(t,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,a,{...s,...t,interpolationkey:p}):k}const f=p.split(this.formatSeparator),x=f.shift().trim(),T=f.join(this.formatSeparator).trim();return this.format(mt(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),T,a,{...s,...t,interpolationkey:x})};this.resetRegExp();const m=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((g=s==null?void 0:s.interpolation)==null?void 0:g.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>De(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?De(this.escape(p)):De(p)}].forEach(p=>{for(l=0;i=p.regex.exec(e);){const f=i[1].trim();if(o=u(f),o===void 0)if(typeof m=="function"){const T=m(e,i,s);o=v(T)?T:""}else if(s&&Object.prototype.hasOwnProperty.call(s,f))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),o="";else!v(o)&&!this.useRawValueToEscape&&(o=at(o));const x=p.safeValue(o);if(e=e.replace(i[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;const l=(c,u)=>{const m=this.nestingOptionsSeparator;if(c.indexOf(m)<0)return c;const h=c.split(new RegExp(`${m}[ ]*{`));let d=`{${h[1]}`;c=h[0],d=this.interpolate(d,o);const g=d.match(/'/g),p=d.match(/"/g);(((g==null?void 0:g.length)??0)%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,f),`${c}${m}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;s=this.nestingRegexp.exec(e);){let c=[];o={...a},o=o.replace&&!v(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const m=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=m.shift(),c=m,u=!0}if(i=t(l.call(this,s[1].trim(),o),o),i&&s[0]===e&&!v(i))return i;v(i)||(i=at(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=c.reduce((m,h)=>this.format(m,h,a.lng,{...a,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const Qa=r=>{let e=r.toLowerCase().trim();const t={};if(r.indexOf("(")>-1){const a=r.split("(");e=a[0].toLowerCase().trim();const s=a[1].substring(0,a[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();t[m]||(t[m]=u),u==="false"&&(t[m]=!1),u==="true"&&(t[m]=!0),isNaN(u)||(t[m]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ue=r=>{const e={};return(t,a,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=a+JSON.stringify(i);let l=e[o];return l||(l=r(Ee(a),s),e[o]=l),l(t)}};class Ya{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("formatter"),this.options=e,this.formats={number:ue((t,a)=>{const s=new Intl.NumberFormat(t,{...a});return i=>s.format(i)}),currency:ue((t,a)=>{const s=new Intl.NumberFormat(t,{...a,style:"currency"});return i=>s.format(i)}),datetime:ue((t,a)=>{const s=new Intl.DateTimeFormat(t,{...a});return i=>s.format(i)}),relativetime:ue((t,a)=>{const s=new Intl.RelativeTimeFormat(t,{...a});return i=>s.format(i,a.range||"day")}),list:ue((t,a)=>{const s=new Intl.ListFormat(t,{...a});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ue(t)}format(e,t,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(c=>c.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,c)=>{var h;const{formatName:u,formatOptions:m}=Qa(c);if(this.formats[u]){let d=l;try{const g=((h=s==null?void 0:s.formatParams)==null?void 0:h[s.interpolationkey])||{},p=g.locale||g.lng||s.locale||s.lng||a;d=this.formats[u](l,p,{...m,...s,...g})}catch(g){this.logger.warn(g)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Xa=(r,e)=>{r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)};class Za extends $e{constructor(e,t,a){var i,o;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=a,this.languageUtils=a.languageUtils,this.options=s,this.logger=Y.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,a,s.backend,s)}queueLoad(e,t,a,s){const i={},o={},l={},c={};return e.forEach(u=>{let m=!0;t.forEach(h=>{const d=`${u}|${h}`;!a.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,m=!1,o[d]===void 0&&(o[d]=!0),i[d]===void 0&&(i[d]=!0),c[h]===void 0&&(c[h]=!0)))}),m||(l[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,a){const s=e.split("|"),i=s[0],o=s[1];t&&this.emit("failedLoading",i,o,t),!t&&a&&this.store.addResourceBundle(i,o,a,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&a&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Da(c.loaded,[i],o),Xa(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const m=c.loaded[u];m.length&&m.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,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=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:a,tried:s,wait:i,callback:o});return}this.readingCalls++;const l=(u,m)=>{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&&m&&s{this.read.call(this,e,t,a,s+1,i*2,o)},i);return}o(u,m)},c=this.backend[a].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(m=>l(null,m)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();v(e)&&(e=this.languageUtils.toResolveHierarchy(e)),v(t)&&(t=[t]);const i=this.queueLoad(e,t,a,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,a){this.prepareLoading(e,t,{},a)}reload(e,t,a){this.prepareLoading(e,t,{reload:!0},a)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=e.split("|"),s=a[0],i=a[1];this.read(s,i,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,o,l)})}saveMissing(e,t,a,s,i){var c,u,m,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=(m=this.services)==null?void 0:m.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${a}" 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(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const g={...o,isUpdate:i},p=this.backend.create.bind(this.backend);if(p.length<6)try{let f;p.length===5?f=p(e,t,a,s,g):f=p(e,t,a,s),f&&typeof f.then=="function"?f.then(x=>l(null,x)).catch(l):l(null,f)}catch(f){l(f)}else p(e,t,a,s,l,g)}!e||!e[0]||this.store.addResource(e[0],t,a,s)}}}const pt=()=>({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:r=>{let e={};if(typeof r[1]=="object"&&(e=r[1]),v(r[1])&&(e.defaultValue=r[1]),v(r[2])&&(e.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const t=r[3]||r[2];Object.keys(t).forEach(a=>{e[a]=t[a]})}return e},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ht=r=>{var e,t;return v(r.ns)&&(r.ns=[r.ns]),v(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),v(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((t=(e=r.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Ne=()=>{},en=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{typeof r[t]=="function"&&(r[t]=r[t].bind(r))})};class be extends $e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ht(e),this.services={},this.logger=Y,this.modules={external:[]},en(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]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(v(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=pt();this.options={...s,...this.options,...ht(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Y.init(i(this.modules.logger),this.options):Y.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Ya;const h=new ct(this.options);this.store=new it(this.options.resources,this.options);const d=this.services;d.logger=Y,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new Ja(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=i(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new qa(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Za(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var p=arguments.length,f=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Ne),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=function(){return e.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return e.store[m](...arguments),e}});const c=fe(),u=()=>{const m=(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),a(h,d)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var i,o;let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ne;const s=v(e)?e:this.language;if(typeof e=="function"&&(a=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();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)})};s?c(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>c(m)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(u)})}else a(null)}reloadResources(e,t,a){const s=fe();return typeof e=="function"&&(a=e,e=void 0),typeof t=="function"&&(a=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),a||(a=Ne),this.services.backendConnector.reload(e,t,i=>{s.resolve(),a(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&wt.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(a)){this.resolvedLanguage=a;break}}}changeLanguage(e,t){var a=this;this.isLanguageChangingTo=e;const s=fe();this.emit("languageChanging",e);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return a.t(...arguments)}),t&&t(c,function(){return a.t(...arguments)})},l=c=>{var m,h;!e&&!c&&this.services.languageDetector&&(c=[]);const u=v(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(h=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||h.call(m,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),s}getFixedT(e,t,a){var s=this;const i=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,m=new Array(u>2?u-2:0),h=2;h`${c.keyPrefix}${d}${p}`):g=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,s.t(g,c)};return v(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=a,i}t(){var s;for(var e=arguments.length,t=new Array(e),a=0;a1&&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 a=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(a.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(a,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(a,e)&&(!s||o(i,e)))}loadNamespaces(e,t){const a=fe();return this.options.ns?(v(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{a.resolve(),t&&t(s)}),a):(t&&t(),Promise.resolve())}loadLanguages(e,t){const a=fe();v(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{a.resolve(),t&&t(o)}),a):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((i=this.services)==null?void 0:i.languageUtils)||new ct(pt());return t.indexOf(a.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 be(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ne;const a=e.forkResourceStore;a&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new be(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},a){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((m,h)=>(m[h]={...c[u][h]},m),{})),{});i.store=new it(l,s),i.services.resourceStore=i.store}return i.translator=new Re(i.services,s),i.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),m=1;m{const r=P(e=>e.lang);return y.useEffect(()=>{L.changeLanguage(r)},[r]),null};function or(){return n.jsxs(Ut,{root:!0,options:{lerp:.1},children:[n.jsx(Wt,{}),n.jsxs("main",{className:"flex flex-col min-h-screen",children:[n.jsx(ir,{}),n.jsx("div",{className:"flex-auto",children:n.jsx(Ra,{})})]}),n.jsx(Jt,{})]})}const $=({className:r})=>n.jsx("div",{className:X("container py-32",r),children:n.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),I=r=>{const e=qt(),{hash:t}=Fe();y.useEffect(()=>{if(e){if(t){const a=document.querySelector(t);if(a){e.scrollTo(a,{lerp:.3,duration:.8,offset:-140});return}}e.scrollTo(0,{lerp:.3,duration:.3})}},[e,r,t])};function lr(){return I(),n.jsxs("div",{className:"flex flex-col",children:[n.jsx(Qt,{}),n.jsx(Yt,{}),n.jsx(Xt,{}),n.jsx(Zt,{}),n.jsx(ea,{}),n.jsx(ta,{}),n.jsx(aa,{}),n.jsx(na,{})]})}const A=(r,e,t,a)=>a==="ru"?r:a==="tm"?t:e,cr=r=>b.object({type:b.string(),company_name:b.string().min(3,{message:A("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",r)}),representative_name:b.string().min(3,{message:A("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",r)}),job_title:b.string().min(3,{message:A("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",r)}),participants_number:b.string().min(1,{message:A("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",r)}),country:b.string().min(3,{message:A("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",r)}),email_address:b.string().email({message:A("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",r)}),phone_number:b.string().min(8,{message:A("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",r)}),website:b.string().optional(),meeting_objective:b.string().min(3,{message:A("Укажите цель встречи","Specify the meeting objective","Duşuşygyň maksadyny görkeziň",r)}),proposal_description:b.string().optional(),government_agency:b.string().optional(),sector_industry:b.string().optional(),key_services:b.string().optional(),government_experience:b.string().optional(),preferred_meeting_datetime:b.string().optional(),meeting_mode:b.string().optional(),language_preference:b.string().optional(),technical_requirements:b.string().optional(),company_profile:b.custom(e=>e instanceof File,{message:A("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",r)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:A("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",r)}).optional(),proposal_presentation:b.custom(e=>e instanceof File,{message:A("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",r)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:A("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",r)}).optional(),relevant_certification:b.custom(e=>e instanceof File,{message:A("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",r)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:A("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",r)}).optional()}),ur={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 dr(r){const e=r+"CollectionProvider",[t,a]=Pe(e),[s,i]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:p,children:f}=g,x=ie.useRef(null),T=ie.useRef(new Map).current;return n.jsx(s,{scope:p,itemMap:T,collectionRef:x,children:f})};o.displayName=e;const l=r+"CollectionSlot",c=ie.forwardRef((g,p)=>{const{scope:f,children:x}=g,T=i(l,f),k=ye(p,T.collectionRef);return n.jsx(Xe,{ref:k,children:x})});c.displayName=l;const u=r+"CollectionItemSlot",m="data-radix-collection-item",h=ie.forwardRef((g,p)=>{const{scope:f,children:x,...T}=g,k=ie.useRef(null),N=ye(p,k),_=i(u,f);return ie.useEffect(()=>(_.itemMap.set(k,{ref:k,...T}),()=>void _.itemMap.delete(k))),n.jsx(Xe,{[m]:"",ref:N,children:x})});h.displayName=u;function d(g){const p=i(r+"CollectionConsumer",g);return ie.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(p.itemMap.values()).sort((_,F)=>T.indexOf(_.ref.current)-T.indexOf(F.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},d,a]}function mr(r){const e=y.useRef(r);return y.useEffect(()=>{e.current=r}),y.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}var pr=y.createContext(void 0);function hr(r){const e=y.useContext(pr);return r||e||"ltr"}var Be="rovingFocusGroup.onEntryFocus",gr={bubbles:!1,cancelable:!0},Ae="RovingFocusGroup",[Ge,Tt,fr]=dr(Ae),[xr,St]=Pe(Ae,[fr]),[yr,br]=xr(Ae),Nt=y.forwardRef((r,e)=>n.jsx(Ge.Provider,{scope:r.__scopeRovingFocusGroup,children:n.jsx(Ge.Slot,{scope:r.__scopeRovingFocusGroup,children:n.jsx(kr,{...r,ref:e})})}));Nt.displayName=Ae;var kr=y.forwardRef((r,e)=>{const{__scopeRovingFocusGroup:t,orientation:a,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=r,d=y.useRef(null),g=ye(e,d),p=hr(i),[f=null,x]=ft({prop:o,defaultProp:l,onChange:c}),[T,k]=y.useState(!1),N=mr(u),_=Tt(t),F=y.useRef(!1),[z,C]=y.useState(0);return y.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(Be,N),()=>S.removeEventListener(Be,N)},[N]),n.jsx(yr,{scope:t,orientation:a,dir:p,loop:s,currentTabStopId:f,onItemFocus:y.useCallback(S=>x(S),[x]),onItemShiftTab:y.useCallback(()=>k(!0),[]),onFocusableItemAdd:y.useCallback(()=>C(S=>S+1),[]),onFocusableItemRemove:y.useCallback(()=>C(S=>S-1),[]),children:n.jsx(ve.div,{tabIndex:T||z===0?-1:0,"data-orientation":a,...h,ref:g,style:{outline:"none",...r.style},onMouseDown:ne(r.onMouseDown,()=>{F.current=!0}),onFocus:ne(r.onFocus,S=>{const W=!F.current;if(S.target===S.currentTarget&&W&&!T){const ee=new CustomEvent(Be,gr);if(S.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const O=_().filter(B=>B.focusable),D=O.find(B=>B.active),we=O.find(B=>B.id===f),q=[D,we,...O].filter(Boolean).map(B=>B.ref.current);Et(q,m)}}F.current=!1}),onBlur:ne(r.onBlur,()=>k(!1))})})}),_t="RovingFocusGroupItem",Ct=y.forwardRef((r,e)=>{const{__scopeRovingFocusGroup:t,focusable:a=!0,active:s=!1,tabStopId:i,...o}=r,l=sa(),c=i||l,u=br(_t,t),m=u.currentTabStopId===c,h=Tt(t),{onFocusableItemAdd:d,onFocusableItemRemove:g}=u;return y.useEffect(()=>{if(a)return d(),()=>g()},[a,d,g]),n.jsx(Ge.ItemSlot,{scope:t,id:c,focusable:a,active:s,children:n.jsx(ve.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ne(r.onMouseDown,p=>{a?u.onItemFocus(c):p.preventDefault()}),onFocus:ne(r.onFocus,()=>u.onItemFocus(c)),onKeyDown:ne(r.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const f=wr(p,u.orientation,u.dir);if(f!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let T=h().filter(k=>k.focusable).map(k=>k.ref.current);if(f==="last")T.reverse();else if(f==="prev"||f==="next"){f==="prev"&&T.reverse();const k=T.indexOf(p.currentTarget);T=u.loop?Tr(T,k+1):T.slice(k+1)}setTimeout(()=>Et(T))}})})})});Ct.displayName=_t;var vr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jr(r,e){return e!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}function wr(r,e,t){const a=jr(r.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return vr[a]}function Et(r,e=!1){const t=document.activeElement;for(const a of r)if(a===t||(a.focus({preventScroll:e}),document.activeElement!==t))return}function Tr(r,e){return r.map((t,a)=>r[(e+a)%r.length])}var Sr=Nt,Nr=Ct,_r=y.createContext(void 0);function Cr(r){const e=y.useContext(_r);return r||e||"ltr"}function Er(r){const e=y.useRef({value:r,previous:r});return y.useMemo(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}var We="Radio",[zr,zt]=Pe(We),[Rr,Pr]=zr(We),Rt=y.forwardRef((r,e)=>{const{__scopeRadio:t,name:a,checked:s=!1,required:i,disabled:o,value:l="on",onCheck:c,form:u,...m}=r,[h,d]=y.useState(null),g=ye(e,x=>d(x)),p=y.useRef(!1),f=h?u||!!h.closest("form"):!0;return n.jsxs(Rr,{scope:t,checked:s,disabled:o,children:[n.jsx(ve.button,{type:"button",role:"radio","aria-checked":s,"data-state":Lt(s),"data-disabled":o?"":void 0,disabled:o,value:l,...m,ref:g,onClick:ne(r.onClick,x=>{s||c==null||c(),f&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})}),f&&n.jsx(Or,{control:h,bubbles:!p.current,name:a,value:l,checked:s,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Rt.displayName=We;var Pt="RadioIndicator",Ot=y.forwardRef((r,e)=>{const{__scopeRadio:t,forceMount:a,...s}=r,i=Pr(Pt,t);return n.jsx(ia,{present:a||i.checked,children:n.jsx(ve.span,{"data-state":Lt(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});Ot.displayName=Pt;var Or=r=>{const{control:e,checked:t,bubbles:a=!0,...s}=r,i=y.useRef(null),o=Er(t),l=ra(e);return y.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&h){const d=new Event("click",{bubbles:a});h.call(c,t),c.dispatchEvent(d)}},[o,t,a]),n.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:i,style:{...r.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Lt(r){return r?"checked":"unchecked"}var Lr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Je="RadioGroup",[Ir,ki]=Pe(Je,[St,zt]),It=St(),Ft=zt(),[Fr,$r]=Ir(Je),$t=y.forwardRef((r,e)=>{const{__scopeRadioGroup:t,name:a,defaultValue:s,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:m=!0,onValueChange:h,...d}=r,g=It(t),p=Cr(u),[f,x]=ft({prop:i,defaultProp:s,onChange:h});return n.jsx(Fr,{scope:t,name:a,required:o,disabled:l,value:f,onValueChange:x,children:n.jsx(Sr,{asChild:!0,...g,orientation:c,dir:p,loop:m,children:n.jsx(ve.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:p,...d,ref:e})})})});$t.displayName=Je;var At="RadioGroupItem",Dt=y.forwardRef((r,e)=>{const{__scopeRadioGroup:t,disabled:a,...s}=r,i=$r(At,t),o=i.disabled||a,l=It(t),c=Ft(t),u=y.useRef(null),m=ye(e,u),h=i.value===s.value,d=y.useRef(!1);return y.useEffect(()=>{const g=f=>{Lr.includes(f.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",p)}},[]),n.jsx(Nr,{asChild:!0,...l,focusable:!o,active:h,children:n.jsx(Rt,{disabled:o,required:i.required,checked:h,...c,...s,name:i.name,ref:m,onCheck:()=>i.onValueChange(s.value),onKeyDown:ne(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:ne(s.onFocus,()=>{var g;d.current&&((g=u.current)==null||g.click())})})})});Dt.displayName=At;var Ar="RadioGroupIndicator",Dr=y.forwardRef((r,e)=>{const{__scopeRadioGroup:t,...a}=r,s=Ft(t);return n.jsx(Ot,{...s,...a,ref:e})});Dr.displayName=Ar;var Bt=$t,Mt=Dt;const ke=y.forwardRef(({className:r,...e},t)=>n.jsx(Bt,{className:X("grid gap-2",r),...e,ref:t}));ke.displayName=Bt.displayName;const ae=y.forwardRef(({className:r,...e},t)=>n.jsx(Mt,{ref:t,className:X(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",r),...e}));ae.displayName=Mt.displayName;const te=[{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"}]},{h2:"Eksponent barada maglumat:",data:[{label:"Kompaniýanyň/guramanyň ady"},{label:"Wekiliniň ady"},{label:"Wezipesi"},{label:"Gatnaşyjylaryň sany"},{label:"Ýurt"},{label:"Email salgysy"},{label:"Telefon belgisi"},{label:"Web-saýt"}]}],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)"}]},{h2:"Duşuşygyň maksady:",secondH2:"Kompaniýa/gurama barada maglumat:",data:[{label:"Duşuşygyň esasy maksady"},{label:"Teklibiňiziň/taslamaňyzyň/islegiňiziň gysgaça beýany"},{label:"Degişli döwlet edarasy/bölümi"},{label:"Pudak senagaty"},{label:"Esasy hyzmatlar/önümler"},{label:"Hökümetler bilen ozalky iş tejribesi (eger bar bolsa)"}]}],Q=[{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"},{h2:"Duşuşygyň logistikasy:",secondH2:"Goşmaçalar",subtitle:"(Zerur bolsa aşakdaky resminamalary goşuň)",data:[{label:"Duşuşyk üçin islenýän sene we wagt"},{label:"Duşuşygyň islenýän görnüşi (ýüzbe-ýüz, wirtual (zoom/teams/başga), gibrid)"},{label:"Dil saýlamasy (iňlis, türkmen, rus, başga)"},{label:"Goşmaça tehniki ýa-da logistik talaplar (meselem, AW enjamlar, terjimeçiler we ş.m.)"},{label:"Kompaniýanyň/guramanyň profili"},{label:"Teklip/prezentasiýa"},{label:"Degişli şahadatnama/ygtyýarnama"}],button:"Ugratmak"}],Br=({handleNext:r})=>{I();const{control:e,formState:t}=Ve(),a=P(s=>s.lang);return n.jsxs(je.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[n.jsx("h2",{className:"h2 mb-8",children:te[j(a)].h2}),n.jsxs("div",{className:"flex flex-col gap-8",children:[n.jsx(_e,{defaultValue:1,control:e,name:"type",render:({field:s})=>n.jsxs(K,{className:"space-y-3",children:[n.jsx(H,{className:"text-xl",children:{ru:"Тип:",en:"Type:",tm:"Görnüşi:"}[a]}),n.jsx(U,{children:n.jsxs(ke,{onValueChange:s.onChange,defaultValue:s.value,className:"flex flex-col space-y-4",children:[n.jsxs(K,{className:"flex items-center space-x-3 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"B2B",checked:s.value==="B2B"})}),n.jsx(H,{className:"text-base",children:"B2B"})]}),n.jsxs(K,{className:"flex items-center space-x-3 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"B2G",checked:s.value==="B2G"})}),n.jsx(H,{className:"text-base",children:"B2G"})]})]})})]})}),n.jsx(w,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:te[j(a)].data[0].label}),n.jsx(w,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:te[j(a)].data[1].label}),n.jsx(w,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:te[j(a)].data[2].label}),n.jsx(w,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:te[j(a)].data[3].label}),n.jsx(w,{control:e,name:"country",error:t.errors.country,placeholder:"",label:te[j(a)].data[4].label}),n.jsx(w,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:te[j(a)].data[5].label}),n.jsx(w,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:te[j(a)].data[6].label}),n.jsx(w,{control:e,name:"website",placeholder:"",label:te[j(a)].data[7].label})]}),n.jsx(G,{variant:"secondary",type:"button",onClick:r,className:"w-full mt-10",children:{ru:"Далее",en:"Next",tm:"Indiki"}[a]})]})},Mr=({handleNext:r,handlePrev:e})=>{I();const t=P(i=>i.lang),{control:a,formState:s}=Ve();return n.jsxs(je.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[n.jsx("h2",{className:"h2 mb-8",children:se[j(t)].h2}),n.jsxs("div",{className:"flex flex-col gap-8",children:[n.jsx(w,{control:a,name:"meeting_objective",error:s.errors.meeting_objective,placeholder:"",label:se[j(t)].data[0].label}),n.jsx(w,{control:a,name:"proposal_description",error:s.errors.proposal_description,placeholder:"",label:se[j(t)].data[1].label}),n.jsx(w,{control:a,name:"government_agency",error:s.errors.government_agency,placeholder:"",label:se[j(t)].data[2].label}),n.jsx("h2",{className:"h2 mt-4",children:se[j(t)].secondH2}),n.jsx(w,{control:a,name:"sector_industry",error:s.errors.sector_industry,placeholder:"",label:se[j(t)].data[3].label}),n.jsx(w,{control:a,name:"key_services",error:s.errors.key_services,placeholder:"",label:se[j(t)].data[4].label}),n.jsx(w,{control:a,name:"government_experience",error:s.errors.government_experience,placeholder:"",label:se[j(t)].data[5].label})]}),n.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[n.jsx(G,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[t]}),n.jsx(G,{variant:"secondary",type:"button",onClick:r,className:"w-full",children:{ru:"Далее",en:"Next",tm:"Indiki"}[t]})]})]})},Gr=({handlePrev:r})=>{I();const{control:e,formState:t}=Ve(),a=P(s=>s.lang);return n.jsxs(je.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[n.jsx("h2",{className:"h2 mb-8",children:Q[j(a)].h2}),n.jsxs("div",{className:"flex flex-col gap-6",children:[n.jsx(w,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:Q[j(a)].data[0].label}),n.jsx(w,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:Q[j(a)].data[1].label}),n.jsx(w,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:Q[j(a)].data[2].label}),n.jsx(w,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:Q[j(a)].data[3].label})]}),n.jsxs("div",{className:"flex flex-col gap-8",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"h2 mt-10",children:Q[j(a)].secondH2}),n.jsx("h5",{className:"text-on_surface_v",children:Q[j(a)].subtitle})]}),n.jsx(w,{control:e,name:"company_profile",label:Q[j(a)].data[4].label,type:"file",textDark:!0}),n.jsx(w,{control:e,name:"proposal_presentation",label:Q[j(a)].data[5].label,type:"file",textDark:!0}),n.jsx(w,{control:e,name:"relevant_certification",label:Q[j(a)].data[6].label,type:"file",textDark:!0})]}),n.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[n.jsx(G,{type:"button",onClick:r,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[a]}),n.jsx(G,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?n.jsx(Ke,{className:"animate-spin"}):Q[j(a)].button})]})]})},Vr=({stage:r,setStage:e,success:t,setSuccess:a})=>{const s=P(h=>h.lang),i=y.useMemo(()=>cr(s),[s]),o=Oe({resolver:Ie(i),defaultValues:ur,mode:"onChange"}),l=h=>{switch(h){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[]}},c=async()=>{const h=l(r);await o.trigger(h)&&e(g=>g+1)},u=()=>e(h=>h-1),m=async h=>{try{const d=new FormData;Object.entries(h).forEach(([p,f])=>{(f instanceof File||f!==void 0)&&d.append(p,f)}),(await oa.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",d,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(d){console.error("Ошибка при отправке B2B формы:",d)}};return n.jsx(Le,{...o,children:n.jsx("form",{onSubmit:o.handleSubmit(m),children:n.jsxs("div",{className:"relative",children:[n.jsx(me,{children:r===1&&n.jsx(Br,{handleNext:c})}),n.jsx(me,{children:r===2&&n.jsx(Mr,{handleNext:c,handlePrev:u})}),n.jsx(me,{children:r===3&&t===!1&&n.jsx(Gr,{handlePrev:u})}),t&&n.jsx(He,{})]})})})};function Kr(){I();const r=P(i=>i.lang),[e,t]=y.useState(1),[a,s]=y.useState(!1);return n.jsxs("div",{className:"pb-[120px]",children:[n.jsx(le,{title:{ru:"B2B | B2G встречи",en:"B2B | B2G meetings",tm:"B2B | B2G duşuşyklar"}[r]}),!a&&e!==0&&n.jsx(la,{stage:e}),n.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:n.jsx(Vr,{success:a,setSuccess:s,stage:e,setStage:t})})]})}function Hr(){I();const r=P(e=>e.lang);return n.jsxs("div",{className:X(""),children:[n.jsx(le,{title:{ru:"О выставке",en:"About exhibition",tm:"Sergi hakynda"}[r]}),n.jsx(ca,{}),n.jsx(ua,{}),n.jsx(da,{}),n.jsx(ma,{}),n.jsx(pa,{})]})}const de=(r,e,t,a)=>a==="ru"?r:a==="tm"?t:e,Ur=r=>b.object({company_name:b.string().min(3,{message:de("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",r)}),rep_name:b.string().min(3,{message:de("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",r)}),job_title:b.string().min(3,{message:de("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",r)}),country:b.string().min(3,{message:de("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",r)}),email:b.string().email({message:de("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",r)}),phone:b.string().min(8,{message:de("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",r)}),website:b.string().optional(),visa_support:b.string().optional()}),Wr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},E=[{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"},{cover:"Stend bronlamak",h2:"Wariantlaryň birini saýlaň:",radio:"Enjamlaşdyrylmadyk meýdan",radio_2:"Enjamlaşdyrylan meýdan",label_1:"Kompaniýanyň/guramanyň ady",label_2:"Wekiliniň ady",label_3:"Wezipesi",number_of_participants:"Gatnaşyjylaryň sany",label_4:"Ýurt",label_5:"Email salgysy",label_6:"Telefon belgisi",label_7:"Web-saýt",visa:"Wiza goldawy:",visa_radio:"Hawa",visa_radio_2:"Ýok",button:"Ugratmak"}];function Jr(){I();const r=P(l=>l.lang),[e,t]=y.useState(!1),a=y.useMemo(()=>Ur(r),[r]),s=Oe({resolver:Ie(a),defaultValues:Wr}),i=async l=>{try{await ha(l)&&t(!0)}catch(c){console.error("POST sponsor error",c)}},{errors:o}=s.formState;return n.jsxs("div",{children:[n.jsx(le,{title:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[r]}),n.jsx(me,{children:!e&&n.jsx(Le,{...s,children:n.jsxs(je.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:[n.jsx(w,{label:E[j(r)].label_1,name:"company_name",control:s.control,error:o.company_name}),n.jsx(w,{label:E[j(r)].label_2,name:"rep_name",control:s.control,error:o.rep_name}),n.jsx(w,{label:E[j(r)].label_3,name:"job_title",control:s.control,error:o.job_title}),n.jsx(w,{label:E[j(r)].label_4,name:"country",control:s.control,error:o.country}),n.jsx(w,{label:E[j(r)].label_5,name:"email",control:s.control,error:o.email}),n.jsx(w,{label:E[j(r)].label_6,name:"phone",control:s.control,error:o.phone}),n.jsx(w,{label:E[j(r)].label_7,name:"website",control:s.control}),n.jsx(_e,{control:s.control,name:"visa_support",render:({field:l})=>n.jsxs(K,{className:"space-y-5",children:[n.jsx(H,{className:"text-xl",children:E[j(r)].visa}),n.jsx(U,{children:n.jsxs(ke,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[n.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"yes",checked:l.value==="yes"})}),n.jsx(H,{className:"text-base",children:E[j(r)].visa_radio})]}),n.jsxs(K,{className:"flex items-center space-x-5 space-y-0 ",children:[n.jsx(U,{children:n.jsx(ae,{value:"no",checked:l.value==="no"})}),n.jsx(H,{className:"text-base",children:E[j(r)].visa_radio_2})]})]})})]})}),n.jsx(G,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?n.jsx(Ke,{className:"animate-spin"}):E[j(r)].button})]})})}),e&&n.jsx(He,{delay:.3})]})}const qr=b.object({name:b.string().min(2,"error"),email:b.string().email(),phone:b.string().min(8,"error"),company:b.string().min(2,"error"),msg:b.string().min(5,"error")}),Qr={name:"",email:"",phone:"",company:"",msg:""},Yr=({className:r})=>{const{t:e}=he("contacts"),[t,a]=y.useState(!1),s=Oe({resolver:Ie(qr),defaultValues:Qr});async function i(l){try{const c=await fa(l);a(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=s.formState;return n.jsx("div",{className:X("bg-primary rounded-[8px] py-8 px-6 ",r),children:n.jsx(Le,{...s,children:n.jsxs("form",{onSubmit:s.handleSubmit(i),children:[n.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),n.jsxs("div",{className:"flex flex-col gap-8",children:[n.jsx(w,{onPrimary:!0,name:"name",control:s.control,label:e("name"),error:o.name}),n.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[n.jsx(w,{onPrimary:!0,name:"email",control:s.control,label:"Email",error:o.email}),n.jsx(w,{onPrimary:!0,name:"phone",control:s.control,label:e("phone"),error:o.phone})]}),n.jsx(w,{onPrimary:!0,name:"company",control:s.control,label:e("company"),error:o.name}),n.jsx(w,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:s.control,error:o.msg}),n.jsx(G,{disabled:s.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):s.formState.isSubmitting?n.jsx(ga,{className:"animate-spin text-white"}):e("button")})]})]})})})};function Xr(){I();const{t:r}=he("contacts");return n.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[n.jsx(Z,{children:n.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[n.jsx(Yr,{}),n.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[n.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),n.jsxs("div",{className:"flex flex-col gap-20",children:[n.jsxs("div",{className:"flex items-center gap-6",children:[n.jsx("img",{src:"/contacts/map.svg",alt:"address"}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl mb-2",children:r("address")}),n.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),n.jsxs("div",{className:"flex items-center gap-6",children:[n.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl mb-2",children:r("phone")}),n.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),n.jsxs("div",{className:"flex items-center gap-6",children:[n.jsx("img",{src:"/contacts/email.svg",alt:"email"}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),n.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),n.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:n.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 Zr=[{id:0,title:"Фото",titleEn:"Photo",titleTm:"Surat"},{id:1,title:"Видео",titleEn:"Video",titleTm:"Wideo"}],ei=({className:r})=>{var T,k,N,_,F;I();const[e,t]=y.useState(0),{data:a,isPending:s,status:i}=xa(1),{data:o}=xt(1),[l,c]=y.useState(!1),[u,m]=y.useState({id:0,type:"photo"}),h=P(z=>z.lang),d=({id:z,type:C})=>{c(!0),m({id:z,type:C})},{t:g}=he("main"),[p,f]=y.useState(!1),x=z=>z===0&&s?n.jsx(pe,{}):n.jsx(pe,{});return console.log(i),n.jsxs(n.Fragment,{children:[n.jsx(me,{children:l&&n.jsx(ya,{activeItem:u,setActiveItem:m,setIsOpen:c})}),n.jsxs("section",{className:X("md:mb-[120px] mb-20",r),children:[n.jsx(le,{title:{ru:"Моменты",en:"Moments",tm:"Pursatlar"}[h]}),n.jsx(Z,{className:"page-bottom md:pt-10 pt-6",children:n.jsxs("div",{className:"flex justify-center flex-col",children:[n.jsx(yt,{state:e,setState:t,data:Zr,className:"mb-6"}),e===0&&s?x(e):n.jsxs(n.Fragment,{children:[n.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"TurkmenTextile Expo-2025"}),n.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?(k=(T=a==null?void 0:a.photos)==null?void 0:T.slice(0,p?1e3:16))==null?void 0:k.map((z,C)=>{var S,W;return n.jsx("div",{onClick:()=>d({id:C,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:n.jsx("img",{src:((S=z==null?void 0:z.photo)==null?void 0:S.path)??"",alt:((W=z==null?void 0:z.photo)==null?void 0:W.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},C)}):(N=o==null?void 0:o.videos)==null?void 0:N.map((z,C)=>{var S;return n.jsxs("div",{onClick:()=>d({id:C,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[n.jsx(ba,{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 "}),n.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),n.jsx("img",{src:((S=z==null?void 0:z.video_photo)==null?void 0:S.path)??"",className:"size-full object-cover"})]},C)})})]}),((_=a==null?void 0:a.photos)==null?void 0:_.length)&&((F=a==null?void 0:a.photos)==null?void 0:F.length)>16&&!p&&n.jsx(G,{onClick:()=>f(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:g("media.button")})]})})]})]})},ti=(r,e)=>{const{data:t,isPending:a}=Ue({queryKey:["news-inner",r,e],queryFn:()=>ka(r,e),select:({data:s})=>s.data});return{data:t,isPending:a}};function ai(){var o;const{id:r}=Pa(),e=P(l=>l.lang),t=Number(r);I(t);const{data:a,isPending:s}=ti(t,e),{data:i}=bt(e);return s?n.jsx(pe,{}):n.jsxs(Z,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[n.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:a==null?void 0:a.title}),n.jsx("h4",{children:a==null?void 0:a.published_at.slice(0,10).split("-").reverse().join(".")})]}),n.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:n.jsx("img",{src:((o=a==null?void 0:a.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),n.jsx("div",{dangerouslySetInnerHTML:{__html:(a==null?void 0:a.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),n.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),n.jsxs("section",{children:[n.jsx("h2",{className:"h2 mb-6",children:{ru:"Читайте также:",en:"Read more:",tm:"Şeýle hem okaň:"}[e]}),n.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:i==null?void 0:i.filter(l=>l.id!==t).slice(0,3).map(l=>y.createElement(kt,{...l,key:l.title}))})]})]})}function ni(){I();const r=P(a=>a.lang),{data:e,isPending:t}=bt(r);return t?n.jsx(pe,{}):n.jsxs(Z,{className:"page-padding",children:[n.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[r]}),n.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(a=>y.createElement(kt,{...a,key:a.title}))})]})}const si=()=>{const r=P(a=>a.lang),{data:e,isPending:t}=Ue({queryKey:["participants",r],queryFn:()=>va(r),select:({data:a})=>a.data});return{data:e,isPending:t}},ri=({className:r})=>{var u,m,h,d,g;I();const e=P(p=>p.lang),{data:t,isPending:a}=si(),s={company:{ru:"Название компании",en:"Company name",tm:"Kompaniýanyň ady"}[e],country:{ru:"Страна",en:"Country",tm:"Ýurt"}[e],industry:{ru:"Сфера деятельности",en:"Industry",tm:"Pudak"}[e]},[i,o]=y.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,(m=t==null?void 0:t[2])==null?void 0:m.participants),c=t==null?void 0:t.filter(p=>i===1?p.id===3:i===2?p.id===1:p.id===2);return console.log(i),n.jsx(Z,{children:n.jsxs("section",{className:X("page-padding overflow-x-hidden",r),children:[n.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:{ru:"Список участников",en:"List of participants",tm:"Gatnasyjylaryň sanawy"}[e]}),n.jsx(yt,{state:i,setState:o,className:"mb-6 md:w-fit"}),n.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[n.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[n.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:s==null?void 0:s.company}),n.jsx("h3",{className:"flex-[0_0_19.80%]",children:s==null?void 0:s.country}),n.jsx("h3",{className:"flex-[0_0_34.65%]",children:s==null?void 0:s.industry})]}),a?n.jsx(pe,{}):i===0?l==null?void 0:l.map((p,f,x)=>n.jsx(Ze,{...p,arr:x==null?void 0:x.length,index:f,image:p.image??{path:""},image_country:p.image_country??{path:""}})):(g=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:g.map((p,f,x)=>n.jsx(Ze,{...p,arr:x==null?void 0:x.length,index:f,image:p.image??{path:""},image_country:p.image_country??{path:""}}))]})]})})},oe=(r,e,t,a)=>a==="ru"?r:a==="tm"?t:e,ii=r=>b.object({space_package:b.string(),company_name:b.string().min(3,{message:oe("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",r)}),rep_name:b.string().min(3,{message:oe("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",r)}),job_title:b.string().min(3,{message:oe("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",r)}),participants_number:b.preprocess(e=>Number(e),b.number().min(1,oe("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",r))),country:b.string().min(3,{message:oe("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",r)}),email:b.string().email({message:oe("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",r)}),phone:b.string().min(8,{message:oe("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",r)}),website:b.string().optional(),visa_support:b.string().optional()}),oi={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function li(){I();const r=P(c=>c.lang),[e,t]=y.useState(!1),a=y.useMemo(()=>ii(r),[r]),s=Oe({resolver:Ie(a),defaultValues:oi}),i=async c=>{await ja(c)&&t(!0)};y.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:o}=s.formState,l=j(r);return n.jsxs("div",{children:[n.jsx(le,{title:E[j(r)].cover}),n.jsx(me,{children:!e&&n.jsx(Le,{...s,children:n.jsxs(je.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:[n.jsx(_e,{control:s.control,name:"space_package",render:({field:c})=>n.jsxs(K,{className:"space-y-5",children:[n.jsx(H,{className:"text-xl",children:E[l].h2}),n.jsx(U,{children:n.jsxs(ke,{onValueChange:c.onChange,defaultValue:c.value,className:"flex flex-col space-y-4 ml-3",children:[n.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"space",checked:c.value==="space"})}),n.jsx(H,{className:"text-base",children:E[l].radio})]}),n.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"package",checked:c.value==="package"})}),n.jsx(H,{className:"text-base",children:E[l].radio_2})]})]})})]})}),n.jsx(w,{label:E[l].label_1,name:"company_name",control:s.control,error:o.company_name}),n.jsx(w,{label:E[l].label_2,name:"rep_name",control:s.control,error:o.rep_name}),n.jsx(w,{label:E[l].label_3,name:"job_title",control:s.control,error:o.job_title}),n.jsx(w,{label:E[l].number_of_participants,type:"number",name:"participants_number",control:s.control,error:o.participants_number}),n.jsx(w,{label:E[l].label_4,name:"country",control:s.control,error:o.country}),n.jsx(w,{label:E[l].label_5,name:"email",control:s.control,error:o.email}),n.jsx(w,{label:E[l].label_6,name:"phone",control:s.control,error:o.phone}),n.jsx(w,{label:E[l].label_7,name:"website",control:s.control}),n.jsx(_e,{control:s.control,name:"visa_support",render:({field:c})=>n.jsxs(K,{className:"space-y-5",children:[n.jsx(H,{className:"text-xl",children:E[l].visa}),n.jsx(U,{children:n.jsxs(ke,{onValueChange:c.onChange,defaultValue:c.value,className:"flex flex-col space-y-4 ml-3",children:[n.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[n.jsx(U,{children:n.jsx(ae,{value:"yes",checked:c.value==="yes"})}),n.jsx(H,{className:"text-base",children:E[l].visa_radio})]}),n.jsxs(K,{className:"flex items-center space-x-5 space-y-0 ",children:[n.jsx(U,{children:n.jsx(ae,{value:"no",checked:c.value==="no"})}),n.jsx(H,{className:"text-base",children:E[l].visa_radio_2})]})]})})]})}),n.jsx(G,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?n.jsx(Ke,{className:"animate-spin"}):E[l].button})]})})}),e&&n.jsx(He,{delay:.3})]})}const Gt=()=>{var p;const{t:r}=he("main"),e=P(f=>f.lang),{pathname:t}=Fe(),[a]=vt({loop:!0},[wa({delay:5e3,stopOnInteraction:!1})]),{title:s,texts:i,button:o,button2:l}=r("impressions.hero",{returnObjects:!0}),{title2:c,texts2:u}=r("impressions.hero",{returnObjects:!0}),m=(f,x)=>t==="/impressions"?f:x,h=(f,x)=>t==="/impressions"?f: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"],tm:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"]},g=()=>d[e]??d.en;return n.jsxs("section",{className:"",children:[t==="/impressions-tm"?n.jsx("div",{ref:a,className:"embla overflow-hidden",children:n.jsx("div",{className:"flex",children:g().map((f,x)=>n.jsx("img",{src:f,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):n.jsx("img",{src:r("impressions.banner")}),n.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:{ru:"Модные показы",en:"Fashion shows",tm:"Moda görkezişler"}[e]}),n.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:n.jsxs(Z,{className:"md:py-20 py-10",children:[n.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:m(s,c)}),n.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(p=h(i,u))==null?void 0:p.map((f,x)=>n.jsx("p",{className:"md:text-lg !normal",children:f},x))}),n.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[n.jsx(et,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:n.jsx(G,{size:"sm",className:"w-full",children:o})}),n.jsx(et,{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:n.jsx(G,{size:"sm",className:"w-full",children:l})})]})]})})]})},Vt=()=>{var m,h,d;const{t:r}=he("main"),{pathname:e}=Fe(),[t,a]=y.useState(1),{data:s}=xt(1),o=[...(s==null?void 0:s.videos.filter(g=>g.sections[0]==="fashion_shows"))??[]].sort((g,p)=>(g==null?void 0:g.fashion_shows_order_id)+(p==null?void 0:p.fashion_shows_order_id)),{videosTitle:l,videosTitle2:c}=r("impressions",{returnObjects:!0}),u=()=>e!=="/impressions";return n.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:n.jsxs(Z,{children:[n.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:u()?l:c}),n.jsxs("div",{className:"flex flex-col lg:flex-row lg:mx-20 gap-4 text-white overflow-hidden h-fit lg:h-[490px]",children:[n.jsxs("div",{className:"bg-gray_10 flex-auto p-2 rounded-[8px] border border-gray_09 flex flex-col justify-center h-full",children:[n.jsx("div",{className:"max-h-[450px]",children:n.jsx("video",{src:(d=(h=(m=s==null?void 0:s.videos)==null?void 0:m[t])==null?void 0:h.video)==null?void 0:d.path,muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})}),n.jsx("div",{className:"flex items-center justify-between mt-auto"})]}),n.jsx("div",{className:"bg-gray_10 flex-[0_0_20%] px-2 pt-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:n.jsx("div",{className:"flex flex-col gap-2 w-full overflow-y-auto overflow-x-hidden h-full",children:o==null?void 0:o.map((g,p)=>{var f;return n.jsx("div",{onClick:()=>a(p+1),className:"basis-[70px] w-[80%] cursor-pointer mx-auto overflow-hidden",children:n.jsx("img",{src:(f=g==null?void 0:g.video_photo)==null?void 0:f.path,alt:"",className:"object-cover size-full rounded-tl hover:scale-105 transition-transform rounded-bl"})},p)})})})]})]})})},ci=r=>{const e=P(s=>s.lang),{data:t,isPending:a}=Ue({queryKey:["designers",e],queryFn:()=>Ta(e,r),select:({data:s})=>s.data});return{data:t,isPending:a}},Kt=()=>{const{pathname:r}=Fe(),e=()=>r!=="/impressions",{data:t,isPending:a}=ci(e()?2:1),[s,i]=vt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,l]=y.useState(0),{t:c}=he("main"),[u,m]=y.useState(!1),[h,d]=y.useState(!0),g=y.useCallback(N=>{i&&i.scrollTo(N)},[i]);y.useEffect(()=>{if(!i)return;const N=()=>{l(i==null?void 0:i.selectedScrollSnap()),m(i.canScrollPrev()),d(i.canScrollNext())};return i.on("select",N),()=>{i.off("select",N)}},[i]);const{title:p,text:f,title2:x,text2:T}=c("impressions.designers",{returnObjects:!0}),k=[...(t==null?void 0:t.designers)??[]].sort((N,_)=>(N==null?void 0:N.order_id)-(_==null?void 0:_.order_id));return console.log(k),n.jsx("section",{className:"md:py-20 py-10",children:n.jsxs(Z,{className:"flex flex-col md:gap-10 gap-6",children:[n.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?p:x}),n.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?f:T}),n.jsxs("div",{ref:s,className:"embla",children:[n.jsx("div",{className:"flex embla__container",children:a?n.jsx(pe,{}):k==null?void 0:k.map((N,_)=>n.jsx(Sa,{...N,className:"embla__slide flex-[0_0_714px] mr-4"},_))}),n.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[n.jsx("button",{onClick:()=>i==null?void 0:i.scrollPrev(),className:X("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:n.jsx(Na,{})}),n.jsx("div",{className:"flex items-center gap-2",children:[...Array(k!=null&&k.length?Math.round((k==null?void 0:k.length)/2):5)].map((N,_)=>n.jsx("div",{onClick:()=>g==null?void 0:g(_),className:X("w-5 h-1 rounded-[2px] cursor-pointer",o===_?"bg-teritary":"bg-on_surface_v")},_))}),n.jsx("button",{onClick:()=>i==null?void 0:i.scrollNext(),className:X("size-12 flex items-center justify-center",!h&&"opacity-20 pointer-events-none"),children:n.jsx(_a,{})})]})]})]})})};function ui(){return I(),n.jsxs("div",{className:"overflow-x-hidden",children:[n.jsx(Gt,{}),n.jsx(Vt,{}),n.jsx(Kt,{})]})}function di(){return I(),n.jsxs("div",{className:"overflow-x-hidden",children:[n.jsx(Gt,{}),n.jsx(Vt,{}),n.jsx(Kt,{})]})}const mi="/about-place.jpg",R={title:{ruText:"Варианты участия",enText:"Participation Options",tmText:"Gatnaşmagyň görnüşleri"},exhibitionSpace:{ruText:"Аренда выставочной площади",enText:"Exhibition Space Rental",tmText:"Sergi meýdanyny kärendesine almak"},spaceOnly:{ruText:"Необорудованная площадь",enText:"Space Only",tmText:"Enjamlaşdyrylmadyk meýdan"},example:{ruText:"Пример",enText:"Example",tmText:"Mysal"},spaceOnlyDescription:{ruText:"Чистая площадь для последующей застройки (стандартная застройка или по индивидуальному дизайну). Включает: общую уборку и охрану павильона. Электричество в стоимость не включено.",enText:"Raw exhibition space for subsequent construction (standard booth or customized design). Includes general cleaning and pavilion security. Electricity is not included in the price.",tmText:"Soňky gurluşyk üçin arassa meýdan (standart gurluşyk ýa-da indiwidual dizaýn). Öz içine alýar: umumy arassaçylyk we pawilýonyň goragy. Elektrik energiýasy bahasynyň içine girenok."},standardBooth:{ruText:"Стандартная застройка",enText:"Standard Booth Construction",tmText:"Standart gurluşyk"},customBooth:{ruText:"Индивидуальный дизайн",enText:"Custom Booth Design",tmText:"Indiwidual dizaýn"},boothExampleDescription:{ruText:"Включает: базовое электроподключение (220V - 2 кВт), стены (стандартные или индивидуальный дизайн). Общую уборку и охрану павильона.",enText:"Includes: basic electrical connection (220V - 2 kW), walls (standard or customized design), general cleaning, and pavilion security.",tmText:"Öz içine alýar: esasy elektrik birikdirmesi (220V - 2 kWt), diwarlar (standart ýa-da indiwidual dizaýn). Umumy arassaçylyk we pawilýonyň goragy."},registrationFee:{ruText:"Участие со стендом включает регистрационную оплату.",enText:"Participation with a booth includes a registration fee.",tmText:"Stend bilen gatnaşmak hasaba alyş tölegini öz içine alýar."},pricingNote:{ruText:"Пожалуйста уточните стоимость у менеджера проекта.",enText:"Please check the pricing with the project manager.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},partnershipTitle:{ruText:"Партнёрские возможности",enText:"Partnership Opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},partnershipIntro:{ruText:'Если Вы заинтересованы в более активном выходе на рынок или целью Вашей компании является максимальное продвижение на рынок, используйте пакет "Партнерство выставки". Приобретая данную опцию, Вы получаете:',enText:'If your company is interested in a more active market presence or aims to maximize market promotion, we recommend the "Exhibition Partnership" package. By choosing this option, you will receive:',tmText:'Eger siziň kompaniýaňyz bazara has işjeň çykmaga gyzyklanýan bolsa, "Serginiň hyzmatdaşlygy" paketini ulanyň. Bu opsiýany alyp, siz şulary alarsyňyz:'},partnershipItems:[{ruText:"Статус Партнера выставки, в зависимости от выбранного пакета",enText:"Exhibition Partner status, depending on the selected package",tmText:"Saýlanan pakete baglylykda Serginiň hyzmatdaşy statusy"},{ruText:"Масштабную рекламную кампанию (размещение логотипа компании на всей рекламной продукции выставки)",enText:"A large-scale advertising campaign (placement of your company logo on all exhibition promotional materials)",tmText:"Uly gerimli reklama kampaniýasy (kompaniýanyň logotipini serginiň ähli reklama önümlerinde ýerleşdirmek)"},{ruText:"Широкую узнаваемость",enText:"Wide recognition",tmText:"Giň tanalmaklyk"},{ruText:"Ассоциирование выставки с именем Вашей компании и др.",enText:"Association of the exhibition with your company's name, and more",tmText:"Serginiň siziň kompaniýaňyzyň ady bilen assosiasiýasy we ş.m."}],partnershipNote:{ruText:"Пожалуйста, уточните стоимость у менеджера проекта.",enText:"Please contact the project manager to clarify the cost.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},exampleImageAlt:{ruText:"Пример площадки",enText:"Example space",tmText:"Meýdançanyň mysaly"},standardExampleAlt:{ruText:"Пример стандартной застройки",enText:"Standard booth example",tmText:"Standart gurluşygyň mysaly"},customExampleAlt:{ruText:"Пример индивидуального дизайна",enText:"Custom booth example",tmText:"Indiwidual dizaýnyň mysaly"}},gt=()=>n.jsx("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:n.jsx("path",{d:"M7 1V15M7 15L2 10M7 15L12 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function pi(){I();const r=P(t=>t.lang),e=t=>r==="ru"?t.ruText:r==="tm"?t.tmText??t.enText:t.enText;return n.jsxs("div",{children:[n.jsx(le,{title:e(R.title)}),n.jsx(Z,{className:"page-padding",children:n.jsxs("div",{className:"mx-auto max-w-[900px] text-on_surface",children:[n.jsx("p",{className:"mb-10 text-3xl font-medium",children:e(R.title)}),n.jsxs(G,{className:"mb-2 bg-primary md:text-base w-full",children:["1. ",e(R.exhibitionSpace)]}),n.jsx(G,{variant:"outline",className:"w-full mb-10 border border-primary py-1 text-center text-base text-primary md:text-base",children:e(R.spaceOnly)}),n.jsx("p",{className:"mb-5 text-center text-lg",children:e(R.example)}),n.jsx("div",{className:"mx-auto h-[180px] w-full max-w-[754px] md:h-[377px]",children:n.jsx("img",{src:mi,alt:e(R.exampleImageAlt),className:"size-full rounded-sm object-cover"})}),n.jsx("div",{className:"mt-5 text-center text-base leading-relaxed",children:n.jsx("p",{children:e(R.spaceOnlyDescription)})}),n.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[n.jsxs("div",{className:"w-full flex flex-col items-center gap-2 text-primary",children:[n.jsx(gt,{}),n.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(R.standardBooth)})]}),n.jsxs("div",{className:"flex flex-col items-center gap-2 text-primary",children:[n.jsx(gt,{}),n.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(R.customBooth)})]})]}),n.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[n.jsxs("div",{children:[n.jsxs("p",{className:"mb-5 text-base",children:[e(R.example),":"]}),n.jsx("img",{src:"/example.jpeg",alt:e(R.standardExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),n.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(R.boothExampleDescription)})]}),n.jsxs("div",{children:[n.jsxs("p",{className:"mb-5 text-base",children:[e(R.example),":"]}),n.jsx("img",{src:"/example-2.jpeg",alt:e(R.customExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),n.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(R.boothExampleDescription)})]})]}),n.jsx("p",{className:"mt-6 text-2xl",children:e(R.registrationFee)}),n.jsx("p",{className:"text-base mt-3",children:e(R.pricingNote)}),n.jsxs("div",{className:"mt-6 bg-primary py-3 text-center text-xs font-medium text-on_primary md:text-base",children:["2. ",e(R.partnershipTitle)]}),n.jsxs("div",{className:"mt-3 text-base leading-relaxed font-normal",children:[n.jsx("p",{className:"mb-2",children:e(R.partnershipIntro)}),n.jsx("ul",{className:"list-disc pl-5",children:R.partnershipItems.map(t=>n.jsx("li",{children:e(t)},t.enText))}),n.jsx("p",{className:"mt-2",children:e(R.partnershipNote)})]})]})})]})}const V={title:{ruText:"Партнерские возможности",enText:"Partner opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},intro:{ruText:"Предлагаем Вам воспользоваться комплексными возможностями - партнерскими пакетами, разработанными под различные маркетинговые задачи компании-участника, которые позволят максимально использовать коммерческий потенциал выставки для усиления бренда Вашей компании и бесспорно повысят эффективность продвижения Вашей компании.",enText:"We invite you to take advantage of integrated opportunities - partnership packages designed for various marketing objectives of the exhibiting company. They allow you to maximize the exhibition's commercial potential, strengthen your brand, and significantly increase the effectiveness of your promotion.",tmText:"Size dürli marketing wezipelerine gönükdirilen hyzmatdaşlyk paketlerinden peýdalanmagy teklip edýäris. Olar serginiň söwda potensialyny iň ýokary derejede ulanmaga, brendiňizi güýçlendirmäge we kompaniýaňyzy öňe sürmegiň netijeliligini ep-esli artdyrmaga mümkinçilik berýär."},partnership:{ruText:"Партнерство выставки - это всегда больше, чем просто участие. Это прекрасная возможность выгодно подать Вашу продукцию широкой публике в соответствии с Вашими основными целями и задачами. В каждом партнерском пакете предоставлены уникальные позиции, специально сформированные таким образом, что Вы наиболее точно и эффективно передаете обращение к целевой аудитории.",enText:"Exhibition partnership is always more than just participation. It is a great opportunity to present your products to a wide audience in line with your goals and objectives. Each partnership package includes unique placements structured so you can communicate your message to the target audience as precisely and effectively as possible.",tmText:"Serginiň hyzmatdaşlygy – bu diňe bir gatnaşmakdan has köp zatdyr. Bu öz önümleriňizi giň köpçülige hödürlemek üçin ajaýyp mümkinçilikdir. Her hyzmatdaşlyk paketinde maksatly auditoriýa iň takyk we netijeli ýol bilen ýüzlenmegiňiz üçin ýörite düzülen özboluşly orunlar bar."},benefitsTitle:{ruText:"Партнерство выставки Turkmen Textile позволит:",enText:"Partnership with Turkmen Textile will allow you:",tmText:"Turkmen Textile sergisiniň hyzmatdaşlygy mümkinçilik berer:"},benefits:[{ruText:"Укрепить позиции Вашей компании на рынке.",enText:"Strengthen your company's position in the market.",tmText:"Kompaniýaňyzyň bazardaky pozisiýasyny berkitmek."},{ruText:"Обеспечить существенное преимущество в конкурентной среде.",enText:"Gain a significant advantage in the competitive environment.",tmText:"Bäsdeşlik gurşawynda ep-esli artykmaçlyk gazanmak."},{ruText:"Закрепить имидж успешного бренда Вашей компании.",enText:"Reinforce the image of your company as a successful brand.",tmText:"Kompaniýaňyzyň üstünlikli brend hökmünde abraýyny berkitmek."},{ruText:"Сделать Вашу торговую марку узнаваемой для широкого круга участников и посетителей выставки.",enText:"Make your trademark recognizable to a wide range of exhibition participants and visitors.",tmText:"Söwda belgiňizi serginiň gatnaşyjylarynyň we gelýänleriniň giň topary üçin tanalýan etmek."},{ruText:"Выделить Вашу компанию среди других участников.",enText:"Stand out among other exhibitors.",tmText:"Kompaniýaňyzy beýleki gatnaşyjylaryň arasynda tapawutlandyrmak."}],highlight:{ruText:"Вы хотите, чтобы в профессиональной среде именно Вашу компанию считали ключевым игроком на рынке? Тогда заявите о себе громче всех!",enText:"Do you want your company to be seen as a key player in the professional community? Then make yourself heard louder than anyone else!",tmText:"Siz professional gurşawda kompaniýaňyzyň bazardaky esasy oýunçy hökmünde tanalmagyny isleýärsiňizmi? Onda hemmelerden has gaty sesleniniň!"},packagesTitle:{ruText:"Варианты партнерских пакетов:",enText:"Partnership package options:",tmText:"Hyzmatdaşlyk paketleriniň görnüşleri:"},packages:[{ruText:"Генеральный партнер выставки",enText:"General partner of the exhibition.",tmText:"Serginiň baş hyzmatdaşy"},{ruText:"Партнер Ленты Ведущих Посетителей",enText:"Lead visitor lanyard partner.",tmText:"Öňdebaryjy gelýänleriň lentasynyň hyzmatdaşy"},{ruText:"Партнер деловой программы",enText:"Business program partner.",tmText:"Işewür programmanyň hyzmatdaşy"},{ruText:"Партнер вечернего приема",enText:"Evening reception partner.",tmText:"Agşamky kabul edişligiň hyzmatdaşy"},{ruText:"Партнер пакетов посетителей",enText:"Visitor package partner.",tmText:"Gelýänleriň paketiniň hyzmatdaşy"},{ruText:"Партнер каталога выставки",enText:"Exhibition catalog partner.",tmText:"Serginiň katalogynyň hyzmatdaşy"},{ruText:"Партнер VIP делегации",enText:"VIP delegation partner.",tmText:"VIP delegasiýanyň hyzmatdaşy"},{ruText:"Партнер выставки",enText:"Exhibition partner.",tmText:"Serginiň hyzmatdaşy"}],optionsNote:{ruText:"Данные опции являются базовыми, но мы всегда готовы обсудить вопрос о специальных проектах в рамках партнерства выставки, которые будут соответствовать Вашему бюджету, потребностям и целям.",enText:"These options are basic, but we are always ready to discuss special projects within the exhibition partnership that match your budget, needs, and goals.",tmText:"Bu opsiýalar esasy opsiýalardyr, emma biz elmydama siziň býudjetiňize, zerurlyklarňyza we maksatlaryňyza laýyk gelýän ýörite taslamalary ara alyp maslahatlaşmaga taýýardyrys."},contactNote:{text:{ruText:"По вопросам цен и дополнительных опций партнерских пакетов выставки KIFT, пожалуйста, обращайтесь к ",enText:"For pricing and additional options of KIFT exhibition partnership packages, please contact the ",tmText:"Serginiň hyzmatdaşlyk paketleriniň bahalary we goşmaça opsiýalary boýunça haýyş edýäris, ýüz tutuň "},linkText:{ruText:"ОРГАНИЗАТОРАМ",enText:"ORGANIZERS",tmText:"GURAMAÇYLARA"}}};function hi(){I();const r=P(t=>t.lang),e=t=>r==="ru"?t.ruText:r==="tm"?t.tmText??t.enText:t.enText;return n.jsxs("div",{children:[n.jsx(le,{title:e(V.title)}),n.jsx(Z,{className:"page-padding text-sm!",children:n.jsxs("div",{className:"mx-auto max-w-[900px]",children:[n.jsx("h2",{className:"mb-3 text-2xl font-medium",children:e(V.title)}),n.jsx("div",{className:"mb-4 rounded-sm bg-surface_container px-4 py-3 text-sm leading-relaxed text-on_surface_v",children:e(V.intro)}),n.jsx("p",{className:"mb-4 text-sm leading-relaxed text-on_surface_v",children:e(V.partnership)}),n.jsx("h3",{className:"mb-2 text-base font-medium",children:e(V.benefitsTitle)}),n.jsx("ul",{className:"mb-4 list-disc pl-5 text-sm leading-relaxed text-on_surface_v",children:V.benefits.map(t=>n.jsx("li",{children:e(t)},t.enText))}),n.jsx("div",{className:"mb-6 rounded-sm border border-outline px-4 py-3 text-center text-[10px] uppercase text-on_surface_v",children:e(V.highlight)}),n.jsx("h3",{className:"mb-2 text-base font-medium",children:e(V.packagesTitle)}),n.jsx("ul",{className:"mb-4 border-t border-outline_v",children:V.packages.map(t=>n.jsxs("li",{className:"flex items-center gap-2 border-b border-outline_v py-2 text-sm text-on_surface_v",children:[n.jsx("span",{className:"text-xs text-primary",children:"✓"}),n.jsx("span",{children:e(t)})]},t.enText))}),n.jsx("p",{className:"text-sm leading-relaxed text-on_surface_v",children:e(V.optionsNote)}),n.jsxs("p",{className:"text-sm leading-relaxed text-on_surface_v",children:[e(V.contactNote.text),n.jsx("span",{className:"text-primary underline",children:e(V.contactNote.linkText)})]})]})})]})}const gi=[{element:n.jsx(or,{}),path:"/",children:[{element:n.jsx(lr,{}),path:"",errorElement:n.jsx($,{})},{element:n.jsx(Hr,{}),path:"about",errorElement:n.jsx($,{})},{element:n.jsx(Kr,{}),path:"B2B-B2G",errorElement:n.jsx($,{})},{element:n.jsx(Jr,{}),path:"become-sponsor",errorElement:n.jsx($,{})},{element:n.jsx(li,{}),path:"stend-form",errorElement:n.jsx($,{})},{element:n.jsx(Xr,{}),path:"contacts",errorElement:n.jsx($,{})},{element:n.jsx(ni,{}),path:"news",errorElement:n.jsx($,{})},{element:n.jsx(ai,{}),path:"news/:id",errorElement:n.jsx($,{})},{element:n.jsx(ri,{}),path:"participants",errorElement:n.jsx($,{})},{element:n.jsx(ei,{}),path:"media",errorElement:n.jsx($,{})},{element:n.jsx(ui,{}),path:"impressions",errorElement:n.jsx($,{})},{element:n.jsx(di,{}),path:"impressions-tm",errorElement:n.jsx($,{})},{element:n.jsx(pi,{}),path:"participation-options",errorElement:n.jsx($,{})},{element:n.jsx(hi,{}),path:"partner-opportunities",errorElement:n.jsx($,{})}]}],fi=Oa(gi),xi=new Ca;Fa.createRoot(document.getElementById("root")).render(n.jsx(y.StrictMode,{children:n.jsx(Ea,{client:xi,children:n.jsx(La,{router:fi})})})); diff --git a/dist/assets/react-vendor-CJoWVsUG.js b/dist/assets/react-vendor-B--yIoPF.js similarity index 99% rename from dist/assets/react-vendor-CJoWVsUG.js rename to dist/assets/react-vendor-B--yIoPF.js index e8c6fb5..c797d46 100644 --- a/dist/assets/react-vendor-CJoWVsUG.js +++ b/dist/assets/react-vendor-B--yIoPF.js @@ -50,4 +50,4 @@ Please change the parent to {throw TypeError(e)};var va=(e,t,n)=>t.has(e)||Hu("Cannot "+n);var E=(e,t,n)=>(va(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?Hu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(va(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(va(e,t,"access private method"),n);var Bi=(e,t,n,r)=>({set _(s){q(e,t,s,n)},get _(){return E(e,t,r)}});import{r as jx,a as m,R as ll,b as ul,c as Yh,L as Se,d as $i,e as de}from"./react-vendor-CJoWVsUG.js";var xa={exports:{}},Ts={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * 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 Ox(){if(qu)return Ts;qu=1;var e=jx(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},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)r.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:h,ref:y,props:d,_owner:s.current}}return Ts.Fragment=n,Ts.jsx=o,Ts.jsxs=o,Ts}var Zu;function Mx(){return Zu||(Zu=1,xa.exports=Ox()),xa.exports}var f=Mx(),Ti=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(){}},Dx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},On,cl,Uh,Ix=(Uh=class{constructor(){ee(this,On,Dx);ee(this,cl,!1)}setTimeoutProvider(e){q(this,On,e)}setTimeout(e,t){return E(this,On).setTimeout(e,t)}clearTimeout(e){E(this,On).clearTimeout(e)}setInterval(e,t){return E(this,On).setInterval(e,t)}clearInterval(e){E(this,On).clearInterval(e)}},On=new WeakMap,cl=new WeakMap,Uh),sr=new Ix;function Lx(e){setTimeout(e,0)}var wr=typeof window>"u"||"Deno"in globalThis;function ht(){}function Fx(e,t){return typeof e=="function"?e(t):e}function Ya(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $n(e,t){return typeof e=="function"?e(t):e}function Pt(e,t){return typeof e=="function"?e(t):e}function Ku(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==dl(o,t.options))return!1}else if(!Ks(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||s&&s!==t.state.fetchStatus||i&&!i(t))}function Gu(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Zs(t.options.mutationKey)!==Zs(i))return!1}else if(!Ks(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zs)(e)}function Zs(e){return JSON.stringify(e,(t,n)=>ec(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ks(e[n],t[n])):!1}var Vx=Object.prototype.hasOwnProperty;function ep(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Qu(e)&&Qu(t);if(!r&&!(ec(e)&&ec(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,c=r?new Array(a):{};let l=0;for(let u=0;u{sr.setTimeout(t,e)})}function tc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ep(e,t):t}function $x(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ux(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fl=Symbol();function tp(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function np(e,t){return typeof e=="function"?e(...t):!!e}function zx(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var cr,Mn,Kr,zh,Wx=(zh=class extends Ti{constructor(){super();ee(this,cr);ee(this,Mn);ee(this,Kr);q(this,Kr,t=>{if(!wr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,Mn)||this.setEventListener(E(this,Kr))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Mn))==null||t.call(this),q(this,Mn,void 0))}setEventListener(t){var n;q(this,Kr,t),(n=E(this,Mn))==null||n.call(this),q(this,Mn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){E(this,cr)!==t&&(q(this,cr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,cr)=="boolean"?E(this,cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cr=new WeakMap,Mn=new WeakMap,Kr=new WeakMap,zh),hl=new Wx;function nc(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var Hx=Lx;function qx(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Hx;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{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=>{r=a},setScheduler:a=>{s=a}}}var qe=qx(),Gr,Dn,Qr,Wh,Zx=(Wh=class extends Ti{constructor(){super();ee(this,Gr,!0);ee(this,Dn);ee(this,Qr);q(this,Qr,t=>{if(!wr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,Dn)||this.setEventListener(E(this,Qr))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Dn))==null||t.call(this),q(this,Dn,void 0))}setEventListener(t){var n;q(this,Qr,t),(n=E(this,Dn))==null||n.call(this),q(this,Dn,t(this.setOnline.bind(this)))}setOnline(t){E(this,Gr)!==t&&(q(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return E(this,Gr)}},Gr=new WeakMap,Dn=new WeakMap,Qr=new WeakMap,Wh),po=new Zx;function Kx(e){return Math.min(1e3*2**e,3e4)}function rp(e){return(e??"online")==="online"?po.isOnline():!0}var rc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function sp(e){let t=!1,n=0,r;const s=nc(),i=()=>s.status!=="pending",o=p=>{var v;if(!i()){const x=new rc(p);h(x),(v=e.onCancel)==null||v.call(e,x)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>hl.isFocused()&&(e.networkMode==="always"||po.isOnline())&&e.canRun(),u=()=>rp(e.networkMode)&&e.canRun(),d=p=>{i()||(r==null||r(),s.resolve(p))},h=p=>{i()||(r==null||r(),s.reject(p))},y=()=>new Promise(p=>{var v;r=x=>{(i()||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,i()||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(i())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 T;if(i())return;const b=e.retry??(wr?0:3),w=e.retryDelay??Kx,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:y()).then(()=>{t?h(x):g()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?g():y().then(g),s)}}var lr,Hh,ip=(Hh=class{constructor(){ee(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ya(this.gcTime)&&q(this,lr,sr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wr?1/0:5*60*1e3))}clearGcTimeout(){E(this,lr)&&(sr.clearTimeout(E(this,lr)),q(this,lr,void 0))}},lr=new WeakMap,Hh),ur,Xr,Rt,dr,ze,wi,fr,Mt,pn,qh,Gx=(qh=class extends ip{constructor(t){super();ee(this,Mt);ee(this,ur);ee(this,Xr);ee(this,Rt);ee(this,dr);ee(this,ze);ee(this,wi);ee(this,fr);q(this,fr,!1),q(this,wi,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,dr,t.client),q(this,Rt,E(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,ur,Ju(this.options)),this.state=t.state??E(this,ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,ze))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,wi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ju(this.options);n.data!==void 0&&(this.setState(Yu(n.data,n.dataUpdatedAt)),q(this,ur,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Rt).remove(this)}setData(t,n){const r=tc(this.state.data,t,this.options);return pe(this,Mt,pn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,Mt,pn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=E(this,ze))==null?void 0:r.promise;return(s=E(this,ze))==null||s.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,ur))}isActive(){return this.observers.some(t=>Pt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>$n(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Jh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,Rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(E(this,ze)&&(E(this,fr)?E(this,ze).cancel({revert:!0}):E(this,ze).cancelRetry()),this.scheduleGc()),E(this,Rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Mt,pn).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,u,d,h,y,g,p,v,x,b,w;if(this.state.fetchStatus!=="idle"&&((c=E(this,ze))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,ze))return E(this,ze).continueRetry(),E(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(S=>S.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,s=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(q(this,fr,!0),r.signal)})},i=()=>{const _=tp(this.options,n),T=(()=>{const A={client:E(this,dr),queryKey:this.queryKey,meta:this.meta};return s(A),A})();return q(this,fr,!1),this.options.persister?this.options.persister(_,T,this):_(T)},a=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,dr),state:this.state,fetchFn:i};return s(_),_})();(l=this.options.behavior)==null||l.onFetch(a,this),q(this,Xr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&pe(this,Mt,pn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),q(this,ze,sp({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:_=>{_ instanceof rc&&_.revert&&this.setState({...E(this,Xr),fetchStatus:"idle"}),r.abort()},onFail:(_,S)=>{pe(this,Mt,pn).call(this,{type:"failed",failureCount:_,error:S})},onPause:()=>{pe(this,Mt,pn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Mt,pn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const _=await E(this,ze).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(y=(h=E(this,Rt).config).onSuccess)==null||y.call(h,_,this),(p=(g=E(this,Rt).config).onSettled)==null||p.call(g,_,this.state.error,this),_}catch(_){if(_ instanceof rc){if(_.silent)return E(this,ze).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw pe(this,Mt,pn).call(this,{type:"error",error:_}),(x=(v=E(this,Rt).config).onError)==null||x.call(v,_,this),(w=(b=E(this,Rt).config).onSettled)==null||w.call(b,this.state.data,_,this),_}finally{this.scheduleGc()}}},ur=new WeakMap,Xr=new WeakMap,Rt=new WeakMap,dr=new WeakMap,ze=new WeakMap,wi=new WeakMap,fr=new WeakMap,Mt=new WeakSet,pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...op(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Yu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Xr,t.manual?s:void 0),s;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,Rt).notify({query:this,type:"updated",action:t})})},qh);function op(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ju(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dt,me,Si,it,hr,Yr,yn,In,_i,Jr,es,pr,mr,Ln,ts,be,Os,sc,ic,oc,ac,cc,lc,uc,ap,Zh,Qx=(Zh=class extends Ti{constructor(t,n){super();ee(this,be);ee(this,dt);ee(this,me);ee(this,Si);ee(this,it);ee(this,hr);ee(this,Yr);ee(this,yn);ee(this,In);ee(this,_i);ee(this,Jr);ee(this,es);ee(this,pr);ee(this,mr);ee(this,Ln);ee(this,ts,new Set);this.options=n,q(this,dt,t),q(this,In,null),q(this,yn,nc()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),ed(E(this,me),this.options)?pe(this,be,Os).call(this):this.updateResult(),pe(this,be,ac).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dc(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dc(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,cc).call(this),pe(this,be,lc).call(this),E(this,me).removeObserver(this)}setOptions(t){const n=this.options,r=E(this,me);if(this.options=E(this,dt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,uc).call(this),E(this,me).setOptions(this.options),n._defaulted&&!Ja(this.options,n)&&E(this,dt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const s=this.hasListeners();s&&td(E(this,me),r,this.options,n)&&pe(this,be,Os).call(this),this.updateResult(),s&&(E(this,me)!==r||Pt(this.options.enabled,E(this,me))!==Pt(n.enabled,E(this,me))||$n(this.options.staleTime,E(this,me))!==$n(n.staleTime,E(this,me)))&&pe(this,be,sc).call(this);const i=pe(this,be,ic).call(this);s&&(E(this,me)!==r||Pt(this.options.enabled,E(this,me))!==Pt(n.enabled,E(this,me))||i!==E(this,Ln))&&pe(this,be,oc).call(this,i)}getOptimisticResult(t){const n=E(this,dt).getQueryCache().build(E(this,dt),t),r=this.createResult(n,t);return Yx(this,r)&&(q(this,it,r),q(this,Yr,this.options),q(this,hr,E(this,me).state)),r}getCurrentResult(){return E(this,it)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,yn).status==="pending"&&E(this,yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){E(this,ts).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,dt).defaultQueryOptions(t),r=E(this,dt).getQueryCache().build(E(this,dt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,Os).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,it)))}createResult(t,n){var N;const r=E(this,me),s=this.options,i=E(this,it),o=E(this,hr),a=E(this,Yr),l=t!==r?t.state:E(this,Si),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const O=this.hasListeners(),I=!O&&ed(t,n),M=O&&td(t,r,n,s);(I||M)&&(d={...d,...op(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:p,status:v}=d;y=d.data;let x=!1;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let O;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(O=i.data,x=!0):O=typeof n.placeholderData=="function"?n.placeholderData((N=E(this,es))==null?void 0:N.state.data,E(this,es)):n.placeholderData,O!==void 0&&(v="success",y=tc(i==null?void 0:i.data,O,n),h=!0)}if(n.select&&y!==void 0&&!x)if(i&&y===(o==null?void 0:o.data)&&n.select===E(this,_i))y=E(this,Jr);else try{q(this,_i,n.select),y=n.select(y),y=tc(i==null?void 0:i.data,y,n),q(this,Jr,y),q(this,In,null)}catch(O){q(this,In,O)}E(this,In)&&(g=E(this,In),y=E(this,Jr),p=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",_=v==="error",S=w&&b,T=y!==void 0,R={status:v,fetchStatus:d.fetchStatus,isPending:w,isSuccess:v==="success",isError:_,isInitialLoading:S,isLoading:S,data:y,dataUpdatedAt:d.dataUpdatedAt,error:g,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:b,isRefetching:b&&!w,isLoadingError:_&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&T,isStale:pl(t,n),refetch:this.refetch,promise:E(this,yn),isEnabled:Pt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=R.data!==void 0,I=R.status==="error"&&!O,M=X=>{I?X.reject(R.error):O&&X.resolve(R.data)},U=()=>{const X=q(this,yn,R.promise=nc());M(X)},F=E(this,yn);switch(F.status){case"pending":t.queryHash===r.queryHash&&M(F);break;case"fulfilled":(I||R.data!==F.value)&&U();break;case"rejected":(!I||R.error!==F.reason)&&U();break}}return R}updateResult(){const t=E(this,it),n=this.createResult(E(this,me),this.options);if(q(this,hr,E(this,me).state),q(this,Yr,this.options),E(this,hr).data!==void 0&&q(this,es,E(this,me)),Ja(n,t))return;q(this,it,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!E(this,ts).size)return!0;const o=new Set(i??E(this,ts));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,it)).some(a=>{const c=a;return E(this,it)[c]!==t[c]&&o.has(c)})};pe(this,be,ap).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,ac).call(this)}},dt=new WeakMap,me=new WeakMap,Si=new WeakMap,it=new WeakMap,hr=new WeakMap,Yr=new WeakMap,yn=new WeakMap,In=new WeakMap,_i=new WeakMap,Jr=new WeakMap,es=new WeakMap,pr=new WeakMap,mr=new WeakMap,Ln=new WeakMap,ts=new WeakMap,be=new WeakSet,Os=function(t){pe(this,be,uc).call(this);let n=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ht)),n},sc=function(){pe(this,be,cc).call(this);const t=$n(this.options.staleTime,E(this,me));if(wr||E(this,it).isStale||!Ya(t))return;const r=Jh(E(this,it).dataUpdatedAt,t)+1;q(this,pr,sr.setTimeout(()=>{E(this,it).isStale||this.updateResult()},r))},ic=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},oc=function(t){pe(this,be,lc).call(this),q(this,Ln,t),!(wr||Pt(this.options.enabled,E(this,me))===!1||!Ya(E(this,Ln))||E(this,Ln)===0)&&q(this,mr,sr.setInterval(()=>{(this.options.refetchIntervalInBackground||hl.isFocused())&&pe(this,be,Os).call(this)},E(this,Ln)))},ac=function(){pe(this,be,sc).call(this),pe(this,be,oc).call(this,pe(this,be,ic).call(this))},cc=function(){E(this,pr)&&(sr.clearTimeout(E(this,pr)),q(this,pr,void 0))},lc=function(){E(this,mr)&&(sr.clearInterval(E(this,mr)),q(this,mr,void 0))},uc=function(){const t=E(this,dt).getQueryCache().build(E(this,dt),this.options);if(t===E(this,me))return;const n=E(this,me);q(this,me,t),q(this,Si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ap=function(t){qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,it))}),E(this,dt).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},Zh);function Xx(e,t){return Pt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ed(e,t){return Xx(e,t)||e.state.data!==void 0&&dc(e,t,t.refetchOnMount)}function dc(e,t,n){if(Pt(t.enabled,e)!==!1&&$n(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pl(e,t)}return!1}function td(e,t,n,r){return(e!==t||Pt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pl(e,n)}function pl(e,t){return Pt(t.enabled,e)!==!1&&e.isStaleByTime($n(t.staleTime,e))}function Yx(e,t){return!Ja(e.getCurrentResult(),t)}function nd(e){return{onFetch:(t,n)=>{var u,d,h,y,g;const r=t.options,s=(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=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{zx(w,()=>t.signal,()=>p=!0)},x=tp(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return v(I),I})(),R=await x(A),{maxPages:N}=t.options,O=S?Ux:$x;return{pages:O(w.pages,R,N),pageParams:O(w.pageParams,_,N)}};if(s&&i.length){const w=s==="backward",_=w?Jx:rd,S={pages:i,pageParams:o},T=_(r,S);a=await b(S,T,w)}else{const w=e??i.length;do{const _=c===0?o[0]??r.initialPageParam:rd(r,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 rd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Jx(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ci,Gt,Xe,gr,Qt,Pn,Kh,eb=(Kh=class extends ip{constructor(t){super();ee(this,Qt);ee(this,Ci);ee(this,Gt);ee(this,Xe);ee(this,gr);q(this,Ci,t.client),this.mutationId=t.mutationId,q(this,Xe,t.mutationCache),q(this,Gt,[]),this.state=t.state||tb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Gt).includes(t)||(E(this,Gt).push(t),this.clearGcTimeout(),E(this,Xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,Gt,E(this,Gt).filter(n=>n!==t)),this.scheduleGc(),E(this,Xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():E(this,Xe).remove(this))}continue(){var t;return((t=E(this,gr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,c,l,u,d,h,y,g,p,v,x,b,w,_,S,T,A;const n=()=>{pe(this,Qt,Pn).call(this,{type:"continue"})},r={client:E(this,Ci),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,gr,sp({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Qt,Pn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Qt,Pn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Xe).canRun(this)}));const s=this.state.status==="pending",i=!E(this,gr).canStart();try{if(s)n();else{pe(this,Qt,Pn).call(this,{type:"pending",variables:t,isPaused:i}),E(this,Xe).config.onMutate&&await E(this,Xe).config.onMutate(t,this,r);const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,r));N!==this.state.context&&pe(this,Qt,Pn).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const R=await E(this,gr).start();return await((l=(c=E(this,Xe).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context,r)),await((y=(h=E(this,Xe).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this,r)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,R,null,t,this.state.context,r)),pe(this,Qt,Pn).call(this,{type:"success",data:R}),R}catch(R){try{await((x=(v=E(this,Xe).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context,r))}catch(N){Promise.reject(N)}try{await((S=(_=E(this,Xe).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((A=(T=this.options).onSettled)==null?void 0:A.call(T,void 0,R,t,this.state.context,r))}catch(N){Promise.reject(N)}throw pe(this,Qt,Pn).call(this,{type:"error",error:R}),R}finally{E(this,Xe).runNext(this)}}},Ci=new WeakMap,Gt=new WeakMap,Xe=new WeakMap,gr=new WeakMap,Qt=new WeakSet,Pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),qe.batch(()=>{E(this,Gt).forEach(r=>{r.onMutationUpdate(t)}),E(this,Xe).notify({mutation:this,type:"updated",action:t})})},Kh);function tb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Dt,Ei,Gh,nb=(Gh=class extends Ti{constructor(t={}){super();ee(this,vn);ee(this,Dt);ee(this,Ei);this.config=t,q(this,vn,new Set),q(this,Dt,new Map),q(this,Ei,0)}build(t,n,r){const s=new eb({client:t,mutationCache:this,mutationId:++Bi(this,Ei)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){E(this,vn).add(t);const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n);r?r.push(t):E(this,Dt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,vn).delete(t)){const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&E(this,Dt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Ui(t);if(typeof n=="string"){const s=(r=E(this,Dt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qe.batch(()=>{E(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,vn).clear(),E(this,Dt).clear()})}getAll(){return Array.from(E(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gu(n,r))}findAll(t={}){return this.getAll().filter(n=>Gu(t,n))}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},vn=new WeakMap,Dt=new WeakMap,Ei=new WeakMap,Gh);function Ui(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Xt,Qh,rb=(Qh=class extends Ti{constructor(t={}){super();ee(this,Xt);this.config=t,q(this,Xt,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??dl(s,n);let o=this.get(i);return o||(o=new Gx({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){E(this,Xt).has(t.queryHash)||(E(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Xt).get(t)}getAll(){return[...E(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ku(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ku(t,r)):n}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,Qh),Ne,Fn,Vn,ns,rs,Bn,ss,is,Xh,sO=(Xh=class{constructor(e={}){ee(this,Ne);ee(this,Fn);ee(this,Vn);ee(this,ns);ee(this,rs);ee(this,Bn);ee(this,ss);ee(this,is);q(this,Ne,e.queryCache||new rb),q(this,Fn,e.mutationCache||new nb),q(this,Vn,e.defaultOptions||{}),q(this,ns,new Map),q(this,rs,new Map),q(this,Bn,0)}mount(){Bi(this,Bn)._++,E(this,Bn)===1&&(q(this,ss,hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ne).onFocus())})),q(this,is,po.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Bn)._--,E(this,Bn)===0&&((e=E(this,ss))==null||e.call(this),q(this,ss,void 0),(t=E(this,is))==null||t.call(this),q(this,is,void 0))}isFetching(e){return E(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,Fn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,Ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime($n(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return E(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=E(this,Ne).get(r.queryHash),i=s==null?void 0:s.state.data,o=Fx(t,i);if(o!==void 0)return E(this,Ne).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return qe.batch(()=>E(this,Ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,Ne);qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,Ne);return qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qe.batch(()=>E(this,Ne).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return qe.batch(()=>(E(this,Ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=qe.batch(()=>E(this,Ne).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,Ne).build(this,t);return n.isStaleByTime($n(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=nd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=nd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return po.isOnline()?E(this,Fn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ne)}getMutationCache(){return E(this,Fn)}getDefaultOptions(){return E(this,Vn)}setDefaultOptions(e){q(this,Vn,e)}setQueryDefaults(e,t){E(this,ns).set(Zs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,ns).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){E(this,rs).set(Zs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,rs).values()],n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dl(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===fl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Ne).clear(),E(this,Fn).clear()}},Ne=new WeakMap,Fn=new WeakMap,Vn=new WeakMap,ns=new WeakMap,rs=new WeakMap,Bn=new WeakMap,ss=new WeakMap,is=new WeakMap,Xh),cp=m.createContext(void 0),sb=e=>{const t=m.useContext(cp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},iO=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(cp.Provider,{value:e,children:t})),lp=m.createContext(!1),ib=()=>m.useContext(lp);lp.Provider;function ob(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ab=m.createContext(ob()),cb=()=>m.useContext(ab),lb=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?np(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ub=e=>{m.useEffect(()=>{e.clearReset()},[e])},db=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||np(n,[e.error,r])),fb=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},hb=(e,t)=>e.isLoading&&e.isFetching&&!t,pb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function mb(e,t,n){var h,y,g,p;const r=ib(),s=cb(),i=sb(),o=i.defaultQueryOptions(e);(y=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||y.call(h,o);const a=i.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",fb(o),lb(o,s,a),ub(s);const c=!i.getQueryCache().get(o.queryHash),[l]=m.useState(()=>new t(i,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const x=d?l.subscribe(qe.batchCalls(v)):ht;return l.updateResult(),x},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(o)},[o,l]),pb(o,u))throw sd(o,l,s);if(db({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw u.error;if((p=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||p.call(g,o,u),o.experimental_prefetchInRender&&!wr&&hb(u,r)){const v=c?sd(o,l,s):a==null?void 0:a.promise;v==null||v.catch(ht).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function En(e,t){return mb(e,Qx)}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function up(...e){return t=>{let n=!1;const r=e.map(s=>{const i=id(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function ml(e,t=[]){let n=[];function r(i,o){const a=m.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=m.useMemo(()=>g,Object.values(g));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,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,yb(s,...t)]}function yb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},xb=ll.useId||(()=>{}),bb=0;function to(e){const[t,n]=m.useState(xb());return vb(()=>{n(r=>r??String(bb++))},[e]),t?`radix-${t}`:""}function dp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=wb({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=dp(n),c=m.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else s(l)},[i,e,s,a]);return[o,c]}function wb({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,s=m.useRef(r),i=dp(t);return m.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var ms=m.forwardRef((e,t)=>{const{children:n,...r}=e,s=m.Children.toArray(n),i=s.find(_b);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return f.jsx(fc,{...r,ref:t,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return f.jsx(fc,{...r,ref:t,children:n})});ms.displayName="Slot";var fc=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const s=Eb(n),i=Cb(r,n.props);return n.type!==m.Fragment&&(i.ref=t?up(t,s):s),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});fc.displayName="SlotClone";var Sb=({children:e})=>f.jsx(f.Fragment,{children:e});function _b(e){return m.isValidElement(e)&&e.type===Sb}function Cb(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Eb(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],lt=Tb.reduce((e,t)=>{const n=m.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?ms:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ab(e,t){e&&ul.flushSync(()=>e.dispatchEvent(t))}function hp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Rb(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Pb(e,t=globalThis==null?void 0:globalThis.document){const n=Rb(e);m.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nb="DismissableLayer",hc="dismissableLayer.update",kb="dismissableLayer.pointerDownOutside",jb="dismissableLayer.focusOutside",od,pp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gl=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=m.useContext(pp),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=zt(t,A=>d(A)),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=Db(A=>{const R=A.target,N=[...l.branches].some(O=>O.contains(R));!_||N||(s==null||s(A),o==null||o(A),A.defaultPrevented||a==null||a())},h),T=Ib(A=>{const R=A.target;[...l.branches].some(O=>O.contains(R))||(i==null||i(A),o==null||o(A),A.defaultPrevented||a==null||a())},h);return Pb(A=>{b===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(od=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ad(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=od)}},[u,h,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ad())},[u,l]),m.useEffect(()=>{const A=()=>y({});return document.addEventListener(hc,A),()=>document.removeEventListener(hc,A)},[]),f.jsx(lt.div,{...c,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,S.onPointerDownCapture)})});gl.displayName=Nb;var Ob="DismissableLayerBranch",Mb=m.forwardRef((e,t)=>{const n=m.useContext(pp),r=m.useRef(null),s=zt(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(lt.div,{...e,ref:s})});Mb.displayName=Ob;function Db(e,t=globalThis==null?void 0:globalThis.document){const n=hp(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){mp(kb,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ib(e,t=globalThis==null?void 0:globalThis.document){const n=hp(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&mp(jb,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ad(){const e=new CustomEvent(hc);document.dispatchEvent(e)}function mp(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Ab(s,i):s.dispatchEvent(i)}function cd(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ba="focusScope.autoFocusOnMount",wa="focusScope.autoFocusOnUnmount",ld={bubbles:!1,cancelable:!0},Lb="FocusScope",yl=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=m.useState(null),l=cd(s),u=cd(i),d=m.useRef(null),h=zt(t,p=>c(p)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:Nn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Nn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Nn(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()}}},[r,a,y.paused]),m.useEffect(()=>{if(a){dd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(ba,ld);a.addEventListener(ba,l),a.dispatchEvent(x),x.defaultPrevented||(Fb(zb(gp(a)),{select:!0}),document.activeElement===p&&Nn(a))}return()=>{a.removeEventListener(ba,l),setTimeout(()=>{const x=new CustomEvent(wa,ld);a.addEventListener(wa,u),a.dispatchEvent(x),x.defaultPrevented||Nn(p??document.body,{select:!0}),a.removeEventListener(wa,u),dd.remove(y)},0)}}},[a,l,u,y]);const g=m.useCallback(p=>{if(!n&&!r||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,_]=Vb(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&Nn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&Nn(_,{select:!0})):x===b&&p.preventDefault()}},[n,r,y.paused]);return f.jsx(lt.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});yl.displayName=Lb;function Fb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function Vb(e){const t=gp(e),n=ud(t,e),r=ud(t.reverse(),e);return[n,r]}function gp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ud(e,t){for(const n of e)if(!Bb(n,{upTo:t}))return n}function Bb(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 $b(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$b(e)&&t&&e.select()}}var dd=Ub();function Ub(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fd(e,t),e.unshift(t)},remove(t){var n;e=fd(e,t),(n=e[0])==null||n.resume()}}}function fd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zb(e){return e.filter(t=>t.tagName!=="A")}var Wb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Hb="Portal",vl=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=m.useState(!1);Wb(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Yh.createPortal(f.jsx(lt.div,{...r,ref:t}),o):null});vl.displayName=Hb;var hd=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function qb(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var gs=e=>{const{present:t,children:n}=e,r=Zb(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=zt(r.ref,Kb(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};gs.displayName="Presence";function Zb(e){const[t,n]=m.useState(),r=m.useRef({}),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,c]=qb(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=zi(r.current);i.current=a==="mounted"?l:"none"},[a]),hd(()=>{const l=r.current,u=s.current;if(u!==e){const h=i.current,y=zi(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),hd(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=zi(r.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!s.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=zi(r.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:m.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function zi(e){return(e==null?void 0:e.animationName)||"none"}function Kb(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function yp(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pd()),document.body.insertAdjacentElement("beforeend",e[1]??pd()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function pd(){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 Jt=function(){return Jt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return dw;var t=fw(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pw=wp(),Wr="data-scroll-locked",mw=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Qb,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(Wr,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(s,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(no,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(ro,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(no," .").concat(no,` { - right: 0 `).concat(r,`; - } - - .`).concat(ro," .").concat(ro,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Wr,`] { - `).concat(Xb,": ").concat(a,`px; - } -`)},gd=function(){var e=parseInt(document.body.getAttribute(Wr)||"0",10);return isFinite(e)?e:0},gw=function(){m.useEffect(function(){return document.body.setAttribute(Wr,(gd()+1).toString()),function(){var e=gd()-1;e<=0?document.body.removeAttribute(Wr):document.body.setAttribute(Wr,e.toString())}},[])},yw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;gw();var i=m.useMemo(function(){return hw(s)},[s]);return m.createElement(pw,{styles:mw(i,!t,s,n?"":"!important")})},pc=!1;if(typeof window<"u")try{var Wi=Object.defineProperty({},"passive",{get:function(){return pc=!0,!0}});window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{pc=!1}var Or=pc?{passive:!1}:!1,vw=function(e){return e.tagName==="TEXTAREA"},Sp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vw(e)&&n[t]==="visible")},xw=function(e){return Sp(e,"overflowY")},bw=function(e){return Sp(e,"overflowX")},yd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=_p(e,r);if(s){var i=Cp(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ww=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_p=function(e,t){return e==="v"?xw(t):bw(t)},Cp=function(e,t){return e==="v"?ww(t):Sw(t)},_w=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cw=function(e,t,n,r,s){var i=_w(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,h=0;do{var y=Cp(e,a),g=y[0],p=y[1],v=y[2],x=p-v-i*g;(g||x)&&_p(e,a)&&(d+=x,h+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vd=function(e){return[e.deltaX,e.deltaY]},xd=function(e){return e&&"current"in e?e.current:e},Ew=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tw=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Aw=0,Mr=[];function Rw(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),s=m.useState(Aw++)[0],i=m.useState(wp)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Gb([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var x=Hi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-x[0],_="deltaY"in p?p.deltaY:b[1]-x[1],S,T=p.target,A=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&A==="h"&&T.type==="range")return!1;var R=yd(A,T);if(!R)return!0;if(R?S=A:(S=A==="v"?"h":"v",R=yd(A,T)),!R)return!1;if(!r.current&&"changedTouches"in p&&(w||_)&&(r.current=S),!S)return!0;var N=r.current||S;return Cw(N,v,p,N==="h"?w:_)},[]),c=m.useCallback(function(p){var v=p;if(!(!Mr.length||Mr[Mr.length-1]!==i)){var x="deltaY"in v?vd(v):Hi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Ew(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(xd).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=m.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Pw(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=m.useCallback(function(p){n.current=Hi(p),r.current=void 0},[]),d=m.useCallback(function(p){l(p.type,vd(p),p.target,a(p,e.lockRef.current))},[]),h=m.useCallback(function(p){l(p.type,Hi(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Mr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Or),document.addEventListener("touchmove",c,Or),document.addEventListener("touchstart",u,Or),function(){Mr=Mr.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Or),document.removeEventListener("touchmove",c,Or),document.removeEventListener("touchstart",u,Or)}},[]);var y=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:Tw(s)}):null,y?m.createElement(yw,{gapMode:e.gapMode}):null)}function Pw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nw=sw(bp,Rw);var xl=m.forwardRef(function(e,t){return m.createElement(Wo,Jt({},e,{ref:t,sideCar:Nw}))});xl.classNames=Wo.classNames;var kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,qi=new WeakMap,Zi={},Ta=0,Ep=function(e){return e&&(e.host||Ep(e.parentNode))},jw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ep(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ow=function(e,t,n,r){var s=jw(t,Array.isArray(e)?e:[e]);Zi[n]||(Zi[n]=new WeakMap);var i=Zi[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(r),g=y!==null&&y!=="false",p=(Dr.get(h)||0)+1,v=(i.get(h)||0)+1;Dr.set(h,p),i.set(h,v),o.push(h),p===1&&g&&qi.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"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=Dr.get(d)-1,y=i.get(d)-1;Dr.set(d,h),i.set(d,y),h||(qi.has(d)||d.removeAttribute(r),qi.delete(d)),y||d.removeAttribute(n)}),Ta--,Ta||(Dr=new WeakMap,Dr=new WeakMap,qi=new WeakMap,Zi={})}},Tp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=kw(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Ow(r,s,n,"aria-hidden")):function(){return null}},bl="Dialog",[Ap,oO]=ml(bl),[Mw,Wt]=Ap(bl),Rp=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=fp({prop:r,defaultProp:s,onChange:i});return f.jsx(Mw,{scope:t,triggerRef:a,contentRef:c,contentId:to(),titleId:to(),descriptionId:to(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Rp.displayName=bl;var Pp="DialogTrigger",Np=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Pp,n),i=zt(t,s.triggerRef);return f.jsx(lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_l(s.open),...r,ref:i,onClick:vt(e.onClick,s.onOpenToggle)})});Np.displayName=Pp;var wl="DialogPortal",[Dw,kp]=Ap(wl,{forceMount:void 0}),jp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Wt(wl,t);return f.jsx(Dw,{scope:t,forceMount:n,children:m.Children.map(r,o=>f.jsx(gs,{present:n||i.open,children:f.jsx(vl,{asChild:!0,container:s,children:o})}))})};jp.displayName=wl;var mo="DialogOverlay",Op=m.forwardRef((e,t)=>{const n=kp(mo,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Wt(mo,e.__scopeDialog);return i.modal?f.jsx(gs,{present:r||i.open,children:f.jsx(Iw,{...s,ref:t})}):null});Op.displayName=mo;var Iw=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(mo,n);return f.jsx(xl,{as:ms,allowPinchZoom:!0,shards:[s.contentRef],children:f.jsx(lt.div,{"data-state":_l(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Sr="DialogContent",Mp=m.forwardRef((e,t)=>{const n=kp(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Wt(Sr,e.__scopeDialog);return f.jsx(gs,{present:r||i.open,children:i.modal?f.jsx(Lw,{...s,ref:t}):f.jsx(Fw,{...s,ref:t})})});Mp.displayName=Sr;var Lw=m.forwardRef((e,t)=>{const n=Wt(Sr,e.__scopeDialog),r=m.useRef(null),s=zt(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return Tp(i)},[]),f.jsx(Dp,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,i=>i.preventDefault())})}),Fw=m.forwardRef((e,t)=>{const n=Wt(Sr,e.__scopeDialog),r=m.useRef(!1),s=m.useRef(!1);return f.jsx(Dp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Dp=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Wt(Sr,n),c=m.useRef(null),l=zt(t,c);return yp(),f.jsxs(f.Fragment,{children:[f.jsx(yl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:f.jsx(gl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":_l(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Vw,{titleId:a.titleId}),f.jsx($w,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Sl="DialogTitle",Ip=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Sl,n);return f.jsx(lt.h2,{id:s.titleId,...r,ref:t})});Ip.displayName=Sl;var Lp="DialogDescription",Fp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Lp,n);return f.jsx(lt.p,{id:s.descriptionId,...r,ref:t})});Fp.displayName=Lp;var Vp="DialogClose",Bp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Vp,n);return f.jsx(lt.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>s.onOpenChange(!1))})});Bp.displayName=Vp;function _l(e){return e?"open":"closed"}var $p="DialogTitleWarning",[aO,Up]=gb($p,{contentName:Sr,titleName:Sl,docsSlug:"dialog"}),Vw=({titleId:e})=>{const t=Up($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 m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bw="DialogDescriptionWarning",$w=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Up(Bw).contentName}}.`;return m.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zp=Rp,Wp=Np,Hp=jp,Ho=Op,qo=Mp,Zo=Ip,Ko=Fp,Cl=Bp;function qp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,wd=Zp,Go=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const h=bd(u)||bd(d);return s[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||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...l,d,h]:l},[]);return wd(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 Uw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var zw={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 Ww=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>m.createElement("svg",{ref:c,...zw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Kp("lucide",s),...a},[...o.map(([l,u])=>m.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 Ct=(e,t)=>{const n=m.forwardRef(({className:r,...s},i)=>m.createElement(Ww,{ref:i,iconNode:t,className:Kp(`lucide-${Uw(e)}`,r),...s}));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 Hw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qw=Ct("ArrowRight",Hw);/** - * @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 Zw=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Kw=Ct("ArrowUpRight",Zw);/** - * @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 Gw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qw=Ct("ChevronDown",Gw);/** - * @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 Xw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mc=Ct("ChevronLeft",Xw);/** - * @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:"m9 18 6-6-6-6",key:"mthhwq"}]],Gp=Ct("ChevronRight",Yw);/** - * @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 Jw=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],e0=Ct("Facebook",Jw);/** - * @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 t0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Qp=Ct("LoaderCircle",t0);/** - * @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 n0=[["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"}]],cO=Ct("Loader",n0);/** - * @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 r0=[["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"}]],s0=Ct("MapPin",r0);/** - * @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 i0=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],lO=Ct("Play",i0);/** - * @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 o0=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],a0=Ct("Smartphone",o0);/** - * @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 c0=[["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"}]],l0=Ct("Upload",c0);/** - * @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 u0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],El=Ct("X",u0),Tl="-",d0=e=>{const t=h0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Tl);return a[0]===""&&a.length!==1&&a.shift(),Xp(a,t)||f0(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Xp=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Xp(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Tl);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Sd=/^\[(.+)\]$/,f0=e=>{if(Sd.test(e)){const t=Sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},h0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return m0(Object.entries(e.classGroups),n).forEach(([i,o])=>{gc(o,r,i,t)}),r},gc=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:_d(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(p0(s)){gc(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{gc(o,_d(t,i),n,r)})})},_d=(e,t)=>{let n=e;return t.split(Tl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},p0=e=>e.isThemeGetter,m0=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,g0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Yp="!",y0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let v=0;vu?d-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},v0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},x0=e=>({cache:g0(e.cacheSize),parseClassName:y0(e),...d0(e)}),b0=/\s+/,w0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(b0);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 g=!!y,p=r(g?h.substring(0,y):h);if(!p){if(!g){a=l+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=l+(a.length>0?" "+a:a);continue}g=!1}const v=v0(u).join(":"),x=d?v+Yp:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=s(p,g);for(let _=0;_0?" "+a:a)}return a};function S0(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=x0(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=w0(c,n);return s(c,u),u}return function(){return i(S0.apply(null,arguments))}}const Te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},em=/^\[(?:([a-z-]+):)?(.+)\]$/i,C0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),T0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A0=/\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$/,R0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=e=>Hr(e)||E0.has(e)||C0.test(e),An=e=>ys(e,"length",F0),Hr=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>ys(e,"number",Hr),As=e=>!!e&&Number.isInteger(Number(e)),k0=e=>e.endsWith("%")&&Hr(e.slice(0,-1)),ce=e=>em.test(e),Rn=e=>T0.test(e),j0=new Set(["length","size","percentage"]),O0=e=>ys(e,j0,tm),M0=e=>ys(e,"position",tm),D0=new Set(["image","url"]),I0=e=>ys(e,D0,B0),L0=e=>ys(e,"",V0),Rs=()=>!0,ys=(e,t,n)=>{const r=em.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},F0=e=>A0.test(e)&&!R0.test(e),tm=()=>!1,V0=e=>P0.test(e),B0=e=>N0.test(e),$0=()=>{const e=Te("colors"),t=Te("spacing"),n=Te("blur"),r=Te("brightness"),s=Te("borderColor"),i=Te("borderRadius"),o=Te("borderSpacing"),a=Te("borderWidth"),c=Te("contrast"),l=Te("grayscale"),u=Te("hueRotate"),d=Te("invert"),h=Te("gap"),y=Te("gradientColorStops"),g=Te("gradientColorStopPositions"),p=Te("inset"),v=Te("margin"),x=Te("opacity"),b=Te("padding"),w=Te("saturate"),_=Te("scale"),S=Te("sepia"),T=Te("skew"),A=Te("space"),R=Te("translate"),N=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ce,t],M=()=>[ce,t],U=()=>["",fn,An],F=()=>["auto",Hr,ce],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],se=()=>["","0",ce],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Hr,ce];return{cacheSize:500,separator:":",theme:{colors:[Rs],spacing:[fn,An],blur:["none","",Rn,ce],brightness:ye(),borderColor:[e],borderRadius:["none","","full",Rn,ce],borderSpacing:M(),borderWidth:U(),contrast:ye(),grayscale:se(),hueRotate:ye(),invert:se(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[k0,An],inset:I(),margin:I(),opacity:ye(),padding:M(),saturate:ye(),scale:ye(),sepia:se(),skew:ye(),space:M(),translate:M()},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:[...X(),ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],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",As,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:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",As,ce]}],"grid-cols":[{"grid-cols":[Rs]}],"col-start-end":[{col:["auto",{span:["full",As,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Rs]}],"row-start-end":[{row:["auto",{span:[As,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",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"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:[Rs]}],"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",Hr,Aa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fn,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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fn,An]}],"underline-offset":[{"underline-offset":["auto",fn,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:M()}],"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:[...X(),M0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",O0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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:[...Y(),"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:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[fn,ce]}],"outline-w":[{outline:[fn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[fn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,L0]}],"shadow-color":[{shadow:[Rs]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],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":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[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:[As,ce]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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:[fn,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"]}}},U0=_0($0);function V(...e){return U0(Zp(e))}const z0=zp,W0=Wp,H0=Cl,q0=Hp,nm=m.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}));nm.displayName=Ho.displayName;const Z0=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"}}),rm=m.forwardRef(({side:e="right",className:t,children:n,...r},s)=>f.jsxs(q0,{children:[f.jsx(nm,{}),f.jsxs(qo,{ref:s,className:V(Z0({side:e}),t),...r,children:[f.jsxs(Cl,{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(El,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));rm.displayName=qo.displayName;const sm=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});sm.displayName="SheetHeader";const K0=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));K0.displayName=Zo.displayName;const G0=m.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));G0.displayName=Ko.displayName;const Q0=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 hover:bg-primary hover:text-white duration-300",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"}}),tt=m.forwardRef(({className:e,variant:t,size:n,loading:r,children:s,asChild:i=!1,...o},a)=>{const c=i?ms:"button";return f.jsx(c,{className:V(Q0({variant:t,size:n,className:e})),ref:a,...o,children:r?f.jsx(Qp,{className:"w-5 h-5 animate-spin"}):s})});tt.displayName="Button";const X0=(e,t,n,r)=>{var i,o,a,c;const s=[n,{code:t,...r||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);yr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Cd={},yc=(e,t,n,r)=>{yr(n)&&Cd[n]||(yr(n)&&(Cd[n]=new Date),X0(e,t,n,r))},im=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},vc=(e,t,n)=>{e.loadNamespaces(t,im(e,n))},Ed=(e,t,n,r)=>{if(yr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return vc(e,n,r);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,im(e,r))},Y0=(e,t,n={})=>!t.languages||!t.languages.length?(yc(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}),yr=e=>typeof e=="string",J0=e=>typeof e=="object"&&e!==null,eS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nS=e=>tS[e],rS=e=>e.replace(eS,nS);let xc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rS};const sS=(e={})=>{xc={...xc,...e}},iS=()=>xc;let om;const oS=e=>{om=e},aS=()=>om,uO={type:"3rdParty",init(e){sS(e.options.react),oS(e)}},cS=m.createContext();class lS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uS=(e,t)=>{const n=m.useRef();return m.useEffect(()=>{n.current=e},[e,t]),n.current},am=(e,t,n,r)=>e.getFixedT(t,n,r),dS=(e,t,n,r)=>m.useCallback(am(e,t,n,r),[e,t,n,r]),Nr=(e,t={})=>{var _,S,T,A;const{i18n:n}=t,{i18n:r,defaultNS:s}=m.useContext(cS)||{},i=n||r||aS();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new lS),!i){yc(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>yr(I)?I:J0(I)&&yr(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}(_=i.options.react)!=null&&_.wait&&yc(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...iS(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||s||((S=i.options)==null?void 0:S.defaultNS);l=yr(l)?[l]:l||["translation"],(A=(T=i.reportNamespaces).addUsedNamespaces)==null||A.call(T,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>Y0(R,i,o)),d=dS(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),h=()=>d,y=()=>am(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[g,p]=m.useState(h);let v=l.join();t.lng&&(v=`${t.lng}${v}`);const x=uS(v),b=m.useRef(!0);m.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=o;b.current=!0,!u&&!a&&(t.lng?Ed(i,t.lng,l,()=>{b.current&&p(y)}):vc(i,l,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const O=()=>{b.current&&p(y)};return R&&(i==null||i.on(R,O)),N&&(i==null||i.store.on(N,O)),()=>{b.current=!1,i&&(R==null||R.split(" ").forEach(I=>i.off(I,O))),N&&i&&N.split(" ").forEach(I=>i.store.off(I,O))}},[i,v]),m.useEffect(()=>{b.current&&u&&p(h)},[i,c,u]);const w=[g,i,u];if(w.t=g,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(R=>{t.lng?Ed(i,t.lng,l,()=>R()):vc(i,l,()=>R())})},cm=({className:e})=>f.jsx("div",{className:V("xl:h-14 h-10 w-auto",e),children:f.jsx("img",{src:"/logo.svg",alt:"logo",className:"size-full object-contain"})}),lm=({className:e,image:t,title:n,iconClassName:r})=>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",r),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})]}),fS=({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})]}),hS=({className:e,title:t,text:n,img:r,link:s,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:r,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(Se,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:f.jsxs(tt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(Kw,{})]})})]})]}),um=({className:e,title:t,text:n,bottomClassName:r})=>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",r),children:n})]}),pS=({className:e,text:t,title:n,image:r})=>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:r.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})]})]}),Al=m.createContext({});function Rl(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=m.createContext(null),Pl=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class mS extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function gS({children:e,isPresent:t,anchorX:n}){const r=m.useId(),s=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(Pl);return m.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!s.current||!a||!c)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${a}px !important; - height: ${c}px !important; - ${h}px !important; - top: ${l}px !important; - } - `),()=>{document.head.removeChild(y)}},[t]),f.jsx(mS,{isPresent:t,childRef:s,sizeRef:i,children:m.cloneElement(e,{ref:s})})}const yS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=Rl(vS),l=m.useId(),u=m.useCallback(h=>{c.set(h,!0);for(const y of c.values())if(!y)return;r&&r()},[c,r]),d=m.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:h=>(c.set(h,!1),()=>c.delete(h))}),i?[Math.random(),u]:[n,u]);return m.useMemo(()=>{c.forEach((h,y)=>c.set(y,!1))},[n]),m.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=f.jsx(gS,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function vS(){return new Map}function dm(e=!0){const t=m.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{e&&s(i)},[e]);const o=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Ki=e=>e.key||"";function Td(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Nl=typeof window<"u",fm=Nl?m.useLayoutEffect:m.useEffect,dO=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=dm(o),u=m.useMemo(()=>Td(e),[e]),d=o&&!c?[]:u.map(Ki),h=m.useRef(!0),y=m.useRef(u),g=Rl(()=>new Map),[p,v]=m.useState(u),[x,b]=m.useState(u);fm(()=>{h.current=!1,y.current=u;for(let S=0;S{const T=Ki(S),A=o&&!c?!1:u===x||d.includes(T),R=()=>{if(g.has(T))g.set(T,!0);else return;let N=!0;g.forEach(O=>{O||(N=!1)}),N&&(_==null||_(),b(y.current),o&&(l==null||l()),r&&r())};return f.jsx(yS,{isPresent:A,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,onExitComplete:A?void 0:R,anchorX:a,children:S},T)})})},xt=e=>e;let hm=xt;const xS={useManualTiming:!1},Gi=["read","resolveKeyframes","update","preRender","render","postRender"],Ad={value:null};function bS(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function l(d){o.has(d)&&(u.schedule(d),e()),c++,d(a)}const u={schedule:(d,h=!1,y=!1)=>{const p=y&&s?n:r;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),t&&Ad.value&&Ad.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const wS=40;function pm(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Gi.reduce((x,b)=>(x[b]=bS(i,t?b:void 0),x),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,wS),1),s.timestamp=x,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},g=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Gi.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,T=!1)=>(n||g(),w.schedule(_,S,T)),x},{}),cancel:x=>{for(let b=0;bRd[e].some(n=>!!t[n])};function SS(e){for(const t in e)os[t]={...os[t],...e[t]}}const _S=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")||_S.has(e)}let gm=e=>!go(e);function CS(e){e&&(gm=t=>t.startsWith("on")?!go(t):e(t))}try{CS(require("@emotion/is-prop-valid").default)}catch{}function ES(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(gm(s)||n===!0&&go(s)||!t&&!go(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function TS(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Xo=m.createContext({});function Yo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gs(e){return typeof e=="string"||Array.isArray(e)}const kl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jl=["initial",...kl];function Jo(e){return Yo(e.animate)||jl.some(t=>Gs(e[t]))}function ym(e){return!!(Jo(e)||e.variants)}function AS(e,t){if(Jo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gs(n)?n:void 0,animate:Gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RS(e){const{initial:t,animate:n}=AS(e,m.useContext(Xo));return m.useMemo(()=>({initial:t,animate:n}),[Pd(t),Pd(n)])}function Pd(e){return Array.isArray(e)?e.join(" "):e}const PS=Symbol.for("motionComponentSymbol");function Fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NS(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fr(n)&&(n.current=r))},[t])}const Ol=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kS="framerAppearId",vm="data-"+Ol(kS),{schedule:Ml}=pm(queueMicrotask,!1),xm=m.createContext({});function jS(e,t,n,r,s){var i,o;const{visualElement:a}=m.useContext(Xo),c=m.useContext(mm),l=m.useContext(Qo),u=m.useContext(Pl).reducedMotion,d=m.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=m.useContext(xm);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&OS(d.current,n,s,y);const g=m.useRef(!1);m.useInsertionEffect(()=>{h&&g.current&&h.update(n,l)});const p=n[vm],v=m.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 fm(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ml.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),m.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 OS(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bm(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Fr(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function bm(e){if(e)return e.options.allowProjection!==!1?e.projection:bm(e.parent)}function MS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&SS(e);function a(l,u){let d;const h={...m.useContext(Pl),...l,layoutId:DS(l)},{isStatic:y}=h,g=RS(l),p=r(l,y);if(!y&&Nl){IS();const v=LS(h);d=v.MeasureLayout,g.visualElement=jS(s,p,h,t,v.ProjectionNode)}return f.jsxs(Xo.Provider,{value:g,children:[d&&g.visualElement?f.jsx(d,{visualElement:g.visualElement,...h}):null,n(s,l,NS(p,g.visualElement,u),p,y,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=m.forwardRef(a);return c[PS]=s,c}function DS({layoutId:e}){const t=m.useContext(Al).id;return t&&e!==void 0?t+"-"+e:e}function IS(e,t){m.useContext(mm).strict}function LS(e){const{drag:t,layout:n}=os;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const wm=e=>t=>typeof t=="string"&&t.startsWith(e),Dl=wm("--"),FS=wm("var(--"),Il=e=>FS(e)?VS.test(e.split("/*")[0].trim()):!1,VS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qs={};function BS(e){for(const t in e)Qs[t]=e[t],Dl(t)&&(Qs[t].isCSSVariable=!0)}const vs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kr=new Set(vs);function Sm(e,{layout:t,layoutId:n}){return kr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qs[e]||e==="opacity")}const et=e=>!!(e&&e.getVelocity),_m=(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},Xs={...xs,transform:e=>wn(0,1,e)},Qi={...xs,default:1},Ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kn=Ai("deg"),nn=Ai("%"),te=Ai("px"),$S=Ai("vh"),US=Ai("vw"),Nd={...nn,parse:e=>nn.parse(e)/100,transform:e=>nn.transform(e*100)},zS={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},WS={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Qi,scaleX:Qi,scaleY:Qi,scaleZ:Qi,skew:kn,skewX:kn,skewY:kn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Xs,originX:Nd,originY:Nd,originZ:te},kd={...xs,transform:Math.round},Ll={...zS,...WS,zIndex:kd,size:te,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kd},HS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qS=vs.length;function ZS(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function Cm(e,t,n){for(const r in t)!et(t[r])&&!Sm(r,n)&&(e[r]=t[r])}function KS({transformTemplate:e},t){return m.useMemo(()=>{const n=Vl();return Fl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GS(e,t){const n=e.style||{},r={};return Cm(r,n,e),Object.assign(r,KS(e,t)),r}function QS(e,t){const n={},r=GS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const XS=["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 Bl(e){return typeof e!="string"||e.includes("-")?!1:!!(XS.indexOf(e)>-1||/[A-Z]/u.test(e))}const YS={offset:"stroke-dashoffset",array:"stroke-dasharray"},JS={offset:"strokeDashoffset",array:"strokeDasharray"};function e_(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?YS:JS;e[i.offset]=te.transform(-r);const o=te.transform(t),a=te.transform(n);e[i.array]=`${o} ${a}`}function jd(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function t_(e,t,n){const r=jd(t,e.x,e.width),s=jd(n,e.y,e.height);return`${r} ${s}`}function $l(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(Fl(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:g}=e;h.transform&&(g&&(y.transform=h.transform),delete h.transform),g&&(s!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=t_(g,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&e_(h,o,a,c,!1)}const Em=()=>({...Vl(),attrs:{}}),Ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function n_(e,t,n,r){const s=m.useMemo(()=>{const i=Em();return $l(i,t,Ul(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Cm(i,e.style,e),s.style={...i,...s.style}}return s}function r_(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(Bl(n)?n_:QS)(r,i,o,n),l=ES(r,typeof n=="string",e),u=n!==m.Fragment?{...l,...c,ref:s}:{},{children:d}=r,h=m.useMemo(()=>et(d)?d.get():d,[d]);return m.createElement(n,{...u,children:h})}}function Od(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zl(e,t,n,r){if(typeof t=="function"){const[s,i]=Od(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Od(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const bc=e=>Array.isArray(e),s_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),i_=e=>bc(e)?e[e.length-1]||0:e;function so(e){const t=et(e)?e.get():e;return s_(t)?t.toValue():t}function o_({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:a_(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Tm=e=>(t,n)=>{const r=m.useContext(Xo),s=m.useContext(Qo),i=()=>o_(e,t,r,s);return n?i():Rl(i)};function a_(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=so(i[h]);let{initial:o,animate:a}=e;const c=Jo(e),l=ym(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;y{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(kr.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Am(n,r),Ee.render(()=>{$l(r,s,Ul(n.tagName),e.transformTemplate),Nm(n,r)})})}})};function u_(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Bl(r)?l_:c_,preloadedFeatures:e,useRender:r_(s),createVisualElement:t,Component:r};return MS(o)}}function Ys(e,t,n){const r=e.getProps();return zl(r,t,n!==void 0?n:r.custom,e)}function Hl(e,t){return e?e[t]||e.default||e:void 0}const jm=new Set(["width","height","top","left","right","bottom",...vs]);let io;function d_(){io=void 0}const rn={now:()=>(io===void 0&&rn.set(He.isProcessing||xS.useManualTiming?He.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(d_)}};function ql(e,t){e.indexOf(t)===-1&&e.push(t)}function Zl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kl{constructor(){this.subscriptions=[]}add(t){return ql(this.subscriptions,t),()=>Zl(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class h_{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f_(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 Kl);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dd);return Om(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 Js(e,t){return new h_(e,t)}function p_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Js(n))}function m_(e,t){const n=Ys(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=i_(i[o]);p_(e,o,a)}}function g_(e){return!!(et(e)&&e.add)}function wc(e,t){const n=e.getValue("willChange");if(g_(n))return n.add(t)}function Mm(e){return e.props[vm]}function Gl(e){let t;return()=>(t===void 0&&(t=e()),t)}const y_=Gl(()=>window.ScrollTimeline!==void 0);class v_{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(y_()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x_ extends v_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const xn=e=>e*1e3,bn=e=>e/1e3;function Ql(e){return typeof e=="function"}function Id(e,t){e.timeline=t,e.onfinish=null}const Xl=e=>Array.isArray(e)&&typeof e[0]=="number",b_={linearEasing:void 0};function w_(e,t){const n=Gl(e);return()=>{var r;return(r=b_[t])!==null&&r!==void 0?r:n()}}const yo=w_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ms([0,.65,.55,1]),circOut:Ms([.55,0,1,.45]),backIn:Ms([.31,.01,.66,-.59]),backOut:Ms([.33,1.53,.69,.99])};function Lm(e,t){if(e)return typeof e=="function"&&yo()?Dm(e,t):Xl(e)?Ms(e):Array.isArray(e)?e.map(n=>Lm(n,t)||Sc.easeOut):Sc[e]}const Fm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S_=1e-7,__=12;function C_(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Fm(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>S_&&++a<__);return o}function Ri(e,t,n,r){if(e===t&&n===r)return xt;const s=i=>C_(i,0,1,e,n);return i=>i===0||i===1?i:Fm(s(i),t,r)}const Vm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bm=e=>t=>1-e(1-t),$m=Ri(.33,1.53,.69,.99),Yl=Bm($m),Um=Vm(Yl),zm=e=>(e*=2)<1?.5*Yl(e):.5*(2-Math.pow(2,-10*(e-1))),Jl=e=>1-Math.sin(Math.acos(e)),Wm=Bm(Jl),Hm=Vm(Jl),qm=e=>/^0[^.\s]+$/u.test(e);function E_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||qm(e):!0}const Vs=e=>Math.round(e*1e5)/1e5,eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T_(e){return e==null}const A_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(e,t)=>n=>!!(typeof n=="string"&&A_.test(n)&&n.startsWith(e)||t&&!T_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(eu);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},R_=e=>wn(0,255,e),Pa={...xs,transform:e=>Math.round(R_(e))},ir={test:tu("rgb","red"),parse:Zm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pa.transform(e)+", "+Pa.transform(t)+", "+Pa.transform(n)+", "+Vs(Xs.transform(r))+")"};function P_(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const _c={test:tu("#"),parse:P_,transform:ir.transform},Vr={test:tu("hsl","hue"),parse:Zm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nn.transform(Vs(t))+", "+nn.transform(Vs(n))+", "+Vs(Xs.transform(r))+")"},Ye={test:e=>ir.test(e)||_c.test(e)||Vr.test(e),parse:e=>ir.test(e)?ir.parse(e):Vr.test(e)?Vr.parse(e):_c.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ir.transform(e):Vr.transform(e)},N_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N_))===null||n===void 0?void 0:n.length)||0)>0}const Km="number",Gm="color",j_="var",O_="var(",Ld="${}",M_=/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 ei(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(M_,c=>(Ye.test(c)?(r.color.push(i),s.push(Gm),n.push(Ye.parse(c))):c.startsWith(O_)?(r.var.push(i),s.push(j_),n.push(c)):(r.number.push(i),s.push(Km),n.push(parseFloat(c))),++i,Ld)).split(Ld);return{values:n,split:a,indexes:r,types:s}}function Qm(e){return ei(e).values}function Xm(e){const{split:t,types:n}=ei(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function I_(e){const t=Qm(e);return Xm(e)(t.map(D_))}const zn={test:k_,parse:Qm,createTransformer:Xm,getAnimatableNone:I_},L_=new Set(["brightness","contrast","saturate","opacity"]);function F_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eu)||[];if(!r)return e;const s=n.replace(r,"");let i=L_.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const V_=/\b([a-z-]*)\(.*?\)/gu,Cc={...zn,getAnimatableNone:e=>{const t=e.match(V_);return t?t.map(F_).join(" "):e}},B_={...Ll,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:Cc,WebkitFilter:Cc},nu=e=>B_[e];function Ym(e,t){let n=nu(e);return n!==Cc&&(n=zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $_=new Set(["auto","none","0"]);function U_(e,t,n){let r=0,s;for(;re===xs||e===te,Vd=(e,t)=>parseFloat(e.split(", ")[t]),Bd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Vd(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Vd(i[1],e):0}},z_=new Set(["x","y","z"]),W_=vs.filter(e=>!z_.has(e));function H_(e){const t=[];return W_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cs={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:Bd(4,13),y:Bd(5,14)};cs.translateX=cs.x;cs.translateY=cs.y;const vr=new Set;let Ec=!1,Tc=!1;function Jm(){if(Tc){const e=Array.from(vr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=H_(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tc=!1,Ec=!1,vr.forEach(e=>e.complete()),vr.clear()}function eg(){vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tc=!0)})}function q_(){eg(),Jm()}class ru{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vr.add(this),Ec||(Ec=!0,Ee.read(eg),Ee.resolveKeyframes(Jm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K_(e){const t=Z_.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function ng(e,t,n=1){const[r,s]=K_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return tg(o)?parseFloat(o):o}return Il(s)?ng(s,t,n+1):s}const rg=e=>t=>t.test(e),G_={test:e=>e==="auto",parse:e=>e},sg=[xs,te,nn,kn,US,$S,G_],$d=e=>sg.find(rg(e));class ig extends ru{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const Ud=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zn.test(e)||e==="0")&&!e.startsWith("url("));function Q_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ea(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Y_),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const J_=40;class og{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>J_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&q_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!X_(t,r,s,i))if(o)this.options.duration=0;else{c&&c(ea(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 Ac=2e4;function ag(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ac?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 eC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=Na(c,a,e+1/3),i=Na(c,a,e),o=Na(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function vo(e,t){return n=>n>0?t:e}const ka=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},tC=[_c,ir,Vr],nC=e=>tC.find(t=>t.test(e));function zd(e){const t=nC(e);if(!t)return!1;let n=t.parse(e);return t===Vr&&(n=eC(n)),n}const Wd=(e,t)=>{const n=zd(e),r=zd(t);if(!n||!r)return vo(e,t);const s={...n};return i=>(s.red=ka(n.red,r.red,i),s.green=ka(n.green,r.green,i),s.blue=ka(n.blue,r.blue,i),s.alpha=Re(n.alpha,r.alpha,i),ir.transform(s))},rC=(e,t)=>n=>t(e(n)),Pi=(...e)=>e.reduce(rC),Rc=new Set(["none","hidden"]);function sC(e,t){return Rc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iC(e,t){return n=>Re(e,t,n)}function su(e){return typeof e=="number"?iC:typeof e=="string"?Il(e)?vo:Ye.test(e)?Wd:cC:Array.isArray(e)?cg:typeof e=="object"?Ye.test(e)?Wd:oC:vo}function cg(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>su(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function aC(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=zn.createTransformer(t),r=ei(e),s=ei(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Rc.has(e)&&!s.values.length||Rc.has(t)&&!r.values.length?sC(e,t):Pi(cg(aC(r,s),s.values),n):vo(e,t)};function lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):su(e)(e,t)}const lC=5;function ug(e,t,n){const r=Math.max(t-lC,0);return Om(n-e(r),t-r)}const ke={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},Hd=.001;function uC({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:r=ke.mass}){let s,i,o=1-t;o=wn(ke.minDamping,ke.maxDamping,o),e=wn(ke.minDuration,ke.maxDuration,bn(e)),o<1?(s=l=>{const u=l*o,d=u*e,h=u-n,y=Pc(l,o),g=Math.exp(-d);return Hd-h/y*g},i=l=>{const d=l*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),p=Pc(Math.pow(l,2),o);return(-s(l)+Hd>0?-1:1)*((h-y)*g)/p}):(s=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=fC(s,i,a);if(e=xn(e),isNaN(c))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const dC=12;function fC(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function mC(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!qd(e,pC)&&qd(e,hC))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*wn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ke.mass,stiffness:s,damping:i}}else{const n=uC(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function dg(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:h,isResolvedFromDuration:y}=mC({...n,velocity:-bn(n.velocity||0)}),g=h||0,p=l/(2*Math.sqrt(c*u)),v=o-i,x=bn(Math.sqrt(c/u)),b=Math.abs(v)<5;r||(r=b?ke.restSpeed.granular:ke.restSpeed.default),s||(s=b?ke.restDelta.granular:ke.restDelta.default);let w;if(p<1){const S=Pc(x,p);w=T=>{const A=Math.exp(-p*x*T);return o-A*((g+p*x*v)/S*Math.sin(S*T)+v*Math.cos(S*T))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(g+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=T=>{const A=Math.exp(-p*x*T),R=Math.min(S*T,300);return o-A*((g+p*x*v)*Math.sinh(R)+S*v*Math.cosh(R))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const T=w(S);if(y)a.done=S>=d;else{let A=0;p<1&&(A=S===0?xn(g):ug(w,S,T));const R=Math.abs(A)<=r,N=Math.abs(o-T)<=s;a.done=R&&N}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(ag(_),Ac),T=Dm(A=>_.next(S*A).value,S,30);return S+"ms "+T}};return _}function Zd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=R=>a!==void 0&&Rc,g=R=>a===void 0?c:c===void 0||Math.abs(a-R)-p*Math.exp(-R/r),w=R=>x+b(R),_=R=>{const N=b(R),O=w(R);h.done=Math.abs(N)<=l,h.value=h.done?x:O};let S,T;const A=R=>{y(h.value)&&(S=R,T=dg({keyframes:[h.value,g(h.value)],velocity:ug(w,R,h.value),damping:s,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:R=>{let N=!1;return!T&&S===void 0&&(N=!0,_(R),A(R)),S!==void 0&&R>=S?T.next(R-S):(!N&&_(R),h)}}}const gC=Ri(.42,0,1,1),yC=Ri(0,0,.58,1),fg=Ri(.42,0,.58,1),vC=e=>Array.isArray(e)&&typeof e[0]!="number",xC={linear:xt,easeIn:gC,easeInOut:fg,easeOut:yC,circIn:Jl,circInOut:Hm,circOut:Wm,backIn:Yl,backInOut:Um,backOut:$m,anticipate:zm},Kd=e=>{if(Xl(e)){hm(e.length===4);const[t,n,r,s]=e;return Ri(t,n,r,s)}else if(typeof e=="string")return xC[e];return e};function bC(e,t,n){const r=[],s=n||lg,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=bC(t,r,s),c=a.length,l=u=>{if(o&&u1)for(;dl(wn(e[0],e[i-1],u)):l}function SC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=as(0,t,r);e.push(Re(n,1,s))}}function _C(e){const t=[0];return SC(t,e.length-1),t}function CC(e,t){return e.map(n=>n*t)}function EC(e,t){return e.map(()=>t||fg).splice(0,e.length-1)}function xo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=vC(r)?r.map(Kd):Kd(r),i={done:!1,value:t[0]},o=CC(n&&n.length===t.length?n:_C(t),e),a=wC(o,t,{ease:Array.isArray(s)?s:EC(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const TC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>Un(t),now:()=>He.isProcessing?He.timestamp:rn.now()}},AC={decay:Zd,inertia:Zd,tween:xo,keyframes:xo,spring:dg},RC=e=>e/100;class iu extends og{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||ru,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Ql(n)?n:AC[n]||xo;let c,l;a!==xo&&typeof t[0]!="number"&&(c=Pi(RC,lg(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=ag(u));const{calculatedDuration:d}=u,h=d+s,y=h*(r+1)-s;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:r}=this;if(!r){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:g,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),O=R%1;!O&&R>=1&&(O=1),O===1&&N--,N=Math.min(N,y+1),!!(N%2)&&(g==="reverse"?(O=1-O,p&&(O-=p/d)):g==="mirror"&&(_=o)),w=wn(0,1,O)*d}const S=b?{done:!1,value:c[0]}:_.next(w);a&&(S.value=a(S.value));let{done:T}=S;!b&&l!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&s!==void 0&&(S.value=ea(c,this.options,s)),v&&v(S.value),A&&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=TC,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const PC=new Set(["opacity","clipPath","filter","transform"]);function NC(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Lm(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const kC=Gl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bo=10,jC=2e4;function OC(e){return Ql(e.type)||e.type==="spring"||!Im(e.ease)}function MC(e,t){const n=new iu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&yo()&&DC(i)&&(i=hg[i]),OC(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:g,...p}=this.options,v=MC(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,s=v.times,i=v.ease,o="keyframes"}const u=NC(a.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Id(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ea(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return 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:r}=n;r.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:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return xt;const{animation:r}=n;Id(r,t)}return xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:h,...y}=this.options,g=new iu({...y,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),p=xn(this.time);l.setWithVelocity(g.sample(p-bo).value,g.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:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return kC()&&r&&PC.has(r)&&!c&&!l&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const IC={type:"spring",stiffness:500,damping:25,restSpeed:10},LC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FC={type:"keyframes",duration:.8},VC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BC=(e,{keyframes:t})=>t.length>2?FC:kr.has(e)?e.startsWith("scale")?LC(t[1]):IC:VC;function $C({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ou=(e,t,n,r={},s,i)=>o=>{const a=Hl(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;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:s};$C(a)||(u={...u,...BC(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=ea(u.keyframes,a);if(h!==void 0)return Ee.update(()=>{u.onUpdate(h),u.onComplete()}),new x_([])}return!i&&Gd.supports(u)?new Gd(u):new iu(u)};function UC({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in c){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=c[d];if(y===void 0||u&&UC(u,d))continue;const g={delay:n,...Hl(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=Mm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Ee);b!==null&&(g.startTime=b,p=!0)}}wc(e,d),h.start(ou(d,h,y,e.shouldReduceMotion&&jm.has(d)?{type:!1}:g,e,p));const v=h.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ee.update(()=>{a&&m_(e,a)})}),l}function Nc(e,t,n={}){var r;const s=Ys(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(pg(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return zC(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 zC(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(WC).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(Nc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function WC(e,t){return e.sortNodePosition(t)}function HC(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Nc(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Nc(e,t,n);else{const s=typeof t=="function"?Ys(e,t,n.custom):t;r=Promise.all(pg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function mg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>HC(e,n,r)))}function QC(e){let t=GC(e),n=Qd(),r=!0;const s=c=>(l,u)=>{var d;const h=Ys(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:g,...p}=h;l={...l,...p,...g}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=gg(e.parent)||{},d=[],h=new Set;let y={},g=1/0;for(let v=0;vg&&_,N=!1;const O=Array.isArray(w)?w:[w];let I=O.reduce(s(x),{});S===!1&&(I={});const{prevResolvedValues:M={}}=b,U={...M,...I},F=Z=>{R=!0,h.has(Z)&&(N=!0,h.delete(Z)),b.needsAnimating[Z]=!0;const K=e.getValue(Z);K&&(K.liveStyle=!1)};for(const Z in U){const K=I[Z],se=M[Z];if(y.hasOwnProperty(Z))continue;let fe=!1;bc(K)&&bc(se)?fe=!mg(K,se):fe=K!==se,fe?K!=null?F(Z):h.add(Z):K!==void 0&&h.has(Z)?F(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=I,b.isActive&&(y={...y,...I}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(T&&A)||N)&&d.push(...O.map(Z=>({animation:Z,options:{type:x}})))}if(h.size){const v={};if(typeof l.initial!="boolean"){const x=Ys(e,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(v.transition=x.transition)}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 r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!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=Qd(),r=!0}}}function XC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mg(t,e):!1}function nr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:nr(!0),whileInView:nr(),whileHover:nr(),whileTap:nr(),whileDrag:nr(),whileFocus:nr(),exit:nr()}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class YC extends Xn{constructor(t){super(t),t.animationState||(t.animationState=QC(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 JC=0;class eE extends Xn{constructor(){super(...arguments),this.id=JC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const tE={animation:{Feature:YC},exit:{Feature:eE}},Ot={x:!1,y:!1};function yg(){return Ot.x||Ot.y}function nE(e){return e==="x"||e==="y"?Ot[e]?null:(Ot[e]=!0,()=>{Ot[e]=!1}):Ot.x||Ot.y?null:(Ot.x=Ot.y=!0,()=>{Ot.x=Ot.y=!1})}const au=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ti(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ni(e){return{point:{x:e.pageX,y:e.pageY}}}const rE=e=>t=>au(t)&&e(t,Ni(t));function Bs(e,t,n,r){return ti(e,t,rE(n),r)}const Xd=(e,t)=>Math.abs(e-t);function sE(e,t){const n=Xd(e.x,t.x),r=Xd(e.y,t.y);return Math.sqrt(n**2+r**2)}class vg{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Oa(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=sE(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:g}=d,{timestamp:p}=He;this.history.push({...g,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=ja(h,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Oa(d.type==="pointercancel"?this.lastMoveEventInfo:ja(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),g&&g(d,v)},!au(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Ni(t),a=ja(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=He;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Oa(a,this.history)),this.removeListeners=Pi(Bs(this.contextWindow,"pointermove",this.handlePointerMove),Bs(this.contextWindow,"pointerup",this.handlePointerUp),Bs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Un(this.updatePoint)}}function ja(e,t){return t?{point:t(e.point)}:e}function Yd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oa({point:e},t){return{point:e,delta:Yd(e,xg(t)),offset:Yd(e,iE(t)),velocity:oE(t,.1)}}function iE(e){return e[0]}function xg(e){return e[e.length-1]}function oE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=xg(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=bn(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const bg=1e-4,aE=1-bg,cE=1+bg,wg=.01,lE=0-wg,uE=0+wg;function at(e){return e.max-e.min}function dE(e,t,n){return Math.abs(e-t)<=n}function Jd(e,t,n,r=.5){e.origin=r,e.originPoint=Re(t.min,t.max,e.origin),e.scale=at(n)/at(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aE&&e.scale<=cE||isNaN(e.scale))&&(e.scale=1),(e.translate>=lE&&e.translate<=uE||isNaN(e.translate))&&(e.translate=0)}function $s(e,t,n,r){Jd(e.x,t.x,n.x,r?r.originX:void 0),Jd(e.y,t.y,n.y,r?r.originY:void 0)}function ef(e,t,n){e.min=n.min+t.min,e.max=e.min+at(t)}function fE(e,t,n){ef(e.x,t.x,n.x),ef(e.y,t.y,n.y)}function tf(e,t,n){e.min=t.min-n.min,e.max=e.min+at(t)}function Us(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function hE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Re(n,e,r.max):Math.min(e,n)),e}function nf(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 pE(e,{top:t,left:n,bottom:r,right:s}){return{x:nf(e.x,n,s),y:nf(e.y,t,r)}}function rf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=as(t.min,t.max-r,e.min):r>s&&(n=as(e.min,e.max-s,t.min)),wn(0,1,n)}function yE(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 kc=.35;function vE(e=kc){return e===!1?e=0:e===!0&&(e=kc),{x:sf(e,"left","right"),y:sf(e,"top","bottom")}}function sf(e,t,n){return{min:of(e,t),max:of(e,n)}}function of(e,t){return typeof e=="number"?e:e[t]||0}const af=()=>({translate:0,scale:1,origin:0,originPoint:0}),Br=()=>({x:af(),y:af()}),cf=()=>({min:0,max:0}),Me=()=>({x:cf(),y:cf()});function At(e){return[e("x"),e("y")]}function Sg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ma(e){return e===void 0||e===1}function jc({scale:e,scaleX:t,scaleY:n}){return!Ma(e)||!Ma(t)||!Ma(n)}function rr(e){return jc(e)||_g(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _g(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function wo(e,t,n){const r=e-n,s=t*r;return n+s}function uf(e,t,n,r,s){return s!==void 0&&(e=wo(e,s,r)),wo(e,n,r)+t}function Oc(e,t=0,n=1,r,s){e.min=uf(e.min,t,n,r,s),e.max=uf(e.max,t,n,r,s)}function Cg(e,{x:t,y:n}){Oc(e.x,t.translate,t.scale,t.originPoint),Oc(e.y,n.translate,n.scale,n.originPoint)}const df=.999999999999,ff=1.0000000000001;function wE(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;adf&&(t.x=1),t.ydf&&(t.y=1)}function $r(e,t){e.min=e.min+t,e.max=e.max+t}function hf(e,t,n,r,s=.5){const i=Re(e.min,e.max,s);Oc(e,t,n,i,r)}function Ur(e,t){hf(e.x,t.x,t.scaleX,t.scale,t.originX),hf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Eg(e,t){return Sg(bE(e.getBoundingClientRect(),t))}function SE(e,t,n){const r=Eg(e,n),{scroll:s}=t;return s&&($r(r.x,s.offset.x),$r(r.y,s.offset.y)),r}const Tg=({current:e})=>e?e.ownerDocument.defaultView:null,_E=new WeakMap;class CE{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:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ni(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nE(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),At(v=>{let x=this.getAxisMotionValue(v).get()||0;if(nn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=at(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),g&&Ee.postRender(()=>g(u,d)),wc(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:g,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=EE(v),this.currentDirection!==null&&g&&g(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=()=>At(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 vg(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Tg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Xi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=hE(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Fr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=pE(s.layoutBox,n):this.constraints=!1,this.elastic=vE(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&At(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yE(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fr(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=SE(r,s.root,this.visualElement.getTransformPagePoint());let o=mE(s.layout.layoutBox,i);if(n){const a=n(xE(o));this.hasMutatedConstraints=!!a,a&&(o=Sg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=At(u=>{if(!Xi(u,n,this.currentDirection))return;let d=c&&c[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,y=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return wc(this.visualElement,t),r.start(ou(t,r,0,n,this.visualElement,!1))}stopAnimation(){At(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){At(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){At(n=>{const{drag:r}=this.getProps();if(!Xi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-Re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Fr(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};At(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=gE({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),At(o=>{if(!Xi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Re(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;_E.set(this.visualElement,this);const t=this.visualElement.current,n=Bs(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Fr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ee.read(r);const o=ti(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(At(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=kc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Xi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class TE extends Xn{constructor(t){super(t),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new CE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const pf=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class AE extends Xn{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(t){this.session=new vg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:pf(t),onStart:pf(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Ee.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Bs(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 mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=mf(e,t.target.x),r=mf(e,t.target.y);return`${n}% ${r}%`}},RE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=zn.parse(e);if(s.length>5)return r;const i=zn.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=c;const l=Re(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}};class PE extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;BS(NE),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ml.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ag(e){const[t,n]=dm(),r=m.useContext(Al);return f.jsx(PE,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(xm),isPresent:t,safeToRemove:n})}const NE={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:RE};function kE(e,t,n){const r=et(e)?e:Js(e);return r.start(ou("",r,t,n)),r.animation}function jE(e){return e instanceof SVGElement&&e.tagName!=="svg"}const OE=(e,t)=>e.depth-t.depth;class ME{constructor(){this.children=[],this.isDirty=!1}add(t){ql(this.children,t),this.isDirty=!0}remove(t){Zl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OE),this.isDirty=!1,this.children.forEach(t)}}function DE(e,t){const n=rn.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Un(r),e(i-t))};return Ee.read(r,!0),()=>Un(r)}const Rg=["TopLeft","TopRight","BottomLeft","BottomRight"],IE=Rg.length,gf=e=>typeof e=="string"?parseFloat(e):e,yf=e=>typeof e=="number"||te.test(e);function LE(e,t,n,r,s,i){s?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,FE(r)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,VE(r))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(as(e,t,r))}function xf(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){xf(e.x,t.x),xf(e.y,t.y)}function bf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function wf(e,t,n,r,s){return e-=t,e=wo(e,1/n,r),s!==void 0&&(e=wo(e,1/s,r)),e}function BE(e,t=0,n=1,r=.5,s,i=e,o=e){if(nn.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,r);e===i&&(a-=t),e.min=wf(e.min,t,n,a,s),e.max=wf(e.max,t,n,a,s)}function Sf(e,t,[n,r,s],i,o){BE(e,t[n],t[r],t[s],t.scale,i,o)}const $E=["x","scaleX","originX"],UE=["y","scaleY","originY"];function _f(e,t,n,r){Sf(e.x,t,$E,n?n.x:void 0,r?r.x:void 0),Sf(e.y,t,UE,n?n.y:void 0,r?r.y:void 0)}function Cf(e){return e.translate===0&&e.scale===1}function Ng(e){return Cf(e.x)&&Cf(e.y)}function Ef(e,t){return e.min===t.min&&e.max===t.max}function zE(e,t){return Ef(e.x,t.x)&&Ef(e.y,t.y)}function Tf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function kg(e,t){return Tf(e.x,t.x)&&Tf(e.y,t.y)}function Af(e){return at(e.x)/at(e.y)}function Rf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WE{constructor(){this.members=[]}add(t){ql(this.members,t),t.scheduleRender()}remove(t){if(Zl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HE(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Da=["","X","Y","Z"],qE={visibility:"hidden"},Pf=1e3;let ZE=0;function Ia(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jg(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:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jg(r)}function Og({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=ZE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QE),this.nodes.forEach(tT),this.nodes.forEach(nT),this.nodes.forEach(XE)},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=DE(h,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(kf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||aT,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!kg(this.targetLayout,g),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 _={...Hl(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||kf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Un(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(rT),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&&jg(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&&!at(this.snapshot.measuredBox.x)&&!at(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;jf(d.x,o.x,S),jf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Us(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iT(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&zE(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),Tt(w,this.relativeTarget)),p&&(this.animationValues=u,LE(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&&(Un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{oo.hasAnimatedSinceResize=!0,this.currentAnimation=kE(0,Pf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Pf),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=at(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const h=at(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Tt(a,c),Ur(a,u),$s(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new WE),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(Nf),this.root.sharedNodes.clear()}}}function KE(e){e.updateLayout()}function GE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=at(h);h.min=r[d].min,h.max=h.min+y}):Mg(i,n.layoutBox,r)&&At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=at(r[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Br();$s(a,r,n.layoutBox);const c=Br();o?$s(c,e.applyTransform(s,!0),n.measuredBox):$s(c,r,n.layoutBox);const l=!Ng(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 g=Me();Us(g,n.layoutBox,h.layoutBox);const p=Me();Us(p,r,y.layoutBox),kg(g,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QE(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function XE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function YE(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function JE(e){e.isLayoutDirty=!1}function eT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tT(e){e.resolveTargetDelta()}function nT(e){e.calcProjection()}function rT(e){e.resetSkewAndRotation()}function sT(e){e.removeLeadSnapshot()}function jf(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 Of(e,t,n,r){e.min=Re(t.min,n.min,r),e.max=Re(t.max,n.max,r)}function iT(e,t,n,r){Of(e.x,t.x,n.x,r),Of(e.y,t.y,n.y,r)}function oT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aT={duration:.45,ease:[.4,0,.1,1]},Mf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Df=Mf("applewebkit/")&&!Mf("chrome/")?Math.round:xt;function If(e){e.min=Df(e.min),e.max=Df(e.max)}function cT(e){If(e.x),If(e.y)}function Mg(e,t,n){return e==="position"||e==="preserve-aspect"&&!dE(Af(t),Af(n),.2)}function lT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const uT=Og({attachResizeListener:(e,t)=>ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),La={current:void 0},Dg=Og({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!La.current){const e=new uT({});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"}),dT={pan:{Feature:AE},drag:{Feature:TE,ProjectionNode:Dg,MeasureLayout:Ag}};function fT(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Ig(e,t){const n=fT(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Lf(e){return!(e.pointerType==="touch"||yg())}function hT(e,t,n={}){const[r,s,i]=Ig(e,n),o=a=>{if(!Lf(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Lf(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Ff(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ee.postRender(()=>i(t,Ni(t)))}class pT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=hT(t,(n,r)=>(Ff(this.node,r,"Start"),s=>Ff(this.node,s,"End"))))}unmount(){}}class mT extends Xn{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=Pi(ti(this.node.current,"focus",()=>this.onFocus()),ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lg=(e,t)=>t?e===t?!0:Lg(e,t.parentElement):!1,gT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yT(e){return gT.has(e.tagName)||e.tabIndex!==-1}const Ds=new WeakSet;function Vf(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vT=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vf(()=>{if(Ds.has(n))return;Fa(n,"down");const s=Vf(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Bf(e){return au(e)&&!yg()}function xT(e,t,n={}){const[r,s,i]=Ig(e,n),o=a=>{const c=a.currentTarget;if(!Bf(a)||Ds.has(c))return;Ds.add(c);const l=t(c,a),u=(y,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Bf(y)||!Ds.has(c))&&(Ds.delete(c),typeof l=="function"&&l(y,{success:g}))},d=y=>{u(y,n.useGlobalTarget||Lg(c,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{!yT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",l=>vT(l,s),s)}),i}function $f(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Ee.postRender(()=>i(t,Ni(t)))}class bT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=xT(t,(n,r)=>($f(this.node,r,"Start"),(s,{success:i})=>$f(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mc=new WeakMap,Va=new WeakMap,wT=e=>{const t=Mc.get(e.target);t&&t(e)},ST=e=>{e.forEach(wT)};function _T({root:e,...t}){const n=e||document;Va.has(n)||Va.set(n,{});const r=Va.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ST,{root:e,...t})),r[s]}function CT(e,t,n){const r=_T(t);return Mc.set(e,n),r.observe(e),()=>{Mc.delete(e),r.unobserve(e)}}const ET={some:0,all:1};class TT extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:ET[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=l?u:d;h&&h(c)};return CT(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(AT(t,n))&&this.startObserver()}unmount(){}}function AT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RT={inView:{Feature:TT},tap:{Feature:bT},focus:{Feature:mT},hover:{Feature:pT}},PT={layout:{ProjectionNode:Dg,MeasureLayout:Ag}},Dc={current:null},Fg={current:!1};function NT(){if(Fg.current=!0,!!Nl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dc.current=e.matches;e.addListener(t),t()}else Dc.current=!1}const kT=[...sg,Ye,zn],jT=e=>kT.find(rg(e)),OT=new WeakMap;function MT(e,t,n){for(const r in t){const s=t[r],i=n[r];if(et(s))e.addValue(r,s);else if(et(i))e.addValue(r,Js(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Js(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Uf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DT{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ru,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(r,n)),Fg.current||NT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Un(this.notifyUpdate),Un(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=kr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in os){const n=os[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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 r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Js(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(tg(s)||qm(s))?s=parseFloat(s):!jT(s)&&zn.test(n)&&(s=Ym(t,n)),this.setBaseTarget(t,et(s)?s.get():s)),et(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=zl(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!et(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Vg extends DT{constructor(){super(...arguments),this.KeyframeResolver=ig}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IT(e){return window.getComputedStyle(e)}class LT extends Vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Rm}readValueFromInstance(t,n){if(kr.has(n)){const r=nu(n);return r&&r.default||0}else{const r=IT(t),s=(Dl(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Eg(t,n)}build(t,n,r){Fl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Wl(t,n,r)}}class FT extends Vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Am(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kr.has(n)){const r=nu(n);return r&&r.default||0}return n=Pm.has(n)?n:Ol(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return km(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ee.postRender(this.updateDimensions)}build(t,n,r){$l(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Nm(t,n,r,s)}mount(t){this.isSVGTag=Ul(t.tagName),super.mount(t)}}const VT=(e,t)=>Bl(e)?new FT(t):new LT(t,{allowProjection:e!==m.Fragment}),BT=u_({...tE,...RT,...dT,...PT},VT),zs=TS(BT);var Ba,zf;function $T(){if(zf)return Ba;zf=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof $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,g=Math.min,p=function(){return u.Date.now()};function v(S,T,A){var R,N,O,I,M,U,F=0,X=!1,Y=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);T=_(T)||0,x(A)&&(X=!!A.leading,Y="maxWait"in A,O=Y?y(_(A.maxWait)||0,T):O,Z="trailing"in A?!!A.trailing:Z);function K(ue){var ve=R,je=N;return R=N=void 0,F=ue,I=S.apply(je,ve),I}function se(ue){return F=ue,M=setTimeout(Be,T),X?K(ue):I}function fe(ue){var ve=ue-U,je=ue-F,Fe=T-ve;return Y?g(Fe,O-je):Fe}function ye(ue){var ve=ue-U,je=ue-F;return U===void 0||ve>=T||ve<0||Y&&je>=O}function Be(){var ue=p();if(ye(ue))return Ge(ue);M=setTimeout(Be,fe(ue))}function Ge(ue){return M=void 0,Z&&R?K(ue):(R=N=void 0,I)}function Qe(){M!==void 0&&clearTimeout(M),F=0,R=U=N=M=void 0}function jt(){return M===void 0?I:Ge(p())}function st(){var ue=p(),ve=ye(ue);if(R=arguments,N=this,U=ue,ve){if(M===void 0)return se(U);if(Y)return M=setTimeout(Be,T),K(U)}return M===void 0&&(M=setTimeout(Be,T)),I}return st.cancel=Qe,st.flush=jt,st}function x(S){var T=typeof S;return!!S&&(T=="object"||T=="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 T=typeof S.valueOf=="function"?S.valueOf():S;S=x(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var A=i.test(S);return A||o.test(S)?a(S.slice(2),A?2:8):s.test(S)?t:+S}return Ba=v,Ba}$T();var Bg=typeof window<"u"?m.useLayoutEffect:m.useEffect,UT=typeof window>"u";function So(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>UT?t:window.matchMedia(a).matches,[s,i]=m.useState(()=>n?r(e):t);function o(){i(r(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]),s}var zT=typeof window>"u";function WT(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:r=!0}=e,[s,i]=m.useState(!1),o=m.useRef(null),a=m.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},r){const h=o.current===document.body?window.innerWidth:o.current.offsetWidth,y=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,g=h-o.current.scrollWidth;o.current.style.paddingRight=`${g+y}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,r&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Bg(()=>{if(!zT)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,r]),{isLocked:s,lock:c,unlock:l}}const hO=({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(zs.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(zs.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(zs.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 ki=e=>e.type==="checkbox",or=e=>e instanceof Date,ot=e=>e==null;const $g=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&$g(e)&&!or(e),Ug=e=>Ie(e)&&e.target?ki(e.target)?e.target.checked:e.target.value:e,HT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zg=(e,t)=>e.has(HT(t)),qT=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},cu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ut(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(cu&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:{},!n&&!qT(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=ut(e[s]));else return e;return t}var ta=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const r=ta(t.split(/[,[\].]+?/)).reduce((s,i)=>ot(s)?s:s[i],e);return De(r)||r===e?De(e[t])?n:e[t]:r},Nt=e=>typeof e=="boolean",lu=e=>/^\w*$/.test(e),Wg=e=>ta(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let r=-1;const s=lu(t)?[t]:Wg(t),i=s.length,o=i-1;for(;++rde.useContext(Hg),ZT=e=>{const{children:t,...n}=e;return de.createElement(Hg.Provider,{value:n},t)};var qg=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==It.all&&(t._proxyFormState[o]=!r||It.all),n&&(n[o]=!0),e[o]}});return s},ft=e=>Ie(e)&&!Object.keys(e).length,Zg=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return ft(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||It.all))},Ws=e=>Array.isArray(e)?e:[e],Kg=(e,t,n)=>!e||!t||e===t||Ws(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function uu(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 KT(e){const t=na(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=de.useState(n._formState),c=de.useRef(!0),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=de.useRef(s);return u.current=s,uu({disabled:r,next:d=>c.current&&Kg(u.current,d.name,i)&&Zg(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(()=>qg(o,n,l.current,!1),[o,n])}var tn=e=>typeof e=="string",Gg=(e,t,n,r,s)=>tn(e)?(r&&t.watch.add(e),$(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),$(n,i))):(r&&(t.watchAll=!0),n);function GT(e){const t=na(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=de.useRef(r);a.current=r,uu({disabled:i,subject:n._subjects.values,next:u=>{Kg(a.current,u.name,o)&&l(ut(Gg(a.current,n._names,u.values||n._formValues,!1,s)))}});const[c,l]=de.useState(n._getWatch(r,s));return de.useEffect(()=>n._removeUnmounted()),c}function QT(e){const t=na(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=zg(s._names.array,n),a=GT({control:s,name:n,defaultValue:$(s._formValues,n,$(s._defaultValues,n,e.defaultValue)),exact:!0}),c=KT({control:s,name:n,exact:!0}),l=de.useRef(s.register(n,{...e.rules,value:a,...Nt(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,...Nt(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:h=>l.current.onChange({target:{value:Ug(h),name:n},type:_o.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:$(s._formValues,n),name:n},type:_o.BLUR}),ref:h=>{const y=$(s._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:g=>h.setCustomValidity(g),reportValidity:()=>h.reportValidity()})}}),[n,s._formValues,r,c.disabled,a,s._fields]);return de.useEffect(()=>{const h=s._options.shouldUnregister||i,y=(g,p)=>{const v=$(s._fields,g);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const g=ut($(s._options.defaultValues,n));xe(s._defaultValues,n,g),De($(s._formValues,n))&&xe(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?h&&!s._state.action:h)?s.unregister(n):y(n,!1)}},[n,s,o,i]),de.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const XT=e=>e.render(QT(e));var Qg=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Wf=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),Hf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Hs=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=$(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Hs(a,t))break}else if(Ie(a)&&Hs(a,t))break}}};var YT=(e,t,n)=>{const r=Ws($(e,n));return xe(r,"root",t[n]),xe(e,n,r),e},du=e=>e.type==="file",en=e=>typeof e=="function",Co=e=>{if(!cu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ao=e=>tn(e),fu=e=>e.type==="radio",Eo=e=>e instanceof RegExp;const qf={value:!1,isValid:!1},Zf={value:!0,isValid:!0};var Xg=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===""?Zf:{value:e[0].value,isValid:!0}:Zf:qf}return qf};const Kf={isValid:!1,value:null};var Yg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Kf):Kf;function Gf(e,t,n="validate"){if(ao(e)||Array.isArray(e)&&e.every(ao)||Nt(e)&&!e)return{type:n,message:ao(e)?e:"",ref:t}}var Ir=e=>Ie(e)&&!Eo(e)?e:{value:e,message:""},Qf=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:h,pattern:y,validate:g,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=M=>{s&&w.reportValidity&&(w.setCustomValidity(Nt(M)?"":M||""),w.reportValidity())},S={},T=fu(o),A=ki(o),R=T||A,N=(v||du(o))&&De(o.value)&&De(b)||Co(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,O=Qg.bind(null,p,r,S),I=(M,U,F,X=hn.maxLength,Y=hn.minLength)=>{const Z=M?U:F;S[p]={type:M?X:Y,message:Z,ref:o,...O(M?X:Y,Z)}};if(i?!Array.isArray(b)||!b.length:c&&(!R&&(N||ot(b))||Nt(b)&&!b||A&&!Xg(a).isValid||T&&!Yg(a).isValid)){const{value:M,message:U}=ao(c)?{value:!!c,message:c}:Ir(c);if(M&&(S[p]={type:hn.required,message:U,ref:w,...O(hn.required,U)},!r))return _(U),S}if(!N&&(!ot(d)||!ot(h))){let M,U;const F=Ir(h),X=Ir(d);if(!ot(b)&&!isNaN(b)){const Y=o.valueAsNumber||b&&+b;ot(F.value)||(M=Y>F.value),ot(X.value)||(U=Ynew Date(new Date().toDateString()+" "+fe),K=o.type=="time",se=o.type=="week";tn(F.value)&&b&&(M=K?Z(b)>Z(F.value):se?b>F.value:Y>new Date(F.value)),tn(X.value)&&b&&(U=K?Z(b)+M.value,X=!ot(U.value)&&b.length<+U.value;if((F||X)&&(I(F,M.message,U.message),!r))return _(S[p].message),S}if(y&&!N&&tn(b)){const{value:M,message:U}=Ir(y);if(Eo(M)&&!b.match(M)&&(S[p]={type:hn.pattern,message:U,ref:o,...O(hn.pattern,U)},!r))return _(U),S}if(g){if(en(g)){const M=await g(b,n),U=Gf(M,w);if(U&&(S[p]={...U,...O(hn.validate,U.message)},!r))return _(U.message),S}else if(Ie(g)){let M={};for(const U in g){if(!ft(M)&&!r)break;const F=Gf(await g[U](b,n),w,U);F&&(M={...F,...O(U,F.message)},_(F.message),r&&(S[p]=M))}if(!ft(M)&&(S[p]={ref:w,...M},!r))return S}}return _(!0),S};function JT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Ic=e=>ot(e)||!$g(e);function jn(e,t){if(Ic(e)||Ic(t))return e===t;if(or(e)&&or(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(or(i)&&or(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!jn(i,o):i!==o)return!1}}return!0}var Jg=e=>e.type==="select-multiple",tA=e=>fu(e)||ki(e),Ua=e=>Co(e)&&e.isConnected,ey=e=>{for(const t in e)if(en(e[t]))return!0;return!1};function To(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!ey(e[r])?(t[r]=Array.isArray(e[r])?[]:{},To(e[r],t[r])):ot(e[r])||(t[r]=!0);return t}function ty(e,t,n){const r=Array.isArray(e);if(Ie(e)||r)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!ey(e[s])?De(t)||Ic(n[s])?n[s]=Array.isArray(e[s])?To(e[s],[]):{...To(e[s])}:ty(e[s],ot(t)?{}:t[s],n[s]):n[s]=!jn(e[s],t[s]);return n}var Ns=(e,t)=>ty(e,t,To(t)),ny=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>De(e)?e:t?e===""?NaN:e&&+e:n&&tn(e)?new Date(e):r?r(e):e;function za(e){const t=e.ref;return du(t)?t.files:fu(t)?Yg(e.refs).value:Jg(t)?[...t.selectedOptions].map(({value:n})=>n):ki(t)?Xg(e.refs).value:ny(De(t.value)?e.ref.value:t.value,e)}var nA=(e,t,n,r)=>{const s={};for(const i of e){const o=$(t,i);o&&xe(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},ks=e=>De(e)?e:Eo(e)?e.source:Ie(e)?Eo(e.value)?e.value.source:e.value:e;const Xf="AsyncFunction";var rA=e=>!!e&&!!e.validate&&!!(en(e.validate)&&e.validate.constructor.name===Xf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xf)),sA=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Yf(e,t,n){const r=$(e,n);if(r||lu(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.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};s.pop()}return{name:n}}var iA=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,oA=(e,t)=>!ta($(e,t)).length&&$e(e,t);const aA={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function cA(e={}){let t={...aA,...e},n={submitCount:0,isDirty:!1,isLoading:en(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ie(t.defaultValues)||Ie(t.values)?ut(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ut(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:$a(),array:$a(),state:$a()},h=Wf(t.mode),y=Wf(t.reValidateMode),g=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?ft((await R()).errors):await O(r,!0);P!==n.isValid&&d.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(j=>{j&&(P?xe(n.validatingFields,j,P):$e(n.validatingFields,j))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ft(n.validatingFields)}))},b=(C,P=[],j,z,B=!0,L=!0)=>{if(z&&j&&!t.disabled){if(o.action=!0,L&&Array.isArray($(r,C))){const J=j($(r,C),z.argA,z.argB);B&&xe(r,C,J)}if(L&&Array.isArray($(n.errors,C))){const J=j($(n.errors,C),z.argA,z.argB);B&&xe(n.errors,C,J),oA(n.errors,C)}if(u.touchedFields&&L&&Array.isArray($(n.touchedFields,C))){const J=j($(n.touchedFields,C),z.argA,z.argB);B&&xe(n.touchedFields,C,J)}u.dirtyFields&&(n.dirtyFields=Ns(s,i)),d.state.next({name:C,isDirty:M(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,j,z)=>{const B=$(r,C);if(B){const L=$(i,C,De(j)?$(s,C):j);De(L)||z&&z.defaultChecked||P?xe(i,C,P?L:za(B._f)):X(C,L),o.mount&&v()}},T=(C,P,j,z,B)=>{let L=!1,J=!1;const ae={name:C};if(!t.disabled){const Ve=!!($(r,C)&&$(r,C)._f&&$(r,C)._f.disabled);if(!j||z){u.isDirty&&(J=n.isDirty,n.isDirty=ae.isDirty=M(),L=J!==ae.isDirty);const Oe=Ve||jn($(s,C),P);J=!!(!Ve&&$(n.dirtyFields,C)),Oe||Ve?$e(n.dirtyFields,C):xe(n.dirtyFields,C,!0),ae.dirtyFields=n.dirtyFields,L=L||u.dirtyFields&&J!==!Oe}if(j){const Oe=$(n.touchedFields,C);Oe||(xe(n.touchedFields,C,j),ae.touchedFields=n.touchedFields,L=L||u.touchedFields&&Oe!==j)}L&&B&&d.state.next(ae)}return L?ae:{}},A=(C,P,j,z)=>{const B=$(n.errors,C),L=u.isValid&&Nt(P)&&n.isValid!==P;if(t.delayError&&j?(c=p(()=>w(C,j)),c(t.delayError)):(clearTimeout(l),c=null,j?xe(n.errors,C,j):$e(n.errors,C)),(j?!jn(B,j):B)||!ft(z)||L){const J={...z,...L&&Nt(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...J},d.state.next(J)}},R=async C=>{x(C,!0);const P=await t.resolver(i,t.context,nA(C||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},N=async C=>{const{errors:P}=await R(C);if(C)for(const j of C){const z=$(P,j);z?xe(n.errors,j,z):$e(n.errors,j)}else n.errors=P;return P},O=async(C,P,j={valid:!0})=>{for(const z in C){const B=C[z];if(B){const{_f:L,...J}=B;if(L){const ae=a.array.has(L.name),Ve=B._f&&rA(B._f);Ve&&u.validatingFields&&x([z],!0);const Oe=await Qf(B,a.disabled,i,g,t.shouldUseNativeValidation&&!P,ae);if(Ve&&u.validatingFields&&x([z]),Oe[L.name]&&(j.valid=!1,P))break;!P&&($(Oe,L.name)?ae?YT(n.errors,Oe,L.name):xe(n.errors,L.name,Oe[L.name]):$e(n.errors,L.name))}!ft(J)&&await O(J,P,j)}}return j.valid},I=()=>{for(const C of a.unMount){const P=$(r,C);P&&(P._f.refs?P._f.refs.every(j=>!Ua(j)):!Ua(P._f.ref))&&st(C)}a.unMount=new Set},M=(C,P)=>!t.disabled&&(C&&P&&xe(i,C,P),!jn(ye(),s)),U=(C,P,j)=>Gg(C,a,{...o.mount?i:De(P)?s:tn(C)?{[C]:P}:P},j,P),F=C=>ta($(o.mount?i:s,C,t.shouldUnregister?$(s,C,[]):[])),X=(C,P,j={})=>{const z=$(r,C);let B=P;if(z){const L=z._f;L&&(!L.disabled&&xe(i,C,ny(P,L)),B=Co(L.ref)&&ot(P)?"":P,Jg(L.ref)?[...L.ref.options].forEach(J=>J.selected=B.includes(J.value)):L.refs?ki(L.ref)?L.refs.length>1?L.refs.forEach(J=>(!J.defaultChecked||!J.disabled)&&(J.checked=Array.isArray(B)?!!B.find(ae=>ae===J.value):B===J.value)):L.refs[0]&&(L.refs[0].checked=!!B):L.refs.forEach(J=>J.checked=J.value===B):du(L.ref)?L.ref.value="":(L.ref.value=B,L.ref.type||d.values.next({name:C,values:{...i}})))}(j.shouldDirty||j.shouldTouch)&&T(C,B,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&fe(C)},Y=(C,P,j)=>{for(const z in P){const B=P[z],L=`${C}.${z}`,J=$(r,L);(a.array.has(C)||Ie(B)||J&&!J._f)&&!or(B)?Y(L,B,j):X(L,B,j)}},Z=(C,P,j={})=>{const z=$(r,C),B=a.array.has(C),L=ut(P);xe(i,C,L),B?(d.array.next({name:C,values:{...i}}),(u.isDirty||u.dirtyFields)&&j.shouldDirty&&d.state.next({name:C,dirtyFields:Ns(s,i),isDirty:M(C,L)})):z&&!z._f&&!ot(L)?Y(C,L,j):X(C,L,j),Hf(C,a)&&d.state.next({...n}),d.values.next({name:o.mount?C:void 0,values:{...i}})},K=async C=>{o.mount=!0;const P=C.target;let j=P.name,z=!0;const B=$(r,j),L=()=>P.type?za(B._f):Ug(C),J=ae=>{z=Number.isNaN(ae)||or(ae)&&isNaN(ae.getTime())||jn(ae,$(i,j,ae))};if(B){let ae,Ve;const Oe=L(),qt=C.type===_o.BLUR||C.type===_o.FOCUS_OUT,Cs=!sA(B._f)&&!t.resolver&&!$(n.errors,j)&&!B._f.deps||iA(qt,$(n.touchedFields,j),n.isSubmitted,y,h),Zt=Hf(j,a,qt);xe(i,j,Oe),qt?(B._f.onBlur&&B._f.onBlur(C),c&&c(0)):B._f.onChange&&B._f.onChange(C);const er=T(j,Oe,qt,!1),Es=!ft(er)||Zt;if(!qt&&d.values.next({name:j,type:C.type,values:{...i}}),Cs)return u.isValid&&(t.mode==="onBlur"&&qt?v():qt||v()),Es&&d.state.next({name:j,...Zt?{}:er});if(!qt&&Zt&&d.state.next({...n}),t.resolver){const{errors:tr}=await R([j]);if(J(Oe),z){const ya=Yf(n.errors,r,j),Vi=Yf(tr,r,ya.name||j);ae=Vi.error,j=Vi.name,Ve=ft(tr)}}else x([j],!0),ae=(await Qf(B,a.disabled,i,g,t.shouldUseNativeValidation))[j],x([j]),J(Oe),z&&(ae?Ve=!1:u.isValid&&(Ve=await O(r,!0)));z&&(B._f.deps&&fe(B._f.deps),A(j,Ve,ae,er))}},se=(C,P)=>{if($(n.errors,P)&&C.focus)return C.focus(),1},fe=async(C,P={})=>{let j,z;const B=Ws(C);if(t.resolver){const L=await N(De(C)?C:B);j=ft(L),z=C?!B.some(J=>$(L,J)):j}else C?(z=(await Promise.all(B.map(async L=>{const J=$(r,L);return await O(J&&J._f?{[L]:J}:J)}))).every(Boolean),!(!z&&!n.isValid)&&v()):z=j=await O(r);return d.state.next({...!tn(C)||u.isValid&&j!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:j}:{},errors:n.errors}),P.shouldFocus&&!z&&Hs(r,se,C?B:a.mount),z},ye=C=>{const P={...o.mount?i:s};return De(C)?P:tn(C)?$(P,C):C.map(j=>$(P,j))},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)}),Ge=C=>{C&&Ws(C).forEach(P=>$e(n.errors,P)),d.state.next({errors:C?n.errors:{}})},Qe=(C,P,j)=>{const z=($(r,C,{_f:{}})._f||{}).ref,B=$(n.errors,C)||{},{ref:L,message:J,type:ae,...Ve}=B;xe(n.errors,C,{...Ve,...P,ref:z}),d.state.next({name:C,errors:n.errors,isValid:!1}),j&&j.shouldFocus&&z&&z.focus&&z.focus()},jt=(C,P)=>en(C)?d.values.subscribe({next:j=>C(U(void 0,P),j)}):U(C,P,!0),st=(C,P={})=>{for(const j of C?Ws(C):a.mount)a.mount.delete(j),a.array.delete(j),P.keepValue||($e(r,j),$e(i,j)),!P.keepError&&$e(n.errors,j),!P.keepDirty&&$e(n.dirtyFields,j),!P.keepTouched&&$e(n.touchedFields,j),!P.keepIsValidating&&$e(n.validatingFields,j),!t.shouldUnregister&&!P.keepDefaultValue&&$e(s,j);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:M()}:{}}),!P.keepIsValid&&v()},ue=({disabled:C,name:P,field:j,fields:z})=>{(Nt(C)&&o.mount||C||a.disabled.has(P))&&(C?a.disabled.add(P):a.disabled.delete(P),T(P,za(j?j._f:$(z,P)._f),!1,!1,!0))},ve=(C,P={})=>{let j=$(r,C);const z=Nt(P.disabled)||Nt(t.disabled);return xe(r,C,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:C}},name:C,mount:!0,...P}}),a.mount.add(C),j?ue({field:j,disabled:Nt(P.disabled)?P.disabled:t.disabled,name:C}):S(C,!0,P.value),{...z?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:ks(P.min),max:ks(P.max),minLength:ks(P.minLength),maxLength:ks(P.maxLength),pattern:ks(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:B=>{if(B){ve(C,P),j=$(r,C);const L=De(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,J=tA(L),ae=j._f.refs||[];if(J?ae.find(Ve=>Ve===L):L===j._f.ref)return;xe(r,C,{_f:{...j._f,...J?{refs:[...ae.filter(Ua),L,...Array.isArray($(s,C))?[{}]:[]],ref:{type:L.type,name:C}}:{ref:L}}}),S(C,!1,void 0,L)}else j=$(r,C,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(zg(a.array,C)&&o.action)&&a.unMount.add(C)}}},je=()=>t.shouldFocusError&&Hs(r,se,a.mount),Fe=C=>{Nt(C)&&(d.state.next({disabled:C}),Hs(r,(P,j)=>{const z=$(r,j);z&&(P.disabled=z._f.disabled||C,Array.isArray(z._f.refs)&&z._f.refs.forEach(B=>{B.disabled=z._f.disabled||C}))},0,!1))},we=(C,P)=>async j=>{let z;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let B=ut(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:J}=await R();n.errors=L,B=J}else await O(r);if($e(n.errors,"root"),ft(n.errors)){d.state.next({errors:{}});try{await C(B,j)}catch(L){z=L}}else P&&await P({...n.errors},j),je(),setTimeout(je);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ft(n.errors)&&!z,submitCount:n.submitCount+1,errors:n.errors}),z)throw z},G=(C,P={})=>{$(r,C)&&(De(P.defaultValue)?Z(C,ut($(s,C))):(Z(C,P.defaultValue),xe(s,C,ut(P.defaultValue))),P.keepTouched||$e(n.touchedFields,C),P.keepDirty||($e(n.dirtyFields,C),n.isDirty=P.defaultValue?M(C,ut($(s,C))):M()),P.keepError||($e(n.errors,C),u.isValid&&v()),d.state.next({...n}))},he=(C,P={})=>{const j=C?ut(C):s,z=ut(j),B=ft(C),L=B?s:z;if(P.keepDefaultValues||(s=j),!P.keepValues){if(P.keepDirtyValues){const J=new Set([...a.mount,...Object.keys(Ns(s,i))]);for(const ae of Array.from(J))$(n.dirtyFields,ae)?xe(L,ae,$(i,ae)):Z(ae,$(L,ae))}else{if(cu&&De(C))for(const J of a.mount){const ae=$(r,J);if(ae&&ae._f){const Ve=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Co(Ve)){const Oe=Ve.closest("form");if(Oe){Oe.reset();break}}}}r={}}i=t.shouldUnregister?P.keepDefaultValues?ut(s):{}:ut(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&&!jn(C,s)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Ns(s,i):n.dirtyFields:P.keepDefaultValues&&C?Ns(s,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ce=(C,P)=>he(en(C)?C(i):C,P);return{control:{register:ve,unregister:st,getFieldState:Be,handleSubmit:we,setError:Qe,_executeSchema:R,_getWatch:U,_getDirty:M,_updateValid:v,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:F,_reset:he,_resetDefaultValues:()=>en(t.defaultValues)&&t.defaultValues().then(C=>{Ce(C,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:Fe,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(C){o=C},get _defaultValues(){return s},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:Z,getValues:ye,reset:Ce,resetField:G,clearErrors:Ge,unregister:st,setError:Qe,setFocus:(C,P={})=>{const j=$(r,C),z=j&&j._f;if(z){const B=z.refs?z.refs[0]:z.ref;B.focus&&(B.focus(),P.shouldSelect&&en(B.select)&&B.select())}},getFieldState:Be}}function lA(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[r,s]=de.useState({isDirty:!1,isValidating:!1,isLoading:en(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:en(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...cA(e),formState:r});const i=t.current.control;return i._options=e,uu({subject:i._subjects.state,next:o=>{Zg(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),de.useEffect(()=>{e.values&&!jn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),de.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),de.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),de.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=qg(r,i),t.current}var uA="Label",ry=m.forwardRef((e,t)=>f.jsx(lt.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ry.displayName=uA;var sy=ry;const dA=Go("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),iy=m.forwardRef(({className:e,...t},n)=>f.jsx(sy,{ref:n,className:V(dA(),e),...t}));iy.displayName=sy.displayName;const pO=ZT,oy=m.createContext({}),fA=({...e})=>f.jsx(oy.Provider,{value:{name:e.name},children:f.jsx(XT,{...e})}),ra=()=>{const e=m.useContext(oy),t=m.useContext(ay),{getFieldState:n,formState:r}=na(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},ay=m.createContext({}),cy=m.forwardRef(({className:e,...t},n)=>{const r=m.useId();return f.jsx(ay.Provider,{value:{id:r},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});cy.displayName="FormItem";const ly=m.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=ra();return f.jsx(iy,{ref:n,className:V(r&&"text-destructive",e),htmlFor:s,...t})});ly.displayName="FormLabel";const uy=m.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=ra();return f.jsx(ms,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});uy.displayName="FormControl";const hA=m.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=ra();return f.jsx("p",{ref:n,id:r,className:V("text-[0.8rem] text-muted-foreground",e),...t})});hA.displayName="FormDescription";const dy=m.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=ra(),o=s?String(s==null?void 0:s.message):t;return o?f.jsx("p",{ref:r,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});dy.displayName="FormMessage";const Lc=m.forwardRef(({className:e,type:t,...n},r)=>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:r,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:r,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(l0,{className:"cursor-pointer",size:16})," Upload file"]})]}));Lc.displayName="Input";const fy=m.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}));fy.displayName="Textarea";const Jf=e=>{let t;const n=new Set,r=(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))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,s,a);return a},pA=e=>e?Jf(e):Jf,mA=e=>e;function gA(e,t=mA){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const yA=e=>{const t=pA(e),n=r=>gA(t,r);return Object.assign(n,t),n},hy=e=>yA;function vA(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const Fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Fc(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Fc(r)(n)}}}},xA=(e,t)=>(n,r,s)=>{let i={storage:vA(()=>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)},r,s);const u=()=>{const p=i.partialize({...r()});return l.setItem(i.name,{state:p,version:i.version})},d=s.setState;s.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},r,s);s.getInitialState=()=>h;let y;const g=()=>{var p,v;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=r())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=r())!=null?p:h))||void 0;return Fc(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=r())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=r(),o=!0,c.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return s.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||g(),y||h},bA=xA;var Ze=(e=>(e.EN="en",e.RU="ru",e.TM="tm",e))(Ze||{});const _e=hy()(bA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),mO=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:h=!1})=>{const y=_e(g=>g.lang);return f.jsx(fA,{control:e,name:t,render:({field:g})=>f.jsxs(cy,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(ly,{className:V("text-xl",h&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(uy,{children:f.jsx(f.Fragment,{children:c?f.jsx(fy,{rows:3,...g,placeholder:r,className:V(s&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Lc,{...g,type:i,placeholder:r,disabled:a,className:V(s&&"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(Lc,{type:"file",placeholder:r,onChange:p=>{var x;const v=((x=p.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",v),g.onChange(v),d&&d(p)},disabled:a}),g.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:[{ru:"Выбранный файл:",en:"Selected file:",tm:"Saýlanan faýl:"}[y]," ",g.value.name]})]})})}),f.jsx(dy,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&h?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})})},gO=({className:e,delay:t=.15})=>{const n=_e(r=>r.lang);return f.jsxs(zs.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:{ru:"Форма успешно отправлена!",en:"Form submitted successfully!",tm:"Forma üstünlikli ugradyldy!"}[n]}),f.jsx(Se,{className:"w-fit mx-auto",to:"/",children:f.jsx(tt,{variant:"outline",children:{ru:"Вернуться на главную",en:"Back to home",tm:"Baş sahypa gaýdyp barmak"}[n]})})]})},wA=({className:e,slides:t,active:n,scrollTo:r})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>f.jsx("span",{onClick:()=>r==null?void 0:r(i),className:V(n===i?"dot-active":"dot")},i))}),SA=["top","right","bottom","left"],Wn=Math.min,gt=Math.max,Ao=Math.round,Yi=Math.floor,sn=e=>({x:e,y:e}),_A={left:"right",right:"left",bottom:"top",top:"bottom"},CA={start:"end",end:"start"};function Vc(e,t,n){return gt(e,Wn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function hu(e){return e==="x"?"y":"x"}function pu(e){return e==="y"?"height":"width"}function Hn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function mu(e){return hu(Hn(e))}function EA(e,t,n){n===void 0&&(n=!1);const r=bs(e),s=mu(e),i=pu(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ro(o)),[o,Ro(o)]}function TA(e){const t=Ro(e);return[Bc(e),t,Bc(t)]}function Bc(e){return e.replace(/start|end/g,t=>CA[t])}function AA(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function RA(e,t,n,r){const s=bs(e);let i=AA(_n(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Bc)))),i}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>_A[t])}function PA(e){return{top:0,right:0,bottom:0,left:0,...e}}function py(e){return typeof e!="number"?PA(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function eh(e,t,n){let{reference:r,floating:s}=e;const i=Hn(t),o=mu(t),a=pu(o),c=_n(t),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let y;switch(c){case"top":y={x:u,y:r.y-s.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-s.width,y:d};break;default:y={x:r.x,y:r.y}}switch(bs(t)){case"start":y[o]-=h*(n&&l?-1:1);break;case"end":y[o]+=h*(n&&l?-1:1);break}return y}const NA=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=eh(l,r,c),h=r,y={},g=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Sn(e,t)||{};if(l==null)return{};const d=py(u),h={x:n,y:r},y=mu(s),g=pu(y),p=await o.getDimensions(l),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[y]-h[y]-i.floating[g],S=h[y]-i.reference[y],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let A=T?T[w]:0;(!A||!await(o.isElement==null?void 0:o.isElement(T)))&&(A=a.floating[w]||i.floating[g]);const R=_/2-S/2,N=A/2-p[g]/2-1,O=Wn(d[x],N),I=Wn(d[b],N),M=O,U=A-p[g]-I,F=A/2-p[g]/2+R,X=Vc(M,F,U),Y=!c.arrow&&bs(s)!=null&&F!==X&&i.reference[g]/2-(FF<=0)){var I,M;const F=(((I=i.flip)==null?void 0:I.index)||0)+1,X=A[F];if(X)return{data:{index:F,overflows:O},reset:{placement:X}};let Y=(M=O.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(y){case"bestFit":{var U;const Z=(U=O.filter(K=>{if(T){const se=Hn(K.placement);return se===b||se==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(se=>se>0).reduce((se,fe)=>se+fe,0)]).sort((K,se)=>K[1]-se[1])[0])==null?void 0:U[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}};function th(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nh(e){return SA.some(t=>e[t]>=0)}const OA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Sn(e,t);switch(r){case"referenceHidden":{const i=await ni(t,{...s,elementContext:"reference"}),o=th(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:nh(o)}}}case"escaped":{const i=await ni(t,{...s,altBoundary:!0}),o=th(i,n.floating);return{data:{escapedOffsets:o,escaped:nh(o)}}}default:return{}}}}};async function MA(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=_n(n),a=bs(n),c=Hn(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Sn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(y=a==="end"?g*-1:g),c?{x:y*u,y:h*l}:{x:h*l,y:y*u}}const DA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await MA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},IA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=Sn(e,t),l={x:n,y:r},u=await ni(t,c),d=Hn(_n(s)),h=hu(d);let y=l[h],g=l[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=Vc(b,y,w)}if(o){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=g+u[v],w=g-u[x];g=Vc(b,g,w)}const p=a.fn({...t,[h]:y,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:o}}}}}},LA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Sn(e,t),u={x:n,y:r},d=Hn(s),h=hu(d);let y=u[h],g=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(s)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),T=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);gT&&(g=T)}return{[h]:y,[d]:g}}}},FA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Sn(e,t),u=await ni(t,l),d=_n(s),h=bs(s),y=Hn(s)==="y",{width:g,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=g-u.left-u.right,_=Wn(p-u[v],b),S=Wn(g-u[x],w),T=!t.middlewareData.shift;let A=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=b),T&&!h){const O=gt(u.left,0),I=gt(u.right,0),M=gt(u.top,0),U=gt(u.bottom,0);y?R=g-2*(O!==0||I!==0?O+I:gt(u.left,u.right)):A=p-2*(M!==0||U!==0?M+U:gt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:A});const N=await o.getDimensions(a.floating);return g!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function sa(){return typeof window<"u"}function ws(e){return my(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(my(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function my(e){return sa()?e instanceof Node||e instanceof bt(e).Node:!1}function Bt(e){return sa()?e instanceof Element||e instanceof bt(e).Element:!1}function an(e){return sa()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function rh(e){return!sa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function VA(e){return["table","td","th"].includes(ws(e))}function ia(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gu(e){const t=yu(),n=Bt(e)?$t(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function BA(e){let t=qn(e);for(;an(t)&&!ls(t);){if(gu(t))return t;if(ia(t))return null;t=qn(t)}return null}function yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ls(e){return["html","body","#document"].includes(ws(e))}function $t(e){return bt(e).getComputedStyle(e)}function oa(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(ws(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rh(e)&&e.host||dn(e);return rh(t)?t.host:t}function gy(e){const t=qn(e);return ls(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&ji(t)?t:gy(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=gy(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=bt(s);if(i){const a=$c(o);return t.concat(o,o.visualViewport||[],ji(s)?s:[],a&&n?ri(a):[])}return t.concat(s,ri(s,[],n))}function $c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yy(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=an(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Ao(n)!==i||Ao(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function vu(e){return Bt(e)?e:e.contextElement}function qr(e){const t=vu(e);if(!an(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=yy(t);let o=(i?Ao(n.width):n.width)/r,a=(i?Ao(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $A=sn(0);function vy(e){const t=bt(e);return!yu()||!t.visualViewport?$A:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function _r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=vu(e);let o=sn(1);t&&(r?Bt(r)&&(o=qr(r)):o=qr(e));const a=UA(i,n,r)?vy(i):sn(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=bt(i),y=r&&Bt(r)?bt(r):r;let g=h,p=$c(g);for(;p&&r&&y!==g;){const v=qr(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+=_,g=bt(p),p=$c(g)}}return Po({width:u,height:d,x:c,y:l})}function xu(e,t){const n=oa(e).scrollLeft;return t?t.left+n:_r(dn(e)).left+n}function xy(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:xu(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function zA(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=dn(r),a=t?ia(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=sn(1);const u=sn(0),d=an(r);if((d||!d&&!i)&&((ws(r)!=="body"||ji(o))&&(c=oa(r)),an(r))){const y=_r(r);l=qr(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}const h=o&&!d&&!i?xy(o,c,!0):sn(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 WA(e){return Array.from(e.getClientRects())}function HA(e){const t=dn(e),n=oa(e),r=e.ownerDocument.body,s=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+xu(e);const a=-n.scrollTop;return $t(r).direction==="rtl"&&(o+=gt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function qA(e,t){const n=bt(e),r=dn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=yu();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function ZA(e,t){const n=_r(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=an(e)?qr(e):sn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function sh(e,t,n){let r;if(t==="viewport")r=qA(e,n);else if(t==="document")r=HA(dn(e));else if(Bt(t))r=ZA(t,n);else{const s=vy(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Po(r)}function by(e,t){const n=qn(e);return n===t||!Bt(n)||ls(n)?!1:$t(n).position==="fixed"||by(n,t)}function KA(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(a=>Bt(a)&&ws(a)!=="body"),s=null;const i=$t(e).position==="fixed";let o=i?qn(e):e;for(;Bt(o)&&!ls(o);){const a=$t(o),c=gu(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!c&&by(e,o))?r=r.filter(u=>u!==o):s=a,o=qn(o)}return t.set(e,r),r}function GA(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ia(t)?[]:KA(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=sh(t,u,s);return l.top=gt(d.top,l.top),l.right=Wn(d.right,l.right),l.bottom=Wn(d.bottom,l.bottom),l.left=gt(d.left,l.left),l},sh(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function QA(e){const{width:t,height:n}=yy(e);return{width:t,height:n}}function XA(e,t,n){const r=an(t),s=dn(t),i=n==="fixed",o=_r(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=sn(0);if(r||!r&&!i)if((ws(t)!=="body"||ji(s))&&(a=oa(t)),r){const h=_r(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=xu(s));const l=s&&!r&&!i?xy(s,a):sn(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 ih(e,t){if(!an(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function wy(e,t){const n=bt(e);if(ia(e))return n;if(!an(e)){let s=qn(e);for(;s&&!ls(s);){if(Bt(s)&&!Wa(s))return s;s=qn(s)}return n}let r=ih(e,t);for(;r&&VA(r)&&Wa(r);)r=ih(r,t);return r&&ls(r)&&Wa(r)&&!gu(r)?n:r||BA(e)||n}const YA=async function(e){const t=this.getOffsetParent||wy,n=this.getDimensions,r=await n(e.floating);return{reference:XA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JA(e){return $t(e).direction==="rtl"}const eR={convertOffsetParentRelativeRectToViewportRelativeRect:zA,getDocumentElement:dn,getClippingRect:GA,getOffsetParent:wy,getElementRects:YA,getClientRects:WA,getDimensions:QA,getScale:qr,isElement:Bt,isRTL:JA};function Sy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tR(e,t){let n=null,r;const s=dn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:y}=l;if(a||t(),!h||!y)return;const g=Yi(d),p=Yi(s.clientWidth-(u+h)),v=Yi(s.clientHeight-(d+y)),x=Yi(u),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-x+"px",threshold:gt(0,Wn(1,c))||1};let _=!0;function S(T){const A=T[0].intersectionRatio;if(A!==c){if(!_)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!Sy(l,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function nR(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=vu(e),u=s||i?[...l?ri(l):[],...ri(t)]:[];u.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=l&&a?tR(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 g,p=c?_r(e):null;c&&v();function v(){const x=_r(e);p&&!Sy(p,x)&&n(),p=x,g=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const rR=DA,sR=IA,iR=jA,oR=FA,aR=OA,oh=kA,cR=LA,lR=(e,t,n)=>{const r=new Map,s={platform:eR,...n},i={...s.platform,_c:r};return NA(e,t,{...s,platform:i})};var co=typeof document<"u"?m.useLayoutEffect:m.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,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!No(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!No(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _y(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const n=_y(e);return Math.round(t*n)/n}function Ha(e){const t=m.useRef(e);return co(()=>{t.current=e}),t}function uR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=m.useState(r);No(h,r)||y(r);const[g,p]=m.useState(null),[v,x]=m.useState(null),b=m.useCallback(K=>{K!==T.current&&(T.current=K,p(K))},[]),w=m.useCallback(K=>{K!==A.current&&(A.current=K,x(K))},[]),_=i||g,S=o||v,T=m.useRef(null),A=m.useRef(null),R=m.useRef(u),N=c!=null,O=Ha(c),I=Ha(s),M=Ha(l),U=m.useCallback(()=>{if(!T.current||!A.current)return;const K={placement:t,strategy:n,middleware:h};I.current&&(K.platform=I.current),lR(T.current,A.current,K).then(se=>{const fe={...se,isPositioned:M.current!==!1};F.current&&!No(R.current,fe)&&(R.current=fe,ul.flushSync(()=>{d(fe)}))})},[h,t,n,I,M]);co(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[l]);const F=m.useRef(!1);co(()=>(F.current=!0,()=>{F.current=!1}),[]),co(()=>{if(_&&(T.current=_),S&&(A.current=S),_&&S){if(O.current)return O.current(_,S,U);U()}},[_,S,U,O,N]);const X=m.useMemo(()=>({reference:T,floating:A,setReference:b,setFloating:w}),[b,w]),Y=m.useMemo(()=>({reference:_,floating:S}),[_,S]),Z=m.useMemo(()=>{const K={position:n,left:0,top:0};if(!Y.floating)return K;const se=ah(Y.floating,u.x),fe=ah(Y.floating,u.y);return a?{...K,transform:"translate("+se+"px, "+fe+"px)",..._y(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:fe}},[n,a,Y.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:U,refs:X,elements:Y,floatingStyles:Z}),[u,U,X,Y,Z])}const dR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?oh({element:r.current,padding:s}).fn(n):{}:r?oh({element:r,padding:s}).fn(n):{}}}},fR=(e,t)=>({...rR(e),options:[e,t]}),hR=(e,t)=>({...sR(e),options:[e,t]}),pR=(e,t)=>({...cR(e),options:[e,t]}),mR=(e,t)=>({...iR(e),options:[e,t]}),gR=(e,t)=>({...oR(e),options:[e,t]}),yR=(e,t)=>({...aR(e),options:[e,t]}),vR=(e,t)=>({...dR(e),options:[e,t]});var xR="Arrow",Cy=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return f.jsx(lt.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cy.displayName=xR;var bR=Cy;function wR(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ch=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},SR=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function _R(e){const[t,n]=m.useState(void 0);return SR(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bu="Popper",[Ey,Ty]=ml(bu),[CR,Ay]=Ey(bu),Ry=e=>{const{__scopePopper:t,children:n}=e,[r,s]=m.useState(null);return f.jsx(CR,{scope:t,anchor:r,onAnchorChange:s,children:n})};Ry.displayName=bu;var Py="PopperAnchor",Ny=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Ay(Py,n),o=m.useRef(null),a=zt(t,o);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:f.jsx(lt.div,{...s,ref:a})});Ny.displayName=Py;var wu="PopperContent",[ER,TR]=Ey(wu),ky=m.forwardRef((e,t)=>{var ue,ve,je,Fe,we,G;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...p}=e,v=Ay(wu,n),[x,b]=m.useState(null),w=zt(t,he=>b(he)),[_,S]=m.useState(null),T=_R(_),A=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,N=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],M=I.length>0,U={padding:O,boundary:I.filter(RR),altBoundary:M},{refs:F,floatingStyles:X,placement:Y,isPositioned:Z,middlewareData:K}=uR({strategy:"fixed",placement:N,whileElementsMounted:(...he)=>nR(...he,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[fR({mainAxis:s+R,alignmentAxis:o}),c&&hR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pR():void 0,...U}),c&&mR({...U}),gR({...U,apply:({elements:he,rects:Ce,availableWidth:Ue,availableHeight:mt})=>{const{width:Et,height:C}=Ce.reference,P=he.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${mt}px`),P.setProperty("--radix-popper-anchor-width",`${Et}px`),P.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&vR({element:_,padding:a}),PR({arrowWidth:A,arrowHeight:R}),h&&yR({strategy:"referenceHidden",...U})]}),[se,fe]=My(Y),ye=wR(g);ch(()=>{Z&&(ye==null||ye())},[Z,ye]);const Be=(ue=K.arrow)==null?void 0:ue.x,Ge=(ve=K.arrow)==null?void 0:ve.y,Qe=((je=K.arrow)==null?void 0:je.centerOffset)!==0,[jt,st]=m.useState();return ch(()=>{x&&st(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jt,"--radix-popper-transform-origin":[(Fe=K.transformOrigin)==null?void 0:Fe.x,(we=K.transformOrigin)==null?void 0:we.y].join(" "),...((G=K.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(ER,{scope:n,placedSide:se,onArrowChange:S,arrowX:Be,arrowY:Ge,shouldHideArrow:Qe,children:f.jsx(lt.div,{"data-side":se,"data-align":fe,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});ky.displayName=wu;var jy="PopperArrow",AR={top:"bottom",right:"left",bottom:"top",left:"right"},Oy=m.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=TR(jy,r),o=AR[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(bR,{...s,ref:n,style:{...s.style,display:"block"}})})});Oy.displayName=jy;function RR(e){return e!==null}var PR=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:r,middlewareData:s}=t,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=My(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=s.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let g="",p="";return l==="bottom"?(g=o?d:`${h}px`,p=`${-c}px`):l==="top"?(g=o?d:`${h}px`,p=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,p=o?d:`${y}px`):l==="left"&&(g=`${r.floating.width+c}px`,p=o?d:`${y}px`),{data:{x:g,y:p}}}});function My(e){const[t,n="center"]=e.split("-");return[t,n]}var NR=Ry,Dy=Ny,kR=ky,jR=Oy,Su="Popover",[Iy,yO]=ml(Su,[Ty]),Oi=Ty(),[OR,Yn]=Iy(Su),Ly=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Oi(t),c=m.useRef(null),[l,u]=m.useState(!1),[d=!1,h]=fp({prop:r,defaultProp:s,onChange:i});return f.jsx(NR,{...a,children:f.jsx(OR,{scope:t,contentId:to(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:l,onCustomAnchorAdd:m.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.useCallback(()=>u(!1),[]),modal:o,children:n})})};Ly.displayName=Su;var Fy="PopoverAnchor",MR=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Fy,n),i=Oi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return m.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(Dy,{...i,...r,ref:t})});MR.displayName=Fy;var Vy="PopoverTrigger",By=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Vy,n),i=Oi(n),o=zt(t,s.triggerRef),a=f.jsx(lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hy(s.open),...r,ref:o,onClick:vt(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:f.jsx(Dy,{asChild:!0,...i,children:a})});By.displayName=Vy;var _u="PopoverPortal",[DR,IR]=Iy(_u,{forceMount:void 0}),$y=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=Yn(_u,t);return f.jsx(DR,{scope:t,forceMount:n,children:f.jsx(gs,{present:n||i.open,children:f.jsx(vl,{asChild:!0,container:s,children:r})})})};$y.displayName=_u;var us="PopoverContent",Uy=m.forwardRef((e,t)=>{const n=IR(us,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=Yn(us,e.__scopePopover);return f.jsx(gs,{present:r||i.open,children:i.modal?f.jsx(LR,{...s,ref:t}):f.jsx(FR,{...s,ref:t})})});Uy.displayName=us;var LR=m.forwardRef((e,t)=>{const n=Yn(us,e.__scopePopover),r=m.useRef(null),s=zt(t,r),i=m.useRef(!1);return m.useEffect(()=>{const o=r.current;if(o)return Tp(o)},[]),f.jsx(xl,{as:ms,allowPinchZoom:!0,children:f.jsx(zy,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:vt(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:vt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),FR=m.forwardRef((e,t)=>{const n=Yn(us,e.__scopePopover),r=m.useRef(!1),s=m.useRef(!1);return f.jsx(zy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zy=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Yn(us,n),y=Oi(n);return yp(),f.jsx(yl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:f.jsx(gl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(kR,{"data-state":Hy(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)"}})})})}),Wy="PopoverClose",VR=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Wy,n);return f.jsx(lt.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>s.onOpenChange(!1))})});VR.displayName=Wy;var BR="PopoverArrow",$R=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Oi(n);return f.jsx(jR,{...s,...r,ref:t})});$R.displayName=BR;function Hy(e){return e?"open":"closed"}var UR=Ly,zR=By,WR=$y,qy=Uy;const Zy=UR,Ky=zR,Cu=m.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>f.jsx(WR,{children:f.jsx(qy,{ref:s,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),...r})}));Cu.displayName=qy.displayName;const HR=[{lang:Ze.RU},{lang:Ze.EN},{lang:Ze.TM}],lh={[Ze.RU]:"/ru.svg",[Ze.EN]:"/english.svg",[Ze.TM]:"/tm.png"},qR={[Ze.RU]:"Ру",[Ze.EN]:"En",[Ze.TM]:"Tm"},ZR={[Ze.RU]:"Русский",[Ze.EN]:"English",[Ze.TM]:"Türkmen"},uh=({className:e,light:t=!1})=>{const n=_e(o=>o.lang),r=_e(o=>o.setLang),[s,i]=m.useState(!1);return f.jsxs(Zy,{open:s,onOpenChange:()=>i(!s),children:[f.jsxs(Ky,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:lh[n],alt:""}),qR[n],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(Cu,{className:"flex flex-col gap-6 w-fit relative z-[200] py-2 px-4 bg-surface_container",children:HR.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{r(o.lang),i(!1)},className:"flex gap-3 py-2 items-center cursor-pointer",children:[f.jsx("img",{src:lh[o.lang],alt:"flag"}),f.jsx("h5",{children:ZR[o.lang]})]},a))})]})},Gy=zp,Qy=Wp,KR=Hp,Xy=m.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}));Xy.displayName=Ho.displayName;const Eu=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(KR,{children:[f.jsx(Xy,{}),f.jsxs(qo,{ref:r,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(Cl,{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(El,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Eu.displayName=qo.displayName;const GR=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));GR.displayName=Zo.displayName;const QR=m.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));QR.displayName=Ko.displayName;const dh=(e,t,n)=>{if(e&&"reportValidity"in e){const r=$(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Yy=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dh(r.ref,n,e):r.refs&&r.refs.forEach(s=>dh(s,n,e))}},XR=(e,t)=>{t.shouldUseNativeValidation&&Yy(e,t);const n={};for(const r in e){const s=$(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(YR(t.names||Object.keys(e),r)){const o=Object.assign({},$(n,r));xe(o,"root",i),xe(n,r,o)}else xe(n,r,i)}return n},YR=(e,t)=>e.some(n=>n.startsWith(t+"."));var JR=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=Qg(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},eP=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Yy({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:XR(JR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ge;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ge||(ge={}));var Uc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Uc||(Uc={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),gn=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"]),tP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class wt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;cn.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wt.create=e=>new wt(e);const ds=(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 Jy=ds;function nP(e){Jy=e}function ko(){return Jy}const jo=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},rP=[];function W(e,t){const n=ko(),r=jo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ds?void 0:ds].filter(s=>!!s)});e.common.issues.push(r)}class nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return re;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return nt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),zr=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),zc=e=>e.status==="aborted",Wc=e=>e.status==="dirty",Cr=e=>e.status==="valid",si=e=>typeof Promise<"u"&&e instanceof Promise;function Oo(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function ev(e,t,n,r,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var 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 Is,Ls;class cn{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fh=(e,t)=>{if(Cr(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 wt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:s}}class le{get description(){return this._def.description}_getType(t){return gn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:gn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new nt,ctx:{common:t.parent.common,data:t.data,parsedType:gn(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 r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:gn(t)},i=this._parseSync({data:t,path:s.path,parent:s});return fh(s,i)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:gn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:s});return Cr(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(i=>Cr(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:gn(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(si(s)?s:Promise.resolve(s));return fh(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:D.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Ut({schema:this,typeName:ne.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 on.create(this,this._def)}nullable(){return Qn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this)}promise(){return hs.create(this,this._def)}or(t){return ci.create([this,t],this._def)}and(t){return li.create(this,t,this._def)}transform(t){return new Ut({...oe(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pi({...oe(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new Tu({typeName:ne.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mi({...oe(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mi.create(this,t)}readonly(){return gi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sP=/^c[^\s-]{8,}$/i,iP=/^[0-9a-z]+$/,oP=/^[0-9A-HJKMNP-TV-Z]{26}$/i,aP=/^[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,cP=/^[a-z0-9_-]{21}$/i,lP=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uP=/^[-+]?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)?)??$/,dP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let qa;const hP=/^(?:(?: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])$/,pP=/^(?:(?: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])$/,mP=/^(([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]))$/,gP=/^(([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])$/,yP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tv="((\\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])))",xP=new RegExp(`^${tv}$`);function nv(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 bP(e){return new RegExp(`^${nv(e)}$`)}function rv(e){let t=`${tv}T${nv(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 wP(e,t){return!!((t==="v4"||!t)&&hP.test(e)||(t==="v6"||!t)&&mP.test(e))}function SP(e,t){if(!lP.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function _P(e,t){return!!((t==="v4"||!t)&&pP.test(e)||(t==="v6"||!t)&&gP.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}),re}const r=new nt;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:D.invalid_string,...Q.errToObj(r)})}_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,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...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:ne.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function CP(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class Zn 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}),re}let r;const s=new nt;for(const i of this._def.checks)i.kind==="int"?ge.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?CP(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_finite,message:i.message}),s.dirty()):ge.assertNever(i);return{status:s.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,r,s){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Q.toString(s)}]})}_addCheck(t){return new Zn({...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 r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Zn({checks:[],typeName:ne.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Kn 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 r;const s=new nt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ge.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),re}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,r,s){return new Kn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Q.toString(s)}]})}_addCheck(t){return new Kn({...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 Kn({checks:[],typeName:ne.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class ii extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.boolean,received:r.parsedType}),re}return ct(t.data)}}ii.create=e=>new ii({typeName:ne.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Er 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}),re}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),re}const r=new nt;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ge.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Er({...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 Er({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ne.ZodDate,...oe(e)});class Mo extends le{_parse(t){if(this._getType(t)!==H.symbol){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.symbol,received:r.parsedType}),re}return ct(t.data)}}Mo.create=e=>new Mo({typeName:ne.ZodSymbol,...oe(e)});class oi extends le{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.undefined,received:r.parsedType}),re}return ct(t.data)}}oi.create=e=>new oi({typeName:ne.ZodUndefined,...oe(e)});class ai extends le{_parse(t){if(this._getType(t)!==H.null){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.null,received:r.parsedType}),re}return ct(t.data)}}ai.create=e=>new ai({typeName:ne.ZodNull,...oe(e)});class fs extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}}fs.create=e=>new fs({typeName:ne.ZodAny,...oe(e)});class xr extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}}xr.create=e=>new xr({typeName:ne.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}),re}}Cn.create=e=>new Cn({typeName:ne.ZodNever,...oe(e)});class Do extends le{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.void,received:r.parsedType}),re}return ct(t.data)}}Do.create=e=>new Do({typeName:ne.ZodVoid,...oe(e)});class Ft extends le{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),re;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(W(n,{code:D.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new cn(n,o,n.path,a)))).then(o=>nt.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new cn(n,o,n.path,a)));return nt.mergeArray(r,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:ne.ZodArray,...oe(t)});function Lr(e){if(e instanceof Ae){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=on.create(Lr(r))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Lr(e.element)}):e instanceof on?on.create(Lr(e.unwrap())):e instanceof Qn?Qn.create(Lr(e.unwrap())):e instanceof ln?ln.create(e.items.map(t=>Lr(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}),re}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const l in s.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new cn(s,d,s.path,l)),alwaysSet:l in s.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:s.data[u]}});else if(l==="strict")a.length>0&&(W(s,{code:D.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new cn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,h=await u.value;l.push({key:d,value:h,alwaysSet:u.alwaysSet})}return l}).then(l=>nt.mergeObjectSync(r,l)):nt.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=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:ne.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(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Lr(this)}partial(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof on;)i=i._def.innerType;n[r]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return sv(ge.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});class ci extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new wt(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),re}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new wt(c));return W(n,{code:D.invalid_union,unionErrors:a}),re}}get options(){return this._def.options}}ci.create=(e,t)=>new ci({options:e,typeName:ne.ZodUnion,...oe(t)});const mn=e=>e instanceof di?mn(e.schema):e instanceof Ut?mn(e.innerType()):e instanceof fi?[e.value]:e instanceof Gn?e.options:e instanceof hi?ge.objectValues(e.enum):e instanceof pi?mn(e._def.innerType):e instanceof oi?[void 0]:e instanceof ai?[null]:e instanceof on?[void 0,...mn(e.unwrap())]:e instanceof Qn?[null,...mn(e.unwrap())]:e instanceof Tu||e instanceof gi?mn(e.unwrap()):e instanceof mi?mn(e._def.innerType):[];class aa 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}),re;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=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(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new aa({typeName:ne.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...oe(r)})}}function Hc(e,t){const n=gn(e),r=gn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&r===H.object){const s=ge.objectKeys(t),i=ge.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=Hc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&r===H.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(zc(i)||zc(o))return re;const a=Hc(i.value,o.value);return a.valid?((Wc(i)||Wc(o))&&n.dirty(),{status:n.value,value:a.data}):(W(r,{code:D.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}li.create=(e,t,n)=>new li({left:e,right:t,typeName:ne.ZodIntersection,...oe(n)});class ln extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.array)return W(r,{code:D.invalid_type,expected:H.array,received:r.parsedType}),re;if(r.data.lengththis._def.items.length&&(W(r,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new cn(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>nt.mergeArray(n,o)):nt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ln({...this._def,rest:t})}}ln.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ln({items:e,typeName:ne.ZodTuple,rest:null,...oe(t)})};class ui extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.object)return W(r,{code:D.invalid_type,expected:H.object,received:r.parsedType}),re;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new cn(r,a,r.path,a)),value:o._parse(new cn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?nt.mergeObjectAsync(n,s):nt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof le?new ui({keyType:t,valueType:n,typeName:ne.ZodRecord,...oe(r)}):new ui({keyType:Lt.create(),valueType:t,typeName:ne.ZodRecord,...oe(n)})}}class Io extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.map)return W(r,{code:D.invalid_type,expected:H.map,received:r.parsedType}),re;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],l)=>({key:s._parse(new cn(r,a,r.path,[l,"key"])),value:i._parse(new cn(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return re;(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 re;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Io.create=(e,t,n)=>new Io({valueType:t,keyType:e,typeName:ne.ZodMap,...oe(n)});class Tr extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.set)return W(r,{code:D.invalid_type,expected:H.set,received:r.parsedType}),re;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(W(r,{code:D.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return re;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>i._parse(new cn(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Tr({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new Tr({...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)}}Tr.create=(e,t)=>new Tr({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...oe(t)});class Zr 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}),re;function r(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ko(),ds].filter(l=>!!l),issueData:{code:D.invalid_arguments,argumentsError:c}})}function s(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ko(),ds].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 hs){const a=this;return ct(async function(...c){const l=new wt([]),u=await a._def.args.parseAsync(c,i).catch(y=>{throw l.addIssue(r(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(s(d,y)),l})})}else{const a=this;return ct(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new wt([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new wt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Zr({...this._def,args:ln.create(t).rest(xr.create())})}returns(t){return new Zr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Zr({args:t||ln.create([]).rest(xr.create()),returns:n||xr.create(),typeName:ne.ZodFunction,...oe(r)})}}class di 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})}}di.create=(e,t)=>new di({getter:e,typeName:ne.ZodLazy,...oe(t)});class fi 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}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}fi.create=(e,t)=>new fi({value:e,typeName:ne.ZodLiteral,...oe(t)});function sv(e,t){return new Gn({values:e,typeName:ne.ZodEnum,...oe(t)})}class Gn extends le{constructor(){super(...arguments),Is.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{expected:ge.joinValues(r),received:n.parsedType,code:D.invalid_type}),re}if(Oo(this,Is)||ev(this,Is,new Set(this._def.values)),!Oo(this,Is).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:r}),re}return ct(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 Gn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Gn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Is=new WeakMap;Gn.create=sv;class hi extends le{constructor(){super(...arguments),Ls.set(this,void 0)}_parse(t){const n=ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==H.string&&r.parsedType!==H.number){const s=ge.objectValues(n);return W(r,{expected:ge.joinValues(s),received:r.parsedType,code:D.invalid_type}),re}if(Oo(this,Ls)||ev(this,Ls,new Set(ge.getValidEnumValues(this._def.values))),!Oo(this,Ls).has(t.data)){const s=ge.objectValues(n);return W(r,{received:r.data,code:D.invalid_enum_value,options:s}),re}return ct(t.data)}get enum(){return this._def.values}}Ls=new WeakMap;hi.create=(e,t)=>new hi({values:e,typeName:ne.ZodNativeEnum,...oe(t)});class hs 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}),re;const r=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return ct(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}hs.create=(e,t)=>new hs({type:e,typeName:ne.ZodPromise,...oe(t)});class Ut extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{W(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return re;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?re:c.status==="dirty"||n.value==="dirty"?zr(c.value):c});{if(n.value==="aborted")return re;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?zr(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Cr(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Cr(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ge.assertNever(s)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:ne.ZodEffects,effect:t,...oe(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...oe(n)});class on extends le{_parse(t){return this._getType(t)===H.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}on.create=(e,t)=>new on({innerType:e,typeName:ne.ZodOptional,...oe(t)});class Qn extends le{_parse(t){return this._getType(t)===H.null?ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qn.create=(e,t)=>new Qn({innerType:e,typeName:ne.ZodNullable,...oe(t)});class pi extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===H.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pi.create=(e,t)=>new pi({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class mi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return si(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}mi.create=(e,t)=>new mi({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Lo extends le{_parse(t){if(this._getType(t)!==H.nan){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}Lo.create=e=>new Lo({typeName:ne.ZodNaN,...oe(e)});const EP=Symbol("zod_brand");class Tu extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mi extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),zr(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?re:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new Mi({in:t,out:n,typeName:ne.ZodPipeline})}}class gi extends le{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Cr(s)&&(s.value=Object.freeze(s.value)),s);return si(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:ne.ZodReadonly,...oe(t)});function iv(e,t={},n){return e?fs.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...l,fatal:c})}}):fs.create()}const TP={object:Ae.lazycreate};var ne;(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"})(ne||(ne={}));const AP=(e,t={message:`Input not instance of ${e.name}`})=>iv(n=>n instanceof e,t),ov=Lt.create,av=Zn.create,RP=Lo.create,PP=Kn.create,cv=ii.create,NP=Er.create,kP=Mo.create,jP=oi.create,OP=ai.create,MP=fs.create,DP=xr.create,IP=Cn.create,LP=Do.create,FP=Ft.create,VP=Ae.create,BP=Ae.strictCreate,$P=ci.create,UP=aa.create,zP=li.create,WP=ln.create,HP=ui.create,qP=Io.create,ZP=Tr.create,KP=Zr.create,GP=di.create,QP=fi.create,XP=Gn.create,YP=hi.create,JP=hs.create,hh=Ut.create,eN=on.create,tN=Qn.create,nN=Ut.createWithPreprocess,rN=Mi.create,sN=()=>ov().optional(),iN=()=>av().optional(),oN=()=>cv().optional(),aN={string:e=>Lt.create({...e,coerce:!0}),number:e=>Zn.create({...e,coerce:!0}),boolean:e=>ii.create({...e,coerce:!0}),bigint:e=>Kn.create({...e,coerce:!0}),date:e=>Er.create({...e,coerce:!0})},cN=re;var ph=Object.freeze({__proto__:null,defaultErrorMap:ds,setErrorMap:nP,getErrorMap:ko,makeIssue:jo,EMPTY_PATH:rP,addIssueToContext:W,ParseStatus:nt,INVALID:re,DIRTY:zr,OK:ct,isAborted:zc,isDirty:Wc,isValid:Cr,isAsync:si,get util(){return ge},get objectUtil(){return Uc},ZodParsedType:H,getParsedType:gn,ZodType:le,datetimeRegex:rv,ZodString:Lt,ZodNumber:Zn,ZodBigInt:Kn,ZodBoolean:ii,ZodDate:Er,ZodSymbol:Mo,ZodUndefined:oi,ZodNull:ai,ZodAny:fs,ZodUnknown:xr,ZodNever:Cn,ZodVoid:Do,ZodArray:Ft,ZodObject:Ae,ZodUnion:ci,ZodDiscriminatedUnion:aa,ZodIntersection:li,ZodTuple:ln,ZodRecord:ui,ZodMap:Io,ZodSet:Tr,ZodFunction:Zr,ZodLazy:di,ZodLiteral:fi,ZodEnum:Gn,ZodNativeEnum:hi,ZodPromise:hs,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:on,ZodNullable:Qn,ZodDefault:pi,ZodCatch:mi,ZodNaN:Lo,BRAND:EP,ZodBranded:Tu,ZodPipeline:Mi,ZodReadonly:gi,custom:iv,Schema:le,ZodSchema:le,late:TP,get ZodFirstPartyTypeKind(){return ne},coerce:aN,any:MP,array:FP,bigint:PP,boolean:cv,date:NP,discriminatedUnion:UP,effect:hh,enum:XP,function:KP,instanceof:AP,intersection:zP,lazy:GP,literal:QP,map:qP,nan:RP,nativeEnum:YP,never:IP,null:OP,nullable:tN,number:av,object:VP,oboolean:oN,onumber:iN,optional:eN,ostring:sN,pipeline:rN,preprocess:nN,promise:JP,record:HP,set:ZP,strictObject:BP,string:ov,symbol:kP,transformer:hh,tuple:WP,undefined:jP,union:$P,unknown:DP,void:LP,NEVER:cN,ZodIssueCode:D,quotelessJson:tP,ZodError:wt});const Za=(e,t,n)=>{const r=_e(s=>s.lang);return r==="ru"?e:r==="tm"?n??t:t};function lv(e,t){return function(){return e.apply(t,arguments)}}const{toString:lN}=Object.prototype,{getPrototypeOf:Au}=Object,ca=(e=>t=>{const n=lN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>ca(t)===e),la=e=>t=>typeof t===e,{isArray:Ss}=Array,yi=la("undefined");function uN(e){return e!==null&&!yi(e)&&e.constructor!==null&&!yi(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uv=Ht("ArrayBuffer");function dN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uv(e.buffer),t}const fN=la("string"),St=la("function"),dv=la("number"),ua=e=>e!==null&&typeof e=="object",hN=e=>e===!0||e===!1,lo=e=>{if(ca(e)!=="object")return!1;const t=Au(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pN=Ht("Date"),mN=Ht("File"),gN=Ht("Blob"),yN=Ht("FileList"),vN=e=>ua(e)&&St(e.pipe),xN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=ca(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},bN=Ht("URLSearchParams"),[wN,SN,_N,CN]=["ReadableStream","Request","Response","Headers"].map(Ht),EN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Di(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ss(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hv=e=>!yi(e)&&e!==ar;function qc(){const{caseless:e}=hv(this)&&this||{},t={},n=(r,s)=>{const i=e&&fv(t,s)||s;lo(t[i])&&lo(r)?t[i]=qc(t[i],r):lo(r)?t[i]=qc({},r):Ss(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r(Di(t,(s,i)=>{n&&St(s)?e[i]=lv(s,n):e[i]=s},{allOwnKeys:r}),e),AN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RN=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},PN=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Au(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kN=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!dv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Au(Uint8Array)),ON=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},MN=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},DN=Ht("HTMLFormElement"),IN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),mh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),LN=Ht("RegExp"),pv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Di(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},FN=e=>{pv(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(St(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VN=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},BN=()=>{},$N=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ka="abcdefghijklmnopqrstuvwxyz",gh="0123456789",mv={DIGIT:gh,ALPHA:Ka,ALPHA_DIGIT:Ka+Ka.toUpperCase()+gh},UN=(e=16,t=mv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zN(e){return!!(e&&St(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WN=e=>{const t=new Array(10),n=(r,s)=>{if(ua(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Ss(r)?[]:{};return Di(r,(o,a)=>{const c=n(o,s+1);!yi(c)&&(i[a]=c)}),t[s]=void 0,i}}return r};return n(e,0)},HN=Ht("AsyncFunction"),qN=e=>e&&(ua(e)||St(e))&&St(e.then)&&St(e.catch),gv=((e,t)=>e?setImmediate:t?((n,r)=>(ar.addEventListener("message",({source:s,data:i})=>{s===ar&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ar.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(ar.postMessage)),ZN=typeof queueMicrotask<"u"?queueMicrotask.bind(ar):typeof process<"u"&&process.nextTick||gv,k={isArray:Ss,isArrayBuffer:uv,isBuffer:uN,isFormData:xN,isArrayBufferView:dN,isString:fN,isNumber:dv,isBoolean:hN,isObject:ua,isPlainObject:lo,isReadableStream:wN,isRequest:SN,isResponse:_N,isHeaders:CN,isUndefined:yi,isDate:pN,isFile:mN,isBlob:gN,isRegExp:LN,isFunction:St,isStream:vN,isURLSearchParams:bN,isTypedArray:jN,isFileList:yN,forEach:Di,merge:qc,extend:TN,trim:EN,stripBOM:AN,inherits:RN,toFlatObject:PN,kindOf:ca,kindOfTest:Ht,endsWith:NN,toArray:kN,forEachEntry:ON,matchAll:MN,isHTMLForm:DN,hasOwnProperty:mh,hasOwnProp:mh,reduceDescriptors:pv,freezeMethods:FN,toObjectSet:VN,toCamelCase:IN,noop:BN,toFiniteNumber:$N,findKey:fv,global:ar,isContextDefined:hv,ALPHABET:mv,generateString:UN,isSpecCompliantForm:zN,toJSONObject:WN,isAsyncFn:HN,isThenable:qN,setImmediate:gv,asap:ZN};function ie(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}k.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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const yv=ie.prototype,vv={};["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=>{vv[e]={value:e}});Object.defineProperties(ie,vv);Object.defineProperty(yv,"isAxiosError",{value:!0});ie.from=(e,t,n,r,s,i)=>{const o=Object.create(yv);return k.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const KN=null;function Zc(e){return k.isPlainObject(e)||k.isArray(e)}function xv(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function yh(e,t,n){return e?e.concat(t).map(function(s,i){return s=xv(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function GN(e){return k.isArray(e)&&!e.some(Zc)}const QN=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function da(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!k.isUndefined(v[p])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(!c&&k.isBlob(g))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let x=g;if(g&&!v&&typeof g=="object"){if(k.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&GN(g)||(k.isFileList(g)||k.endsWith(p,"[]"))&&(x=k.toArray(g)))return p=xv(p),x.forEach(function(w,_){!(k.isUndefined(w)||w===null)&&t.append(o===!0?yh([p],_,i):o===null?p:p+"[]",l(w))}),!1}return Zc(g)?!0:(t.append(yh(v,p,i),l(g)),!1)}const d=[],h=Object.assign(QN,{defaultVisitor:u,convertValue:l,isVisitable:Zc});function y(g,p){if(!k.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),k.forEach(g,function(x,b){(!(k.isUndefined(x)||x===null)&&s.call(t,x,k.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return y(e),t}function vh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ru(e,t){this._pairs=[],e&&da(e,this,t)}const bv=Ru.prototype;bv.append=function(t,n){this._pairs.push([t,n])};bv.toString=function(t){const n=t?function(r){return t.call(this,r,vh)}:vh;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function XN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wv(e,t,n){if(!t)return e;const r=n&&n.encode||XN;k.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=k.isURLSearchParams(t)?t.toString():new Ru(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class xh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Sv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YN=typeof URLSearchParams<"u"?URLSearchParams:Ru,JN=typeof FormData<"u"?FormData:null,ek=typeof Blob<"u"?Blob:null,tk={isBrowser:!0,classes:{URLSearchParams:YN,FormData:JN,Blob:ek},protocols:["http","https","file","blob","url","data"]},Pu=typeof window<"u"&&typeof document<"u",Kc=typeof navigator=="object"&&navigator||void 0,nk=Pu&&(!Kc||["ReactNative","NativeScript","NS"].indexOf(Kc.product)<0),rk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sk=Pu&&window.location.href||"http://localhost",ik=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pu,hasStandardBrowserEnv:nk,hasStandardBrowserWebWorkerEnv:rk,navigator:Kc,origin:sk},Symbol.toStringTag,{value:"Module"})),Je={...ik,...tk};function ok(e,t){return da(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Je.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ak(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ck(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&k.isArray(s)?s.length:o,c?(k.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!k.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&k.isArray(s[o])&&(s[o]=ck(s[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,s)=>{t(ak(r),s,n,0)}),n}return null}function lk(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ii={transitional:Sv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return s?JSON.stringify(_v(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ok(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return da(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),lk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ii.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;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:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Ii.headers[e]={}});const uk=k.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"]),dk=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&uk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bh=Symbol("internals");function js(e){return e&&String(e).trim().toLowerCase()}function uo(e){return e===!1||e==null?e:k.isArray(e)?e.map(uo):String(e)}function fk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const hk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ga(e,t,n,r,s){if(k.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function pk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function mk(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let pt=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,c,l){const u=js(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||c]=uo(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!hk(t))o(dk(t),n);else if(k.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=js(t),t){const r=k.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return fk(s);if(k.isFunction(n))return n.call(this,s,r);if(k.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=js(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ga(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=js(o),o){const a=k.findKey(r,o);a&&(!n||Ga(r,r[a],a,n))&&(delete r[a],s=!0)}}return k.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ga(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return k.forEach(this,(s,i)=>{const o=k.findKey(r,i);if(o){n[o]=uo(s),delete n[i];return}const a=t?pk(i):String(i).trim();a!==i&&delete n[i],n[a]=uo(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&k.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[bh]=this[bh]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=js(o);r[a]||(mk(s,o),r[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(pt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(pt);function Qa(e,t){const n=this||Ii,r=t||n,s=pt.from(r.headers);let i=r.data;return k.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Cv(e){return!!(e&&e.__CANCEL__)}function _s(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(_s,ie,{__CANCEL__:!0});function Ev(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(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 gk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[i];o||(o=l),n[s]=c,r[s]=l;let d=i,h=0;for(;d!==s;)h+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o{n=u,s=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-d)))},()=>s&&o(s)]}const Fo=(e,t,n=3)=>{let r=0;const s=yk(50,250);return vk(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-r,l=s(c),u=o<=a;r=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)},wh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sh=e=>(...t)=>k.asap(()=>e(...t)),xk=Je.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Je.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Je.origin),Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent)):()=>!0,bk=Je.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(s)&&o.push("domain="+s),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 wk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tv(e,t){return e&&!wk(t)?Sk(e,t):t}const _h=e=>e instanceof pt?{...e}:e;function Ar(e,t){t=t||{};const n={};function r(l,u,d,h){return k.isPlainObject(l)&&k.isPlainObject(u)?k.merge.call({caseless:h},l,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function s(l,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(l))return r(void 0,l,d,h)}else return r(l,u,d,h)}function i(l,u){if(!k.isUndefined(u))return r(void 0,u)}function o(l,u){if(k.isUndefined(u)){if(!k.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(d in t)return r(l,u);if(d in e)return r(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)=>s(_h(l),_h(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||s,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Av=e=>{const t=Ar({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=pt.from(o),t.url=wv(Tv(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(k.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.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(Je.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&xk(t.url))){const l=s&&i&&bk.read(i);l&&o.set(s,l)}return t},_k=typeof XMLHttpRequest<"u",Ck=_k&&function(e){return new Promise(function(n,r){const s=Av(e);let i=s.data;const o=pt.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=s,u,d,h,y,g;function p(){y&&y(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function x(){if(!v)return;const w=pt.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};Ev(function(A){n(A),p()},function(A){r(A),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&&(r(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||Sv;s.timeoutErrorMessage&&(_=s.timeoutErrorMessage),r(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&k.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),k.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),a&&a!=="json"&&(v.responseType=s.responseType),l&&([h,g]=Fo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,y]=Fo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(u=w=>{v&&(r(!w||w.type?new _s(null,e,v):w),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const b=gk(s.url);if(b&&Je.protocols.indexOf(b)===-1){r(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Ek=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof ie?u:new _s(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}=r;return c.unsubscribe=()=>k.asap(a),c}},Tk=function*(e,t){let n=e.byteLength;if(n{const s=Ak(e,t);let i=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await s.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),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rv=fa&&typeof ReadableStream=="function",Pk=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nk=Rv&&Pv(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Eh=64*1024,Gc=Rv&&Pv(()=>k.isReadableStream(new Response("").body)),Vo={stream:Gc&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vo[t]&&(Vo[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,r)})})})(new Response);const kk=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await Pk(e)).byteLength},jk=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??kk(t)},Ok=fa&&(async e=>{let{url:t,method:n,data:r,signal:s,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=Ek([s,i&&i.toAbortSignal()],o),g;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(c&&Nk&&n!=="get"&&n!=="head"&&(v=await jk(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(k.isFormData(r)&&(T=S.headers.get("content-type"))&&u.setContentType(T),S.body){const[A,R]=wh(v,Fo(Sh(c)));r=Ch(S.body,Eh,A,R)}}k.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let b=await fetch(g);const w=Gc&&(l==="stream"||l==="response");if(Gc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const T=k.toFiniteNumber(b.headers.get("content-length")),[A,R]=a&&wh(T,Fo(Sh(a),!0))||[];b=new Response(Ch(b.body,Eh,A,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Vo[k.findKey(Vo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,T)=>{Ev(S,T,{data:_,headers:pt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,g),{cause:x.cause||x}):ie.from(x,x&&x.code,e,g)}}),Qc={http:KN,xhr:Ck,fetch:Ok};k.forEach(Qc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Th=e=>`- ${e}`,Mk=e=>k.isFunction(e)||e===null||e===!1,Nv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};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(Th).join(` -`):" "+Th(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Qc};function Xa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function Ah(e){return Xa(e),e.headers=pt.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),Nv.getAdapter(e.adapter||Ii.adapter)(e).then(function(r){return Xa(e),r.data=Qa.call(e,e.transformResponse,r),r.headers=pt.from(r.headers),r},function(r){return Cv(r)||(Xa(e),r&&r.response&&(r.response.data=Qa.call(e,e.transformResponse,r.response),r.response.headers=pt.from(r.response.headers))),Promise.reject(r)})}const kv="1.7.9",ha={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ha[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rh={};ha.transitional=function(t,n,r){function s(i,o){return"[Axios v"+kv+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new ie(s(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Rh[o]&&(Rh[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};ha.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dk(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],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:Dk,validators:ha},Kt=fo.validators;let br=class{constructor(t){this.defaults=t,this.interceptors={request:new xh,response:new xh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ar(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&fo.assertOptions(r,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),s!=null&&(k.isFunction(s)?n.paramsSerializer={serialize:s}:fo.assertOptions(s,{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&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=pt.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 g=[Ah.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,l),h=g.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new _s(i,o,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jv(function(s){t=s}),cancel:t}}};function Lk(e){return function(n){return e.apply(null,n)}}function Fk(e){return k.isObject(e)&&e.isAxiosError===!0}const Xc={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(Xc).forEach(([e,t])=>{Xc[t]=e});function Ov(e){const t=new br(e),n=lv(br.prototype.request,t);return k.extend(n,br.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ov(Ar(e,s))},n}const Le=Ov(Ii);Le.Axios=br;Le.CanceledError=_s;Le.CancelToken=Ik;Le.isCancel=Cv;Le.VERSION=kv;Le.toFormData=da;Le.AxiosError=ie;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=Lk;Le.isAxiosError=Fk;Le.mergeConfig=Ar;Le.AxiosHeaders=pt;Le.formToJSON=e=>_v(k.isHTMLForm(e)?new FormData(e):e);Le.getAdapter=Nv.getAdapter;Le.HttpStatusCode=Xc;Le.default=Le;const{Axios:bO,AxiosError:wO,CanceledError:SO,isCancel:_O,CancelToken:CO,VERSION:EO,all:TO,Cancel:AO,isAxiosError:RO,spread:PO,toFormData:NO,AxiosHeaders:kO,HttpStatusCode:jO,formToJSON:OO,getAdapter:MO,mergeConfig:DO}=Le,rt=Le.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),IO=async e=>(await rt.post("book_stand_form",e)).status===201,LO=async e=>(await rt.post("become_sponsor_form",e)).status===201,FO=async e=>(await rt.post("contact_form",e)).status===201,Vk=async e=>(await rt.post("subscribe_news_form",e)).status===201,Bk=async(e,t)=>rt.get(`pages/${t}`,{headers:{"Accept-Language":e}}),$k=async e=>rt.get("stats",{headers:{"Accept-Language":e}}),Uk=async e=>rt.get("contact_data",{headers:{"Accept-Language":e}}),zk=async e=>rt.get("industries",{headers:{"Accept-Language":e}}),Wk=async e=>rt.get("exhibition_time",{headers:{"Accept-Language":e}}),Hk=async e=>rt.get("news?per_page=100",{headers:{"Accept-Language":e}}),VO=async(e,t)=>rt.get(`news/${e}`,{headers:{"Accept-Language":t}}),BO=async e=>rt("participants",{headers:{"Accept-Language":e}}),qk=async e=>rt("photos/category/"+e),Zk=async e=>rt("videos/category/"+e),Kk=async e=>rt("sponsors_and_partners",{headers:{"Accept-Language":e}}),$O=async(e,t)=>rt("designers/category/"+t,{headers:{"Accept-Language":e}}),Gk=ph.object({email:ph.string().email()}),Mv=({modal:e=!1})=>{var i,o;const[t,n]=m.useState(!1),r=lA({resolver:eP(Gk),defaultValues:{email:""}});async function s(a){try{const c=await Vk(a);r.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:r.handleSubmit(s),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(Ke,{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:","Täzeliklere ýazylyşyň:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...r.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=r.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(tt,{loading:r.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Za("Отправлено","Submitted","Ugradyldy"):Za("Подписаться","Subscribe","Ýazylmak")})]})})},Qk=({className:e,title:t})=>f.jsxs(Gy,{children:[f.jsx(Qy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Eu,{children:f.jsx(Mv,{className:"",modal:!0})})]}),Bo=hy()(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:r,children:s})=>{const[i,o]=m.useState(!1),a=Bo(c=>c.setSheet);return f.jsxs(Zy,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ky,{className:V("flex items-center gap-2",r),children:[e,s,!s&&f.jsx(Dv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Cu,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((c,l)=>c.hover?f.jsx(H1,{setIsOpen:o,...c},l):c.link?f.jsxs(Se,{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(Qk,{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))})]})},Dv=({color:e="white",w:t="20",h:n="20",className:r})=>f.jsx("div",{className:r,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})})}),Jn=({className:e})=>f.jsx(Ke,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Qp,{className:"animate-spin mx-auto text-primary size-16"})});function Xk(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ph(e){return Xk(e)||Array.isArray(e)}function Yk(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Ph(a)||!Ph(c)?a===c:Nu(a,c)})}function Nh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Jk(e,t){if(e.length!==t.length)return!1;const n=Nh(e),r=Nh(t);return n.every((s,i)=>{const o=r[i];return Nu(s,o)})}function ku(e){return typeof e=="number"}function Yc(e){return typeof e=="string"}function pa(e){return typeof e=="boolean"}function kh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function ju(e){return Math.sign(e)}function qs(e,t){return Pe(e-t)}function ej(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=qs(Pe(e),Pe(t));return Pe(n/e)}function tj(e){return Math.round(e*100)/100}function vi(e){return xi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function Ou(e,t){return t===Li(e)}function jh(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function xi(e){return Object.keys(e)}function Iv(e,t){return[e,t].reduce((n,r)=>(xi(r).forEach(s=>{const i=n[s],o=r[s],a=kh(i)&&kh(o);n[s]=a?Iv(i,o):o}),n),{})}function Jc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function nj(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Yc(e)?n[e](c):e(t,c,l)}return{measure:o}}function bi(){let e=[];function t(s,i,o,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,a),c=()=>s.removeEventListener(i,o,a);else{const l=s;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function rj(e,t,n,r){const s=bi(),i=1e3/60;let o=null,a=0,c=0;function l(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){y(),s.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;r(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 g(){o=null,a=0}return{init:l,destroy:u,start:h,stop:y,update:n,render:r}}function sj(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),c=d();function l(g){const{height:p,width:v}=g;return r?p:v}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function h(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Rr(e=0,t=0){const n=Pe(e-t);function r(l){return lt}function i(l){return r(l)||s(l)}function o(l){return i(l)?r(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function Lv(e,t,n){const{constrain:r}=Rr(0,e),s=e+1;let i=o(t);function o(h){return n?Pe((s+h)%s):r(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return Lv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function ij(e,t,n,r,s,i,o,a,c,l,u,d,h,y,g,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=bi(),R=bi(),N=Rr(50,225).constrain(y.measure(20)),O={mouse:300,touch:400},I={mouse:500,touch:600},M=g?43:25;let U=!1,F=0,X=0,Y=!1,Z=!1,K=!1,se=!1;function fe(G){if(!b)return;function he(Ue){(pa(b)||b(G,Ue))&&st(Ue)}const Ce=t;A.add(Ce,"dragstart",Ue=>Ue.preventDefault(),T).add(Ce,"touchmove",()=>{},T).add(Ce,"touchend",()=>{}).add(Ce,"touchstart",he).add(Ce,"mousedown",he).add(Ce,"touchcancel",ve).add(Ce,"contextmenu",ve).add(Ce,"click",je,!0)}function ye(){A.clear(),R.clear()}function Be(){const G=se?n:t;R.add(G,"touchmove",ue,T).add(G,"touchend",ve).add(G,"mousemove",ue,T).add(G,"mouseup",ve)}function Ge(G){const he=G.nodeName||"";return S.includes(he)}function Qe(){return(g?I:O)[se?"mouse":"touch"]}function jt(G,he){const Ce=d.add(ju(G)*-1),Ue=u.byDistance(G,!g).distance;return g||Pe(G)=2,!(he&&G.button!==0)&&(Ge(G.target)||(Y=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),s.set(o),Be(),F=i.readPoint(G),X=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!Jc(G,r)&&G.touches.length>=2)return ve(G);const Ce=i.readPoint(G),Ue=i.readPoint(G,w),mt=qs(Ce,F),Et=qs(Ue,X);if(!Z&&!se&&(!G.cancelable||(Z=mt>Et,!Z)))return ve(G);const C=i.pointerMove(G);mt>p&&(K=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(_(C)),G.preventDefault()}function ve(G){const Ce=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Qe(),mt=jt(_(Ue),Ce),Et=ej(Ue,mt),C=M-10*Et,P=x+Et/50;Z=!1,Y=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(mt,!g),se=!1,h.emit("pointerUp")}function je(G){K&&(G.stopPropagation(),G.preventDefault(),K=!1)}function Fe(){return Y}return{init:fe,destroy:ye,pointerDown:Fe}}function oj(e,t){let r,s;function i(d){return d.timeStamp}function o(d,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(Jc(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function c(d){const h=o(d)-o(s),y=i(d)-i(r)>170;return s=d,y&&(r=d),h}function l(d){if(!r||!s)return 0;const h=o(s)-o(r),y=i(d)-i(r),g=i(d)-i(s)>170,p=h/y;return y&&!g&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function aj(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function cj(e){function t(r){return e*(r/100)}return{measure:t}}function lj(e,t,n,r,s,i,o){const a=[e].concat(r);let c,l,u=[],d=!1;function h(v){return s.measureSize(o.measure(v))}function y(v){if(!i)return;l=h(e),u=r.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=r.indexOf(w.target),T=_?l:u[S],A=h(_?e:r[S]);if(Pe(A-T)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(pa(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function g(){d=!0,c&&c.disconnect()}return{init:y,destroy:g}}function uj(e,t,n,r,s,i){let o=0,a=0,c=s,l=i,u=e.get(),d=0;function h(){const T=r.get()-e.get(),A=!c;let R=0;return A?(o=0,n.set(r),e.set(r),R=T):(n.set(e),o+=T/c,o*=l,u+=o,e.add(o),R=u-d),a=ju(R),d=u,S}function y(){const T=r.get()-t.get();return Pe(T)<.001}function g(){return c}function p(){return a}function v(){return o}function x(){return w(s)}function b(){return _(i)}function w(T){return c=T,S}function _(T){return l=T,S}const S={direction:p,duration:g,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function dj(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=Rr(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",p=Pe(e[g]-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(g),w=!p,_=Ou(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:p}=a;return o.slice(g,p)}return{snapsContained:c,scrollContainLimit:a}}function hj(e,t,n){const r=t[0],s=n?r-e:Vt(t);return{limit:Rr(s,r)}}function pj(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Rr(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);r.forEach(g=>g.add(y))}return{loop:u}}function mj(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function gj(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,c=d().map(t.measure),l=h(),u=y();function d(){return a(r).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return r.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 yj(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:c}=r,l=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,c).map((g,p,v)=>{const x=!p,b=Ou(v,p);if(x){const w=Vt(v[0])+1;return jh(w)}if(b){const w=Li(i)-Vt(v)[0]+1;return jh(w,Vt(v)[0])}return g})}return{slideRegistry:l}}function vj(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function c(g){return g.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(g){const p=e?o(g):a(g),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(g,p){const v=[g,g+n,g-n];if(!e)return g;if(!p)return c(v);const x=v.filter(b=>ju(b)===p);return x.length?c(x):Vt(v)-n}function d(g,p){const v=t[g]-s.get(),x=u(v,p);return{index:g,distance:x}}function h(g,p){const v=s.get()+g,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:g};const _=t[x]-b,S=g+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function xj(e,t,n,r,s,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(r.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=s.byDistance(d,h);a(y)}function l(d,h){const y=t.clone().set(d),g=s.byIndex(y.get(),h);a(g)}return{distance:c,index:l}}function bj(e,t,n,r,s,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(y){if(!a)return;function g(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));ku(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(pa(a)||a(y,x))&&g(v)},c)})}function d(y){y.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Fs(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return ku(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function Fv(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=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=tj(e.direction(h));y!==s&&(r.transform=n(y),s=y)}function l(h){i=!h}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function wj(e,t,n,r,s,i,o,a,c){const u=vi(s),d=vi(s).reverse(),h=x().concat(b());function y(A,R){return A.reduce((N,O)=>N-s[O],R)}function g(A,R){return A.reduce((N,O)=>y(N,R)>0?N.concat([O]):N,[])}function p(A){return i.map((R,N)=>({start:R-r[N]+.5+A,end:R+t-.5+A}))}function v(A,R,N){const O=p(R);return A.map(I=>{const M=N?0:-n,U=N?n:0,F=N?"end":"start",X=O[I][F];return{index:I,loopPoint:X,slideLocation:Fs(-1),translate:Fv(e,c[I]),target:()=>a.get()>X?M:U}})}function x(){const A=o[0],R=g(d,A);return v(R,n,!1)}function b(){const A=t-o[0]-1,R=g(u,A);return v(R,-n,!0)}function w(){return h.every(({index:A})=>{const R=u.filter(N=>N!==A);return y(R,t)<=.1})}function _(){h.forEach(A=>{const{target:R,translate:N,slideLocation:O}=A,I=R();I!==O.get()&&(N.to(I),O.set(I))})}function S(){h.forEach(A=>A.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function Sj(e,t,n){let r,s=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(pa(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function _j(e,t,n,r){const s={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(g=>{c||(g.forEach(p=>{const v=t.indexOf(p.target);s[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),c=!0}function d(g){return xi(s).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=s[x];return(g&&b||!g&&!b)&&p.push(x),p},[])}function h(g=!0){if(g&&i)return i;if(!g&&o)return o;const p=d(g);return g&&(i=p),g||(o=p),p}return{init:l,destroy:u,get:h}}function Cj(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&s,u=g(),d=p(),h=n.map(o),y=v();function g(){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(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,T=Ou(_,w);return S?h[w]+u:T?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function Ej(e,t,n,r,s,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=ku(n);function y(x,b){return vi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function g(x){return x.length?vi(x).reduce((b,w,_)=>{const S=Vt(b)||0,T=S===0,A=w===Li(x),R=s[l]-i[S][l],N=s[l]-i[w][u],O=!r&&T?d(o):0,I=!r&&A?d(a):0,M=Pe(N-I-(R+O));return _&&M>t+c&&b.push(w),A&&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):g(x)}return{groupSlides:p}}function Tj(e,t,n,r,s,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:g,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:T}=i,A=2,R=aj(),N=R.measure(t),O=n.map(R.measure),I=sj(c,l),M=I.measureSize(N),U=cj(M),F=nj(a,M),X=!d&&!!b,Y=d||!!b,{slideSizes:Z,slideSizesWithGaps:K,startGap:se,endGap:fe}=Cj(I,N,O,n,Y,s),ye=Ej(I,M,v,d,N,O,se,fe,A),{snaps:Be,snapsAligned:Ge}=gj(I,F,N,O,ye),Qe=-Vt(Be)+Vt(K),{snapsContained:jt,scrollContainLimit:st}=fj(M,Qe,Ge,b,A),ue=X?jt:Ge,{limit:ve}=hj(Qe,ue,d),je=Lv(Li(ue),u,d),Fe=je.clone(),we=vi(n),G=({dragHandler:Zt,scrollBody:er,scrollBounds:Es,options:{loop:tr}})=>{tr||Es.constrain(Zt.pointerDown()),er.seek()},he=({scrollBody:Zt,translate:er,location:Es,offsetLocation:tr,previousLocation:ya,scrollLooper:Vi,slideLooper:Tx,dragHandler:Ax,animation:Rx,eventHandler:Bu,scrollBounds:Px,options:{loop:$u}},Uu)=>{const zu=Zt.settled(),Nx=!Px.shouldConstrain(),Wu=$u?zu:zu&&Nx;Wu&&!Ax.pointerDown()&&(Rx.stop(),Bu.emit("settle")),Wu||Bu.emit("scroll");const kx=Es.get()*Uu+ya.get()*(1-Uu);tr.set(kx),$u&&(Vi.loop(Zt.direction()),Tx.loop()),er.to(tr.get())},Ce=rj(r,s,()=>G(Cs),Zt=>he(Cs,Zt)),Ue=.68,mt=ue[je.get()],Et=Fs(mt),C=Fs(mt),P=Fs(mt),j=Fs(mt),z=uj(Et,P,C,j,h,Ue),B=vj(d,ue,Qe,ve,j),L=xj(Ce,je,Fe,z,B,j,o),J=mj(ve),ae=bi(),Ve=_j(t,n,o,p),{slideRegistry:Oe}=yj(X,b,ue,st,ye,we),qt=bj(e,n,Oe,L,z,ae,o,T),Cs={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:N,slideRects:O,animation:Ce,axis:I,dragHandler:ij(I,e,r,s,j,oj(I,s),Et,Ce,L,z,B,je,o,U,y,g,x,Ue,S),eventStore:ae,percentOfView:U,index:je,indexPrevious:Fe,limit:ve,location:Et,offsetLocation:P,previousLocation:C,options:i,resizeHandler:lj(t,o,s,n,I,w,R),scrollBody:z,scrollBounds:dj(ve,P,j,z,U),scrollLooper:pj(Qe,ve,P,[Et,P,C,j]),scrollProgress:J,scrollSnapList:ue.map(J.get),scrollSnaps:ue,scrollTarget:B,scrollTo:L,slideLooper:wj(I,M,Qe,Z,K,Be,ue,P,n),slideFocus:qt,slidesHandler:Sj(t,o,_),slidesInView:Ve,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:j,translate:Fv(I,t)};return Cs}function Aj(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function s(l){return r(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=r(l).concat([u]),c}function o(l,u){return e[l]=r(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:s,off:o,on:i,clear:a};return c}const Rj={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 Pj(e){function t(i,o){return Iv(i,o||{})}function n(i){const o=i.breakpoints||{},a=xi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function r(i){return i.map(o=>xi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Nj(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Uo(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=Pj(s),o=Nj(i),a=bi(),c=Aj(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:g}=c,p=I;let v=!1,x,b=l(Rj,Uo.globalOptions),w=l(b),_=[],S,T,A;function R(){const{container:we,slides:G}=w;T=(Yc(we)?e.querySelector(we):we)||e.children[0];const Ce=Yc(G)?T.querySelectorAll(G):G;A=[].slice.call(Ce||T.children)}function N(we){const G=Tj(e,T,A,r,s,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function O(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(Fe),x.eventHandler.init(Fe),x.resizeHandler.init(Fe),x.slidesHandler.init(Fe),x.options.loop&&x.slideLooper.loop(),T.offsetParent&&A.length&&x.dragHandler.init(Fe),S=o.init(Fe,_)))}function I(we,G){const he=ye();M(),O(l({startIndex:he},we),G),c.emit("reInit")}function M(){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 U(){v||(v=!0,a.clear(),M(),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 X(we){const G=x.index.add(1).get();F(G,we,-1)}function Y(we){const G=x.index.add(-1).get();F(G,we,1)}function Z(){return x.index.add(1).get()!==ye()}function K(){return x.index.add(-1).get()!==ye()}function se(){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 Ge(){return x.slidesInView.get()}function Qe(){return x.slidesInView.get(!1)}function jt(){return S}function st(){return x}function ue(){return e}function ve(){return T}function je(){return A}const Fe={canScrollNext:Z,canScrollPrev:K,containerNode:ve,internalEngine:st,destroy:U,off:y,on:h,emit:g,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:X,scrollPrev:Y,scrollProgress:fe,scrollSnapList:se,scrollTo:F,selectedScrollSnap:ye,slideNodes:je,slidesInView:Ge,slidesNotInView:Qe};return O(t,n),setTimeout(()=>c.emit("init"),0),Fe}Uo.globalOptions=void 0;function Tn(e={},t=[]){const n=m.useRef(e),r=m.useRef(t),[s,i]=m.useState(),[o,a]=m.useState(),c=m.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return m.useEffect(()=>{Nu(n.current,e)||(n.current=e,c())},[e,c]),m.useEffect(()=>{Jk(r.current,t)||(r.current=t,c())},[t,c]),m.useEffect(()=>{if(Yk()&&o){Uo.globalOptions=Tn.globalOptions;const l=Uo(o,n.current,r.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,s]}Tn.globalOptions=void 0;const kj=[{id:0,title:"Все компании",titleEn:"All companies",titleTm:"Ähli kompaniýalar"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions",titleTm:"Döwlet edaralary"},{id:1,title:"Местные компании",titleEn:"Local companies",titleTm:"Ýerli kompaniýalar"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies",titleTm:"Daşary ýurt kompaniýalary"}],UO=({className:e,setState:t,state:n,data:r=kj})=>{const s=_e(g=>g.lang),i=So("(min-width: 768px)"),[o,a]=m.useState({left:0,width:0}),[c,l]=Tn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=m.useRef([]),d=m.useRef(null),h=m.useCallback(()=>{const g=u.current[n];if(g){if(i)a({left:g.offsetLeft,width:g.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=g.offsetLeft;a({left:b-x,width:g.offsetWidth})}}},[n,i,l]);m.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),m.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=m.useCallback(g=>{t(g),!i&&l&&l.scrollTo(g)},[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:r==null?void 0:r.map((g,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:s==="ru"?g.title:s==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:r==null?void 0:r.map((g,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:s==="ru"?g.title:s==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},zO=({className:e,index:t,name:n,image:r,image_country:s,country:i,about:o,arr:a})=>{const c=_e(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:[{ru:"Название",en:"Company",tm:"Kompaniýa"}[c],":"]}),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:[{ru:"Страна",en:"Country",tm:"Ýurt"}[c],":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:s==null?void 0:s.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:[{ru:"Сфера",en:"Industry",tm:"Pudak"}[c],":"]}),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:r==null?void 0:r.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:r==null?void 0:r.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:s==null?void 0:s.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})]})]})},jj=e=>{const{data:t,isPending:n,status:r}=En({queryKey:["photos",e],queryFn:()=>qk(e),select:({data:s})=>s.data});return{data:t,isPending:n,status:r}},Oj=e=>{const{data:t,isPending:n,isError:r}=En({queryKey:["videos",e],queryFn:()=>Zk(e),select:({data:s})=>s.data});return{data:t,isPending:n,isError:r}},WO=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[r,s]=Tn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=jj(1),{data:o}=Oj(1);WT();const[a,c]=m.useState(!1),[l,u]=m.useState(!1);m.useEffect(()=>{if(!s)return;const g=()=>{c(s.canScrollPrev()),u(s.canScrollNext())};return s.on("select",g),g(),()=>{s.off("select",g)}},[s]),m.useEffect(()=>{!s||!i||s.scrollTo(n.id,!0)},[s,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(g=>{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=g==null?void 0:g.photo)==null?void 0:p.path,alt:g.photo.file_name,className:"max-h-full max-w-full object-contain"})},g.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(g=>{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=g==null?void 0:g.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},g.id)});return f.jsxs(zs.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(El,{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(mc,{onClick:()=>a&&(s==null?void 0:s.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(Gp,{onClick:()=>l&&(s==null?void 0:s.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:r,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},HO=({className:e,name:t,achievements:n,biography:r,image:s,images:i})=>{var g;const[o,a]=m.useState(!1),[c,l]=m.useState(!1),u=_e(p=>p.lang),[d,h]=m.useState(100),y=({className:p})=>{const[v,x]=Tn({});return m.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:{ru:"Работы дизайнера",en:"Designer works",tm:"Dizaýneriň işleri"}[u]}),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(mc,{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(Gp,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!c&&"opacity-20")})]})})]})};return f.jsxs(Gy,{children:[f.jsxs(Qy,{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:s==null?void 0:s.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(Eu,{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:s==null?void 0:s.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:r??""}})]})]}),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:s==null?void 0:s.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:r??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(mc,{}),{ru:"Вернуться назад",en:"Go back",tm:"Yza gaýdyň"}[u]]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(g=i==null?void 0:i[d])==null?void 0:g.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})};function Vv(e,t=[]){let n=[];function r(i,o){const a=m.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=m.useMemo(()=>g,Object.values(g));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,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,Mj(s,...t)]}function Mj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ma(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(Fj);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function Ij(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=Bj(s),a=Vj(i,s.props);return s.type!==m.Fragment&&(a.ref=r?ma(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lj=Symbol("radix.slottable");function Fj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lj}function Vj(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Bj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_t=$j.reduce((e,t)=>{const n=Dj(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function el(e,t){e&&ul.flushSync(()=>e.dispatchEvent(t))}var Pr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Uj=ll[" useInsertionEffect ".trim().toString()]||Pr;function Bv({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=zj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:s;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} 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,r])}const l=m.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 zj({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),s=m.useRef(n),i=m.useRef(t);return Uj(()=>{i.current=t},[t]),m.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function Wj(e){return typeof e=="function"}var Hj=m.createContext(void 0);function qj(e){const t=m.useContext(Hj);return e||t||"ltr"}function Zj(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Fi=e=>{const{present:t,children:n}=e,r=Kj(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=un(r.ref,Gj(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};Fi.displayName="Presence";function Kj(e){const[t,n]=m.useState(),r=m.useRef(null),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Zj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Ji(r.current);i.current=a==="mounted"?l:"none"},[a]),Pr(()=>{const l=r.current,u=s.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"),s.current=e}},[e,c]),Pr(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ji(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&p&&(c("ANIMATION_END"),!s.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(r.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:m.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ji(e){return(e==null?void 0:e.animationName)||"none"}function Gj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qj=ll[" useId ".trim().toString()]||(()=>{}),Xj=0;function $v(e){const[t,n]=m.useState(Qj());return Pr(()=>{n(r=>r??String(Xj++))},[e]),e||(t?`radix-${t}`:"")}function Mh(e){const t=Yj(e),n=m.forwardRef((r,s)=>{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(e1);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function Yj(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=n1(s),a=t1(i,s.props);return s.type!==m.Fragment&&(a.ref=r?ma(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jj=Symbol("radix.slottable");function e1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jj}function t1(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function n1(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Uv(e){const t=e+"CollectionProvider",[n,r]=Vv(t),[s,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(s,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=Mh(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=un(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Mh(u),y=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=un(v,_),T=i(u,x);return de.useEffect(()=>(T.itemMap.set(_,{ref:_,...w}),()=>void T.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function g(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((T,A)=>w.indexOf(T.ref.current)-w.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},g,r]}function Yt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function r1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e);m.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var s1="DismissableLayer",tl="dismissableLayer.update",i1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",Dh,zv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wv=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=m.useContext(zv),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=un(t,A=>d(A)),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=l1(A=>{const R=A.target,N=[...l.branches].some(O=>O.contains(R));!_||N||(s==null||s(A),o==null||o(A),A.defaultPrevented||a==null||a())},h),T=u1(A=>{const R=A.target;[...l.branches].some(O=>O.contains(R))||(i==null||i(A),o==null||o(A),A.defaultPrevented||a==null||a())},h);return r1(A=>{b===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Dh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ih(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Dh)}},[u,h,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ih())},[u,l]),m.useEffect(()=>{const A=()=>y({});return document.addEventListener(tl,A),()=>document.removeEventListener(tl,A)},[]),f.jsx(_t.div,{...c,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,T.onFocusCapture),onBlurCapture:We(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,S.onPointerDownCapture)})});Wv.displayName=s1;var a1="DismissableLayerBranch",c1=m.forwardRef((e,t)=>{const n=m.useContext(zv),r=m.useRef(null),s=un(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(_t.div,{...e,ref:s})});c1.displayName=a1;function l1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Hv(i1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function u1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&Hv(o1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ih(){const e=new CustomEvent(tl);document.dispatchEvent(e)}function Hv(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?el(s,i):s.dispatchEvent(i)}function d1(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Lh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function f1(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Lh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(g1);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function p1(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=v1(s),a=y1(i,s.props);return s.type!==m.Fragment&&(a.ref=r?f1(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m1=Symbol("radix.slottable");function g1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m1}function y1(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function v1(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],b1=x1.reduce((e,t)=>{const n=h1(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w1=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"}),S1="VisuallyHidden",qv=m.forwardRef((e,t)=>f.jsx(b1.span,{...e,ref:t,style:{...w1,...e.style}}));qv.displayName=S1;var _1=qv,jr="NavigationMenu",[Mu,Zv,C1]=Uv(jr),[nl,E1,T1]=Uv(jr),[Du,qO]=Vv(jr,[C1,T1]),[A1,kt]=Du(jr),[R1,P1]=Du(jr),Kv=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=m.useState(null),y=un(t,N=>h(N)),g=qj(l),p=m.useRef(0),v=m.useRef(0),x=m.useRef(0),[b,w]=m.useState(!0),[_,S]=Bv({prop:r,onChange:N=>{const O=N!=="",I=a>0;O?(window.clearTimeout(x.current),I&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),s==null||s(N)},defaultProp:i??"",caller:jr}),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),A=m.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=m.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return m.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Gv,{scope:n,isRootMenu:!0,value:_,dir:g,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):A(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),T()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:T,onItemSelect:N=>{S(O=>O===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(_t.nav,{"aria-label":"Main","data-orientation":c,dir:g,...u,ref:y})})});Kv.displayName=jr;var rl="NavigationMenuSub",N1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",...a}=e,c=kt(rl,n),[l,u]=Bv({prop:r,onChange:s,defaultProp:i??"",caller:rl});return f.jsx(Gv,{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(_t.div,{"data-orientation":o,...a,ref:t})})});N1.displayName=rl;var Gv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:s,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[g,p]=m.useState(null),[v,x]=m.useState(new Map),[b,w]=m.useState(null);return f.jsx(A1,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:d1(a),baseId:$v(),dir:s,orientation:i,viewport:g,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Yt(u),onTriggerLeave:Yt(d),onContentEnter:Yt(h),onContentLeave:Yt(y),onItemSelect:Yt(c),onItemDismiss:Yt(l),onViewportContentChange:m.useCallback((_,S)=>{x(T=>(T.set(_,S),new Map(T)))},[]),onViewportContentRemove:m.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Mu.Provider,{scope:t,children:f.jsx(R1,{scope:t,items:v,children:o})})})},Qv="NavigationMenuList",Xv=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(Qv,n),i=f.jsx(_t.ul,{"data-orientation":s.orientation,...r,ref:t});return f.jsx(_t.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:f.jsx(Mu.Slot,{scope:n,children:s.isRootMenu?f.jsx(ax,{asChild:!0,children:i}):i})})});Xv.displayName=Qv;var Yv="NavigationMenuItem",[k1,Jv]=Du(Yv),ex=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...s}=e,i=$v(),o=r||i||"LEGACY_REACT_AUTO_VALUE",a=m.useRef(null),c=m.useRef(null),l=m.useRef(null),u=m.useRef(()=>{}),d=m.useRef(!1),h=m.useCallback((g="start")=>{if(a.current){u.current();const p=il(a.current);p.length&&Fu(g==="start"?p:p.reverse())}},[]),y=m.useCallback(()=>{if(a.current){const g=il(a.current);g.length&&(u.current=F1(g))}},[]);return f.jsx(k1,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(_t.li,{...s,ref:t})})});ex.displayName=Yv;var sl="NavigationMenuTrigger",tx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...s}=e,i=kt(sl,e.__scopeNavigationMenu),o=Jv(sl,e.__scopeNavigationMenu),a=m.useRef(null),c=un(a,o.triggerRef,t),l=lx(i.baseId,o.value),u=ux(i.baseId,o.value),d=m.useRef(!1),h=m.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Mu.ItemSlot,{scope:n,value:o.value,children:f.jsx(cx,{asChild:!0,children:f.jsx(_t.button,{id:l,disabled:r,"data-disabled":r?"":void 0,"data-state":Vu(y),"aria-expanded":y,"aria-controls":u,...s,ref:c,onPointerEnter:We(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:We(e.onPointerMove,zo(()=>{r||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:We(e.onPointerLeave,zo(()=>{r||(i.onTriggerLeave(),d.current=!1)})),onClick:We(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:We(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&g.key===v&&(o.onEntryKeyDown(),g.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(_1,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{const p=o.contentRef.current,v=g.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})]})]})});tx.displayName=sl;var j1="NavigationMenuLink",Fh="navigationMenu.linkSelect",nx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:s,...i}=e;return f.jsx(cx,{asChild:!0,children:f.jsx(_t.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:We(e.onClick,o=>{const a=o.target,c=new CustomEvent(Fh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Fh,l=>s==null?void 0:s(l),{once:!0}),el(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(ho,{bubbles:!0,cancelable:!0});el(a,l)}},{checkForDefaultPrevented:!1})})})});nx.displayName=j1;var Iu="NavigationMenuIndicator",rx=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=kt(Iu,e.__scopeNavigationMenu),i=!!s.value;return s.indicatorTrack?Yh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(O1,{...r,ref:t})}),s.indicatorTrack):null});rx.displayName=Iu;var O1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(Iu,n),i=Zv(n),[o,a]=m.useState(null),[c,l]=m.useState(null),u=s.orientation==="horizontal",d=!!s.value;m.useEffect(()=>{var p;const g=(p=i().find(v=>v.value===s.value))==null?void 0:p.ref.current;g&&a(g)},[i,s.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return ol(o,h),ol(s.indicatorTrack,h),c?f.jsx(_t.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":s.orientation,...r,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)`},...r.style}}):null}),ps="NavigationMenuContent",sx=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=kt(ps,e.__scopeNavigationMenu),i=Jv(ps,e.__scopeNavigationMenu),o=un(i.contentRef,t),a=i.value===s.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return s.viewport?f.jsx(M1,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(ix,{"data-state":Vu(a),...c,ref:o,onPointerEnter:We(e.onPointerEnter,s.onContentEnter),onPointerLeave:We(e.onPointerLeave,zo(s.onContentLeave)),style:{pointerEvents:!a&&s.isRootMenu?"none":void 0,...c.style}})})});sx.displayName=ps;var M1=m.forwardRef((e,t)=>{const n=kt(ps,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:s}=n;return Pr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Pr(()=>()=>s(e.value),[e.value,s]),null}),ho="navigationMenu.rootContentDismiss",ix=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:s,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=kt(ps,n),d=m.useRef(null),h=un(d,t),y=lx(u.baseId,r),g=ux(u.baseId,r),p=Zv(n),v=m.useRef(null),{onItemDismiss:x}=u;m.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=s.current)==null||S.focus())};return w.addEventListener(ho,_),()=>w.removeEventListener(ho,_)}},[u.isRootMenu,e.value,s,x,a]);const b=m.useMemo(()=>{const _=p().map(O=>O.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),T=_.indexOf(u.previousValue),A=r===u.value,R=T===_.indexOf(r);if(!A&&!R)return v.current;const N=(()=>{if(S!==T){if(A&&T!==-1)return S>T?"from-end":"from-start";if(R&&S!==-1)return S>T?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,r]);return f.jsx(ax,{asChild:!0,children:f.jsx(Wv,{id:g,"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:We(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:We(e.onPointerDownOutside,w=>{var A;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),T=u.isRootMenu&&((A=u.viewport)==null?void 0:A.contains(_));(S||T||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:We(e.onKeyDown,w=>{var T;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const A=il(w.currentTarget),R=document.activeElement,N=A.findIndex(M=>M===R),I=w.shiftKey?A.slice(0,N).reverse():A.slice(N+1,A.length);Fu(I)?w.preventDefault():(T=i.current)==null||T.focus()}}),onEscapeKeyDown:We(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Lu="NavigationMenuViewport",ox=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!kt(Lu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(D1,{...r,ref:t})})});ox.displayName=Lu;var D1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...s}=e,i=kt(Lu,n),o=un(t,i.onViewportChange),a=P1(ps,e.__scopeNavigationMenu),[c,l]=m.useState(null),[u,d]=m.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,y=c?(c==null?void 0:c.height)+"px":void 0,g=!!i.value,p=g?i.value:i.previousValue;return ol(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(_t.div,{"data-state":Vu(g),"data-orientation":i.orientation,...s,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...s.style},onPointerEnter:We(e.onPointerEnter,i.onContentEnter),onPointerLeave:We(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(ix,{..._,ref:ma(b,T=>{S&&T&&d(T)})})},x)})})}),I1="FocusGroup",ax=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(I1,n);return f.jsx(nl.Provider,{scope:n,children:f.jsx(nl.Slot,{scope:n,children:f.jsx(_t.div,{dir:s.dir,...r,ref:t})})})}),Vh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],L1="FocusGroupItem",cx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=E1(n),i=kt(L1,n);return f.jsx(nl.ItemSlot,{scope:n,children:f.jsx(_t.button,{...r,ref:t,onKeyDown:We(e.onKeyDown,o=>{if(["Home","End",...Vh].includes(o.key)){let c=s().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Vh.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>Fu(c)),o.preventDefault()}})})})});function il(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function F1(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 ol(e,t){const n=Yt(t);Pr(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}function Vu(e){return e?"open":"closed"}function lx(e,t){return`${e}-trigger-${t}`}function ux(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dx=Kv,fx=Xv,V1=ex,hx=tx,B1=nx,px=rx,mx=sx,gx=ox;const yx=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(dx,{ref:r,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(wx,{})]}));yx.displayName=dx.displayName;const vx=m.forwardRef(({className:e,...t},n)=>f.jsx(fx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));vx.displayName=fx.displayName;const $1=V1,U1=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"),xx=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(hx,{ref:r,className:V(U1(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(Qw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));xx.displayName=hx.displayName;const bx=m.forwardRef(({className:e,...t},n)=>f.jsx(mx,{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}));bx.displayName=mx.displayName;const z1=B1,wx=m.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(gx,{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})}));wx.displayName=gx.displayName;const W1=m.forwardRef(({className:e,...t},n)=>f.jsx(px,{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"})}));W1.displayName=px.displayName;const H1=({className:e,text:t,hoverItems:n,setIsOpen:r})=>{const s=Bo(i=>i.setSheet);return f.jsx(yx,{children:f.jsx(vx,{children:f.jsxs($1,{className:"w-full",children:[f.jsx(xx,{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(bx,{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(z1,{onClick:()=>{r(!1),s(!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(Se,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},yt=e=>e===Ze.RU?0:e===Ze.TM?2:1,al=[{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"}]},{title:"Serginiň tematiki ugurlary",bottom_text:` - Gatnaşyjylar innowasion çözgütleri görkezip, özara peýdaly hyzmatdaşlyklary ýola goýup we täze bazarlara çykyp bilerler.`,data:[{title:"Dokma maşynlary we enjamlary",img:"/theme/1.svg"},{title:"Eşik, aýakgap, deri önümleri",img:"/theme/2.svg"},{title:"Tebigy süýümleri gaýtadan işlemek",img:"/theme/3.svg"},{title:"Öý dokmasy we eko-dokma",img:"/theme/4.svg"},{title:"Ätiýaçlyk şaýlar we kömekçi materiallar",img:"/theme/5.svg"},{title:"Himiki serişdeler we boýaglar",img:"/theme/6.svg"},{title:"Aksessuarlar we tikin furniturasy",img:"/theme/7.svg"},{title:"Moda we bezeg (dizaýn)",img:"/theme/8.svg"}]}],Sx=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["industries",e],queryFn:()=>zk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},ZO=({className:e})=>{const t=_e(s=>s.lang),{data:n,isPending:r}=Sx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(Ke,{children:r?f.jsx(Jn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:al[yt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((s,i)=>f.jsx(lm,{...s},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:al[yt(t)].bottom_text})]})]})})})},_x=[{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"}]},{title:"Serginiň wagty",data:[{name:"Sergini gurnamaklyk",date:"2026-njy ýylyň 30 Maýy – 3 iýuny"},{name:"Işi",date:"4-6 iýun 2026-njy ýyl"},{name:"Sökmek",date:"7 iýun 2026 ýyl"}]}],Cx=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["exhibiton-time",e],queryFn:()=>Wk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},KO=({className:e})=>{const t=_e(s=>s.lang),{data:n,isPending:r}=Cx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(Ke,{children:r?f.jsx(Jn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:_x[yt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((s,i)=>m.createElement(um,{bottomClassName:"!bg-white rounded-b-[2px]",...s,key:i,className:"w-full"}))})]})})})},Bh=[{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."]},{title:"Geçirilýän ýeri",data:["Türkmenistanyň Söwda-senagat edarasynyň Sergi merkezi – bu halkara sergileri, konferensiýalary, forumlary we işewür duşuşyklary geçirmek üçin häzirkizaman meýdançasydyr.","Merkez öňdebaryjy tehniki çözgütler, şol sanda multimedia enjamlary, sesgüýçlendiriji we yşyklandyryjy sistemalar, sinhron terjimeli konferens-zallary, şeýle hem gepleşikler üçin oňaýly zonalar bilen abzallaşdyrylandyr. Giň sergi pawilýonlary önümleri görkezmek we hyzmatlar üçin rahat şertleri üpjün edýärler."]}],GO=({className:e})=>{const t=_e(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(Ke,{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:Bh[yt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Bh[yt(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"},{title:"Gatnaşmaga çakylyk",p:"Türkmenistanyň dokma senagaty Ministrligi Türkmenistanyň halkara ykdysady arenada orunlaryny berkitmekde wajyp ädim boljak bu uly waka gatnaşmaga bütin dünýäniň biznes-bileleşiklerini çagyrýar.",button1:"Stend bronlamak",button2:"B2B | B2G duşuşyklar"}],QO=({className:e})=>{const t=_e(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(Ke,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:eo[yt(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[yt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(Se,{to:"/stend-form",className:"w-full",children:f.jsx(tt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:eo[yt(t)].button1})}),f.jsx(Se,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(tt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:eo[yt(t)].button2})})]})]})]})},Ex=e=>{const t=_e(s=>s.lang),{data:n,isPending:r}=En({queryKey:["static-words",t,e],queryFn:()=>Bk(t,e),select:({data:s})=>s.data});return{data:n,isPending:r}},XO=()=>{var h,y,g,p,v,x,b,w;const e=_e(_=>_.lang),{t}=Nr("about"),{data:n,isPending:r}=Ex("2"),s=(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=(g=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:g.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 r?f.jsx(Jn,{}):f.jsxs(Ke,{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:s}),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(Se,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(tt,{children:t("main.button")})})]})},q1={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Z1(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function K1(e,t){const n=e.rootNode();return t&&t(n)||n}function ga(e={}){let t,n,r,s,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(F,X){n=F;const{mergeOptions:Y,optionsAtMedia:Z}=X,K=Y(q1,ga.globalOptions),se=Y(K,e);if(t=Z(se),n.scrollSnapList().length<=1)return;u=t.jump,r=!1,s=Z1(n,t.delay);const{eventStore:fe,ownerDocument:ye}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,Ge=K1(n,t.rootNode);fe.add(ye,"visibilitychange",x),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&fe.add(Ge,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&fe.add(Ge,"mouseleave",T),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(),r=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(I,s[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function g(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!r){if(b()){l=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){r||(a&&n.emit("autoplay:stop"),g(),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 T(){c=!1,p()}function A(F){typeof F<"u"&&(u=F),p()}function R(){a&&v()}function N(){a&&p()}function O(){return a}function I(){const{index:F}=n.internalEngine(),X=F.clone().add(1).get(),Y=n.scrollSnapList().length-1,Z=t.stopOnLastSnap&&X===Y;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),Z)return v();p()}function M(){if(!i)return null;const F=s[n.selectedScrollSnap()],X=new Date().getTime()-i;return F-X}return{name:"autoplay",options:e,init:d,destroy:h,play:A,stop:R,reset:N,isPlaying:O,timeUntilNext:M}}ga.globalOptions=void 0;const YO=()=>{const{t:e}=Nr("home"),[t]=Tn({loop:!0},[ga({delay:5e3,stopOnInteraction:!1})]),n=So("(min-width: 1024px)"),r=So("(min-width: 768px)");function s(){return n?e("banners.lg",{returnObjects:!0}):r?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=s();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 lg:max-h-[600px] lg:min-h-[320px]",children:i==null?void 0:i.map((o,a)=>o.path.includes(".mp4")?f.jsx(Se,{to:(o==null?void 0:o.link)??"",className:"embla__slide flex-[0_0_100%]",children:f.jsx("video",{autoPlay:!0,controls:!1,muted:!0,loop:!0,src:o.path,className:"size-full object-cover"})},a):o.link?f.jsx(Se,{to:o.link,className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a):f.jsx("div",{className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a))})})})})},G1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["home-contacts",e],queryFn:()=>Uk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},JO=({className:e})=>{const t=_e(o=>o.lang),{data:n,isPending:r}=Cx(),{data:s}=G1(),i=yt(t);return r?f.jsx(Jn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-6",children:_x[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)=>m.createElement(um,{...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:s==null?void 0:s.map((o,a)=>m.createElement(pS,{...o,key:a,className:"w-full"}))}),f.jsx(Se,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(tt,{className:"w-full",children:{ru:"Забронируйте стенд",en:"Book a stand",tm:"Stend bronlaň"}[t]})})]})]})})},$h=[{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:"Отчет",button2:"Каталог"},{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:"Report",button2:"Catalog"},{h2:"Aşgabatda «TurkmenTextile Expo-2025» sergi-ýarmarkasy",p:`Pudagyň dünýä liderlerini, innowasion önümçileri we döredijilikli dizaýnerleri birleşdirjek halkara sergi-ýarmarka. - Biziň maksadymyz – Türkmenistany dokma we moda senagatynyň esasy merkezi hökmünde berkitmek. - `,p_2:`Sergi durnukly praktikalary, häzirkizaman tilsimatlary we dizaýn çözgütlerini öwrenmek üçin platforma bolar. - «TurkmenTextile Expo-2025» – bu däp-dessurlary we innowasiýalary, önüm öndürijileri we sarp edijileri, Türkmenistany we dünýäni birleşdirýän platformadyr!`,data:[{nums:"10,000 m²",text:"Sergi meýdanyňky"},{nums:"10000+",text:"Geljek adamlaryň garaşylýan sany"},{nums:"100+",text:"30 ýurtdan gowurak eksponentler"},{nums:"80%",text:"Top-menejmentden gatnaşyjylar"}],button:"Hasabat",button2:"Katalog"}],Q1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["stats",e],queryFn:()=>$k(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eM=()=>{var l,u;const[e]=Tn(),t=_e(d=>d.lang),{t:n}=Nr("home"),{data:r,isPending:s}=Ex("1"),{data:i}=Q1(),o=(l=r==null?void 0:r.find(d=>d.key==="index_1"))==null?void 0:l.text,a=(u=r==null?void 0:r.find(d=>d.key==="index_2"))==null?void 0:u.text,c=yt(t);return s?f.jsx(Jn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ke,{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:o}),f.jsx("div",{dangerouslySetInnerHTML:{__html:a||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsxs("div",{className:"flex w-full gap-8",children:[f.jsx(Se,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(tt,{children:$h[c].button})}),f.jsx(Se,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(tt,{className:"px-16",children:$h[c].button2})})]})]}),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:i==null?void 0:i.map(d=>f.jsx(fS,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},tM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=Sx();return n?f.jsx(Jn,{}):f.jsx("section",{className:"",children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:al[yt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((r,s)=>f.jsx(lm,{...r},s))})]})})},X1=[{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"}]},{data:[{img:"/offer-1.png",title:"Myhmanhanalar, transfer, wizalar",btnText:"Ýol görkezijini ýüklemek",text:"Myhmanhanalara ýerleşmek, wiza goldawy, ulag we ekskursiýa meseleleri boýunça Siz ýol görkezijiden tanyşyp bilersiňiz",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"TurkmenTextile Expo 2026 serginiň meýilnamasy bilen tanyşmak",btnText:"Serginiň meýilnamasyny ýüklemeli",text:"Sergide oňat ýeri nädip saýlamaly? Sergi ekspozisiýasyny şowly ýerleşdirmegiň Siziň potensial müşderileriňizi çekmek boýunça mümkinçilikleriňizi has-da artdyrýandygyny Siz hemişe ýatda saklamalysyňyz.",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],nM=()=>{const[e,t]=Tn({align:"start"}),[n,r]=m.useState(0),s=_e(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.useEffect(()=>{if(!t)return;const o=()=>{r(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(Ke,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:X1[yt(s)].data.map(o=>m.createElement(hS,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(wA,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Y1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["sponsors",e],queryFn:()=>Kk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},rM=({className:e})=>{const[t]=Tn({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:r}=Y1(),{t:s}=Nr("home",{keyPrefix:"sponsors"});return r?f.jsx(Jn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:s("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(Se,{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)})})})]})})},J1=e=>{const{data:t,isPending:n}=En({queryKey:["news",e],queryFn:()=>Hk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eO=({className:e,featured_images:t,title:n,id:r,published_at:s})=>{var i;return f.jsx(Se,{to:`/news/${r}`,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:s.slice(0,10).split("-").reverse().join(".")}),f.jsx(qw,{})]}),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"})]})})},sM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=J1(e);return n?f.jsx(Jn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[e]}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(r=>m.createElement(eO,{...r,key:r.title}))})]})})},iM=({className:e})=>{const{t}=Nr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ke,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((r,s)=>r.dropdown?f.jsx($o,{dropDownContent:r.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(tt,{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:[r.text,f.jsx(Dv,{w:"40",h:"40",color:"white"})]})},s):f.jsx(Se,{to:r.link??"",target:r.blank?"_blank":"",children:f.jsx(tt,{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:r.text})},s))})})})},tO=()=>{const{t:e}=Nr("nav"),t=_e(i=>i.lang),n=Bo(i=>i.sheet),r=Bo(i=>i.setSheet),s=e("navigation",{returnObjects:!0});return f.jsxs(z0,{onOpenChange:()=>r(!n),open:n,children:[f.jsx(W0,{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(rm,{className:"overflow-y-auto z-[100]",children:[f.jsx(H0,{}),f.jsxs(sm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Se,{to:t===Ze.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(tt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[t]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[t]})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:s.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(Se,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>r(!1),children:i.title},i.title))})]})]})},oM=()=>{const e=_e(r=>r.lang),{t}=Nr("nav"),n=t("navigation",{returnObjects:!0});return f.jsx("div",{className:"lg:h-[128px] h-20",children:f.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100]",children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden bg-background",children:f.jsxs(Ke,{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(s0,{}),f.jsx("h4",{className:"text-sm",children:{ru:"Ашхабад, Туркменистан",en:"Ashgabat, Turkmenistan",tm:"Aşgabat, Türkmenistan"}[e]})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(r=>r.drop?f.jsx($o,{color:"black",dropDownContent:r.dropDownContent,title:r.title},r.title):f.jsx(Se,{target:r.blank?"_blank":"",className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(a0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(uh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ke,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Se,{to:"/",children:f.jsx(cm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(r=>r.drop?f.jsx($o,{dropDownContent:r.dropDownContent,title:r.title,color:"white"},r.title):f.jsx(Se,{className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(uh,{className:"lg:hidden",light:!0}),f.jsx(tO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Se,{to:e===Ze.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(tt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[e]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[e]})})]})]})})]})})},aM=()=>{const e=_e(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Mv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ke,{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(cm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Se,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(e0,{className:"text-white"})}),f.jsx(Se,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Se,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Se,{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:{ru:"©2025 Все права защищены",en:"All rights reserved",tm:"Ähli hukuklar goralan"}[e]})]})})]})},Ke=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cM=({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{Oj as $,uy as A,mO as B,tt as C,lA as D,pO as E,aM as F,dO as G,oM as H,gO as I,eP as J,Le as K,cO as L,cM as M,hO as N,XO as O,lt as P,ZO as Q,KO as R,ms as S,GO as T,QO as U,LO as V,Nr as W,Qp as X,FO as Y,Ke as Z,jj as _,YO as a,WO as a0,UO as a1,lO as a2,Jn as a3,En as a4,VO as a5,J1 as a6,eO as a7,BO as a8,zO as a9,IO as aa,Tn as ab,ga as ac,$O as ad,HO as ae,mc as af,Gp as ag,sO as ah,iO as ai,iM as b,V as c,eM as d,rM as e,nM as f,tM as g,JO as h,uO as i,f as j,sM as k,ml as l,zt as m,to as n,vt as o,fp as p,_R as q,gs as r,na as s,zs as t,_e as u,yt as v,fA as w,cy as x,ly as y,ph as z}; diff --git a/dist/assets/ui-library-DXFnX4mi.js b/dist/assets/ui-library-DXFnX4mi.js new file mode 100644 index 0000000..d88501f --- /dev/null +++ b/dist/assets/ui-library-DXFnX4mi.js @@ -0,0 +1,163 @@ +var Bx=Object.defineProperty;var Ku=e=>{throw TypeError(e)};var $x=(e,t,n)=>t in e?Bx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>$x(e,typeof t!="symbol"?t+"":t,n),ba=(e,t,n)=>t.has(e)||Ku("Cannot "+n);var C=(e,t,n)=>(ba(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(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),q=(e,t,n,s)=>(ba(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),me=(e,t,n)=>(ba(e,t,"access private method"),n);var zi=(e,t,n,s)=>({set _(r){q(e,t,r,n)},get _(){return C(e,t,s)}});import{r as zx,a as m,R as fc,b as hc,c as sp,L as _e,d as Ui,e as fe,u as Ux}from"./react-vendor-B--yIoPF.js";var wa={exports:{}},Ar={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gu;function Wx(){if(Gu)return Ar;Gu=1;var e=zx(),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,l,c){var u,d={},h=null,y=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(y=l.ref);for(u in l)s.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[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 Hx(){return Xu||(Xu=1,wa.exports=Wx()),wa.exports}var f=Hx(),Ai=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(){}},qx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dn,dc,Zh,Zx=(Zh=class{constructor(){te(this,Dn,qx);te(this,dc,!1)}setTimeoutProvider(e){q(this,Dn,e)}setTimeout(e,t){return C(this,Dn).setTimeout(e,t)}clearTimeout(e){C(this,Dn).clearTimeout(e)}setInterval(e,t){return C(this,Dn).setInterval(e,t)}clearInterval(e){C(this,Dn).clearInterval(e)}},Dn=new WeakMap,dc=new WeakMap,Zh),os=new Zx;function Kx(e){setTimeout(e,0)}var _s=typeof window>"u"||"Deno"in globalThis;function pt(){}function Gx(e,t){return typeof e=="function"?e(t):e}function el(e){return typeof e=="number"&&e>=0&&e!==1/0}function rp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Un(e,t){return typeof e=="function"?e(t):e}function Pt(e,t){return typeof e=="function"?e(t):e}function Yu(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==pc(o,t.options))return!1}else if(!Xr(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Qu(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Gr(t.options.mutationKey)!==Gr(i))return!1}else if(!Xr(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function pc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Gr)(e)}function Gr(e){return JSON.stringify(e,(t,n)=>nl(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function Xr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xr(e[n],t[n])):!1}var Xx=Object.prototype.hasOwnProperty;function ip(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Ju(e)&&Ju(t);if(!s&&!(nl(e)&&nl(t)))return t;const i=(s?e:Object.keys(e)).length,o=s?t:Object.keys(t),a=o.length,l=s?new Array(a):{};let c=0;for(let u=0;u{os.setTimeout(t,e)})}function sl(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ip(e,t):t}function Qx(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function Jx(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var mc=Symbol();function op(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===mc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ap(e,t){return typeof e=="function"?e(...t):!!e}function eb(e,t,n){let s=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??(r=t()),s||(s=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var us,Ln,Xs,Kh,tb=(Kh=class extends Ai{constructor(){super();te(this,us);te(this,Ln);te(this,Xs);q(this,Xs,t=>{if(!_s&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Ln)||this.setEventListener(C(this,Xs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Ln))==null||t.call(this),q(this,Ln,void 0))}setEventListener(t){var n;q(this,Xs,t),(n=C(this,Ln))==null||n.call(this),q(this,Ln,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){C(this,us)!==t&&(q(this,us,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,us)=="boolean"?C(this,us):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},us=new WeakMap,Ln=new WeakMap,Xs=new WeakMap,Kh),gc=new tb;function rl(){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}var nb=Kx;function sb(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=nb;const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var Ze=sb(),Ys,In,Qs,Gh,rb=(Gh=class extends Ai{constructor(){super();te(this,Ys,!0);te(this,In);te(this,Qs);q(this,Qs,t=>{if(!_s&&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(){C(this,In)||this.setEventListener(C(this,Qs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,In))==null||t.call(this),q(this,In,void 0))}setEventListener(t){var n;q(this,Qs,t),(n=C(this,In))==null||n.call(this),q(this,In,t(this.setOnline.bind(this)))}setOnline(t){C(this,Ys)!==t&&(q(this,Ys,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return C(this,Ys)}},Ys=new WeakMap,In=new WeakMap,Qs=new WeakMap,Gh),go=new rb;function ib(e){return Math.min(1e3*2**e,3e4)}function lp(e){return(e??"online")==="online"?go.isOnline():!0}var il=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cp(e){let t=!1,n=0,s;const r=rl(),i=()=>r.status!=="pending",o=p=>{var v;if(!i()){const x=new il(p);h(x),(v=e.onCancel)==null||v.call(e,x)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>gc.isFocused()&&(e.networkMode==="always"||go.isOnline())&&e.canRun(),u=()=>lp(e.networkMode)&&e.canRun(),d=p=>{i()||(s==null||s(),r.resolve(p))},h=p=>{i()||(s==null||s(),r.reject(p))},y=()=>new Promise(p=>{var v;s=x=>{(i()||c())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;s=void 0,i()||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(i())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 T;if(i())return;const b=e.retry??(_s?0:3),w=e.retryDelay??ib,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nc()?void 0:y()).then(()=>{t?h(x):g()})})};return{promise:r,status:()=>r.status,cancel:o,continue:()=>(s==null||s(),r),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?g():y().then(g),r)}}var ds,Xh,up=(Xh=class{constructor(){te(this,ds)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),el(this.gcTime)&&q(this,ds,os.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_s?1/0:5*60*1e3))}clearGcTimeout(){C(this,ds)&&(os.clearTimeout(C(this,ds)),q(this,ds,void 0))}},ds=new WeakMap,Xh),fs,Js,Nt,hs,We,_i,ps,Dt,mn,Yh,ob=(Yh=class extends up{constructor(t){super();te(this,Dt);te(this,fs);te(this,Js);te(this,Nt);te(this,hs);te(this,We);te(this,_i);te(this,ps);q(this,ps,!1),q(this,_i,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,hs,t.client),q(this,Nt,C(this,hs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,fs,nd(this.options)),this.state=t.state??C(this,fs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,We))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,_i),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=nd(this.options);n.data!==void 0&&(this.setState(td(n.data,n.dataUpdatedAt)),q(this,fs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Nt).remove(this)}setData(t,n){const s=sl(this.state.data,t,this.options);return me(this,Dt,mn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){me(this,Dt,mn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=C(this,We))==null?void 0:s.promise;return(r=C(this,We))==null||r.cancel(t),n?n.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,fs))}isActive(){return this.observers.some(t=>Pt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Un(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!rp(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,We))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,We))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,We)&&(C(this,ps)?C(this,We).cancel({revert:!0}):C(this,We).cancelRetry()),this.scheduleGc()),C(this,Nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Dt,mn).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,y,g,p,v,x,b,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,We))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,We))return C(this,We).continueRetry(),C(this,We).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(S=>S.options.queryFn);_&&this.setOptions(_.options)}const s=new AbortController,r=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(q(this,ps,!0),s.signal)})},i=()=>{const _=op(this.options,n),T=(()=>{const R={client:C(this,hs),queryKey:this.queryKey,meta:this.meta};return r(R),R})();return q(this,ps,!1),this.options.persister?this.options.persister(_,T,this):_(T)},a=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,hs),state:this.state,fetchFn:i};return r(_),_})();(c=this.options.behavior)==null||c.onFetch(a,this),q(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&me(this,Dt,mn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),q(this,We,cp({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:_=>{_ instanceof il&&_.revert&&this.setState({...C(this,Js),fetchStatus:"idle"}),s.abort()},onFail:(_,S)=>{me(this,Dt,mn).call(this,{type:"failed",failureCount:_,error:S})},onPause:()=>{me(this,Dt,mn).call(this,{type:"pause"})},onContinue:()=>{me(this,Dt,mn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const _=await C(this,We).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(y=(h=C(this,Nt).config).onSuccess)==null||y.call(h,_,this),(p=(g=C(this,Nt).config).onSettled)==null||p.call(g,_,this.state.error,this),_}catch(_){if(_ instanceof il){if(_.silent)return C(this,We).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw me(this,Dt,mn).call(this,{type:"error",error:_}),(x=(v=C(this,Nt).config).onError)==null||x.call(v,_,this),(w=(b=C(this,Nt).config).onSettled)==null||w.call(b,this.state.data,_,this),_}finally{this.scheduleGc()}}},fs=new WeakMap,Js=new WeakMap,Nt=new WeakMap,hs=new WeakMap,We=new WeakMap,_i=new WeakMap,ps=new WeakMap,Dt=new WeakSet,mn=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,...dp(s.data,this.options),fetchMeta:t.meta??null};case"success":const r={...s,...td(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Js,t.manual?r:void 0),r;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,Nt).notify({query:this,type:"updated",action:t})})},Yh);function dp(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function td(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nd(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 ft,ge,Ei,ot,ms,er,vn,Fn,Ci,tr,nr,gs,ys,Vn,sr,we,Dr,ol,al,ll,cl,ul,dl,fl,fp,Qh,ab=(Qh=class extends Ai{constructor(t,n){super();te(this,we);te(this,ft);te(this,ge);te(this,Ei);te(this,ot);te(this,ms);te(this,er);te(this,vn);te(this,Fn);te(this,Ci);te(this,tr);te(this,nr);te(this,gs);te(this,ys);te(this,Vn);te(this,sr,new Set);this.options=n,q(this,ft,t),q(this,Fn,null),q(this,vn,rl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ge).addObserver(this),sd(C(this,ge),this.options)?me(this,we,Dr).call(this):this.updateResult(),me(this,we,cl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hl(C(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hl(C(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,we,ul).call(this),me(this,we,dl).call(this),C(this,ge).removeObserver(this)}setOptions(t){const n=this.options,s=C(this,ge);if(this.options=C(this,ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,C(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,we,fl).call(this),C(this,ge).setOptions(this.options),n._defaulted&&!tl(this.options,n)&&C(this,ft).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ge),observer:this});const r=this.hasListeners();r&&rd(C(this,ge),s,this.options,n)&&me(this,we,Dr).call(this),this.updateResult(),r&&(C(this,ge)!==s||Pt(this.options.enabled,C(this,ge))!==Pt(n.enabled,C(this,ge))||Un(this.options.staleTime,C(this,ge))!==Un(n.staleTime,C(this,ge)))&&me(this,we,ol).call(this);const i=me(this,we,al).call(this);r&&(C(this,ge)!==s||Pt(this.options.enabled,C(this,ge))!==Pt(n.enabled,C(this,ge))||i!==C(this,Vn))&&me(this,we,ll).call(this,i)}getOptimisticResult(t){const n=C(this,ft).getQueryCache().build(C(this,ft),t),s=this.createResult(n,t);return cb(this,s)&&(q(this,ot,s),q(this,er,this.options),q(this,ms,C(this,ge).state)),s}getCurrentResult(){return C(this,ot)}trackResult(t,n){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,vn).status==="pending"&&C(this,vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){C(this,sr).add(t)}getCurrentQuery(){return C(this,ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ft).defaultQueryOptions(t),s=C(this,ft).getQueryCache().build(C(this,ft),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return me(this,we,Dr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,ot)))}createResult(t,n){var P;const s=C(this,ge),r=this.options,i=C(this,ot),o=C(this,ms),a=C(this,er),c=t!==s?t.state:C(this,Ei),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const O=this.hasListeners(),L=!O&&sd(t,n),M=O&&rd(t,s,n,r);(L||M)&&(d={...d,...dp(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:p,status:v}=d;y=d.data;let x=!1;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let O;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(O=i.data,x=!0):O=typeof n.placeholderData=="function"?n.placeholderData((P=C(this,nr))==null?void 0:P.state.data,C(this,nr)):n.placeholderData,O!==void 0&&(v="success",y=sl(i==null?void 0:i.data,O,n),h=!0)}if(n.select&&y!==void 0&&!x)if(i&&y===(o==null?void 0:o.data)&&n.select===C(this,Ci))y=C(this,tr);else try{q(this,Ci,n.select),y=n.select(y),y=sl(i==null?void 0:i.data,y,n),q(this,tr,y),q(this,Fn,null)}catch(O){q(this,Fn,O)}C(this,Fn)&&(g=C(this,Fn),y=C(this,tr),p=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",_=v==="error",S=w&&b,T=y!==void 0,A={status:v,fetchStatus:d.fetchStatus,isPending:w,isSuccess:v==="success",isError:_,isInitialLoading:S,isLoading:S,data:y,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:_&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&T,isStale:yc(t,n),refetch:this.refetch,promise:C(this,vn),isEnabled:Pt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=A.data!==void 0,L=A.status==="error"&&!O,M=Y=>{L?Y.reject(A.error):O&&Y.resolve(A.data)},z=()=>{const Y=q(this,vn,A.promise=rl());M(Y)},F=C(this,vn);switch(F.status){case"pending":t.queryHash===s.queryHash&&M(F);break;case"fulfilled":(L||A.data!==F.value)&&z();break;case"rejected":(!L||A.error!==F.reason)&&z();break}}return A}updateResult(){const t=C(this,ot),n=this.createResult(C(this,ge),this.options);if(q(this,ms,C(this,ge).state),q(this,er,this.options),C(this,ms).data!==void 0&&q(this,nr,C(this,ge)),tl(n,t))return;q(this,ot,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!C(this,sr).size)return!0;const o=new Set(i??C(this,sr));return this.options.throwOnError&&o.add("error"),Object.keys(C(this,ot)).some(a=>{const l=a;return C(this,ot)[l]!==t[l]&&o.has(l)})};me(this,we,fp).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,we,cl).call(this)}},ft=new WeakMap,ge=new WeakMap,Ei=new WeakMap,ot=new WeakMap,ms=new WeakMap,er=new WeakMap,vn=new WeakMap,Fn=new WeakMap,Ci=new WeakMap,tr=new WeakMap,nr=new WeakMap,gs=new WeakMap,ys=new WeakMap,Vn=new WeakMap,sr=new WeakMap,we=new WeakSet,Dr=function(t){me(this,we,fl).call(this);let n=C(this,ge).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(pt)),n},ol=function(){me(this,we,ul).call(this);const t=Un(this.options.staleTime,C(this,ge));if(_s||C(this,ot).isStale||!el(t))return;const s=rp(C(this,ot).dataUpdatedAt,t)+1;q(this,gs,os.setTimeout(()=>{C(this,ot).isStale||this.updateResult()},s))},al=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ge)):this.options.refetchInterval)??!1},ll=function(t){me(this,we,dl).call(this),q(this,Vn,t),!(_s||Pt(this.options.enabled,C(this,ge))===!1||!el(C(this,Vn))||C(this,Vn)===0)&&q(this,ys,os.setInterval(()=>{(this.options.refetchIntervalInBackground||gc.isFocused())&&me(this,we,Dr).call(this)},C(this,Vn)))},cl=function(){me(this,we,ol).call(this),me(this,we,ll).call(this,me(this,we,al).call(this))},ul=function(){C(this,gs)&&(os.clearTimeout(C(this,gs)),q(this,gs,void 0))},dl=function(){C(this,ys)&&(os.clearInterval(C(this,ys)),q(this,ys,void 0))},fl=function(){const t=C(this,ft).getQueryCache().build(C(this,ft),this.options);if(t===C(this,ge))return;const n=C(this,ge);q(this,ge,t),q(this,Ei,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fp=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,ot))}),C(this,ft).getQueryCache().notify({query:C(this,ge),type:"observerResultsUpdated"})})},Qh);function lb(e,t){return Pt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function sd(e,t){return lb(e,t)||e.state.data!==void 0&&hl(e,t,t.refetchOnMount)}function hl(e,t,n){if(Pt(t.enabled,e)!==!1&&Un(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&yc(e,t)}return!1}function rd(e,t,n,s){return(e!==t||Pt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&yc(e,n)}function yc(e,t){return Pt(t.enabled,e)!==!1&&e.isStaleByTime(Un(t.staleTime,e))}function cb(e,t){return!tl(e.getCurrentResult(),t)}function id(e){return{onFetch:(t,n)=>{var u,d,h,y,g;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=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const v=w=>{eb(w,()=>t.signal,()=>p=!0)},x=op(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return v(L),L})(),A=await x(R),{maxPages:P}=t.options,O=S?Jx:Qx;return{pages:O(w.pages,A,P),pageParams:O(w.pageParams,_,P)}};if(r&&i.length){const w=r==="backward",_=w?ub:od,S={pages:i,pageParams:o},T=_(s,S);a=await b(S,T,w)}else{const w=e??i.length;do{const _=l===0?o[0]??s.initialPageParam:od(s,a);if(l>0&&_==null)break;a=await b(a,_),l++}while(l{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function od(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 ub(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 Ti,Xt,Qe,vs,Yt,kn,Jh,db=(Jh=class extends up{constructor(t){super();te(this,Yt);te(this,Ti);te(this,Xt);te(this,Qe);te(this,vs);q(this,Ti,t.client),this.mutationId=t.mutationId,q(this,Qe,t.mutationCache),q(this,Xt,[]),this.state=t.state||fb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Xt).includes(t)||(C(this,Xt).push(t),this.clearGcTimeout(),C(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,Xt,C(this,Xt).filter(n=>n!==t)),this.scheduleGc(),C(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Xt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Qe).remove(this))}continue(){var t;return((t=C(this,vs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,l,c,u,d,h,y,g,p,v,x,b,w,_,S,T,R;const n=()=>{me(this,Yt,kn).call(this,{type:"continue"})},s={client:C(this,Ti),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,vs,cp({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(A,P)=>{me(this,Yt,kn).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{me(this,Yt,kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Qe).canRun(this)}));const r=this.state.status==="pending",i=!C(this,vs).canStart();try{if(r)n();else{me(this,Yt,kn).call(this,{type:"pending",variables:t,isPaused:i}),C(this,Qe).config.onMutate&&await C(this,Qe).config.onMutate(t,this,s);const P=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,s));P!==this.state.context&&me(this,Yt,kn).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const A=await C(this,vs).start();return await((c=(l=C(this,Qe).config).onSuccess)==null?void 0:c.call(l,A,t,this.state.context,this,s)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,s)),await((y=(h=C(this,Qe).config).onSettled)==null?void 0:y.call(h,A,null,this.state.variables,this.state.context,this,s)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,A,null,t,this.state.context,s)),me(this,Yt,kn).call(this,{type:"success",data:A}),A}catch(A){try{await((x=(v=C(this,Qe).config).onError)==null?void 0:x.call(v,A,t,this.state.context,this,s))}catch(P){Promise.reject(P)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,A,t,this.state.context,s))}catch(P){Promise.reject(P)}try{await((S=(_=C(this,Qe).config).onSettled)==null?void 0:S.call(_,void 0,A,this.state.variables,this.state.context,this,s))}catch(P){Promise.reject(P)}try{await((R=(T=this.options).onSettled)==null?void 0:R.call(T,void 0,A,t,this.state.context,s))}catch(P){Promise.reject(P)}throw me(this,Yt,kn).call(this,{type:"error",error:A}),A}finally{C(this,Qe).runNext(this)}}},Ti=new WeakMap,Xt=new WeakMap,Qe=new WeakMap,vs=new WeakMap,Yt=new WeakSet,kn=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),Ze.batch(()=>{C(this,Xt).forEach(s=>{s.onMutationUpdate(t)}),C(this,Qe).notify({mutation:this,type:"updated",action:t})})},Jh);function fb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xn,Lt,Ri,ep,hb=(ep=class extends Ai{constructor(t={}){super();te(this,xn);te(this,Lt);te(this,Ri);this.config=t,q(this,xn,new Set),q(this,Lt,new Map),q(this,Ri,0)}build(t,n,s){const r=new db({client:t,mutationCache:this,mutationId:++zi(this,Ri)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){C(this,xn).add(t);const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).get(n);s?s.push(t):C(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,xn).delete(t)){const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&C(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).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=Wi(t);if(typeof n=="string"){const r=(s=C(this,Lt).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(){Ze.batch(()=>{C(this,xn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,xn).clear(),C(this,Lt).clear()})}getAll(){return Array.from(C(this,xn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Qu(n,s))}findAll(t={}){return this.getAll().filter(n=>Qu(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(pt))))}},xn=new WeakMap,Lt=new WeakMap,Ri=new WeakMap,ep);function Wi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qt,tp,pb=(tp=class extends Ai{constructor(t={}){super();te(this,Qt);this.config=t,q(this,Qt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??pc(r,n);let o=this.get(i);return o||(o=new ob({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){C(this,Qt).has(t.queryHash)||(C(this,Qt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Qt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Qt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Qt).get(t)}getAll(){return[...C(this,Qt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Yu(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Yu(t,s)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qt=new WeakMap,tp),ke,Bn,$n,rr,ir,zn,or,ar,np,AO=(np=class{constructor(e={}){te(this,ke);te(this,Bn);te(this,$n);te(this,rr);te(this,ir);te(this,zn);te(this,or);te(this,ar);q(this,ke,e.queryCache||new pb),q(this,Bn,e.mutationCache||new hb),q(this,$n,e.defaultOptions||{}),q(this,rr,new Map),q(this,ir,new Map),q(this,zn,0)}mount(){zi(this,zn)._++,C(this,zn)===1&&(q(this,or,gc.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ke).onFocus())})),q(this,ar,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ke).onOnline())})))}unmount(){var e,t;zi(this,zn)._--,C(this,zn)===0&&((e=C(this,or))==null||e.call(this),q(this,or,void 0),(t=C(this,ar))==null||t.call(this),q(this,ar,void 0))}isFetching(e){return C(this,ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ke).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Un(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return C(this,ke).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=C(this,ke).get(s.queryHash),i=r==null?void 0:r.state.data,o=Gx(t,i);if(o!==void 0)return C(this,ke).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>C(this,ke).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ke);return Ze.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Ze.batch(()=>C(this,ke).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(pt).catch(pt)}invalidateQueries(e,t={}){return Ze.batch(()=>(C(this,ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Ze.batch(()=>C(this,ke).findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(pt)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ke).build(this,t);return n.isStaleByTime(Un(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=id(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=id(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?C(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ke)}getMutationCache(){return C(this,Bn)}getDefaultOptions(){return C(this,$n)}setDefaultOptions(e){q(this,$n,e)}setQueryDefaults(e,t){C(this,rr).set(Gr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,rr).values()],n={};return t.forEach(s=>{Xr(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ir).set(Gr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ir).values()],n={};return t.forEach(s=>{Xr(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,$n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pc(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===mc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,$n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ke).clear(),C(this,Bn).clear()}},ke=new WeakMap,Bn=new WeakMap,$n=new WeakMap,rr=new WeakMap,ir=new WeakMap,zn=new WeakMap,or=new WeakMap,ar=new WeakMap,np),hp=m.createContext(void 0),mb=e=>{const t=m.useContext(hp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},NO=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(hp.Provider,{value:e,children:t})),pp=m.createContext(!1),gb=()=>m.useContext(pp);pp.Provider;function yb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vb=m.createContext(yb()),xb=()=>m.useContext(vb),bb=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ap(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},wb=e=>{m.useEffect(()=>{e.clearReset()},[e])},Sb=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||ap(n,[e.error,s])),_b=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...r)=>n(s(...r)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Eb=(e,t)=>e.isLoading&&e.isFetching&&!t,Cb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ad=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tb(e,t,n){var h,y,g,p;const s=gb(),r=xb(),i=mb(),o=i.defaultQueryOptions(e);(y=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||y.call(h,o);const a=i.getQueryCache().get(o.queryHash);o._optimisticResults=s?"isRestoring":"optimistic",_b(o),bb(o,r,a),wb(r);const l=!i.getQueryCache().get(o.queryHash),[c]=m.useState(()=>new t(i,o)),u=c.getOptimisticResult(o),d=!s&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const x=d?c.subscribe(Ze.batchCalls(v)):pt;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(o)},[o,c]),Cb(o,u))throw ad(o,c,r);if(Sb({result:u,errorResetBoundary:r,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw u.error;if((p=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||p.call(g,o,u),o.experimental_prefetchInRender&&!_s&&Eb(u,s)){const v=l?ad(o,c,r):a==null?void 0:a.promise;v==null||v.catch(pt).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function Tn(e,t){return Tb(e,ab)}function xt(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 ld(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mp(...e){return t=>{let n=!1;const s=e.map(r=>{const i=ld(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:o,...a}=i,l=m.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:l,children:o})};s.displayName=e+"Provider";function r(i){const o=m.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 vc(e,t=[]){let n=[];function s(i,o){const a=m.createContext(o),l=n.length;n=[...n,o];const c=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[l])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};c.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const r=()=>{const i=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[s,Ab(r,...t)]}function Ab(...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:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Nb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Pb=fc.useId||(()=>{}),kb=0;function so(e){const[t,n]=m.useState(Pb());return Nb(()=>{n(s=>s??String(kb++))},[e]),t?`radix-${t}`:""}function gp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function yp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=jb({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=gp(n),l=m.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else r(c)},[i,e,r,a]);return[o,l]}function jb({defaultProp:e,onChange:t}){const n=m.useState(e),[s]=n,r=m.useRef(s),i=gp(t);return m.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var yr=m.forwardRef((e,t)=>{const{children:n,...s}=e,r=m.Children.toArray(n),i=r.find(Mb);if(i){const o=i.props.children,a=r.map(l=>l===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:l);return f.jsx(pl,{...s,ref:t,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return f.jsx(pl,{...s,ref:t,children:n})});yr.displayName="Slot";var pl=m.forwardRef((e,t)=>{const{children:n,...s}=e;if(m.isValidElement(n)){const r=Lb(n),i=Db(s,n.props);return n.type!==m.Fragment&&(i.ref=t?mp(t,r):r),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});pl.displayName="SlotClone";var Ob=({children:e})=>f.jsx(f.Fragment,{children:e});function Mb(e){return m.isValidElement(e)&&e.type===Ob}function Db(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 Lb(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 Ib=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ut=Ib.reduce((e,t)=>{const n=m.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?yr: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 Fb(e,t){e&&hc.flushSync(()=>e.dispatchEvent(t))}function vp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Vb(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Bb(e,t=globalThis==null?void 0:globalThis.document){const n=Vb(e);m.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 $b="DismissableLayer",ml="dismissableLayer.update",zb="dismissableLayer.pointerDownOutside",Ub="dismissableLayer.focusOutside",cd,xp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xc=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=m.useContext(xp),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=Wt(t,R=>d(R)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=qb(R=>{const A=R.target,P=[...c.branches].some(O=>O.contains(A));!_||P||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},h),T=Zb(R=>{const A=R.target;[...c.branches].some(O=>O.contains(A))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},h);return Bb(R=>{b===c.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ud(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=cd)}},[u,h,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ud())},[u,c]),m.useEffect(()=>{const R=()=>y({});return document.addEventListener(ml,R),()=>document.removeEventListener(ml,R)},[]),f.jsx(ut.div,{...l,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:xt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xt(e.onPointerDownCapture,S.onPointerDownCapture)})});xc.displayName=$b;var Wb="DismissableLayerBranch",Hb=m.forwardRef((e,t)=>{const n=m.useContext(xp),s=m.useRef(null),r=Wt(t,s);return m.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ut.div,{...e,ref:r})});Hb.displayName=Wb;function qb(e,t=globalThis==null?void 0:globalThis.document){const n=vp(e),s=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){bp(zb,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}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 Zb(e,t=globalThis==null?void 0:globalThis.document){const n=vp(e),s=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!s.current&&bp(Ub,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 ud(){const e=new CustomEvent(ml);document.dispatchEvent(e)}function bp(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?Fb(r,i):r.dispatchEvent(i)}function dd(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}var Sa="focusScope.autoFocusOnMount",_a="focusScope.autoFocusOnUnmount",fd={bubbles:!1,cancelable:!0},Kb="FocusScope",bc=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,l]=m.useState(null),c=dd(r),u=dd(i),d=m.useRef(null),h=Wt(t,p=>l(p)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(s){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:jn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||jn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&jn(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]),m.useEffect(()=>{if(a){pd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(Sa,fd);a.addEventListener(Sa,c),a.dispatchEvent(x),x.defaultPrevented||(Gb(ew(wp(a)),{select:!0}),document.activeElement===p&&jn(a))}return()=>{a.removeEventListener(Sa,c),setTimeout(()=>{const x=new CustomEvent(_a,fd);a.addEventListener(_a,u),a.dispatchEvent(x),x.defaultPrevented||jn(p??document.body,{select:!0}),a.removeEventListener(_a,u),pd.remove(y)},0)}}},[a,c,u,y]);const g=m.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,_]=Xb(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&jn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&jn(_,{select:!0})):x===b&&p.preventDefault()}},[n,s,y.paused]);return f.jsx(ut.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});bc.displayName=Kb;function Gb(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(jn(s,{select:t}),document.activeElement!==n)return}function Xb(e){const t=wp(e),n=hd(t,e),s=hd(t.reverse(),e);return[n,s]}function wp(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 hd(e,t){for(const n of e)if(!Yb(n,{upTo:t}))return n}function Yb(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 Qb(e){return e instanceof HTMLInputElement&&"select"in e}function jn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qb(e)&&t&&e.select()}}var pd=Jb();function Jb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=md(e,t),e.unshift(t)},remove(t){var n;e=md(e,t),(n=e[0])==null||n.resume()}}}function md(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function ew(e){return e.filter(t=>t.tagName!=="A")}var tw=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},nw="Portal",wc=m.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=m.useState(!1);tw(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?sp.createPortal(f.jsx(ut.div,{...s,ref:t}),o):null});wc.displayName=nw;var gd=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function sw(e,t){return m.useReducer((n,s)=>t[n][s]??n,e)}var vr=e=>{const{present:t,children:n}=e,s=rw(t),r=typeof n=="function"?n({present:s.isPresent}):m.Children.only(n),i=Wt(s.ref,iw(r));return typeof n=="function"||s.isPresent?m.cloneElement(r,{ref:i}):null};vr.displayName="Presence";function rw(e){const[t,n]=m.useState(),s=m.useRef({}),r=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=sw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=Hi(s.current);i.current=a==="mounted"?c:"none"},[a]),gd(()=>{const c=s.current,u=r.current;if(u!==e){const h=i.current,y=Hi(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),gd(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Hi(s.current).includes(y.animationName);if(y.target===t&&p&&(l("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Hi(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{c&&(s.current=getComputedStyle(c)),n(c)},[])}}function Hi(e){return(e==null?void 0:e.animationName)||"none"}function iw(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 Ea=0;function Sp(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yd()),document.body.insertAdjacentElement("beforeend",e[1]??yd()),Ea++,()=>{Ea===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ea--}},[])}function yd(){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 Sw;var t=_w(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])}},Cw=Tp(),qs="data-scroll-locked",Tw=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(aw,` { + overflow: hidden `).concat(s,`; + padding-right: `).concat(a,"px ").concat(s,`; + } + body[`).concat(qs,`] { + overflow: hidden `).concat(s,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(s,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),` + } + + .`).concat(ro,` { + right: `).concat(a,"px ").concat(s,`; + } + + .`).concat(io,` { + margin-right: `).concat(a,"px ").concat(s,`; + } + + .`).concat(ro," .").concat(ro,` { + right: 0 `).concat(s,`; + } + + .`).concat(io," .").concat(io,` { + margin-right: 0 `).concat(s,`; + } + + body[`).concat(qs,`] { + `).concat(lw,": ").concat(a,`px; + } +`)},xd=function(){var e=parseInt(document.body.getAttribute(qs)||"0",10);return isFinite(e)?e:0},Rw=function(){m.useEffect(function(){return document.body.setAttribute(qs,(xd()+1).toString()),function(){var e=xd()-1;e<=0?document.body.removeAttribute(qs):document.body.setAttribute(qs,e.toString())}},[])},Aw=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;Rw();var i=m.useMemo(function(){return Ew(r)},[r]);return m.createElement(Cw,{styles:Tw(i,!t,r,n?"":"!important")})},gl=!1;if(typeof window<"u")try{var qi=Object.defineProperty({},"passive",{get:function(){return gl=!0,!0}});window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{gl=!1}var Ds=gl?{passive:!1}:!1,Nw=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&&!Nw(e)&&n[t]==="visible")},Pw=function(e){return Rp(e,"overflowY")},kw=function(e){return Rp(e,"overflowX")},bd=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=Ap(e,s);if(r){var i=Np(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},jw=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},Ow=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Ap=function(e,t){return e==="v"?Pw(t):kw(t)},Np=function(e,t){return e==="v"?jw(t):Ow(t)},Mw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dw=function(e,t,n,s,r){var i=Mw(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,h=0;do{var y=Np(e,a),g=y[0],p=y[1],v=y[2],x=p-v-i*g;(g||x)&&Ap(e,a)&&(d+=x,h+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(c=!0),c},Zi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wd=function(e){return[e.deltaX,e.deltaY]},Sd=function(e){return e&&"current"in e?e.current:e},Lw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Iw=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Fw=0,Ls=[];function Vw(e){var t=m.useRef([]),n=m.useRef([0,0]),s=m.useRef(),r=m.useState(Fw++)[0],i=m.useState(Tp)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=ow([e.lockRef.current],(e.shards||[]).map(Sd),!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=m.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var x=Zi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-x[0],_="deltaY"in p?p.deltaY:b[1]-x[1],S,T=p.target,R=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&R==="h"&&T.type==="range")return!1;var A=bd(R,T);if(!A)return!0;if(A?S=R:(S=R==="v"?"h":"v",A=bd(R,T)),!A)return!1;if(!s.current&&"changedTouches"in p&&(w||_)&&(s.current=S),!S)return!0;var P=s.current||S;return Dw(P,v,p,P==="h"?w:_)},[]),l=m.useCallback(function(p){var v=p;if(!(!Ls.length||Ls[Ls.length-1]!==i)){var x="deltaY"in v?wd(v):Zi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Lw(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Sd).filter(Boolean).filter(function(S){return S.contains(v.target)}),_=w.length>0?a(v,w[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),c=m.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Bw(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=m.useCallback(function(p){n.current=Zi(p),s.current=void 0},[]),d=m.useCallback(function(p){c(p.type,wd(p),p.target,a(p,e.lockRef.current))},[]),h=m.useCallback(function(p){c(p.type,Zi(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Ls.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ds),document.addEventListener("touchmove",l,Ds),document.addEventListener("touchstart",u,Ds),function(){Ls=Ls.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Ds),document.removeEventListener("touchmove",l,Ds),document.removeEventListener("touchstart",u,Ds)}},[]);var y=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:Iw(r)}):null,y?m.createElement(Aw,{gapMode:e.gapMode}):null)}function Bw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $w=mw(Cp,Vw);var Sc=m.forwardRef(function(e,t){return m.createElement(qo,en({},e,{ref:t,sideCar:$w}))});Sc.classNames=qo.classNames;var zw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Is=new WeakMap,Ki=new WeakMap,Gi={},Aa=0,Pp=function(e){return e&&(e.host||Pp(e.parentNode))},Uw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Pp(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})},Ww=function(e,t,n,s){var r=Uw(t,Array.isArray(e)?e:[e]);Gi[n]||(Gi[n]=new WeakMap);var i=Gi[n],o=[],a=new Set,l=new Set(r),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};r.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(s),g=y!==null&&y!=="false",p=(Is.get(h)||0)+1,v=(i.get(h)||0)+1;Is.set(h,p),i.set(h,v),o.push(h),p===1&&g&&Ki.set(h,!0),v===1&&h.setAttribute(n,"true"),g||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=Is.get(d)-1,y=i.get(d)-1;Is.set(d,h),i.set(d,y),h||(Ki.has(d)||d.removeAttribute(s),Ki.delete(d)),y||d.removeAttribute(n)}),Aa--,Aa||(Is=new WeakMap,Is=new WeakMap,Ki=new WeakMap,Gi={})}},kp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=zw(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),Ww(s,r,n,"aria-hidden")):function(){return null}},_c="Dialog",[jp,PO]=vc(_c),[Hw,Ht]=jp(_c),Op=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=m.useRef(null),l=m.useRef(null),[c=!1,u]=yp({prop:s,defaultProp:r,onChange:i});return f.jsx(Hw,{scope:t,triggerRef:a,contentRef:l,contentId:so(),titleId:so(),descriptionId:so(),open:c,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Op.displayName=_c;var Mp="DialogTrigger",Dp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Mp,n),i=Wt(t,r.triggerRef);return f.jsx(ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Tc(r.open),...s,ref:i,onClick:xt(e.onClick,r.onOpenToggle)})});Dp.displayName=Mp;var Ec="DialogPortal",[qw,Lp]=jp(Ec,{forceMount:void 0}),Ip=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Ht(Ec,t);return f.jsx(qw,{scope:t,forceMount:n,children:m.Children.map(s,o=>f.jsx(vr,{present:n||i.open,children:f.jsx(wc,{asChild:!0,container:r,children:o})}))})};Ip.displayName=Ec;var yo="DialogOverlay",Fp=m.forwardRef((e,t)=>{const n=Lp(yo,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ht(yo,e.__scopeDialog);return i.modal?f.jsx(vr,{present:s||i.open,children:f.jsx(Zw,{...r,ref:t})}):null});Fp.displayName=yo;var Zw=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(yo,n);return f.jsx(Sc,{as:yr,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(ut.div,{"data-state":Tc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Es="DialogContent",Vp=m.forwardRef((e,t)=>{const n=Lp(Es,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ht(Es,e.__scopeDialog);return f.jsx(vr,{present:s||i.open,children:i.modal?f.jsx(Kw,{...r,ref:t}):f.jsx(Gw,{...r,ref:t})})});Vp.displayName=Es;var Kw=m.forwardRef((e,t)=>{const n=Ht(Es,e.__scopeDialog),s=m.useRef(null),r=Wt(t,n.contentRef,s);return m.useEffect(()=>{const i=s.current;if(i)return kp(i)},[]),f.jsx(Bp,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:xt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:xt(e.onFocusOutside,i=>i.preventDefault())})}),Gw=m.forwardRef((e,t)=>{const n=Ht(Es,e.__scopeDialog),s=m.useRef(!1),r=m.useRef(!1);return f.jsx(Bp,{...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 l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Bp=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Ht(Es,n),l=m.useRef(null),c=Wt(t,l);return Sp(),f.jsxs(f.Fragment,{children:[f.jsx(bc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(xc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Tc(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Xw,{titleId:a.titleId}),f.jsx(Qw,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Cc="DialogTitle",$p=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Cc,n);return f.jsx(ut.h2,{id:r.titleId,...s,ref:t})});$p.displayName=Cc;var zp="DialogDescription",Up=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(zp,n);return f.jsx(ut.p,{id:r.descriptionId,...s,ref:t})});Up.displayName=zp;var Wp="DialogClose",Hp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Wp,n);return f.jsx(ut.button,{type:"button",...s,ref:t,onClick:xt(e.onClick,()=>r.onOpenChange(!1))})});Hp.displayName=Wp;function Tc(e){return e?"open":"closed"}var qp="DialogTitleWarning",[kO,Zp]=Rb(qp,{contentName:Es,titleName:Cc,docsSlug:"dialog"}),Xw=({titleId:e})=>{const t=Zp(qp),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 m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Yw="DialogDescriptionWarning",Qw=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zp(Yw).contentName}}.`;return m.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},Kp=Op,Gp=Dp,Xp=Ip,Zo=Fp,Ko=Vp,Go=$p,Xo=Up,Rc=Hp;function Yp(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,Ed=Qp,Yo=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Ed(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const h=_d(u)||_d(d);return r[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...c,d,h]:c},[]);return Ed(e,o,l,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 Jw=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();/** + * @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 e0={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 t0=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},l)=>m.createElement("svg",{ref:l,...e0,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Jp("lucide",r),...a},[...o.map(([c,u])=>m.createElement(c,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 Ct=(e,t)=>{const n=m.forwardRef(({className:s,...r},i)=>m.createElement(t0,{ref:i,iconNode:t,className:Jp(`lucide-${Jw(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 n0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],s0=Ct("ArrowRight",n0);/** + * @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 r0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],i0=Ct("ArrowUpRight",r0);/** + * @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 o0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],a0=Ct("ChevronDown",o0);/** + * @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 l0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yl=Ct("ChevronLeft",l0);/** + * @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 c0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],em=Ct("ChevronRight",c0);/** + * @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 u0=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],d0=Ct("Facebook",u0);/** + * @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 f0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tm=Ct("LoaderCircle",f0);/** + * @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 h0=[["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"}]],jO=Ct("Loader",h0);/** + * @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 p0=[["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"}]],m0=Ct("MapPin",p0);/** + * @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 g0=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],OO=Ct("Play",g0);/** + * @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 y0=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],v0=Ct("Smartphone",y0);/** + * @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 x0=[["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"}]],b0=Ct("Upload",x0);/** + * @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 w0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ac=Ct("X",w0),Nc="-",S0=e=>{const t=E0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Nc);return a[0]===""&&a.length!==1&&a.shift(),nm(a,t)||_0(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&s[o]?[...l,...s[o]]:l}}},nm=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?nm(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Nc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Cd=/^\[(.+)\]$/,_0=e=>{if(Cd.test(e)){const t=Cd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},E0=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return T0(Object.entries(e.classGroups),n).forEach(([i,o])=>{vl(o,s,i,t)}),s},vl=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Td(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(C0(r)){vl(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{vl(o,Td(t,i),n,s)})})},Td=(e,t)=>{let n=e;return t.split(Nc).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},C0=e=>e.isThemeGetter,T0=(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,R0=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)}}},sm="!",A0=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let v=0;vu?d-u:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},N0=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},P0=e=>({cache:R0(e.cacheSize),parseClassName:A0(e),...S0(e)}),k0=/\s+/,j0=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(k0);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:y}=n(c);let g=!!y,p=s(g?h.substring(0,y):h);if(!p){if(!g){a=c+(a.length>0?" "+a:a);continue}if(p=s(h),!p){a=c+(a.length>0?" "+a:a);continue}g=!1}const v=N0(u).join(":"),x=d?v+sm:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=r(p,g);for(let _=0;_0?" "+a:a)}return a};function O0(){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=P0(c),s=n.cache.get,r=n.cache.set,i=a,a(l)}function a(l){const c=s(l);if(c)return c;const u=j0(l,n);return r(l,u),u}return function(){return i(O0.apply(null,arguments))}}const Re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},im=/^\[(?:([a-z-]+):)?(.+)\]$/i,D0=/^\d+\/\d+$/,L0=new Set(["px","full","screen"]),I0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F0=/\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$/,V0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,B0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>Zs(e)||L0.has(e)||D0.test(e),An=e=>xr(e,"length",G0),Zs=e=>!!e&&!Number.isNaN(Number(e)),Na=e=>xr(e,"number",Zs),Nr=e=>!!e&&Number.isInteger(Number(e)),z0=e=>e.endsWith("%")&&Zs(e.slice(0,-1)),ce=e=>im.test(e),Nn=e=>I0.test(e),U0=new Set(["length","size","percentage"]),W0=e=>xr(e,U0,om),H0=e=>xr(e,"position",om),q0=new Set(["image","url"]),Z0=e=>xr(e,q0,Y0),K0=e=>xr(e,"",X0),Pr=()=>!0,xr=(e,t,n)=>{const s=im.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},G0=e=>F0.test(e)&&!V0.test(e),om=()=>!1,X0=e=>B0.test(e),Y0=e=>$0.test(e),Q0=()=>{const e=Re("colors"),t=Re("spacing"),n=Re("blur"),s=Re("brightness"),r=Re("borderColor"),i=Re("borderRadius"),o=Re("borderSpacing"),a=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),u=Re("hueRotate"),d=Re("invert"),h=Re("gap"),y=Re("gradientColorStops"),g=Re("gradientColorStopPositions"),p=Re("inset"),v=Re("margin"),x=Re("opacity"),b=Re("padding"),w=Re("saturate"),_=Re("scale"),S=Re("sepia"),T=Re("skew"),R=Re("space"),A=Re("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],M=()=>[ce,t],z=()=>["",hn,An],F=()=>["auto",Zs,ce],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",ce],he=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>[Zs,ce];return{cacheSize:500,separator:":",theme:{colors:[Pr],spacing:[hn,An],blur:["none","",Nn,ce],brightness:ve(),borderColor:[e],borderRadius:["none","","full",Nn,ce],borderSpacing:M(),borderWidth:z(),contrast:ve(),grayscale:ie(),hueRotate:ve(),invert:ie(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[z0,An],inset:L(),margin:L(),opacity:ve(),padding:M(),saturate:ve(),scale:ve(),sepia:ie(),skew:ve(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":he()}],"break-before":[{"break-before":he()}],"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:[...Y(),ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],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",Nr,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:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",Nr,ce]}],"grid-cols":[{"grid-cols":[Pr]}],"col-start-end":[{col:["auto",{span:["full",Nr,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Pr]}],"row-start-end":[{row:["auto",{span:[Nr,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",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"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:[Nn]},Nn]}],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",Nn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Na]}],"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,Na]}],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:[...J(),"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:M()}],"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:[...Y(),H0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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:[...J(),"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:J()}],"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:["",...J()]}],"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",Nn,K0]}],"shadow-color":[{shadow:[Pr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nn,ce]}],grayscale:[{grayscale:[c]}],"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":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"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:ve()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ve()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Nr,ce]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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,Na]}],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"]}}},J0=M0(Q0);function V(...e){return J0(Qp(e))}const eS=Kp,tS=Gp,nS=Rc,sS=Xp,am=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{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}));am.displayName=Zo.displayName;const rS=Yo("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"}}),lm=m.forwardRef(({side:e="right",className:t,children:n,...s},r)=>f.jsxs(sS,{children:[f.jsx(am,{}),f.jsxs(Ko,{ref:r,className:V(rS({side:e}),t),...s,children:[f.jsxs(Rc,{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(Ac,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));lm.displayName=Ko.displayName;const cm=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});cm.displayName="SheetHeader";const iS=m.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));iS.displayName=Go.displayName;const oS=m.forwardRef(({className:e,...t},n)=>f.jsx(Xo,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));oS.displayName=Xo.displayName;const aS=Yo("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 hover:bg-primary hover:text-white duration-300",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"}}),nt=m.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const l=i?yr:"button";return f.jsx(l,{className:V(aS({variant:t,size:n,className:e})),ref:a,...o,children:s?f.jsx(tm,{className:"w-5 h-5 animate-spin"}):r})});nt.displayName="Button";const lS=(e,t,n,s)=>{var i,o,a,l;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);xs(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(l=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&l.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Rd={},xl=(e,t,n,s)=>{xs(n)&&Rd[n]||(xs(n)&&(Rd[n]=new Date),lS(e,t,n,s))},um=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},bl=(e,t,n)=>{e.loadNamespaces(t,um(e,n))},Ad=(e,t,n,s)=>{if(xs(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return bl(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,um(e,s))},cS=(e,t,n={})=>!t.languages||!t.languages.length?(xl(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}}),xs=e=>typeof e=="string",uS=e=>typeof e=="object"&&e!==null,dS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},hS=e=>fS[e],pS=e=>e.replace(dS,hS);let wl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pS};const mS=(e={})=>{wl={...wl,...e}},gS=()=>wl;let dm;const yS=e=>{dm=e},vS=()=>dm,MO={type:"3rdParty",init(e){mS(e.options.react),yS(e)}},xS=m.createContext();class bS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const wS=(e,t)=>{const n=m.useRef();return m.useEffect(()=>{n.current=e},[e,t]),n.current},fm=(e,t,n,s)=>e.getFixedT(t,n,s),SS=(e,t,n,s)=>m.useCallback(fm(e,t,n,s),[e,t,n,s]),js=(e,t={})=>{var _,S,T,R;const{i18n:n}=t,{i18n:s,defaultNS:r}=m.useContext(xS)||{},i=n||s||vS();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new bS),!i){xl(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const A=(O,L)=>xs(L)?L:uS(L)&&xs(L.defaultValue)?L.defaultValue:Array.isArray(O)?O[O.length-1]:O,P=[A,{},!1];return P.t=A,P.i18n={},P.ready=!1,P}(_=i.options.react)!=null&&_.wait&&xl(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...gS(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let c=e||r||((S=i.options)==null?void 0:S.defaultNS);c=xs(c)?[c]:c||["translation"],(R=(T=i.reportNamespaces).addUsedNamespaces)==null||R.call(T,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(A=>cS(A,i,o)),d=SS(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),h=()=>d,y=()=>fm(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[g,p]=m.useState(h);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const x=wS(v),b=m.useRef(!0);m.useEffect(()=>{const{bindI18n:A,bindI18nStore:P}=o;b.current=!0,!u&&!a&&(t.lng?Ad(i,t.lng,c,()=>{b.current&&p(y)}):bl(i,c,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const O=()=>{b.current&&p(y)};return A&&(i==null||i.on(A,O)),P&&(i==null||i.store.on(P,O)),()=>{b.current=!1,i&&(A==null||A.split(" ").forEach(L=>i.off(L,O))),P&&i&&P.split(" ").forEach(L=>i.store.off(L,O))}},[i,v]),m.useEffect(()=>{b.current&&u&&p(h)},[i,l,u]);const w=[g,i,u];if(w.t=g,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(A=>{t.lng?Ad(i,t.lng,c,()=>A()):bl(i,c,()=>A())})},hm=({className:e})=>f.jsx("div",{className:V("xl:h-14 h-10 w-auto",e),children:f.jsx("img",{src:"/logo.svg",alt:"logo",className:"size-full object-contain"})}),pm=({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})]}),_S=({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})]}),ES=({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(_e,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:f.jsxs(nt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(i0,{})]})})]})]}),mm=({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})]}),CS=({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})]})]}),Pc=m.createContext({});function kc(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=m.createContext(null),jc=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class TS extends m.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 RS({children:e,isPresent:t,anchorX:n}){const s=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(jc);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!r.current||!a||!l)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; + height: ${l}px !important; + ${h}px !important; + top: ${c}px !important; + } + `),()=>{document.head.removeChild(y)}},[t]),f.jsx(TS,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const AS=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=kc(NS),c=m.useId(),u=m.useCallback(h=>{l.set(h,!0);for(const y of l.values())if(!y)return;s&&s()},[l,s]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((h,y)=>l.set(y,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),o==="popLayout"&&(e=f.jsx(RS,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function NS(){return new Map}function gm(e=!0){const t=m.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=m.useId();m.useEffect(()=>{e&&r(i)},[e]);const o=m.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Xi=e=>e.key||"";function Nd(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Oc=typeof window<"u",ym=Oc?m.useLayoutEffect:m.useEffect,DO=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=gm(o),u=m.useMemo(()=>Nd(e),[e]),d=o&&!l?[]:u.map(Xi),h=m.useRef(!0),y=m.useRef(u),g=kc(()=>new Map),[p,v]=m.useState(u),[x,b]=m.useState(u);ym(()=>{h.current=!1,y.current=u;for(let S=0;S{const T=Xi(S),R=o&&!l?!1:u===x||d.includes(T),A=()=>{if(g.has(T))g.set(T,!0);else return;let P=!0;g.forEach(O=>{O||(P=!1)}),P&&(_==null||_(),b(y.current),o&&(c==null||c()),s&&s())};return f.jsx(AS,{isPresent:R,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,onExitComplete:R?void 0:A,anchorX:a,children:S},T)})})},bt=e=>e;let vm=bt;const PS={useManualTiming:!1},Yi=["read","resolveKeyframes","update","preRender","render","postRender"],Pd={value:null};function kS(e,t){let n=new Set,s=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,h=!1,y=!1)=>{const p=y&&r?n:s;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{s.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[n,s]=[s,n],n.forEach(c),t&&Pd.value&&Pd.value.frameloop[t].push(l),l=0,n.clear(),r=!1,i&&(i=!1,u.process(d))}};return u}const jS=40;function xm(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Yi.reduce((x,b)=>(x[b]=kS(i,t?b:void 0),x),{}),{read:a,resolveKeyframes:l,update:c,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,jS),1),r.timestamp=x,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(y))},g=()=>{n=!0,s=!0,r.isProcessing||e(y)};return{schedule:Yi.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,T=!1)=>(n||g(),w.schedule(_,S,T)),x},{}),cancel:x=>{for(let b=0;bkd[e].some(n=>!!t[n])};function OS(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const MS=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 vo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MS.has(e)}let wm=e=>!vo(e);function DS(e){e&&(wm=t=>t.startsWith("on")?!vo(t):e(t))}try{DS(require("@emotion/is-prop-valid").default)}catch{}function LS(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(wm(r)||n===!0&&vo(r)||!t&&!vo(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function IS(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 Jo=m.createContext({});function ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Yr(e){return typeof e=="string"||Array.isArray(e)}const Mc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dc=["initial",...Mc];function ta(e){return ea(e.animate)||Dc.some(t=>Yr(e[t]))}function Sm(e){return!!(ta(e)||e.variants)}function FS(e,t){if(ta(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Yr(n)?n:void 0,animate:Yr(s)?s:void 0}}return e.inherit!==!1?t:{}}function VS(e){const{initial:t,animate:n}=FS(e,m.useContext(Jo));return m.useMemo(()=>({initial:t,animate:n}),[jd(t),jd(n)])}function jd(e){return Array.isArray(e)?e.join(" "):e}const BS=Symbol.for("motionComponentSymbol");function Bs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $S(e,t,n){return m.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Bs(n)&&(n.current=s))},[t])}const Lc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zS="framerAppearId",_m="data-"+Lc(zS),{schedule:Ic}=xm(queueMicrotask,!1),Em=m.createContext({});function US(e,t,n,s,r){var i,o;const{visualElement:a}=m.useContext(Jo),l=m.useContext(bm),c=m.useContext(Qo),u=m.useContext(jc).reducedMotion,d=m.useRef(null);s=s||l.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=m.useContext(Em);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&WS(d.current,n,r,y);const g=m.useRef(!1);m.useInsertionEffect(()=>{h&&g.current&&h.update(n,c)});const p=n[_m],v=m.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 ym(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ic.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),m.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 WS(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cm(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Bs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}function Cm(e){if(e)return e.options.allowProjection!==!1?e.projection:Cm(e.parent)}function HS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&OS(e);function a(c,u){let d;const h={...m.useContext(jc),...c,layoutId:qS(c)},{isStatic:y}=h,g=VS(c),p=s(c,y);if(!y&&Oc){ZS();const v=KS(h);d=v.MeasureLayout,g.visualElement=US(r,p,h,t,v.ProjectionNode)}return f.jsxs(Jo.Provider,{value:g,children:[d&&g.visualElement?f.jsx(d,{visualElement:g.visualElement,...h}):null,n(r,c,$S(p,g.visualElement,u),p,y,g.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 l=m.forwardRef(a);return l[BS]=r,l}function qS({layoutId:e}){const t=m.useContext(Pc).id;return t&&e!==void 0?t+"-"+e:e}function ZS(e,t){m.useContext(bm).strict}function KS(e){const{drag:t,layout:n}=lr;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 Tm=e=>t=>typeof t=="string"&&t.startsWith(e),Fc=Tm("--"),GS=Tm("var(--"),Vc=e=>GS(e)?XS.test(e.split("/*")[0].trim()):!1,XS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qr={};function YS(e){for(const t in e)Qr[t]=e[t],Fc(t)&&(Qr[t].isCSSVariable=!0)}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Os=new Set(br);function Rm(e,{layout:t,layoutId:n}){return Os.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qr[e]||e==="opacity")}const tt=e=>!!(e&&e.getVelocity),Am=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Sn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Jr={...wr,transform:e=>Sn(0,1,e)},Qi={...wr,default:1},Ni=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),On=Ni("deg"),sn=Ni("%"),ne=Ni("px"),QS=Ni("vh"),JS=Ni("vw"),Od={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},e_={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},t_={rotate:On,rotateX:On,rotateY:On,rotateZ:On,scale:Qi,scaleX:Qi,scaleY:Qi,scaleZ:Qi,skew:On,skewX:On,skewY:On,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Jr,originX:Od,originY:Od,originZ:ne},Md={...wr,transform:Math.round},Bc={...e_,...t_,zIndex:Md,size:ne,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:Md},n_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s_=br.length;function r_(e,t,n){let s="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function Nm(e,t,n){for(const s in t)!tt(t[s])&&!Rm(s,n)&&(e[s]=t[s])}function i_({transformTemplate:e},t){return m.useMemo(()=>{const n=zc();return $c(n,t,e),Object.assign({},n.vars,n.style)},[t])}function o_(e,t){const n=e.style||{},s={};return Nm(s,n,e),Object.assign(s,i_(e,t)),s}function a_(e,t){const n={},s=o_(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}const l_=["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 Uc(e){return typeof e!="string"||e.includes("-")?!1:!!(l_.indexOf(e)>-1||/[A-Z]/u.test(e))}const c_={offset:"stroke-dashoffset",array:"stroke-dasharray"},u_={offset:"strokeDashoffset",array:"strokeDasharray"};function d_(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?c_:u_;e[i.offset]=ne.transform(-s);const o=ne.transform(t),a=ne.transform(n);e[i.array]=`${o} ${a}`}function Dd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function f_(e,t,n){const s=Dd(t,e.x,e.width),r=Dd(n,e.y,e.height);return`${s} ${r}`}function Wc(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if($c(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:g}=e;h.transform&&(g&&(y.transform=h.transform),delete h.transform),g&&(r!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=f_(g,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),o!==void 0&&d_(h,o,a,l,!1)}const Pm=()=>({...zc(),attrs:{}}),Hc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h_(e,t,n,s){const r=m.useMemo(()=>{const i=Pm();return Wc(i,t,Hc(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Nm(i,e.style,e),r.style={...i,...r.style}}return r}function p_(e=!1){return(n,s,r,{latestValues:i},o)=>{const l=(Uc(n)?h_:a_)(s,i,o,n),c=LS(s,typeof n=="string",e),u=n!==m.Fragment?{...c,...l,ref:r}:{},{children:d}=s,h=m.useMemo(()=>tt(d)?d.get():d,[d]);return m.createElement(n,{...u,children:h})}}function Ld(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function qc(e,t,n,s){if(typeof t=="function"){const[r,i]=Ld(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]=Ld(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Sl=e=>Array.isArray(e),m_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),g_=e=>Sl(e)?e[e.length-1]||0:e;function oo(e){const t=tt(e)?e.get():e;return m_(t)?t.toValue():t}function y_({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:v_(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const km=e=>(t,n)=>{const s=m.useContext(Jo),r=m.useContext(Qo),i=()=>y_(e,t,s,r);return n?i():kc(i)};function v_(e,t,n,s){const r={},i=s(e,{});for(const h in i)r[h]=oo(i[h]);let{initial:o,animate:a}=e;const l=ta(e),c=Sm(e);t&&c&&!l&&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"&&!ea(d)){const h=Array.isArray(d)?d:[d];for(let y=0;y{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Os.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{jm(n,s),Te.render(()=>{Wc(s,r,Hc(n.tagName),e.transformTemplate),Dm(n,s)})})}})};function w_(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Uc(s)?b_:x_,preloadedFeatures:e,useRender:p_(r),createVisualElement:t,Component:s};return HS(o)}}function ei(e,t,n){const s=e.getProps();return qc(s,t,n!==void 0?n:s.custom,e)}function Kc(e,t){return e?e[t]||e.default||e:void 0}const Im=new Set(["width","height","top","left","right","bottom",...br]);let ao;function S_(){ao=void 0}const rn={now:()=>(ao===void 0&&rn.set(qe.isProcessing||PS.useManualTiming?qe.timestamp:performance.now()),ao),set:e=>{ao=e,queueMicrotask(S_)}};function Gc(e,t){e.indexOf(t)===-1&&e.push(t)}function Xc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yc{constructor(){this.subscriptions=[]}add(t){return Gc(this.subscriptions,t),()=>Xc(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 E_{constructor(t,n={}){this.version="12.4.1",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=__(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 Yc);const s=this.events[t].add(n);return t==="change"?()=>{s(),Te.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>Fd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fd);return Fm(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 ti(e,t){return new E_(e,t)}function C_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ti(n))}function T_(e,t){const n=ei(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=g_(i[o]);C_(e,o,a)}}function R_(e){return!!(tt(e)&&e.add)}function _l(e,t){const n=e.getValue("willChange");if(R_(n))return n.add(t)}function Vm(e){return e.props[_m]}function Qc(e){let t;return()=>(t===void 0&&(t=e()),t)}const A_=Qc(()=>window.ScrollTimeline!==void 0);class N_{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(A_()&&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 P_ extends N_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const bn=e=>e*1e3,wn=e=>e/1e3;function Jc(e){return typeof e=="function"}function Vd(e,t){e.timeline=t,e.onfinish=null}const eu=e=>Array.isArray(e)&&typeof e[0]=="number",k_={linearEasing:void 0};function j_(e,t){const n=Qc(e);return()=>{var s;return(s=k_[t])!==null&&s!==void 0?s:n()}}const xo=j_(()=>{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},Bm=(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})`,El={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lr([0,.65,.55,1]),circOut:Lr([.55,0,1,.45]),backIn:Lr([.31,.01,.66,-.59]),backOut:Lr([.33,1.53,.69,.99])};function zm(e,t){if(e)return typeof e=="function"&&xo()?Bm(e,t):eu(e)?Lr(e):Array.isArray(e)?e.map(n=>zm(n,t)||El.easeOut):El[e]}const Um=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,O_=1e-7,M_=12;function D_(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Um(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>O_&&++aD_(i,0,1,e,n);return i=>i===0||i===1?i:Um(r(i),t,s)}const Wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hm=e=>t=>1-e(1-t),qm=Pi(.33,1.53,.69,.99),tu=Hm(qm),Zm=Wm(tu),Km=e=>(e*=2)<1?.5*tu(e):.5*(2-Math.pow(2,-10*(e-1))),nu=e=>1-Math.sin(Math.acos(e)),Gm=Hm(nu),Xm=Wm(nu),Ym=e=>/^0[^.\s]+$/u.test(e);function L_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ym(e):!0}const $r=e=>Math.round(e*1e5)/1e5,su=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function I_(e){return e==null}const F_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ru=(e,t)=>n=>!!(typeof n=="string"&&F_.test(n)&&n.startsWith(e)||t&&!I_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Qm=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(su);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},V_=e=>Sn(0,255,e),ka={...wr,transform:e=>Math.round(V_(e))},as={test:ru("rgb","red"),parse:Qm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ka.transform(e)+", "+ka.transform(t)+", "+ka.transform(n)+", "+$r(Jr.transform(s))+")"};function B_(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 Cl={test:ru("#"),parse:B_,transform:as.transform},$s={test:ru("hsl","hue"),parse:Qm("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(Jr.transform(s))+")"},Je={test:e=>as.test(e)||Cl.test(e)||$s.test(e),parse:e=>as.test(e)?as.parse(e):$s.test(e)?$s.parse(e):Cl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?as.transform(e):$s.transform(e)},$_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function z_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(su))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($_))===null||n===void 0?void 0:n.length)||0)>0}const Jm="number",eg="color",U_="var",W_="var(",Bd="${}",H_=/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 ni(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(H_,l=>(Je.test(l)?(s.color.push(i),r.push(eg),n.push(Je.parse(l))):l.startsWith(W_)?(s.var.push(i),r.push(U_),n.push(l)):(s.number.push(i),r.push(Jm),n.push(parseFloat(l))),++i,Bd)).split(Bd);return{values:n,split:a,indexes:s,types:r}}function tg(e){return ni(e).values}function ng(e){const{split:t,types:n}=ni(e),s=t.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:e;function Z_(e){const t=tg(e);return ng(e)(t.map(q_))}const Hn={test:z_,parse:tg,createTransformer:ng,getAnimatableNone:Z_},K_=new Set(["brightness","contrast","saturate","opacity"]);function G_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(su)||[];if(!s)return e;const r=n.replace(s,"");let i=K_.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const X_=/\b([a-z-]*)\(.*?\)/gu,Tl={...Hn,getAnimatableNone:e=>{const t=e.match(X_);return t?t.map(G_).join(" "):e}},Y_={...Bc,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Tl,WebkitFilter:Tl},iu=e=>Y_[e];function sg(e,t){let n=iu(e);return n!==Tl&&(n=Hn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Q_=new Set(["auto","none","0"]);function J_(e,t,n){let s=0,r;for(;se===wr||e===ne,zd=(e,t)=>parseFloat(e.split(", ")[t]),Ud=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return zd(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?zd(i[1],e):0}},eE=new Set(["x","y","z"]),tE=br.filter(e=>!eE.has(e));function nE(e){const t=[];return tE.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const ur={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:Ud(4,13),y:Ud(5,14)};ur.translateX=ur.x;ur.translateY=ur.y;const bs=new Set;let Rl=!1,Al=!1;function rg(){if(Al){const e=Array.from(bs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=nE(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)})}Al=!1,Rl=!1,bs.forEach(e=>e.complete()),bs.clear()}function ig(){bs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Al=!0)})}function sE(){ig(),rg()}class ou{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?(bs.add(this),Rl||(Rl=!0,Te.read(ig),Te.resolveKeyframes(rg))):(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),rE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iE(e){const t=rE.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function ag(e,t,n=1){const[s,r]=iE(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return og(o)?parseFloat(o):o}return Vc(r)?ag(r,t,n+1):r}const lg=e=>t=>t.test(e),oE={test:e=>e==="auto",parse:e=>e},cg=[wr,ne,sn,On,JS,QS,oE],Wd=e=>cg.find(lg(e));class ug extends ou{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 l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Hd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hn.test(e)||e==="0")&&!e.startsWith("url("));function aE(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(cE),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const uE=40;class dg{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>uE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&sE(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!lE(t,s,r,i))if(o)this.options.duration=0;else{l&&l(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 Nl=2e4;function fg(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=Nl?1/0:t}const Ne=(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 dE({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,l=2*n-a;r=ja(l,a,e+1/3),i=ja(l,a,e),o=ja(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function bo(e,t){return n=>n>0?t:e}const Oa=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},fE=[Cl,as,$s],hE=e=>fE.find(t=>t.test(e));function qd(e){const t=hE(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=dE(n)),n}const Zd=(e,t)=>{const n=qd(e),s=qd(t);if(!n||!s)return bo(e,t);const r={...n};return i=>(r.red=Oa(n.red,s.red,i),r.green=Oa(n.green,s.green,i),r.blue=Oa(n.blue,s.blue,i),r.alpha=Ne(n.alpha,s.alpha,i),as.transform(r))},pE=(e,t)=>n=>t(e(n)),ki=(...e)=>e.reduce(pE),Pl=new Set(["none","hidden"]);function mE(e,t){return Pl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gE(e,t){return n=>Ne(e,t,n)}function au(e){return typeof e=="number"?gE:typeof e=="string"?Vc(e)?bo:Je.test(e)?Zd:xE:Array.isArray(e)?hg:typeof e=="object"?Je.test(e)?Zd:yE:bo}function hg(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>au(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function vE(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Hn.createTransformer(t),s=ni(e),r=ni(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?Pl.has(e)&&!r.values.length||Pl.has(t)&&!s.values.length?mE(e,t):ki(hg(vE(s,r),r.values),n):bo(e,t)};function pg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ne(e,t,n):au(e)(e,t)}const bE=5;function mg(e,t,n){const s=Math.max(t-bE,0);return Fm(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},Kd=.001;function wE({duration:e=je.duration,bounce:t=je.bounce,velocity:n=je.velocity,mass:s=je.mass}){let r,i,o=1-t;o=Sn(je.minDamping,je.maxDamping,o),e=Sn(je.minDuration,je.maxDuration,wn(e)),o<1?(r=c=>{const u=c*o,d=u*e,h=u-n,y=kl(c,o),g=Math.exp(-d);return Kd-h/y*g},i=c=>{const d=c*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),p=kl(Math.pow(c,2),o);return(-r(c)+Kd>0?-1:1)*((h-y)*g)/p}):(r=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=_E(r,i,a);if(e=bn(e),isNaN(l))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const SE=12;function _E(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function TE(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!Gd(e,CE)&&Gd(e,EE))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*Sn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:je.mass,stiffness:r,damping:i}}else{const n=wE(e);t={...t,...n,mass:je.mass},t.isResolvedFromDuration=!0}return t}function gg(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:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:y}=TE({...n,velocity:-wn(n.velocity||0)}),g=h||0,p=c/(2*Math.sqrt(l*u)),v=o-i,x=wn(Math.sqrt(l/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=kl(x,p);w=T=>{const R=Math.exp(-p*x*T);return o-R*((g+p*x*v)/S*Math.sin(S*T)+v*Math.cos(S*T))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(g+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=T=>{const R=Math.exp(-p*x*T),A=Math.min(S*T,300);return o-R*((g+p*x*v)*Math.sinh(A)+S*v*Math.cosh(A))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const T=w(S);if(y)a.done=S>=d;else{let R=0;p<1&&(R=S===0?bn(g):mg(w,S,T));const A=Math.abs(R)<=s,P=Math.abs(o-T)<=r;a.done=A&&P}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(fg(_),Nl),T=Bm(R=>_.next(S*R).value,S,30);return S+"ms "+T}};return _}function Xd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=A=>a!==void 0&&Al,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)-p*Math.exp(-A/s),w=A=>x+b(A),_=A=>{const P=b(A),O=w(A);h.done=Math.abs(P)<=c,h.value=h.done?x:O};let S,T;const R=A=>{y(h.value)&&(S=A,T=gg({keyframes:[h.value,g(h.value)],velocity:mg(w,A,h.value),damping:r,stiffness:i,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:A=>{let P=!1;return!T&&S===void 0&&(P=!0,_(A),R(A)),S!==void 0&&A>=S?T.next(A-S):(!P&&_(A),h)}}}const RE=Pi(.42,0,1,1),AE=Pi(0,0,.58,1),yg=Pi(.42,0,.58,1),NE=e=>Array.isArray(e)&&typeof e[0]!="number",PE={linear:bt,easeIn:RE,easeInOut:yg,easeOut:AE,circIn:nu,circInOut:Xm,circOut:Gm,backIn:tu,backInOut:Zm,backOut:qm,anticipate:Km},Yd=e=>{if(eu(e)){vm(e.length===4);const[t,n,s,r]=e;return Pi(t,n,s,r)}else if(typeof e=="string")return PE[e];return e};function kE(e,t,n){const s=[],r=n||pg,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=kE(t,s,r),l=a.length,c=u=>{if(o&&u1)for(;dc(Sn(e[0],e[i-1],u)):c}function OE(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=cr(0,t,s);e.push(Ne(n,1,r))}}function ME(e){const t=[0];return OE(t,e.length-1),t}function DE(e,t){return e.map(n=>n*t)}function LE(e,t){return e.map(()=>t||yg).splice(0,e.length-1)}function wo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=NE(s)?s.map(Yd):Yd(s),i={done:!1,value:t[0]},o=DE(n&&n.length===t.length?n:ME(t),e),a=jE(o,t,{ease:Array.isArray(r)?r:LE(t,r)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const IE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Wn(t),now:()=>qe.isProcessing?qe.timestamp:rn.now()}},FE={decay:Xd,inertia:Xd,tween:wo,keyframes:wo,spring:gg},VE=e=>e/100;class lu extends dg{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:l}=this.options;l&&l()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||ou,a=(l,c)=>this.onKeyframesResolved(l,c);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=Jc(n)?n:FE[n]||wo;let l,c;a!==wo&&typeof t[0]!="number"&&(l=ki(VE,pg(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=fg(u));const{calculatedDuration:d}=u,h=d+r,y=h*(s+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,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:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:g,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 A=Math.min(this.currentTime,u)/d;let P=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&P--,P=Math.min(P,y+1),!!(P%2)&&(g==="reverse"?(O=1-O,p&&(O-=p/d)):g==="mirror"&&(_=o)),w=Sn(0,1,O)*d}const S=b?{done:!1,value:l[0]}:_.next(w);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return R&&r!==void 0&&(S.value=na(l,this.options,r)),v&&v(S.value),R&&this.finish(),S}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=bn(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=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=IE,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 BE=new Set(["opacity","clipPath","filter","transform"]);function $E(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=zm(a,r);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const zE=Qc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),So=10,UE=2e4;function WE(e){return Jc(e.type)||e.type==="spring"||!$m(e.ease)}function HE(e,t){const n=new lu({...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:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&xo()&&qE(i)&&(i=vg[i]),WE(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:g,...p}=this.options,v=HE(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=$E(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Vd(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 wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=bn(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 bt;const{animation:s}=n;Vd(s,t)}return bt}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:c,onUpdate:u,onComplete:d,element:h,...y}=this.options,g=new lu({...y,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=bn(this.time);c.setWithVelocity(g.sample(p-So).value,g.sample(p).value,So)}const{onStop:l}=this.options;l&&l(),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:l,transformTemplate:c}=n.owner.getProps();return zE()&&s&&BE.has(s)&&!l&&!c&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const ZE={type:"spring",stiffness:500,damping:25,restSpeed:10},KE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GE={type:"keyframes",duration:.8},XE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YE=(e,{keyframes:t})=>t.length>2?GE:Os.has(e)?e.startsWith("scale")?KE(t[1]):ZE:XE;function QE({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const cu=(e,t,n,s={},r,i)=>o=>{const a=Kc(s,e)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-bn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,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};QE(a)||(u={...u,...YE(e,u)}),u.duration&&(u.duration=bn(u.duration)),u.repeatDelay&&(u.repeatDelay=bn(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 Te.update(()=>{u.onUpdate(h),u.onComplete()}),new P_([])}return!i&&Qd.supports(u)?new Qd(u):new lu(u)};function JE({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function xg(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;s&&(o=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in l){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||u&&JE(u,d))continue;const g={delay:n,...Kc(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=Vm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Te);b!==null&&(g.startTime=b,p=!0)}}_l(e,d),h.start(cu(d,h,y,e.shouldReduceMotion&&Im.has(d)?{type:!1}:g,e,p));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{Te.update(()=>{a&&T_(e,a)})}),c}function jl(e,t,n={}){var s;const r=ei(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(xg(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return eC(e,t,u+c,d,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function eC(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,l=r===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(e.variantChildren).sort(tC).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(jl(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function tC(e,t){return e.sortNodePosition(t)}function nC(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>jl(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=jl(e,t,n);else{const r=typeof t=="function"?ei(e,t,n.custom):t;s=Promise.all(xg(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function bg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;sPromise.all(t.map(({animation:n,options:s})=>nC(e,n,s)))}function aC(e){let t=oC(e),n=Jd(),s=!0;const r=l=>(c,u)=>{var d;const h=ei(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:g,...p}=h;c={...c,...p,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=wg(e.parent)||{},d=[],h=new Set;let y={},g=1/0;for(let v=0;vg&&_,P=!1;const O=Array.isArray(w)?w:[w];let L=O.reduce(r(x),{});S===!1&&(L={});const{prevResolvedValues:M={}}=b,z={...M,...L},F=Z=>{A=!0,h.has(Z)&&(P=!0,h.delete(Z)),b.needsAnimating[Z]=!0;const K=e.getValue(Z);K&&(K.liveStyle=!1)};for(const Z in z){const K=L[Z],ie=M[Z];if(y.hasOwnProperty(Z))continue;let he=!1;Sl(K)&&Sl(ie)?he=!bg(K,ie):he=K!==ie,he?K!=null?F(Z):h.add(Z):K!==void 0&&h.has(Z)?F(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(y={...y,...L}),s&&e.blockInitialAnimation&&(A=!1),A&&(!(T&&R)||P)&&d.push(...O.map(Z=>({animation:Z,options:{type:x}})))}if(h.size){const v={};if(typeof c.initial!="boolean"){const x=ei(e,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(v.transition=x.transition)}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&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)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(l,c)}),n[l].isActive=c;const d=o(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jd(),s=!0}}}function lC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bg(t,e):!1}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jd(){return{animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()}}class Jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cC extends Jn{constructor(t){super(t),t.animationState||(t.animationState=aC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ea(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 uC=0;class dC extends Jn{constructor(){super(...arguments),this.id=uC++}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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fC={animation:{Feature:cC},exit:{Feature:dC}},Mt={x:!1,y:!1};function Sg(){return Mt.x||Mt.y}function hC(e){return e==="x"||e==="y"?Mt[e]?null:(Mt[e]=!0,()=>{Mt[e]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}const uu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function si(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function ji(e){return{point:{x:e.pageX,y:e.pageY}}}const pC=e=>t=>uu(t)&&e(t,ji(t));function zr(e,t,n,s){return si(e,t,pC(n),s)}const ef=(e,t)=>Math.abs(e-t);function mC(e,t){const n=ef(e.x,t.x),s=ef(e.y,t.y);return Math.sqrt(n**2+s**2)}class _g{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=Da(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=mC(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:g}=d,{timestamp:p}=qe;this.history.push({...g,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=Ma(h,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Da(d.type==="pointercancel"?this.lastMoveEventInfo:Ma(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),g&&g(d,v)},!uu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=ji(t),a=Ma(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=qe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Da(a,this.history)),this.removeListeners=ki(zr(this.contextWindow,"pointermove",this.handlePointerMove),zr(this.contextWindow,"pointerup",this.handlePointerUp),zr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wn(this.updatePoint)}}function Ma(e,t){return t?{point:t(e.point)}:e}function tf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Da({point:e},t){return{point:e,delta:tf(e,Eg(t)),offset:tf(e,gC(t)),velocity:yC(t,.1)}}function gC(e){return e[0]}function Eg(e){return e[e.length-1]}function yC(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>bn(t)));)n--;if(!s)return{x:0,y:0};const i=wn(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 Cg=1e-4,vC=1-Cg,xC=1+Cg,Tg=.01,bC=0-Tg,wC=0+Tg;function lt(e){return e.max-e.min}function SC(e,t,n){return Math.abs(e-t)<=n}function nf(e,t,n,s=.5){e.origin=s,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=lt(n)/lt(t),e.translate=Ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vC&&e.scale<=xC||isNaN(e.scale))&&(e.scale=1),(e.translate>=bC&&e.translate<=wC||isNaN(e.translate))&&(e.translate=0)}function Ur(e,t,n,s){nf(e.x,t.x,n.x,s?s.originX:void 0),nf(e.y,t.y,n.y,s?s.originY:void 0)}function sf(e,t,n){e.min=n.min+t.min,e.max=e.min+lt(t)}function _C(e,t,n){sf(e.x,t.x,n.x),sf(e.y,t.y,n.y)}function rf(e,t,n){e.min=t.min-n.min,e.max=e.min+lt(t)}function Wr(e,t,n){rf(e.x,t.x,n.x),rf(e.y,t.y,n.y)}function EC(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?Ne(n,e,s.max):Math.min(e,n)),e}function of(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 CC(e,{top:t,left:n,bottom:s,right:r}){return{x:of(e.x,n,r),y:of(e.y,t,s)}}function af(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)),Sn(0,1,n)}function AC(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 Ol=.35;function NC(e=Ol){return e===!1?e=0:e===!0&&(e=Ol),{x:lf(e,"left","right"),y:lf(e,"top","bottom")}}function lf(e,t,n){return{min:cf(e,t),max:cf(e,n)}}function cf(e,t){return typeof e=="number"?e:e[t]||0}const uf=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:uf(),y:uf()}),df=()=>({min:0,max:0}),De=()=>({x:df(),y:df()});function At(e){return[e("x"),e("y")]}function Rg({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function PC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kC(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 La(e){return e===void 0||e===1}function Ml({scale:e,scaleX:t,scaleY:n}){return!La(e)||!La(t)||!La(n)}function is(e){return Ml(e)||Ag(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ag(e){return ff(e.x)||ff(e.y)}function ff(e){return e&&e!=="0%"}function _o(e,t,n){const s=e-n,r=t*s;return n+r}function hf(e,t,n,s,r){return r!==void 0&&(e=_o(e,r,s)),_o(e,n,s)+t}function Dl(e,t=0,n=1,s,r){e.min=hf(e.min,t,n,s,r),e.max=hf(e.max,t,n,s,r)}function Ng(e,{x:t,y:n}){Dl(e.x,t.translate,t.scale,t.originPoint),Dl(e.y,n.translate,n.scale,n.originPoint)}const pf=.999999999999,mf=1.0000000000001;function jC(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;apf&&(t.x=1),t.ypf&&(t.y=1)}function Us(e,t){e.min=e.min+t,e.max=e.max+t}function gf(e,t,n,s,r=.5){const i=Ne(e.min,e.max,r);Dl(e,t,n,i,s)}function Ws(e,t){gf(e.x,t.x,t.scaleX,t.scale,t.originX),gf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Pg(e,t){return Rg(kC(e.getBoundingClientRect(),t))}function OC(e,t,n){const s=Pg(e,n),{scroll:r}=t;return r&&(Us(s.x,r.offset.x),Us(s.y,r.offset.y)),s}const kg=({current:e})=>e?e.ownerDocument.defaultView:null,MC=new WeakMap;class DC{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=De(),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(ji(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hC(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),At(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=lt(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),g&&Te.postRender(()=>g(u,d)),_l(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:g,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=LC(v),this.currentDirection!==null&&g&&g(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),l=()=>At(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _g(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:kg(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&&Te.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||!Ji(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=EC(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&&Bs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=CC(r.layoutBox,n):this.constraints=!1,this.elastic=NC(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&At(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=AC(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bs(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=OC(s,r.root,this.visualElement.getTransformPagePoint());let o=TC(r.layout.layoutBox,i);if(n){const a=n(PC(o));this.hasMutatedConstraints=!!a,a&&(o=Rg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=At(u=>{if(!Ji(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=r?200:1e6,y=r?40:1e7,g={type:"inertia",velocity:s?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return _l(this.visualElement,t),s.start(cu(t,s,0,n,this.visualElement,!1))}stopAnimation(){At(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){At(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){At(n=>{const{drag:s}=this.getProps();if(!Ji(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]-Ne(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Bs(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};At(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=RC({min:l,max:l},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(),At(o=>{if(!Ji(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ne(l,c,r[o]))})}addListeners(){if(!this.visualElement.current)return;MC.set(this.visualElement,this);const t=this.visualElement.current,n=zr(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Bs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Te.read(s);const o=si(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(At(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[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=Ol,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ji(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IC extends Jn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new DC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const yf=e=>(t,n)=>{e&&Te.postRender(()=>e(t,n))};class FC extends Jn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new _g(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:yf(t),onStart:yf(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Te.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=zr(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 lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=vf(e,t.target.x),s=vf(e,t.target.y);return`${n}% ${s}%`}},VC={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Hn.parse(e);if(r.length>5)return s;const i=Hn.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=l;const c=Ne(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=c),typeof r[3+o]=="number"&&(r[3+o]/=c),i(r)}};class BC extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;YS($C),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()})),lo.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()||Te.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ic.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 jg(e){const[t,n]=gm(),s=m.useContext(Pc);return f.jsx(BC,{...e,layoutGroup:s,switchLayoutGroup:m.useContext(Em),isPresent:t,safeToRemove:n})}const $C={borderRadius:{...kr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kr,borderTopRightRadius:kr,borderBottomLeftRadius:kr,borderBottomRightRadius:kr,boxShadow:VC};function zC(e,t,n){const s=tt(e)?e:ti(e);return s.start(cu("",s,t,n)),s.animation}function UC(e){return e instanceof SVGElement&&e.tagName!=="svg"}const WC=(e,t)=>e.depth-t.depth;class HC{constructor(){this.children=[],this.isDirty=!1}add(t){Gc(this.children,t),this.isDirty=!0}remove(t){Xc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WC),this.isDirty=!1,this.children.forEach(t)}}function qC(e,t){const n=rn.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Wn(s),e(i-t))};return Te.read(s,!0),()=>Wn(s)}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],ZC=Og.length,xf=e=>typeof e=="string"?parseFloat(e):e,bf=e=>typeof e=="number"||ne.test(e);function KC(e,t,n,s,r,i){r?(e.opacity=Ne(0,n.opacity!==void 0?n.opacity:1,GC(s)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,XC(s))):i&&(e.opacity=Ne(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 Sf(e,t){e.min=t.min,e.max=t.max}function Rt(e,t){Sf(e.x,t.x),Sf(e.y,t.y)}function _f(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ef(e,t,n,s,r){return e-=t,e=_o(e,1/n,s),r!==void 0&&(e=_o(e,1/r,s)),e}function YC(e,t=0,n=1,s=.5,r,i=e,o=e){if(sn.test(t)&&(t=parseFloat(t),t=Ne(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ne(i.min,i.max,s);e===i&&(a-=t),e.min=Ef(e.min,t,n,a,r),e.max=Ef(e.max,t,n,a,r)}function Cf(e,t,[n,s,r],i,o){YC(e,t[n],t[s],t[r],t.scale,i,o)}const QC=["x","scaleX","originX"],JC=["y","scaleY","originY"];function Tf(e,t,n,s){Cf(e.x,t,QC,n?n.x:void 0,s?s.x:void 0),Cf(e.y,t,JC,n?n.y:void 0,s?s.y:void 0)}function Rf(e){return e.translate===0&&e.scale===1}function Dg(e){return Rf(e.x)&&Rf(e.y)}function Af(e,t){return e.min===t.min&&e.max===t.max}function eT(e,t){return Af(e.x,t.x)&&Af(e.y,t.y)}function Nf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lg(e,t){return Nf(e.x,t.x)&&Nf(e.y,t.y)}function Pf(e){return lt(e.x)/lt(e.y)}function kf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tT{constructor(){this.members=[]}add(t){Gc(this.members,t),t.scheduleRender()}remove(t){if(Xc(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 nT(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:c,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:g}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),y&&(s+=`skewX(${y}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ia=["","X","Y","Z"],sT={visibility:"hidden"},jf=1e3;let rT=0;function Fa(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Ig(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Vm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Ig(s)}function Fg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(aT),this.nodes.forEach(fT),this.nodes.forEach(hT),this.nodes.forEach(lT)},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 l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=qC(h,250),lo.hasAnimatedSinceResize&&(lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Mf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||vT,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!Lg(this.targetLayout,g),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 _={...Kc(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||Mf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wn(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(pT),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&&Ig(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&&!lt(this.snapshot.measuredBox.x)&&!lt(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 l=0;l{const S=_/1e3;Df(d.x,o.x,S),Df(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),gT(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&eT(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=De()),Rt(w,this.relativeTarget)),p&&(this.animationValues=u,KC(u,c,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&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{lo.hasAnimatedSinceResize=!0,this.currentAnimation=zC(0,jf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Vg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||De();const d=lt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=lt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Rt(a,l),Ws(a,u),Ur(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tT),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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:l}={}){const c=this.getStack();c&&c.promote(this,l),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:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Fa("z",o,c,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(Of),this.root.sharedNodes.clear()}}}function iT(e){e.updateLayout()}function oT(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"?At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=lt(h);h.min=s[d].min,h.max=h.min+y}):Vg(i,n.layoutBox,s)&&At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=lt(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=zs();Ur(a,s,n.layoutBox);const l=zs();o?Ur(l,e.applyTransform(r,!0),n.measuredBox):Ur(l,s,n.layoutBox);const c=!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 g=De();Wr(g,n.layoutBox,h.layoutBox);const p=De();Wr(p,s,y.layoutBox),Lg(g,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function aT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cT(e){e.clearSnapshot()}function Of(e){e.clearMeasurements()}function uT(e){e.isLayoutDirty=!1}function dT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fT(e){e.resolveTargetDelta()}function hT(e){e.calcProjection()}function pT(e){e.resetSkewAndRotation()}function mT(e){e.removeLeadSnapshot()}function Df(e,t,n){e.translate=Ne(t.translate,0,n),e.scale=Ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Lf(e,t,n,s){e.min=Ne(t.min,n.min,s),e.max=Ne(t.max,n.max,s)}function gT(e,t,n,s){Lf(e.x,t.x,n.x,s),Lf(e.y,t.y,n.y,s)}function yT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vT={duration:.45,ease:[.4,0,.1,1]},If=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ff=If("applewebkit/")&&!If("chrome/")?Math.round:bt;function Vf(e){e.min=Ff(e.min),e.max=Ff(e.max)}function xT(e){Vf(e.x),Vf(e.y)}function Vg(e,t,n){return e==="position"||e==="preserve-aspect"&&!SC(Pf(t),Pf(n),.2)}function bT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const wT=Fg({attachResizeListener:(e,t)=>si(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Va={current:void 0},Bg=Fg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Va.current){const e=new wT({});e.mount(window),e.setOptions({layoutScroll:!0}),Va.current=e}return Va.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ST={pan:{Feature:FC},drag:{Feature:IC,ProjectionNode:Bg,MeasureLayout:jg}};function _T(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 $g(e,t){const n=_T(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Bf(e){return!(e.pointerType==="touch"||Sg())}function ET(e,t,n={}){const[s,r,i]=$g(e,n),o=a=>{if(!Bf(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Bf(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function $f(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&&Te.postRender(()=>i(t,ji(t)))}class CT extends Jn{mount(){const{current:t}=this.node;t&&(this.unmount=ET(t,(n,s)=>($f(this.node,s,"Start"),r=>$f(this.node,r,"End"))))}unmount(){}}class TT extends Jn{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=ki(si(this.node.current,"focus",()=>this.onFocus()),si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zg=(e,t)=>t?e===t?!0:zg(e,t.parentElement):!1,RT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function AT(e){return RT.has(e.tagName)||e.tabIndex!==-1}const Ir=new WeakSet;function zf(e){return t=>{t.key==="Enter"&&e(t)}}function Ba(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const NT=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=zf(()=>{if(Ir.has(n))return;Ba(n,"down");const r=zf(()=>{Ba(n,"up")}),i=()=>Ba(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 Uf(e){return uu(e)&&!Sg()}function PT(e,t,n={}){const[s,r,i]=$g(e,n),o=a=>{const l=a.currentTarget;if(!Uf(a)||Ir.has(l))return;Ir.add(l);const c=t(l,a),u=(y,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Uf(y)||!Ir.has(l))&&(Ir.delete(l),typeof c=="function"&&c(y,{success:g}))},d=y=>{u(y,n.useGlobalTarget||zg(l,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return s.forEach(a=>{!AT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",c=>NT(c,r),r)}),i}function Wf(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&&Te.postRender(()=>i(t,ji(t)))}class kT extends Jn{mount(){const{current:t}=this.node;t&&(this.unmount=PT(t,(n,s)=>(Wf(this.node,s,"Start"),(r,{success:i})=>Wf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ll=new WeakMap,$a=new WeakMap,jT=e=>{const t=Ll.get(e.target);t&&t(e)},OT=e=>{e.forEach(jT)};function MT({root:e,...t}){const n=e||document;$a.has(n)||$a.set(n,{});const s=$a.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(OT,{root:e,...t})),s[r]}function DT(e,t,n){const s=MT(t);return Ll.set(e,n),s.observe(e),()=>{Ll.delete(e),s.unobserve(e)}}const LT={some:0,all:1};class IT extends Jn{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:LT[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return DT(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(FT(t,n))&&this.startObserver()}unmount(){}}function FT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const VT={inView:{Feature:IT},tap:{Feature:kT},focus:{Feature:TT},hover:{Feature:CT}},BT={layout:{ProjectionNode:Bg,MeasureLayout:jg}},Il={current:null},Ug={current:!1};function $T(){if(Ug.current=!0,!!Oc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Il.current=e.matches;e.addListener(t),t()}else Il.current=!1}const zT=[...cg,Je,Hn],UT=e=>zT.find(lg(e)),WT=new WeakMap;function HT(e,t,n){for(const s in t){const r=t[s],i=n[s];if(tt(r))e.addValue(s,r);else if(tt(i))e.addValue(s,ti(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,ti(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Hf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class qT{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=ou,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)),Ug.current||$T(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Il.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(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=Os.has(t);s&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Te.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 lr){const n=lr[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):De()}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=ti(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"&&(og(r)||Ym(r))?r=parseFloat(r):!UT(r)&&Hn.test(n)&&(r=sg(t,n)),this.setBaseTarget(t,tt(r)?r.get():r)),tt(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=qc(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&&!tt(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 Yc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Wg extends qT{constructor(){super(...arguments),this.KeyframeResolver=ug}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;tt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ZT(e){return window.getComputedStyle(e)}class KT extends Wg{constructor(){super(...arguments),this.type="html",this.renderInstance=Om}readValueFromInstance(t,n){if(Os.has(n)){const s=iu(n);return s&&s.default||0}else{const s=ZT(t),r=(Fc(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pg(t,n)}build(t,n,s){$c(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Zc(t,n,s)}}class GT extends Wg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&jm(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Os.has(n)){const s=iu(n);return s&&s.default||0}return n=Mm.has(n)?n:Lc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Lm(t,n,s)}onBindTransform(){this.current&&!this.renderState.dimensions&&Te.postRender(this.updateDimensions)}build(t,n,s){Wc(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Dm(t,n,s,r)}mount(t){this.isSVGTag=Hc(t.tagName),super.mount(t)}}const XT=(e,t)=>Uc(e)?new GT(t):new KT(t,{allowProjection:e!==m.Fragment}),YT=w_({...fC,...VT,...ST,...BT},XT),Hr=IS(YT);var za,qf;function QT(){if(qf)return za;qf=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,l=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,h=d.toString,y=Math.max,g=Math.min,p=function(){return u.Date.now()};function v(S,T,R){var A,P,O,L,M,z,F=0,Y=!1,J=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);T=_(T)||0,x(R)&&(Y=!!R.leading,J="maxWait"in R,O=J?y(_(R.maxWait)||0,T):O,Z="trailing"in R?!!R.trailing:Z);function K(de){var xe=A,Oe=P;return A=P=void 0,F=de,L=S.apply(Oe,xe),L}function ie(de){return F=de,M=setTimeout($e,T),Y?K(de):L}function he(de){var xe=de-z,Oe=de-F,Ve=T-xe;return J?g(Ve,O-Oe):Ve}function ve(de){var xe=de-z,Oe=de-F;return z===void 0||xe>=T||xe<0||J&&Oe>=O}function $e(){var de=p();if(ve(de))return Xe(de);M=setTimeout($e,he(de))}function Xe(de){return M=void 0,Z&&A?K(de):(A=P=void 0,L)}function Ye(){M!==void 0&&clearTimeout(M),F=0,A=z=P=M=void 0}function Ot(){return M===void 0?L:Xe(p())}function it(){var de=p(),xe=ve(de);if(A=arguments,P=this,z=de,xe){if(M===void 0)return ie(z);if(J)return M=setTimeout($e,T),K(z)}return M===void 0&&(M=setTimeout($e,T)),L}return it.cancel=Ye,it.flush=Ot,it}function x(S){var T=typeof S;return!!S&&(T=="object"||T=="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 T=typeof S.valueOf=="function"?S.valueOf():S;S=x(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var R=i.test(S);return R||o.test(S)?a(S.slice(2),R?2:8):r.test(S)?t:+S}return za=v,za}QT();var Hg=typeof window<"u"?m.useLayoutEffect:m.useEffect,JT=typeof window>"u";function Eo(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>JT?t:window.matchMedia(a).matches,[r,i]=m.useState(()=>n?s(e):t);function o(){i(s(e))}return Hg(()=>{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 eR=typeof window>"u";function tR(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=m.useState(!1),o=m.useRef(null),a=m.useRef(null),l=()=>{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,g=h-o.current.scrollWidth;o.current.style.paddingRight=`${g+y}px`}o.current.style.overflow="hidden",i(!0)}},c=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Hg(()=>{if(!eR)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&l(),()=>{c()}},[t,n,s]),{isLocked:r,lock:l,unlock:c}}const IO=({className:e,stage:t})=>{const n=Eo("(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 Oi=e=>e.type==="checkbox",ls=e=>e instanceof Date,at=e=>e==null;const qg=e=>typeof e=="object";var Ie=e=>!at(e)&&!Array.isArray(e)&&qg(e)&&!ls(e),Zg=e=>Ie(e)&&e.target?Oi(e.target)?e.target.checked:e.target.value:e,nR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Kg=(e,t)=>e.has(nR(t)),sR=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},du=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dt(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(!(du&&(e instanceof Blob||s))&&(n||Ie(e)))if(t=n?[]:{},!n&&!sR(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=dt(e[r]));else return e;return t}var sa=e=>Array.isArray(e)?e.filter(Boolean):[],Le=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const s=sa(t.split(/[,[\].]+?/)).reduce((r,i)=>at(r)?r:r[i],e);return Le(s)||s===e?Le(e[t])?n:e[t]:s},kt=e=>typeof e=="boolean",fu=e=>/^\w*$/.test(e),Gg=e=>sa(e.replace(/["|']|\]/g,"").split(/\.|\[/)),be=(e,t,n)=>{let s=-1;const r=fu(t)?[t]:Gg(t),i=r.length,o=i-1;for(;++sfe.useContext(Xg),rR=e=>{const{children:t,...n}=e;return fe.createElement(Xg.Provider,{value:n},t)};var Yg=(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},ht=e=>Ie(e)&&!Object.keys(e).length,Qg=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return ht(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],Jg=(e,t,n)=>!e||!t||e===t||qr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function hu(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function iR(e){const t=ra(),{control:n=t.control,disabled:s,name:r,exact:i}=e||{},[o,a]=fe.useState(n._formState),l=fe.useRef(!0),c=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=fe.useRef(r);return u.current=r,hu({disabled:s,next:d=>l.current&&Jg(u.current,d.name,i)&&Qg(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),fe.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),fe.useMemo(()=>Yg(o,n,c.current,!1),[o,n])}var nn=e=>typeof e=="string",ey=(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 oR(e){const t=ra(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e||{},a=fe.useRef(s);a.current=s,hu({disabled:i,subject:n._subjects.values,next:u=>{Jg(a.current,u.name,o)&&c(dt(ey(a.current,n._names,u.values||n._formValues,!1,r)))}});const[l,c]=fe.useState(n._getWatch(s,r));return fe.useEffect(()=>n._removeUnmounted()),l}function aR(e){const t=ra(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Kg(r._names.array,n),a=oR({control:r,name:n,defaultValue:$(r._formValues,n,$(r._defaultValues,n,e.defaultValue)),exact:!0}),l=iR({control:r,name:n,exact:!0}),c=fe.useRef(r.register(n,{...e.rules,value:a,...kt(e.disabled)?{disabled:e.disabled}:{}})),u=fe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!$(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$(l.validatingFields,n)},error:{enumerable:!0,get:()=>$(l.errors,n)}}),[l,n]),d=fe.useMemo(()=>({name:n,value:a,...kt(s)||l.disabled?{disabled:l.disabled||s}:{},onChange:h=>c.current.onChange({target:{value:Zg(h),name:n},type:Co.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:$(r._formValues,n),name:n},type:Co.BLUR}),ref:h=>{const y=$(r._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:g=>h.setCustomValidity(g),reportValidity:()=>h.reportValidity()})}}),[n,r._formValues,s,l.disabled,a,r._fields]);return fe.useEffect(()=>{const h=r._options.shouldUnregister||i,y=(g,p)=>{const v=$(r._fields,g);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const g=dt($(r._options.defaultValues,n));be(r._defaultValues,n,g),Le($(r._formValues,n))&&be(r._formValues,n,g)}return!o&&r.register(n),()=>{(o?h&&!r._state.action:h)?r.unregister(n):y(n,!1)}},[n,r,o,i]),fe.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),fe.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const lR=e=>e.render(aR(e));var ty=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},Zf=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),Kf=(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 cR=(e,t,n)=>{const s=qr($(e,n));return be(s,"root",t[n]),be(e,n,s),e},pu=e=>e.type==="file",tn=e=>typeof e=="function",To=e=>{if(!du)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},co=e=>nn(e),mu=e=>e.type==="radio",Ro=e=>e instanceof RegExp;const Gf={value:!1,isValid:!1},Xf={value:!0,isValid:!0};var ny=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&&!Le(e[0].attributes.value)?Le(e[0].value)||e[0].value===""?Xf:{value:e[0].value,isValid:!0}:Xf:Gf}return Gf};const Yf={isValid:!1,value:null};var sy=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Yf):Yf;function Qf(e,t,n="validate"){if(co(e)||Array.isArray(e)&&e.every(co)||kt(e)&&!e)return{type:n,message:co(e)?e:"",ref:t}}var Fs=e=>Ie(e)&&!Ro(e)?e:{value:e,message:""},Jf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:h,pattern:y,validate:g,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=M=>{r&&w.reportValidity&&(w.setCustomValidity(kt(M)?"":M||""),w.reportValidity())},S={},T=mu(o),R=Oi(o),A=T||R,P=(v||pu(o))&&Le(o.value)&&Le(b)||To(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,O=ty.bind(null,p,s,S),L=(M,z,F,Y=pn.maxLength,J=pn.minLength)=>{const Z=M?z:F;S[p]={type:M?Y:J,message:Z,ref:o,...O(M?Y:J,Z)}};if(i?!Array.isArray(b)||!b.length:l&&(!A&&(P||at(b))||kt(b)&&!b||R&&!ny(a).isValid||T&&!sy(a).isValid)){const{value:M,message:z}=co(l)?{value:!!l,message:l}:Fs(l);if(M&&(S[p]={type:pn.required,message:z,ref:w,...O(pn.required,z)},!s))return _(z),S}if(!P&&(!at(d)||!at(h))){let M,z;const F=Fs(h),Y=Fs(d);if(!at(b)&&!isNaN(b)){const J=o.valueAsNumber||b&&+b;at(F.value)||(M=J>F.value),at(Y.value)||(z=Jnew Date(new Date().toDateString()+" "+he),K=o.type=="time",ie=o.type=="week";nn(F.value)&&b&&(M=K?Z(b)>Z(F.value):ie?b>F.value:J>new Date(F.value)),nn(Y.value)&&b&&(z=K?Z(b)+M.value,Y=!at(z.value)&&b.length<+z.value;if((F||Y)&&(L(F,M.message,z.message),!s))return _(S[p].message),S}if(y&&!P&&nn(b)){const{value:M,message:z}=Fs(y);if(Ro(M)&&!b.match(M)&&(S[p]={type:pn.pattern,message:z,ref:o,...O(pn.pattern,z)},!s))return _(z),S}if(g){if(tn(g)){const M=await g(b,n),z=Qf(M,w);if(z&&(S[p]={...z,...O(pn.validate,z.message)},!s))return _(z.message),S}else if(Ie(g)){let M={};for(const z in g){if(!ht(M)&&!s)break;const F=Qf(await g[z](b,n),w,z);F&&(M={...F,...O(z,F.message)},_(F.message),s&&(S[p]=M))}if(!ht(M)&&(S[p]={ref:w,...M},!s))return S}}return _(!0),S};function uR(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=[]}}},Fl=e=>at(e)||!qg(e);function Mn(e,t){if(Fl(e)||Fl(t))return e===t;if(ls(e)&&ls(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(ls(i)&&ls(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!Mn(i,o):i!==o)return!1}}return!0}var ry=e=>e.type==="select-multiple",fR=e=>mu(e)||Oi(e),Wa=e=>To(e)&&e.isConnected,iy=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function Ao(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!iy(e[s])?(t[s]=Array.isArray(e[s])?[]:{},Ao(e[s],t[s])):at(e[s])||(t[s]=!0);return t}function oy(e,t,n){const s=Array.isArray(e);if(Ie(e)||s)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!iy(e[r])?Le(t)||Fl(n[r])?n[r]=Array.isArray(e[r])?Ao(e[r],[]):{...Ao(e[r])}:oy(e[r],at(t)?{}:t[r],n[r]):n[r]=!Mn(e[r],t[r]);return n}var jr=(e,t)=>oy(e,t,Ao(t)),ay=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>Le(e)?e:t?e===""?NaN:e&&+e:n&&nn(e)?new Date(e):s?s(e):e;function Ha(e){const t=e.ref;return pu(t)?t.files:mu(t)?sy(e.refs).value:ry(t)?[...t.selectedOptions].map(({value:n})=>n):Oi(t)?ny(e.refs).value:ay(Le(t.value)?e.ref.value:t.value,e)}var hR=(e,t,n,s)=>{const r={};for(const i of e){const o=$(t,i);o&&be(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},Or=e=>Le(e)?e:Ro(e)?e.source:Ie(e)?Ro(e.value)?e.value.source:e.value:e;const eh="AsyncFunction";var pR=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===eh||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===eh)),mR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function th(e,t,n){const s=$(e,n);if(s||fu(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 gR=(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,yR=(e,t)=>!sa($(e,t)).length&&ze(e,t);const vR={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function xR(e={}){let t={...vR,...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)?dt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:dt(r),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=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=Zf(t.mode),y=Zf(t.reValidateMode),g=t.criteriaMode===It.all,p=E=>N=>{clearTimeout(c),c=setTimeout(E,N)},v=async E=>{if(!t.disabled&&(u.isValid||E)){const N=t.resolver?ht((await A()).errors):await O(s,!0);N!==n.isValid&&d.state.next({isValid:N})}},x=(E,N)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((E||Array.from(a.mount)).forEach(j=>{j&&(N?be(n.validatingFields,j,N):ze(n.validatingFields,j))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ht(n.validatingFields)}))},b=(E,N=[],j,U,B=!0,I=!0)=>{if(U&&j&&!t.disabled){if(o.action=!0,I&&Array.isArray($(s,E))){const ee=j($(s,E),U.argA,U.argB);B&&be(s,E,ee)}if(I&&Array.isArray($(n.errors,E))){const ee=j($(n.errors,E),U.argA,U.argB);B&&be(n.errors,E,ee),yR(n.errors,E)}if(u.touchedFields&&I&&Array.isArray($(n.touchedFields,E))){const ee=j($(n.touchedFields,E),U.argA,U.argB);B&&be(n.touchedFields,E,ee)}u.dirtyFields&&(n.dirtyFields=jr(r,i)),d.state.next({name:E,isDirty:M(E,N),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else be(i,E,N)},w=(E,N)=>{be(n.errors,E,N),d.state.next({errors:n.errors})},_=E=>{n.errors=E,d.state.next({errors:n.errors,isValid:!1})},S=(E,N,j,U)=>{const B=$(s,E);if(B){const I=$(i,E,Le(j)?$(r,E):j);Le(I)||U&&U.defaultChecked||N?be(i,E,N?I:Ha(B._f)):Y(E,I),o.mount&&v()}},T=(E,N,j,U,B)=>{let I=!1,ee=!1;const le={name:E};if(!t.disabled){const Be=!!($(s,E)&&$(s,E)._f&&$(s,E)._f.disabled);if(!j||U){u.isDirty&&(ee=n.isDirty,n.isDirty=le.isDirty=M(),I=ee!==le.isDirty);const Me=Be||Mn($(r,E),N);ee=!!(!Be&&$(n.dirtyFields,E)),Me||Be?ze(n.dirtyFields,E):be(n.dirtyFields,E,!0),le.dirtyFields=n.dirtyFields,I=I||u.dirtyFields&&ee!==!Me}if(j){const Me=$(n.touchedFields,E);Me||(be(n.touchedFields,E,j),le.touchedFields=n.touchedFields,I=I||u.touchedFields&&Me!==j)}I&&B&&d.state.next(le)}return I?le:{}},R=(E,N,j,U)=>{const B=$(n.errors,E),I=u.isValid&&kt(N)&&n.isValid!==N;if(t.delayError&&j?(l=p(()=>w(E,j)),l(t.delayError)):(clearTimeout(c),l=null,j?be(n.errors,E,j):ze(n.errors,E)),(j?!Mn(B,j):B)||!ht(U)||I){const ee={...U,...I&&kt(N)?{isValid:N}:{},errors:n.errors,name:E};n={...n,...ee},d.state.next(ee)}},A=async E=>{x(E,!0);const N=await t.resolver(i,t.context,hR(E||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(E),N},P=async E=>{const{errors:N}=await A(E);if(E)for(const j of E){const U=$(N,j);U?be(n.errors,j,U):ze(n.errors,j)}else n.errors=N;return N},O=async(E,N,j={valid:!0})=>{for(const U in E){const B=E[U];if(B){const{_f:I,...ee}=B;if(I){const le=a.array.has(I.name),Be=B._f&&pR(B._f);Be&&u.validatingFields&&x([U],!0);const Me=await Jf(B,a.disabled,i,g,t.shouldUseNativeValidation&&!N,le);if(Be&&u.validatingFields&&x([U]),Me[I.name]&&(j.valid=!1,N))break;!N&&($(Me,I.name)?le?cR(n.errors,Me,I.name):be(n.errors,I.name,Me[I.name]):ze(n.errors,I.name))}!ht(ee)&&await O(ee,N,j)}}return j.valid},L=()=>{for(const E of a.unMount){const N=$(s,E);N&&(N._f.refs?N._f.refs.every(j=>!Wa(j)):!Wa(N._f.ref))&&it(E)}a.unMount=new Set},M=(E,N)=>!t.disabled&&(E&&N&&be(i,E,N),!Mn(ve(),r)),z=(E,N,j)=>ey(E,a,{...o.mount?i:Le(N)?r:nn(E)?{[E]:N}:N},j,N),F=E=>sa($(o.mount?i:r,E,t.shouldUnregister?$(r,E,[]):[])),Y=(E,N,j={})=>{const U=$(s,E);let B=N;if(U){const I=U._f;I&&(!I.disabled&&be(i,E,ay(N,I)),B=To(I.ref)&&at(N)?"":N,ry(I.ref)?[...I.ref.options].forEach(ee=>ee.selected=B.includes(ee.value)):I.refs?Oi(I.ref)?I.refs.length>1?I.refs.forEach(ee=>(!ee.defaultChecked||!ee.disabled)&&(ee.checked=Array.isArray(B)?!!B.find(le=>le===ee.value):B===ee.value)):I.refs[0]&&(I.refs[0].checked=!!B):I.refs.forEach(ee=>ee.checked=ee.value===B):pu(I.ref)?I.ref.value="":(I.ref.value=B,I.ref.type||d.values.next({name:E,values:{...i}})))}(j.shouldDirty||j.shouldTouch)&&T(E,B,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&he(E)},J=(E,N,j)=>{for(const U in N){const B=N[U],I=`${E}.${U}`,ee=$(s,I);(a.array.has(E)||Ie(B)||ee&&!ee._f)&&!ls(B)?J(I,B,j):Y(I,B,j)}},Z=(E,N,j={})=>{const U=$(s,E),B=a.array.has(E),I=dt(N);be(i,E,I),B?(d.array.next({name:E,values:{...i}}),(u.isDirty||u.dirtyFields)&&j.shouldDirty&&d.state.next({name:E,dirtyFields:jr(r,i),isDirty:M(E,I)})):U&&!U._f&&!at(I)?J(E,I,j):Y(E,I,j),Kf(E,a)&&d.state.next({...n}),d.values.next({name:o.mount?E:void 0,values:{...i}})},K=async E=>{o.mount=!0;const N=E.target;let j=N.name,U=!0;const B=$(s,j),I=()=>N.type?Ha(B._f):Zg(E),ee=le=>{U=Number.isNaN(le)||ls(le)&&isNaN(le.getTime())||Mn(le,$(i,j,le))};if(B){let le,Be;const Me=I(),Zt=E.type===Co.BLUR||E.type===Co.FOCUS_OUT,Tr=!mR(B._f)&&!t.resolver&&!$(n.errors,j)&&!B._f.deps||gR(Zt,$(n.touchedFields,j),n.isSubmitted,y,h),Kt=Kf(j,a,Zt);be(i,j,Me),Zt?(B._f.onBlur&&B._f.onBlur(E),l&&l(0)):B._f.onChange&&B._f.onChange(E);const ns=T(j,Me,Zt,!1),Rr=!ht(ns)||Kt;if(!Zt&&d.values.next({name:j,type:E.type,values:{...i}}),Tr)return u.isValid&&(t.mode==="onBlur"&&Zt?v():Zt||v()),Rr&&d.state.next({name:j,...Kt?{}:ns});if(!Zt&&Kt&&d.state.next({...n}),t.resolver){const{errors:ss}=await A([j]);if(ee(Me),U){const xa=th(n.errors,s,j),$i=th(ss,s,xa.name||j);le=$i.error,j=$i.name,Be=ht(ss)}}else x([j],!0),le=(await Jf(B,a.disabled,i,g,t.shouldUseNativeValidation))[j],x([j]),ee(Me),U&&(le?Be=!1:u.isValid&&(Be=await O(s,!0)));U&&(B._f.deps&&he(B._f.deps),R(j,Be,le,ns))}},ie=(E,N)=>{if($(n.errors,N)&&E.focus)return E.focus(),1},he=async(E,N={})=>{let j,U;const B=qr(E);if(t.resolver){const I=await P(Le(E)?E:B);j=ht(I),U=E?!B.some(ee=>$(I,ee)):j}else E?(U=(await Promise.all(B.map(async I=>{const ee=$(s,I);return await O(ee&&ee._f?{[I]:ee}:ee)}))).every(Boolean),!(!U&&!n.isValid)&&v()):U=j=await O(s);return d.state.next({...!nn(E)||u.isValid&&j!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:j}:{},errors:n.errors}),N.shouldFocus&&!U&&Zr(s,ie,E?B:a.mount),U},ve=E=>{const N={...o.mount?i:r};return Le(E)?N:nn(E)?$(N,E):E.map(j=>$(N,j))},$e=(E,N)=>({invalid:!!$((N||n).errors,E),isDirty:!!$((N||n).dirtyFields,E),error:$((N||n).errors,E),isValidating:!!$(n.validatingFields,E),isTouched:!!$((N||n).touchedFields,E)}),Xe=E=>{E&&qr(E).forEach(N=>ze(n.errors,N)),d.state.next({errors:E?n.errors:{}})},Ye=(E,N,j)=>{const U=($(s,E,{_f:{}})._f||{}).ref,B=$(n.errors,E)||{},{ref:I,message:ee,type:le,...Be}=B;be(n.errors,E,{...Be,...N,ref:U}),d.state.next({name:E,errors:n.errors,isValid:!1}),j&&j.shouldFocus&&U&&U.focus&&U.focus()},Ot=(E,N)=>tn(E)?d.values.subscribe({next:j=>E(z(void 0,N),j)}):z(E,N,!0),it=(E,N={})=>{for(const j of E?qr(E):a.mount)a.mount.delete(j),a.array.delete(j),N.keepValue||(ze(s,j),ze(i,j)),!N.keepError&&ze(n.errors,j),!N.keepDirty&&ze(n.dirtyFields,j),!N.keepTouched&&ze(n.touchedFields,j),!N.keepIsValidating&&ze(n.validatingFields,j),!t.shouldUnregister&&!N.keepDefaultValue&&ze(r,j);d.values.next({values:{...i}}),d.state.next({...n,...N.keepDirty?{isDirty:M()}:{}}),!N.keepIsValid&&v()},de=({disabled:E,name:N,field:j,fields:U})=>{(kt(E)&&o.mount||E||a.disabled.has(N))&&(E?a.disabled.add(N):a.disabled.delete(N),T(N,Ha(j?j._f:$(U,N)._f),!1,!1,!0))},xe=(E,N={})=>{let j=$(s,E);const U=kt(N.disabled)||kt(t.disabled);return be(s,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...N}}),a.mount.add(E),j?de({field:j,disabled:kt(N.disabled)?N.disabled:t.disabled,name:E}):S(E,!0,N.value),{...U?{disabled:N.disabled||t.disabled}:{},...t.progressive?{required:!!N.required,min:Or(N.min),max:Or(N.max),minLength:Or(N.minLength),maxLength:Or(N.maxLength),pattern:Or(N.pattern)}:{},name:E,onChange:K,onBlur:K,ref:B=>{if(B){xe(E,N),j=$(s,E);const I=Le(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,ee=fR(I),le=j._f.refs||[];if(ee?le.find(Be=>Be===I):I===j._f.ref)return;be(s,E,{_f:{...j._f,...ee?{refs:[...le.filter(Wa),I,...Array.isArray($(r,E))?[{}]:[]],ref:{type:I.type,name:E}}:{ref:I}}}),S(E,!1,void 0,I)}else j=$(s,E,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||N.shouldUnregister)&&!(Kg(a.array,E)&&o.action)&&a.unMount.add(E)}}},Oe=()=>t.shouldFocusError&&Zr(s,ie,a.mount),Ve=E=>{kt(E)&&(d.state.next({disabled:E}),Zr(s,(N,j)=>{const U=$(s,j);U&&(N.disabled=U._f.disabled||E,Array.isArray(U._f.refs)&&U._f.refs.forEach(B=>{B.disabled=U._f.disabled||E}))},0,!1))},Se=(E,N)=>async j=>{let U;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let B=dt(i);if(a.disabled.size)for(const I of a.disabled)be(B,I,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:ee}=await A();n.errors=I,B=ee}else await O(s);if(ze(n.errors,"root"),ht(n.errors)){d.state.next({errors:{}});try{await E(B,j)}catch(I){U=I}}else N&&await N({...n.errors},j),Oe(),setTimeout(Oe);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ht(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(E,N={})=>{$(s,E)&&(Le(N.defaultValue)?Z(E,dt($(r,E))):(Z(E,N.defaultValue),be(r,E,dt(N.defaultValue))),N.keepTouched||ze(n.touchedFields,E),N.keepDirty||(ze(n.dirtyFields,E),n.isDirty=N.defaultValue?M(E,dt($(r,E))):M()),N.keepError||(ze(n.errors,E),u.isValid&&v()),d.state.next({...n}))},pe=(E,N={})=>{const j=E?dt(E):r,U=dt(j),B=ht(E),I=B?r:U;if(N.keepDefaultValues||(r=j),!N.keepValues){if(N.keepDirtyValues){const ee=new Set([...a.mount,...Object.keys(jr(r,i))]);for(const le of Array.from(ee))$(n.dirtyFields,le)?be(I,le,$(i,le)):Z(le,$(I,le))}else{if(du&&Le(E))for(const ee of a.mount){const le=$(s,ee);if(le&&le._f){const Be=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(To(Be)){const Me=Be.closest("form");if(Me){Me.reset();break}}}}s={}}i=t.shouldUnregister?N.keepDefaultValues?dt(r):{}:dt(I),d.array.next({values:{...I}}),d.values.next({values:{...I}})}a={mount:N.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!N.keepIsValid||!!N.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:N.keepSubmitCount?n.submitCount:0,isDirty:B?!1:N.keepDirty?n.isDirty:!!(N.keepDefaultValues&&!Mn(E,r)),isSubmitted:N.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:N.keepDirtyValues?N.keepDefaultValues&&i?jr(r,i):n.dirtyFields:N.keepDefaultValues&&E?jr(r,E):N.keepDirty?n.dirtyFields:{},touchedFields:N.keepTouched?n.touchedFields:{},errors:N.keepErrors?n.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ce=(E,N)=>pe(tn(E)?E(i):E,N);return{control:{register:xe,unregister:it,getFieldState:$e,handleSubmit:Se,setError:Ye,_executeSchema:A,_getWatch:z,_getDirty:M,_updateValid:v,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:de,_getFieldArray:F,_reset:pe,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(E=>{Ce(E,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:E=>{n={...n,...E}},_disableForm:Ve,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(E){o=E},get _defaultValues(){return r},get _names(){return a},set _names(E){a=E},get _formState(){return n},set _formState(E){n=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:he,register:xe,handleSubmit:Se,watch:Ot,setValue:Z,getValues:ve,reset:Ce,resetField:G,clearErrors:Xe,unregister:it,setError:Ye,setFocus:(E,N={})=>{const j=$(s,E),U=j&&j._f;if(U){const B=U.refs?U.refs[0]:U.ref;B.focus&&(B.focus(),N.shouldSelect&&tn(B.select)&&B.select())}},getFieldState:$e}}function bR(e={}){const t=fe.useRef(void 0),n=fe.useRef(void 0),[s,r]=fe.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={...xR(e),formState:s});const i=t.current.control;return i._options=e,hu({subject:i._subjects.state,next:o=>{Qg(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),fe.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),fe.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),fe.useEffect(()=>{e.values&&!Mn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),fe.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),fe.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()}),fe.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Yg(s,i),t.current}var wR="Label",ly=m.forwardRef((e,t)=>f.jsx(ut.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())}}));ly.displayName=wR;var cy=ly;const SR=Yo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),uy=m.forwardRef(({className:e,...t},n)=>f.jsx(cy,{ref:n,className:V(SR(),e),...t}));uy.displayName=cy.displayName;const FO=rR,dy=m.createContext({}),_R=({...e})=>f.jsx(dy.Provider,{value:{name:e.name},children:f.jsx(lR,{...e})}),ia=()=>{const e=m.useContext(dy),t=m.useContext(fy),{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}},fy=m.createContext({}),hy=m.forwardRef(({className:e,...t},n)=>{const s=m.useId();return f.jsx(fy.Provider,{value:{id:s},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});hy.displayName="FormItem";const py=m.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=ia();return f.jsx(uy,{ref:n,className:V(s&&"text-destructive",e),htmlFor:r,...t})});py.displayName="FormLabel";const my=m.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=ia();return f.jsx(yr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});my.displayName="FormControl";const ER=m.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})});ER.displayName="FormDescription";const gy=m.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});gy.displayName="FormMessage";const Vl=m.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(b0,{className:"cursor-pointer",size:16})," Upload file"]})]}));Vl.displayName="Input";const yy=m.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}));yy.displayName="Textarea";const nh=e=>{let t;const n=new Set,s=(c,u)=>{const d=typeof c=="function"?c(t):c;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:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(s,r,a);return a},CR=e=>e?nh(e):nh,TR=e=>e;function RR(e,t=TR){const n=fe.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return fe.useDebugValue(n),n}const AR=e=>{const t=CR(e),n=s=>RR(t,s);return Object.assign(n,t),n},vy=e=>AR;function NR(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=l=>l===null?null:JSON.parse(l,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 Bl=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return Bl(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Bl(s)(n)}}}},PR=(e,t)=>(n,s,r)=>{let i={storage:NR(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},o=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)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 c.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 g=()=>{var p,v;if(!c)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 Bl(c.getItem.bind(c))(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,l.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(c=p.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},i.skipHydration||g(),y||h},kR=PR;var Ke=(e=>(e.EN="en",e.RU="ru",e.TM="tm",e))(Ke||{});const Ee=vy()(kR(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),VO=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:h=!1})=>{const y=Ee(g=>g.lang);return f.jsx(_R,{control:e,name:t,render:({field:g})=>f.jsxs(hy,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(py,{className:V("text-xl",h&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(my,{children:f.jsx(f.Fragment,{children:l?f.jsx(yy,{rows:3,...g,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(Vl,{...g,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(Vl,{type:"file",placeholder:s,onChange:p=>{var x;const v=((x=p.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",v),g.onChange(v),d&&d(p)},disabled:a}),g.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:[{ru:"Выбранный файл:",en:"Selected file:",tm:"Saýlanan faýl:"}[y]," ",g.value.name]})]})})}),f.jsx(gy,{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})]})})},BO=({className:e,delay:t=.15})=>{const n=Ee(s=>s.lang);return 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:{ru:"Форма успешно отправлена!",en:"Form submitted successfully!",tm:"Forma üstünlikli ugradyldy!"}[n]}),f.jsx(_e,{className:"w-fit mx-auto",to:"/",children:f.jsx(nt,{variant:"outline",children:{ru:"Вернуться на главную",en:"Back to home",tm:"Baş sahypa gaýdyp barmak"}[n]})})]})},jR=({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))}),OR=["top","right","bottom","left"],qn=Math.min,yt=Math.max,No=Math.round,eo=Math.floor,on=e=>({x:e,y:e}),MR={left:"right",right:"left",bottom:"top",top:"bottom"},DR={start:"end",end:"start"};function $l(e,t,n){return yt(e,qn(t,n))}function _n(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function gu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}function Zn(e){return["top","bottom"].includes(En(e))?"y":"x"}function vu(e){return gu(Zn(e))}function LR(e,t,n){n===void 0&&(n=!1);const s=Sr(e),r=vu(e),i=yu(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Po(o)),[o,Po(o)]}function IR(e){const t=Po(e);return[zl(e),t,zl(t)]}function zl(e){return e.replace(/start|end/g,t=>DR[t])}function FR(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 VR(e,t,n,s){const r=Sr(e);let i=FR(En(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(zl)))),i}function Po(e){return e.replace(/left|right|bottom|top/g,t=>MR[t])}function BR(e){return{top:0,right:0,bottom:0,left:0,...e}}function xy(e){return typeof e!="number"?BR(e):{top:e,right:e,bottom:e,left:e}}function ko(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 sh(e,t,n){let{reference:s,floating:r}=e;const i=Zn(t),o=vu(t),a=yu(o),l=En(t),c=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(l){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(Sr(t)){case"start":y[o]-=h*(n&&c?-1:1);break;case"end":y[o]+=h*(n&&c?-1:1);break}return y}const $R=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=sh(c,s,l),h=s,y={},g=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:l}=t,{element:c,padding:u=0}=_n(e,t)||{};if(c==null)return{};const d=xy(u),h={x:n,y:s},y=vu(r),g=yu(y),p=await o.getDimensions(c),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[y]-h[y]-i.floating[g],S=h[y]-i.reference[y],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let R=T?T[w]:0;(!R||!await(o.isElement==null?void 0:o.isElement(T)))&&(R=a.floating[w]||i.floating[g]);const A=_/2-S/2,P=R/2-p[g]/2-1,O=qn(d[x],P),L=qn(d[b],P),M=O,z=R-p[g]-L,F=R/2-p[g]/2+A,Y=$l(M,F,z),J=!l.arrow&&Sr(r)!=null&&F!==Y&&i.reference[g]/2-(FF<=0)){var L,M;const F=(((L=i.flip)==null?void 0:L.index)||0)+1,Y=R[F];if(Y)return{data:{index:F,overflows:O},reset:{placement:Y}};let J=(M=O.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:M.placement;if(!J)switch(y){case"bestFit":{var z;const Z=(z=O.filter(K=>{if(T){const ie=Zn(K.placement);return ie===b||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,he)=>ie+he,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:z[0];Z&&(J=Z);break}case"initialPlacement":J=a;break}if(r!==J)return{reset:{placement:J}}}return{}}}};function rh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ih(e){return OR.some(t=>e[t]>=0)}const WR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=_n(e,t);switch(s){case"referenceHidden":{const i=await ri(t,{...r,elementContext:"reference"}),o=rh(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ih(o)}}}case"escaped":{const i=await ri(t,{...r,altBoundary:!0}),o=rh(i,n.floating);return{data:{escapedOffsets:o,escaped:ih(o)}}}default:return{}}}}};async function HR(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=En(n),a=Sr(n),l=Zn(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=_n(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(y=a==="end"?g*-1:g),l?{x:y*u,y:h*c}:{x:h*c,y:y*u}}const qR=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,l=await HR(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}}},ZR=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}}},...l}=_n(e,t),c={x:n,y:s},u=await ri(t,l),d=Zn(En(r)),h=gu(d);let y=c[h],g=c[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=$l(b,y,w)}if(o){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=g+u[v],w=g-u[x];g=$l(b,g,w)}const p=a.fn({...t,[h]:y,[d]:g});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[d]:o}}}}}},KR=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:l=!0,crossAxis:c=!0}=_n(e,t),u={x:n,y:s},d=Zn(r),h=gu(d);let y=u[h],g=u[d];const p=_n(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){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(c){var x,b;const w=h==="y"?"width":"height",_=["top","left"].includes(En(r)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),T=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);gT&&(g=T)}return{[h]:y,[d]:g}}}},GR=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:l=()=>{},...c}=_n(e,t),u=await ri(t,c),d=En(r),h=Sr(r),y=Zn(r)==="y",{width:g,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=g-u.left-u.right,_=qn(p-u[v],b),S=qn(g-u[x],w),T=!t.middlewareData.shift;let R=_,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(R=b),T&&!h){const O=yt(u.left,0),L=yt(u.right,0),M=yt(u.top,0),z=yt(u.bottom,0);y?A=g-2*(O!==0||L!==0?O+L:yt(u.left,u.right)):R=p-2*(M!==0||z!==0?M+z:yt(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:R});const P=await o.getDimensions(a.floating);return g!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function _r(e){return by(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(by(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function by(e){return oa()?e instanceof Node||e instanceof wt(e).Node:!1}function $t(e){return oa()?e instanceof Element||e instanceof wt(e).Element:!1}function ln(e){return oa()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function oh(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function Mi(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function XR(e){return["table","td","th"].includes(_r(e))}function aa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xu(e){const t=bu(),n=$t(e)?zt(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 YR(e){let t=Kn(e);for(;ln(t)&&!dr(t);){if(xu(t))return t;if(aa(t))return null;t=Kn(t)}return null}function bu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(e){return["html","body","#document"].includes(_r(e))}function zt(e){return wt(e).getComputedStyle(e)}function la(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if(_r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oh(e)&&e.host||fn(e);return oh(t)?t.host:t}function wy(e){const t=Kn(e);return dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&Mi(t)?t:wy(t)}function ii(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wy(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=wt(r);if(i){const a=Ul(o);return t.concat(o,o.visualViewport||[],Mi(r)?r:[],a&&n?ii(a):[])}return t.concat(r,ii(r,[],n))}function Ul(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sy(e){const t=zt(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=ln(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=No(n)!==i||No(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function wu(e){return $t(e)?e:e.contextElement}function Ks(e){const t=wu(e);if(!ln(t))return on(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=Sy(t);let o=(i?No(n.width):n.width)/s,a=(i?No(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const QR=on(0);function _y(e){const t=wt(e);return!bu()||!t.visualViewport?QR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function Cs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=wu(e);let o=on(1);t&&(s?$t(s)&&(o=Ks(s)):o=Ks(e));const a=JR(i,n,s)?_y(i):on(0);let l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const h=wt(i),y=s&&$t(s)?wt(s):s;let g=h,p=Ul(g);for(;p&&s&&y!==g;){const v=Ks(p),x=p.getBoundingClientRect(),b=zt(p),w=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,_=x.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=w,c+=_,g=wt(p),p=Ul(g)}}return ko({width:u,height:d,x:l,y:c})}function Su(e,t){const n=la(e).scrollLeft;return t?t.left+n:Cs(fn(e)).left+n}function Ey(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:Su(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function eA(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 l={scrollLeft:0,scrollTop:0},c=on(1);const u=on(0),d=ln(s);if((d||!d&&!i)&&((_r(s)!=="body"||Mi(o))&&(l=la(s)),ln(s))){const y=Cs(s);c=Ks(s),u.x=y.x+s.clientLeft,u.y=y.y+s.clientTop}const h=o&&!d&&!i?Ey(o,l,!0):on(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function tA(e){return Array.from(e.getClientRects())}function nA(e){const t=fn(e),n=la(e),s=e.ownerDocument.body,r=yt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=yt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Su(e);const a=-n.scrollTop;return zt(s).direction==="rtl"&&(o+=yt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function sA(e,t){const n=wt(e),s=fn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;const c=bu();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:a,y:l}}function rA(e,t){const n=Cs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=ln(e)?Ks(e):on(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=s*i.y;return{width:o,height:a,x:l,y:c}}function ah(e,t,n){let s;if(t==="viewport")s=sA(e,n);else if(t==="document")s=nA(fn(e));else if($t(t))s=rA(t,n);else{const r=_y(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ko(s)}function Cy(e,t){const n=Kn(e);return n===t||!$t(n)||dr(n)?!1:zt(n).position==="fixed"||Cy(n,t)}function iA(e,t){const n=t.get(e);if(n)return n;let s=ii(e,[],!1).filter(a=>$t(a)&&_r(a)!=="body"),r=null;const i=zt(e).position==="fixed";let o=i?Kn(e):e;for(;$t(o)&&!dr(o);){const a=zt(o),l=xu(o);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Mi(o)&&!l&&Cy(e,o))?s=s.filter(u=>u!==o):r=a,o=Kn(o)}return t.set(e,s),s}function oA(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?aa(t)?[]:iA(t,this._c):[].concat(n),s],a=o[0],l=o.reduce((c,u)=>{const d=ah(t,u,r);return c.top=yt(d.top,c.top),c.right=qn(d.right,c.right),c.bottom=qn(d.bottom,c.bottom),c.left=yt(d.left,c.left),c},ah(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function aA(e){const{width:t,height:n}=Sy(e);return{width:t,height:n}}function lA(e,t,n){const s=ln(t),r=fn(t),i=n==="fixed",o=Cs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=on(0);if(s||!s&&!i)if((_r(t)!=="body"||Mi(r))&&(a=la(t)),s){const h=Cs(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&(l.x=Su(r));const c=r&&!s&&!i?Ey(r,a):on(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function qa(e){return zt(e).position==="static"}function lh(e,t){if(!ln(e)||zt(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=wt(e);if(aa(e))return n;if(!ln(e)){let r=Kn(e);for(;r&&!dr(r);){if($t(r)&&!qa(r))return r;r=Kn(r)}return n}let s=lh(e,t);for(;s&&XR(s)&&qa(s);)s=lh(s,t);return s&&dr(s)&&qa(s)&&!xu(s)?n:s||YR(e)||n}const cA=async function(e){const t=this.getOffsetParent||Ty,n=this.getDimensions,s=await n(e.floating);return{reference:lA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function uA(e){return zt(e).direction==="rtl"}const dA={convertOffsetParentRelativeRectToViewportRelativeRect:eA,getDocumentElement:fn,getClippingRect:oA,getOffsetParent:Ty,getElementRects:cA,getClientRects:tA,getDimensions:aA,getScale:Ks,isElement:$t,isRTL:uA};function Ry(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fA(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,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:y}=c;if(a||t(),!h||!y)return;const g=eo(d),p=eo(r.clientWidth-(u+h)),v=eo(r.clientHeight-(d+y)),x=eo(u),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-x+"px",threshold:yt(0,qn(1,l))||1};let _=!0;function S(T){const R=T[0].intersectionRatio;if(R!==l){if(!_)return o();R?o(!1,R):s=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!Ry(c,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 hA(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:l=!1}=s,c=wu(e),u=r||i?[...c?ii(c):[],...ii(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=c&&a?fA(c,n):null;let h=-1,y=null;o&&(y=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),c&&!l&&y.observe(c),y.observe(t));let g,p=l?Cs(e):null;l&&v();function v(){const x=Cs(e);p&&!Ry(p,x)&&n(),p=x,g=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,l&&cancelAnimationFrame(g)}}const pA=qR,mA=ZR,gA=UR,yA=GR,vA=WR,ch=zR,xA=KR,bA=(e,t,n)=>{const s=new Map,r={platform:dA,...n},i={...r.platform,_c:s};return $R(e,t,{...r,platform:i})};var uo=typeof document<"u"?m.useLayoutEffect:m.useEffect;function jo(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(!jo(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)&&!jo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ay(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uh(e,t){const n=Ay(e);return Math.round(t*n)/n}function Za(e){const t=m.useRef(e);return uo(()=>{t.current=e}),t}function wA(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:l,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=m.useState(s);jo(h,s)||y(s);const[g,p]=m.useState(null),[v,x]=m.useState(null),b=m.useCallback(K=>{K!==T.current&&(T.current=K,p(K))},[]),w=m.useCallback(K=>{K!==R.current&&(R.current=K,x(K))},[]),_=i||g,S=o||v,T=m.useRef(null),R=m.useRef(null),A=m.useRef(u),P=l!=null,O=Za(l),L=Za(r),M=Za(c),z=m.useCallback(()=>{if(!T.current||!R.current)return;const K={placement:t,strategy:n,middleware:h};L.current&&(K.platform=L.current),bA(T.current,R.current,K).then(ie=>{const he={...ie,isPositioned:M.current!==!1};F.current&&!jo(A.current,he)&&(A.current=he,hc.flushSync(()=>{d(he)}))})},[h,t,n,L,M]);uo(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[c]);const F=m.useRef(!1);uo(()=>(F.current=!0,()=>{F.current=!1}),[]),uo(()=>{if(_&&(T.current=_),S&&(R.current=S),_&&S){if(O.current)return O.current(_,S,z);z()}},[_,S,z,O,P]);const Y=m.useMemo(()=>({reference:T,floating:R,setReference:b,setFloating:w}),[b,w]),J=m.useMemo(()=>({reference:_,floating:S}),[_,S]),Z=m.useMemo(()=>{const K={position:n,left:0,top:0};if(!J.floating)return K;const ie=uh(J.floating,u.x),he=uh(J.floating,u.y);return a?{...K,transform:"translate("+ie+"px, "+he+"px)",...Ay(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ie,top:he}},[n,a,J.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:z,refs:Y,elements:J,floatingStyles:Z}),[u,z,Y,J,Z])}const SA=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?ch({element:s.current,padding:r}).fn(n):{}:s?ch({element:s,padding:r}).fn(n):{}}}},_A=(e,t)=>({...pA(e),options:[e,t]}),EA=(e,t)=>({...mA(e),options:[e,t]}),CA=(e,t)=>({...xA(e),options:[e,t]}),TA=(e,t)=>({...gA(e),options:[e,t]}),RA=(e,t)=>({...yA(e),options:[e,t]}),AA=(e,t)=>({...vA(e),options:[e,t]}),NA=(e,t)=>({...SA(e),options:[e,t]});var PA="Arrow",Ny=m.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return f.jsx(ut.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"})})});Ny.displayName=PA;var kA=Ny;function jA(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}var dh=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},OA=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function MA(e){const[t,n]=m.useState(void 0);return OA(()=>{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 l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.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 _u="Popper",[Py,ky]=vc(_u),[DA,jy]=Py(_u),Oy=e=>{const{__scopePopper:t,children:n}=e,[s,r]=m.useState(null);return f.jsx(DA,{scope:t,anchor:s,onAnchorChange:r,children:n})};Oy.displayName=_u;var My="PopperAnchor",Dy=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=jy(My,n),o=m.useRef(null),a=Wt(t,o);return m.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:f.jsx(ut.div,{...r,ref:a})});Dy.displayName=My;var Eu="PopperContent",[LA,IA]=Py(Eu),Ly=m.forwardRef((e,t)=>{var de,xe,Oe,Ve,Se,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...p}=e,v=jy(Eu,n),[x,b]=m.useState(null),w=Wt(t,pe=>b(pe)),[_,S]=m.useState(null),T=MA(_),R=(T==null?void 0:T.width)??0,A=(T==null?void 0:T.height)??0,P=s+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(c)?c:[c],M=L.length>0,z={padding:O,boundary:L.filter(VA),altBoundary:M},{refs:F,floatingStyles:Y,placement:J,isPositioned:Z,middlewareData:K}=wA({strategy:"fixed",placement:P,whileElementsMounted:(...pe)=>hA(...pe,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[_A({mainAxis:r+A,alignmentAxis:o}),l&&EA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?CA():void 0,...z}),l&&TA({...z}),RA({...z,apply:({elements:pe,rects:Ce,availableWidth:Ue,availableHeight:gt})=>{const{width:Tt,height:E}=Ce.reference,N=pe.floating.style;N.setProperty("--radix-popper-available-width",`${Ue}px`),N.setProperty("--radix-popper-available-height",`${gt}px`),N.setProperty("--radix-popper-anchor-width",`${Tt}px`),N.setProperty("--radix-popper-anchor-height",`${E}px`)}}),_&&NA({element:_,padding:a}),BA({arrowWidth:R,arrowHeight:A}),h&&AA({strategy:"referenceHidden",...z})]}),[ie,he]=Vy(J),ve=jA(g);dh(()=>{Z&&(ve==null||ve())},[Z,ve]);const $e=(de=K.arrow)==null?void 0:de.x,Xe=(xe=K.arrow)==null?void 0:xe.y,Ye=((Oe=K.arrow)==null?void 0:Oe.centerOffset)!==0,[Ot,it]=m.useState();return dh(()=>{x&&it(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:Z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ot,"--radix-popper-transform-origin":[(Ve=K.transformOrigin)==null?void 0:Ve.x,(Se=K.transformOrigin)==null?void 0:Se.y].join(" "),...((G=K.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(LA,{scope:n,placedSide:ie,onArrowChange:S,arrowX:$e,arrowY:Xe,shouldHideArrow:Ye,children:f.jsx(ut.div,{"data-side":ie,"data-align":he,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});Ly.displayName=Eu;var Iy="PopperArrow",FA={top:"bottom",right:"left",bottom:"top",left:"right"},Fy=m.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=IA(Iy,s),o=FA[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(kA,{...r,ref:n,style:{...r.style,display:"block"}})})});Fy.displayName=Iy;function VA(e){return e!==null}var BA=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,l=o?0:e.arrowHeight,[c,u]=Vy(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)+l/2;let g="",p="";return c==="bottom"?(g=o?d:`${h}px`,p=`${-l}px`):c==="top"?(g=o?d:`${h}px`,p=`${s.floating.height+l}px`):c==="right"?(g=`${-l}px`,p=o?d:`${y}px`):c==="left"&&(g=`${s.floating.width+l}px`,p=o?d:`${y}px`),{data:{x:g,y:p}}}});function Vy(e){const[t,n="center"]=e.split("-");return[t,n]}var $A=Oy,By=Dy,zA=Ly,UA=Fy,Cu="Popover",[$y,$O]=vc(Cu,[ky]),Di=ky(),[WA,es]=$y(Cu),zy=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=Di(t),l=m.useRef(null),[c,u]=m.useState(!1),[d=!1,h]=yp({prop:s,defaultProp:r,onChange:i});return f.jsx($A,{...a,children:f.jsx(WA,{scope:t,contentId:so(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.useCallback(()=>u(!1),[]),modal:o,children:n})})};zy.displayName=Cu;var Uy="PopoverAnchor",HA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Uy,n),i=Di(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return m.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(By,{...i,...s,ref:t})});HA.displayName=Uy;var Wy="PopoverTrigger",Hy=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Wy,n),i=Di(n),o=Wt(t,r.triggerRef),a=f.jsx(ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Xy(r.open),...s,ref:o,onClick:xt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(By,{asChild:!0,...i,children:a})});Hy.displayName=Wy;var Tu="PopoverPortal",[qA,ZA]=$y(Tu,{forceMount:void 0}),qy=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=es(Tu,t);return f.jsx(qA,{scope:t,forceMount:n,children:f.jsx(vr,{present:n||i.open,children:f.jsx(wc,{asChild:!0,container:r,children:s})})})};qy.displayName=Tu;var fr="PopoverContent",Zy=m.forwardRef((e,t)=>{const n=ZA(fr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=es(fr,e.__scopePopover);return f.jsx(vr,{present:s||i.open,children:i.modal?f.jsx(KA,{...r,ref:t}):f.jsx(GA,{...r,ref:t})})});Zy.displayName=fr;var KA=m.forwardRef((e,t)=>{const n=es(fr,e.__scopePopover),s=m.useRef(null),r=Wt(t,s),i=m.useRef(!1);return m.useEffect(()=>{const o=s.current;if(o)return kp(o)},[]),f.jsx(Sc,{as:yr,allowPinchZoom:!0,children:f.jsx(Ky,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:xt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),GA=m.forwardRef((e,t)=>{const n=es(fr,e.__scopePopover),s=m.useRef(!1),r=m.useRef(!1);return f.jsx(Ky,{...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 l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Ky=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=es(fr,n),y=Di(n);return Sp(),f.jsx(bc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(xc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(zA,{"data-state":Xy(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)"}})})})}),Gy="PopoverClose",XA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Gy,n);return f.jsx(ut.button,{type:"button",...s,ref:t,onClick:xt(e.onClick,()=>r.onOpenChange(!1))})});XA.displayName=Gy;var YA="PopoverArrow",QA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Di(n);return f.jsx(UA,{...r,...s,ref:t})});QA.displayName=YA;function Xy(e){return e?"open":"closed"}var JA=zy,eN=Hy,tN=qy,Yy=Zy;const Qy=JA,Jy=eN,Ru=m.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>f.jsx(tN,{children:f.jsx(Yy,{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})}));Ru.displayName=Yy.displayName;const nN=[{lang:Ke.RU},{lang:Ke.EN},{lang:Ke.TM}],fh={[Ke.RU]:"/ru.svg",[Ke.EN]:"/english.svg",[Ke.TM]:"/tm.png"},sN={[Ke.RU]:"Ру",[Ke.EN]:"En",[Ke.TM]:"Tm"},rN={[Ke.RU]:"Русский",[Ke.EN]:"English",[Ke.TM]:"Türkmen"},hh=({className:e,light:t=!1})=>{const n=Ee(o=>o.lang),s=Ee(o=>o.setLang),[r,i]=m.useState(!1);return f.jsxs(Qy,{open:r,onOpenChange:()=>i(!r),children:[f.jsxs(Jy,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:fh[n],alt:""}),sN[n],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(Ru,{className:"flex flex-col gap-6 w-fit relative z-[200] py-2 px-4 bg-surface_container",children:nN.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-2 items-center cursor-pointer",children:[f.jsx("img",{src:fh[o.lang],alt:"flag"}),f.jsx("h5",{children:rN[o.lang]})]},a))})]})},ev=Kp,tv=Gp,iN=Xp,nv=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{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}));nv.displayName=Zo.displayName;const Au=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(iN,{children:[f.jsx(nv,{}),f.jsxs(Ko,{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(Rc,{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(Ac,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Au.displayName=Ko.displayName;const oN=m.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));oN.displayName=Go.displayName;const aN=m.forwardRef(({className:e,...t},n)=>f.jsx(Xo,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));aN.displayName=Xo.displayName;const ph=(e,t,n)=>{if(e&&"reportValidity"in e){const s=$(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},sv=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?ph(s.ref,n,e):s.refs&&s.refs.forEach(r=>ph(r,n,e))}},lN=(e,t)=>{t.shouldUseNativeValidation&&sv(e,t);const n={};for(const s in e){const r=$(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(cN(t.names||Object.keys(e),s)){const o=Object.assign({},$(n,s));be(o,"root",i),be(n,s,o)}else be(n,s,i)}return n},cN=(e,t)=>e.some(n=>n.startsWith(t+"."));var uN=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 l=n[o].types,c=l&&l[s.code];n[o]=ty(o,t,n,r,c?[].concat(c,s.message):s.message)}e.shift()}return n},dN=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(c){return i.shouldUseNativeValidation&&sv({},i),{errors:{},values:n.raw?s:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:lN(uN(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ye;(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})(ye||(ye={}));var Wl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wl||(Wl={}));const H=ye.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=ye.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"]),fN=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class St 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,l=0;for(;ln.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()}}St.create=e=>new St(e);const hr=(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,ye.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ye.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}"`:ye.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,ye.assertNever(e)}return{message:n}};let rv=hr;function hN(e){rv=e}function Oo(){return rv}const Mo=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 l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},pN=[];function W(e,t){const n=Oo(),s=Mo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===hr?void 0:hr].filter(r=>!!r)});e.common.issues.push(s)}class st{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 re;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 st.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 re;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 re=Object.freeze({status:"aborted"}),Hs=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),Hl=e=>e.status==="aborted",ql=e=>e.status==="dirty",Ts=e=>e.status==="valid",oi=e=>typeof Promise<"u"&&e instanceof Promise;function Do(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 iv(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 X;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(X||(X={}));var Fr,Vr;class cn{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 mh=(e,t)=>{if(Ts(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 St(e.common.issues);return this._error=n,this._error}}};function ae(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 l,c;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??s)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:r}}class ue{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 st,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(oi(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 mh(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 Ts(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=>Ts(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(oi(r)?r:Promise.resolve(r));return mh(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(l=>l?!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:se.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 Qn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this)}promise(){return mr.create(this,this._def)}or(t){return ui.create([this,t],this._def)}and(t){return di.create(this,t,this._def)}transform(t){return new Ut({...ae(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new gi({...ae(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Nu({typeName:se.ZodBranded,type:this,...ae(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yi({...ae(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Li.create(this,t)}readonly(){return vi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const mN=/^c[^\s-]{8,}$/i,gN=/^[0-9a-z]+$/,yN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vN=/^[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,xN=/^[a-z0-9_-]{21}$/i,bN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wN=/^[-+]?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)?)??$/,SN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_N="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ka;const EN=/^(?:(?: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])$/,CN=/^(?:(?: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])$/,TN=/^(([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]))$/,RN=/^(([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])$/,AN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,NN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ov="((\\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])))",PN=new RegExp(`^${ov}$`);function av(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 kN(e){return new RegExp(`^${av(e)}$`)}function lv(e){let t=`${ov}T${av(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 jN(e,t){return!!((t==="v4"||!t)&&EN.test(e)||(t==="v6"||!t)&&TN.test(e))}function ON(e,t){if(!bN.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 MN(e,t){return!!((t==="v4"||!t)&&CN.test(e)||(t==="v6"||!t)&&RN.test(e))}class Ft extends ue{_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}),re}const s=new st;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,...X.errToObj(s)})}_addCheck(t){return new Ft({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...X.errToObj(t)})}url(t){return this._addCheck({kind:"url",...X.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...X.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...X.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...X.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...X.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...X.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...X.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...X.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...X.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...X.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...X.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...X.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,...X.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,...X.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...X.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...X.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...X.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...X.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...X.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...X.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...X.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...X.errToObj(n)})}nonempty(t){return this.min(1,X.errToObj(t))}trim(){return new Ft({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ft({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ft({...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 Ft({checks:[],typeName:se.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};function DN(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 Gn extends ue{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}),re}let s;const r=new st;for(const i of this._def.checks)i.kind==="int"?ye.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"?DN(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()):ye.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,s,r){return new Gn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:X.toString(r)}]})}_addCheck(t){return new Gn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:X.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:X.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.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"&&ye.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 Gn({checks:[],typeName:se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class Xn extends ue{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 st;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()):ye.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}),re}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,s,r){return new Xn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:X.toString(r)}]})}_addCheck(t){return new Xn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.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 Xn({checks:[],typeName:se.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};class ai extends ue{_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}),re}return ct(t.data)}}ai.create=e=>new ai({typeName:se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class Rs extends ue{_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}),re}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),re}const s=new st;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()):ye.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Rs({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:X.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:X.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 Rs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:se.ZodDate,...ae(e)});class Lo extends ue{_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}),re}return ct(t.data)}}Lo.create=e=>new Lo({typeName:se.ZodSymbol,...ae(e)});class li extends ue{_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}),re}return ct(t.data)}}li.create=e=>new li({typeName:se.ZodUndefined,...ae(e)});class ci extends ue{_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}),re}return ct(t.data)}}ci.create=e=>new ci({typeName:se.ZodNull,...ae(e)});class pr extends ue{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}}pr.create=e=>new pr({typeName:se.ZodAny,...ae(e)});class ws extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}}ws.create=e=>new ws({typeName:se.ZodUnknown,...ae(e)});class Cn extends ue{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.never,received:n.parsedType}),re}}Cn.create=e=>new Cn({typeName:se.ZodNever,...ae(e)});class Io extends ue{_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}),re}return ct(t.data)}}Io.create=e=>new Io({typeName:se.ZodVoid,...ae(e)});class Vt extends ue{_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}),re;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 cn(n,o,n.path,a)))).then(o=>st.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new cn(n,o,n.path,a)));return st.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Vt({...this._def,minLength:{value:t,message:X.toString(n)}})}max(t,n){return new Vt({...this._def,maxLength:{value:t,message:X.toString(n)}})}length(t,n){return new Vt({...this._def,exactLength:{value:t,message:X.toString(n)}})}nonempty(t){return this.min(1,t)}}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...ae(t)});function Vs(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=an.create(Vs(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:Vs(e.element)}):e instanceof an?an.create(Vs(e.unwrap())):e instanceof Qn?Qn.create(Vs(e.unwrap())):e instanceof un?un.create(e.items.map(t=>Vs(t))):e}class Ae extends ue{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=ye.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const c=this._getOrReturnCtx(t);return W(c,{code:D.invalid_type,expected:H.object,received:c.parsedType}),re}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 c in r.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new cn(r,d,r.path,c)),alwaysSet:c in r.data})}if(this._def.catchall instanceof Cn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(c==="strict")a.length>0&&(W(r,{code:D.unrecognized_keys,keys:a}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new cn(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>st.mergeObjectSync(s,c)):st.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(t){return X.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const l=(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=X.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}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:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return ye.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 ye.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Vs(this)}partial(t){const n={};return ye.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 ye.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 cv(ye.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});class ui extends ue{_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 St(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),re}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 l of s){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new St(l));return W(n,{code:D.invalid_union,unionErrors:a}),re}}get options(){return this._def.options}}ui.create=(e,t)=>new ui({options:e,typeName:se.ZodUnion,...ae(t)});const gn=e=>e instanceof hi?gn(e.schema):e instanceof Ut?gn(e.innerType()):e instanceof pi?[e.value]:e instanceof Yn?e.options:e instanceof mi?ye.objectValues(e.enum):e instanceof gi?gn(e._def.innerType):e instanceof li?[void 0]:e instanceof ci?[null]:e instanceof an?[void 0,...gn(e.unwrap())]:e instanceof Qn?[null,...gn(e.unwrap())]:e instanceof Nu||e instanceof vi?gn(e.unwrap()):e instanceof yi?gn(e._def.innerType):[];class ca extends ue{_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}),re;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]}),re)}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=gn(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:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ae(s)})}}function Zl(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=ye.objectKeys(t),i=ye.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=Zl(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.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(Hl(i)||Hl(o))return re;const a=Zl(i.value,o.value);return a.valid?((ql(i)||ql(o))&&n.dirty(),{status:n.value,value:a.data}):(W(s,{code:D.invalid_intersection_types}),re)};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}))}}di.create=(e,t,n)=>new di({left:e,right:t,typeName:se.ZodIntersection,...ae(n)});class un extends ue{_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}),re;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 l=this._def.items[a]||this._def.rest;return l?l._parse(new cn(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>st.mergeArray(n,o)):st.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:se.ZodTuple,rest:null,...ae(t)})};class fi extends ue{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}),re;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new cn(s,a,s.path,a)),value:o._parse(new cn(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?st.mergeObjectAsync(n,r):st.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof ue?new fi({keyType:t,valueType:n,typeName:se.ZodRecord,...ae(s)}):new fi({keyType:Ft.create(),valueType:t,typeName:se.ZodRecord,...ae(n)})}}class Fo extends ue{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}),re;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:r._parse(new cn(s,a,s.path,[c,"key"])),value:i._parse(new cn(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return re;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return re;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Fo.create=(e,t,n)=>new Fo({valueType:t,keyType:e,typeName:se.ZodMap,...ae(n)});class As extends ue{_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}),re;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(l){const c=new Set;for(const u of l){if(u.status==="aborted")return re;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new cn(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new As({...this._def,minSize:{value:t,message:X.toString(n)}})}max(t,n){return new As({...this._def,maxSize:{value:t,message:X.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}As.create=(e,t)=>new As({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...ae(t)});class Gs extends ue{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}),re;function s(a,l){return Mo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oo(),hr].filter(c=>!!c),issueData:{code:D.invalid_arguments,argumentsError:l}})}function r(a,l){return Mo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oo(),hr].filter(c=>!!c),issueData:{code:D.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof mr){const a=this;return ct(async function(...l){const c=new St([]),u=await a._def.args.parseAsync(l,i).catch(y=>{throw c.addIssue(s(l,y)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(y=>{throw c.addIssue(r(d,y)),c})})}else{const a=this;return ct(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new St([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new St([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Gs({...this._def,args:un.create(t).rest(ws.create())})}returns(t){return new Gs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Gs({args:t||un.create([]).rest(ws.create()),returns:n||ws.create(),typeName:se.ZodFunction,...ae(s)})}}class hi extends ue{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})}}hi.create=(e,t)=>new hi({getter:e,typeName:se.ZodLazy,...ae(t)});class pi extends ue{_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}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}pi.create=(e,t)=>new pi({value:e,typeName:se.ZodLiteral,...ae(t)});function cv(e,t){return new Yn({values:e,typeName:se.ZodEnum,...ae(t)})}class Yn extends ue{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{expected:ye.joinValues(s),received:n.parsedType,code:D.invalid_type}),re}if(Do(this,Fr)||iv(this,Fr,new Set(this._def.values)),!Do(this,Fr).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}),re}return ct(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 Yn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yn.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Fr=new WeakMap;Yn.create=cv;class mi extends ue{constructor(){super(...arguments),Vr.set(this,void 0)}_parse(t){const n=ye.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=ye.objectValues(n);return W(s,{expected:ye.joinValues(r),received:s.parsedType,code:D.invalid_type}),re}if(Do(this,Vr)||iv(this,Vr,new Set(ye.getValidEnumValues(this._def.values))),!Do(this,Vr).has(t.data)){const r=ye.objectValues(n);return W(s,{received:s.data,code:D.invalid_enum_value,options:r}),re}return ct(t.data)}get enum(){return this._def.values}}Vr=new WeakMap;mi.create=(e,t)=>new mi({values:e,typeName:se.ZodNativeEnum,...ae(t)});class mr extends ue{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}),re;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return ct(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}mr.create=(e,t)=>new mr({type:e,typeName:se.ZodPromise,...ae(t)});class Ut extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.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 re;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Hs(l.value):l});{if(n.value==="aborted")return re;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?Hs(a.value):a}}if(r.type==="refinement"){const o=a=>{const l=r.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l 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"?re:(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"?re:(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(!Ts(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=>Ts(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ye.assertNever(r)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:se.ZodEffects,effect:t,...ae(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...ae(n)});class an extends ue{_parse(t){return this._getType(t)===H.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:se.ZodOptional,...ae(t)});class Qn extends ue{_parse(t){return this._getType(t)===H.null?ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qn.create=(e,t)=>new Qn({innerType:e,typeName:se.ZodNullable,...ae(t)});class gi extends ue{_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}}gi.create=(e,t)=>new gi({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ae(t)});class yi extends ue{_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 oi(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new St(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new St(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}yi.create=(e,t)=>new yi({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ae(t)});class Vo extends ue{_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}),re}return{status:"valid",value:t.data}}}Vo.create=e=>new Vo({typeName:se.ZodNaN,...ae(e)});const LN=Symbol("zod_brand");class Nu extends ue{_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 Li extends ue{_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"?re:i.status==="dirty"?(n.dirty(),Hs(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"?re: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 Li({in:t,out:n,typeName:se.ZodPipeline})}}class vi extends ue{_parse(t){const n=this._def.innerType._parse(t),s=r=>(Ts(r)&&(r.value=Object.freeze(r.value)),r);return oi(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}vi.create=(e,t)=>new vi({innerType:e,typeName:se.ZodReadonly,...ae(t)});function uv(e,t={},n){return e?pr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;r.addIssue({code:"custom",...c,fatal:l})}}):pr.create()}const IN={object:Ae.lazycreate};var se;(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"})(se||(se={}));const FN=(e,t={message:`Input not instance of ${e.name}`})=>uv(n=>n instanceof e,t),dv=Ft.create,fv=Gn.create,VN=Vo.create,BN=Xn.create,hv=ai.create,$N=Rs.create,zN=Lo.create,UN=li.create,WN=ci.create,HN=pr.create,qN=ws.create,ZN=Cn.create,KN=Io.create,GN=Vt.create,XN=Ae.create,YN=Ae.strictCreate,QN=ui.create,JN=ca.create,eP=di.create,tP=un.create,nP=fi.create,sP=Fo.create,rP=As.create,iP=Gs.create,oP=hi.create,aP=pi.create,lP=Yn.create,cP=mi.create,uP=mr.create,gh=Ut.create,dP=an.create,fP=Qn.create,hP=Ut.createWithPreprocess,pP=Li.create,mP=()=>dv().optional(),gP=()=>fv().optional(),yP=()=>hv().optional(),vP={string:e=>Ft.create({...e,coerce:!0}),number:e=>Gn.create({...e,coerce:!0}),boolean:e=>ai.create({...e,coerce:!0}),bigint:e=>Xn.create({...e,coerce:!0}),date:e=>Rs.create({...e,coerce:!0})},xP=re;var yh=Object.freeze({__proto__:null,defaultErrorMap:hr,setErrorMap:hN,getErrorMap:Oo,makeIssue:Mo,EMPTY_PATH:pN,addIssueToContext:W,ParseStatus:st,INVALID:re,DIRTY:Hs,OK:ct,isAborted:Hl,isDirty:ql,isValid:Ts,isAsync:oi,get util(){return ye},get objectUtil(){return Wl},ZodParsedType:H,getParsedType:yn,ZodType:ue,datetimeRegex:lv,ZodString:Ft,ZodNumber:Gn,ZodBigInt:Xn,ZodBoolean:ai,ZodDate:Rs,ZodSymbol:Lo,ZodUndefined:li,ZodNull:ci,ZodAny:pr,ZodUnknown:ws,ZodNever:Cn,ZodVoid:Io,ZodArray:Vt,ZodObject:Ae,ZodUnion:ui,ZodDiscriminatedUnion:ca,ZodIntersection:di,ZodTuple:un,ZodRecord:fi,ZodMap:Fo,ZodSet:As,ZodFunction:Gs,ZodLazy:hi,ZodLiteral:pi,ZodEnum:Yn,ZodNativeEnum:mi,ZodPromise:mr,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:an,ZodNullable:Qn,ZodDefault:gi,ZodCatch:yi,ZodNaN:Vo,BRAND:LN,ZodBranded:Nu,ZodPipeline:Li,ZodReadonly:vi,custom:uv,Schema:ue,ZodSchema:ue,late:IN,get ZodFirstPartyTypeKind(){return se},coerce:vP,any:HN,array:GN,bigint:BN,boolean:hv,date:$N,discriminatedUnion:JN,effect:gh,enum:lP,function:iP,instanceof:FN,intersection:eP,lazy:oP,literal:aP,map:sP,nan:VN,nativeEnum:cP,never:ZN,null:WN,nullable:fP,number:fv,object:XN,oboolean:yP,onumber:gP,optional:dP,ostring:mP,pipeline:pP,preprocess:hP,promise:uP,record:nP,set:rP,strictObject:YN,string:dv,symbol:zN,transformer:gh,tuple:tP,undefined:UN,union:QN,unknown:qN,void:KN,NEVER:xP,ZodIssueCode:D,quotelessJson:fN,ZodError:St});const Ga=(e,t,n)=>{const s=Ee(r=>r.lang);return s==="ru"?e:s==="tm"?n??t:t};function pv(e,t){return function(){return e.apply(t,arguments)}}const{toString:bP}=Object.prototype,{getPrototypeOf:Pu}=Object,ua=(e=>t=>{const n=bP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qt=e=>(e=e.toLowerCase(),t=>ua(t)===e),da=e=>t=>typeof t===e,{isArray:Er}=Array,xi=da("undefined");function wP(e){return e!==null&&!xi(e)&&e.constructor!==null&&!xi(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mv=qt("ArrayBuffer");function SP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mv(e.buffer),t}const _P=da("string"),_t=da("function"),gv=da("number"),fa=e=>e!==null&&typeof e=="object",EP=e=>e===!0||e===!1,fo=e=>{if(ua(e)!=="object")return!1;const t=Pu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CP=qt("Date"),TP=qt("File"),RP=qt("Blob"),AP=qt("FileList"),NP=e=>fa(e)&&_t(e.pipe),PP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=ua(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},kP=qt("URLSearchParams"),[jP,OP,MP,DP]=["ReadableStream","Request","Response","Headers"].map(qt),LP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ii(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Er(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vv=e=>!xi(e)&&e!==cs;function Kl(){const{caseless:e}=vv(this)&&this||{},t={},n=(s,r)=>{const i=e&&yv(t,r)||r;fo(t[i])&&fo(s)?t[i]=Kl(t[i],s):fo(s)?t[i]=Kl({},s):Er(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(Ii(t,(r,i)=>{n&&_t(r)?e[i]=pv(r,n):e[i]=r},{allOwnKeys:s}),e),FP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VP=(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)},BP=(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&&Pu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$P=(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},zP=e=>{if(!e)return null;if(Er(e))return e;let t=e.length;if(!gv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pu(Uint8Array)),WP=(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])}},HP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},qP=qt("HTMLFormElement"),ZP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),vh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KP=qt("RegExp"),xv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ii(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},GP=e=>{xv(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(_t(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+"'")})}})},XP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Er(e)?s(e):s(String(e).split(t)),n},YP=()=>{},QP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xa="abcdefghijklmnopqrstuvwxyz",xh="0123456789",bv={DIGIT:xh,ALPHA:Xa,ALPHA_DIGIT:Xa+Xa.toUpperCase()+xh},JP=(e=16,t=bv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function ek(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tk=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=Er(s)?[]:{};return Ii(s,(o,a)=>{const l=n(o,r+1);!xi(l)&&(i[a]=l)}),t[r]=void 0,i}}return s};return n(e,0)},nk=qt("AsyncFunction"),sk=e=>e&&(fa(e)||_t(e))&&_t(e.then)&&_t(e.catch),wv=((e,t)=>e?setImmediate:t?((n,s)=>(cs.addEventListener("message",({source:r,data:i})=>{r===cs&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),cs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_t(cs.postMessage)),rk=typeof queueMicrotask<"u"?queueMicrotask.bind(cs):typeof process<"u"&&process.nextTick||wv,k={isArray:Er,isArrayBuffer:mv,isBuffer:wP,isFormData:PP,isArrayBufferView:SP,isString:_P,isNumber:gv,isBoolean:EP,isObject:fa,isPlainObject:fo,isReadableStream:jP,isRequest:OP,isResponse:MP,isHeaders:DP,isUndefined:xi,isDate:CP,isFile:TP,isBlob:RP,isRegExp:KP,isFunction:_t,isStream:NP,isURLSearchParams:kP,isTypedArray:UP,isFileList:AP,forEach:Ii,merge:Kl,extend:IP,trim:LP,stripBOM:FP,inherits:VP,toFlatObject:BP,kindOf:ua,kindOfTest:qt,endsWith:$P,toArray:zP,forEachEntry:WP,matchAll:HP,isHTMLForm:qP,hasOwnProperty:vh,hasOwnProp:vh,reduceDescriptors:xv,freezeMethods:GP,toObjectSet:XP,toCamelCase:ZP,noop:YP,toFiniteNumber:QP,findKey:yv,global:cs,isContextDefined:vv,ALPHABET:bv,generateString:JP,isSpecCompliantForm:ek,toJSONObject:tk,isAsyncFn:nk,isThenable:sk,setImmediate:wv,asap:rk};function oe(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)}k.inherits(oe,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Sv=oe.prototype,_v={};["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=>{_v[e]={value:e}});Object.defineProperties(oe,_v);Object.defineProperty(Sv,"isAxiosError",{value:!0});oe.from=(e,t,n,s,r,i)=>{const o=Object.create(Sv);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),oe.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ik=null;function Gl(e){return k.isPlainObject(e)||k.isArray(e)}function Ev(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function bh(e,t,n){return e?e.concat(t).map(function(r,i){return r=Ev(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function ok(e){return k.isArray(e)&&!e.some(Gl)}const ak=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function ha(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!k.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(!l&&k.isBlob(g))throw new oe("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let x=g;if(g&&!v&&typeof g=="object"){if(k.endsWith(p,"{}"))p=s?p:p.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&ok(g)||(k.isFileList(g)||k.endsWith(p,"[]"))&&(x=k.toArray(g)))return p=Ev(p),x.forEach(function(w,_){!(k.isUndefined(w)||w===null)&&t.append(o===!0?bh([p],_,i):o===null?p:p+"[]",c(w))}),!1}return Gl(g)?!0:(t.append(bh(v,p,i),c(g)),!1)}const d=[],h=Object.assign(ak,{defaultVisitor:u,convertValue:c,isVisitable:Gl});function y(g,p){if(!k.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),k.forEach(g,function(x,b){(!(k.isUndefined(x)||x===null)&&r.call(t,x,k.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return y(e),t}function wh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ku(e,t){this._pairs=[],e&&ha(e,this,t)}const Cv=ku.prototype;Cv.append=function(t,n){this._pairs.push([t,n])};Cv.toString=function(t){const n=t?function(s){return t.call(this,s,wh)}:wh;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function lk(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||lk;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=k.isURLSearchParams(t)?t.toString():new ku(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sh{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){k.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Rv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ck=typeof URLSearchParams<"u"?URLSearchParams:ku,uk=typeof FormData<"u"?FormData:null,dk=typeof Blob<"u"?Blob:null,fk={isBrowser:!0,classes:{URLSearchParams:ck,FormData:uk,Blob:dk},protocols:["http","https","file","blob","url","data"]},ju=typeof window<"u"&&typeof document<"u",Xl=typeof navigator=="object"&&navigator||void 0,hk=ju&&(!Xl||["ReactNative","NativeScript","NS"].indexOf(Xl.product)<0),pk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mk=ju&&window.location.href||"http://localhost",gk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ju,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:pk,navigator:Xl,origin:mk},Symbol.toStringTag,{value:"Module"})),et={...gk,...fk};function yk(e,t){return ha(e,new et.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return et.isNode&&k.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function vk(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xk(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&k.isArray(r)?r.length:o,l?(k.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&k.isArray(r[o])&&(r[o]=xk(r[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(s,r)=>{t(vk(s),r,n,0)}),n}return null}function bk(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fi={transitional:Rv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(Av(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.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 yk(t,this.formSerializer).toString();if((a=k.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ha(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),bk(t)):t}],transformResponse:[function(t){const n=this.transitional||Fi.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.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"?oe.from(a,oe.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:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Fi.headers[e]={}});const wk=k.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"]),Sk=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]&&wk[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},_h=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function ho(e){return e===!1||e==null?e:k.isArray(e)?e.map(ho):String(e)}function _k(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 Ek=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,t,n,s,r){if(k.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(s))return t.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(t)}}function Ck(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Tk(e,t){const n=k.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})})}let mt=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,l,c){const u=Mr(l);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=ho(a))}const o=(a,l)=>k.forEach(a,(c,u)=>i(c,u,l));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!Ek(t))o(Sk(t),n);else if(k.isHeaders(t))for(const[a,l]of t.entries())i(l,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Mr(t),t){const s=k.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return _k(r);if(k.isFunction(n))return n.call(this,r,s);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mr(t),t){const s=k.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ya(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Mr(o),o){const a=k.findKey(s,o);a&&(!n||Ya(s,s[a],a,n))&&(delete s[a],r=!0)}}return k.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||Ya(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return k.forEach(this,(r,i)=>{const o=k.findKey(s,i);if(o){n[o]=ho(r),delete n[i];return}const a=t?Ck(i):String(i).trim();a!==i&&delete n[i],n[a]=ho(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&k.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[_h]=this[_h]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Mr(o);s[a]||(Tk(r,o),s[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(mt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});k.freezeMethods(mt);function Qa(e,t){const n=this||Fi,s=t||n,r=mt.from(s.headers);let i=s.data;return k.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Cr,oe,{__CANCEL__:!0});function Pv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ak(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(l){const c=Date.now(),u=s[i];o||(o=c),n[r]=l,s[r]=c;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),c-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=s?o(c,u):(r=c,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Bo=(e,t,n=3)=>{let s=0;const r=Ak(50,250);return Nk(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-s,c=r(l),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Eh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ch=e=>(...t)=>k.asap(()=>e(...t)),Pk=et.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,et.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(et.origin),et.navigator&&/(msie|trident)/i.test(et.navigator.userAgent)):()=>!0,kk=et.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(s)&&o.push("path="+s),k.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 jk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ok(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kv(e,t){return e&&!jk(t)?Ok(e,t):t}const Th=e=>e instanceof mt?{...e}:e;function Ns(e,t){t=t||{};const n={};function s(c,u,d,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function r(c,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return s(void 0,c,d,h)}else return s(c,u,d,h)}function i(c,u){if(!k.isUndefined(u))return s(void 0,u)}function o(c,u){if(k.isUndefined(u)){if(!k.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,d){if(d in t)return s(c,u);if(d in e)return s(void 0,c)}const l={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:(c,u,d)=>r(Th(c),Th(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const jv=e=>{const t=Ns({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=mt.from(o),t.url=Tv(kv(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(et.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(t)),s||s!==!1&&Pk(t.url))){const c=r&&i&&kk.read(i);c&&o.set(r,c)}return t},Mk=typeof XMLHttpRequest<"u",Dk=Mk&&function(e){return new Promise(function(n,s){const r=jv(e);let i=r.data;const o=mt.from(r.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=r,u,d,h,y,g;function p(){y&&y(),g&&g(),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=mt.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};Pv(function(R){n(R),p()},function(R){s(R),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 oe("Request aborted",oe.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new oe("Network Error",oe.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||Rv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new oe(_,S.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&k.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),k.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),c&&([h,g]=Bo(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,y]=Bo(l),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=Rk(r.url);if(b&&et.protocols.indexOf(b)===-1){s(new oe("Unsupported protocol "+b+":",oe.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Lk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;s.abort(u instanceof oe?u:new Cr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new oe(`timeout ${t} of ms exceeded`,oe.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=s;return l.unsubscribe=()=>k.asap(a),l}},Ik=function*(e,t){let n=e.byteLength;if(n{const r=Fk(e,t);let i=0,o,a=l=>{o||(o=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await r.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),r.return()}},{highWaterMark:2})},pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ov=pa&&typeof ReadableStream=="function",Bk=pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$k=Ov&&Mv(()=>{let e=!1;const t=new Request(et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ah=64*1024,Yl=Ov&&Mv(()=>k.isReadableStream(new Response("").body)),$o={stream:Yl&&(e=>e.body)};pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!$o[t]&&($o[t]=k.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,s)})})})(new Response);const zk=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(et.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await Bk(e)).byteLength},Uk=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??zk(t)},Wk=pa&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=jv(e);c=c?(c+"").toLowerCase():"text";let y=Lk([r,i&&i.toAbortSignal()],o),g;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(l&&$k&&n!=="get"&&n!=="head"&&(v=await Uk(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),T;if(k.isFormData(s)&&(T=S.headers.get("content-type"))&&u.setContentType(T),S.body){const[R,A]=Eh(v,Bo(Ch(l)));s=Rh(S.body,Ah,R,A)}}k.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=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(g);const w=Yl&&(c==="stream"||c==="response");if(Yl&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=b[P]});const T=k.toFiniteNumber(b.headers.get("content-length")),[R,A]=a&&Eh(T,Bo(Ch(a),!0))||[];b=new Response(Rh(b.body,Ah,R,()=>{A&&A(),p&&p()}),S)}c=c||"text";let _=await $o[k.findKey($o,c)||"text"](b,e);return!w&&p&&p(),await new Promise((S,T)=>{Pv(S,T,{data:_,headers:mt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,g),{cause:x.cause||x}):oe.from(x,x&&x.code,e,g)}}),Ql={http:ik,xhr:Dk,fetch:Wk};k.forEach(Ql,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nh=e=>`- ${e}`,Hk=e=>k.isFunction(e)||e===null||e===!1,Dv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Nh).join(` +`):" "+Nh(i[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Ql};function Ja(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function Ph(e){return Ja(e),e.headers=mt.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),Dv.getAdapter(e.adapter||Fi.adapter)(e).then(function(s){return Ja(e),s.data=Qa.call(e,e.transformResponse,s),s.headers=mt.from(s.headers),s},function(s){return Nv(s)||(Ja(e),s&&s.response&&(s.response.data=Qa.call(e,e.transformResponse,s.response),s.response.headers=mt.from(s.response.headers))),Promise.reject(s)})}const Lv="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 kh={};ma.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Lv+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new oe(r(o," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!kh[o]&&(kh[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 qk(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.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],l=a===void 0||o(a,i,e);if(l!==!0)throw new oe("option "+i+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+i,oe.ERR_BAD_OPTION)}}const po={assertOptions:qk,validators:ma},Gt=po.validators;let Ss=class{constructor(t){this.defaults=t,this.interceptors={request:new Sh,response:new Sh}}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=Ns(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&po.assertOptions(s,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:po.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),po.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=mt.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const g=[Ph.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),h=g.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 Iv(function(r){t=r}),cancel:t}}};function Kk(e){return function(n){return e.apply(null,n)}}function Gk(e){return k.isObject(e)&&e.isAxiosError===!0}const Jl={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(Jl).forEach(([e,t])=>{Jl[t]=e});function Fv(e){const t=new Ss(e),n=pv(Ss.prototype.request,t);return k.extend(n,Ss.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Fv(Ns(e,r))},n}const Fe=Fv(Fi);Fe.Axios=Ss;Fe.CanceledError=Cr;Fe.CancelToken=Zk;Fe.isCancel=Nv;Fe.VERSION=Lv;Fe.toFormData=ha;Fe.AxiosError=oe;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=Kk;Fe.isAxiosError=Gk;Fe.mergeConfig=Ns;Fe.AxiosHeaders=mt;Fe.formToJSON=e=>Av(k.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Dv.getAdapter;Fe.HttpStatusCode=Jl;Fe.default=Fe;const{Axios:WO,AxiosError:HO,CanceledError:qO,isCancel:ZO,CancelToken:KO,VERSION:GO,all:XO,Cancel:YO,isAxiosError:QO,spread:JO,toFormData:eM,AxiosHeaders:tM,HttpStatusCode:nM,formToJSON:sM,getAdapter:rM,mergeConfig:iM}=Fe,rt=Fe.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),oM=async e=>(await rt.post("book_stand_form",e)).status===201,aM=async e=>(await rt.post("become_sponsor_form",e)).status===201,lM=async e=>(await rt.post("contact_form",e)).status===201,Xk=async e=>(await rt.post("subscribe_news_form",e)).status===201,Yk=async(e,t)=>rt.get(`pages/${t}`,{headers:{"Accept-Language":e}}),Qk=async e=>rt.get("stats",{headers:{"Accept-Language":e}}),Jk=async e=>rt.get("contact_data",{headers:{"Accept-Language":e}}),e1=async e=>rt.get("industries",{headers:{"Accept-Language":e}}),t1=async e=>rt.get("exhibition_time",{headers:{"Accept-Language":e}}),n1=async e=>rt.get("news?per_page=100",{headers:{"Accept-Language":e}}),cM=async(e,t)=>rt.get(`news/${e}`,{headers:{"Accept-Language":t}}),uM=async e=>rt("participants",{headers:{"Accept-Language":e}}),s1=async e=>rt("photos/category/"+e),r1=async e=>rt("videos/category/"+e),i1=async e=>rt("sponsors_and_partners",{headers:{"Accept-Language":e}}),dM=async(e,t)=>rt("designers/category/"+t,{headers:{"Accept-Language":e}}),o1=yh.object({email:yh.string().email()}),Vv=({modal:e=!1})=>{var i,o;const[t,n]=m.useState(!1),s=bR({resolver:dN(o1),defaultValues:{email:""}});async function r(a){try{const l=await Xk(a);s.reset(),n(l)}catch(l){console.error("POST subscribe",l)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(Ge,{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:Ga("Подпишитесь на новости:","Subscribe to the news:","Täzeliklere ýazylyşyň:")}),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(nt,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Ga("Отправлено","Submitted","Ugradyldy"):Ga("Подписаться","Subscribe","Ýazylmak")})]})})},a1=({className:e,title:t})=>f.jsxs(ev,{children:[f.jsx(tv,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Au,{children:f.jsx(Vv,{className:"",modal:!0})})]}),zo=vy()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})}));var l1="1.3.17";function Bv(e,t,n){return Math.max(e,Math.min(t,n))}function c1(e,t,n){return(1-n)*e+n*t}function u1(e,t,n,s){return c1(e,t,1-Math.exp(-n*s))}function d1(e,t){return(e%t+t)%t}var f1=class{constructor(){Q(this,"isRunning",!1);Q(this,"value",0);Q(this,"from",0);Q(this,"to",0);Q(this,"currentTime",0);Q(this,"lerp");Q(this,"duration");Q(this,"easing");Q(this,"onUpdate")}advance(e){var n;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;const s=Bv(0,this.currentTime/this.duration,1);t=s>=1;const r=t?1:this.easing(s);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=u1(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:s,easing:r,onStart:i,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=s,this.easing=r,this.currentTime=0,this.isRunning=!0,i==null||i(),this.onUpdate=o}};function h1(e,t){let n;return function(...s){let r=this;clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(r,s)},t)}}var p1=class{constructor(e,t,{autoResize:n=!0,debounce:s=250}={}){Q(this,"width",0);Q(this,"height",0);Q(this,"scrollHeight",0);Q(this,"scrollWidth",0);Q(this,"debouncedResize");Q(this,"wrapperResizeObserver");Q(this,"contentResizeObserver");Q(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});Q(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});Q(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=e,this.content=t,n&&(this.debouncedResize=h1(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 e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.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}}},$v=class{constructor(){Q(this,"events",{})}emit(e,...t){var s;let n=this.events[e]||[];for(let r=0,i=n.length;r{var s;this.events[e]=(s=this.events[e])==null?void 0:s.filter(r=>t!==r)}}off(e,t){var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}destroy(){this.events={}}},jh=100/6,Pn={passive:!1},m1=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){Q(this,"touchStart",{x:0,y:0});Q(this,"lastDelta",{x:0,y:0});Q(this,"window",{width:0,height:0});Q(this,"emitter",new $v);Q(this,"onTouchStart",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});Q(this,"onTouchMove",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,s=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:s,y:r},this.emitter.emit("scroll",{deltaX:s,deltaY:r,event:e})});Q(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});Q(this,"onWheel",e=>{let{deltaX:t,deltaY:n,deltaMode:s}=e;const r=s===1?jh:s===2?this.window.width:1,i=s===1?jh:s===2?this.window.height:1;t*=r,n*=i,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})});Q(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Pn),this.element.addEventListener("touchstart",this.onTouchStart,Pn),this.element.addEventListener("touchmove",this.onTouchMove,Pn),this.element.addEventListener("touchend",this.onTouchEnd,Pn)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Pn),this.element.removeEventListener("touchstart",this.onTouchStart,Pn),this.element.removeEventListener("touchmove",this.onTouchMove,Pn),this.element.removeEventListener("touchend",this.onTouchEnd,Pn)}},Oh=e=>Math.min(1,1.001-Math.pow(2,-10*e)),g1=class{constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:s=!0,syncTouch:r=!1,syncTouchLerp:i=.075,touchInertiaExponent:o=1.7,duration:a,easing:l,lerp:c=.1,infinite:u=!1,orientation:d="vertical",gestureOrientation:h=d==="horizontal"?"both":"vertical",touchMultiplier:y=1,wheelMultiplier:g=1,autoResize:p=!0,prevent:v,virtualScroll:x,overscroll:b=!0,autoRaf:w=!1,anchors:_=!1,autoToggle:S=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:R=!1,naiveDimensions:A=R,stopInertiaOnNavigate:P=!1}={}){Q(this,"_isScrolling",!1);Q(this,"_isStopped",!1);Q(this,"_isLocked",!1);Q(this,"_preventNextNativeScrollEvent",!1);Q(this,"_resetVelocityTimeout",null);Q(this,"_rafId",null);Q(this,"isTouching");Q(this,"time",0);Q(this,"userData",{});Q(this,"lastVelocity",0);Q(this,"velocity",0);Q(this,"direction",0);Q(this,"options");Q(this,"targetScroll");Q(this,"animatedScroll");Q(this,"animate",new f1);Q(this,"emitter",new $v);Q(this,"dimensions");Q(this,"virtualScroll");Q(this,"onScrollEnd",e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()});Q(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});Q(this,"onTransitionEnd",e=>{e.propertyName.includes("overflow")&&this.checkOverflow()});Q(this,"onClick",e=>{const n=e.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.getAttribute("href"));if(this.options.anchors){const s=n.find(r=>{var i;return(i=r.getAttribute("href"))==null?void 0:i.includes("#")});if(s){const r=s.getAttribute("href");if(r){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,o=`#${r.split("#")[1]}`;this.scrollTo(o,i)}}}this.options.stopInertiaOnNavigate&&n.find(r=>r.host===window.location.host)&&this.reset()});Q(this,"onPointerDown",e=>{e.button===1&&this.reset()});Q(this,"onVirtualScroll",e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;const{deltaX:t,deltaY:n,event:s}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const r=s.type.includes("touch"),i=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=t===0&&n===0;if(this.options.syncTouch&&r&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&t===0;if(o||l)return;let c=s.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const u=this.options.prevent;if(c.find(v=>{var x,b,w;return v instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(v))||((x=v.hasAttribute)==null?void 0:x.call(v,"data-lenis-prevent"))||r&&((b=v.hasAttribute)==null?void 0:b.call(v,"data-lenis-prevent-touch"))||i&&((w=v.hasAttribute)==null?void 0:w.call(v,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(v,{deltaX:t,deltaY:n}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let h=n;this.options.gestureOrientation==="both"?h=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&n<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const y=r&&this.options.syncTouch,p=r&&s.type==="touchend";p&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...y?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});Q(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 e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),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))}});Q(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=l1,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=Oh:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:s,syncTouch:r,syncTouchLerp:i,touchInertiaExponent:o,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:h,orientation:d,touchMultiplier:y,wheelMultiplier:g,autoResize:p,prevent:v,virtualScroll:x,overscroll:b,autoRaf:w,anchors:_,autoToggle:S,allowNestedScroll:T,naiveDimensions:A,stopInertiaOnNavigate:P},this.dimensions=new p1(e,t,{autoResize:p}),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.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new m1(n,{touchMultiplier:y,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),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.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}get overflow(){const e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,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(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e,{offset:t=0,immediate:n=!1,lock:s=!1,programmatic:r=!0,lerp:i=r?this.options.lerp:void 0,duration:o=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:c,force:u=!1,userData:d}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let h;if(typeof e=="string"?(h=document.querySelector(e),h||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&(e!=null&&e.nodeType)&&(h=e),h){if(this.options.wrapper!==window){const g=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?g.left:g.top}const y=h.getBoundingClientRect();e=(this.isHorizontal?y.left:y.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const h=e-this.animatedScroll;h>this.limit/2?e=e-this.limit:h<-this.limit/2&&(e=e+this.limit)}}else e=Bv(0,e,this.limit);if(e===this.targetScroll){l==null||l(this),c==null||c(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=e),typeof o=="number"&&typeof a!="function"?a=Oh:typeof a=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:a,lerp:i,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(h,y)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),r&&(this.targetScroll=h),y||this.emit(),y&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:n}){const s=Date.now(),r=e._lenis??(e._lenis={});let i,o,a,l,c,u,d,h;const y=this.options.gestureOrientation;if(s-(r.time??0)>2e3){r.time=Date.now();const S=window.getComputedStyle(e);r.computedStyle=S;const T=S.overflowX,R=S.overflowY;if(i=["auto","overlay","scroll"].includes(T),o=["auto","overlay","scroll"].includes(R),r.hasOverflowX=i,r.hasOverflowY=o,!i&&!o||y==="vertical"&&!o||y==="horizontal"&&!i)return!1;c=e.scrollWidth,u=e.scrollHeight,d=e.clientWidth,h=e.clientHeight,a=c>d,l=u>h,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=c,r.scrollHeight=u,r.clientWidth=d,r.clientHeight=h}else a=r.isScrollableX,l=r.isScrollableY,i=r.hasOverflowX,o=r.hasOverflowY,c=r.scrollWidth,u=r.scrollHeight,d=r.clientWidth,h=r.clientHeight;if(!i&&!o||!a&&!l||y==="vertical"&&(!o||!l)||y==="horizontal"&&(!i||!a))return!1;let g;if(y==="horizontal")g="x";else if(y==="vertical")g="y";else{const S=t!==0,T=n!==0;S&&i&&a&&(g="x"),T&&o&&l&&(g="y")}if(!g)return!1;let p,v,x,b,w;if(g==="x")p=e.scrollLeft,v=c-d,x=t,b=i,w=a;else if(g==="y")p=e.scrollTop,v=u-h,x=n,b=o,w=l;else return!1;return(x>0?p0)&&b&&w}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.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 e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?d1(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},y1=class{constructor(e){Q(this,"listeners",[]);this.state=e}set(e){this.state=e;for(let t of this.listeners)t(this.state)}subscribe(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(t=>t!==e)}}get(){return this.state}};function v1(e){const[t,n]=m.useState(e.get());return m.useEffect(()=>e.subscribe(s=>n(s)),[e]),t}var zv=m.createContext(null),ec=new y1(null),fM=m.forwardRef(({children:e,root:t=!1,options:n={},autoRaf:s=!0,...r},i)=>{const o=m.useRef(null),a=m.useRef(null),[l,c]=m.useState(void 0);m.useImperativeHandle(i,()=>({wrapper:o.current,content:a.current,lenis:l}),[l]),m.useEffect(()=>{const y=new g1({...n,...o.current&&a.current&&{wrapper:o.current,content:a.current},autoRaf:(n==null?void 0:n.autoRaf)??s});return c(y),()=>{y.destroy(),c(void 0)}},[t,JSON.stringify({...n,wrapper:null,content:null})]);const u=m.useRef([]),d=m.useCallback((y,g)=>{u.current.push({callback:y,priority:g}),u.current.sort((p,v)=>p.priority-v.priority)},[]),h=m.useCallback(y=>{u.current=u.current.filter(g=>g.callback!==y)},[]);return m.useEffect(()=>{if(t&&l)return ec.set({lenis:l,addCallback:d,removeCallback:h}),()=>ec.set(null)},[t,l,d,h]),m.useEffect(()=>{if(!l)return;const y=g=>{var p;for(let v=0;v{l.off("scroll",y)}},[l]),e?f.jsx(zv.Provider,{value:{lenis:l,addCallback:d,removeCallback:h},children:t&&t!=="asChild"?e:f.jsx("div",{ref:o,...r,children:f.jsx("div",{ref:a,children:e})})}):null}),x1={};function b1(e,t=[],n=0){const s=m.useContext(zv),r=v1(ec),i=s??r??x1,{lenis:o,addCallback:a,removeCallback:l}=i;return m.useEffect(()=>{},[o,a,l,n,...t]),o}const Uo=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=m.useState(!1),a=zo(u=>u.setSheet),l=b1(),c=Ux();return f.jsxs(Qy,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Jy,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(Uv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Ru,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((u,d)=>u.hover?f.jsx(mO,{setIsOpen:o,...u},d):u.link?f.jsxs(_e,{to:u.link??"",onClick:()=>{var g,p;o(!1),a(!1);const h=(g=u.link)==null?void 0:g.split("#")[1],y=((p=u.link)==null?void 0:p.split("#")[0])||"/";if(h&&c.pathname===y){const v=document.getElementById(h);v&&l&&l.scrollTo(v,{offset:-140,duration:.8})}},className:"h-14 px-3 flex gap-3 relative justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:u.blank?"_blank":void 0,rel:u.blank?"noopener noreferrer":void 0,children:[u.text,u.blank&&f.jsx("img",{src:"/pdf.svg"})]},d):u.modal?f.jsx(a1,{title:u.text},u.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:u.text})},d))})]})},Uv=({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})})}),ts=({className:e})=>f.jsx(Ge,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(tm,{className:"animate-spin mx-auto text-primary size-16"})});function w1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mh(e){return w1(e)||Array.isArray(e)}function S1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ou(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],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!Mh(a)||!Mh(l)?a===l:Ou(a,l)})}function Dh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function _1(e,t){if(e.length!==t.length)return!1;const n=Dh(e),s=Dh(t);return n.every((r,i)=>{const o=s[i];return Ou(r,o)})}function Mu(e){return typeof e=="number"}function tc(e){return typeof e=="string"}function ga(e){return typeof e=="boolean"}function Lh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Du(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 C1(e){return Math.round(e*100)/100}function bi(e){return wi(e).map(Number)}function Bt(e){return e[Vi(e)]}function Vi(e){return Math.max(0,e.length-1)}function Lu(e,t){return t===Vi(e)}function Ih(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function wi(e){return Object.keys(e)}function Wv(e,t){return[e,t].reduce((n,s)=>(wi(s).forEach(r=>{const i=n[r],o=s[r],a=Lh(i)&&Lh(o);n[r]=a?Wv(i,o):o}),n),{})}function nc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function T1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(l){return i(l)/2}function i(l){return t-l}function o(l,c){return tc(e)?n[e](l):e(t,l,c)}return{measure:o}}function Si(){let e=[];function t(r,i,o,a={passive:!0}){let l;if("addEventListener"in r)r.addEventListener(i,o,a),l=()=>r.removeEventListener(i,o,a);else{const c=r;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function R1(e,t,n,s){const r=Si(),i=1e3/60;let o=null,a=0,l=0;function c(){r.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){y(),r.clear()}function d(v){if(!l)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),l&&(l=t.requestAnimationFrame(d))}function h(){l||(l=t.requestAnimationFrame(d))}function y(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:h,stop:y,update:n,render:s}}function A1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),l=d();function c(g){const{height:p,width:v}=g;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(g){return g*o}return{scroll:r,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:h}}function Ps(e=0,t=0){const n=Pe(e-t);function s(c){return ct}function i(c){return s(c)||r(c)}function o(c){return i(c)?s(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:r,reachedMin:s,removeOffset:a}}function Hv(e,t,n){const{constrain:s}=Ps(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 l(h){return i=o(h),d}function c(h){return u().set(a()+h)}function u(){return Hv(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function N1(e,t,n,s,r,i,o,a,l,c,u,d,h,y,g,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},R=Si(),A=Si(),P=Ps(50,225).constrain(y.measure(20)),O={mouse:300,touch:400},L={mouse:500,touch:600},M=g?43:25;let z=!1,F=0,Y=0,J=!1,Z=!1,K=!1,ie=!1;function he(G){if(!b)return;function pe(Ue){(ga(b)||b(G,Ue))&&it(Ue)}const Ce=t;R.add(Ce,"dragstart",Ue=>Ue.preventDefault(),T).add(Ce,"touchmove",()=>{},T).add(Ce,"touchend",()=>{}).add(Ce,"touchstart",pe).add(Ce,"mousedown",pe).add(Ce,"touchcancel",xe).add(Ce,"contextmenu",xe).add(Ce,"click",Oe,!0)}function ve(){R.clear(),A.clear()}function $e(){const G=ie?n:t;A.add(G,"touchmove",de,T).add(G,"touchend",xe).add(G,"mousemove",de,T).add(G,"mouseup",xe)}function Xe(G){const pe=G.nodeName||"";return S.includes(pe)}function Ye(){return(g?L:O)[ie?"mouse":"touch"]}function Ot(G,pe){const Ce=d.add(Du(G)*-1),Ue=u.byDistance(G,!g).distance;return g||Pe(G)=2,!(pe&&G.button!==0)&&(Xe(G.target)||(J=!0,i.pointerDown(G),c.useFriction(0).useDuration(0),r.set(o),$e(),F=i.readPoint(G),Y=i.readPoint(G,w),h.emit("pointerDown")))}function de(G){if(!nc(G,s)&&G.touches.length>=2)return xe(G);const Ce=i.readPoint(G),Ue=i.readPoint(G,w),gt=Kr(Ce,F),Tt=Kr(Ue,Y);if(!Z&&!ie&&(!G.cancelable||(Z=gt>Tt,!Z)))return xe(G);const E=i.pointerMove(G);gt>p&&(K=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(_(E)),G.preventDefault()}function xe(G){const Ce=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ye(),gt=Ot(_(Ue),Ce),Tt=E1(Ue,gt),E=M-10*Tt,N=x+Tt/50;Z=!1,J=!1,A.clear(),c.useDuration(E).useFriction(N),l.distance(gt,!g),ie=!1,h.emit("pointerUp")}function Oe(G){K&&(G.stopPropagation(),G.preventDefault(),K=!1)}function Ve(){return J}return{init:he,destroy:ve,pointerDown:Ve}}function P1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(nc(d,t)?d:d.touches[0])[g]}function a(d){return s=d,r=d,o(d)}function l(d){const h=o(d)-o(r),y=i(d)-i(s)>170;return r=d,y&&(s=d),h}function c(d){if(!s||!r)return 0;const h=o(r)-o(s),y=i(d)-i(s),g=i(d)-i(r)>170,p=h/y;return y&&!g&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function k1(){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 j1(e){function t(s){return e*(s/100)}return{measure:t}}function O1(e,t,n,s,r,i,o){const a=[e].concat(s);let l,c,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function y(v){if(!i)return;c=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),T=_?c:u[S],R=h(_?e:s[S]);if(Pe(R-T)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(ga(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:y,destroy:g}}function M1(e,t,n,s,r,i){let o=0,a=0,l=r,c=i,u=e.get(),d=0;function h(){const T=s.get()-e.get(),R=!l;let A=0;return R?(o=0,n.set(s),e.set(s),A=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),A=u-d),a=Du(A),d=u,S}function y(){const T=s.get()-t.get();return Pe(T)<.001}function g(){return l}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(T){return l=T,S}function _(T){return c=T,S}const S={direction:p,duration:g,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=Ps(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",p=Pe(e[g]-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(g),w=!p,_=Lu(n,p);return w?x:_||c(v,b)?v:c(x,b)?x:b}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:g,max:p}=a;return o.slice(g,p)}return{snapsContained:l,scrollContainLimit:a}}function I1(e,t,n){const s=t[0],r=n?s-e:Bt(t);return{limit:Ps(r,s)}}function F1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=Ps(i,o);function c(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function u(h){if(!c(h))return;const y=e*(h*-1);s.forEach(g=>g.add(y))}return{loop:u}}function V1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function B1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,l=d().map(t.measure),c=h(),u=y();function d(){return a(s).map(p=>Bt(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(c).map(p=>p[0]).map((p,v)=>p+l[v])}return{snaps:c,snapsAligned:u}}function $1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:l}=s,c=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,l).map((g,p,v)=>{const x=!p,b=Lu(v,p);if(x){const w=Bt(v[0])+1;return Ih(w)}if(b){const w=Vi(i)-Bt(v)[0]+1;return Ih(w,Bt(v)[0])}return g})}return{slideRegistry:c}}function z1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function l(g){return g.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function c(g){const p=e?o(g):a(g),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(g,p){const v=[g,g+n,g-n];if(!e)return g;if(!p)return l(v);const x=v.filter(b=>Du(b)===p);return x.length?l(x):Bt(v)-n}function d(g,p){const v=t[g]-r.get(),x=u(v,p);return{index:g,distance:x}}function h(g,p){const v=r.get()+g,{index:x,distance:b}=c(v),w=!e&&i(v);if(!p||w)return{index:x,distance:g};const _=t[x]-b,S=g+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function U1(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 l(d,h){const y=r.byDistance(d,h);a(y)}function c(d,h){const y=t.clone().set(d),g=r.byIndex(y.get(),h);a(g)}return{distance:l,index:c}}function W1(e,t,n,s,r,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(y){if(!a)return;function g(p){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Mu(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))&&g(v)},l)})}function d(y){y.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function Br(e){let t=e;function n(){return t}function s(l){t=o(l)}function r(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return Mu(l)?l:l.get()}return{get:n,set:s,add:r,subtract:i}}function qv(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 l(h){if(i)return;const y=C1(e.direction(h));y!==r&&(s.transform=n(y),r=y)}function c(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function H1(e,t,n,s,r,i,o,a,l){const u=bi(r),d=bi(r).reverse(),h=x().concat(b());function y(R,A){return R.reduce((P,O)=>P-r[O],A)}function g(R,A){return R.reduce((P,O)=>y(P,A)>0?P.concat([O]):P,[])}function p(R){return i.map((A,P)=>({start:A-s[P]+.5+R,end:A+t-.5+R}))}function v(R,A,P){const O=p(A);return R.map(L=>{const M=P?0:-n,z=P?n:0,F=P?"end":"start",Y=O[L][F];return{index:L,loopPoint:Y,slideLocation:Br(-1),translate:qv(e,l[L]),target:()=>a.get()>Y?M:z}})}function x(){const R=o[0],A=g(d,R);return v(A,n,!1)}function b(){const R=t-o[0]-1,A=g(u,R);return v(A,-n,!0)}function w(){return h.every(({index:R})=>{const A=u.filter(P=>P!==R);return y(A,t)<=.1})}function _(){h.forEach(R=>{const{target:A,translate:P,slideLocation:O}=R,L=A();L!==O.get()&&(P.to(L),O.set(L))})}function S(){h.forEach(R=>R.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function q1(e,t,n){let s,r=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(u=>{r||(ga(n)||n(l,u))&&c(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function Z1(e,t,n,s){const r={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.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(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return wi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(g&&b||!g&&!b)&&p.push(x),p},[])}function h(g=!0){if(g&&i)return i;if(!g&&o)return o;const p=d(g);return g&&(i=p),g||(o=p),p}return{init:c,destroy:u,get:h}}function K1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&r,u=g(),d=p(),h=n.map(o),y=v();function g(){if(!c)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!c)return 0;const b=i.getComputedStyle(Bt(s));return parseFloat(b.getPropertyValue(`margin-${l}`))}function v(){return n.map((b,w,_)=>{const S=!w,T=Lu(_,w);return S?h[w]+u:T?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function G1(e,t,n,s,r,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,h=Mu(n);function y(x,b){return bi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function g(x){return x.length?bi(x).reduce((b,w,_)=>{const S=Bt(b)||0,T=S===0,R=w===Vi(x),A=r[c]-i[S][c],P=r[c]-i[w][u],O=!s&&T?d(o):0,L=!s&&R?d(a):0,M=Pe(P-L-(A+O));return _&&M>t+l&&b.push(w),R&&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):g(x)}return{groupSlides:p}}function X1(e,t,n,s,r,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:g,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:T}=i,R=2,A=k1(),P=A.measure(t),O=n.map(A.measure),L=A1(l,c),M=L.measureSize(P),z=j1(M),F=T1(a,M),Y=!d&&!!b,J=d||!!b,{slideSizes:Z,slideSizesWithGaps:K,startGap:ie,endGap:he}=K1(L,P,O,n,J,r),ve=G1(L,M,v,d,P,O,ie,he,R),{snaps:$e,snapsAligned:Xe}=B1(L,F,P,O,ve),Ye=-Bt($e)+Bt(K),{snapsContained:Ot,scrollContainLimit:it}=L1(M,Ye,Xe,b,R),de=Y?Ot:Xe,{limit:xe}=I1(Ye,de,d),Oe=Hv(Vi(de),u,d),Ve=Oe.clone(),Se=bi(n),G=({dragHandler:Kt,scrollBody:ns,scrollBounds:Rr,options:{loop:ss}})=>{ss||Rr.constrain(Kt.pointerDown()),ns.seek()},pe=({scrollBody:Kt,translate:ns,location:Rr,offsetLocation:ss,previousLocation:xa,scrollLooper:$i,slideLooper:Mx,dragHandler:Dx,animation:Lx,eventHandler:Uu,scrollBounds:Ix,options:{loop:Wu}},Hu)=>{const qu=Kt.settled(),Fx=!Ix.shouldConstrain(),Zu=Wu?qu:qu&&Fx;Zu&&!Dx.pointerDown()&&(Lx.stop(),Uu.emit("settle")),Zu||Uu.emit("scroll");const Vx=Rr.get()*Hu+xa.get()*(1-Hu);ss.set(Vx),Wu&&($i.loop(Kt.direction()),Mx.loop()),ns.to(ss.get())},Ce=R1(s,r,()=>G(Tr),Kt=>pe(Tr,Kt)),Ue=.68,gt=de[Oe.get()],Tt=Br(gt),E=Br(gt),N=Br(gt),j=Br(gt),U=M1(Tt,N,E,j,h,Ue),B=z1(d,de,Ye,xe,j),I=U1(Ce,Oe,Ve,U,B,j,o),ee=V1(xe),le=Si(),Be=Z1(t,n,o,p),{slideRegistry:Me}=$1(Y,b,de,it,ve,Se),Zt=W1(e,n,Me,I,U,le,o,T),Tr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:P,slideRects:O,animation:Ce,axis:L,dragHandler:N1(L,e,s,r,j,P1(L,r),Tt,Ce,I,U,B,Oe,o,z,y,g,x,Ue,S),eventStore:le,percentOfView:z,index:Oe,indexPrevious:Ve,limit:xe,location:Tt,offsetLocation:N,previousLocation:E,options:i,resizeHandler:O1(t,o,r,n,L,w,A),scrollBody:U,scrollBounds:D1(xe,N,j,U,z),scrollLooper:F1(Ye,xe,N,[Tt,N,E,j]),scrollProgress:ee,scrollSnapList:de.map(ee.get),scrollSnaps:de,scrollTarget:B,scrollTo:I,slideLooper:H1(L,M,Ye,Z,K,$e,de,N,n),slideFocus:Zt,slidesHandler:q1(t,o,_),slidesInView:Be,slideIndexes:Se,slideRegistry:Me,slidesToScroll:ve,target:j,translate:qv(L,t)};return Tr}function Y1(){let e={},t;function n(c){t=c}function s(c){return e[c]||[]}function r(c){return s(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=s(c).concat([u]),l}function o(c,u){return e[c]=s(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:r,off:o,on:i,clear:a};return l}const Q1={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 J1(e){function t(i,o){return Wv(i,o||{})}function n(i){const o=i.breakpoints||{},a=wi(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function s(i){return i.map(o=>wi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function ej(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,l)=>Object.assign(a,{[l.name]:l}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Wo(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=J1(r),o=ej(i),a=Si(),l=Y1(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:g}=l,p=L;let v=!1,x,b=c(Q1,Wo.globalOptions),w=c(b),_=[],S,T,R;function A(){const{container:Se,slides:G}=w;T=(tc(Se)?e.querySelector(Se):Se)||e.children[0];const Ce=tc(G)?T.querySelectorAll(G):G;R=[].slice.call(Ce||T.children)}function P(Se){const G=X1(e,T,R,s,r,Se,l);if(Se.loop&&!G.slideLooper.canLoop()){const pe=Object.assign({},Se,{loop:!1});return P(pe)}return G}function O(Se,G){v||(b=c(b,Se),w=u(b),_=G||_,A(),x=P(w),d([b,..._.map(({options:pe})=>pe)]).forEach(pe=>a.add(pe,"change",L)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Ve),x.eventHandler.init(Ve),x.resizeHandler.init(Ve),x.slidesHandler.init(Ve),x.options.loop&&x.slideLooper.loop(),T.offsetParent&&R.length&&x.dragHandler.init(Ve),S=o.init(Ve,_)))}function L(Se,G){const pe=ve();M(),O(c({startIndex:pe},Se),G),l.emit("reInit")}function M(){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(),M(),l.emit("destroy"),l.clear())}function F(Se,G,pe){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(Se,pe||0))}function Y(Se){const G=x.index.add(1).get();F(G,Se,-1)}function J(Se){const G=x.index.add(-1).get();F(G,Se,1)}function Z(){return x.index.add(1).get()!==ve()}function K(){return x.index.add(-1).get()!==ve()}function ie(){return x.scrollSnapList}function he(){return x.scrollProgress.get(x.location.get())}function ve(){return x.index.get()}function $e(){return x.indexPrevious.get()}function Xe(){return x.slidesInView.get()}function Ye(){return x.slidesInView.get(!1)}function Ot(){return S}function it(){return x}function de(){return e}function xe(){return T}function Oe(){return R}const Ve={canScrollNext:Z,canScrollPrev:K,containerNode:xe,internalEngine:it,destroy:z,off:y,on:h,emit:g,plugins:Ot,previousScrollSnap:$e,reInit:p,rootNode:de,scrollNext:Y,scrollPrev:J,scrollProgress:he,scrollSnapList:ie,scrollTo:F,selectedScrollSnap:ve,slideNodes:Oe,slidesInView:Xe,slidesNotInView:Ye};return O(t,n),setTimeout(()=>l.emit("init"),0),Ve}Wo.globalOptions=void 0;function Rn(e={},t=[]){const n=m.useRef(e),s=m.useRef(t),[r,i]=m.useState(),[o,a]=m.useState(),l=m.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return m.useEffect(()=>{Ou(n.current,e)||(n.current=e,l())},[e,l]),m.useEffect(()=>{_1(s.current,t)||(s.current=t,l())},[t,l]),m.useEffect(()=>{if(S1()&&o){Wo.globalOptions=Rn.globalOptions;const c=Wo(o,n.current,s.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,r]}Rn.globalOptions=void 0;const tj=[{id:0,title:"Все компании",titleEn:"All companies",titleTm:"Ähli kompaniýalar"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions",titleTm:"Döwlet edaralary"},{id:1,title:"Местные компании",titleEn:"Local companies",titleTm:"Ýerli kompaniýalar"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies",titleTm:"Daşary ýurt kompaniýalary"}],hM=({className:e,setState:t,state:n,data:s=tj})=>{const r=Ee(g=>g.lang),i=Eo("(min-width: 768px)"),[o,a]=m.useState({left:0,width:0}),[l,c]=Rn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=m.useRef([]),d=m.useRef(null),h=m.useCallback(()=>{const g=u.current[n];if(g){if(i)a({left:g.offsetLeft,width:g.offsetWidth});else if(c){const p=c.rootNode(),v=c.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=g.offsetLeft;a({left:b-x,width:g.offsetWidth})}}},[n,i,c]);m.useEffect(()=>{!i&&c||(c==null||c.scrollTo(n),h())},[c,n,h,i]),m.useEffect(()=>{if(c)return h(),c.on("scroll",h),c.on("resize",h),()=>{c.off("scroll",h),c.off("resize",h)}},[c,h]);const y=m.useCallback(g=>{t(g),!i&&c&&c.scrollTo(g)},[c,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((g,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"?g.title:r==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))}):f.jsx("div",{ref:l,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((g,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"?g.title:r==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},pM=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const l=Ee(c=>c.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:[{ru:"Название",en:"Company",tm:"Kompaniýa"}[l],":"]}),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:[{ru:"Страна",en:"Country",tm:"Ýurt"}[l],":"]}),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:[{ru:"Сфера",en:"Industry",tm:"Pudak"}[l],":"]}),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})]})]})},nj=e=>{const{data:t,isPending:n,status:s}=Tn({queryKey:["photos",e],queryFn:()=>s1(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},sj=e=>{const{data:t,isPending:n,isError:s}=Tn({queryKey:["videos",e],queryFn:()=>r1(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},mM=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[s,r]=Rn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=nj(1),{data:o}=sj(1);tR();const[a,l]=m.useState(!1),[c,u]=m.useState(!1);m.useEffect(()=>{if(!r)return;const g=()=>{l(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",g),g(),()=>{r.off("select",g)}},[r]),m.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(g=>{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=g==null?void 0:g.photo)==null?void 0:p.path,alt:g.photo.file_name,className:"max-h-full max-w-full object-contain"})},g.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(g=>{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=g==null?void 0:g.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},g.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(Ac,{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(yl,{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(em,{onClick:()=>c&&(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",!c&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},gM=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var g;const[o,a]=m.useState(!1),[l,c]=m.useState(!1),u=Ee(p=>p.lang),[d,h]=m.useState(100),y=({className:p})=>{const[v,x]=Rn({});return m.useEffect(()=>{if(!x)return;const b=()=>{a(x.canScrollPrev()),c(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:{ru:"Работы дизайнера",en:"Designer works",tm:"Dizaýneriň işleri"}[u]}),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(yl,{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)}))}),l&&f.jsx(em,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!l&&"opacity-20")})]})})]})};return f.jsxs(ev,{children:[f.jsxs(tv,{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(Au,{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(yl,{}),{ru:"Вернуться назад",en:"Go back",tm:"Yza gaýdyň"}[u]]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(g=i==null?void 0:i[d])==null?void 0:g.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})};function Zv(e,t=[]){let n=[];function s(i,o){const a=m.createContext(o),l=n.length;n=[...n,o];const c=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[l])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};c.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const r=()=>{const i=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[s,rj(r,...t)]}function rj(...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:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function He(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 Fh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ya(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Fh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(lj);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function oj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=uj(r),a=cj(i,r.props);return r.type!==m.Fragment&&(a.ref=s?ya(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aj=Symbol("radix.slottable");function lj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aj}function cj(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 l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function uj(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 dj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Et=dj.reduce((e,t)=>{const n=ij(`Primitive.${t}`),s=m.forwardRef((r,i)=>{const{asChild:o,...a}=r,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function sc(e,t){e&&hc.flushSync(()=>e.dispatchEvent(t))}var ks=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},fj=fc[" useInsertionEffect ".trim().toString()]||ks;function Kv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=hj({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const u=m.useRef(e!==void 0);m.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 c=m.useCallback(u=>{var d;if(a){const h=pj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[l,c]}function hj({defaultProp:e,onChange:t}){const[n,s]=m.useState(e),r=m.useRef(n),i=m.useRef(t);return fj(()=>{i.current=t},[t]),m.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function pj(e){return typeof e=="function"}var mj=m.createContext(void 0);function gj(e){const t=m.useContext(mj);return e||t||"ltr"}function yj(e,t){return m.useReducer((n,s)=>t[n][s]??n,e)}var Bi=e=>{const{present:t,children:n}=e,s=vj(t),r=typeof n=="function"?n({present:s.isPresent}):m.Children.only(n),i=dn(s.ref,xj(r));return typeof n=="function"||s.isPresent?m.cloneElement(r,{ref:i}):null};Bi.displayName="Presence";function vj(e){const[t,n]=m.useState(),s=m.useRef(null),r=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=yj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=to(s.current);i.current=a==="mounted"?c:"none"},[a]),ks(()=>{const c=s.current,u=r.current;if(u!==e){const h=i.current,y=to(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),ks(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const p=to(s.current).includes(CSS.escape(y.animationName));if(y.target===t&&p&&(l("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=to(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{s.current=c?getComputedStyle(c):null,n(c)},[])}}function to(e){return(e==null?void 0:e.animationName)||"none"}function xj(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 bj=fc[" useId ".trim().toString()]||(()=>{}),wj=0;function Gv(e){const[t,n]=m.useState(bj());return ks(()=>{n(s=>s??String(wj++))},[e]),e||(t?`radix-${t}`:"")}function Vh(e){const t=Sj(e),n=m.forwardRef((s,r)=>{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(Ej);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Sj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=Tj(r),a=Cj(i,r.props);return r.type!==m.Fragment&&(a.ref=s?ya(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _j=Symbol("radix.slottable");function Ej(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_j}function Cj(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 l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}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)}function Xv(e){const t=e+"CollectionProvider",[n,s]=Zv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=fe.useRef(null),w=fe.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",l=Vh(a),c=fe.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(l,{ref:_,children:b})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Vh(u),y=fe.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=fe.useRef(null),S=dn(v,_),T=i(u,x);return fe.useEffect(()=>(T.itemMap.set(_,{ref:_,...w}),()=>void T.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function g(p){const v=i(e+"CollectionConsumer",p);return fe.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((T,R)=>w.indexOf(T.ref.current)-w.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:c,ItemSlot:y},g,s]}function Jt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.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);m.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 Aj="DismissableLayer",rc="dismissableLayer.update",Nj="dismissableLayer.pointerDownOutside",Pj="dismissableLayer.focusOutside",Bh,Yv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=m.useContext(Yv),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=dn(t,R=>d(R)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Oj(R=>{const A=R.target,P=[...c.branches].some(O=>O.contains(A));!_||P||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},h),T=Mj(R=>{const A=R.target;[...c.branches].some(O=>O.contains(A))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},h);return Rj(R=>{b===c.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Bh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),$h(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Bh)}},[u,h,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),$h())},[u,c]),m.useEffect(()=>{const R=()=>y({});return document.addEventListener(rc,R),()=>document.removeEventListener(rc,R)},[]),f.jsx(Et.div,{...l,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:He(e.onFocusCapture,T.onFocusCapture),onBlurCapture:He(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:He(e.onPointerDownCapture,S.onPointerDownCapture)})});Qv.displayName=Aj;var kj="DismissableLayerBranch",jj=m.forwardRef((e,t)=>{const n=m.useContext(Yv),s=m.useRef(null),r=dn(t,s);return m.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(Et.div,{...e,ref:r})});jj.displayName=kj;function Oj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Jv(Nj,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}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 Mj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!s.current&&Jv(Pj,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 $h(){const e=new CustomEvent(rc);document.dispatchEvent(e)}function Jv(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?sc(r,i):r.dispatchEvent(i)}function Dj(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function zh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lj(...e){return t=>{let n=!1;const s=e.map(r=>{const i=zh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(Bj);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Fj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=zj(r),a=$j(i,r.props);return r.type!==m.Fragment&&(a.ref=s?Lj(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vj=Symbol("radix.slottable");function Bj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vj}function $j(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 l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function zj(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 Uj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wj=Uj.reduce((e,t)=>{const n=Ij(`Primitive.${t}`),s=m.forwardRef((r,i)=>{const{asChild:o,...a}=r,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Hj=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"}),qj="VisuallyHidden",ex=m.forwardRef((e,t)=>f.jsx(Wj.span,{...e,ref:t,style:{...Hj,...e.style}}));ex.displayName=qj;var Zj=ex,Ms="NavigationMenu",[Iu,tx,Kj]=Xv(Ms),[ic,Gj,Xj]=Xv(Ms),[Fu,yM]=Zv(Ms,[Kj,Xj]),[Yj,jt]=Fu(Ms),[Qj,Jj]=Fu(Ms),nx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:c,...u}=e,[d,h]=m.useState(null),y=dn(t,P=>h(P)),g=gj(c),p=m.useRef(0),v=m.useRef(0),x=m.useRef(0),[b,w]=m.useState(!0),[_,S]=Kv({prop:s,onChange:P=>{const O=P!=="",L=a>0;O?(window.clearTimeout(x.current),L&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(P)},defaultProp:i??"",caller:Ms}),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),R=m.useCallback(P=>{window.clearTimeout(v.current),S(P)},[S]),A=m.useCallback(P=>{_===P?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(P)},o)},[_,S,o]);return m.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(sx,{scope:n,isRootMenu:!0,value:_,dir:g,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(p.current),b?A(P):R(P)},onTriggerLeave:()=>{window.clearTimeout(p.current),T()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:T,onItemSelect:P=>{S(O=>O===P?"":P)},onItemDismiss:()=>S(""),children:f.jsx(Et.nav,{"aria-label":"Main","data-orientation":l,dir:g,...u,ref:y})})});nx.displayName=Ms;var oc="NavigationMenuSub",eO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,l=jt(oc,n),[c,u]=Kv({prop:s,onChange:r,defaultProp:i??"",caller:oc});return f.jsx(sx,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(Et.div,{"data-orientation":o,...a,ref:t})})});eO.displayName=oc;var sx=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[g,p]=m.useState(null),[v,x]=m.useState(new Map),[b,w]=m.useState(null);return f.jsx(Yj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Dj(a),baseId:Gv(),dir:r,orientation:i,viewport:g,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(y),onItemSelect:Jt(l),onItemDismiss:Jt(c),onViewportContentChange:m.useCallback((_,S)=>{x(T=>(T.set(_,S),new Map(T)))},[]),onViewportContentRemove:m.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Iu.Provider,{scope:t,children:f.jsx(Qj,{scope:t,items:v,children:o})})})},rx="NavigationMenuList",ix=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(rx,n),i=f.jsx(Et.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(Et.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Iu.Slot,{scope:n,children:r.isRootMenu?f.jsx(mx,{asChild:!0,children:i}):i})})});ix.displayName=rx;var ox="NavigationMenuItem",[tO,ax]=Fu(ox),lx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=Gv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=m.useRef(null),l=m.useRef(null),c=m.useRef(null),u=m.useRef(()=>{}),d=m.useRef(!1),h=m.useCallback((g="start")=>{if(a.current){u.current();const p=lc(a.current);p.length&&$u(g==="start"?p:p.reverse())}},[]),y=m.useCallback(()=>{if(a.current){const g=lc(a.current);g.length&&(u.current=lO(g))}},[]);return f.jsx(tO,{scope:n,value:o,triggerRef:l,contentRef:a,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(Et.li,{...r,ref:t})})});lx.displayName=ox;var ac="NavigationMenuTrigger",cx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=jt(ac,e.__scopeNavigationMenu),o=ax(ac,e.__scopeNavigationMenu),a=m.useRef(null),l=dn(a,o.triggerRef,t),c=yx(i.baseId,o.value),u=vx(i.baseId,o.value),d=m.useRef(!1),h=m.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Iu.ItemSlot,{scope:n,value:o.value,children:f.jsx(gx,{asChild:!0,children:f.jsx(Et.button,{id:c,disabled:s,"data-disabled":s?"":void 0,"data-state":zu(y),"aria-expanded":y,"aria-controls":u,...r,ref:l,onPointerEnter:He(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:He(e.onPointerMove,Ho(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:He(e.onPointerLeave,Ho(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:He(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:He(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&g.key===v&&(o.onEntryKeyDown(),g.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(Zj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{const p=o.contentRef.current,v=g.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})]})]})});cx.displayName=ac;var nO="NavigationMenuLink",Uh="navigationMenu.linkSelect",ux=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(gx,{asChild:!0,children:f.jsx(Et.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:He(e.onClick,o=>{const a=o.target,l=new CustomEvent(Uh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Uh,c=>r==null?void 0:r(c),{once:!0}),sc(a,l),!l.defaultPrevented&&!o.metaKey){const c=new CustomEvent(mo,{bubbles:!0,cancelable:!0});sc(a,c)}},{checkForDefaultPrevented:!1})})})});ux.displayName=nO;var Vu="NavigationMenuIndicator",dx=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=jt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?sp.createPortal(f.jsx(Bi,{present:n||i,children:f.jsx(sO,{...s,ref:t})}),r.indicatorTrack):null});dx.displayName=Vu;var sO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(Vu,n),i=tx(n),[o,a]=m.useState(null),[l,c]=m.useState(null),u=r.orientation==="horizontal",d=!!r.value;m.useEffect(()=>{var p;const g=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;g&&a(g)},[i,r.value]);const h=()=>{o&&c({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cc(o,h),cc(r.indicatorTrack,h),l?f.jsx(Et.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...s.style}}):null}),gr="NavigationMenuContent",fx=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=jt(gr,e.__scopeNavigationMenu),i=ax(gr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(rO,{forceMount:n,...l,ref:o}):f.jsx(Bi,{present:n||a,children:f.jsx(hx,{"data-state":zu(a),...l,ref:o,onPointerEnter:He(e.onPointerEnter,r.onContentEnter),onPointerLeave:He(e.onPointerLeave,Ho(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...l.style}})})});fx.displayName=gr;var rO=m.forwardRef((e,t)=>{const n=jt(gr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return ks(()=>{s(e.value,{ref:t,...e})},[e,t,s]),ks(()=>()=>r(e.value),[e.value,r]),null}),mo="navigationMenu.rootContentDismiss",hx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:l,...c}=e,u=jt(gr,n),d=m.useRef(null),h=dn(d,t),y=yx(u.baseId,s),g=vx(u.baseId,s),p=tx(n),v=m.useRef(null),{onItemDismiss:x}=u;m.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(mo,_),()=>w.removeEventListener(mo,_)}},[u.isRootMenu,e.value,r,x,a]);const b=m.useMemo(()=>{const _=p().map(O=>O.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),T=_.indexOf(u.previousValue),R=s===u.value,A=T===_.indexOf(s);if(!R&&!A)return v.current;const P=(()=>{if(S!==T){if(R&&T!==-1)return S>T?"from-end":"from-start";if(A&&S!==-1)return S>T?"to-start":"to-end"}return null})();return v.current=P,P},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(mx,{asChild:!0,children:f.jsx(Qv,{id:g,"aria-labelledby":y,"data-motion":b,"data-orientation":u.orientation,...c,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(mo,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:He(e.onFocusOutside,w=>{var S;l();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:He(e.onPointerDownOutside,w=>{var R;const _=w.target,S=p().some(A=>{var P;return(P=A.ref.current)==null?void 0:P.contains(_)}),T=u.isRootMenu&&((R=u.viewport)==null?void 0:R.contains(_));(S||T||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:He(e.onKeyDown,w=>{var T;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const R=lc(w.currentTarget),A=document.activeElement,P=R.findIndex(M=>M===A),L=w.shiftKey?R.slice(0,P).reverse():R.slice(P+1,R.length);$u(L)?w.preventDefault():(T=i.current)==null||T.focus()}}),onEscapeKeyDown:He(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",px=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!jt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Bi,{present:n||i,children:f.jsx(iO,{...s,ref:t})})});px.displayName=Bu;var iO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=jt(Bu,n),o=dn(t,i.onViewportChange),a=Jj(gr,e.__scopeNavigationMenu),[l,c]=m.useState(null),[u,d]=m.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,y=l?(l==null?void 0:l.height)+"px":void 0,g=!!i.value,p=g?i.value:i.previousValue;return cc(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(Et.div,{"data-state":zu(g),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...r.style},onPointerEnter:He(e.onPointerEnter,i.onContentEnter),onPointerLeave:He(e.onPointerLeave,Ho(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Bi,{present:w||S,children:f.jsx(hx,{..._,ref:ya(b,T=>{S&&T&&d(T)})})},x)})})}),oO="FocusGroup",mx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(oO,n);return f.jsx(ic.Provider,{scope:n,children:f.jsx(ic.Slot,{scope:n,children:f.jsx(Et.div,{dir:r.dir,...s,ref:t})})})}),Wh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],aO="FocusGroupItem",gx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Gj(n),i=jt(aO,n);return f.jsx(ic.ItemSlot,{scope:n,children:f.jsx(Et.button,{...s,ref:t,onKeyDown:He(e.onKeyDown,o=>{if(["Home","End",...Wh].includes(o.key)){let l=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),Wh.includes(o.key)){const d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>$u(l)),o.preventDefault()}})})})});function lc(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 lO(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 cc(e,t){const n=Jt(t);ks(()=>{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 yx(e,t){return`${e}-trigger-${t}`}function vx(e,t){return`${e}-content-${t}`}function Ho(e){return t=>t.pointerType==="mouse"?e(t):void 0}var xx=nx,bx=ix,cO=lx,wx=cx,uO=ux,Sx=dx,_x=fx,Ex=px;const Cx=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(xx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(Nx,{})]}));Cx.displayName=xx.displayName;const Tx=m.forwardRef(({className:e,...t},n)=>f.jsx(bx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));Tx.displayName=bx.displayName;const dO=cO,fO=Yo("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"),Rx=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(wx,{ref:s,className:V(fO(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(a0,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Rx.displayName=wx.displayName;const Ax=m.forwardRef(({className:e,...t},n)=>f.jsx(_x,{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}));Ax.displayName=_x.displayName;const hO=uO,Nx=m.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(Ex,{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})}));Nx.displayName=Ex.displayName;const pO=m.forwardRef(({className:e,...t},n)=>f.jsx(Sx,{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"})}));pO.displayName=Sx.displayName;const mO=({className:e,text:t,hoverItems:n,setIsOpen:s})=>{const r=zo(i=>i.setSheet);return f.jsx(Cx,{children:f.jsx(Tx,{children:f.jsxs(dO,{className:"w-full",children:[f.jsx(Rx,{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(Ax,{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(hO,{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(_e,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},vt=e=>e===Ke.RU?0:e===Ke.TM?2:1,uc=[{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"}]},{title:"Serginiň tematiki ugurlary",bottom_text:` + Gatnaşyjylar innowasion çözgütleri görkezip, özara peýdaly hyzmatdaşlyklary ýola goýup we täze bazarlara çykyp bilerler.`,data:[{title:"Dokma maşynlary we enjamlary",img:"/theme/1.svg"},{title:"Eşik, aýakgap, deri önümleri",img:"/theme/2.svg"},{title:"Tebigy süýümleri gaýtadan işlemek",img:"/theme/3.svg"},{title:"Öý dokmasy we eko-dokma",img:"/theme/4.svg"},{title:"Ätiýaçlyk şaýlar we kömekçi materiallar",img:"/theme/5.svg"},{title:"Himiki serişdeler we boýaglar",img:"/theme/6.svg"},{title:"Aksessuarlar we tikin furniturasy",img:"/theme/7.svg"},{title:"Moda we bezeg (dizaýn)",img:"/theme/8.svg"}]}],Px=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["industries",e],queryFn:()=>e1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},vM=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Px();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(Ge,{children:s?f.jsx(ts,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:uc[vt(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(pm,{...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:uc[vt(t)].bottom_text})]})]})})})},kx=[{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"}]},{title:"Serginiň wagty",data:[{name:"Sergini gurnamaklyk",date:"2026-njy ýylyň 30 Maýy – 3 iýuny"},{name:"Işi",date:"4-6 iýun 2026-njy ýyl"},{name:"Sökmek",date:"7 iýun 2026 ýyl"}]}],jx=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["exhibiton-time",e],queryFn:()=>t1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},xM=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=jx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(Ge,{children:s?f.jsx(ts,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:kx[vt(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)=>m.createElement(mm,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Hh=[{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."]},{title:"Geçirilýän ýeri",data:["Türkmenistanyň Söwda-senagat edarasynyň Sergi merkezi – bu halkara sergileri, konferensiýalary, forumlary we işewür duşuşyklary geçirmek üçin häzirkizaman meýdançasydyr.","Merkez öňdebaryjy tehniki çözgütler, şol sanda multimedia enjamlary, sesgüýçlendiriji we yşyklandyryjy sistemalar, sinhron terjimeli konferens-zallary, şeýle hem gepleşikler üçin oňaýly zonalar bilen abzallaşdyrylandyr. Giň sergi pawilýonlary önümleri görkezmek we hyzmatlar üçin rahat şertleri üpjün edýärler."]}],bM=({className:e})=>{const t=Ee(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(Ge,{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:Hh[vt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Hh[vt(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"})})]})})},no=[{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"},{title:"Gatnaşmaga çakylyk",p:"Türkmenistanyň dokma senagaty Ministrligi Türkmenistanyň halkara ykdysady arenada orunlaryny berkitmekde wajyp ädim boljak bu uly waka gatnaşmaga bütin dünýäniň biznes-bileleşiklerini çagyrýar.",button1:"Stend bronlamak",button2:"B2B | B2G duşuşyklar"}],wM=({className:e})=>{const t=Ee(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(Ge,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:no[vt(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:no[vt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(_e,{to:"/stend-form",className:"w-full",children:f.jsx(nt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:no[vt(t)].button1})}),f.jsx(_e,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(nt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:no[vt(t)].button2})})]})]})]})},Ox=e=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Tn({queryKey:["static-words",t,e],queryFn:()=>Yk(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},SM=()=>{var h,y,g,p,v,x,b,w;const e=Ee(_=>_.lang),{t}=js("about"),{data:n,isPending:s}=Ox("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=(g=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:g.text,a=(p=n==null?void 0:n.find(_=>_.key==="about_4"))==null?void 0:p.text,l=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,c=(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(ts,{}):f.jsxs(Ge,{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:l==null?void 0:l.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:c}),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(_e,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(nt,{children:t("main.button")})})]})},gO={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function yO(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function vO(e,t){const n=e.rootNode();return t&&t(n)||n}function va(e={}){let t,n,s,r,i=null,o=0,a=!1,l=!1,c=!1,u=!1;function d(F,Y){n=F;const{mergeOptions:J,optionsAtMedia:Z}=Y,K=J(gO,va.globalOptions),ie=J(K,e);if(t=Z(ie),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=yO(n,t.delay);const{eventStore:he,ownerDocument:ve}=n.internalEngine(),$e=!!n.internalEngine().options.watchDrag,Xe=vO(n,t.rootNode);he.add(ve,"visibilitychange",x),$e&&n.on("pointerDown",w),$e&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&he.add(Xe,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&he.add(Xe,"mouseleave",T),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&he.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 g(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){c=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){s||(a&&n.emit("autoplay:stop"),g(),a=!1)}function x(){if(b())return c=a,v();c&&p()}function b(){const{ownerDocument:F}=n.internalEngine();return F.visibilityState==="hidden"}function w(){l||v()}function _(){l||p()}function S(){l=!0,v()}function T(){l=!1,p()}function R(F){typeof F<"u"&&(u=F),p()}function A(){a&&v()}function P(){a&&p()}function O(){return a}function L(){const{index:F}=n.internalEngine(),Y=F.clone().add(1).get(),J=n.scrollSnapList().length-1,Z=t.stopOnLastSnap&&Y===J;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),Z)return v();p()}function M(){if(!i)return null;const F=r[n.selectedScrollSnap()],Y=new Date().getTime()-i;return F-Y}return{name:"autoplay",options:e,init:d,destroy:h,play:R,stop:A,reset:P,isPlaying:O,timeUntilNext:M}}va.globalOptions=void 0;const _M=()=>{const{t:e}=js("home"),[t]=Rn({loop:!0},[va({delay:5e3,stopOnInteraction:!1})]),n=Eo("(min-width: 1024px)"),s=Eo("(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 lg:max-h-[600px] lg:min-h-[320px]",children:i==null?void 0:i.map((o,a)=>o.path.includes(".mp4")?f.jsx(_e,{to:(o==null?void 0:o.link)??"",className:"embla__slide flex-[0_0_100%]",children:f.jsx("video",{autoPlay:!0,controls:!1,muted:!0,loop:!0,src:o.path,className:"size-full object-cover"})},a):o.link?f.jsx(_e,{to:o.link,className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a):f.jsx("div",{className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a))})})})})},xO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["home-contacts",e],queryFn:()=>Jk(e),select:({data:s})=>s.data});return{data:t,isPending:n}},EM=({className:e})=>{const t=Ee(o=>o.lang),{data:n,isPending:s}=jx(),{data:r}=xO(),i=vt(t);return s?f.jsx(ts,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 mb-6",children:kx[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)=>m.createElement(mm,{...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)=>m.createElement(CS,{...o,key:a,className:"w-full"}))}),f.jsx(_e,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(nt,{className:"w-full",children:{ru:"Забронируйте стенд",en:"Book a stand",tm:"Stend bronlaň"}[t]})})]})]})})},qh=[{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:"Отчет",button2:"Каталог"},{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:"Report",button2:"Catalog"},{h2:"Aşgabatda «TurkmenTextile Expo-2025» sergi-ýarmarkasy",p:`Pudagyň dünýä liderlerini, innowasion önümçileri we döredijilikli dizaýnerleri birleşdirjek halkara sergi-ýarmarka. + Biziň maksadymyz – Türkmenistany dokma we moda senagatynyň esasy merkezi hökmünde berkitmek. + `,p_2:`Sergi durnukly praktikalary, häzirkizaman tilsimatlary we dizaýn çözgütlerini öwrenmek üçin platforma bolar. + «TurkmenTextile Expo-2025» – bu däp-dessurlary we innowasiýalary, önüm öndürijileri we sarp edijileri, Türkmenistany we dünýäni birleşdirýän platformadyr!`,data:[{nums:"10,000 m²",text:"Sergi meýdanyňky"},{nums:"10000+",text:"Geljek adamlaryň garaşylýan sany"},{nums:"100+",text:"30 ýurtdan gowurak eksponentler"},{nums:"80%",text:"Top-menejmentden gatnaşyjylar"}],button:"Hasabat",button2:"Katalog"}],bO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["stats",e],queryFn:()=>Qk(e),select:({data:s})=>s.data});return{data:t,isPending:n}},CM=()=>{var c,u;const[e]=Rn(),t=Ee(d=>d.lang),{t:n}=js("home"),{data:s,isPending:r}=Ox("1"),{data:i}=bO(),o=(c=s==null?void 0:s.find(d=>d.key==="index_1"))==null?void 0:c.text,a=(u=s==null?void 0:s.find(d=>d.key==="index_2"))==null?void 0:u.text,l=vt(t);return r?f.jsx(ts,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ge,{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:o}),f.jsx("div",{dangerouslySetInnerHTML:{__html:a||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsxs("div",{className:"flex w-full gap-8",children:[f.jsx(_e,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(nt,{children:qh[l].button})}),f.jsx(_e,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(nt,{className:"px-16",children:qh[l].button2})})]})]}),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:i==null?void 0:i.map(d=>f.jsx(_S,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},TM=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Px();return n?f.jsx(ts,{}):f.jsx("section",{id:"themes",className:"",children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:uc[vt(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(pm,{...s},r))})]})})},wO=[{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"}]},{data:[{img:"/offer-1.png",title:"Myhmanhanalar, transfer, wizalar",btnText:"Ýol görkezijini ýüklemek",text:"Myhmanhanalara ýerleşmek, wiza goldawy, ulag we ekskursiýa meseleleri boýunça Siz ýol görkezijiden tanyşyp bilersiňiz",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"TurkmenTextile Expo 2026 serginiň meýilnamasy bilen tanyşmak",btnText:"Serginiň meýilnamasyny ýüklemeli",text:"Sergide oňat ýeri nädip saýlamaly? Sergi ekspozisiýasyny şowly ýerleşdirmegiň Siziň potensial müşderileriňizi çekmek boýunça mümkinçilikleriňizi has-da artdyrýandygyny Siz hemişe ýatda saklamalysyňyz.",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],RM=()=>{const[e,t]=Rn({align:"start"}),[n,s]=m.useState(0),r=Ee(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.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(Ge,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:wO[vt(r)].data.map(o=>m.createElement(ES,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(jR,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},SO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["sponsors",e],queryFn:()=>i1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},AM=({className:e})=>{const[t]=Rn({loop:!0,align:"start",skipSnaps:!0,duration:75},[va({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=SO(),{t:r}=js("home",{keyPrefix:"sponsors"});return s?f.jsx(ts,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ge,{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,l;return i.link?f.jsxs(_e,{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:(l=i==null?void 0:i.image)==null?void 0:l.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)})})})]})})},_O=e=>{const{data:t,isPending:n}=Tn({queryKey:["news",e],queryFn:()=>n1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},EO=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return f.jsx(_e,{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(s0,{})]}),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"})]})})},NM=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=_O(e);return n?f.jsx(ts,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[e]}),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=>m.createElement(EO,{...s,key:s.title}))})]})})},PM=({className:e})=>{const{t}=js("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ge,{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(Uo,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(nt,{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(Uv,{w:"40",h:"40",color:"white"})]})},r):f.jsx(_e,{to:s.link??"",target:s.blank?"_blank":"",children:f.jsx(nt,{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))})})})},CO=()=>{const{t:e}=js("nav"),t=Ee(i=>i.lang),n=zo(i=>i.sheet),s=zo(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return f.jsxs(eS,{onOpenChange:()=>s(!n),open:n,children:[f.jsx(tS,{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(lm,{className:"overflow-y-auto z-[100]",children:[f.jsx(nS,{}),f.jsxs(cm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(_e,{to:t===Ke.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(nt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[t]})}),f.jsx(_e,{to:"/become-sponsor",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[t]})})]}),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(Uo,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(_e,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},kM=()=>{const e=Ee(s=>s.lang),{t}=js("nav"),n=t("navigation",{returnObjects:!0});return f.jsx("div",{className:"lg:h-[128px] h-20",children:f.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100]",children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden bg-background",children:f.jsxs(Ge,{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(m0,{}),f.jsx("h4",{className:"text-sm",children:{ru:"Ашхабад, Туркменистан",en:"Ashgabat, Turkmenistan",tm:"Aşgabat, Türkmenistan"}[e]})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?f.jsx(Uo,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):f.jsx(_e,{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(v0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(hh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ge,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(_e,{to:"/",children:f.jsx(hm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?f.jsx(Uo,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):f.jsx(_e,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(hh,{className:"lg:hidden",light:!0}),f.jsx(CO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(_e,{to:e===Ke.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(nt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[e]})}),f.jsx(_e,{to:"/become-sponsor",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[e]})})]})]})})]})})},jM=()=>{const e=Ee(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Vv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ge,{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(hm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(_e,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(d0,{className:"text-white"})}),f.jsx(_e,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(_e,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(_e,{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:{ru:"©2025 Все права защищены",en:"All rights reserved",tm:"Ähli hukuklar goralan"}[e]})]})})]})},Ge=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),OM=({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{Ge as $,py as A,my as B,VO as C,nt as D,bR as E,jM as F,FO as G,kM as H,DO as I,BO as J,dN as K,jO as L,Fe as M,OM as N,IO as O,ut as P,SM as Q,fM as R,yr as S,vM as T,xM as U,bM as V,wM as W,aM as X,js as Y,tm as Z,lM as _,b1 as a,nj as a0,sj as a1,mM as a2,hM as a3,OO as a4,ts as a5,Tn as a6,cM as a7,_O as a8,EO as a9,uM as aa,pM as ab,oM as ac,Rn as ad,va as ae,dM as af,gM as ag,yl as ah,em as ai,AO as aj,NO as ak,_M as b,V as c,PM as d,CM as e,AM as f,RM as g,TM as h,MO as i,f as j,EM as k,NM as l,vc as m,Wt as n,so as o,xt as p,yp as q,MA as r,vr as s,ra as t,Ee as u,Hr as v,vt as w,_R as x,hy as y,yh as z}; diff --git a/dist/index.html b/dist/index.html index 6bba224..6c16310 100644 --- a/dist/index.html +++ b/dist/index.html @@ -66,9 +66,9 @@ })(window, document, "script", "dataLayer", "GTM-NK394LVK"); Turkmen Textile - - - + + + diff --git a/src/locales/tm/home.json b/src/locales/tm/home.json index 8c3be22..f92de03 100644 --- a/src/locales/tm/home.json +++ b/src/locales/tm/home.json @@ -2,19 +2,19 @@ "banners": { "lg": [ { - "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_eng.mp4", + "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_tm.mp4", "link": "/stend-form" } ], "md": [ { - "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_eng.mp4", + "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_tm.mp4", "link": "/stend-form" } ], "sm": [ { - "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_eng.mp4", + "path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/surat/05112025/1920x600_TEXTILE_WebBanners_tm.mp4", "link": "/stend-form" } ]