diff --git a/dist/assets/index-CYfuAT45.js b/dist/assets/index-DZw3umX9.js similarity index 99% rename from dist/assets/index-CYfuAT45.js rename to dist/assets/index-DZw3umX9.js index 8b3464f..b84182d 100644 --- a/dist/assets/index-CYfuAT45.js +++ b/dist/assets/index-DZw3umX9.js @@ -1 +1 @@ -import{u as T,i as It,j as r,H as $t,F as At,a as Dt,b as Bt,c as Vt,d as Mt,e as Kt,f as Gt,g as Ut,h as zt,z as v,k as Re,l as me,S as qe,m as ut,n as Ht,P as ge,o as Z,p as qt,q as Jt,r as Qt,s as Q,t as De,v as xe,w as j,x as Se,y as D,A as B,L as te,B as V,C as k,D as H,E as Be,G as Pe,I as Oe,J as Le,K as oe,M as Ve,N as Wt,O as be,Q as Yt,R as Xt,T as Zt,U as es,V as ts,W as ss,X as ns,Y as ce,Z as rs,_ as as,$ as se,a0 as is,a1 as os,a2 as ls,a3 as dt,a4 as cs,a5 as le,a6 as Me,a7 as us,a8 as pt,a9 as mt,aa as ds,ab as Je,ac as ps,ad as ms,ae as fs,af as hs,ag as gs,ah as xs,ai as bs,aj as vs}from"./ui-library-DnLOQLxR.js";import{f as ys,a as b,O as js,e as re,u as ks,L as Qe,g as Ss,h as Ns}from"./react-vendor-Y0eyvj1J.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(n){if(n.ep)return;n.ep=!0;const a=t(n);fetch(n.href,a)}})();var je={},We;function ws(){if(We)return je;We=1;var i=ys();return je.createRoot=i.createRoot,je.hydrateRoot=i.hydrateRoot,je}var _s=ws();const y=i=>typeof i=="string",de=()=>{let i,e;const t=new Promise((s,n)=>{i=s,e=n});return t.resolve=i,t.reject=e,t},Ye=i=>i==null?"":""+i,Cs=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},Rs=/###/g,Xe=i=>i&&i.indexOf("###")>-1?i.replace(Rs,"."):i,Ze=i=>!i||y(i),pe=(i,e,t)=>{const s=y(e)?e.split("."):e;let n=0;for(;n{const{obj:s,k:n}=pe(i,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=pe(i,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=pe(i,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},Ps=(i,e,t,s)=>{const{obj:n,k:a}=pe(i,e,Object);n[a]=n[a]||[],n[a].push(t)},Ne=(i,e)=>{const{obj:t,k:s}=pe(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},Os=(i,e,t)=>{const s=Ne(i,t);return s!==void 0?s:Ne(e,t)},ft=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?y(i[s])||i[s]instanceof String||y(e[s])||e[s]instanceof String?t&&(i[s]=e[s]):ft(i[s],e[s],t):i[s]=e[s]);return i},ae=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ls={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Es=i=>y(i)?i.replace(/[&<>"'\/]/g,e=>Ls[e]):i;class Ts{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 Fs=[" ",",","?","!",";"],Is=new Ts(20),$s=(i,e,t)=>{e=e||"",t=t||"";const s=Fs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const n=Is.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!n.test(i);if(!a){const o=i.indexOf(t);o>0&&!n.test(i.substring(0,o))&&(a=!0)}return a},$e=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const s=e.split(t);let n=i;for(let a=0;a-1&&ci==null?void 0:i.replace("_","-"),As={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,s;(s=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||s.call(t,console,e)}};class _e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||As,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{let[l,c]=o;for(let u=0;u{let[l,c]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,p;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):y(s)&&a?l.push(...s.split(a)):l.push(s)));const c=Ne(this.data,l);return!c&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),c||!o||!y(s)?c:$e((p=(u=this.data)==null?void 0:u[e])==null?void 0:p[t],s,a)}addResource(e,t,s,n){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(l=e.split("."),n=t,t=l[1]),this.addNamespaces(t),et(this.data,l,n),a.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(y(s[a])||Array.isArray(s[a]))&&this.addResource(e,t,a,s[a],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),n=s,s=t,t=l[1]),this.addNamespaces(t);let c=Ne(this.data,l)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?ft(c,s,a):c={...c,...s},et(this.data,l,c),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var ht={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,n){return i.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,s,n))??e}),e}};const st={},nt=i=>!y(i)&&typeof i!="boolean"&&typeof i!="number";class Ce extends Ee{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Cs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=J.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!$s(e,s,n);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:y(a)?[a]:a};const u=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(n)}return{key:e,namespaces:y(a)?[a]:a}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(p){const L=t.nsSeparator||this.options.nsSeparator;return n?{res:`${c}${L}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${L}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:o}const f=this.resolve(e,t);let d=f==null?void 0:f.res;const h=(f==null?void 0:f.usedKey)||o,m=(f==null?void 0:f.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,N=t.count!==void 0&&!y(t.count),O=Ce.hasDefaultValue(t),P=N?this.pluralResolver.getSuffix(u,t.count,t):"",F=t.ordinal&&N?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",R=N&&!t.ordinal&&t.count===0,_=R&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${P}`]||t[`defaultValue${F}`]||t.defaultValue;let w=d;S&&!d&&O&&(w=_);const M=nt(w),W=Object.prototype.toString.apply(w);if(S&&w&&M&&g.indexOf(W)<0&&!(y(x)&&Array.isArray(w))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,w,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(f.res=L,f.usedParams=this.getUsedParamsDetails(t),f):L}if(a){const L=Array.isArray(w),I=L?[]:{},ve=L?m:h;for(const K in w)if(Object.prototype.hasOwnProperty.call(w,K)){const G=`${ve}${a}${K}`;O&&!d?I[K]=this.translate(G,{...t,defaultValue:nt(_)?_[K]:void 0,joinArrays:!1,ns:l}):I[K]=this.translate(G,{...t,joinArrays:!1,ns:l}),I[K]===G&&(I[K]=w[K])}d=I}}else if(S&&y(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let L=!1,I=!1;!this.isValidLookup(d)&&O&&(L=!0,d=_),this.isValidLookup(d)||(I=!0,d=o);const K=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:d,G=O&&_!==d&&this.options.updateMissing;if(I||L||G){if(this.logger.log(G?"updateKey":"missingKey",u,c,o,G?_:d),a){const A=this.resolve(o,{...t,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let A=0;A{var He;const ze=O&&ue!==d?ue:K;this.options.missingKeyHandler?this.options.missingKeyHandler(A,c,ne,ze,G,t):(He=this.backendConnector)!=null&&He.saveMissing&&this.backendConnector.saveMissing(A,c,ne,ze,G,t),this.emit("missingKey",A,c,ne,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?$.forEach(A=>{const ne=this.pluralResolver.getSuffixes(A,t);R&&t[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(ue=>{Ue([A],o+ue,t[`defaultValue${ue}`]||_)})}):Ue($,o,_))}d=this.extendTranslation(d,e,t,f,s),I&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(I||L)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,L?d:void 0))}return n?(f.res=d,f.usedParams=this.getUsedParamsDetails(t),f):d}extendTranslation(e,t,s,n,a){var u,p;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const f=y(e)&&(((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const m=e.match(this.interpolator.nestingRegexp);d=m&&m.length}let h=s.replace&&!y(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,s.lng||this.language||n.usedLng,s),f){const m=e.match(this.interpolator.nestingRegexp),g=m&&m.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,n,a,o,l;return y(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(c,t),p=u.key;n=p;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=t.count!==void 0&&!y(t.count),h=d&&!t.ordinal&&t.count===0,m=t.context!==void 0&&(y(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var S,N;this.isValidLookup(s)||(l=x,!st[`${g[0]}-${x}`]&&((S=this.utils)!=null&&S.hasLoadedNamespace)&&!((N=this.utils)!=null&&N.hasLoadedNamespace(l))&&(st[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${g.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(O=>{var R;if(this.isValidLookup(s))return;o=O;const P=[p];if((R=this.i18nFormat)!=null&&R.addLookupKeys)this.i18nFormat.addLookupKeys(P,p,O,x,t);else{let _;d&&(_=this.pluralResolver.getSuffix(O,t.count,t));const w=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(P.push(p+_),t.ordinal&&_.indexOf(M)===0&&P.push(p+_.replace(M,this.options.pluralSeparator)),h&&P.push(p+w)),m){const W=`${p}${this.options.contextSeparator}${t.context}`;P.push(W),d&&(P.push(W+_),t.ordinal&&_.indexOf(M)===0&&P.push(W+_.replace(M,this.options.pluralSeparator)),h&&P.push(W+w))}}let F;for(;F=P.pop();)this.isValidLookup(s)||(a=F,s=this.getResource(O,x,F,t))}))})}),{res:s,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var a;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!y(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const a of t)delete n[a]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class rt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=J.create("languageUtils")}getScriptPartFromCode(e){if(e=we(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=we(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(y(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(a=>{if(a===n)return a;if(!(a.indexOf("-")<0&&n.indexOf("-")<0)&&(a.indexOf("-")>0&&n.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===n||a.indexOf(n)===0&&n.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),y(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],a=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return y(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):y(e)&&a(this.formatLanguageCode(e)),s.forEach(o=>{n.indexOf(o)<0&&a(this.formatLanguageCode(o))}),n}}const at={zero:0,one:1,two:2,few:3,many:4,other:5},it={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ds{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=J.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=we(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(s,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),it;if(!e.match(/-|_/))return it;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,a)=>at[n]-at[a]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ot=function(i,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Os(i,e,t);return!a&&n&&y(t)&&(a=$e(i,t,s),a===void 0&&(a=$e(e,t,s))),a},Fe=i=>i.replace(/\$/g,"$$$$");class Bs{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:S,alwaysFormat:N}=e.interpolation;this.escape=t!==void 0?t:Es,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=a?ae(a):o||"{{",this.suffix=l?ae(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=d?ae(d):h||ae("$t("),this.nestingSuffix=m?ae(m):g||ae(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=S||1e3,this.alwaysFormat=N!==void 0?N:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,n){var h;let a,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const N=ot(t,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,s,{...n,...t,interpolationkey:m}):N}const g=m.split(this.formatSeparator),x=g.shift().trim(),S=g.join(this.formatSeparator).trim();return this.format(ot(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,s,{...n,...t,interpolationkey:x})};this.resetRegExp();const p=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((h=n==null?void 0:n.interpolation)==null?void 0:h.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Fe(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Fe(this.escape(m)):Fe(m)}].forEach(m=>{for(l=0;a=m.regex.exec(e);){const g=a[1].trim();if(o=u(g),o===void 0)if(typeof p=="function"){const S=p(e,a,n);o=y(S)?S:""}else if(n&&Object.prototype.hasOwnProperty.call(n,g))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!y(o)&&!this.useRawValueToEscape&&(o=Ye(o));const x=m.safeValue(o);if(e=e.replace(a[0],x),f?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const f=c.split(new RegExp(`${p}[ ]*{`));let d=`{${f[1]}`;c=f[0],d=this.interpolate(d,o);const h=d.match(/'/g),m=d.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!m||m.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${p}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;n=this.nestingRegexp.exec(e);){let c=[];o={...s},o=o.replace&&!y(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const p=n[1].split(this.formatSeparator).map(f=>f.trim());n[1]=p.shift(),c=p,u=!0}if(a=t(l.call(this,n[1].trim(),o),o),a&&n[0]===e&&!y(a))return a;y(a)||(a=Ye(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((p,f)=>this.format(p,f,s.lng,{...s,interpolationkey:n[1].trim()}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}const Vs=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const s=i.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ie=i=>{const e={};return(t,s,n)=>{let a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a={...a,[n.interpolationkey]:void 0});const o=s+JSON.stringify(a);let l=e[o];return l||(l=i(we(s),n),e[o]=l),l(t)}};class Ms{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("formatter"),this.options=e,this.formats={number:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return a=>n.format(a)}),currency:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return a=>n.format(a)}),datetime:ie((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return a=>n.format(a)}),relativetime:ie((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return a=>n.format(a,s.range||"day")}),list:ie((t,s)=>{const n=new Intl.ListFormat(t,{...s});return a=>n.format(a)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ie(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var f;const{formatName:u,formatOptions:p}=Vs(c);if(this.formats[u]){let d=l;try{const h=((f=n==null?void 0:n.formatParams)==null?void 0:f[n.interpolationkey])||{},m=h.locale||h.lng||n.locale||n.lng||s;d=this.formats[u](l,m,{...p,...n,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Ks=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Gs extends Ee{constructor(e,t,s){var a,o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=J.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,s,n.backend,n)}queueLoad(e,t,s,n){const a={},o={},l={},c={};return e.forEach(u=>{let p=!0;t.forEach(f=>{const d=`${u}|${f}`;!s.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,p=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),c[f]===void 0&&(c[f]=!0)))}),p||(l[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,s){const n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&s&&this.store.addResourceBundle(a,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Ps(c.loaded,[a],o),Ks(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:a,callback:o});return}this.readingCalls++;const l=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&p&&n{this.read.call(this,e,t,s,n+1,a*2,o)},a);return}o(u,p)},c=this.backend[s].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),y(t)&&(t=[t]);const a=this.queueLoad(e,t,s,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],a=s[1];this.read(n,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${a} for language ${n}`,l),this.loaded(e,o,l)})}saveMissing(e,t,s,n,a){var c,u,p,f,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&&!((f=(p=this.services)==null?void 0:p.utils)!=null&&f.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 h={...o,isUpdate:a},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(e,t,s,n,h):g=m(e,t,s,n),g&&typeof g.then=="function"?g.then(x=>l(null,x)).catch(l):l(null,g)}catch(g){l(g)}else m(e,t,s,n,l,h)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const lt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),y(i[1])&&(e.defaultValue=i[1]),y(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ct=i=>{var e,t;return y(i.ns)&&(i.ns=[i.ns]),y(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),y(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((t=(e=i.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},ke=()=>{},Us=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class fe extends Ee{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ct(e),this.services={},this.logger=J,this.modules={external:[]},Us(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&&(y(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=lt();this.options={...n,...this.options,...ct(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?J.init(a(this.modules.logger),this.options):J.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Ms;const f=new rt(this.options);this.store=new tt(this.options.resources,this.options);const d=this.services;d.logger=J,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Ds(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=a(p),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Bs(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Gs(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var m=arguments.length,g=new Array(m>1?m-1:0),x=1;x1?m-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ke),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=de(),u=()=>{const p=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(d),s(f,d)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var a,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const n=y(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};n?c(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=de();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ke),this.services.backendConnector.reload(e,t,a=>{n.resolve(),s(a)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&ht.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=de();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(c,function(){return s.t(...arguments)})},l=c=>{var p,f;!e&&!c&&this.services.languageDetector&&(c=[]);const u=y(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(f=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||f.call(p,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),n}getFixedT(e,t,s){var n=this;const a=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,p=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${d}${m}`):h=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,n.t(h,c)};return y(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(){var n;for(var e=arguments.length,t=new Array(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!n||o(a,e)))}loadNamespaces(e,t){const s=de();return this.options.ns?(y(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=de();y(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=n.concat(a),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var n,a;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((a=this.services)==null?void 0:a.languageUtils)||new rt(lt());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 fe(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},a=new fe(n);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((p,f)=>(p[f]={...c[u][f]},p),{})),{});a.store=new tt(l,n),a.services.resourceStore=a.store}return a.translator=new Ce(a.services,n),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p{const i=T(e=>e.lang);return b.useEffect(()=>{E.changeLanguage(i)},[i]),null};function ur(){return r.jsxs("main",{className:"flex flex-col min-h-screen",children:[r.jsx(cr,{}),r.jsx($t,{}),r.jsx("div",{className:"flex-auto",children:r.jsx(js,{})}),r.jsx(At,{})]})}function dr(){return r.jsxs("div",{className:"flex flex-col",children:[r.jsx(Dt,{}),r.jsx(Bt,{}),r.jsx(Vt,{}),r.jsx(Mt,{}),r.jsx(Kt,{}),r.jsx(Gt,{}),r.jsx(Ut,{}),r.jsx(zt,{})]})}const pr=v.object({type:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.string().min(1,{message:"Укажите количество участников"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:v.string().email({message:"Укажите корректный email"}),phone_number:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:"Укажите цель встречи"}),proposal_description:v.string().optional(),government_agency:v.string().optional(),sector_industry:v.string().optional(),key_services:v.string().optional(),government_experience:v.string().optional(),preferred_meeting_datetime:v.string().optional(),meeting_mode:v.string().optional(),language_preference:v.string().optional(),technical_requirements:v.string().optional(),company_profile:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),mr={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 fr(i){const e=i+"CollectionProvider",[t,s]=Re(e),[n,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:m,children:g}=h,x=re.useRef(null),S=re.useRef(new Map).current;return r.jsx(n,{scope:m,itemMap:S,collectionRef:x,children:g})};o.displayName=e;const l=i+"CollectionSlot",c=re.forwardRef((h,m)=>{const{scope:g,children:x}=h,S=a(l,g),N=me(m,S.collectionRef);return r.jsx(qe,{ref:N,children:x})});c.displayName=l;const u=i+"CollectionItemSlot",p="data-radix-collection-item",f=re.forwardRef((h,m)=>{const{scope:g,children:x,...S}=h,N=re.useRef(null),O=me(m,N),P=a(u,g);return re.useEffect(()=>(P.itemMap.set(N,{ref:N,...S}),()=>void P.itemMap.delete(N))),r.jsx(qe,{[p]:"",ref:O,children:x})});f.displayName=u;function d(h){const m=a(i+"CollectionConsumer",h);return re.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((P,F)=>S.indexOf(P.ref.current)-S.indexOf(F.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,s]}var hr=b.createContext(void 0);function gt(i){const e=b.useContext(hr);return i||e||"ltr"}var Ie="rovingFocusGroup.onEntryFocus",gr={bubbles:!1,cancelable:!0},Te="RovingFocusGroup",[Ae,xt,xr]=fr(Te),[br,bt]=Re(Te,[xr]),[vr,yr]=br(Te),vt=b.forwardRef((i,e)=>r.jsx(Ae.Provider,{scope:i.__scopeRovingFocusGroup,children:r.jsx(Ae.Slot,{scope:i.__scopeRovingFocusGroup,children:r.jsx(jr,{...i,ref:e})})}));vt.displayName=Te;var jr=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:n=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...f}=i,d=b.useRef(null),h=me(e,d),m=gt(a),[g=null,x]=ut({prop:o,defaultProp:l,onChange:c}),[S,N]=b.useState(!1),O=Ht(u),P=xt(t),F=b.useRef(!1),[R,_]=b.useState(0);return b.useEffect(()=>{const w=d.current;if(w)return w.addEventListener(Ie,O),()=>w.removeEventListener(Ie,O)},[O]),r.jsx(vr,{scope:t,orientation:s,dir:m,loop:n,currentTabStopId:g,onItemFocus:b.useCallback(w=>x(w),[x]),onItemShiftTab:b.useCallback(()=>N(!0),[]),onFocusableItemAdd:b.useCallback(()=>_(w=>w+1),[]),onFocusableItemRemove:b.useCallback(()=>_(w=>w-1),[]),children:r.jsx(ge.div,{tabIndex:S||R===0?-1:0,"data-orientation":s,...f,ref:h,style:{outline:"none",...i.style},onMouseDown:Z(i.onMouseDown,()=>{F.current=!0}),onFocus:Z(i.onFocus,w=>{const M=!F.current;if(w.target===w.currentTarget&&M&&!S){const W=new CustomEvent(Ie,gr);if(w.currentTarget.dispatchEvent(W),!W.defaultPrevented){const L=P().filter($=>$.focusable),I=L.find($=>$.active),ve=L.find($=>$.id===g),G=[I,ve,...L].filter(Boolean).map($=>$.ref.current);kt(G,p)}}F.current=!1}),onBlur:Z(i.onBlur,()=>N(!1))})})}),yt="RovingFocusGroupItem",jt=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:n=!1,tabStopId:a,...o}=i,l=qt(),c=a||l,u=yr(yt,t),p=u.currentTabStopId===c,f=xt(t),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return b.useEffect(()=>{if(s)return d(),()=>h()},[s,d,h]),r.jsx(Ae.ItemSlot,{scope:t,id:c,focusable:s,active:n,children:r.jsx(ge.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:Z(i.onMouseDown,m=>{s?u.onItemFocus(c):m.preventDefault()}),onFocus:Z(i.onFocus,()=>u.onItemFocus(c)),onKeyDown:Z(i.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=Nr(m,u.orientation,u.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(N=>N.focusable).map(N=>N.ref.current);if(g==="last")S.reverse();else if(g==="prev"||g==="next"){g==="prev"&&S.reverse();const N=S.indexOf(m.currentTarget);S=u.loop?wr(S,N+1):S.slice(N+1)}setTimeout(()=>kt(S))}})})})});jt.displayName=yt;var kr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Sr(i,e){return e!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function Nr(i,e,t){const s=Sr(i.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return kr[s]}function kt(i,e=!1){const t=document.activeElement;for(const s of i)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function wr(i,e){return i.map((t,s)=>i[(e+s)%i.length])}var _r=vt,Cr=jt;function Rr(i){const e=b.useRef({value:i,previous:i});return b.useMemo(()=>(e.current.value!==i&&(e.current.previous=e.current.value,e.current.value=i),e.current.previous),[i])}var Ke="Radio",[Pr,St]=Re(Ke),[Or,Lr]=Pr(Ke),Nt=b.forwardRef((i,e)=>{const{__scopeRadio:t,name:s,checked:n=!1,required:a,disabled:o,value:l="on",onCheck:c,form:u,...p}=i,[f,d]=b.useState(null),h=me(e,x=>d(x)),m=b.useRef(!1),g=f?u||!!f.closest("form"):!0;return r.jsxs(Or,{scope:t,checked:n,disabled:o,children:[r.jsx(ge.button,{type:"button",role:"radio","aria-checked":n,"data-state":Ct(n),"data-disabled":o?"":void 0,disabled:o,value:l,...p,ref:h,onClick:Z(i.onClick,x=>{n||c==null||c(),g&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),g&&r.jsx(Er,{control:f,bubbles:!m.current,name:s,value:l,checked:n,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Nt.displayName=Ke;var wt="RadioIndicator",_t=b.forwardRef((i,e)=>{const{__scopeRadio:t,forceMount:s,...n}=i,a=Lr(wt,t);return r.jsx(Jt,{present:s||a.checked,children:r.jsx(ge.span,{"data-state":Ct(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:e})})});_t.displayName=wt;var Er=i=>{const{control:e,checked:t,bubbles:s=!0,...n}=i,a=b.useRef(null),o=Rr(t),l=Qt(e);return b.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&f){const d=new Event("click",{bubbles:s});f.call(c,t),c.dispatchEvent(d)}},[o,t,s]),r.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:a,style:{...i.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ct(i){return i?"checked":"unchecked"}var Tr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ge="RadioGroup",[Fr,xa]=Re(Ge,[bt,St]),Rt=bt(),Pt=St(),[Ir,$r]=Fr(Ge),Ot=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:n,value:a,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:p=!0,onValueChange:f,...d}=i,h=Rt(t),m=gt(u),[g,x]=ut({prop:a,defaultProp:n,onChange:f});return r.jsx(Ir,{scope:t,name:s,required:o,disabled:l,value:g,onValueChange:x,children:r.jsx(_r,{asChild:!0,...h,orientation:c,dir:m,loop:p,children:r.jsx(ge.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:m,...d,ref:e})})})});Ot.displayName=Ge;var Lt="RadioGroupItem",Et=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,disabled:s,...n}=i,a=$r(Lt,t),o=a.disabled||s,l=Rt(t),c=Pt(t),u=b.useRef(null),p=me(e,u),f=a.value===n.value,d=b.useRef(!1);return b.useEffect(()=>{const h=g=>{Tr.includes(g.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",m)}},[]),r.jsx(Cr,{asChild:!0,...l,focusable:!o,active:f,children:r.jsx(Nt,{disabled:o,required:a.required,checked:f,...c,...n,name:a.name,ref:p,onCheck:()=>a.onValueChange(n.value),onKeyDown:Z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Z(n.onFocus,()=>{var h;d.current&&((h=u.current)==null||h.click())})})})});Et.displayName=Lt;var Ar="RadioGroupIndicator",Dr=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,...s}=i,n=Pt(t);return r.jsx(_t,{...n,...s,ref:e})});Dr.displayName=Ar;var Tt=Ot,Ft=Et;const he=b.forwardRef(({className:i,...e},t)=>r.jsx(Tt,{className:Q("grid gap-2",i),...e,ref:t}));he.displayName=Tt.displayName;const X=b.forwardRef(({className:i,...e},t)=>r.jsx(Ft,{ref:t,className:Q(e.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",i),...e}));X.displayName=Ft.displayName;const Y=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Веб-сайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"Email"},{label:"Phone number"},{label:"Website"}]}],ee=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],U=[{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"}],q=i=>{b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[i])},Br=({handleNext:i})=>{q();const{control:e,formState:t}=De(),s=T(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[r.jsx("h2",{className:"h2 mb-8",children:Y[j(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(Se,{defaultValue:1,control:e,name:"type",render:({field:n})=>r.jsxs(D,{className:"space-y-3",children:[r.jsx(B,{className:"text-xl",children:s===te.RU?"Тип:":"Type:"}),r.jsx(V,{children:r.jsxs(he,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4",children:[r.jsxs(D,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2B",checked:n.value==="B2B"})}),r.jsx(B,{className:"text-base",children:"B2B"})]}),r.jsxs(D,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2G",checked:n.value==="B2G"})}),r.jsx(B,{className:"text-base",children:"B2G"})]})]})})]})}),r.jsx(k,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:Y[j(s)].data[0].label}),r.jsx(k,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:Y[j(s)].data[1].label}),r.jsx(k,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:Y[j(s)].data[2].label}),r.jsx(k,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:Y[j(s)].data[3].label}),r.jsx(k,{control:e,name:"country",error:t.errors.country,placeholder:"",label:Y[j(s)].data[4].label}),r.jsx(k,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:Y[j(s)].data[5].label}),r.jsx(k,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:Y[j(s)].data[6].label}),r.jsx(k,{control:e,name:"website",placeholder:"",label:Y[j(s)].data[7].label})]}),r.jsx(H,{variant:"secondary",type:"button",onClick:i,className:"w-full mt-10",children:s===te.RU?"Далее":"Next"})]})},Vr=({handleNext:i,handlePrev:e})=>{q();const t=T(a=>a.lang),{control:s,formState:n}=De();return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[r.jsx("h2",{className:"h2 mb-8",children:ee[j(t)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(k,{control:s,name:"meeting_objective",error:n.errors.meeting_objective,placeholder:"",label:ee[j(t)].data[0].label}),r.jsx(k,{control:s,name:"proposal_description",error:n.errors.proposal_description,placeholder:"",label:ee[j(t)].data[1].label}),r.jsx(k,{control:s,name:"government_agency",error:n.errors.government_agency,placeholder:"",label:ee[j(t)].data[2].label}),r.jsx("h2",{className:"h2 mt-4",children:ee[j(t)].secondH2}),r.jsx(k,{control:s,name:"sector_industry",error:n.errors.sector_industry,placeholder:"",label:ee[j(t)].data[3].label}),r.jsx(k,{control:s,name:"key_services",error:n.errors.key_services,placeholder:"",label:ee[j(t)].data[4].label}),r.jsx(k,{control:s,name:"government_experience",error:n.errors.government_experience,placeholder:"",label:ee[j(t)].data[5].label})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(H,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:t===te.RU?"Вернуться назад":"Back"}),r.jsx(H,{variant:"secondary",type:"button",onClick:i,className:"w-full",children:t===te.RU?"Далее":"Next"})]})]})},Mr=({handlePrev:i})=>{q();const{control:e,formState:t}=De(),s=T(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[r.jsx("h2",{className:"h2 mb-8",children:U[j(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx(k,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:U[j(s)].data[0].label}),r.jsx(k,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:U[j(s)].data[1].label}),r.jsx(k,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:U[j(s)].data[2].label}),r.jsx(k,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:U[j(s)].data[3].label})]}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"h2 mt-10",children:U[j(s)].secondH2}),r.jsx("h5",{className:"text-on_surface_v",children:U[j(s)].subtitle})]}),r.jsx(k,{control:e,name:"company_profile",label:U[j(s)].data[4].label,type:"file",textDark:!0}),r.jsx(k,{control:e,name:"proposal_presentation",label:U[j(s)].data[5].label,type:"file",textDark:!0}),r.jsx(k,{control:e,name:"relevant_certification",label:U[j(s)].data[6].label,type:"file",textDark:!0})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(H,{type:"button",onClick:i,variant:"outline",className:"text-on_surface",children:s===te.RU?"Вернуться назад":"Back"}),r.jsx(H,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?r.jsx(Be,{className:"animate-spin"}):U[j(s)].button})]})]})},Kr=({stage:i,setStage:e,success:t,setSuccess:s})=>{const n=Pe({resolver:Oe(pr),defaultValues:mr,mode:"onChange"}),a=u=>{switch(u){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},o=async()=>{const u=a(i);await n.trigger(u)&&e(f=>f+1)},l=()=>e(u=>u-1),c=async u=>{try{const p=new FormData;Object.entries(u).forEach(([d,h])=>{h instanceof File?(console.log(`Добавляем файл: ${d}`,h),p.append(d,h)):h!==void 0&&(console.log(`Добавляем поле: ${d}`,h),p.append(d,h))}),(await Wt.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",p,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(p){console.error("Ошибка при отправке B2B формы:",p)}};return r.jsx(Le,{...n,children:r.jsx("form",{onSubmit:n.handleSubmit(c),children:r.jsxs("div",{className:"relative",children:[r.jsx(oe,{children:i===1&&r.jsx(Br,{handleNext:o})}),r.jsx(oe,{children:i===2&&r.jsx(Vr,{handleNext:o,handlePrev:l})}),r.jsx(oe,{children:i===3&&t===!1&&r.jsx(Mr,{handlePrev:l})}),t&&r.jsx(Ve,{})]})})})};function Gr(){q();const i=T(a=>a.lang),[e,t]=b.useState(1),[s,n]=b.useState(!1);return r.jsxs("div",{className:"pb-[120px]",children:[r.jsx(be,{title:i===te.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!s&&e!==0&&r.jsx(Yt,{stage:e}),r.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:r.jsx(Kr,{success:s,setSuccess:n,stage:e,setStage:t})})]})}function Ur(){q();const i=T(e=>e.lang);return r.jsxs("div",{className:Q(""),children:[r.jsx(be,{title:i===te.RU?"О выставке":"About exhibition"}),r.jsx(Xt,{}),r.jsx(Zt,{}),r.jsx(es,{}),r.jsx(ts,{}),r.jsx(ss,{})]})}const zr=v.object({company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),Hr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},C=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Необорудованная площадь",radio_2:"Оборудованная площадь",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Веб-сайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];function qr(){q();const i=T(o=>o.lang),[e,t]=b.useState(!1),s=Pe({resolver:Oe(zr),defaultValues:Hr}),n=async o=>{try{await ns(o)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:a}=s.formState;return r.jsxs("div",{children:[r.jsx(be,{title:i===te.RU?"Стать спонсором":"Become a sponsor"}),r.jsx(oe,{children:!e&&r.jsx(Le,{...s,children:r.jsxs(xe.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(n),children:[r.jsx(k,{label:C[j(i)].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(k,{label:C[j(i)].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(k,{label:C[j(i)].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(k,{label:C[j(i)].label_4,name:"country",control:s.control,error:a.country}),r.jsx(k,{label:C[j(i)].label_5,name:"email",control:s.control,error:a.email}),r.jsx(k,{label:C[j(i)].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(k,{label:C[j(i)].label_7,name:"website",control:s.control}),r.jsx(Se,{control:s.control,name:"visa_support",render:({field:o})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[j(i)].visa}),r.jsx(V,{children:r.jsxs(he,{onValueChange:o.onChange,defaultValue:o.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:o.value==="yes"})}),r.jsx(B,{className:"text-base",children:C[j(i)].visa_radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:o.value==="no"})}),r.jsx(B,{className:"text-base",children:C[j(i)].visa_radio_2})]})]})})]})}),r.jsx(H,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):C[j(i)].button})]})})}),e&&r.jsx(Ve,{delay:.3})]})}const Jr=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")}),Qr={name:"",email:"",phone:"",company:"",msg:""},Wr=({className:i})=>{const{t:e}=ce("contacts"),[t,s]=b.useState(!1),n=Pe({resolver:Oe(Jr),defaultValues:Qr});async function a(l){try{const c=await as(l);s(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=n.formState;return r.jsx("div",{className:Q("bg-primary rounded-[8px] py-8 px-6 ",i),children:r.jsx(Le,{...n,children:r.jsxs("form",{onSubmit:n.handleSubmit(a),children:[r.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(k,{onPrimary:!0,name:"name",control:n.control,label:e("name"),error:o.name}),r.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[r.jsx(k,{onPrimary:!0,name:"email",control:n.control,label:"Email",error:o.email}),r.jsx(k,{onPrimary:!0,name:"phone",control:n.control,label:e("phone"),error:o.phone})]}),r.jsx(k,{onPrimary:!0,name:"company",control:n.control,label:e("company"),error:o.name}),r.jsx(k,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:n.control,error:o.msg}),r.jsx(H,{disabled:n.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):n.formState.isSubmitting?r.jsx(rs,{className:"animate-spin text-white"}):e("button")})]})]})})})};function Yr(){q();const{t:i}=ce("contacts");return r.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[r.jsx(se,{children:r.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[r.jsx(Wr,{}),r.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[r.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:i("title_2")}),r.jsxs("div",{className:"flex flex-col gap-20",children:[r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/map.svg",alt:"address"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("address")}),r.jsx("address",{className:"text-base normal not-italic",children:i("venue")})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("phone")}),r.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/email.svg",alt:"email"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),r.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),r.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:r.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}const Xr=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],Zr=({className:i})=>{var S,N,O,P,F;const[e,t]=b.useState(0),{data:s,isPending:n,status:a}=is(1),{data:o}=os(1),[l,c]=b.useState(!1),[u,p]=b.useState({id:0,type:"photo"}),f=T(R=>R.lang),d=({id:R,type:_})=>{c(!0),p({id:R,type:_})},{t:h}=ce("main"),[m,g]=b.useState(!1),x=R=>R===0&&n?r.jsx(le,{}):r.jsx(le,{});return console.log(a),r.jsxs(r.Fragment,{children:[r.jsx(oe,{children:l&&r.jsx(ls,{activeItem:u,setActiveItem:p,setIsOpen:c})}),r.jsxs("section",{className:Q("md:mb-[120px] mb-20",i),children:[r.jsx(be,{title:f==="ru"?"Моменты":"Moments"}),r.jsx(se,{className:"page-bottom md:pt-10 pt-6",children:r.jsxs("div",{className:"flex justify-center flex-col",children:[r.jsx(dt,{state:e,setState:t,data:Xr,className:"mb-6"}),e===0&&n?x(e):r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"2025"}),r.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(N=(S=s==null?void 0:s.photos)==null?void 0:S.slice(0,m?1e3:16))==null?void 0:N.map((R,_)=>{var w,M;return r.jsx("div",{onClick:()=>d({id:_,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:r.jsx("img",{src:((w=R==null?void 0:R.photo)==null?void 0:w.path)??"",alt:((M=R==null?void 0:R.photo)==null?void 0:M.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},_)}):(O=o==null?void 0:o.videos)==null?void 0:O.map((R,_)=>{var w;return r.jsxs("div",{onClick:()=>d({id:_,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[r.jsx(cs,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),r.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),r.jsx("img",{src:((w=R==null?void 0:R.video_photo)==null?void 0:w.path)??"",className:"size-full object-cover"})]},_)})})]}),((P=s==null?void 0:s.photos)==null?void 0:P.length)&&((F=s==null?void 0:s.photos)==null?void 0:F.length)>16&&!m&&r.jsx(H,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:h("media.button")})]})})]})]})},ea=(i,e)=>{const{data:t,isPending:s}=Me({queryKey:["news-inner",i,e],queryFn:()=>us(i,e),select:({data:n})=>n.data});return{data:t,isPending:s}};function ta(){var o;const{id:i}=ks(),e=T(l=>l.lang),t=Number(i);q(t);const{data:s,isPending:n}=ea(t,e),{data:a}=pt(e);return n?r.jsx(le,{}):r.jsxs(se,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[r.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),r.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),r.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:r.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),r.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),r.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),r.jsxs("section",{children:[r.jsx("h2",{className:"h2 mb-6",children:e==="ru"?"Читайте также:":"Read more:"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:a==null?void 0:a.filter(l=>l.id!==t).slice(0,3).map(l=>b.createElement(mt,{...l,key:l.title}))})]})]})}function sa(){q();const i=T(s=>s.lang),{data:e,isPending:t}=pt(i);return t?r.jsx(le,{}):r.jsxs(se,{className:"page-padding",children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:i==="ru"?"Новости":"News"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>b.createElement(mt,{...s,key:s.title}))})]})}const na=()=>{const i=T(s=>s.lang),{data:e,isPending:t}=Me({queryKey:["participants",i],queryFn:()=>ds(i),select:({data:s})=>s.data});return{data:e,isPending:t}},ra=({className:i})=>{var u,p,f,d,h;q();const e=T(m=>m.lang),{data:t,isPending:s}=na(),n={company:e==="ru"?"Название компании":"Company name",country:e==="ru"?"Страна":"Country",industry:e==="ru"?"Сфера деятельности":"Industry"},[a,o]=b.useState(0),l=(f=t==null?void 0:t[0])==null?void 0:f.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(p=t==null?void 0:t[2])==null?void 0:p.participants),c=t==null?void 0:t.filter(m=>a===1?m.id===3:a===2?m.id===1:m.id===2);return console.log(a),r.jsx(se,{children:r.jsxs("section",{className:Q("page-padding overflow-x-hidden",i),children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:e==="ru"?"Список участников":"List of participants"}),r.jsx(dt,{state:a,setState:o,className:"mb-6 md:w-fit"}),r.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[r.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[r.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:n==null?void 0:n.company}),r.jsx("h3",{className:"flex-[0_0_19.80%]",children:n==null?void 0:n.country}),r.jsx("h3",{className:"flex-[0_0_34.65%]",children:n==null?void 0:n.industry})]}),s?r.jsx(le,{}):a===0?l==null?void 0:l.map((m,g,x)=>r.jsx(Je,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}})):(h=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:h.map((m,g,x)=>r.jsx(Je,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}}))]})]})})},aa=v.object({space_package:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.preprocess(i=>Number(i),v.number().min(1,"Укажите количество участников")),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),ia={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function oa(){const i=T(l=>l.lang),[e,t]=b.useState(!1),s=Pe({resolver:Oe(aa),defaultValues:ia}),n=async l=>{await ps(l)&&t(!0)};b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:a}=s.formState,o=j(i);return r.jsxs("div",{children:[r.jsx(be,{title:C[j(i)].cover}),r.jsx(oe,{children:!e&&r.jsx(Le,{...s,children:r.jsxs(xe.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(n),children:[r.jsx(Se,{control:s.control,name:"space_package",render:({field:l})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[o].h2}),r.jsx(V,{children:r.jsxs(he,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"space",checked:l.value==="space"})}),r.jsx(B,{className:"text-base",children:C[o].radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"package",checked:l.value==="package"})}),r.jsx(B,{className:"text-base",children:C[o].radio_2})]})]})})]})}),r.jsx(k,{label:C[o].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(k,{label:C[o].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(k,{label:C[o].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(k,{label:C[o].number_of_participants,type:"number",name:"participants_number",control:s.control,error:a.participants_number}),r.jsx(k,{label:C[o].label_4,name:"country",control:s.control,error:a.country}),r.jsx(k,{label:C[o].label_5,name:"email",control:s.control,error:a.email}),r.jsx(k,{label:C[o].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(k,{label:C[o].label_7,name:"website",control:s.control}),r.jsx(Se,{control:s.control,name:"visa_support",render:({field:l})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[o].visa}),r.jsx(V,{children:r.jsxs(he,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:l.value==="yes"})}),r.jsx(B,{className:"text-base",children:C[o].visa_radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:l.value==="no"})}),r.jsx(B,{className:"text-base",children:C[o].visa_radio_2})]})]})})]})}),r.jsx(H,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):C[o].button})]})})}),e&&r.jsx(Ve,{delay:.3})]})}const la=()=>{const{t:i}=ce("main"),{title:e,texts:t,button:s,button2:n}=i("impressions.hero",{returnObjects:!0});return r.jsxs("section",{className:"",children:[r.jsx("img",{src:"/impressions-cover.png",alt:"",className:"w-full object-cover object-top max-h-[610px]"}),r.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:"Показы"}),r.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:r.jsxs(se,{className:"py-20",children:[r.jsx("h2",{className:"text-5xl leading-[120%] mb-10",children:e}),r.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:t.map((a,o)=>r.jsx("p",{className:"text-lg",children:a},o))}),r.jsxs("div",{className:"flex items-center gap-6 mt-6",children:[r.jsx(Qe,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:r.jsx(H,{size:"sm",className:"w-full",children:s})}),r.jsx(Qe,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf",target:"_blank",className:"w-full",children:r.jsx(H,{size:"sm",className:"w-full",children:n})})]})]})})]})},ca=()=>{const{t:i}=ce("main"),e=i("impressions.videosTitle");return r.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] py-20",children:r.jsxs(se,{children:[r.jsx("h2",{className:"mb-10 text-5xl leading-[120%] text-white text-center",children:e}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 mx-48 gap-4 text-white overflow-hidden h-auto md:h-[497px]",children:r.jsx("div",{className:"bg-gray_10 p-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:r.jsx("div",{className:"max-h-[453px]",children:r.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})})})})]})})},ua=i=>{const e=T(n=>n.lang),{data:t,isPending:s}=Me({queryKey:["designers",e],queryFn:()=>ms(e,i),select:({data:n})=>n.data});return{data:t,isPending:s}},da=()=>{var m;const[i,e]=fs({align:"center",skipSnaps:!0,slidesToScroll:3,dragFree:!0}),[t,s]=b.useState(0),{t:n}=ce("main"),[a,o]=b.useState(!1),[l,c]=b.useState(!0),u=b.useCallback(g=>{e&&e.scrollTo(g)},[e]);b.useEffect(()=>{if(!e)return;const g=()=>{s(e==null?void 0:e.selectedScrollSnap()),o(e.canScrollPrev()),c(e.canScrollNext())};return e.on("select",g),()=>{e.off("select",g)}},[e]);const{title:p,text:f}=n("impressions.designers",{returnObjects:!0}),{data:d,isPending:h}=ua(1);return r.jsx("section",{className:"py-20",children:r.jsxs(se,{className:"flex flex-col gap-10",children:[r.jsx("h2",{className:"text-5xl leading-[120%]",children:p}),r.jsx("p",{className:"text-xl normal text-on_surface_v",children:f}),r.jsxs("div",{ref:i,className:"embla",children:[r.jsx("div",{className:"flex embla__container",children:h?r.jsx(le,{}):(m=d==null?void 0:d.designers)==null?void 0:m.map((g,x)=>r.jsx(hs,{...g,className:"embla__slide flex-[0_0_714px] mr-4"},x))}),r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[r.jsx("button",{onClick:()=>e==null?void 0:e.scrollPrev(),className:Q("size-12 flex items-center justify-center",!a&&"opacity-20 pointer-events-none"),children:r.jsx(gs,{})}),r.jsx("div",{className:"flex items-center gap-2",children:[...Array(3)].map((g,x)=>r.jsx("div",{onClick:()=>u==null?void 0:u(x),className:Q("w-5 h-1 rounded-[2px] cursor-pointer",t===x?"bg-teritary":"bg-on_surface_v")},x))}),r.jsx("button",{onClick:()=>e==null?void 0:e.scrollNext(),className:Q("size-12 flex items-center justify-center",!l&&"opacity-20 pointer-events-none"),children:r.jsx(xs,{})})]})]})]})})};function pa(){return q(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(la,{}),r.jsx(ca,{}),r.jsx(da,{})]})}const z=({className:i})=>r.jsx("div",{className:Q("container py-32",i),children:r.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),ma=Ss([{element:r.jsx(ur,{}),path:"/",children:[{element:r.jsx(dr,{}),path:"",errorElement:r.jsx(z,{})},{element:r.jsx(Ur,{}),path:"about",errorElement:r.jsx(z,{})},{element:r.jsx(Gr,{}),path:"B2B-B2G",errorElement:r.jsx(z,{})},{element:r.jsx(qr,{}),path:"become-sponsor",errorElement:r.jsx(z,{})},{element:r.jsx(oa,{}),path:"stend-form",errorElement:r.jsx(z,{})},{element:r.jsx(Yr,{}),path:"contacts",errorElement:r.jsx(z,{})},{element:r.jsx(sa,{}),path:"news",errorElement:r.jsx(z,{})},{element:r.jsx(ta,{}),path:"news/:id",errorElement:r.jsx(z,{})},{element:r.jsx(ra,{}),path:"participants",errorElement:r.jsx(z,{})},{element:r.jsx(Zr,{}),path:"media",errorElement:r.jsx(z,{})},{element:r.jsx(pa,{}),path:"impressions",errorElement:r.jsx(z,{})}]}]),fa=new bs;_s.createRoot(document.getElementById("root")).render(r.jsx(b.StrictMode,{children:r.jsx(vs,{client:fa,children:r.jsx(Ns,{router:ma})})})); +import{u as T,i as It,j as r,H as $t,F as At,a as Dt,b as Bt,c as Vt,d as Mt,e as Kt,f as Gt,g as Ut,h as zt,z as v,k as Re,l as me,S as qe,m as ut,n as Ht,P as ge,o as Z,p as qt,q as Jt,r as Qt,s as Q,t as De,v as xe,w as j,x as Se,y as D,A as B,L as te,B as V,C as k,D as H,E as Be,G as Pe,I as Oe,J as Le,K as oe,M as Ve,N as Wt,O as be,Q as Yt,R as Xt,T as Zt,U as es,V as ts,W as ss,X as ns,Y as ce,Z as rs,_ as as,$ as se,a0 as is,a1 as os,a2 as ls,a3 as dt,a4 as cs,a5 as le,a6 as Me,a7 as us,a8 as pt,a9 as mt,aa as ds,ab as Je,ac as ps,ad as ms,ae as fs,af as hs,ag as gs,ah as xs,ai as bs,aj as vs}from"./ui-library-Cmi48vPd.js";import{f as ys,a as b,O as js,e as re,u as ks,L as Qe,g as Ss,h as Ns}from"./react-vendor-Y0eyvj1J.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(n){if(n.ep)return;n.ep=!0;const a=t(n);fetch(n.href,a)}})();var je={},We;function ws(){if(We)return je;We=1;var i=ys();return je.createRoot=i.createRoot,je.hydrateRoot=i.hydrateRoot,je}var _s=ws();const y=i=>typeof i=="string",de=()=>{let i,e;const t=new Promise((s,n)=>{i=s,e=n});return t.resolve=i,t.reject=e,t},Ye=i=>i==null?"":""+i,Cs=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},Rs=/###/g,Xe=i=>i&&i.indexOf("###")>-1?i.replace(Rs,"."):i,Ze=i=>!i||y(i),pe=(i,e,t)=>{const s=y(e)?e.split("."):e;let n=0;for(;n{const{obj:s,k:n}=pe(i,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=pe(i,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=pe(i,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},Ps=(i,e,t,s)=>{const{obj:n,k:a}=pe(i,e,Object);n[a]=n[a]||[],n[a].push(t)},Ne=(i,e)=>{const{obj:t,k:s}=pe(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},Os=(i,e,t)=>{const s=Ne(i,t);return s!==void 0?s:Ne(e,t)},ft=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?y(i[s])||i[s]instanceof String||y(e[s])||e[s]instanceof String?t&&(i[s]=e[s]):ft(i[s],e[s],t):i[s]=e[s]);return i},ae=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ls={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Es=i=>y(i)?i.replace(/[&<>"'\/]/g,e=>Ls[e]):i;class Ts{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 Fs=[" ",",","?","!",";"],Is=new Ts(20),$s=(i,e,t)=>{e=e||"",t=t||"";const s=Fs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const n=Is.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!n.test(i);if(!a){const o=i.indexOf(t);o>0&&!n.test(i.substring(0,o))&&(a=!0)}return a},$e=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const s=e.split(t);let n=i;for(let a=0;a-1&&ci==null?void 0:i.replace("_","-"),As={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,s;(s=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||s.call(t,console,e)}};class _e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||As,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n{let[l,c]=o;for(let u=0;u{let[l,c]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,p;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):y(s)&&a?l.push(...s.split(a)):l.push(s)));const c=Ne(this.data,l);return!c&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),c||!o||!y(s)?c:$e((p=(u=this.data)==null?void 0:u[e])==null?void 0:p[t],s,a)}addResource(e,t,s,n){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(l=e.split("."),n=t,t=l[1]),this.addNamespaces(t),et(this.data,l,n),a.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(y(s[a])||Array.isArray(s[a]))&&this.addResource(e,t,a,s[a],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),n=s,s=t,t=l[1]),this.addNamespaces(t);let c=Ne(this.data,l)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?ft(c,s,a):c={...c,...s},et(this.data,l,c),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var ht={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,n){return i.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,s,n))??e}),e}};const st={},nt=i=>!y(i)&&typeof i!="boolean"&&typeof i!="number";class Ce extends Ee{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Cs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=J.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!$s(e,s,n);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:y(a)?[a]:a};const u=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(n)}return{key:e,namespaces:y(a)?[a]:a}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(p){const L=t.nsSeparator||this.options.nsSeparator;return n?{res:`${c}${L}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${L}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:o}const f=this.resolve(e,t);let d=f==null?void 0:f.res;const h=(f==null?void 0:f.usedKey)||o,m=(f==null?void 0:f.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,N=t.count!==void 0&&!y(t.count),O=Ce.hasDefaultValue(t),P=N?this.pluralResolver.getSuffix(u,t.count,t):"",F=t.ordinal&&N?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",R=N&&!t.ordinal&&t.count===0,_=R&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${P}`]||t[`defaultValue${F}`]||t.defaultValue;let w=d;S&&!d&&O&&(w=_);const M=nt(w),W=Object.prototype.toString.apply(w);if(S&&w&&M&&g.indexOf(W)<0&&!(y(x)&&Array.isArray(w))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,w,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(f.res=L,f.usedParams=this.getUsedParamsDetails(t),f):L}if(a){const L=Array.isArray(w),I=L?[]:{},ve=L?m:h;for(const K in w)if(Object.prototype.hasOwnProperty.call(w,K)){const G=`${ve}${a}${K}`;O&&!d?I[K]=this.translate(G,{...t,defaultValue:nt(_)?_[K]:void 0,joinArrays:!1,ns:l}):I[K]=this.translate(G,{...t,joinArrays:!1,ns:l}),I[K]===G&&(I[K]=w[K])}d=I}}else if(S&&y(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let L=!1,I=!1;!this.isValidLookup(d)&&O&&(L=!0,d=_),this.isValidLookup(d)||(I=!0,d=o);const K=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:d,G=O&&_!==d&&this.options.updateMissing;if(I||L||G){if(this.logger.log(G?"updateKey":"missingKey",u,c,o,G?_:d),a){const A=this.resolve(o,{...t,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let A=0;A{var He;const ze=O&&ue!==d?ue:K;this.options.missingKeyHandler?this.options.missingKeyHandler(A,c,ne,ze,G,t):(He=this.backendConnector)!=null&&He.saveMissing&&this.backendConnector.saveMissing(A,c,ne,ze,G,t),this.emit("missingKey",A,c,ne,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?$.forEach(A=>{const ne=this.pluralResolver.getSuffixes(A,t);R&&t[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(ue=>{Ue([A],o+ue,t[`defaultValue${ue}`]||_)})}):Ue($,o,_))}d=this.extendTranslation(d,e,t,f,s),I&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(I||L)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,L?d:void 0))}return n?(f.res=d,f.usedParams=this.getUsedParamsDetails(t),f):d}extendTranslation(e,t,s,n,a){var u,p;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const f=y(e)&&(((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const m=e.match(this.interpolator.nestingRegexp);d=m&&m.length}let h=s.replace&&!y(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,s.lng||this.language||n.usedLng,s),f){const m=e.match(this.interpolator.nestingRegexp),g=m&&m.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,n,a,o,l;return y(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(c,t),p=u.key;n=p;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=t.count!==void 0&&!y(t.count),h=d&&!t.ordinal&&t.count===0,m=t.context!==void 0&&(y(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var S,N;this.isValidLookup(s)||(l=x,!st[`${g[0]}-${x}`]&&((S=this.utils)!=null&&S.hasLoadedNamespace)&&!((N=this.utils)!=null&&N.hasLoadedNamespace(l))&&(st[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${g.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(O=>{var R;if(this.isValidLookup(s))return;o=O;const P=[p];if((R=this.i18nFormat)!=null&&R.addLookupKeys)this.i18nFormat.addLookupKeys(P,p,O,x,t);else{let _;d&&(_=this.pluralResolver.getSuffix(O,t.count,t));const w=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(P.push(p+_),t.ordinal&&_.indexOf(M)===0&&P.push(p+_.replace(M,this.options.pluralSeparator)),h&&P.push(p+w)),m){const W=`${p}${this.options.contextSeparator}${t.context}`;P.push(W),d&&(P.push(W+_),t.ordinal&&_.indexOf(M)===0&&P.push(W+_.replace(M,this.options.pluralSeparator)),h&&P.push(W+w))}}let F;for(;F=P.pop();)this.isValidLookup(s)||(a=F,s=this.getResource(O,x,F,t))}))})}),{res:s,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var a;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!y(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const a of t)delete n[a]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class rt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=J.create("languageUtils")}getScriptPartFromCode(e){if(e=we(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=we(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(y(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(a=>{if(a===n)return a;if(!(a.indexOf("-")<0&&n.indexOf("-")<0)&&(a.indexOf("-")>0&&n.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===n||a.indexOf(n)===0&&n.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),y(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],a=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return y(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):y(e)&&a(this.formatLanguageCode(e)),s.forEach(o=>{n.indexOf(o)<0&&a(this.formatLanguageCode(o))}),n}}const at={zero:0,one:1,two:2,few:3,many:4,other:5},it={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ds{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=J.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=we(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(s,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),it;if(!e.match(/-|_/))return it;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,a)=>at[n]-at[a]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ot=function(i,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Os(i,e,t);return!a&&n&&y(t)&&(a=$e(i,t,s),a===void 0&&(a=$e(e,t,s))),a},Fe=i=>i.replace(/\$/g,"$$$$");class Bs{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:S,alwaysFormat:N}=e.interpolation;this.escape=t!==void 0?t:Es,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=a?ae(a):o||"{{",this.suffix=l?ae(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=d?ae(d):h||ae("$t("),this.nestingSuffix=m?ae(m):g||ae(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=S||1e3,this.alwaysFormat=N!==void 0?N:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,n){var h;let a,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const N=ot(t,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,s,{...n,...t,interpolationkey:m}):N}const g=m.split(this.formatSeparator),x=g.shift().trim(),S=g.join(this.formatSeparator).trim();return this.format(ot(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,s,{...n,...t,interpolationkey:x})};this.resetRegExp();const p=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((h=n==null?void 0:n.interpolation)==null?void 0:h.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Fe(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Fe(this.escape(m)):Fe(m)}].forEach(m=>{for(l=0;a=m.regex.exec(e);){const g=a[1].trim();if(o=u(g),o===void 0)if(typeof p=="function"){const S=p(e,a,n);o=y(S)?S:""}else if(n&&Object.prototype.hasOwnProperty.call(n,g))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!y(o)&&!this.useRawValueToEscape&&(o=Ye(o));const x=m.safeValue(o);if(e=e.replace(a[0],x),f?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const f=c.split(new RegExp(`${p}[ ]*{`));let d=`{${f[1]}`;c=f[0],d=this.interpolate(d,o);const h=d.match(/'/g),m=d.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!m||m.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${p}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;n=this.nestingRegexp.exec(e);){let c=[];o={...s},o=o.replace&&!y(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const p=n[1].split(this.formatSeparator).map(f=>f.trim());n[1]=p.shift(),c=p,u=!0}if(a=t(l.call(this,n[1].trim(),o),o),a&&n[0]===e&&!y(a))return a;y(a)||(a=Ye(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((p,f)=>this.format(p,f,s.lng,{...s,interpolationkey:n[1].trim()}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}const Vs=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const s=i.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ie=i=>{const e={};return(t,s,n)=>{let a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a={...a,[n.interpolationkey]:void 0});const o=s+JSON.stringify(a);let l=e[o];return l||(l=i(we(s),n),e[o]=l),l(t)}};class Ms{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=J.create("formatter"),this.options=e,this.formats={number:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return a=>n.format(a)}),currency:ie((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return a=>n.format(a)}),datetime:ie((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return a=>n.format(a)}),relativetime:ie((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return a=>n.format(a,s.range||"day")}),list:ie((t,s)=>{const n=new Intl.ListFormat(t,{...s});return a=>n.format(a)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ie(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var f;const{formatName:u,formatOptions:p}=Vs(c);if(this.formats[u]){let d=l;try{const h=((f=n==null?void 0:n.formatParams)==null?void 0:f[n.interpolationkey])||{},m=h.locale||h.lng||n.locale||n.lng||s;d=this.formats[u](l,m,{...p,...n,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Ks=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Gs extends Ee{constructor(e,t,s){var a,o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=J.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,s,n.backend,n)}queueLoad(e,t,s,n){const a={},o={},l={},c={};return e.forEach(u=>{let p=!0;t.forEach(f=>{const d=`${u}|${f}`;!s.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,p=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),c[f]===void 0&&(c[f]=!0)))}),p||(l[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,s){const n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&s&&this.store.addResourceBundle(a,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Ps(c.loaded,[a],o),Ks(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:a,callback:o});return}this.readingCalls++;const l=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&p&&n{this.read.call(this,e,t,s,n+1,a*2,o)},a);return}o(u,p)},c=this.backend[s].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),y(t)&&(t=[t]);const a=this.queueLoad(e,t,s,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],a=s[1];this.read(n,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${a} for language ${n}`,l),this.loaded(e,o,l)})}saveMissing(e,t,s,n,a){var c,u,p,f,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&&!((f=(p=this.services)==null?void 0:p.utils)!=null&&f.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 h={...o,isUpdate:a},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(e,t,s,n,h):g=m(e,t,s,n),g&&typeof g.then=="function"?g.then(x=>l(null,x)).catch(l):l(null,g)}catch(g){l(g)}else m(e,t,s,n,l,h)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const lt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),y(i[1])&&(e.defaultValue=i[1]),y(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ct=i=>{var e,t;return y(i.ns)&&(i.ns=[i.ns]),y(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),y(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((t=(e=i.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},ke=()=>{},Us=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class fe extends Ee{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ct(e),this.services={},this.logger=J,this.modules={external:[]},Us(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&&(y(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=lt();this.options={...n,...this.options,...ct(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?J.init(a(this.modules.logger),this.options):J.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Ms;const f=new rt(this.options);this.store=new tt(this.options.resources,this.options);const d=this.services;d.logger=J,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Ds(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=a(p),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Bs(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Gs(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var m=arguments.length,g=new Array(m>1?m-1:0),x=1;x1?m-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ke),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=de(),u=()=>{const p=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(d),s(f,d)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var a,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const n=y(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};n?c(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=de();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ke),this.services.backendConnector.reload(e,t,a=>{n.resolve(),s(a)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&ht.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=de();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(c,function(){return s.t(...arguments)})},l=c=>{var p,f;!e&&!c&&this.services.languageDetector&&(c=[]);const u=y(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(f=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||f.call(p,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),n}getFixedT(e,t,s){var n=this;const a=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,p=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${d}${m}`):h=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,n.t(h,c)};return y(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(){var n;for(var e=arguments.length,t=new Array(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!n||o(a,e)))}loadNamespaces(e,t){const s=de();return this.options.ns?(y(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=de();y(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=n.concat(a),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var n,a;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((a=this.services)==null?void 0:a.languageUtils)||new rt(lt());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 fe(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},a=new fe(n);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((p,f)=>(p[f]={...c[u][f]},p),{})),{});a.store=new tt(l,n),a.services.resourceStore=a.store}return a.translator=new Ce(a.services,n),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p{const i=T(e=>e.lang);return b.useEffect(()=>{E.changeLanguage(i)},[i]),null};function ur(){return r.jsxs("main",{className:"flex flex-col min-h-screen",children:[r.jsx(cr,{}),r.jsx($t,{}),r.jsx("div",{className:"flex-auto",children:r.jsx(js,{})}),r.jsx(At,{})]})}function dr(){return r.jsxs("div",{className:"flex flex-col",children:[r.jsx(Dt,{}),r.jsx(Bt,{}),r.jsx(Vt,{}),r.jsx(Mt,{}),r.jsx(Kt,{}),r.jsx(Gt,{}),r.jsx(Ut,{}),r.jsx(zt,{})]})}const pr=v.object({type:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.string().min(1,{message:"Укажите количество участников"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:v.string().email({message:"Укажите корректный email"}),phone_number:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:"Укажите цель встречи"}),proposal_description:v.string().optional(),government_agency:v.string().optional(),sector_industry:v.string().optional(),key_services:v.string().optional(),government_experience:v.string().optional(),preferred_meeting_datetime:v.string().optional(),meeting_mode:v.string().optional(),language_preference:v.string().optional(),technical_requirements:v.string().optional(),company_profile:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:v.custom(i=>i instanceof File,{message:"Выберите корректный файл"}).refine(i=>i&&["image/jpeg","image/png","application/pdf"].includes(i.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),mr={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 fr(i){const e=i+"CollectionProvider",[t,s]=Re(e),[n,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:m,children:g}=h,x=re.useRef(null),S=re.useRef(new Map).current;return r.jsx(n,{scope:m,itemMap:S,collectionRef:x,children:g})};o.displayName=e;const l=i+"CollectionSlot",c=re.forwardRef((h,m)=>{const{scope:g,children:x}=h,S=a(l,g),N=me(m,S.collectionRef);return r.jsx(qe,{ref:N,children:x})});c.displayName=l;const u=i+"CollectionItemSlot",p="data-radix-collection-item",f=re.forwardRef((h,m)=>{const{scope:g,children:x,...S}=h,N=re.useRef(null),O=me(m,N),P=a(u,g);return re.useEffect(()=>(P.itemMap.set(N,{ref:N,...S}),()=>void P.itemMap.delete(N))),r.jsx(qe,{[p]:"",ref:O,children:x})});f.displayName=u;function d(h){const m=a(i+"CollectionConsumer",h);return re.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((P,F)=>S.indexOf(P.ref.current)-S.indexOf(F.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,s]}var hr=b.createContext(void 0);function gt(i){const e=b.useContext(hr);return i||e||"ltr"}var Ie="rovingFocusGroup.onEntryFocus",gr={bubbles:!1,cancelable:!0},Te="RovingFocusGroup",[Ae,xt,xr]=fr(Te),[br,bt]=Re(Te,[xr]),[vr,yr]=br(Te),vt=b.forwardRef((i,e)=>r.jsx(Ae.Provider,{scope:i.__scopeRovingFocusGroup,children:r.jsx(Ae.Slot,{scope:i.__scopeRovingFocusGroup,children:r.jsx(jr,{...i,ref:e})})}));vt.displayName=Te;var jr=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:n=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...f}=i,d=b.useRef(null),h=me(e,d),m=gt(a),[g=null,x]=ut({prop:o,defaultProp:l,onChange:c}),[S,N]=b.useState(!1),O=Ht(u),P=xt(t),F=b.useRef(!1),[R,_]=b.useState(0);return b.useEffect(()=>{const w=d.current;if(w)return w.addEventListener(Ie,O),()=>w.removeEventListener(Ie,O)},[O]),r.jsx(vr,{scope:t,orientation:s,dir:m,loop:n,currentTabStopId:g,onItemFocus:b.useCallback(w=>x(w),[x]),onItemShiftTab:b.useCallback(()=>N(!0),[]),onFocusableItemAdd:b.useCallback(()=>_(w=>w+1),[]),onFocusableItemRemove:b.useCallback(()=>_(w=>w-1),[]),children:r.jsx(ge.div,{tabIndex:S||R===0?-1:0,"data-orientation":s,...f,ref:h,style:{outline:"none",...i.style},onMouseDown:Z(i.onMouseDown,()=>{F.current=!0}),onFocus:Z(i.onFocus,w=>{const M=!F.current;if(w.target===w.currentTarget&&M&&!S){const W=new CustomEvent(Ie,gr);if(w.currentTarget.dispatchEvent(W),!W.defaultPrevented){const L=P().filter($=>$.focusable),I=L.find($=>$.active),ve=L.find($=>$.id===g),G=[I,ve,...L].filter(Boolean).map($=>$.ref.current);kt(G,p)}}F.current=!1}),onBlur:Z(i.onBlur,()=>N(!1))})})}),yt="RovingFocusGroupItem",jt=b.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:n=!1,tabStopId:a,...o}=i,l=qt(),c=a||l,u=yr(yt,t),p=u.currentTabStopId===c,f=xt(t),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return b.useEffect(()=>{if(s)return d(),()=>h()},[s,d,h]),r.jsx(Ae.ItemSlot,{scope:t,id:c,focusable:s,active:n,children:r.jsx(ge.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:Z(i.onMouseDown,m=>{s?u.onItemFocus(c):m.preventDefault()}),onFocus:Z(i.onFocus,()=>u.onItemFocus(c)),onKeyDown:Z(i.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=Nr(m,u.orientation,u.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(N=>N.focusable).map(N=>N.ref.current);if(g==="last")S.reverse();else if(g==="prev"||g==="next"){g==="prev"&&S.reverse();const N=S.indexOf(m.currentTarget);S=u.loop?wr(S,N+1):S.slice(N+1)}setTimeout(()=>kt(S))}})})})});jt.displayName=yt;var kr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Sr(i,e){return e!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function Nr(i,e,t){const s=Sr(i.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return kr[s]}function kt(i,e=!1){const t=document.activeElement;for(const s of i)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function wr(i,e){return i.map((t,s)=>i[(e+s)%i.length])}var _r=vt,Cr=jt;function Rr(i){const e=b.useRef({value:i,previous:i});return b.useMemo(()=>(e.current.value!==i&&(e.current.previous=e.current.value,e.current.value=i),e.current.previous),[i])}var Ke="Radio",[Pr,St]=Re(Ke),[Or,Lr]=Pr(Ke),Nt=b.forwardRef((i,e)=>{const{__scopeRadio:t,name:s,checked:n=!1,required:a,disabled:o,value:l="on",onCheck:c,form:u,...p}=i,[f,d]=b.useState(null),h=me(e,x=>d(x)),m=b.useRef(!1),g=f?u||!!f.closest("form"):!0;return r.jsxs(Or,{scope:t,checked:n,disabled:o,children:[r.jsx(ge.button,{type:"button",role:"radio","aria-checked":n,"data-state":Ct(n),"data-disabled":o?"":void 0,disabled:o,value:l,...p,ref:h,onClick:Z(i.onClick,x=>{n||c==null||c(),g&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),g&&r.jsx(Er,{control:f,bubbles:!m.current,name:s,value:l,checked:n,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Nt.displayName=Ke;var wt="RadioIndicator",_t=b.forwardRef((i,e)=>{const{__scopeRadio:t,forceMount:s,...n}=i,a=Lr(wt,t);return r.jsx(Jt,{present:s||a.checked,children:r.jsx(ge.span,{"data-state":Ct(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:e})})});_t.displayName=wt;var Er=i=>{const{control:e,checked:t,bubbles:s=!0,...n}=i,a=b.useRef(null),o=Rr(t),l=Qt(e);return b.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&f){const d=new Event("click",{bubbles:s});f.call(c,t),c.dispatchEvent(d)}},[o,t,s]),r.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:a,style:{...i.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ct(i){return i?"checked":"unchecked"}var Tr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ge="RadioGroup",[Fr,xa]=Re(Ge,[bt,St]),Rt=bt(),Pt=St(),[Ir,$r]=Fr(Ge),Ot=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:n,value:a,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:p=!0,onValueChange:f,...d}=i,h=Rt(t),m=gt(u),[g,x]=ut({prop:a,defaultProp:n,onChange:f});return r.jsx(Ir,{scope:t,name:s,required:o,disabled:l,value:g,onValueChange:x,children:r.jsx(_r,{asChild:!0,...h,orientation:c,dir:m,loop:p,children:r.jsx(ge.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:m,...d,ref:e})})})});Ot.displayName=Ge;var Lt="RadioGroupItem",Et=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,disabled:s,...n}=i,a=$r(Lt,t),o=a.disabled||s,l=Rt(t),c=Pt(t),u=b.useRef(null),p=me(e,u),f=a.value===n.value,d=b.useRef(!1);return b.useEffect(()=>{const h=g=>{Tr.includes(g.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",m)}},[]),r.jsx(Cr,{asChild:!0,...l,focusable:!o,active:f,children:r.jsx(Nt,{disabled:o,required:a.required,checked:f,...c,...n,name:a.name,ref:p,onCheck:()=>a.onValueChange(n.value),onKeyDown:Z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Z(n.onFocus,()=>{var h;d.current&&((h=u.current)==null||h.click())})})})});Et.displayName=Lt;var Ar="RadioGroupIndicator",Dr=b.forwardRef((i,e)=>{const{__scopeRadioGroup:t,...s}=i,n=Pt(t);return r.jsx(_t,{...n,...s,ref:e})});Dr.displayName=Ar;var Tt=Ot,Ft=Et;const he=b.forwardRef(({className:i,...e},t)=>r.jsx(Tt,{className:Q("grid gap-2",i),...e,ref:t}));he.displayName=Tt.displayName;const X=b.forwardRef(({className:i,...e},t)=>r.jsx(Ft,{ref:t,className:Q(e.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",i),...e}));X.displayName=Ft.displayName;const Y=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Веб-сайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"Email"},{label:"Phone number"},{label:"Website"}]}],ee=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],U=[{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"}],q=i=>{b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[i])},Br=({handleNext:i})=>{q();const{control:e,formState:t}=De(),s=T(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[r.jsx("h2",{className:"h2 mb-8",children:Y[j(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(Se,{defaultValue:1,control:e,name:"type",render:({field:n})=>r.jsxs(D,{className:"space-y-3",children:[r.jsx(B,{className:"text-xl",children:s===te.RU?"Тип:":"Type:"}),r.jsx(V,{children:r.jsxs(he,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4",children:[r.jsxs(D,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2B",checked:n.value==="B2B"})}),r.jsx(B,{className:"text-base",children:"B2B"})]}),r.jsxs(D,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"B2G",checked:n.value==="B2G"})}),r.jsx(B,{className:"text-base",children:"B2G"})]})]})})]})}),r.jsx(k,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:Y[j(s)].data[0].label}),r.jsx(k,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:Y[j(s)].data[1].label}),r.jsx(k,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:Y[j(s)].data[2].label}),r.jsx(k,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:Y[j(s)].data[3].label}),r.jsx(k,{control:e,name:"country",error:t.errors.country,placeholder:"",label:Y[j(s)].data[4].label}),r.jsx(k,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:Y[j(s)].data[5].label}),r.jsx(k,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:Y[j(s)].data[6].label}),r.jsx(k,{control:e,name:"website",placeholder:"",label:Y[j(s)].data[7].label})]}),r.jsx(H,{variant:"secondary",type:"button",onClick:i,className:"w-full mt-10",children:s===te.RU?"Далее":"Next"})]})},Vr=({handleNext:i,handlePrev:e})=>{q();const t=T(a=>a.lang),{control:s,formState:n}=De();return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[r.jsx("h2",{className:"h2 mb-8",children:ee[j(t)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(k,{control:s,name:"meeting_objective",error:n.errors.meeting_objective,placeholder:"",label:ee[j(t)].data[0].label}),r.jsx(k,{control:s,name:"proposal_description",error:n.errors.proposal_description,placeholder:"",label:ee[j(t)].data[1].label}),r.jsx(k,{control:s,name:"government_agency",error:n.errors.government_agency,placeholder:"",label:ee[j(t)].data[2].label}),r.jsx("h2",{className:"h2 mt-4",children:ee[j(t)].secondH2}),r.jsx(k,{control:s,name:"sector_industry",error:n.errors.sector_industry,placeholder:"",label:ee[j(t)].data[3].label}),r.jsx(k,{control:s,name:"key_services",error:n.errors.key_services,placeholder:"",label:ee[j(t)].data[4].label}),r.jsx(k,{control:s,name:"government_experience",error:n.errors.government_experience,placeholder:"",label:ee[j(t)].data[5].label})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(H,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:t===te.RU?"Вернуться назад":"Back"}),r.jsx(H,{variant:"secondary",type:"button",onClick:i,className:"w-full",children:t===te.RU?"Далее":"Next"})]})]})},Mr=({handlePrev:i})=>{q();const{control:e,formState:t}=De(),s=T(n=>n.lang);return r.jsxs(xe.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[r.jsx("h2",{className:"h2 mb-8",children:U[j(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx(k,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:U[j(s)].data[0].label}),r.jsx(k,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:U[j(s)].data[1].label}),r.jsx(k,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:U[j(s)].data[2].label}),r.jsx(k,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:U[j(s)].data[3].label})]}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"h2 mt-10",children:U[j(s)].secondH2}),r.jsx("h5",{className:"text-on_surface_v",children:U[j(s)].subtitle})]}),r.jsx(k,{control:e,name:"company_profile",label:U[j(s)].data[4].label,type:"file",textDark:!0}),r.jsx(k,{control:e,name:"proposal_presentation",label:U[j(s)].data[5].label,type:"file",textDark:!0}),r.jsx(k,{control:e,name:"relevant_certification",label:U[j(s)].data[6].label,type:"file",textDark:!0})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(H,{type:"button",onClick:i,variant:"outline",className:"text-on_surface",children:s===te.RU?"Вернуться назад":"Back"}),r.jsx(H,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?r.jsx(Be,{className:"animate-spin"}):U[j(s)].button})]})]})},Kr=({stage:i,setStage:e,success:t,setSuccess:s})=>{const n=Pe({resolver:Oe(pr),defaultValues:mr,mode:"onChange"}),a=u=>{switch(u){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},o=async()=>{const u=a(i);await n.trigger(u)&&e(f=>f+1)},l=()=>e(u=>u-1),c=async u=>{try{const p=new FormData;Object.entries(u).forEach(([d,h])=>{h instanceof File?(console.log(`Добавляем файл: ${d}`,h),p.append(d,h)):h!==void 0&&(console.log(`Добавляем поле: ${d}`,h),p.append(d,h))}),(await Wt.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",p,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(p){console.error("Ошибка при отправке B2B формы:",p)}};return r.jsx(Le,{...n,children:r.jsx("form",{onSubmit:n.handleSubmit(c),children:r.jsxs("div",{className:"relative",children:[r.jsx(oe,{children:i===1&&r.jsx(Br,{handleNext:o})}),r.jsx(oe,{children:i===2&&r.jsx(Vr,{handleNext:o,handlePrev:l})}),r.jsx(oe,{children:i===3&&t===!1&&r.jsx(Mr,{handlePrev:l})}),t&&r.jsx(Ve,{})]})})})};function Gr(){q();const i=T(a=>a.lang),[e,t]=b.useState(1),[s,n]=b.useState(!1);return r.jsxs("div",{className:"pb-[120px]",children:[r.jsx(be,{title:i===te.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!s&&e!==0&&r.jsx(Yt,{stage:e}),r.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:r.jsx(Kr,{success:s,setSuccess:n,stage:e,setStage:t})})]})}function Ur(){q();const i=T(e=>e.lang);return r.jsxs("div",{className:Q(""),children:[r.jsx(be,{title:i===te.RU?"О выставке":"About exhibition"}),r.jsx(Xt,{}),r.jsx(Zt,{}),r.jsx(es,{}),r.jsx(ts,{}),r.jsx(ss,{})]})}const zr=v.object({company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),Hr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},C=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Необорудованная площадь",radio_2:"Оборудованная площадь",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Веб-сайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];function qr(){q();const i=T(o=>o.lang),[e,t]=b.useState(!1),s=Pe({resolver:Oe(zr),defaultValues:Hr}),n=async o=>{try{await ns(o)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:a}=s.formState;return r.jsxs("div",{children:[r.jsx(be,{title:i===te.RU?"Стать спонсором":"Become a sponsor"}),r.jsx(oe,{children:!e&&r.jsx(Le,{...s,children:r.jsxs(xe.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(n),children:[r.jsx(k,{label:C[j(i)].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(k,{label:C[j(i)].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(k,{label:C[j(i)].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(k,{label:C[j(i)].label_4,name:"country",control:s.control,error:a.country}),r.jsx(k,{label:C[j(i)].label_5,name:"email",control:s.control,error:a.email}),r.jsx(k,{label:C[j(i)].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(k,{label:C[j(i)].label_7,name:"website",control:s.control}),r.jsx(Se,{control:s.control,name:"visa_support",render:({field:o})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[j(i)].visa}),r.jsx(V,{children:r.jsxs(he,{onValueChange:o.onChange,defaultValue:o.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:o.value==="yes"})}),r.jsx(B,{className:"text-base",children:C[j(i)].visa_radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:o.value==="no"})}),r.jsx(B,{className:"text-base",children:C[j(i)].visa_radio_2})]})]})})]})}),r.jsx(H,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):C[j(i)].button})]})})}),e&&r.jsx(Ve,{delay:.3})]})}const Jr=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")}),Qr={name:"",email:"",phone:"",company:"",msg:""},Wr=({className:i})=>{const{t:e}=ce("contacts"),[t,s]=b.useState(!1),n=Pe({resolver:Oe(Jr),defaultValues:Qr});async function a(l){try{const c=await as(l);s(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=n.formState;return r.jsx("div",{className:Q("bg-primary rounded-[8px] py-8 px-6 ",i),children:r.jsx(Le,{...n,children:r.jsxs("form",{onSubmit:n.handleSubmit(a),children:[r.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(k,{onPrimary:!0,name:"name",control:n.control,label:e("name"),error:o.name}),r.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[r.jsx(k,{onPrimary:!0,name:"email",control:n.control,label:"Email",error:o.email}),r.jsx(k,{onPrimary:!0,name:"phone",control:n.control,label:e("phone"),error:o.phone})]}),r.jsx(k,{onPrimary:!0,name:"company",control:n.control,label:e("company"),error:o.name}),r.jsx(k,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:n.control,error:o.msg}),r.jsx(H,{disabled:n.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):n.formState.isSubmitting?r.jsx(rs,{className:"animate-spin text-white"}):e("button")})]})]})})})};function Yr(){q();const{t:i}=ce("contacts");return r.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[r.jsx(se,{children:r.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[r.jsx(Wr,{}),r.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[r.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:i("title_2")}),r.jsxs("div",{className:"flex flex-col gap-20",children:[r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/map.svg",alt:"address"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("address")}),r.jsx("address",{className:"text-base normal not-italic",children:i("venue")})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:i("phone")}),r.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/email.svg",alt:"email"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),r.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),r.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:r.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}const Xr=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],Zr=({className:i})=>{var S,N,O,P,F;const[e,t]=b.useState(0),{data:s,isPending:n,status:a}=is(1),{data:o}=os(1),[l,c]=b.useState(!1),[u,p]=b.useState({id:0,type:"photo"}),f=T(R=>R.lang),d=({id:R,type:_})=>{c(!0),p({id:R,type:_})},{t:h}=ce("main"),[m,g]=b.useState(!1),x=R=>R===0&&n?r.jsx(le,{}):r.jsx(le,{});return console.log(a),r.jsxs(r.Fragment,{children:[r.jsx(oe,{children:l&&r.jsx(ls,{activeItem:u,setActiveItem:p,setIsOpen:c})}),r.jsxs("section",{className:Q("md:mb-[120px] mb-20",i),children:[r.jsx(be,{title:f==="ru"?"Моменты":"Moments"}),r.jsx(se,{className:"page-bottom md:pt-10 pt-6",children:r.jsxs("div",{className:"flex justify-center flex-col",children:[r.jsx(dt,{state:e,setState:t,data:Xr,className:"mb-6"}),e===0&&n?x(e):r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"2025"}),r.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(N=(S=s==null?void 0:s.photos)==null?void 0:S.slice(0,m?1e3:16))==null?void 0:N.map((R,_)=>{var w,M;return r.jsx("div",{onClick:()=>d({id:_,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:r.jsx("img",{src:((w=R==null?void 0:R.photo)==null?void 0:w.path)??"",alt:((M=R==null?void 0:R.photo)==null?void 0:M.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},_)}):(O=o==null?void 0:o.videos)==null?void 0:O.map((R,_)=>{var w;return r.jsxs("div",{onClick:()=>d({id:_,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[r.jsx(cs,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),r.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),r.jsx("img",{src:((w=R==null?void 0:R.video_photo)==null?void 0:w.path)??"",className:"size-full object-cover"})]},_)})})]}),((P=s==null?void 0:s.photos)==null?void 0:P.length)&&((F=s==null?void 0:s.photos)==null?void 0:F.length)>16&&!m&&r.jsx(H,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:h("media.button")})]})})]})]})},ea=(i,e)=>{const{data:t,isPending:s}=Me({queryKey:["news-inner",i,e],queryFn:()=>us(i,e),select:({data:n})=>n.data});return{data:t,isPending:s}};function ta(){var o;const{id:i}=ks(),e=T(l=>l.lang),t=Number(i);q(t);const{data:s,isPending:n}=ea(t,e),{data:a}=pt(e);return n?r.jsx(le,{}):r.jsxs(se,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[r.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),r.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),r.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:r.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),r.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),r.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),r.jsxs("section",{children:[r.jsx("h2",{className:"h2 mb-6",children:e==="ru"?"Читайте также:":"Read more:"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:a==null?void 0:a.filter(l=>l.id!==t).slice(0,3).map(l=>b.createElement(mt,{...l,key:l.title}))})]})]})}function sa(){q();const i=T(s=>s.lang),{data:e,isPending:t}=pt(i);return t?r.jsx(le,{}):r.jsxs(se,{className:"page-padding",children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:i==="ru"?"Новости":"News"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>b.createElement(mt,{...s,key:s.title}))})]})}const na=()=>{const i=T(s=>s.lang),{data:e,isPending:t}=Me({queryKey:["participants",i],queryFn:()=>ds(i),select:({data:s})=>s.data});return{data:e,isPending:t}},ra=({className:i})=>{var u,p,f,d,h;q();const e=T(m=>m.lang),{data:t,isPending:s}=na(),n={company:e==="ru"?"Название компании":"Company name",country:e==="ru"?"Страна":"Country",industry:e==="ru"?"Сфера деятельности":"Industry"},[a,o]=b.useState(0),l=(f=t==null?void 0:t[0])==null?void 0:f.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(p=t==null?void 0:t[2])==null?void 0:p.participants),c=t==null?void 0:t.filter(m=>a===1?m.id===3:a===2?m.id===1:m.id===2);return console.log(a),r.jsx(se,{children:r.jsxs("section",{className:Q("page-padding overflow-x-hidden",i),children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:e==="ru"?"Список участников":"List of participants"}),r.jsx(dt,{state:a,setState:o,className:"mb-6 md:w-fit"}),r.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[r.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[r.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:n==null?void 0:n.company}),r.jsx("h3",{className:"flex-[0_0_19.80%]",children:n==null?void 0:n.country}),r.jsx("h3",{className:"flex-[0_0_34.65%]",children:n==null?void 0:n.industry})]}),s?r.jsx(le,{}):a===0?l==null?void 0:l.map((m,g,x)=>r.jsx(Je,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}})):(h=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:h.map((m,g,x)=>r.jsx(Je,{...m,arr:x==null?void 0:x.length,index:g,image:m.image??{path:""},image_country:m.image_country??{path:""}}))]})]})})},aa=v.object({space_package:v.string(),company_name:v.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:v.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:v.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:v.preprocess(i=>Number(i),v.number().min(1,"Укажите количество участников")),country:v.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:v.string().email({message:"Укажите корректный email"}),phone:v.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:v.string().optional(),visa_support:v.string().optional()}),ia={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function oa(){const i=T(l=>l.lang),[e,t]=b.useState(!1),s=Pe({resolver:Oe(aa),defaultValues:ia}),n=async l=>{await ps(l)&&t(!0)};b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:a}=s.formState,o=j(i);return r.jsxs("div",{children:[r.jsx(be,{title:C[j(i)].cover}),r.jsx(oe,{children:!e&&r.jsx(Le,{...s,children:r.jsxs(xe.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(n),children:[r.jsx(Se,{control:s.control,name:"space_package",render:({field:l})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[o].h2}),r.jsx(V,{children:r.jsxs(he,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"space",checked:l.value==="space"})}),r.jsx(B,{className:"text-base",children:C[o].radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"package",checked:l.value==="package"})}),r.jsx(B,{className:"text-base",children:C[o].radio_2})]})]})})]})}),r.jsx(k,{label:C[o].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(k,{label:C[o].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(k,{label:C[o].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(k,{label:C[o].number_of_participants,type:"number",name:"participants_number",control:s.control,error:a.participants_number}),r.jsx(k,{label:C[o].label_4,name:"country",control:s.control,error:a.country}),r.jsx(k,{label:C[o].label_5,name:"email",control:s.control,error:a.email}),r.jsx(k,{label:C[o].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(k,{label:C[o].label_7,name:"website",control:s.control}),r.jsx(Se,{control:s.control,name:"visa_support",render:({field:l})=>r.jsxs(D,{className:"space-y-5",children:[r.jsx(B,{className:"text-xl",children:C[o].visa}),r.jsx(V,{children:r.jsxs(he,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(D,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(V,{children:r.jsx(X,{value:"yes",checked:l.value==="yes"})}),r.jsx(B,{className:"text-base",children:C[o].visa_radio})]}),r.jsxs(D,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(V,{children:r.jsx(X,{value:"no",checked:l.value==="no"})}),r.jsx(B,{className:"text-base",children:C[o].visa_radio_2})]})]})})]})}),r.jsx(H,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Be,{className:"animate-spin"}):C[o].button})]})})}),e&&r.jsx(Ve,{delay:.3})]})}const la=()=>{const{t:i}=ce("main"),{title:e,texts:t,button:s,button2:n}=i("impressions.hero",{returnObjects:!0});return r.jsxs("section",{className:"",children:[r.jsx("img",{src:"/impressions-cover.png",alt:"",className:"w-full object-cover object-top max-h-[610px]"}),r.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:"Показы"}),r.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:r.jsxs(se,{className:"py-20",children:[r.jsx("h2",{className:"text-5xl leading-[120%] mb-10",children:e}),r.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:t.map((a,o)=>r.jsx("p",{className:"text-lg",children:a},o))}),r.jsxs("div",{className:"flex items-center gap-6 mt-6",children:[r.jsx(Qe,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:r.jsx(H,{size:"sm",className:"w-full",children:s})}),r.jsx(Qe,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf",target:"_blank",className:"w-full",children:r.jsx(H,{size:"sm",className:"w-full",children:n})})]})]})})]})},ca=()=>{const{t:i}=ce("main"),e=i("impressions.videosTitle");return r.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] py-20",children:r.jsxs(se,{children:[r.jsx("h2",{className:"mb-10 text-5xl leading-[120%] text-white text-center",children:e}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 mx-48 gap-4 text-white overflow-hidden h-auto md:h-[497px]",children:r.jsx("div",{className:"bg-gray_10 p-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:r.jsx("div",{className:"max-h-[453px]",children:r.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})})})})]})})},ua=i=>{const e=T(n=>n.lang),{data:t,isPending:s}=Me({queryKey:["designers",e],queryFn:()=>ms(e,i),select:({data:n})=>n.data});return{data:t,isPending:s}},da=()=>{var m;const[i,e]=fs({align:"center",skipSnaps:!0,slidesToScroll:3,dragFree:!0}),[t,s]=b.useState(0),{t:n}=ce("main"),[a,o]=b.useState(!1),[l,c]=b.useState(!0),u=b.useCallback(g=>{e&&e.scrollTo(g)},[e]);b.useEffect(()=>{if(!e)return;const g=()=>{s(e==null?void 0:e.selectedScrollSnap()),o(e.canScrollPrev()),c(e.canScrollNext())};return e.on("select",g),()=>{e.off("select",g)}},[e]);const{title:p,text:f}=n("impressions.designers",{returnObjects:!0}),{data:d,isPending:h}=ua(1);return r.jsx("section",{className:"py-20",children:r.jsxs(se,{className:"flex flex-col gap-10",children:[r.jsx("h2",{className:"text-5xl leading-[120%]",children:p}),r.jsx("p",{className:"text-xl normal text-on_surface_v",children:f}),r.jsxs("div",{ref:i,className:"embla",children:[r.jsx("div",{className:"flex embla__container",children:h?r.jsx(le,{}):(m=d==null?void 0:d.designers)==null?void 0:m.map((g,x)=>r.jsx(hs,{...g,className:"embla__slide flex-[0_0_714px] mr-4"},x))}),r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[r.jsx("button",{onClick:()=>e==null?void 0:e.scrollPrev(),className:Q("size-12 flex items-center justify-center",!a&&"opacity-20 pointer-events-none"),children:r.jsx(gs,{})}),r.jsx("div",{className:"flex items-center gap-2",children:[...Array(3)].map((g,x)=>r.jsx("div",{onClick:()=>u==null?void 0:u(x),className:Q("w-5 h-1 rounded-[2px] cursor-pointer",t===x?"bg-teritary":"bg-on_surface_v")},x))}),r.jsx("button",{onClick:()=>e==null?void 0:e.scrollNext(),className:Q("size-12 flex items-center justify-center",!l&&"opacity-20 pointer-events-none"),children:r.jsx(xs,{})})]})]})]})})};function pa(){return q(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(la,{}),r.jsx(ca,{}),r.jsx(da,{})]})}const z=({className:i})=>r.jsx("div",{className:Q("container py-32",i),children:r.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),ma=Ss([{element:r.jsx(ur,{}),path:"/",children:[{element:r.jsx(dr,{}),path:"",errorElement:r.jsx(z,{})},{element:r.jsx(Ur,{}),path:"about",errorElement:r.jsx(z,{})},{element:r.jsx(Gr,{}),path:"B2B-B2G",errorElement:r.jsx(z,{})},{element:r.jsx(qr,{}),path:"become-sponsor",errorElement:r.jsx(z,{})},{element:r.jsx(oa,{}),path:"stend-form",errorElement:r.jsx(z,{})},{element:r.jsx(Yr,{}),path:"contacts",errorElement:r.jsx(z,{})},{element:r.jsx(sa,{}),path:"news",errorElement:r.jsx(z,{})},{element:r.jsx(ta,{}),path:"news/:id",errorElement:r.jsx(z,{})},{element:r.jsx(ra,{}),path:"participants",errorElement:r.jsx(z,{})},{element:r.jsx(Zr,{}),path:"media",errorElement:r.jsx(z,{})},{element:r.jsx(pa,{}),path:"impressions",errorElement:r.jsx(z,{})}]}]),fa=new bs;_s.createRoot(document.getElementById("root")).render(r.jsx(b.StrictMode,{children:r.jsx(vs,{client:fa,children:r.jsx(Ns,{router:ma})})})); diff --git a/dist/assets/ui-library-DnLOQLxR.js b/dist/assets/ui-library-Cmi48vPd.js similarity index 80% rename from dist/assets/ui-library-DnLOQLxR.js rename to dist/assets/ui-library-Cmi48vPd.js index 73e6a4a..4ed3960 100644 --- a/dist/assets/ui-library-DnLOQLxR.js +++ b/dist/assets/ui-library-Cmi48vPd.js @@ -148,7 +148,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[uh]=this[uh]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Or(o);s[a]||(yN(r,o),s[a]=!0)}return j.isArray(t)?t.forEach(i):i(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});j.freezeMethods(ft);function Ga(e,t){const n=this||Di,s=t||n,r=ft.from(s.headers);let i=s.data;return j.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function iv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits(Cr,ie,{__CANCEL__:!0});function ov(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xN(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,h=0;for(;d!==r;)h+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Fo=(e,t,n=3)=>{let s=0;const r=xN(50,250);return bN(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},dh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},fh=e=>(...t)=>j.asap(()=>e(...t)),wN=Xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,SN=Xe.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),j.isString(s)&&o.push("path="+s),j.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _N(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function av(e,t){return e&&!_N(t)?CN(e,t):t}const hh=e=>e instanceof ft?{...e}:e;function Es(e,t){t=t||{};const n={};function s(l,u,d,h){return j.isPlainObject(l)&&j.isPlainObject(u)?j.merge.call({caseless:h},l,u):j.isPlainObject(u)?j.merge({},u):j.isArray(u)?u.slice():u}function r(l,u,d,h){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l,d,h)}else return s(l,u,d,h)}function i(l,u){if(!j.isUndefined(u))return s(void 0,u)}function o(l,u){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>r(hh(l),hh(u),d,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,h=d(e[u],t[u],u);j.isUndefined(h)&&d!==a||(n[u]=h)}),n}const cv=e=>{const t=Es({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ft.from(o),t.url=nv(av(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(j.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Xe.hasStandardBrowserEnv&&(s&&j.isFunction(s)&&(s=s(t)),s||s!==!1&&wN(t.url))){const l=r&&i&&SN.read(i);l&&o.set(r,l)}return t},EN=typeof XMLHttpRequest<"u",TN=EN&&function(e){return new Promise(function(n,s){const r=cv(e);let i=r.data;const o=ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,h,g,m;function p(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function x(){if(!v)return;const w=ft.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};ov(function(E){n(E),p()},function(E){s(E),p()},S),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(s(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||sv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&j.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),j.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),l&&([h,m]=Fo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,g]=Fo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=w=>{v&&(s(!w||w.type?new Cr(null,e,v):w),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=vN(r.url);if(b&&Xe.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},AN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new Cr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>j.asap(a),c}},RN=function*(e,t){let n=e.byteLength;if(n{const r=PN(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lv=ha&&typeof ReadableStream=="function",jN=ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),uv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kN=lv&&uv(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mh=64*1024,Lc=lv&&uv(()=>j.isReadableStream(new Response("").body)),Vo={stream:Lc&&(e=>e.body)};ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vo[t]&&(Vo[t]=j.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const ON=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await jN(e)).byteLength},MN=async(e,t)=>{const n=j.toFiniteNumber(e.getContentLength());return n??ON(t)},DN=ha&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:h}=cv(e);l=l?(l+"").toLowerCase():"text";let g=AN([r,i&&i.toAbortSignal()],o),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let v;try{if(c&&kN&&n!=="get"&&n!=="head"&&(v=await MN(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(j.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[E,R]=dh(v,Fo(fh(c)));s=ph(S.body,mh,E,R)}}j.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:x?d:void 0});let b=await fetch(m);const w=Lc&&(l==="stream"||l==="response");if(Lc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const A=j.toFiniteNumber(b.headers.get("content-length")),[E,R]=a&&dh(A,Fo(fh(a),!0))||[];b=new Response(ph(b.body,mh,E,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Vo[j.findKey(Vo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,A)=>{ov(S,A,{data:_,headers:ft.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:x.cause||x}):ie.from(x,x&&x.code,e,m)}}),Ic={http:QP,xhr:TN,fetch:DN};j.forEach(Ic,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gh=e=>`- ${e}`,LN=e=>j.isFunction(e)||e===null||e===!1,dv={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(gh).join(` `):" "+gh(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Ic};function Qa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function yh(e){return Qa(e),e.headers=ft.from(e.headers),e.data=Ga.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dv.getAdapter(e.adapter||Di.adapter)(e).then(function(s){return Qa(e),s.data=Ga.call(e,e.transformResponse,s),s.headers=ft.from(s.headers),s},function(s){return iv(s)||(Qa(e),s&&s.response&&(s.response.data=Ga.call(e,e.transformResponse,s.response),s.response.headers=ft.from(s.response.headers))),Promise.reject(s)})}const fv="1.7.9",pa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pa[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const vh={};pa.transitional=function(t,n,s){function r(i,o){return"[Axios v"+fv+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!vh[o]&&(vh[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};pa.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function IN(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const ho={assertOptions:IN,validators:pa},Kt=ho.validators;class vs{constructor(t){this.defaults=t,this.interceptors={request:new lh,response:new lh}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Es(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&ho.assertOptions(s,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),r!=null&&(j.isFunction(r)?n.paramsSerializer={serialize:r}:ho.assertOptions(r,{encode:Kt.function,serialize:Kt.function},!0)),ho.assertOptions(n,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const m=[yh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Au(function(r){t=r}),cancel:t}}}function FN(e){return function(n){return e.apply(null,n)}}function VN(e){return j.isObject(e)&&e.isAxiosError===!0}const Fc={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(Fc).forEach(([e,t])=>{Fc[t]=e});function hv(e){const t=new vs(e),n=Wy(vs.prototype.request,t);return j.extend(n,vs.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return hv(Es(e,r))},n}const Ve=hv(Di);Ve.Axios=vs;Ve.CanceledError=Cr;Ve.CancelToken=Au;Ve.isCancel=iv;Ve.VERSION=fv;Ve.toFormData=fa;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=FN;Ve.isAxiosError=VN;Ve.mergeConfig=Es;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>rv(j.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=dv.getAdapter;Ve.HttpStatusCode=Fc;Ve.default=Ve;const et=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Lk=async e=>(await et.post("book_stand_form",e)).status===201,Ik=async e=>(await et.post("become_sponsor_form",e)).status===201,Fk=async e=>(await et.post("contact_form",e)).status===201,BN=async e=>(await et.post("subscribe_news_form",e)).status===201,$N=async(e,t)=>et.get(`pages/${t}`,{headers:{"Accept-Language":e}}),UN=async e=>et.get("stats",{headers:{"Accept-Language":e}}),zN=async e=>et.get("contact_data",{headers:{"Accept-Language":e}}),WN=async e=>et.get("industries",{headers:{"Accept-Language":e}}),HN=async e=>et.get("exhibition_time",{headers:{"Accept-Language":e}}),qN=async e=>et.get("news",{headers:{"Accept-Language":e}}),Vk=async(e,t)=>et.get(`news/${e}`,{headers:{"Accept-Language":t}}),Bk=async e=>et("participants",{headers:{"Accept-Language":e}}),ZN=async e=>et("photos/category/"+e),KN=async e=>et("videos/category/"+e),GN=async e=>et("sponsors_and_partners",{headers:{"Accept-Language":e}}),$k=async(e,t)=>et("designers/category/"+t,{headers:{"Accept-Language":e}}),QN=rh.object({email:rh.string().email()}),pv=({modal:e=!1})=>{var i,o;const[t,n]=y.useState(!1),s=mT({resolver:nR(QN),defaultValues:{email:""}});async function r(a){try{const c=await BN(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(qe,{className:V("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[f.jsx("h2",{className:"h2 !text-left",children:qa("Подпишитесь на новости:","Subscribe to the news:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(ot,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?qa("Отправлено","Submitted"):qa("Подписаться","Subscribe")})]})})},XN=({className:e,title:t})=>f.jsxs(Ny,{children:[f.jsx(jy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Su,{children:f.jsx(pv,{className:"",modal:!0})})]}),Vc=Py()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Bo=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=y.useState(!1),[a,c]=y.useState(!1),l=Vc(u=>u.setSheet);return f.jsxs(Ay,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ry,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(mv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(wu,{className:"w-fit px-0 bg-surface_container",children:t&&t.map((u,d)=>{var h;return u.hover?f.jsx(ck,{...u},d):u.link?f.jsxs(_e,{onClick:()=>{o(!1),l(!1)},className:"h-14 px-3 flex gap-3 justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:u.blank??"",to:u.link,children:[u.text,u.blank&&f.jsx("img",{src:"/pdf.svg"})]},u.text):u.modal?f.jsx(XN,{title:u.text},u.text):f.jsxs("div",{onMouseEnter:()=>c(!!u.hover),onMouseLeave:()=>c(!1),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),l(!1)},children:u.text},u.text),a&&f.jsx("div",{onMouseEnter:()=>c(!0),onMouseLeave:()=>setTimeout(()=>c(!1),1e3),className:"absolute bottom-0 flex flex-col -right-40 bg-surface_container",children:(h=u.hoverItems)==null?void 0:h.map((g,m)=>f.jsx(_e,{to:g.link??"",className:"h-14 px-3 py-2",children:g.text},m))})]})})})]})},mv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})})}),Xn=({className:e})=>f.jsx(qe,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Op,{className:"animate-spin mx-auto text-primary size-16"})});function YN(e){return Object.prototype.toString.call(e)==="[object Object]"}function xh(e){return YN(e)||Array.isArray(e)}function JN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!xh(a)||!xh(c)?a===c:Ru(a,c)})}function bh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function e1(e,t){if(e.length!==t.length)return!1;const n=bh(e),s=bh(t);return n.every((r,i)=>{const o=s[i];return Ru(r,o)})}function Pu(e){return typeof e=="number"}function Bc(e){return typeof e=="string"}function ma(e){return typeof e=="boolean"}function wh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Nu(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function t1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function n1(e){return Math.round(e*100)/100}function yi(e){return vi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function ju(e,t){return t===Li(e)}function Sh(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function vi(e){return Object.keys(e)}function gv(e,t){return[e,t].reduce((n,s)=>(vi(s).forEach(r=>{const i=n[r],o=s[r],a=wh(i)&&wh(o);n[r]=a?gv(i,o):o}),n),{})}function $c(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function s1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Bc(e)?n[e](c):e(t,c,l)}return{measure:o}}function xi(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function r1(e,t,n,s){const r=xi(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){g(),r.clear()}function d(v){if(!c)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function h(){c||(c=t.requestAnimationFrame(d))}function g(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:h,stop:g,update:n,render:s}}function i1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:p,width:v}=m;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Ts(e=0,t=0){const n=Pe(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:r,reachedMin:s,removeOffset:a}}function yv(e,t,n){const{constrain:s}=Ts(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return yv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function o1(e,t,n,s,r,i,o,a,c,l,u,d,h,g,m,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},E=xi(),R=xi(),N=Ts(50,225).constrain(g.measure(20)),M={mouse:300,touch:400},L={mouse:500,touch:600},O=m?43:25;let z=!1,F=0,J=0,X=!1,q=!1,Z=!1,re=!1;function fe(G){if(!b)return;function he(Ue){(ma(b)||b(G,Ue))&&tt(Ue)}const Se=t;E.add(Se,"dragstart",Ue=>Ue.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",he).add(Se,"mousedown",he).add(Se,"touchcancel",ve).add(Se,"contextmenu",ve).add(Se,"click",ke,!0)}function ye(){E.clear(),R.clear()}function Be(){const G=re?n:t;R.add(G,"touchmove",ue,A).add(G,"touchend",ve).add(G,"mousemove",ue,A).add(G,"mouseup",ve)}function Ze(G){const he=G.nodeName||"";return S.includes(he)}function Ke(){return(m?L:M)[re?"mouse":"touch"]}function jt(G,he){const Se=d.add(Nu(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Pe(G)=2,!(he&&G.button!==0)&&(Ze(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),F=i.readPoint(G),J=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!$c(G,s)&&G.touches.length>=2)return ve(G);const Se=i.readPoint(G),Ue=i.readPoint(G,w),pt=Kr(Se,F),_t=Kr(Ue,J);if(!q&&!re&&(!G.cancelable||(q=pt>_t,!q)))return ve(G);const C=i.pointerMove(G);pt>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(_(C)),G.preventDefault()}function ve(G){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ke(),pt=jt(_(Ue),Se),_t=t1(Ue,pt),C=O-10*_t,P=x+_t/50;q=!1,X=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(pt,!m),re=!1,h.emit("pointerUp")}function ke(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Ie(){return X}return{init:fe,destroy:ye,pointerDown:Ie}}function a1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const m=`client${(h||e.scroll)==="x"?"X":"Y"}`;return($c(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const h=o(d)-o(r),g=i(d)-i(s)>170;return r=d,g&&(s=d),h}function l(d){if(!s||!r)return 0;const h=o(r)-o(s),g=i(d)-i(s),m=i(d)-i(r)>170,p=h/g;return g&&!m&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function c1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function l1(e){function t(s){return e*(s/100)}return{measure:t}}function u1(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function g(v){if(!i)return;l=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),A=_?l:u[S],E=h(_?e:s[S]);if(Pe(E-A)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ma(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:g,destroy:m}}function d1(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function h(){const A=s.get()-e.get(),E=!c;let R=0;return E?(o=0,n.set(s),e.set(s),R=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),R=u-d),a=Nu(R),d=u,S}function g(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(A){return c=A,S}function _(A){return l=A,S}const S={direction:p,duration:m,velocity:v,seek:h,settled:g,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function f1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=Ts(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(g){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=Pe(e[m]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!g&&Pe(v){const{min:v,max:x}=i,b=i.constrain(m),w=!p,_=ju(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(m=>parseFloat(m.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:p}=a;return o.slice(m,p)}return{snapsContained:c,scrollContainLimit:a}}function p1(e,t,n){const s=t[0],r=n?s-e:Vt(t);return{limit:Ts(r,s)}}function m1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Ts(i,o);function l(h){return h===1?c(n.get()):h===-1?a(n.get()):!1}function u(h){if(!l(h))return;const g=e*(h*-1);s.forEach(m=>m.add(g))}return{loop:u}}function g1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function y1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=h(),u=g();function d(){return a(s).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function g(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function v1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const h=o(i),g=!e||t==="keepSnaps";return n.length===1?[i]:g?h:h.slice(a,c).map((m,p,v)=>{const x=!p,b=ju(v,p);if(x){const w=Vt(v[0])+1;return Sh(w)}if(b){const w=Li(i)-Vt(v)[0]+1;return Sh(w,Vt(v)[0])}return m})}return{slideRegistry:l}}function x1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(m){const p=e?o(m):a(m),v=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:x}=v[0];return{index:x,distance:p}}function u(m,p){const v=[m,m+n,m-n];if(!e)return m;if(!p)return c(v);const x=v.filter(b=>Nu(b)===p);return x.length?c(x):Vt(v)-n}function d(m,p){const v=t[m]-r.get(),x=u(v,p);return{index:m,distance:x}}function h(m,p){const v=r.get()+m,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:m};const _=t[x]-b,S=m+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function b1(e,t,n,s,r,i,o){function a(d){const h=d.distance,g=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const g=r.byDistance(d,h);a(g)}function l(d,h){const g=t.clone().set(d),m=r.byIndex(g.get(),h);a(m)}return{distance:c,index:l}}function w1(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(g){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Pu(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ma(a)||a(g,x))&&m(v)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Vr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Pu(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function vv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const g=n1(e.direction(h));g!==r&&(s.transform=n(g),r=g)}function l(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function S1(e,t,n,s,r,i,o,a,c){const u=yi(r),d=yi(r).reverse(),h=x().concat(b());function g(E,R){return E.reduce((N,M)=>N-r[M],R)}function m(E,R){return E.reduce((N,M)=>g(N,R)>0?N.concat([M]):N,[])}function p(E){return i.map((R,N)=>({start:R-s[N]+.5+E,end:R+t-.5+E}))}function v(E,R,N){const M=p(R);return E.map(L=>{const O=N?0:-n,z=N?n:0,F=N?"end":"start",J=M[L][F];return{index:L,loopPoint:J,slideLocation:Vr(-1),translate:vv(e,c[L]),target:()=>a.get()>J?O:z}})}function x(){const E=o[0],R=m(d,E);return v(R,n,!1)}function b(){const E=t-o[0]-1,R=m(u,E);return v(R,-n,!0)}function w(){return h.every(({index:E})=>{const R=u.filter(N=>N!==E);return g(R,t)<=.1})}function _(){h.forEach(E=>{const{target:R,translate:N,slideLocation:M}=E,L=R();L!==M.get()&&(N.to(L),M.set(L))})}function S(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function _1(e,t,n){let s,r=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(u=>{r||(ma(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function C1(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return vi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(m&&b||!m&&!b)&&p.push(x),p},[])}function h(m=!0){if(m&&i)return i;if(!m&&o)return o;const p=d(m);return m&&(i=p),m||(o=p),p}return{init:l,destroy:u,get:h}}function E1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),h=n.map(o),g=v();function m(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Vt(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,A=ju(_,w);return S?h[w]+u:A?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:g,startGap:u,endGap:d}}function T1(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=Pu(n);function g(x,b){return yi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function m(x){return x.length?yi(x).reduce((b,w,_)=>{const S=Vt(b)||0,A=S===0,E=w===Li(x),R=r[l]-i[S][l],N=r[l]-i[w][u],M=!s&&A?d(o):0,L=!s&&E?d(a):0,O=Pe(N-L-(R+M));return _&&O>t+c&&b.push(w),E&&b.push(x.length),b},[]).map((b,w,_)=>{const S=Math.max(_[w-1]||0);return x.slice(S,b)}):[]}function p(x){return h?g(x,n):m(x)}return{groupSlides:p}}function A1(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:g,dragThreshold:m,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:A}=i,E=2,R=c1(),N=R.measure(t),M=n.map(R.measure),L=i1(c,l),O=L.measureSize(N),z=l1(O),F=s1(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:fe}=E1(L,N,M,n,X,r),ye=T1(L,O,v,d,N,M,re,fe,E),{snaps:Be,snapsAligned:Ze}=y1(L,F,N,M,ye),Ke=-Vt(Be)+Vt(Z),{snapsContained:jt,scrollContainLimit:tt}=h1(O,Ke,Ze,b,E),ue=J?jt:Ze,{limit:ve}=p1(Ke,ue,d),ke=yv(Li(ue),u,d),Ie=ke.clone(),we=yi(n),G=({dragHandler:Zt,scrollBody:Jn,scrollBounds:Tr,options:{loop:es}})=>{es||Tr.constrain(Zt.pointerDown()),Jn.seek()},he=({scrollBody:Zt,translate:Jn,location:Tr,offsetLocation:es,previousLocation:ga,scrollLooper:Vi,slideLooper:yx,dragHandler:vx,animation:xx,eventHandler:Wu,scrollBounds:bx,options:{loop:Hu}},qu)=>{const Zu=Zt.settled(),wx=!bx.shouldConstrain(),Ku=Hu?Zu:Zu&&wx;Ku&&!vx.pointerDown()&&(xx.stop(),Wu.emit("settle")),Ku||Wu.emit("scroll");const Sx=Tr.get()*qu+ga.get()*(1-qu);es.set(Sx),Hu&&(Vi.loop(Zt.direction()),yx.loop()),Jn.to(es.get())},Se=r1(s,r,()=>G(Er),Zt=>he(Er,Zt)),Ue=.68,pt=ue[ke.get()],_t=Vr(pt),C=Vr(pt),P=Vr(pt),k=Vr(pt),U=d1(_t,P,C,k,h,Ue),B=x1(d,ue,Ke,ve,k),I=b1(Se,ke,Ie,U,B,k,o),Y=g1(ve),ae=xi(),Fe=C1(t,n,o,p),{slideRegistry:Oe}=v1(J,b,ue,tt,ye,we),qt=w1(e,n,Oe,I,U,ae,o,A),Er={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:M,animation:Se,axis:L,dragHandler:o1(L,e,s,r,k,a1(L,r),_t,Se,I,U,B,ke,o,z,g,m,x,Ue,S),eventStore:ae,percentOfView:z,index:ke,indexPrevious:Ie,limit:ve,location:_t,offsetLocation:P,previousLocation:C,options:i,resizeHandler:u1(t,o,r,n,L,w,R),scrollBody:U,scrollBounds:f1(ve,P,k,U,z),scrollLooper:m1(Ke,ve,P,[_t,P,C,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:B,scrollTo:I,slideLooper:S1(L,O,Ke,q,Z,Be,ue,P,n),slideFocus:qt,slidesHandler:_1(t,o,_),slidesInView:Fe,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:k,translate:vv(L,t)};return Er}function R1(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const P1={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N1(e){function t(i,o){return gv(i,o||{})}function n(i){const o=i.breakpoints||{},a=vi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>vi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function j1(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function $o(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=N1(r),o=j1(i),a=xi(),c=R1(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:g,emit:m}=c,p=L;let v=!1,x,b=l(P1,$o.globalOptions),w=l(b),_=[],S,A,E;function R(){const{container:we,slides:G}=w;A=(Bc(we)?e.querySelector(we):we)||e.children[0];const Se=Bc(G)?A.querySelectorAll(G):G;E=[].slice.call(Se||A.children)}function N(we){const G=A1(e,A,E,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function M(we,G){v||(b=l(b,we),w=u(b),_=G||_,R(),x=N(w),d([b,..._.map(({options:he})=>he)]).forEach(he=>a.add(he,"change",L)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Ie),x.eventHandler.init(Ie),x.resizeHandler.init(Ie),x.slidesHandler.init(Ie),x.options.loop&&x.slideLooper.loop(),A.offsetParent&&E.length&&x.dragHandler.init(Ie),S=o.init(Ie,_)))}function L(we,G){const he=ye();O(),M(l({startIndex:he},we),G),c.emit("reInit")}function O(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function F(we,G,he){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(we,he||0))}function J(we){const G=x.index.add(1).get();F(G,we,-1)}function X(we){const G=x.index.add(-1).get();F(G,we,1)}function q(){return x.index.add(1).get()!==ye()}function Z(){return x.index.add(-1).get()!==ye()}function re(){return x.scrollSnapList}function fe(){return x.scrollProgress.get(x.location.get())}function ye(){return x.index.get()}function Be(){return x.indexPrevious.get()}function Ze(){return x.slidesInView.get()}function Ke(){return x.slidesInView.get(!1)}function jt(){return S}function tt(){return x}function ue(){return e}function ve(){return A}function ke(){return E}const Ie={canScrollNext:q,canScrollPrev:Z,containerNode:ve,internalEngine:tt,destroy:z,off:g,on:h,emit:m,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:fe,scrollSnapList:re,scrollTo:F,selectedScrollSnap:ye,slideNodes:ke,slidesInView:Ze,slidesNotInView:Ke};return M(t,n),setTimeout(()=>c.emit("init"),0),Ie}$o.globalOptions=void 0;function Yn(e={},t=[]){const n=y.useRef(e),s=y.useRef(t),[r,i]=y.useState(),[o,a]=y.useState(),c=y.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return y.useEffect(()=>{Ru(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{e1(s.current,t)||(s.current=t,c())},[t,c]),y.useEffect(()=>{if(JN()&&o){$o.globalOptions=Yn.globalOptions;const l=$o(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Yn.globalOptions=void 0;const k1=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],Uk=({className:e,setState:t,state:n,data:s=k1})=>{const r=Te(m=>m.lang),i=So("(min-width: 768px)"),[o,a]=y.useState({left:0,width:0}),[c,l]=Yn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=y.useRef([]),d=y.useRef(null),h=y.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=m.offsetLeft;a({left:b-x,width:m.offsetWidth})}}},[n,i,l]);y.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),y.useEffect(()=>{if(l)return h(),l.on("scroll",h),l.on("resize",h),()=>{l.off("scroll",h),l.off("resize",h)}},[l,h]);const g=y.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return f.jsxs("div",{ref:d,className:V("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?f.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>g(p),children:r==="ru"?m.title:m.titleEn},m.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>g(p),children:r==="ru"?m.title:m.titleEn},m.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},zk=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Te(l=>l.lang);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:V("flex border-b md:hidden py-2 border-outline_v",e),children:[f.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),f.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),f.jsx("div",{className:"flex items-center gap-3",children:f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},As=typeof window>"u"||"Deno"in globalThis;function At(){}function O1(e,t){return typeof e=="function"?e(t):e}function Uc(e){return typeof e=="number"&&e>=0&&e!==1/0}function xv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zs(e,t){return typeof e=="function"?e(t):e}function Dt(e,t){return typeof e=="function"?e(t):e}function _h(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==ku(o,t.options))return!1}else if(!wi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Ch(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(bi(t.options.mutationKey)!==bi(i))return!1}else if(!wi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function ku(e,t){return((t==null?void 0:t.queryKeyHashFn)||bi)(e)}function bi(e){return JSON.stringify(e,(t,n)=>Wc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function wi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!wi(e[n],t[n])):!1}function bv(e,t){if(e===t)return e;const n=Eh(e)&&Eh(t);if(n||Wc(e)&&Wc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function Hc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bv(e,t):t}function D1(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function L1(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Ou=Symbol();function wv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ou?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var as,kn,Ks,Vh,I1=(Vh=class extends Ii{constructor(){super();ne(this,as);ne(this,kn);ne(this,Ks);K(this,Ks,t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,kn)||this.setEventListener(T(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,kn))==null||t.call(this),K(this,kn,void 0))}setEventListener(t){var n;K(this,Ks,t),(n=T(this,kn))==null||n.call(this),K(this,kn,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,as)!==t&&(K(this,as,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,as)=="boolean"?T(this,as):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},as=new WeakMap,kn=new WeakMap,Ks=new WeakMap,Vh),Mu=new I1,Gs,On,Qs,Bh,F1=(Bh=class extends Ii{constructor(){super();ne(this,Gs,!0);ne(this,On);ne(this,Qs);K(this,Qs,t=>{if(!As&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,On)||this.setEventListener(T(this,Qs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,On))==null||t.call(this),K(this,On,void 0))}setEventListener(t){var n;K(this,Qs,t),(n=T(this,On))==null||n.call(this),K(this,On,t(this.setOnline.bind(this)))}setOnline(t){T(this,Gs)!==t&&(K(this,Gs,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Gs)}},Gs=new WeakMap,On=new WeakMap,Qs=new WeakMap,Bh),Uo=new F1;function qc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function V1(e){return Math.min(1e3*2**e,3e4)}function Sv(e){return(e??"online")==="online"?Uo.isOnline():!0}var _v=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xa(e){return e instanceof _v}function Cv(e){let t=!1,n=0,s=!1,r;const i=qc(),o=p=>{var v;s||(h(new _v(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>Mu.isFocused()&&(e.networkMode==="always"||Uo.isOnline())&&e.canRun(),u=()=>Sv(e.networkMode)&&e.canRun(),d=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),r==null||r(),i.resolve(p))},h=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),r==null||r(),i.reject(p))},g=()=>new Promise(p=>{var v;r=x=>{(s||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var A;if(s)return;const b=e.retry??(As?0:3),w=e.retryDelay??V1,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:g()).then(()=>{t?h(x):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():g().then(m),i)}}function B1(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var He=B1(),cs,$h,Ev=($h=class{constructor(){ne(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uc(this.gcTime)&&K(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(As?1/0:5*60*1e3))}clearGcTimeout(){T(this,cs)&&(clearTimeout(T(this,cs)),K(this,cs,void 0))}},cs=new WeakMap,$h),Xs,Ys,Tt,ls,Ge,Si,us,Ot,gn,Uh,$1=(Uh=class extends Ev{constructor(t){super();ne(this,Ot);ne(this,Xs);ne(this,Ys);ne(this,Tt);ne(this,ls);ne(this,Ge);ne(this,Si);ne(this,us);K(this,us,!1),K(this,Si,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ls,t.client),K(this,Tt,T(this,ls).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Xs,U1(this.options)),this.state=t.state??T(this,Xs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const s=Hc(this.state.data,t,this.options);return pe(this,Ot,gn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){pe(this,Ot,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,Ge))==null?void 0:s.promise;return(r=T(this,Ge))==null||r.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Xs))}isActive(){return this.observers.some(t=>Dt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ou||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!xv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ge)&&(T(this,us)?T(this,Ge).cancel({revert:!0}):T(this,Ge).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Ot,gn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ge))return T(this,Ge).continueRetry(),T(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,us,!0),s.signal)})},i=()=>{const d=wv(this.options,n),h={client:T(this,ls),queryKey:this.queryKey,meta:this.meta};return r(h),K(this,us,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ls),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&pe(this,Ot,gn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,g,m,p;Xa(d)&&d.silent||pe(this,Ot,gn).call(this,{type:"error",error:d}),Xa(d)||((g=(h=T(this,Tt).config).onError)==null||g.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ge,Cv({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var h,g,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){a(v);return}(g=(h=T(this,Tt).config).onSuccess)==null||g.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{pe(this,Ot,gn).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{pe(this,Ot,gn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Ot,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,Ge).start()}},Xs=new WeakMap,Ys=new WeakMap,Tt=new WeakMap,ls=new WeakMap,Ge=new WeakMap,Si=new WeakMap,us=new WeakMap,Ot=new WeakSet,gn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Tv(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Xa(r)&&r.revert&&T(this,Ys)?{...T(this,Ys),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},Uh);function Tv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function U1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,zh,z1=(zh=class extends Ii{constructor(t={}){super();ne(this,Gt);this.config=t,K(this,Gt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??ku(r,n);let o=this.get(i);return o||(o=new $1({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,Gt).has(t.queryHash)||(T(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Gt).get(t)}getAll(){return[...T(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>_h(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>_h(t,s)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,zh),Qt,nt,ds,Xt,Nn,Wh,W1=(Wh=class extends Ev{constructor(t){super();ne(this,Xt);ne(this,Qt);ne(this,nt);ne(this,ds);this.mutationId=t.mutationId,K(this,nt,t.mutationCache),K(this,Qt,[]),this.state=t.state||H1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qt,T(this,Qt).filter(n=>n!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,h,g,m,p,v,x,b,w,_,S,A,E;K(this,ds,Cv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Xt,Nn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Xt,Nn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Xt,Nn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ds).canStart();try{if(!n){pe(this,Xt,Nn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,nt).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&pe(this,Xt,Nn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const R=await T(this,ds).start();return await((l=(c=T(this,nt).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context)),await((g=(h=T(this,nt).config).onSettled)==null?void 0:g.call(h,R,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,R,null,t,this.state.context)),pe(this,Xt,Nn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((x=(v=T(this,nt).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context)),await((S=(_=T(this,nt).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,R,t,this.state.context)),R}finally{pe(this,Xt,Nn).call(this,{type:"error",error:R})}}finally{T(this,nt).runNext(this)}}},Qt=new WeakMap,nt=new WeakMap,ds=new WeakMap,Xt=new WeakSet,Nn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{T(this,Qt).forEach(s=>{s.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},Wh);function H1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,_i,Hh,q1=(Hh=class extends Ii{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,_i);this.config=t,K(this,vn,new Set),K(this,Mt,new Map),K(this,_i,0)}build(t,n,s){const r=new W1({mutationCache:this,mutationId:++Bi(this,_i)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,vn).add(t);const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);s?s.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Yi(t);if(typeof n=="string"){const r=(s=T(this,Mt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ch(n,s))}findAll(t={}){return this.getAll().filter(n=>Ch(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},vn=new WeakMap,Mt=new WeakMap,_i=new WeakMap,Hh);function Yi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ah(e){return{onFetch:(t,n)=>{var u,d,h,g,m;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=wv(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};v(A);const E=await x(A),{maxPages:R}=t.options,N=S?L1:D1;return{pages:N(w.pages,E,R),pageParams:N(w.pageParams,_,R)}};if(r&&i.length){const w=r==="backward",_=w?Z1:Rh,S={pages:i,pageParams:o},A=_(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const _=c===0?o[0]??s.initialPageParam:Rh(s,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Rh(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Z1(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ne,Mn,Dn,Js,er,Ln,tr,nr,qh,Wk=(qh=class{constructor(e={}){ne(this,Ne);ne(this,Mn);ne(this,Dn);ne(this,Js);ne(this,er);ne(this,Ln);ne(this,tr);ne(this,nr);K(this,Ne,e.queryCache||new z1),K(this,Mn,e.mutationCache||new q1),K(this,Dn,e.defaultOptions||{}),K(this,Js,new Map),K(this,er,new Map),K(this,Ln,0)}mount(){Bi(this,Ln)._++,T(this,Ln)===1&&(K(this,tr,Mu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onFocus())})),K(this,nr,Uo.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Ln)._--,T(this,Ln)===0&&((e=T(this,tr))==null||e.call(this),K(this,tr,void 0),(t=T(this,nr))==null||t.call(this),K(this,nr,void 0))}isFetching(e){return T(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=O1(t,i);if(o!==void 0)return T(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>T(this,Ne).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ne);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ne),s={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=He.batch(()=>T(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>{if(T(this,Ne).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=He.batch(()=>T(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ne).build(this,t);return n.isStaleByTime(Zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Ah(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Ah(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uo.isOnline()?T(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ne)}getMutationCache(){return T(this,Mn)}getDefaultOptions(){return T(this,Dn)}setDefaultOptions(e){K(this,Dn,e)}setQueryDefaults(e,t){T(this,Js).set(bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Js).values()],n={};return t.forEach(s=>{wi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,er).set(bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,er).values()];let n={};return t.forEach(s=>{wi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ku(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ou&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ne).clear(),T(this,Mn).clear()}},Ne=new WeakMap,Mn=new WeakMap,Dn=new WeakMap,Js=new WeakMap,er=new WeakMap,Ln=new WeakMap,tr=new WeakMap,nr=new WeakMap,qh),ut,me,Ci,st,fs,sr,In,Yt,Ei,rr,ir,hs,ps,Fn,or,be,Br,Zc,Kc,Gc,Qc,Xc,Yc,Jc,Av,Zh,K1=(Zh=class extends Ii{constructor(t,n){super();ne(this,be);ne(this,ut);ne(this,me);ne(this,Ci);ne(this,st);ne(this,fs);ne(this,sr);ne(this,In);ne(this,Yt);ne(this,Ei);ne(this,rr);ne(this,ir);ne(this,hs);ne(this,ps);ne(this,Fn);ne(this,or,new Set);this.options=n,K(this,ut,t),K(this,Yt,null),K(this,In,qc()),this.options.experimental_prefetchInRender||T(this,In).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),Ph(T(this,me),this.options)?pe(this,be,Br).call(this):this.updateResult(),pe(this,be,Qc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return el(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return el(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Xc).call(this),pe(this,be,Yc).call(this),T(this,me).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,me);if(this.options=T(this,ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,T(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Jc).call(this),T(this,me).setOptions(this.options),s._defaulted&&!zc(this.options,s)&&T(this,ut).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&Nh(T(this,me),r,this.options,s)&&pe(this,be,Br).call(this),this.updateResult(n),i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||Zs(this.options.staleTime,T(this,me))!==Zs(s.staleTime,T(this,me)))&&pe(this,be,Zc).call(this);const o=pe(this,be,Kc).call(this);i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||o!==T(this,Fn))&&pe(this,be,Gc).call(this,o)}getOptimisticResult(t){const n=T(this,ut).getQueryCache().build(T(this,ut),t),s=this.createResult(n,t);return Q1(this,s)&&(K(this,st,s),K(this,sr,this.options),K(this,fs,T(this,me).state)),s}getCurrentResult(){return T(this,st)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,or).add(t)}getCurrentQuery(){return T(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,ut).defaultQueryOptions(t),s=T(this,ut).getQueryCache().build(T(this,ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return pe(this,be,Br).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,st)))}createResult(t,n){var R;const s=T(this,me),r=this.options,i=T(this,st),o=T(this,fs),a=T(this,sr),l=t!==s?t.state:T(this,Ci),{state:u}=t;let d={...u},h=!1,g;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&Ph(t,n),L=N&&Nh(t,s,n,r);(M||L)&&(d={...d,...Tv(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:v}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,Ei))g=T(this,rr);else try{K(this,Ei,n.select),g=n.select(d.data),g=Hc(i==null?void 0:i.data,g,n),K(this,rr,g),K(this,Yt,null)}catch(N){K(this,Yt,N)}else g=d.data;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,ir))==null?void 0:R.state.data,T(this,ir)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),K(this,Yt,null)}catch(M){K(this,Yt,M)}N!==void 0&&(v="success",g=Hc(i==null?void 0:i.data,N,n),h=!0)}T(this,Yt)&&(m=T(this,Yt),g=T(this,rr),p=Date.now(),v="error");const x=d.fetchStatus==="fetching",b=v==="pending",w=v==="error",_=b&&x,S=g!==void 0,E={status:v,fetchStatus:d.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&S,isStale:Du(t,n),refetch:this.refetch,promise:T(this,In)};if(this.options.experimental_prefetchInRender){const N=O=>{E.status==="error"?O.reject(E.error):E.data!==void 0&&O.resolve(E.data)},M=()=>{const O=K(this,In,E.promise=qc());N(O)},L=T(this,In);switch(L.status){case"pending":t.queryHash===s.queryHash&&N(L);break;case"fulfilled":(E.status==="error"||E.data!==L.value)&&M();break;case"rejected":(E.status!=="error"||E.error!==L.reason)&&M();break}}return E}updateResult(t){const n=T(this,st),s=this.createResult(T(this,me),this.options);if(K(this,fs,T(this,me).state),K(this,sr,this.options),T(this,fs).data!==void 0&&K(this,ir,T(this,me)),zc(s,n))return;K(this,st,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,or).size)return!0;const c=new Set(a??T(this,or));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,st)).some(l=>{const u=l;return T(this,st)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),pe(this,be,Av).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,Qc).call(this)}},ut=new WeakMap,me=new WeakMap,Ci=new WeakMap,st=new WeakMap,fs=new WeakMap,sr=new WeakMap,In=new WeakMap,Yt=new WeakMap,Ei=new WeakMap,rr=new WeakMap,ir=new WeakMap,hs=new WeakMap,ps=new WeakMap,Fn=new WeakMap,or=new WeakMap,be=new WeakSet,Br=function(t){pe(this,be,Jc).call(this);let n=T(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(At)),n},Zc=function(){pe(this,be,Xc).call(this);const t=Zs(this.options.staleTime,T(this,me));if(As||T(this,st).isStale||!Uc(t))return;const s=xv(T(this,st).dataUpdatedAt,t)+1;K(this,hs,setTimeout(()=>{T(this,st).isStale||this.updateResult()},s))},Kc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)??!1},Gc=function(t){pe(this,be,Yc).call(this),K(this,Fn,t),!(As||Dt(this.options.enabled,T(this,me))===!1||!Uc(T(this,Fn))||T(this,Fn)===0)&&K(this,ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Mu.isFocused())&&pe(this,be,Br).call(this)},T(this,Fn)))},Qc=function(){pe(this,be,Zc).call(this),pe(this,be,Gc).call(this,pe(this,be,Kc).call(this))},Xc=function(){T(this,hs)&&(clearTimeout(T(this,hs)),K(this,hs,void 0))},Yc=function(){T(this,ps)&&(clearInterval(T(this,ps)),K(this,ps,void 0))},Jc=function(){const t=T(this,ut).getQueryCache().build(T(this,ut),this.options);if(t===T(this,me))return;const n=T(this,me);K(this,me,t),K(this,Ci,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Av=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,st))}),T(this,ut).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},Zh);function G1(e,t){return Dt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ph(e,t){return G1(e,t)||e.state.data!==void 0&&el(e,t,t.refetchOnMount)}function el(e,t,n){if(Dt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Du(e,t)}return!1}function Nh(e,t,n,s){return(e!==t||Dt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Du(e,n)}function Du(e,t){return Dt(t.enabled,e)!==!1&&e.isStaleByTime(Zs(t.staleTime,e))}function Q1(e,t){return!zc(e.getCurrentResult(),t)}var Rv=y.createContext(void 0),X1=e=>{const t=y.useContext(Rv);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hk=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Rv.Provider,{value:e,children:t})),Pv=y.createContext(!1),Y1=()=>y.useContext(Pv);Pv.Provider;function J1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ej=y.createContext(J1()),tj=()=>y.useContext(ej);function nj(e,t){return typeof e=="function"?e(...t):!!e}function jh(){}var sj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rj=e=>{y.useEffect(()=>{e.clearReset()},[e])},ij=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||nj(n,[e.error,s])),oj=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},aj=(e,t)=>e.isLoading&&e.isFetching&&!t,cj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,kh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lj(e,t,n){var d,h,g,m,p;const s=X1(),r=Y1(),i=tj(),o=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",oj(o),sj(o,i),rj(i);const a=!s.getQueryCache().get(o.queryHash),[c]=y.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(v=>{const x=u?c.subscribe(He.batchCalls(v)):jh;return c.updateResult(),x},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),y.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),cj(o,l))throw kh(o,c,i);if(ij({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||m.call(g,o,l),o.experimental_prefetchInRender&&!As&&aj(l,r)){const v=a?kh(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(jh).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function En(e,t){return lj(e,K1)}const uj=e=>{const{data:t,isPending:n,status:s}=En({queryKey:["photos",e],queryFn:()=>ZN(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},dj=e=>{const{data:t,isPending:n,isError:s}=En({queryKey:["videos",e],queryFn:()=>KN(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},qk=({className:e,setIsOpen:t,activeItem:n})=>{var h,g;const[s,r]=Yn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=uj(1),{data:o}=dj(1);QE();const[a,c]=y.useState(!1),[l,u]=y.useState(!1);y.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),y.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:f.jsx("img",{src:(p=m==null?void 0:m.photo)==null?void 0:p.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(g=o==null?void 0:o.videos)==null?void 0:g.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:f.jsx("video",{src:((p=m==null?void 0:m.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(Sl,{onClick:()=>t(!1),className:"absolute top-6 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),f.jsxs("div",{className:"hidden md:block",children:[f.jsx(tc,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(kp,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},Zk=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var p;const[o,a]=Yn({}),[c,l]=y.useState(!1),[u,d]=y.useState(!1),h=Te(v=>v.lang),[g,m]=y.useState(100);return y.useEffect(()=>{if(!a)return;const v=()=>{l(a.canScrollPrev()),d(a.canScrollNext())};return v(),a.on("select",v),()=>{a.off("select",v)}},[a]),f.jsxs(Ny,{children:[f.jsxs(jy,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((v,x)=>f.jsx("li",{children:h==="ru"?v==null?void 0:v.ru:v==null?void 0:v.en},x))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(Su,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] max-h-[80vh]"),children:[g===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full 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-[45vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>m(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(tc,{}),"Вернуться назад"]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(p=i==null?void 0:i[g])==null?void 0:p.path,className:"size-full object-contain"})})]}),f.jsxs("div",{className:"",children:[f.jsx("h3",{className:"text-xl mb-2.5",children:"Работы дизайнера"}),f.jsx("div",{ref:(i==null?void 0:i.length)>8?o:null,className:"embla overflow-hidden",children:f.jsxs("div",{className:"embla__container items-center flex gap-4",children:[c&&f.jsx(tc,{onClick:()=>c&&(a==null?void 0:a.scrollPrev()),className:V("cursor-pointer",!c&&"opacity-20")}),f.jsx("div",{className:"flex items-center gap-4",children:i==null?void 0:i.map((v,x)=>f.jsx("div",{className:"size-[140px] overflow-hidden",children:f.jsx("img",{onClick:()=>m(x),src:v==null?void 0:v.path,className:"size-full hover:scale-105 transition-all cursor-pointer overflow-hidden object-cover object-top"},x)}))}),u&&f.jsx(kp,{onClick:()=>c&&(a==null?void 0:a.scrollNext()),className:V("cursor-pointer",!u&&"opacity-20")})]})})]})]})]})},Ji=({value:e,label:t,prevValue:n})=>f.jsxs("div",{className:"timer-item flex flex-col items-center",children:[f.jsxs("div",{className:"relative sm:h-14 h-6 w-16 overflow-hidden font-bold",children:[f.jsx("span",{className:`absolute left-1/2 -translate-x-1/2 black bg-gradient-to-t from-[#F1700D] to-[#F38835] text-transparent bg-clip-text sm:text-5xl text-xl leading-none transition-all duration-300 ${n!==e?" opacity-0":" opacity-100"}`,children:n}),f.jsx("span",{className:`absolute left-1/2 -translate-x-1/2 black bg-gradient-to-t from-[#F1700D] to-[#F38835] text-transparent bg-clip-text sm:text-5xl text-xl leading-none transition-all duration-300 ${n!==e?"opacity-100":"opacity-0"}`,children:e})]}),f.jsx("div",{className:"label normal sm:text-lg text-base text-[#FAD8DB]",children:t})]});function Nv(e,t=[]){let n=[];function s(i,o){const a=y.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:g,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=y.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:g})};l.displayName=i+"Provider";function u(d,h){var p;const g=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=y.useContext(g);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,fj(r,...t)]}function fj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ze(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lu(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Oh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=y.Children.toArray(i),c=a.find(mj);if(c){const l=c.props.children,u=a.map(d=>d===c?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:r,children:y.isValidElement(l)?y.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function hj(e){const t=y.forwardRef((n,s)=>{const{children:r,...i}=n;if(y.isValidElement(r)){const o=yj(r),a=gj(i,r.props);return r.type!==y.Fragment&&(a.ref=s?Lu(s,o):o),y.cloneElement(r,a)}return y.Children.count(r)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pj=Symbol("radix.slottable");function mj(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pj}function gj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function yj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=vj.reduce((e,t)=>{const n=tl(`Primitive.${t}`),s=y.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function nl(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}var Rs=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},xj=ul[" useInsertionEffect ".trim().toString()]||Rs;function jv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=bj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=y.useCallback(u=>{var d;if(a){const h=wj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[c,l]}function bj({defaultProp:e,onChange:t}){const[n,s]=y.useState(e),r=y.useRef(n),i=y.useRef(t);return xj(()=>{i.current=t},[t]),y.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function wj(e){return typeof e=="function"}var Sj=y.createContext(void 0);function _j(e){const t=y.useContext(Sj);return e||t||"ltr"}function Cj(e,t){return y.useReducer((n,s)=>t[n][s]??n,e)}var Fi=e=>{const{present:t,children:n}=e,s=Ej(t),r=typeof n=="function"?n({present:s.isPresent}):y.Children.only(n),i=dn(s.ref,Tj(r));return typeof n=="function"||s.isPresent?y.cloneElement(r,{ref:i}):null};Fi.displayName="Presence";function Ej(e){const[t,n]=y.useState(),s=y.useRef(null),r=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Cj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=eo(s.current);i.current=a==="mounted"?l:"none"},[a]),Rs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,g=eo(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Rs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const p=eo(s.current).includes(g.animationName);if(g.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(i.current=eo(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function eo(e){return(e==null?void 0:e.animationName)||"none"}function Tj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Aj=ul[" useId ".trim().toString()]||(()=>{}),Rj=0;function kv(e){const[t,n]=y.useState(Aj());return Rs(()=>{e||n(s=>s??String(Rj++))},[e]),e||(t?`radix-${t}`:"")}function Ov(e){const t=e+"CollectionProvider",[n,s]=Nv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=de.useRef(null),w=de.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=tl(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=tl(u),g=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=dn(v,_),A=i(u,x);return de.useEffect(()=>(A.itemMap.set(_,{ref:_,...w}),()=>void A.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});g.displayName=u;function m(p){const v=i(e+"CollectionConsumer",p);return de.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((A,E)=>w.indexOf(A.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:g},m,s]}function Jt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);y.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Nj="DismissableLayer",sl="dismissableLayer.update",jj="dismissableLayer.pointerDownOutside",kj="dismissableLayer.focusOutside",Mh,Mv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dv=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=y.useContext(Mv),[u,d]=y.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=y.useState({}),m=dn(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Dj(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Lj(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Pj(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),y.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Mh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Dh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Mh)}},[u,h,n,l]),y.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Dh())},[u,l]),y.useEffect(()=>{const E=()=>g({});return document.addEventListener(sl,E),()=>document.removeEventListener(sl,E)},[]),f.jsx(ht.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,S.onPointerDownCapture)})});Dv.displayName=Nj;var Oj="DismissableLayerBranch",Mj=y.forwardRef((e,t)=>{const n=y.useContext(Mv),s=y.useRef(null),r=dn(t,s);return y.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ht.div,{...e,ref:r})});Mj.displayName=Oj;function Dj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=y.useRef(!1),r=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Lv(jj,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Lj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=y.useRef(!1);return y.useEffect(()=>{const r=i=>{i.target&&!s.current&&Lv(kj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Dh(){const e=new CustomEvent(sl);document.dispatchEvent(e)}function Lv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?nl(r,i):r.dispatchEvent(i)}function Ij(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vj="VisuallyHidden",Iv=y.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...Fj,...e.style}}));Iv.displayName=Vj;var Bj=Iv,js="NavigationMenu",[Iu,Fv,$j]=Ov(js),[rl,Uj,zj]=Ov(js),[Fu,Kk]=Nv(js,[$j,zj]),[Wj,Nt]=Fu(js),[Hj,qj]=Fu(js),Vv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=y.useState(null),g=dn(t,N=>h(N)),m=_j(l),p=y.useRef(0),v=y.useRef(0),x=y.useRef(0),[b,w]=y.useState(!0),[_,S]=jv({prop:s,onChange:N=>{const M=N!=="",L=a>0;M?(window.clearTimeout(x.current),L&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(N)},defaultProp:i??"",caller:js}),A=y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),E=y.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=y.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return y.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Bv,{scope:n,isRootMenu:!0,value:_,dir:m,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):E(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:N=>{S(M=>M===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(ht.nav,{"aria-label":"Main","data-orientation":c,dir:m,...u,ref:g})})});Vv.displayName=js;var il="NavigationMenuSub",Zj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,c=Nt(il,n),[l,u]=jv({prop:s,onChange:r,defaultProp:i??"",caller:il});return f.jsx(Bv,{scope:n,isRootMenu:!1,value:l,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(ht.div,{"data-orientation":o,...a,ref:t})})});Zj.displayName=il;var Bv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:g}=e,[m,p]=y.useState(null),[v,x]=y.useState(new Map),[b,w]=y.useState(null);return f.jsx(Wj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Ij(a),baseId:kv(),dir:r,orientation:i,viewport:m,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(g),onItemSelect:Jt(c),onItemDismiss:Jt(l),onViewportContentChange:y.useCallback((_,S)=>{x(A=>(A.set(_,S),new Map(A)))},[]),onViewportContentRemove:y.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Iu.Provider,{scope:t,children:f.jsx(Hj,{scope:t,items:v,children:o})})})},$v="NavigationMenuList",Uv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt($v,n),i=f.jsx(ht.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(ht.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Iu.Slot,{scope:n,children:r.isRootMenu?f.jsx(Yv,{asChild:!0,children:i}):i})})});Uv.displayName=$v;var zv="NavigationMenuItem",[Kj,Wv]=Fu(zv),Hv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=kv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=y.useRef(null),c=y.useRef(null),l=y.useRef(null),u=y.useRef(()=>{}),d=y.useRef(!1),h=y.useCallback((m="start")=>{if(a.current){u.current();const p=al(a.current);p.length&&$u(m==="start"?p:p.reverse())}},[]),g=y.useCallback(()=>{if(a.current){const m=al(a.current);m.length&&(u.current=tk(m))}},[]);return f.jsx(Kj,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:g,onContentFocusOutside:g,children:f.jsx(ht.li,{...r,ref:t})})});Hv.displayName=zv;var ol="NavigationMenuTrigger",qv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=Nt(ol,e.__scopeNavigationMenu),o=Wv(ol,e.__scopeNavigationMenu),a=y.useRef(null),c=dn(a,o.triggerRef,t),l=ex(i.baseId,o.value),u=tx(i.baseId,o.value),d=y.useRef(!1),h=y.useRef(!1),g=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Iu.ItemSlot,{scope:n,value:o.value,children:f.jsx(Jv,{asChild:!0,children:f.jsx(ht.button,{id:l,disabled:s,"data-disabled":s?"":void 0,"data-state":Uu(g),"aria-expanded":g,"aria-controls":u,...r,ref:c,onPointerEnter:ze(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ze(e.onPointerMove,zo(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ze(e.onPointerLeave,zo(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:ze(e.onClick,()=>{i.onItemSelect(o.value),h.current=g}),onKeyDown:ze(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];g&&m.key===v&&(o.onEntryKeyDown(),m.preventDefault())})})})}),g&&f.jsxs(f.Fragment,{children:[f.jsx(Bj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const p=o.contentRef.current,v=m.relatedTarget,x=v===a.current,b=p==null?void 0:p.contains(v);(x||!b)&&o.onFocusProxyEnter(x?"start":"end")}}),i.viewport&&f.jsx("span",{"aria-owns":u})]})]})});qv.displayName=ol;var Gj="NavigationMenuLink",Lh="navigationMenu.linkSelect",Zv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(Jv,{asChild:!0,children:f.jsx(ht.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:ze(e.onClick,o=>{const a=o.target,c=new CustomEvent(Lh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Lh,l=>r==null?void 0:r(l),{once:!0}),nl(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(po,{bubbles:!0,cancelable:!0});nl(a,l)}},{checkForDefaultPrevented:!1})})})});Zv.displayName=Gj;var Vu="NavigationMenuIndicator",Kv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?Kh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(Qj,{...s,ref:t})}),r.indicatorTrack):null});Kv.displayName=Vu;var Qj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Vu,n),i=Fv(n),[o,a]=y.useState(null),[c,l]=y.useState(null),u=r.orientation==="horizontal",d=!!r.value;y.useEffect(()=>{var p;const m=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;m&&a(m)},[i,r.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cl(o,h),cl(r.indicatorTrack,h),c?f.jsx(ht.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),mr="NavigationMenuContent",Gv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(mr,e.__scopeNavigationMenu),i=Wv(mr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(Xj,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(Qv,{"data-state":Uu(a),...c,ref:o,onPointerEnter:ze(e.onPointerEnter,r.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Gv.displayName=mr;var Xj=y.forwardRef((e,t)=>{const n=Nt(mr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Rs(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Rs(()=>()=>r(e.value),[e.value,r]),null}),po="navigationMenu.rootContentDismiss",Qv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=Nt(mr,n),d=y.useRef(null),h=dn(d,t),g=ex(u.baseId,s),m=tx(u.baseId,s),p=Fv(n),v=y.useRef(null),{onItemDismiss:x}=u;y.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(po,_),()=>w.removeEventListener(po,_)}},[u.isRootMenu,e.value,r,x,a]);const b=y.useMemo(()=>{const _=p().map(M=>M.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),A=_.indexOf(u.previousValue),E=s===u.value,R=A===_.indexOf(s);if(!E&&!R)return v.current;const N=(()=>{if(S!==A){if(E&&A!==-1)return S>A?"from-end":"from-start";if(R&&S!==-1)return S>A?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(Yv,{asChild:!0,children:f.jsx(Dv,{id:m,"aria-labelledby":g,"data-motion":b,"data-orientation":u.orientation,...l,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(po,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:ze(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:ze(e.onPointerDownOutside,w=>{var E;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),A=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(S||A||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:ze(e.onKeyDown,w=>{var A;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=al(w.currentTarget),R=document.activeElement,N=E.findIndex(O=>O===R),L=w.shiftKey?E.slice(0,N).reverse():E.slice(N+1,E.length);$u(L)?w.preventDefault():(A=i.current)==null||A.focus()}}),onEscapeKeyDown:ze(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",Xv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!Nt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(Yj,{...s,ref:t})})});Xv.displayName=Bu;var Yj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=Nt(Bu,n),o=dn(t,i.onViewportChange),a=qj(mr,e.__scopeNavigationMenu),[c,l]=y.useState(null),[u,d]=y.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,g=c?(c==null?void 0:c.height)+"px":void 0,m=!!i.value,p=m?i.value:i.previousValue;return cl(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(ht.div,{"data-state":Uu(m),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...r.style},onPointerEnter:ze(e.onPointerEnter,i.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Fi,{present:w||S,children:f.jsx(Qv,{..._,ref:Lu(b,A=>{S&&A&&d(A)})})},x)})})}),Jj="FocusGroup",Yv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Jj,n);return f.jsx(rl.Provider,{scope:n,children:f.jsx(rl.Slot,{scope:n,children:f.jsx(ht.div,{dir:r.dir,...s,ref:t})})})}),Ih=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ek="FocusGroupItem",Jv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Uj(n),i=Nt(ek,n);return f.jsx(rl.ItemSlot,{scope:n,children:f.jsx(ht.button,{...s,ref:t,onKeyDown:ze(e.onKeyDown,o=>{if(["Home","End",...Ih].includes(o.key)){let c=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Ih.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>$u(c)),o.preventDefault()}})})})});function al(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function tk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function cl(e,t){const n=Jt(t);Rs(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function Uu(e){return e?"open":"closed"}function ex(e,t){return`${e}-trigger-${t}`}function tx(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nx=Vv,sx=Uv,nk=Hv,rx=qv,sk=Zv,ix=Kv,ox=Gv,ax=Xv;const cx=y.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(nx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(fx,{})]}));cx.displayName=nx.displayName;const lx=y.forwardRef(({className:e,...t},n)=>f.jsx(sx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));lx.displayName=sx.displayName;const rk=nk,ik=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"),ux=y.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(rx,{ref:s,className:V(ik(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(sw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ux.displayName=rx.displayName;const dx=y.forwardRef(({className:e,...t},n)=>f.jsx(ox,{ref:n,className:V("left-0 top-0 w-40 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",e),...t}));dx.displayName=ox.displayName;const ok=sk,fx=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:V("absolute left-full top-0 flex justify-center w-40"),children:f.jsx(ax,{className:V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-40 overflow-hidden rounded-md text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90",e),ref:n,...t})}));fx.displayName=ax.displayName;const ak=y.forwardRef(({className:e,...t},n)=>f.jsx(ix,{ref:n,className:V("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));ak.displayName=ix.displayName;const ck=({className:e,text:t,hoverItems:n})=>f.jsx(cx,{children:f.jsx(lx,{children:f.jsxs(rk,{className:"w-full",children:[f.jsx(ux,{className:V("bg-transparent h-14 flex gap-3 justify-between min-w-full text-base cursor-pointer items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(dx,{className:"bg-surface_container shadow flex flex-col pb-2 rounded-[2px] w-40 items-center justify-center px-4 pt-2",children:n==null?void 0:n.map((s,r)=>f.jsx(ok,{className:"h-14 py-2 w-full",children:f.jsx(_e,{to:s.link??"",children:s.text})},r))})]})})}),gt=e=>e===Pt.RU?0:1,ll=[{title:"Тематические направления выставки",bottom_text:` +`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Es(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&ho.assertOptions(s,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),r!=null&&(j.isFunction(r)?n.paramsSerializer={serialize:r}:ho.assertOptions(r,{encode:Kt.function,serialize:Kt.function},!0)),ho.assertOptions(n,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const m=[yh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Au(function(r){t=r}),cancel:t}}}function FN(e){return function(n){return e.apply(null,n)}}function VN(e){return j.isObject(e)&&e.isAxiosError===!0}const Fc={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(Fc).forEach(([e,t])=>{Fc[t]=e});function hv(e){const t=new vs(e),n=Wy(vs.prototype.request,t);return j.extend(n,vs.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return hv(Es(e,r))},n}const Ve=hv(Di);Ve.Axios=vs;Ve.CanceledError=Cr;Ve.CancelToken=Au;Ve.isCancel=iv;Ve.VERSION=fv;Ve.toFormData=fa;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=FN;Ve.isAxiosError=VN;Ve.mergeConfig=Es;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>rv(j.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=dv.getAdapter;Ve.HttpStatusCode=Fc;Ve.default=Ve;const et=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Lk=async e=>(await et.post("book_stand_form",e)).status===201,Ik=async e=>(await et.post("become_sponsor_form",e)).status===201,Fk=async e=>(await et.post("contact_form",e)).status===201,BN=async e=>(await et.post("subscribe_news_form",e)).status===201,$N=async(e,t)=>et.get(`pages/${t}`,{headers:{"Accept-Language":e}}),UN=async e=>et.get("stats",{headers:{"Accept-Language":e}}),zN=async e=>et.get("contact_data",{headers:{"Accept-Language":e}}),WN=async e=>et.get("industries",{headers:{"Accept-Language":e}}),HN=async e=>et.get("exhibition_time",{headers:{"Accept-Language":e}}),qN=async e=>et.get("news",{headers:{"Accept-Language":e}}),Vk=async(e,t)=>et.get(`news/${e}`,{headers:{"Accept-Language":t}}),Bk=async e=>et("participants",{headers:{"Accept-Language":e}}),ZN=async e=>et("photos/category/"+e),KN=async e=>et("videos/category/"+e),GN=async e=>et("sponsors_and_partners",{headers:{"Accept-Language":e}}),$k=async(e,t)=>et("designers/category/"+t,{headers:{"Accept-Language":e}}),QN=rh.object({email:rh.string().email()}),pv=({modal:e=!1})=>{var i,o;const[t,n]=y.useState(!1),s=mT({resolver:nR(QN),defaultValues:{email:""}});async function r(a){try{const c=await BN(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(qe,{className:V("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[f.jsx("h2",{className:"h2 !text-left",children:qa("Подпишитесь на новости:","Subscribe to the news:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(ot,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?qa("Отправлено","Submitted"):qa("Подписаться","Subscribe")})]})})},XN=({className:e,title:t})=>f.jsxs(Ny,{children:[f.jsx(jy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Su,{children:f.jsx(pv,{className:"",modal:!0})})]}),Vc=Py()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Bo=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=y.useState(!1),[a,c]=y.useState(!1),l=Vc(u=>u.setSheet);return f.jsxs(Ay,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ry,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(mv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(wu,{className:"w-fit px-0 bg-surface_container",children:t&&t.map((u,d)=>{var h;return u.hover?f.jsx(ck,{setIsOpen:o,...u},d):u.link?f.jsxs(_e,{onClick:()=>{o(!1),l(!1)},className:"h-14 px-3 flex gap-3 justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:u.blank??"",to:u.link,children:[u.text,u.blank&&f.jsx("img",{src:"/pdf.svg"})]},u.text):u.modal?f.jsx(XN,{title:u.text},u.text):f.jsxs("div",{onMouseEnter:()=>c(!!u.hover),onMouseLeave:()=>c(!1),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),l(!1)},children:u.text},u.text),a&&f.jsx("div",{onMouseEnter:()=>c(!0),onMouseLeave:()=>setTimeout(()=>c(!1),1e3),className:"absolute bottom-0 flex flex-col -right-40 bg-surface_container",children:(h=u.hoverItems)==null?void 0:h.map((g,m)=>f.jsx(_e,{to:g.link??"",className:"h-14 px-3 py-2",children:g.text},m))})]})})})]})},mv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})})}),Xn=({className:e})=>f.jsx(qe,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Op,{className:"animate-spin mx-auto text-primary size-16"})});function YN(e){return Object.prototype.toString.call(e)==="[object Object]"}function xh(e){return YN(e)||Array.isArray(e)}function JN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!xh(a)||!xh(c)?a===c:Ru(a,c)})}function bh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function e1(e,t){if(e.length!==t.length)return!1;const n=bh(e),s=bh(t);return n.every((r,i)=>{const o=s[i];return Ru(r,o)})}function Pu(e){return typeof e=="number"}function Bc(e){return typeof e=="string"}function ma(e){return typeof e=="boolean"}function wh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Nu(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function t1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function n1(e){return Math.round(e*100)/100}function yi(e){return vi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function ju(e,t){return t===Li(e)}function Sh(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function vi(e){return Object.keys(e)}function gv(e,t){return[e,t].reduce((n,s)=>(vi(s).forEach(r=>{const i=n[r],o=s[r],a=wh(i)&&wh(o);n[r]=a?gv(i,o):o}),n),{})}function $c(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function s1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Bc(e)?n[e](c):e(t,c,l)}return{measure:o}}function xi(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function r1(e,t,n,s){const r=xi(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){g(),r.clear()}function d(v){if(!c)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function h(){c||(c=t.requestAnimationFrame(d))}function g(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:h,stop:g,update:n,render:s}}function i1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:p,width:v}=m;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Ts(e=0,t=0){const n=Pe(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:r,reachedMin:s,removeOffset:a}}function yv(e,t,n){const{constrain:s}=Ts(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return yv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function o1(e,t,n,s,r,i,o,a,c,l,u,d,h,g,m,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},E=xi(),R=xi(),N=Ts(50,225).constrain(g.measure(20)),M={mouse:300,touch:400},L={mouse:500,touch:600},O=m?43:25;let z=!1,F=0,J=0,X=!1,q=!1,Z=!1,re=!1;function fe(G){if(!b)return;function he(Ue){(ma(b)||b(G,Ue))&&tt(Ue)}const Se=t;E.add(Se,"dragstart",Ue=>Ue.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",he).add(Se,"mousedown",he).add(Se,"touchcancel",ve).add(Se,"contextmenu",ve).add(Se,"click",ke,!0)}function ye(){E.clear(),R.clear()}function Be(){const G=re?n:t;R.add(G,"touchmove",ue,A).add(G,"touchend",ve).add(G,"mousemove",ue,A).add(G,"mouseup",ve)}function Ze(G){const he=G.nodeName||"";return S.includes(he)}function Ke(){return(m?L:M)[re?"mouse":"touch"]}function jt(G,he){const Se=d.add(Nu(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Pe(G)=2,!(he&&G.button!==0)&&(Ze(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),F=i.readPoint(G),J=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!$c(G,s)&&G.touches.length>=2)return ve(G);const Se=i.readPoint(G),Ue=i.readPoint(G,w),pt=Kr(Se,F),_t=Kr(Ue,J);if(!q&&!re&&(!G.cancelable||(q=pt>_t,!q)))return ve(G);const C=i.pointerMove(G);pt>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(_(C)),G.preventDefault()}function ve(G){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ke(),pt=jt(_(Ue),Se),_t=t1(Ue,pt),C=O-10*_t,P=x+_t/50;q=!1,X=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(pt,!m),re=!1,h.emit("pointerUp")}function ke(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Ie(){return X}return{init:fe,destroy:ye,pointerDown:Ie}}function a1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const m=`client${(h||e.scroll)==="x"?"X":"Y"}`;return($c(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const h=o(d)-o(r),g=i(d)-i(s)>170;return r=d,g&&(s=d),h}function l(d){if(!s||!r)return 0;const h=o(r)-o(s),g=i(d)-i(s),m=i(d)-i(r)>170,p=h/g;return g&&!m&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function c1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function l1(e){function t(s){return e*(s/100)}return{measure:t}}function u1(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function g(v){if(!i)return;l=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),A=_?l:u[S],E=h(_?e:s[S]);if(Pe(E-A)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ma(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:g,destroy:m}}function d1(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function h(){const A=s.get()-e.get(),E=!c;let R=0;return E?(o=0,n.set(s),e.set(s),R=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),R=u-d),a=Nu(R),d=u,S}function g(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(A){return c=A,S}function _(A){return l=A,S}const S={direction:p,duration:m,velocity:v,seek:h,settled:g,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function f1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=Ts(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(g){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=Pe(e[m]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!g&&Pe(v){const{min:v,max:x}=i,b=i.constrain(m),w=!p,_=ju(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(m=>parseFloat(m.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:p}=a;return o.slice(m,p)}return{snapsContained:c,scrollContainLimit:a}}function p1(e,t,n){const s=t[0],r=n?s-e:Vt(t);return{limit:Ts(r,s)}}function m1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Ts(i,o);function l(h){return h===1?c(n.get()):h===-1?a(n.get()):!1}function u(h){if(!l(h))return;const g=e*(h*-1);s.forEach(m=>m.add(g))}return{loop:u}}function g1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function y1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=h(),u=g();function d(){return a(s).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function g(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function v1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const h=o(i),g=!e||t==="keepSnaps";return n.length===1?[i]:g?h:h.slice(a,c).map((m,p,v)=>{const x=!p,b=ju(v,p);if(x){const w=Vt(v[0])+1;return Sh(w)}if(b){const w=Li(i)-Vt(v)[0]+1;return Sh(w,Vt(v)[0])}return m})}return{slideRegistry:l}}function x1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(m){const p=e?o(m):a(m),v=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:x}=v[0];return{index:x,distance:p}}function u(m,p){const v=[m,m+n,m-n];if(!e)return m;if(!p)return c(v);const x=v.filter(b=>Nu(b)===p);return x.length?c(x):Vt(v)-n}function d(m,p){const v=t[m]-r.get(),x=u(v,p);return{index:m,distance:x}}function h(m,p){const v=r.get()+m,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:m};const _=t[x]-b,S=m+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function b1(e,t,n,s,r,i,o){function a(d){const h=d.distance,g=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const g=r.byDistance(d,h);a(g)}function l(d,h){const g=t.clone().set(d),m=r.byIndex(g.get(),h);a(m)}return{distance:c,index:l}}function w1(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(g){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Pu(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ma(a)||a(g,x))&&m(v)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Vr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Pu(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function vv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const g=n1(e.direction(h));g!==r&&(s.transform=n(g),r=g)}function l(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function S1(e,t,n,s,r,i,o,a,c){const u=yi(r),d=yi(r).reverse(),h=x().concat(b());function g(E,R){return E.reduce((N,M)=>N-r[M],R)}function m(E,R){return E.reduce((N,M)=>g(N,R)>0?N.concat([M]):N,[])}function p(E){return i.map((R,N)=>({start:R-s[N]+.5+E,end:R+t-.5+E}))}function v(E,R,N){const M=p(R);return E.map(L=>{const O=N?0:-n,z=N?n:0,F=N?"end":"start",J=M[L][F];return{index:L,loopPoint:J,slideLocation:Vr(-1),translate:vv(e,c[L]),target:()=>a.get()>J?O:z}})}function x(){const E=o[0],R=m(d,E);return v(R,n,!1)}function b(){const E=t-o[0]-1,R=m(u,E);return v(R,-n,!0)}function w(){return h.every(({index:E})=>{const R=u.filter(N=>N!==E);return g(R,t)<=.1})}function _(){h.forEach(E=>{const{target:R,translate:N,slideLocation:M}=E,L=R();L!==M.get()&&(N.to(L),M.set(L))})}function S(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function _1(e,t,n){let s,r=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(u=>{r||(ma(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function C1(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return vi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(m&&b||!m&&!b)&&p.push(x),p},[])}function h(m=!0){if(m&&i)return i;if(!m&&o)return o;const p=d(m);return m&&(i=p),m||(o=p),p}return{init:l,destroy:u,get:h}}function E1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),h=n.map(o),g=v();function m(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Vt(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,A=ju(_,w);return S?h[w]+u:A?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:g,startGap:u,endGap:d}}function T1(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=Pu(n);function g(x,b){return yi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function m(x){return x.length?yi(x).reduce((b,w,_)=>{const S=Vt(b)||0,A=S===0,E=w===Li(x),R=r[l]-i[S][l],N=r[l]-i[w][u],M=!s&&A?d(o):0,L=!s&&E?d(a):0,O=Pe(N-L-(R+M));return _&&O>t+c&&b.push(w),E&&b.push(x.length),b},[]).map((b,w,_)=>{const S=Math.max(_[w-1]||0);return x.slice(S,b)}):[]}function p(x){return h?g(x,n):m(x)}return{groupSlides:p}}function A1(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:g,dragThreshold:m,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:A}=i,E=2,R=c1(),N=R.measure(t),M=n.map(R.measure),L=i1(c,l),O=L.measureSize(N),z=l1(O),F=s1(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:fe}=E1(L,N,M,n,X,r),ye=T1(L,O,v,d,N,M,re,fe,E),{snaps:Be,snapsAligned:Ze}=y1(L,F,N,M,ye),Ke=-Vt(Be)+Vt(Z),{snapsContained:jt,scrollContainLimit:tt}=h1(O,Ke,Ze,b,E),ue=J?jt:Ze,{limit:ve}=p1(Ke,ue,d),ke=yv(Li(ue),u,d),Ie=ke.clone(),we=yi(n),G=({dragHandler:Zt,scrollBody:Jn,scrollBounds:Tr,options:{loop:es}})=>{es||Tr.constrain(Zt.pointerDown()),Jn.seek()},he=({scrollBody:Zt,translate:Jn,location:Tr,offsetLocation:es,previousLocation:ga,scrollLooper:Vi,slideLooper:yx,dragHandler:vx,animation:xx,eventHandler:Wu,scrollBounds:bx,options:{loop:Hu}},qu)=>{const Zu=Zt.settled(),wx=!bx.shouldConstrain(),Ku=Hu?Zu:Zu&&wx;Ku&&!vx.pointerDown()&&(xx.stop(),Wu.emit("settle")),Ku||Wu.emit("scroll");const Sx=Tr.get()*qu+ga.get()*(1-qu);es.set(Sx),Hu&&(Vi.loop(Zt.direction()),yx.loop()),Jn.to(es.get())},Se=r1(s,r,()=>G(Er),Zt=>he(Er,Zt)),Ue=.68,pt=ue[ke.get()],_t=Vr(pt),C=Vr(pt),P=Vr(pt),k=Vr(pt),U=d1(_t,P,C,k,h,Ue),B=x1(d,ue,Ke,ve,k),I=b1(Se,ke,Ie,U,B,k,o),Y=g1(ve),ae=xi(),Fe=C1(t,n,o,p),{slideRegistry:Oe}=v1(J,b,ue,tt,ye,we),qt=w1(e,n,Oe,I,U,ae,o,A),Er={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:M,animation:Se,axis:L,dragHandler:o1(L,e,s,r,k,a1(L,r),_t,Se,I,U,B,ke,o,z,g,m,x,Ue,S),eventStore:ae,percentOfView:z,index:ke,indexPrevious:Ie,limit:ve,location:_t,offsetLocation:P,previousLocation:C,options:i,resizeHandler:u1(t,o,r,n,L,w,R),scrollBody:U,scrollBounds:f1(ve,P,k,U,z),scrollLooper:m1(Ke,ve,P,[_t,P,C,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:B,scrollTo:I,slideLooper:S1(L,O,Ke,q,Z,Be,ue,P,n),slideFocus:qt,slidesHandler:_1(t,o,_),slidesInView:Fe,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:k,translate:vv(L,t)};return Er}function R1(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const P1={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N1(e){function t(i,o){return gv(i,o||{})}function n(i){const o=i.breakpoints||{},a=vi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>vi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function j1(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function $o(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=N1(r),o=j1(i),a=xi(),c=R1(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:g,emit:m}=c,p=L;let v=!1,x,b=l(P1,$o.globalOptions),w=l(b),_=[],S,A,E;function R(){const{container:we,slides:G}=w;A=(Bc(we)?e.querySelector(we):we)||e.children[0];const Se=Bc(G)?A.querySelectorAll(G):G;E=[].slice.call(Se||A.children)}function N(we){const G=A1(e,A,E,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function M(we,G){v||(b=l(b,we),w=u(b),_=G||_,R(),x=N(w),d([b,..._.map(({options:he})=>he)]).forEach(he=>a.add(he,"change",L)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Ie),x.eventHandler.init(Ie),x.resizeHandler.init(Ie),x.slidesHandler.init(Ie),x.options.loop&&x.slideLooper.loop(),A.offsetParent&&E.length&&x.dragHandler.init(Ie),S=o.init(Ie,_)))}function L(we,G){const he=ye();O(),M(l({startIndex:he},we),G),c.emit("reInit")}function O(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function F(we,G,he){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(we,he||0))}function J(we){const G=x.index.add(1).get();F(G,we,-1)}function X(we){const G=x.index.add(-1).get();F(G,we,1)}function q(){return x.index.add(1).get()!==ye()}function Z(){return x.index.add(-1).get()!==ye()}function re(){return x.scrollSnapList}function fe(){return x.scrollProgress.get(x.location.get())}function ye(){return x.index.get()}function Be(){return x.indexPrevious.get()}function Ze(){return x.slidesInView.get()}function Ke(){return x.slidesInView.get(!1)}function jt(){return S}function tt(){return x}function ue(){return e}function ve(){return A}function ke(){return E}const Ie={canScrollNext:q,canScrollPrev:Z,containerNode:ve,internalEngine:tt,destroy:z,off:g,on:h,emit:m,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:fe,scrollSnapList:re,scrollTo:F,selectedScrollSnap:ye,slideNodes:ke,slidesInView:Ze,slidesNotInView:Ke};return M(t,n),setTimeout(()=>c.emit("init"),0),Ie}$o.globalOptions=void 0;function Yn(e={},t=[]){const n=y.useRef(e),s=y.useRef(t),[r,i]=y.useState(),[o,a]=y.useState(),c=y.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return y.useEffect(()=>{Ru(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{e1(s.current,t)||(s.current=t,c())},[t,c]),y.useEffect(()=>{if(JN()&&o){$o.globalOptions=Yn.globalOptions;const l=$o(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Yn.globalOptions=void 0;const k1=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],Uk=({className:e,setState:t,state:n,data:s=k1})=>{const r=Te(m=>m.lang),i=So("(min-width: 768px)"),[o,a]=y.useState({left:0,width:0}),[c,l]=Yn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=y.useRef([]),d=y.useRef(null),h=y.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=m.offsetLeft;a({left:b-x,width:m.offsetWidth})}}},[n,i,l]);y.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),y.useEffect(()=>{if(l)return h(),l.on("scroll",h),l.on("resize",h),()=>{l.off("scroll",h),l.off("resize",h)}},[l,h]);const g=y.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return f.jsxs("div",{ref:d,className:V("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?f.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>g(p),children:r==="ru"?m.title:m.titleEn},m.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>g(p),children:r==="ru"?m.title:m.titleEn},m.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},zk=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Te(l=>l.lang);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:V("flex border-b md:hidden py-2 border-outline_v",e),children:[f.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),f.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),f.jsx("div",{className:"flex items-center gap-3",children:f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},As=typeof window>"u"||"Deno"in globalThis;function At(){}function O1(e,t){return typeof e=="function"?e(t):e}function Uc(e){return typeof e=="number"&&e>=0&&e!==1/0}function xv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zs(e,t){return typeof e=="function"?e(t):e}function Dt(e,t){return typeof e=="function"?e(t):e}function _h(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==ku(o,t.options))return!1}else if(!wi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Ch(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(bi(t.options.mutationKey)!==bi(i))return!1}else if(!wi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function ku(e,t){return((t==null?void 0:t.queryKeyHashFn)||bi)(e)}function bi(e){return JSON.stringify(e,(t,n)=>Wc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function wi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!wi(e[n],t[n])):!1}function bv(e,t){if(e===t)return e;const n=Eh(e)&&Eh(t);if(n||Wc(e)&&Wc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function Hc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bv(e,t):t}function D1(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function L1(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Ou=Symbol();function wv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ou?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var as,kn,Ks,Vh,I1=(Vh=class extends Ii{constructor(){super();ne(this,as);ne(this,kn);ne(this,Ks);K(this,Ks,t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,kn)||this.setEventListener(T(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,kn))==null||t.call(this),K(this,kn,void 0))}setEventListener(t){var n;K(this,Ks,t),(n=T(this,kn))==null||n.call(this),K(this,kn,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,as)!==t&&(K(this,as,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,as)=="boolean"?T(this,as):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},as=new WeakMap,kn=new WeakMap,Ks=new WeakMap,Vh),Mu=new I1,Gs,On,Qs,Bh,F1=(Bh=class extends Ii{constructor(){super();ne(this,Gs,!0);ne(this,On);ne(this,Qs);K(this,Qs,t=>{if(!As&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,On)||this.setEventListener(T(this,Qs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,On))==null||t.call(this),K(this,On,void 0))}setEventListener(t){var n;K(this,Qs,t),(n=T(this,On))==null||n.call(this),K(this,On,t(this.setOnline.bind(this)))}setOnline(t){T(this,Gs)!==t&&(K(this,Gs,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Gs)}},Gs=new WeakMap,On=new WeakMap,Qs=new WeakMap,Bh),Uo=new F1;function qc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function V1(e){return Math.min(1e3*2**e,3e4)}function Sv(e){return(e??"online")==="online"?Uo.isOnline():!0}var _v=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xa(e){return e instanceof _v}function Cv(e){let t=!1,n=0,s=!1,r;const i=qc(),o=p=>{var v;s||(h(new _v(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>Mu.isFocused()&&(e.networkMode==="always"||Uo.isOnline())&&e.canRun(),u=()=>Sv(e.networkMode)&&e.canRun(),d=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),r==null||r(),i.resolve(p))},h=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),r==null||r(),i.reject(p))},g=()=>new Promise(p=>{var v;r=x=>{(s||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var A;if(s)return;const b=e.retry??(As?0:3),w=e.retryDelay??V1,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:g()).then(()=>{t?h(x):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():g().then(m),i)}}function B1(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var He=B1(),cs,$h,Ev=($h=class{constructor(){ne(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uc(this.gcTime)&&K(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(As?1/0:5*60*1e3))}clearGcTimeout(){T(this,cs)&&(clearTimeout(T(this,cs)),K(this,cs,void 0))}},cs=new WeakMap,$h),Xs,Ys,Tt,ls,Ge,Si,us,Ot,gn,Uh,$1=(Uh=class extends Ev{constructor(t){super();ne(this,Ot);ne(this,Xs);ne(this,Ys);ne(this,Tt);ne(this,ls);ne(this,Ge);ne(this,Si);ne(this,us);K(this,us,!1),K(this,Si,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ls,t.client),K(this,Tt,T(this,ls).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Xs,U1(this.options)),this.state=t.state??T(this,Xs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const s=Hc(this.state.data,t,this.options);return pe(this,Ot,gn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){pe(this,Ot,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,Ge))==null?void 0:s.promise;return(r=T(this,Ge))==null||r.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Xs))}isActive(){return this.observers.some(t=>Dt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ou||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!xv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ge)&&(T(this,us)?T(this,Ge).cancel({revert:!0}):T(this,Ge).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Ot,gn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ge))return T(this,Ge).continueRetry(),T(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,us,!0),s.signal)})},i=()=>{const d=wv(this.options,n),h={client:T(this,ls),queryKey:this.queryKey,meta:this.meta};return r(h),K(this,us,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ls),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&pe(this,Ot,gn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,g,m,p;Xa(d)&&d.silent||pe(this,Ot,gn).call(this,{type:"error",error:d}),Xa(d)||((g=(h=T(this,Tt).config).onError)==null||g.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ge,Cv({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var h,g,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){a(v);return}(g=(h=T(this,Tt).config).onSuccess)==null||g.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{pe(this,Ot,gn).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{pe(this,Ot,gn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Ot,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,Ge).start()}},Xs=new WeakMap,Ys=new WeakMap,Tt=new WeakMap,ls=new WeakMap,Ge=new WeakMap,Si=new WeakMap,us=new WeakMap,Ot=new WeakSet,gn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Tv(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Xa(r)&&r.revert&&T(this,Ys)?{...T(this,Ys),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},Uh);function Tv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function U1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,zh,z1=(zh=class extends Ii{constructor(t={}){super();ne(this,Gt);this.config=t,K(this,Gt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??ku(r,n);let o=this.get(i);return o||(o=new $1({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,Gt).has(t.queryHash)||(T(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Gt).get(t)}getAll(){return[...T(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>_h(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>_h(t,s)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,zh),Qt,nt,ds,Xt,Nn,Wh,W1=(Wh=class extends Ev{constructor(t){super();ne(this,Xt);ne(this,Qt);ne(this,nt);ne(this,ds);this.mutationId=t.mutationId,K(this,nt,t.mutationCache),K(this,Qt,[]),this.state=t.state||H1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qt,T(this,Qt).filter(n=>n!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,h,g,m,p,v,x,b,w,_,S,A,E;K(this,ds,Cv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Xt,Nn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Xt,Nn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Xt,Nn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ds).canStart();try{if(!n){pe(this,Xt,Nn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,nt).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&pe(this,Xt,Nn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const R=await T(this,ds).start();return await((l=(c=T(this,nt).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context)),await((g=(h=T(this,nt).config).onSettled)==null?void 0:g.call(h,R,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,R,null,t,this.state.context)),pe(this,Xt,Nn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((x=(v=T(this,nt).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context)),await((S=(_=T(this,nt).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,R,t,this.state.context)),R}finally{pe(this,Xt,Nn).call(this,{type:"error",error:R})}}finally{T(this,nt).runNext(this)}}},Qt=new WeakMap,nt=new WeakMap,ds=new WeakMap,Xt=new WeakSet,Nn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{T(this,Qt).forEach(s=>{s.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},Wh);function H1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,_i,Hh,q1=(Hh=class extends Ii{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,_i);this.config=t,K(this,vn,new Set),K(this,Mt,new Map),K(this,_i,0)}build(t,n,s){const r=new W1({mutationCache:this,mutationId:++Bi(this,_i)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,vn).add(t);const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);s?s.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yi(t);if(typeof n=="string"){const s=T(this,Mt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Yi(t);if(typeof n=="string"){const r=(s=T(this,Mt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ch(n,s))}findAll(t={}){return this.getAll().filter(n=>Ch(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},vn=new WeakMap,Mt=new WeakMap,_i=new WeakMap,Hh);function Yi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ah(e){return{onFetch:(t,n)=>{var u,d,h,g,m;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=wv(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};v(A);const E=await x(A),{maxPages:R}=t.options,N=S?L1:D1;return{pages:N(w.pages,E,R),pageParams:N(w.pageParams,_,R)}};if(r&&i.length){const w=r==="backward",_=w?Z1:Rh,S={pages:i,pageParams:o},A=_(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const _=c===0?o[0]??s.initialPageParam:Rh(s,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Rh(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Z1(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ne,Mn,Dn,Js,er,Ln,tr,nr,qh,Wk=(qh=class{constructor(e={}){ne(this,Ne);ne(this,Mn);ne(this,Dn);ne(this,Js);ne(this,er);ne(this,Ln);ne(this,tr);ne(this,nr);K(this,Ne,e.queryCache||new z1),K(this,Mn,e.mutationCache||new q1),K(this,Dn,e.defaultOptions||{}),K(this,Js,new Map),K(this,er,new Map),K(this,Ln,0)}mount(){Bi(this,Ln)._++,T(this,Ln)===1&&(K(this,tr,Mu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onFocus())})),K(this,nr,Uo.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Ln)._--,T(this,Ln)===0&&((e=T(this,tr))==null||e.call(this),K(this,tr,void 0),(t=T(this,nr))==null||t.call(this),K(this,nr,void 0))}isFetching(e){return T(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=O1(t,i);if(o!==void 0)return T(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>T(this,Ne).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ne);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ne),s={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=He.batch(()=>T(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>{if(T(this,Ne).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=He.batch(()=>T(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ne).build(this,t);return n.isStaleByTime(Zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Ah(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Ah(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uo.isOnline()?T(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ne)}getMutationCache(){return T(this,Mn)}getDefaultOptions(){return T(this,Dn)}setDefaultOptions(e){K(this,Dn,e)}setQueryDefaults(e,t){T(this,Js).set(bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Js).values()],n={};return t.forEach(s=>{wi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,er).set(bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,er).values()];let n={};return t.forEach(s=>{wi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ku(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ou&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ne).clear(),T(this,Mn).clear()}},Ne=new WeakMap,Mn=new WeakMap,Dn=new WeakMap,Js=new WeakMap,er=new WeakMap,Ln=new WeakMap,tr=new WeakMap,nr=new WeakMap,qh),ut,me,Ci,st,fs,sr,In,Yt,Ei,rr,ir,hs,ps,Fn,or,be,Br,Zc,Kc,Gc,Qc,Xc,Yc,Jc,Av,Zh,K1=(Zh=class extends Ii{constructor(t,n){super();ne(this,be);ne(this,ut);ne(this,me);ne(this,Ci);ne(this,st);ne(this,fs);ne(this,sr);ne(this,In);ne(this,Yt);ne(this,Ei);ne(this,rr);ne(this,ir);ne(this,hs);ne(this,ps);ne(this,Fn);ne(this,or,new Set);this.options=n,K(this,ut,t),K(this,Yt,null),K(this,In,qc()),this.options.experimental_prefetchInRender||T(this,In).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),Ph(T(this,me),this.options)?pe(this,be,Br).call(this):this.updateResult(),pe(this,be,Qc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return el(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return el(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Xc).call(this),pe(this,be,Yc).call(this),T(this,me).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,me);if(this.options=T(this,ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,T(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Jc).call(this),T(this,me).setOptions(this.options),s._defaulted&&!zc(this.options,s)&&T(this,ut).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&Nh(T(this,me),r,this.options,s)&&pe(this,be,Br).call(this),this.updateResult(n),i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||Zs(this.options.staleTime,T(this,me))!==Zs(s.staleTime,T(this,me)))&&pe(this,be,Zc).call(this);const o=pe(this,be,Kc).call(this);i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||o!==T(this,Fn))&&pe(this,be,Gc).call(this,o)}getOptimisticResult(t){const n=T(this,ut).getQueryCache().build(T(this,ut),t),s=this.createResult(n,t);return Q1(this,s)&&(K(this,st,s),K(this,sr,this.options),K(this,fs,T(this,me).state)),s}getCurrentResult(){return T(this,st)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,or).add(t)}getCurrentQuery(){return T(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,ut).defaultQueryOptions(t),s=T(this,ut).getQueryCache().build(T(this,ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return pe(this,be,Br).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,st)))}createResult(t,n){var R;const s=T(this,me),r=this.options,i=T(this,st),o=T(this,fs),a=T(this,sr),l=t!==s?t.state:T(this,Ci),{state:u}=t;let d={...u},h=!1,g;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&Ph(t,n),L=N&&Nh(t,s,n,r);(M||L)&&(d={...d,...Tv(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:v}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,Ei))g=T(this,rr);else try{K(this,Ei,n.select),g=n.select(d.data),g=Hc(i==null?void 0:i.data,g,n),K(this,rr,g),K(this,Yt,null)}catch(N){K(this,Yt,N)}else g=d.data;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,ir))==null?void 0:R.state.data,T(this,ir)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),K(this,Yt,null)}catch(M){K(this,Yt,M)}N!==void 0&&(v="success",g=Hc(i==null?void 0:i.data,N,n),h=!0)}T(this,Yt)&&(m=T(this,Yt),g=T(this,rr),p=Date.now(),v="error");const x=d.fetchStatus==="fetching",b=v==="pending",w=v==="error",_=b&&x,S=g!==void 0,E={status:v,fetchStatus:d.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&S,isStale:Du(t,n),refetch:this.refetch,promise:T(this,In)};if(this.options.experimental_prefetchInRender){const N=O=>{E.status==="error"?O.reject(E.error):E.data!==void 0&&O.resolve(E.data)},M=()=>{const O=K(this,In,E.promise=qc());N(O)},L=T(this,In);switch(L.status){case"pending":t.queryHash===s.queryHash&&N(L);break;case"fulfilled":(E.status==="error"||E.data!==L.value)&&M();break;case"rejected":(E.status!=="error"||E.error!==L.reason)&&M();break}}return E}updateResult(t){const n=T(this,st),s=this.createResult(T(this,me),this.options);if(K(this,fs,T(this,me).state),K(this,sr,this.options),T(this,fs).data!==void 0&&K(this,ir,T(this,me)),zc(s,n))return;K(this,st,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,or).size)return!0;const c=new Set(a??T(this,or));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,st)).some(l=>{const u=l;return T(this,st)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),pe(this,be,Av).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,Qc).call(this)}},ut=new WeakMap,me=new WeakMap,Ci=new WeakMap,st=new WeakMap,fs=new WeakMap,sr=new WeakMap,In=new WeakMap,Yt=new WeakMap,Ei=new WeakMap,rr=new WeakMap,ir=new WeakMap,hs=new WeakMap,ps=new WeakMap,Fn=new WeakMap,or=new WeakMap,be=new WeakSet,Br=function(t){pe(this,be,Jc).call(this);let n=T(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(At)),n},Zc=function(){pe(this,be,Xc).call(this);const t=Zs(this.options.staleTime,T(this,me));if(As||T(this,st).isStale||!Uc(t))return;const s=xv(T(this,st).dataUpdatedAt,t)+1;K(this,hs,setTimeout(()=>{T(this,st).isStale||this.updateResult()},s))},Kc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)??!1},Gc=function(t){pe(this,be,Yc).call(this),K(this,Fn,t),!(As||Dt(this.options.enabled,T(this,me))===!1||!Uc(T(this,Fn))||T(this,Fn)===0)&&K(this,ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Mu.isFocused())&&pe(this,be,Br).call(this)},T(this,Fn)))},Qc=function(){pe(this,be,Zc).call(this),pe(this,be,Gc).call(this,pe(this,be,Kc).call(this))},Xc=function(){T(this,hs)&&(clearTimeout(T(this,hs)),K(this,hs,void 0))},Yc=function(){T(this,ps)&&(clearInterval(T(this,ps)),K(this,ps,void 0))},Jc=function(){const t=T(this,ut).getQueryCache().build(T(this,ut),this.options);if(t===T(this,me))return;const n=T(this,me);K(this,me,t),K(this,Ci,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Av=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,st))}),T(this,ut).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},Zh);function G1(e,t){return Dt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ph(e,t){return G1(e,t)||e.state.data!==void 0&&el(e,t,t.refetchOnMount)}function el(e,t,n){if(Dt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Du(e,t)}return!1}function Nh(e,t,n,s){return(e!==t||Dt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Du(e,n)}function Du(e,t){return Dt(t.enabled,e)!==!1&&e.isStaleByTime(Zs(t.staleTime,e))}function Q1(e,t){return!zc(e.getCurrentResult(),t)}var Rv=y.createContext(void 0),X1=e=>{const t=y.useContext(Rv);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hk=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Rv.Provider,{value:e,children:t})),Pv=y.createContext(!1),Y1=()=>y.useContext(Pv);Pv.Provider;function J1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ej=y.createContext(J1()),tj=()=>y.useContext(ej);function nj(e,t){return typeof e=="function"?e(...t):!!e}function jh(){}var sj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rj=e=>{y.useEffect(()=>{e.clearReset()},[e])},ij=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||nj(n,[e.error,s])),oj=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},aj=(e,t)=>e.isLoading&&e.isFetching&&!t,cj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,kh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lj(e,t,n){var d,h,g,m,p;const s=X1(),r=Y1(),i=tj(),o=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",oj(o),sj(o,i),rj(i);const a=!s.getQueryCache().get(o.queryHash),[c]=y.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(v=>{const x=u?c.subscribe(He.batchCalls(v)):jh;return c.updateResult(),x},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),y.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),cj(o,l))throw kh(o,c,i);if(ij({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||m.call(g,o,l),o.experimental_prefetchInRender&&!As&&aj(l,r)){const v=a?kh(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(jh).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function En(e,t){return lj(e,K1)}const uj=e=>{const{data:t,isPending:n,status:s}=En({queryKey:["photos",e],queryFn:()=>ZN(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},dj=e=>{const{data:t,isPending:n,isError:s}=En({queryKey:["videos",e],queryFn:()=>KN(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},qk=({className:e,setIsOpen:t,activeItem:n})=>{var h,g;const[s,r]=Yn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=uj(1),{data:o}=dj(1);QE();const[a,c]=y.useState(!1),[l,u]=y.useState(!1);y.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),y.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:f.jsx("img",{src:(p=m==null?void 0:m.photo)==null?void 0:p.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(g=o==null?void 0:o.videos)==null?void 0:g.map(m=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:f.jsx("video",{src:((p=m==null?void 0:m.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(Sl,{onClick:()=>t(!1),className:"absolute top-6 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),f.jsxs("div",{className:"hidden md:block",children:[f.jsx(tc,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(kp,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},Zk=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var p;const[o,a]=Yn({}),[c,l]=y.useState(!1),[u,d]=y.useState(!1),h=Te(v=>v.lang),[g,m]=y.useState(100);return y.useEffect(()=>{if(!a)return;const v=()=>{l(a.canScrollPrev()),d(a.canScrollNext())};return v(),a.on("select",v),()=>{a.off("select",v)}},[a]),f.jsxs(Ny,{children:[f.jsxs(jy,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((v,x)=>f.jsx("li",{children:h==="ru"?v==null?void 0:v.ru:v==null?void 0:v.en},x))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(Su,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] max-h-[80vh]"),children:[g===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full 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-[45vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>m(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(tc,{}),"Вернуться назад"]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(p=i==null?void 0:i[g])==null?void 0:p.path,className:"size-full object-contain"})})]}),f.jsxs("div",{className:"",children:[f.jsx("h3",{className:"text-xl mb-2.5",children:"Работы дизайнера"}),f.jsx("div",{ref:(i==null?void 0:i.length)>8?o:null,className:"embla overflow-hidden",children:f.jsxs("div",{className:"embla__container items-center flex gap-4",children:[c&&f.jsx(tc,{onClick:()=>c&&(a==null?void 0:a.scrollPrev()),className:V("cursor-pointer",!c&&"opacity-20")}),f.jsx("div",{className:"flex items-center gap-4",children:i==null?void 0:i.map((v,x)=>f.jsx("div",{className:"size-[140px] overflow-hidden",children:f.jsx("img",{onClick:()=>m(x),src:v==null?void 0:v.path,className:"size-full hover:scale-105 transition-all cursor-pointer overflow-hidden object-cover object-top"},x)}))}),u&&f.jsx(kp,{onClick:()=>c&&(a==null?void 0:a.scrollNext()),className:V("cursor-pointer",!u&&"opacity-20")})]})})]})]})]})},Ji=({value:e,label:t,prevValue:n})=>f.jsxs("div",{className:"timer-item flex flex-col items-center",children:[f.jsxs("div",{className:"relative sm:h-14 h-6 w-16 overflow-hidden font-bold",children:[f.jsx("span",{className:`absolute left-1/2 -translate-x-1/2 black bg-gradient-to-t from-[#F1700D] to-[#F38835] text-transparent bg-clip-text sm:text-5xl text-xl leading-none transition-all duration-300 ${n!==e?" opacity-0":" opacity-100"}`,children:n}),f.jsx("span",{className:`absolute left-1/2 -translate-x-1/2 black bg-gradient-to-t from-[#F1700D] to-[#F38835] text-transparent bg-clip-text sm:text-5xl text-xl leading-none transition-all duration-300 ${n!==e?"opacity-100":"opacity-0"}`,children:e})]}),f.jsx("div",{className:"label normal sm:text-lg text-base text-[#FAD8DB]",children:t})]});function Nv(e,t=[]){let n=[];function s(i,o){const a=y.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:g,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=y.useMemo(()=>m,Object.values(m));return f.jsx(p.Provider,{value:v,children:g})};l.displayName=i+"Provider";function u(d,h){var p;const g=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,m=y.useContext(g);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,fj(r,...t)]}function fj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ze(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lu(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Oh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:i,...o}=s,a=y.Children.toArray(i),c=a.find(mj);if(c){const l=c.props.children,u=a.map(d=>d===c?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:r,children:y.isValidElement(l)?y.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function hj(e){const t=y.forwardRef((n,s)=>{const{children:r,...i}=n;if(y.isValidElement(r)){const o=yj(r),a=gj(i,r.props);return r.type!==y.Fragment&&(a.ref=s?Lu(s,o):o),y.cloneElement(r,a)}return y.Children.count(r)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pj=Symbol("radix.slottable");function mj(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pj}function gj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function yj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=vj.reduce((e,t)=>{const n=tl(`Primitive.${t}`),s=y.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function nl(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}var Rs=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},xj=ul[" useInsertionEffect ".trim().toString()]||Rs;function jv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=bj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=y.useCallback(u=>{var d;if(a){const h=wj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[c,l]}function bj({defaultProp:e,onChange:t}){const[n,s]=y.useState(e),r=y.useRef(n),i=y.useRef(t);return xj(()=>{i.current=t},[t]),y.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function wj(e){return typeof e=="function"}var Sj=y.createContext(void 0);function _j(e){const t=y.useContext(Sj);return e||t||"ltr"}function Cj(e,t){return y.useReducer((n,s)=>t[n][s]??n,e)}var Fi=e=>{const{present:t,children:n}=e,s=Ej(t),r=typeof n=="function"?n({present:s.isPresent}):y.Children.only(n),i=dn(s.ref,Tj(r));return typeof n=="function"||s.isPresent?y.cloneElement(r,{ref:i}):null};Fi.displayName="Presence";function Ej(e){const[t,n]=y.useState(),s=y.useRef(null),r=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Cj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=eo(s.current);i.current=a==="mounted"?l:"none"},[a]),Rs(()=>{const l=s.current,u=r.current;if(u!==e){const h=i.current,g=eo(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Rs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const p=eo(s.current).includes(g.animationName);if(g.target===t&&p&&(c("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(i.current=eo(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function eo(e){return(e==null?void 0:e.animationName)||"none"}function Tj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Aj=ul[" useId ".trim().toString()]||(()=>{}),Rj=0;function kv(e){const[t,n]=y.useState(Aj());return Rs(()=>{e||n(s=>s??String(Rj++))},[e]),e||(t?`radix-${t}`:"")}function Ov(e){const t=e+"CollectionProvider",[n,s]=Nv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=de.useRef(null),w=de.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=tl(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=tl(u),g=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=dn(v,_),A=i(u,x);return de.useEffect(()=>(A.itemMap.set(_,{ref:_,...w}),()=>void A.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});g.displayName=u;function m(p){const v=i(e+"CollectionConsumer",p);return de.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((A,E)=>w.indexOf(A.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:g},m,s]}function Jt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);y.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Nj="DismissableLayer",sl="dismissableLayer.update",jj="dismissableLayer.pointerDownOutside",kj="dismissableLayer.focusOutside",Mh,Mv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dv=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=y.useContext(Mv),[u,d]=y.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=y.useState({}),m=dn(t,E=>d(E)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Dj(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Lj(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Pj(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),y.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Mh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Dh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Mh)}},[u,h,n,l]),y.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Dh())},[u,l]),y.useEffect(()=>{const E=()=>g({});return document.addEventListener(sl,E),()=>document.removeEventListener(sl,E)},[]),f.jsx(ht.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,S.onPointerDownCapture)})});Dv.displayName=Nj;var Oj="DismissableLayerBranch",Mj=y.forwardRef((e,t)=>{const n=y.useContext(Mv),s=y.useRef(null),r=dn(t,s);return y.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ht.div,{...e,ref:r})});Mj.displayName=Oj;function Dj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=y.useRef(!1),r=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Lv(jj,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Lj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=y.useRef(!1);return y.useEffect(()=>{const r=i=>{i.target&&!s.current&&Lv(kj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Dh(){const e=new CustomEvent(sl);document.dispatchEvent(e)}function Lv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?nl(r,i):r.dispatchEvent(i)}function Ij(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vj="VisuallyHidden",Iv=y.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...Fj,...e.style}}));Iv.displayName=Vj;var Bj=Iv,js="NavigationMenu",[Iu,Fv,$j]=Ov(js),[rl,Uj,zj]=Ov(js),[Fu,Kk]=Nv(js,[$j,zj]),[Wj,Nt]=Fu(js),[Hj,qj]=Fu(js),Vv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=y.useState(null),g=dn(t,N=>h(N)),m=_j(l),p=y.useRef(0),v=y.useRef(0),x=y.useRef(0),[b,w]=y.useState(!0),[_,S]=jv({prop:s,onChange:N=>{const M=N!=="",L=a>0;M?(window.clearTimeout(x.current),L&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(N)},defaultProp:i??"",caller:js}),A=y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),E=y.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=y.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return y.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Bv,{scope:n,isRootMenu:!0,value:_,dir:m,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):E(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:N=>{S(M=>M===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(ht.nav,{"aria-label":"Main","data-orientation":c,dir:m,...u,ref:g})})});Vv.displayName=js;var il="NavigationMenuSub",Zj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,c=Nt(il,n),[l,u]=jv({prop:s,onChange:r,defaultProp:i??"",caller:il});return f.jsx(Bv,{scope:n,isRootMenu:!1,value:l,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(ht.div,{"data-orientation":o,...a,ref:t})})});Zj.displayName=il;var Bv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:g}=e,[m,p]=y.useState(null),[v,x]=y.useState(new Map),[b,w]=y.useState(null);return f.jsx(Wj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Ij(a),baseId:kv(),dir:r,orientation:i,viewport:m,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(g),onItemSelect:Jt(c),onItemDismiss:Jt(l),onViewportContentChange:y.useCallback((_,S)=>{x(A=>(A.set(_,S),new Map(A)))},[]),onViewportContentRemove:y.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Iu.Provider,{scope:t,children:f.jsx(Hj,{scope:t,items:v,children:o})})})},$v="NavigationMenuList",Uv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt($v,n),i=f.jsx(ht.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(ht.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Iu.Slot,{scope:n,children:r.isRootMenu?f.jsx(Yv,{asChild:!0,children:i}):i})})});Uv.displayName=$v;var zv="NavigationMenuItem",[Kj,Wv]=Fu(zv),Hv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=kv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=y.useRef(null),c=y.useRef(null),l=y.useRef(null),u=y.useRef(()=>{}),d=y.useRef(!1),h=y.useCallback((m="start")=>{if(a.current){u.current();const p=al(a.current);p.length&&$u(m==="start"?p:p.reverse())}},[]),g=y.useCallback(()=>{if(a.current){const m=al(a.current);m.length&&(u.current=tk(m))}},[]);return f.jsx(Kj,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:g,onContentFocusOutside:g,children:f.jsx(ht.li,{...r,ref:t})})});Hv.displayName=zv;var ol="NavigationMenuTrigger",qv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=Nt(ol,e.__scopeNavigationMenu),o=Wv(ol,e.__scopeNavigationMenu),a=y.useRef(null),c=dn(a,o.triggerRef,t),l=ex(i.baseId,o.value),u=tx(i.baseId,o.value),d=y.useRef(!1),h=y.useRef(!1),g=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Iu.ItemSlot,{scope:n,value:o.value,children:f.jsx(Jv,{asChild:!0,children:f.jsx(ht.button,{id:l,disabled:s,"data-disabled":s?"":void 0,"data-state":Uu(g),"aria-expanded":g,"aria-controls":u,...r,ref:c,onPointerEnter:ze(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ze(e.onPointerMove,zo(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ze(e.onPointerLeave,zo(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:ze(e.onClick,()=>{i.onItemSelect(o.value),h.current=g}),onKeyDown:ze(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];g&&m.key===v&&(o.onEntryKeyDown(),m.preventDefault())})})})}),g&&f.jsxs(f.Fragment,{children:[f.jsx(Bj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const p=o.contentRef.current,v=m.relatedTarget,x=v===a.current,b=p==null?void 0:p.contains(v);(x||!b)&&o.onFocusProxyEnter(x?"start":"end")}}),i.viewport&&f.jsx("span",{"aria-owns":u})]})]})});qv.displayName=ol;var Gj="NavigationMenuLink",Lh="navigationMenu.linkSelect",Zv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(Jv,{asChild:!0,children:f.jsx(ht.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:ze(e.onClick,o=>{const a=o.target,c=new CustomEvent(Lh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Lh,l=>r==null?void 0:r(l),{once:!0}),nl(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(po,{bubbles:!0,cancelable:!0});nl(a,l)}},{checkForDefaultPrevented:!1})})})});Zv.displayName=Gj;var Vu="NavigationMenuIndicator",Kv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?Kh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(Qj,{...s,ref:t})}),r.indicatorTrack):null});Kv.displayName=Vu;var Qj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Vu,n),i=Fv(n),[o,a]=y.useState(null),[c,l]=y.useState(null),u=r.orientation==="horizontal",d=!!r.value;y.useEffect(()=>{var p;const m=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;m&&a(m)},[i,r.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cl(o,h),cl(r.indicatorTrack,h),c?f.jsx(ht.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),mr="NavigationMenuContent",Gv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(mr,e.__scopeNavigationMenu),i=Wv(mr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(Xj,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(Qv,{"data-state":Uu(a),...c,ref:o,onPointerEnter:ze(e.onPointerEnter,r.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Gv.displayName=mr;var Xj=y.forwardRef((e,t)=>{const n=Nt(mr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Rs(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Rs(()=>()=>r(e.value),[e.value,r]),null}),po="navigationMenu.rootContentDismiss",Qv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=Nt(mr,n),d=y.useRef(null),h=dn(d,t),g=ex(u.baseId,s),m=tx(u.baseId,s),p=Fv(n),v=y.useRef(null),{onItemDismiss:x}=u;y.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(po,_),()=>w.removeEventListener(po,_)}},[u.isRootMenu,e.value,r,x,a]);const b=y.useMemo(()=>{const _=p().map(M=>M.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),A=_.indexOf(u.previousValue),E=s===u.value,R=A===_.indexOf(s);if(!E&&!R)return v.current;const N=(()=>{if(S!==A){if(E&&A!==-1)return S>A?"from-end":"from-start";if(R&&S!==-1)return S>A?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(Yv,{asChild:!0,children:f.jsx(Dv,{id:m,"aria-labelledby":g,"data-motion":b,"data-orientation":u.orientation,...l,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(po,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:ze(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:ze(e.onPointerDownOutside,w=>{var E;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),A=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(S||A||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:ze(e.onKeyDown,w=>{var A;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=al(w.currentTarget),R=document.activeElement,N=E.findIndex(O=>O===R),L=w.shiftKey?E.slice(0,N).reverse():E.slice(N+1,E.length);$u(L)?w.preventDefault():(A=i.current)==null||A.focus()}}),onEscapeKeyDown:ze(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",Xv=y.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!Nt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(Yj,{...s,ref:t})})});Xv.displayName=Bu;var Yj=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=Nt(Bu,n),o=dn(t,i.onViewportChange),a=qj(mr,e.__scopeNavigationMenu),[c,l]=y.useState(null),[u,d]=y.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,g=c?(c==null?void 0:c.height)+"px":void 0,m=!!i.value,p=m?i.value:i.previousValue;return cl(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(ht.div,{"data-state":Uu(m),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...r.style},onPointerEnter:ze(e.onPointerEnter,i.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Fi,{present:w||S,children:f.jsx(Qv,{..._,ref:Lu(b,A=>{S&&A&&d(A)})})},x)})})}),Jj="FocusGroup",Yv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Jj,n);return f.jsx(rl.Provider,{scope:n,children:f.jsx(rl.Slot,{scope:n,children:f.jsx(ht.div,{dir:r.dir,...s,ref:t})})})}),Ih=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ek="FocusGroupItem",Jv=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Uj(n),i=Nt(ek,n);return f.jsx(rl.ItemSlot,{scope:n,children:f.jsx(ht.button,{...s,ref:t,onKeyDown:ze(e.onKeyDown,o=>{if(["Home","End",...Ih].includes(o.key)){let c=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Ih.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>$u(c)),o.preventDefault()}})})})});function al(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function tk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function cl(e,t){const n=Jt(t);Rs(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function Uu(e){return e?"open":"closed"}function ex(e,t){return`${e}-trigger-${t}`}function tx(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nx=Vv,sx=Uv,nk=Hv,rx=qv,sk=Zv,ix=Kv,ox=Gv,ax=Xv;const cx=y.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(nx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(fx,{})]}));cx.displayName=nx.displayName;const lx=y.forwardRef(({className:e,...t},n)=>f.jsx(sx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));lx.displayName=sx.displayName;const rk=nk,ik=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"),ux=y.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(rx,{ref:s,className:V(ik(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(sw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ux.displayName=rx.displayName;const dx=y.forwardRef(({className:e,...t},n)=>f.jsx(ox,{ref:n,className:V("left-0 top-0 w-40 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",e),...t}));dx.displayName=ox.displayName;const ok=sk,fx=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:V("absolute left-full top-0 flex justify-center w-40"),children:f.jsx(ax,{className:V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-40 overflow-hidden rounded-md text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90",e),ref:n,...t})}));fx.displayName=ax.displayName;const ak=y.forwardRef(({className:e,...t},n)=>f.jsx(ix,{ref:n,className:V("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));ak.displayName=ix.displayName;const ck=({className:e,text:t,hoverItems:n,setIsOpen:s})=>f.jsx(cx,{children:f.jsx(lx,{children:f.jsxs(rk,{className:"w-full",children:[f.jsx(ux,{className:V("bg-transparent h-14 flex gap-3 justify-between min-w-full text-base cursor-pointer items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(dx,{className:"bg-surface_container shadow flex flex-col pb-2 rounded-[2px] w-40 items-center justify-center pt-2",children:n==null?void 0:n.map((r,i)=>f.jsx(ok,{onClick:()=>s(!1),className:"h-14 py-2 flex items-center justify-center w-40 cursor-pointer px-4 hover:bg-slate-300/50 transition-all",children:f.jsx(_e,{to:r.link??"",children:r.text})},i))})]})})}),gt=e=>e===Pt.RU?0:1,ll=[{title:"Тематические направления выставки",bottom_text:` Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],hx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["industries",e],queryFn:()=>WN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Gk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=hx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(qe,{children:s?f.jsx(Xn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:ll[gt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>f.jsx(qp,{...r},i))}),f.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[f.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),f.jsx("p",{className:"text-18",children:ll[gt(t)].bottom_text})]})]})})})},px=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая – 10 Июня 2025 года"},{name:"Работа",date:"11–13 Июня 2025 года"},{name:"Демонтаж",date:"13–14 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"11–13 June 2025"},{name:"Exhibition dismantling",date:"13–14 June 2025"}]}],mx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["exhibiton-time",e],queryFn:()=>HN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Qk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=mx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(qe,{children:s?f.jsx(Xn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[gt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>y.createElement(Zp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Fh=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],Xk=({className:e})=>{const t=Te(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(qe,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[f.jsxs("div",{className:"flex-[0_0_50%]",children:[f.jsx("h3",{className:"h2 mb-6",children:Fh[gt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Fh[gt(t)].data.map(n=>f.jsx("p",{children:n},n))})]}),f.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:f.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},to=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],Yk=({className:e})=>{const t=Te(n=>n.lang);return f.jsxs("section",{className:V("md:py-20 py-10 relative overflow-hidden",e),children:[f.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),f.jsxs(qe,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:to[gt(t)].title}),f.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:to[gt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(_e,{to:"/stend-form",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:to[gt(t)].button1})}),f.jsx(_e,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(ot,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:to[gt(t)].button2})})]})]})]})},gx=e=>{const t=Te(r=>r.lang),{data:n,isPending:s}=En({queryKey:["static-words",t,e],queryFn:()=>$N(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},Jk=()=>{var h,g,m,p,v,x,b,w;const e=Te(_=>_.lang),{t}=Ps("about"),{data:n,isPending:s}=gx("2"),r=(h=n==null?void 0:n.find(_=>_.key==="about_1"))==null?void 0:h.text,i=(g=n==null?void 0:n.find(_=>_.key==="about_2"))==null?void 0:g.text,o=(m=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:m.text,a=(p=n==null?void 0:n.find(_=>_.key==="about_4"))==null?void 0:p.text,c=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,l=(x=n==null?void 0:n.find(_=>_.key==="about_6"))==null?void 0:x.text,u=(b=n==null?void 0:n.find(_=>_.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(_=>_.key==="about_8"))==null?void 0:w.list;return s?f.jsx(Xn,{}):f.jsxs(qe,{className:"flex flex-col md:my-20 my-10 gap-16",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r}),f.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h3",{className:"h2",children:o}),f.jsx("h4",{className:"p",children:a}),f.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((_,S)=>f.jsx("li",{className:"p",children:e==="ru"?_.text_ru:_.text_en},S))})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:l}),f.jsx("h3",{className:"p",children:u}),f.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((_,S)=>f.jsxs("li",{children:[" ",e==="ru"?_.text_ru:_.text_en]},S))})]}),f.jsx(_e,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(ot,{children:t("main.button")})})]})},eO=()=>{const{t:e}=Ps("home"),t=So("(min-width: 1024px)"),n=So("(min-width: 768px)");function s(){return e(t?"banners.lg":n?"banners.md":"banners.sm")}return f.jsx("div",{children:f.jsxs("section",{className:"flex flex-col gap-5 ",children:[f.jsx("div",{className:"embla ",children:f.jsx("div",{className:"embla__container",children:f.jsx("div",{className:"embla__slide",children:f.jsx("img",{src:s(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),f.jsx("div",{className:"relative",children:f.jsx(xk,{className:"absolute sm:bottom-12 bottom-28 2xl:right-[10%] xl:right-[13%] lg:right-[15%] right-10"})})]})})},lk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["home-contacts",e],queryFn:()=>zN(e),select:({data:s})=>s.data});return{data:t,isPending:n}},tO=({className:e})=>{const t=Te(o=>o.lang),{data:n,isPending:s}=mx(),{data:r}=lk(),i=gt(t);return s?f.jsx(Xn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[i].title}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((o,a)=>y.createElement(Zp,{...o,key:a,className:"w-full"}))}),f.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((o,a)=>y.createElement(w0,{...o,key:a,className:"w-full"}))}),f.jsx(_e,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(ot,{className:"w-full",children:t===Pt.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},uk=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. diff --git a/dist/index.html b/dist/index.html index 0680e5d..c72f033 100644 --- a/dist/index.html +++ b/dist/index.html @@ -66,9 +66,9 @@ })(window, document, "script", "dataLayer", "GTM-NK394LVK"); Turkmen Textile - + - +